You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
400 lines
19 KiB
400 lines
19 KiB
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// 此代码由工具生成。
|
|
// 运行时版本:4.0.30319.42000
|
|
//
|
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
|
// 重新生成代码,这些更改将会丢失。
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
//
|
|
// 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。
|
|
//
|
|
#pragma warning disable 1591
|
|
|
|
namespace FacOneZPStation.WebReference {
|
|
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.6.1590.0")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[System.Web.Services.WebServiceBindingAttribute(Name="WMSWebServiceSoap", Namespace="http://tempuri.org/")]
|
|
public partial class WMSWebService : System.Web.Services.Protocols.SoapHttpClientProtocol {
|
|
|
|
private System.Threading.SendOrPostCallback ConnectTestOperationCompleted;
|
|
|
|
private System.Threading.SendOrPostCallback WMSSprayingForAppOperationCompleted;
|
|
|
|
private System.Threading.SendOrPostCallback WMSSprayingForCSOperationCompleted;
|
|
|
|
private System.Threading.SendOrPostCallback AddStockInBarcodeOperationCompleted;
|
|
|
|
private System.Threading.SendOrPostCallback InsertInspectOperationCompleted;
|
|
|
|
private System.Threading.SendOrPostCallback WMSInterfaceStockInOperationCompleted;
|
|
|
|
private bool useDefaultCredentialsSetExplicitly;
|
|
|
|
/// <remarks/>
|
|
public WMSWebService() {
|
|
this.Url = global::FacOneZPStation.Properties.Settings.Default.FacOneZPStation_WebReference_WMSWebService;
|
|
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 ConnectTestCompletedEventHandler ConnectTestCompleted;
|
|
|
|
/// <remarks/>
|
|
public event WMSSprayingForAppCompletedEventHandler WMSSprayingForAppCompleted;
|
|
|
|
/// <remarks/>
|
|
public event WMSSprayingForCSCompletedEventHandler WMSSprayingForCSCompleted;
|
|
|
|
/// <remarks/>
|
|
public event AddStockInBarcodeCompletedEventHandler AddStockInBarcodeCompleted;
|
|
|
|
/// <remarks/>
|
|
public event InsertInspectCompletedEventHandler InsertInspectCompleted;
|
|
|
|
/// <remarks/>
|
|
public event WMSInterfaceStockInCompletedEventHandler WMSInterfaceStockInCompleted;
|
|
|
|
/// <remarks/>
|
|
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/ConnectTest", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
|
public string ConnectTest() {
|
|
object[] results = this.Invoke("ConnectTest", new object[0]);
|
|
return ((string)(results[0]));
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void ConnectTestAsync() {
|
|
this.ConnectTestAsync(null);
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void ConnectTestAsync(object userState) {
|
|
if ((this.ConnectTestOperationCompleted == null)) {
|
|
this.ConnectTestOperationCompleted = new System.Threading.SendOrPostCallback(this.OnConnectTestOperationCompleted);
|
|
}
|
|
this.InvokeAsync("ConnectTest", new object[0], this.ConnectTestOperationCompleted, userState);
|
|
}
|
|
|
|
private void OnConnectTestOperationCompleted(object arg) {
|
|
if ((this.ConnectTestCompleted != null)) {
|
|
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
|
this.ConnectTestCompleted(this, new ConnectTestCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/WMSSprayingForApp", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
|
public void WMSSprayingForApp(string barcode) {
|
|
this.Invoke("WMSSprayingForApp", new object[] {
|
|
barcode});
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void WMSSprayingForAppAsync(string barcode) {
|
|
this.WMSSprayingForAppAsync(barcode, null);
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void WMSSprayingForAppAsync(string barcode, object userState) {
|
|
if ((this.WMSSprayingForAppOperationCompleted == null)) {
|
|
this.WMSSprayingForAppOperationCompleted = new System.Threading.SendOrPostCallback(this.OnWMSSprayingForAppOperationCompleted);
|
|
}
|
|
this.InvokeAsync("WMSSprayingForApp", new object[] {
|
|
barcode}, this.WMSSprayingForAppOperationCompleted, userState);
|
|
}
|
|
|
|
private void OnWMSSprayingForAppOperationCompleted(object arg) {
|
|
if ((this.WMSSprayingForAppCompleted != null)) {
|
|
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
|
this.WMSSprayingForAppCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/WMSSprayingForCS", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
|
public bool WMSSprayingForCS(string barcode, int isOK, out string errorReason) {
|
|
object[] results = this.Invoke("WMSSprayingForCS", new object[] {
|
|
barcode,
|
|
isOK});
|
|
errorReason = ((string)(results[1]));
|
|
return ((bool)(results[0]));
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void WMSSprayingForCSAsync(string barcode, int isOK) {
|
|
this.WMSSprayingForCSAsync(barcode, isOK, null);
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void WMSSprayingForCSAsync(string barcode, int isOK, object userState) {
|
|
if ((this.WMSSprayingForCSOperationCompleted == null)) {
|
|
this.WMSSprayingForCSOperationCompleted = new System.Threading.SendOrPostCallback(this.OnWMSSprayingForCSOperationCompleted);
|
|
}
|
|
this.InvokeAsync("WMSSprayingForCS", new object[] {
|
|
barcode,
|
|
isOK}, this.WMSSprayingForCSOperationCompleted, userState);
|
|
}
|
|
|
|
private void OnWMSSprayingForCSOperationCompleted(object arg) {
|
|
if ((this.WMSSprayingForCSCompleted != null)) {
|
|
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
|
this.WMSSprayingForCSCompleted(this, new WMSSprayingForCSCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/AddStockInBarcode", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
|
public void AddStockInBarcode(string barcode) {
|
|
this.Invoke("AddStockInBarcode", new object[] {
|
|
barcode});
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void AddStockInBarcodeAsync(string barcode) {
|
|
this.AddStockInBarcodeAsync(barcode, null);
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void AddStockInBarcodeAsync(string barcode, object userState) {
|
|
if ((this.AddStockInBarcodeOperationCompleted == null)) {
|
|
this.AddStockInBarcodeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddStockInBarcodeOperationCompleted);
|
|
}
|
|
this.InvokeAsync("AddStockInBarcode", new object[] {
|
|
barcode}, this.AddStockInBarcodeOperationCompleted, userState);
|
|
}
|
|
|
|
private void OnAddStockInBarcodeOperationCompleted(object arg) {
|
|
if ((this.AddStockInBarcodeCompleted != null)) {
|
|
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
|
this.AddStockInBarcodeCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/InsertInspect", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
|
public void InsertInspect(string barcode, string InspectTimes) {
|
|
this.Invoke("InsertInspect", new object[] {
|
|
barcode,
|
|
InspectTimes});
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void InsertInspectAsync(string barcode, string InspectTimes) {
|
|
this.InsertInspectAsync(barcode, InspectTimes, null);
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void InsertInspectAsync(string barcode, string InspectTimes, object userState) {
|
|
if ((this.InsertInspectOperationCompleted == null)) {
|
|
this.InsertInspectOperationCompleted = new System.Threading.SendOrPostCallback(this.OnInsertInspectOperationCompleted);
|
|
}
|
|
this.InvokeAsync("InsertInspect", new object[] {
|
|
barcode,
|
|
InspectTimes}, this.InsertInspectOperationCompleted, userState);
|
|
}
|
|
|
|
private void OnInsertInspectOperationCompleted(object arg) {
|
|
if ((this.InsertInspectCompleted != null)) {
|
|
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
|
this.InsertInspectCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/WMSInterfaceStockIn", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
|
public bool WMSInterfaceStockIn(string barcode, string partNo, string batchNo, int isOK, string LineId) {
|
|
object[] results = this.Invoke("WMSInterfaceStockIn", new object[] {
|
|
barcode,
|
|
partNo,
|
|
batchNo,
|
|
isOK,
|
|
LineId});
|
|
return ((bool)(results[0]));
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void WMSInterfaceStockInAsync(string barcode, string partNo, string batchNo, int isOK, string LineId) {
|
|
this.WMSInterfaceStockInAsync(barcode, partNo, batchNo, isOK, LineId, null);
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void WMSInterfaceStockInAsync(string barcode, string partNo, string batchNo, int isOK, string LineId, object userState) {
|
|
if ((this.WMSInterfaceStockInOperationCompleted == null)) {
|
|
this.WMSInterfaceStockInOperationCompleted = new System.Threading.SendOrPostCallback(this.OnWMSInterfaceStockInOperationCompleted);
|
|
}
|
|
this.InvokeAsync("WMSInterfaceStockIn", new object[] {
|
|
barcode,
|
|
partNo,
|
|
batchNo,
|
|
isOK,
|
|
LineId}, this.WMSInterfaceStockInOperationCompleted, userState);
|
|
}
|
|
|
|
private void OnWMSInterfaceStockInOperationCompleted(object arg) {
|
|
if ((this.WMSInterfaceStockInCompleted != null)) {
|
|
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
|
this.WMSInterfaceStockInCompleted(this, new WMSInterfaceStockInCompletedEventArgs(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.Web.Services", "4.6.1590.0")]
|
|
public delegate void ConnectTestCompletedEventHandler(object sender, ConnectTestCompletedEventArgs e);
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
public partial class ConnectTestCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
|
|
|
private object[] results;
|
|
|
|
internal ConnectTestCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
|
base(exception, cancelled, userState) {
|
|
this.results = results;
|
|
}
|
|
|
|
/// <remarks/>
|
|
public string Result {
|
|
get {
|
|
this.RaiseExceptionIfNecessary();
|
|
return ((string)(this.results[0]));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
|
|
public delegate void WMSSprayingForAppCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
|
|
public delegate void WMSSprayingForCSCompletedEventHandler(object sender, WMSSprayingForCSCompletedEventArgs e);
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
public partial class WMSSprayingForCSCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
|
|
|
private object[] results;
|
|
|
|
internal WMSSprayingForCSCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
|
base(exception, cancelled, userState) {
|
|
this.results = results;
|
|
}
|
|
|
|
/// <remarks/>
|
|
public bool Result {
|
|
get {
|
|
this.RaiseExceptionIfNecessary();
|
|
return ((bool)(this.results[0]));
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
public string errorReason {
|
|
get {
|
|
this.RaiseExceptionIfNecessary();
|
|
return ((string)(this.results[1]));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
|
|
public delegate void AddStockInBarcodeCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
|
|
public delegate void InsertInspectCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
|
|
public delegate void WMSInterfaceStockInCompletedEventHandler(object sender, WMSInterfaceStockInCompletedEventArgs e);
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
public partial class WMSInterfaceStockInCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
|
|
|
private object[] results;
|
|
|
|
internal WMSInterfaceStockInCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
|
base(exception, cancelled, userState) {
|
|
this.results = results;
|
|
}
|
|
|
|
/// <remarks/>
|
|
public bool Result {
|
|
get {
|
|
this.RaiseExceptionIfNecessary();
|
|
return ((bool)(this.results[0]));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#pragma warning restore 1591
|