You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

304 lines
11 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
//
// 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。
//
#pragma warning disable 1591
namespace MaterialTraceability.WebService.MiSFCQueryQtyServiceService {
using System;
using System.Web.Services;
using System.Diagnostics;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
using System.ComponentModel;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3190.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="MiSFCQueryQtyServiceBinding", Namespace="http://machineintegration.ws.atlmes.com/")]
public partial class MiSFCQueryQtyServiceService : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback sfcQueryQtyOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
/// <remarks/>
public MiSFCQueryQtyServiceService() {
this.Url = global::MaterialTraceability.WebService.Properties.Settings.Default.MaterialTraceability_WebService_MiSFCQueryQtyServiceService_MiSFCQueryQtyServiceService;
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;
}
}
/// <remarks/>
public event sfcQueryQtyCompletedEventHandler sfcQueryQtyCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)]
[return: System.Xml.Serialization.XmlElementAttribute("sfcQueryQtyResponse", Namespace="http://machineintegration.ws.atlmes.com/")]
public sfcQueryQtyResponse sfcQueryQty([System.Xml.Serialization.XmlElementAttribute("sfcQueryQty", Namespace="http://machineintegration.ws.atlmes.com/")] sfcQueryQty sfcQueryQty1) {
object[] results = this.Invoke("sfcQueryQty", new object[] {
sfcQueryQty1});
return ((sfcQueryQtyResponse)(results[0]));
}
/// <remarks/>
public void sfcQueryQtyAsync(sfcQueryQty sfcQueryQty1) {
this.sfcQueryQtyAsync(sfcQueryQty1, null);
}
/// <remarks/>
public void sfcQueryQtyAsync(sfcQueryQty sfcQueryQty1, object userState) {
if ((this.sfcQueryQtyOperationCompleted == null)) {
this.sfcQueryQtyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsfcQueryQtyOperationCompleted);
}
this.InvokeAsync("sfcQueryQty", new object[] {
sfcQueryQty1}, this.sfcQueryQtyOperationCompleted, userState);
}
private void OnsfcQueryQtyOperationCompleted(object arg) {
if ((this.sfcQueryQtyCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.sfcQueryQtyCompleted(this, new sfcQueryQtyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
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;
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3190.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://machineintegration.ws.atlmes.com/")]
public partial class sfcQueryQty {
private miSFCQueryQtyRequest miSFCQueryQtyRequestField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public miSFCQueryQtyRequest MiSFCQueryQtyRequest {
get {
return this.miSFCQueryQtyRequestField;
}
set {
this.miSFCQueryQtyRequestField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3190.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://machineintegration.ws.atlmes.com/")]
public partial class miSFCQueryQtyRequest {
private string siteField;
private string sfcField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string site {
get {
return this.siteField;
}
set {
this.siteField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string sfc {
get {
return this.sfcField;
}
set {
this.sfcField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3190.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://machineintegration.ws.atlmes.com/")]
public partial class miSFCQueryQtyResponse {
private int codeField;
private bool codeFieldSpecified;
private string messageField;
private string sfcField;
private string qtyField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public int code {
get {
return this.codeField;
}
set {
this.codeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool codeSpecified {
get {
return this.codeFieldSpecified;
}
set {
this.codeFieldSpecified = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string message {
get {
return this.messageField;
}
set {
this.messageField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string sfc {
get {
return this.sfcField;
}
set {
this.sfcField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string qty {
get {
return this.qtyField;
}
set {
this.qtyField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3190.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://machineintegration.ws.atlmes.com/")]
public partial class sfcQueryQtyResponse {
private miSFCQueryQtyResponse returnField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public miSFCQueryQtyResponse @return {
get {
return this.returnField;
}
set {
this.returnField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3190.0")]
public delegate void sfcQueryQtyCompletedEventHandler(object sender, sfcQueryQtyCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3190.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class sfcQueryQtyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal sfcQueryQtyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public sfcQueryQtyResponse Result {
get {
this.RaiseExceptionIfNecessary();
return ((sfcQueryQtyResponse)(this.results[0]));
}
}
}
}
#pragma warning restore 1591