//------------------------------------------------------------------------------
//
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
//
//------------------------------------------------------------------------------
//
// 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。
//
#pragma warning disable 1591
namespace DeviceWCS.tranSRM {
using System.Diagnostics;
using System;
using System.Xml.Serialization;
using System.ComponentModel;
using System.Web.Services.Protocols;
using System.Web.Services;
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="BasicHttpBinding_ISrmTranService", Namespace="http://tempuri.org/")]
public partial class SrmTranService : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback HasTranGoodsOperationCompleted;
private System.Threading.SendOrPostCallback ErrorTranGoodsOperationCompleted;
private System.Threading.SendOrPostCallback GetSrmConveyorStationInfoOperationCompleted;
private System.Threading.SendOrPostCallback SendGoodsSizeOperationCompleted;
private System.Threading.SendOrPostCallback SendGoodsReadyOperationCompleted;
private System.Threading.SendOrPostCallback SendWeightOkOperationCompleted;
private System.Threading.SendOrPostCallback GetGoodsWeightOperationCompleted;
private System.Threading.SendOrPostCallback GetGoodsBarcodeOperationCompleted;
private System.Threading.SendOrPostCallback IsPassedOperationCompleted;
private System.Threading.SendOrPostCallback SendTranStopOperationCompleted;
private System.Threading.SendOrPostCallback SendTranDeleteOperationCompleted;
private System.Threading.SendOrPostCallback SendTranResetOperationCompleted;
private System.Threading.SendOrPostCallback ClearTranGoodsOperationCompleted;
private System.Threading.SendOrPostCallback FinishTaskOperationCompleted;
private System.Threading.SendOrPostCallback SendGoodsTypeOperationCompleted;
private System.Threading.SendOrPostCallback UnlockTranOperationCompleted;
private System.Threading.SendOrPostCallback UnFullTranOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
///
public SrmTranService() {
this.Url = global::DeviceWCS.Properties.Settings.Default.DeviceWCS_tranSRM_SrmTranService;
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 HasTranGoodsCompletedEventHandler HasTranGoodsCompleted;
///
public event ErrorTranGoodsCompletedEventHandler ErrorTranGoodsCompleted;
///
public event GetSrmConveyorStationInfoCompletedEventHandler GetSrmConveyorStationInfoCompleted;
///
public event SendGoodsSizeCompletedEventHandler SendGoodsSizeCompleted;
///
public event SendGoodsReadyCompletedEventHandler SendGoodsReadyCompleted;
///
public event SendWeightOkCompletedEventHandler SendWeightOkCompleted;
///
public event GetGoodsWeightCompletedEventHandler GetGoodsWeightCompleted;
///
public event GetGoodsBarcodeCompletedEventHandler GetGoodsBarcodeCompleted;
///
public event IsPassedCompletedEventHandler IsPassedCompleted;
///
public event SendTranStopCompletedEventHandler SendTranStopCompleted;
///
public event SendTranDeleteCompletedEventHandler SendTranDeleteCompleted;
///
public event SendTranResetCompletedEventHandler SendTranResetCompleted;
///
public event ClearTranGoodsCompletedEventHandler ClearTranGoodsCompleted;
///
public event FinishTaskCompletedEventHandler FinishTaskCompleted;
///
public event SendGoodsTypeCompletedEventHandler SendGoodsTypeCompleted;
///
public event UnlockTranCompletedEventHandler UnlockTranCompleted;
///
public event UnFullTranCompletedEventHandler UnFullTranCompleted;
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/HasTranGoods", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[return: System.Xml.Serialization.XmlArrayAttribute()]
[return: System.Xml.Serialization.XmlArrayItemAttribute(Namespace="http://tempuri.org/", IsNullable=false)]
public int[] HasTranGoods() {
object[] results = this.Invoke("HasTranGoods", new object[0]);
return ((int[])(results[0]));
}
///
public void HasTranGoodsAsync() {
this.HasTranGoodsAsync(null);
}
///
public void HasTranGoodsAsync(object userState) {
if ((this.HasTranGoodsOperationCompleted == null)) {
this.HasTranGoodsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnHasTranGoodsOperationCompleted);
}
this.InvokeAsync("HasTranGoods", new object[0], this.HasTranGoodsOperationCompleted, userState);
}
private void OnHasTranGoodsOperationCompleted(object arg) {
if ((this.HasTranGoodsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.HasTranGoodsCompleted(this, new HasTranGoodsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/ErrorTranGoods", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[return: System.Xml.Serialization.XmlArrayAttribute()]
[return: System.Xml.Serialization.XmlArrayItemAttribute(Namespace="http://tempuri.org/", IsNullable=false)]
public int[] ErrorTranGoods() {
object[] results = this.Invoke("ErrorTranGoods", new object[0]);
return ((int[])(results[0]));
}
///
public void ErrorTranGoodsAsync() {
this.ErrorTranGoodsAsync(null);
}
///
public void ErrorTranGoodsAsync(object userState) {
if ((this.ErrorTranGoodsOperationCompleted == null)) {
this.ErrorTranGoodsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnErrorTranGoodsOperationCompleted);
}
this.InvokeAsync("ErrorTranGoods", new object[0], this.ErrorTranGoodsOperationCompleted, userState);
}
private void OnErrorTranGoodsOperationCompleted(object arg) {
if ((this.ErrorTranGoodsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ErrorTranGoodsCompleted(this, new ErrorTranGoodsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/GetSrmConveyorStationInfo", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public string GetSrmConveyorStationInfo(int transPlaceId) {
object[] results = this.Invoke("GetSrmConveyorStationInfo", new object[] {
transPlaceId});
return ((string)(results[0]));
}
///
public void GetSrmConveyorStationInfoAsync(int transPlaceId) {
this.GetSrmConveyorStationInfoAsync(transPlaceId, null);
}
///
public void GetSrmConveyorStationInfoAsync(int transPlaceId, object userState) {
if ((this.GetSrmConveyorStationInfoOperationCompleted == null)) {
this.GetSrmConveyorStationInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSrmConveyorStationInfoOperationCompleted);
}
this.InvokeAsync("GetSrmConveyorStationInfo", new object[] {
transPlaceId}, this.GetSrmConveyorStationInfoOperationCompleted, userState);
}
private void OnGetSrmConveyorStationInfoOperationCompleted(object arg) {
if ((this.GetSrmConveyorStationInfoCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetSrmConveyorStationInfoCompleted(this, new GetSrmConveyorStationInfoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/SendGoodsSize", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public bool SendGoodsSize(int transId, double length, double width, double height) {
object[] results = this.Invoke("SendGoodsSize", new object[] {
transId,
length,
width,
height});
return ((bool)(results[0]));
}
///
public void SendGoodsSizeAsync(int transId, double length, double width, double height) {
this.SendGoodsSizeAsync(transId, length, width, height, null);
}
///
public void SendGoodsSizeAsync(int transId, double length, double width, double height, object userState) {
if ((this.SendGoodsSizeOperationCompleted == null)) {
this.SendGoodsSizeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendGoodsSizeOperationCompleted);
}
this.InvokeAsync("SendGoodsSize", new object[] {
transId,
length,
width,
height}, this.SendGoodsSizeOperationCompleted, userState);
}
private void OnSendGoodsSizeOperationCompleted(object arg) {
if ((this.SendGoodsSizeCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SendGoodsSizeCompleted(this, new SendGoodsSizeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/SendGoodsReady", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public int SendGoodsReady(int startId, int endId, int taskId, int fatherid) {
object[] results = this.Invoke("SendGoodsReady", new object[] {
startId,
endId,
taskId,
fatherid});
return ((int)(results[0]));
}
///
public void SendGoodsReadyAsync(int startId, int endId, int taskId, int fatherid) {
this.SendGoodsReadyAsync(startId, endId, taskId, fatherid, null);
}
///
public void SendGoodsReadyAsync(int startId, int endId, int taskId, int fatherid, object userState) {
if ((this.SendGoodsReadyOperationCompleted == null)) {
this.SendGoodsReadyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendGoodsReadyOperationCompleted);
}
this.InvokeAsync("SendGoodsReady", new object[] {
startId,
endId,
taskId,
fatherid}, this.SendGoodsReadyOperationCompleted, userState);
}
private void OnSendGoodsReadyOperationCompleted(object arg) {
if ((this.SendGoodsReadyCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SendGoodsReadyCompleted(this, new SendGoodsReadyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/SendWeightOk", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public bool SendWeightOk(int transId, bool isOk) {
object[] results = this.Invoke("SendWeightOk", new object[] {
transId,
isOk});
return ((bool)(results[0]));
}
///
public void SendWeightOkAsync(int transId, bool isOk) {
this.SendWeightOkAsync(transId, isOk, null);
}
///
public void SendWeightOkAsync(int transId, bool isOk, object userState) {
if ((this.SendWeightOkOperationCompleted == null)) {
this.SendWeightOkOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendWeightOkOperationCompleted);
}
this.InvokeAsync("SendWeightOk", new object[] {
transId,
isOk}, this.SendWeightOkOperationCompleted, userState);
}
private void OnSendWeightOkOperationCompleted(object arg) {
if ((this.SendWeightOkCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SendWeightOkCompleted(this, new SendWeightOkCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/GetGoodsWeight", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public string GetGoodsWeight(int transId) {
object[] results = this.Invoke("GetGoodsWeight", new object[] {
transId});
return ((string)(results[0]));
}
///
public void GetGoodsWeightAsync(int transId) {
this.GetGoodsWeightAsync(transId, null);
}
///
public void GetGoodsWeightAsync(int transId, object userState) {
if ((this.GetGoodsWeightOperationCompleted == null)) {
this.GetGoodsWeightOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetGoodsWeightOperationCompleted);
}
this.InvokeAsync("GetGoodsWeight", new object[] {
transId}, this.GetGoodsWeightOperationCompleted, userState);
}
private void OnGetGoodsWeightOperationCompleted(object arg) {
if ((this.GetGoodsWeightCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetGoodsWeightCompleted(this, new GetGoodsWeightCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/GetGoodsBarcode", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public string GetGoodsBarcode(int transId) {
object[] results = this.Invoke("GetGoodsBarcode", new object[] {
transId});
return ((string)(results[0]));
}
///
public void GetGoodsBarcodeAsync(int transId) {
this.GetGoodsBarcodeAsync(transId, null);
}
///
public void GetGoodsBarcodeAsync(int transId, object userState) {
if ((this.GetGoodsBarcodeOperationCompleted == null)) {
this.GetGoodsBarcodeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetGoodsBarcodeOperationCompleted);
}
this.InvokeAsync("GetGoodsBarcode", new object[] {
transId}, this.GetGoodsBarcodeOperationCompleted, userState);
}
private void OnGetGoodsBarcodeOperationCompleted(object arg) {
if ((this.GetGoodsBarcodeCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetGoodsBarcodeCompleted(this, new GetGoodsBarcodeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/IsPassed", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public int IsPassed(int transId) {
object[] results = this.Invoke("IsPassed", new object[] {
transId});
return ((int)(results[0]));
}
///
public void IsPassedAsync(int transId) {
this.IsPassedAsync(transId, null);
}
///
public void IsPassedAsync(int transId, object userState) {
if ((this.IsPassedOperationCompleted == null)) {
this.IsPassedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnIsPassedOperationCompleted);
}
this.InvokeAsync("IsPassed", new object[] {
transId}, this.IsPassedOperationCompleted, userState);
}
private void OnIsPassedOperationCompleted(object arg) {
if ((this.IsPassedCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.IsPassedCompleted(this, new IsPassedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/SendTranStop", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public int SendTranStop(int transId) {
object[] results = this.Invoke("SendTranStop", new object[] {
transId});
return ((int)(results[0]));
}
///
public void SendTranStopAsync(int transId) {
this.SendTranStopAsync(transId, null);
}
///
public void SendTranStopAsync(int transId, object userState) {
if ((this.SendTranStopOperationCompleted == null)) {
this.SendTranStopOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendTranStopOperationCompleted);
}
this.InvokeAsync("SendTranStop", new object[] {
transId}, this.SendTranStopOperationCompleted, userState);
}
private void OnSendTranStopOperationCompleted(object arg) {
if ((this.SendTranStopCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SendTranStopCompleted(this, new SendTranStopCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/SendTranDelete", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public int SendTranDelete(int transId) {
object[] results = this.Invoke("SendTranDelete", new object[] {
transId});
return ((int)(results[0]));
}
///
public void SendTranDeleteAsync(int transId) {
this.SendTranDeleteAsync(transId, null);
}
///
public void SendTranDeleteAsync(int transId, object userState) {
if ((this.SendTranDeleteOperationCompleted == null)) {
this.SendTranDeleteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendTranDeleteOperationCompleted);
}
this.InvokeAsync("SendTranDelete", new object[] {
transId}, this.SendTranDeleteOperationCompleted, userState);
}
private void OnSendTranDeleteOperationCompleted(object arg) {
if ((this.SendTranDeleteCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SendTranDeleteCompleted(this, new SendTranDeleteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/SendTranReset", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public int SendTranReset(int transId) {
object[] results = this.Invoke("SendTranReset", new object[] {
transId});
return ((int)(results[0]));
}
///
public void SendTranResetAsync(int transId) {
this.SendTranResetAsync(transId, null);
}
///
public void SendTranResetAsync(int transId, object userState) {
if ((this.SendTranResetOperationCompleted == null)) {
this.SendTranResetOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendTranResetOperationCompleted);
}
this.InvokeAsync("SendTranReset", new object[] {
transId}, this.SendTranResetOperationCompleted, userState);
}
private void OnSendTranResetOperationCompleted(object arg) {
if ((this.SendTranResetCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SendTranResetCompleted(this, new SendTranResetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/ClearTranGoods", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public bool ClearTranGoods(int transId) {
object[] results = this.Invoke("ClearTranGoods", new object[] {
transId});
return ((bool)(results[0]));
}
///
public void ClearTranGoodsAsync(int transId) {
this.ClearTranGoodsAsync(transId, null);
}
///
public void ClearTranGoodsAsync(int transId, object userState) {
if ((this.ClearTranGoodsOperationCompleted == null)) {
this.ClearTranGoodsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnClearTranGoodsOperationCompleted);
}
this.InvokeAsync("ClearTranGoods", new object[] {
transId}, this.ClearTranGoodsOperationCompleted, userState);
}
private void OnClearTranGoodsOperationCompleted(object arg) {
if ((this.ClearTranGoodsCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ClearTranGoodsCompleted(this, new ClearTranGoodsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/FinishTask", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public int FinishTask(int transId) {
object[] results = this.Invoke("FinishTask", new object[] {
transId});
return ((int)(results[0]));
}
///
public void FinishTaskAsync(int transId) {
this.FinishTaskAsync(transId, null);
}
///
public void FinishTaskAsync(int transId, object userState) {
if ((this.FinishTaskOperationCompleted == null)) {
this.FinishTaskOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFinishTaskOperationCompleted);
}
this.InvokeAsync("FinishTask", new object[] {
transId}, this.FinishTaskOperationCompleted, userState);
}
private void OnFinishTaskOperationCompleted(object arg) {
if ((this.FinishTaskCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.FinishTaskCompleted(this, new FinishTaskCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/SendGoodsType", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public bool SendGoodsType(int transId, int palletType) {
object[] results = this.Invoke("SendGoodsType", new object[] {
transId,
palletType});
return ((bool)(results[0]));
}
///
public void SendGoodsTypeAsync(int transId, int palletType) {
this.SendGoodsTypeAsync(transId, palletType, null);
}
///
public void SendGoodsTypeAsync(int transId, int palletType, object userState) {
if ((this.SendGoodsTypeOperationCompleted == null)) {
this.SendGoodsTypeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendGoodsTypeOperationCompleted);
}
this.InvokeAsync("SendGoodsType", new object[] {
transId,
palletType}, this.SendGoodsTypeOperationCompleted, userState);
}
private void OnSendGoodsTypeOperationCompleted(object arg) {
if ((this.SendGoodsTypeCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SendGoodsTypeCompleted(this, new SendGoodsTypeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/UnlockTran", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public bool UnlockTran(int east) {
object[] results = this.Invoke("UnlockTran", new object[] {
east});
return ((bool)(results[0]));
}
///
public void UnlockTranAsync(int east) {
this.UnlockTranAsync(east, null);
}
///
public void UnlockTranAsync(int east, object userState) {
if ((this.UnlockTranOperationCompleted == null)) {
this.UnlockTranOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUnlockTranOperationCompleted);
}
this.InvokeAsync("UnlockTran", new object[] {
east}, this.UnlockTranOperationCompleted, userState);
}
private void OnUnlockTranOperationCompleted(object arg) {
if ((this.UnlockTranCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.UnlockTranCompleted(this, new UnlockTranCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/ISrmTranService/UnFullTran", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public bool UnFullTran(int east) {
object[] results = this.Invoke("UnFullTran", new object[] {
east});
return ((bool)(results[0]));
}
///
public void UnFullTranAsync(int east) {
this.UnFullTranAsync(east, null);
}
///
public void UnFullTranAsync(int east, object userState) {
if ((this.UnFullTranOperationCompleted == null)) {
this.UnFullTranOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUnFullTranOperationCompleted);
}
this.InvokeAsync("UnFullTran", new object[] {
east}, this.UnFullTranOperationCompleted, userState);
}
private void OnUnFullTranOperationCompleted(object arg) {
if ((this.UnFullTranCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.UnFullTranCompleted(this, new UnFullTranCompletedEventArgs(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.Web.Services", "4.8.9032.0")]
public delegate void HasTranGoodsCompletedEventHandler(object sender, HasTranGoodsCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class HasTranGoodsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal HasTranGoodsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public int[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((int[])(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void ErrorTranGoodsCompletedEventHandler(object sender, ErrorTranGoodsCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ErrorTranGoodsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ErrorTranGoodsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public int[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((int[])(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void GetSrmConveyorStationInfoCompletedEventHandler(object sender, GetSrmConveyorStationInfoCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetSrmConveyorStationInfoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetSrmConveyorStationInfoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void SendGoodsSizeCompletedEventHandler(object sender, SendGoodsSizeCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class SendGoodsSizeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal SendGoodsSizeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void SendGoodsReadyCompletedEventHandler(object sender, SendGoodsReadyCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class SendGoodsReadyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal SendGoodsReadyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public int Result {
get {
this.RaiseExceptionIfNecessary();
return ((int)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void SendWeightOkCompletedEventHandler(object sender, SendWeightOkCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class SendWeightOkCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal SendWeightOkCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void GetGoodsWeightCompletedEventHandler(object sender, GetGoodsWeightCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetGoodsWeightCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetGoodsWeightCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void GetGoodsBarcodeCompletedEventHandler(object sender, GetGoodsBarcodeCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetGoodsBarcodeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetGoodsBarcodeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void IsPassedCompletedEventHandler(object sender, IsPassedCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class IsPassedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal IsPassedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public int Result {
get {
this.RaiseExceptionIfNecessary();
return ((int)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void SendTranStopCompletedEventHandler(object sender, SendTranStopCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class SendTranStopCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal SendTranStopCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public int Result {
get {
this.RaiseExceptionIfNecessary();
return ((int)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void SendTranDeleteCompletedEventHandler(object sender, SendTranDeleteCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class SendTranDeleteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal SendTranDeleteCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public int Result {
get {
this.RaiseExceptionIfNecessary();
return ((int)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void SendTranResetCompletedEventHandler(object sender, SendTranResetCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class SendTranResetCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal SendTranResetCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public int Result {
get {
this.RaiseExceptionIfNecessary();
return ((int)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void ClearTranGoodsCompletedEventHandler(object sender, ClearTranGoodsCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ClearTranGoodsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ClearTranGoodsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void FinishTaskCompletedEventHandler(object sender, FinishTaskCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class FinishTaskCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal FinishTaskCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public int Result {
get {
this.RaiseExceptionIfNecessary();
return ((int)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void SendGoodsTypeCompletedEventHandler(object sender, SendGoodsTypeCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class SendGoodsTypeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal SendGoodsTypeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void UnlockTranCompletedEventHandler(object sender, UnlockTranCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class UnlockTranCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal UnlockTranCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
public delegate void UnFullTranCompletedEventHandler(object sender, UnFullTranCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class UnFullTranCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal UnFullTranCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public bool Result {
get {
this.RaiseExceptionIfNecessary();
return ((bool)(this.results[0]));
}
}
}
}
#pragma warning restore 1591