//------------------------------------------------------------------------------ // // 此代码由工具生成。 // 运行时版本:4.0.30319.42000 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // //------------------------------------------------------------------------------ // // 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。 // #pragma warning disable 1591 namespace WcfControlMonitorLib.ManageService { using System; using System.Web.Services; using System.Diagnostics; using System.Web.Services.Protocols; using System.Xml.Serialization; using System.ComponentModel; /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="BasicHttpBinding_I_ManageService", Namespace="http://tempuri.org/")] public partial class S_ManageService : System.Web.Services.Protocols.SoapHttpClientProtocol { private System.Threading.SendOrPostCallback ControlTranslateOperationCompleted; private System.Threading.SendOrPostCallback RecordCreateOperationCompleted; private System.Threading.SendOrPostCallback StationPickCompleteOperationCompleted; private System.Threading.SendOrPostCallback ManageTypeParamGetListOperationCompleted; private bool useDefaultCredentialsSetExplicitly; /// public S_ManageService() { this.Url = global::WcfControlMonitorLib.Properties.Settings.Default.WcfControlMonitorLib_ManageService_S_ManageService; if ((this.IsLocalFileSystemWebService(this.Url) == true)) { this.UseDefaultCredentials = true; this.useDefaultCredentialsSetExplicitly = false; } else { this.useDefaultCredentialsSetExplicitly = true; } } public new string Url { get { return base.Url; } set { if ((((this.IsLocalFileSystemWebService(base.Url) == true) && (this.useDefaultCredentialsSetExplicitly == false)) && (this.IsLocalFileSystemWebService(value) == false))) { base.UseDefaultCredentials = false; } base.Url = value; } } public new bool UseDefaultCredentials { get { return base.UseDefaultCredentials; } set { base.UseDefaultCredentials = value; this.useDefaultCredentialsSetExplicitly = true; } } /// public event ControlTranslateCompletedEventHandler ControlTranslateCompleted; /// public event RecordCreateCompletedEventHandler RecordCreateCompleted; /// public event StationPickCompleteCompletedEventHandler StationPickCompleteCompleted; /// public event ManageTypeParamGetListCompletedEventHandler ManageTypeParamGetListCompleted; /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/I_ManageService/ControlTranslate", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public void ControlTranslate([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string WAREHOUSE) { this.Invoke("ControlTranslate", new object[] { WAREHOUSE}); } /// public void ControlTranslateAsync(string WAREHOUSE) { this.ControlTranslateAsync(WAREHOUSE, null); } /// public void ControlTranslateAsync(string WAREHOUSE, object userState) { if ((this.ControlTranslateOperationCompleted == null)) { this.ControlTranslateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnControlTranslateOperationCompleted); } this.InvokeAsync("ControlTranslate", new object[] { WAREHOUSE}, this.ControlTranslateOperationCompleted, userState); } private void OnControlTranslateOperationCompleted(object arg) { if ((this.ControlTranslateCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ControlTranslateCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/I_ManageService/RecordCreate", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public void RecordCreate(int MANAGE_ID, [System.Xml.Serialization.XmlIgnoreAttribute()] bool MANAGE_IDSpecified, out bool RecordCreateResult, [System.Xml.Serialization.XmlIgnoreAttribute()] out bool RecordCreateResultSpecified, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] out string sResult) { object[] results = this.Invoke("RecordCreate", new object[] { MANAGE_ID, MANAGE_IDSpecified}); RecordCreateResult = ((bool)(results[0])); RecordCreateResultSpecified = ((bool)(results[1])); sResult = ((string)(results[2])); } /// public void RecordCreateAsync(int MANAGE_ID, bool MANAGE_IDSpecified) { this.RecordCreateAsync(MANAGE_ID, MANAGE_IDSpecified, null); } /// public void RecordCreateAsync(int MANAGE_ID, bool MANAGE_IDSpecified, object userState) { if ((this.RecordCreateOperationCompleted == null)) { this.RecordCreateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRecordCreateOperationCompleted); } this.InvokeAsync("RecordCreate", new object[] { MANAGE_ID, MANAGE_IDSpecified}, this.RecordCreateOperationCompleted, userState); } private void OnRecordCreateOperationCompleted(object arg) { if ((this.RecordCreateCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.RecordCreateCompleted(this, new RecordCreateCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/I_ManageService/StationPickComplete", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public void StationPickComplete([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string STATION_CODE, out bool StationPickCompleteResult, [System.Xml.Serialization.XmlIgnoreAttribute()] out bool StationPickCompleteResultSpecified, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] out string sResult) { object[] results = this.Invoke("StationPickComplete", new object[] { STATION_CODE}); StationPickCompleteResult = ((bool)(results[0])); StationPickCompleteResultSpecified = ((bool)(results[1])); sResult = ((string)(results[2])); } /// public void StationPickCompleteAsync(string STATION_CODE) { this.StationPickCompleteAsync(STATION_CODE, null); } /// public void StationPickCompleteAsync(string STATION_CODE, object userState) { if ((this.StationPickCompleteOperationCompleted == null)) { this.StationPickCompleteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnStationPickCompleteOperationCompleted); } this.InvokeAsync("StationPickComplete", new object[] { STATION_CODE}, this.StationPickCompleteOperationCompleted, userState); } private void OnStationPickCompleteOperationCompleted(object arg) { if ((this.StationPickCompleteCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.StationPickCompleteCompleted(this, new StationPickCompleteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/I_ManageService/ManageTypeParamGetList", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] [return: System.Xml.Serialization.XmlArrayAttribute(IsNullable=true)] [return: System.Xml.Serialization.XmlArrayItemAttribute(Namespace="http://schemas.datacontract.org/2004/07/SiaSun.LMS.Model")] public MANAGE_TYPE_PARAM[] ManageTypeParamGetList(int MANAGE_TYPE_ID, [System.Xml.Serialization.XmlIgnoreAttribute()] bool MANAGE_TYPE_IDSpecified) { object[] results = this.Invoke("ManageTypeParamGetList", new object[] { MANAGE_TYPE_ID, MANAGE_TYPE_IDSpecified}); return ((MANAGE_TYPE_PARAM[])(results[0])); } /// public void ManageTypeParamGetListAsync(int MANAGE_TYPE_ID, bool MANAGE_TYPE_IDSpecified) { this.ManageTypeParamGetListAsync(MANAGE_TYPE_ID, MANAGE_TYPE_IDSpecified, null); } /// public void ManageTypeParamGetListAsync(int MANAGE_TYPE_ID, bool MANAGE_TYPE_IDSpecified, object userState) { if ((this.ManageTypeParamGetListOperationCompleted == null)) { this.ManageTypeParamGetListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnManageTypeParamGetListOperationCompleted); } this.InvokeAsync("ManageTypeParamGetList", new object[] { MANAGE_TYPE_ID, MANAGE_TYPE_IDSpecified}, this.ManageTypeParamGetListOperationCompleted, userState); } private void OnManageTypeParamGetListOperationCompleted(object arg) { if ((this.ManageTypeParamGetListCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ManageTypeParamGetListCompleted(this, new ManageTypeParamGetListCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// public new void CancelAsync(object userState) { base.CancelAsync(userState); } private bool IsLocalFileSystemWebService(string url) { if (((url == null) || (url == string.Empty))) { return false; } System.Uri wsUri = new System.Uri(url); if (((wsUri.Port >= 1024) && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) { return true; } return false; } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.9037.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.datacontract.org/2004/07/SiaSun.LMS.Model")] public partial class MANAGE_TYPE_PARAM { private int mANAGE_TYPE_IDField; private bool mANAGE_TYPE_IDFieldSpecified; private string pARAM_CODEField; private string pARAM_FLAGField; private int pARAM_IDField; private bool pARAM_IDFieldSpecified; private string pARAM_VALUEField; /// public int MANAGE_TYPE_ID { get { return this.mANAGE_TYPE_IDField; } set { this.mANAGE_TYPE_IDField = value; } } /// [System.Xml.Serialization.XmlIgnoreAttribute()] public bool MANAGE_TYPE_IDSpecified { get { return this.mANAGE_TYPE_IDFieldSpecified; } set { this.mANAGE_TYPE_IDFieldSpecified = value; } } /// [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] public string PARAM_CODE { get { return this.pARAM_CODEField; } set { this.pARAM_CODEField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] public string PARAM_FLAG { get { return this.pARAM_FLAGField; } set { this.pARAM_FLAGField = value; } } /// public int PARAM_ID { get { return this.pARAM_IDField; } set { this.pARAM_IDField = value; } } /// [System.Xml.Serialization.XmlIgnoreAttribute()] public bool PARAM_IDSpecified { get { return this.pARAM_IDFieldSpecified; } set { this.pARAM_IDFieldSpecified = value; } } /// [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] public string PARAM_VALUE { get { return this.pARAM_VALUEField; } set { this.pARAM_VALUEField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] public delegate void ControlTranslateCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] public delegate void RecordCreateCompletedEventHandler(object sender, RecordCreateCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class RecordCreateCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal RecordCreateCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public bool RecordCreateResult { get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } /// public bool RecordCreateResultSpecified { get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[1])); } } /// public string sResult { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[2])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] public delegate void StationPickCompleteCompletedEventHandler(object sender, StationPickCompleteCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class StationPickCompleteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal StationPickCompleteCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public bool StationPickCompleteResult { get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } /// public bool StationPickCompleteResultSpecified { get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[1])); } } /// public string sResult { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[2])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] public delegate void ManageTypeParamGetListCompletedEventHandler(object sender, ManageTypeParamGetListCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class ManageTypeParamGetListCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal ManageTypeParamGetListCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public MANAGE_TYPE_PARAM[] Result { get { this.RaiseExceptionIfNecessary(); return ((MANAGE_TYPE_PARAM[])(this.results[0])); } } } } #pragma warning restore 1591