diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSoft.DataProject.csproj b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSoft.DataProject.csproj
index 18e24ff..4466aeb 100644
--- a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSoft.DataProject.csproj
+++ b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSoft.DataProject.csproj
@@ -89,6 +89,11 @@
True
Reference.map
+
+ True
+ True
+ Reference.map
+
True
True
@@ -121,6 +126,14 @@
Reference.map
+
+
+ MSDiscoCodeGenerator
+ Reference.cs
+
+
+ Reference.map
+
MSDiscoCodeGenerator
@@ -145,6 +158,17 @@
+
+ Dynamic
+ Web References\SAPCallBackDocVPNCS\
+ http://58.210.216.118:8072/sap/bc/srt/wsdl/bndg_EDB726E6976D07F194F30050569113DA/wsdl11/allinone/ws_policy/document%3fsap-client=900
+
+
+
+
+ Settings
+ ICSSoft_DataProject_SAPCallBackDocVPNCS_ZWMS_SK_WS_PZ
+
Dynamic
Web References\SAPCallBackDocVPN\
diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs
index b389024..0469a20 100644
--- a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs
+++ b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs
@@ -7686,7 +7686,7 @@ WHERE WorkPoint='{0}' AND Quantity>ISNULL(TransferQuantity, 0) order by Transfer
foreach (var data in item.DetailModels)
{
//修改源头单据
- ICSWareHouseService.MTDoc(item.TransCode, item.TransSequence, data.Quantity, item.WorkPoint, cmd, language);
+ ICSWareHouseService.MTDoc(item.TransCode, item.TransSequence, item.User, data.Quantity, item.WorkPoint, cmd, language);
TransType = item.Type;
//单据类型 12:按单转移 13:按物料转移
if (TransType == "13")
@@ -7695,17 +7695,34 @@ WHERE WorkPoint='{0}' AND Quantity>ISNULL(TransferQuantity, 0) order by Transfer
sql.Append($@"UPDATE ICSWareHouseLotInfo SET InvCode='{item.AfterInvCode}' WHERE LotNo='{data.LotNo}' AND WorkPoint='{item.WorkPoint}' AND InvCode='{item.BeforInvCode}' AND WarehouseCode='{item.WHCode}';
UPDATE ICSWareHouseLotInfoLog SET InvCode='' WHERE LotNo='{data.LotNo}' AND WorkPoint='{item.WorkPoint}' AND InvCode='{item.BeforInvCode}' ;
UPDATE ICSInventoryLot SET InvCode='{item.AfterInvCode}' WHERE LotNo='{data.LotNo}' AND InvCode='{item.BeforInvCode}' AND WorkPoint='{item.WorkPoint}' AND ExtensionID='{item.BeforExtensionID}';");
+ sql.Append($@"INSERT INTO [dbo].[ICSWareHouseLotInfoLog] ([ID], [Identification], [TransCode], [TransSequence], [LotNo], [InvCode], [FromWarehouseCode], [FromLocationCode], [ToWarehouseCode], [ToLocationCode], [Quantity], [Memo], [Lock], [TransType], [BusinessCode], [ERPUpload], [ERPID], [ERPDetailID], [ERPCode], [ERPSequence], [LogID], [MergeID], [MUSER], [MUSERName], [MTIME], [WorkPoint], [EATTRIBUTE1], [EATTRIBUTE2], [EATTRIBUTE3])
+ SELECT NEWID(), NEWID(), '{item.TransCode}', '{item.TransSequence}', '{data.LotNo}', '{item.BeforInvCode}', {item.WHCode}, NULL, NULL, NULL, {data.Quantity}, NULL, '0', N'10', N'35', '0', NULL, NULL, NULL, NULL, NULL, NULL,f.F_Account ,f.F_RealName , SYSDATETIME(), '{item.WorkPoint}', NULL, NULL, '{item.BeforExtensionID}' FROM Sys_SRM_User f WHERE f.F_Account='{item.User}' ;");
+ sql.Append($@"INSERT INTO [dbo].[ICSWareHouseLotInfoLog] ([ID], [Identification], [TransCode], [TransSequence], [LotNo], [InvCode], [FromWarehouseCode], [FromLocationCode], [ToWarehouseCode], [ToLocationCode], [Quantity], [Memo], [Lock], [TransType], [BusinessCode], [ERPUpload], [ERPID], [ERPDetailID], [ERPCode], [ERPSequence], [LogID], [MergeID], [MUSER], [MUSERName], [MTIME], [WorkPoint], [EATTRIBUTE1], [EATTRIBUTE2], [EATTRIBUTE3])
+ SELECT NEWID(), NEWID(), '{item.TransCode}', '{item.TransSequence}', '{data.LotNo}', '{item.AfterInvCode}', {item.WHCode}, NULL, NULL, NULL, {data.Quantity}, NULL, '0', N'10', N'36', '0', NULL, NULL, NULL, NULL, NULL, NULL,f.F_Account ,f.F_RealName , SYSDATETIME(), '{item.WorkPoint}', NULL, NULL, '{item.BeforExtensionID}' FROM Sys_SRM_User f WHERE f.F_Account='{item.User}' ;");
+
}
else if (TransType == "12")
{
sql.Append($@"UPDATE ICSInventoryLot SET ExtensionID='{item.AfterExtensionID}' WHERE LotNo='{data.LotNo}' AND InvCode='{item.BeforInvCode}' AND WorkPoint='{item.WorkPoint}' AND ExtensionID='{item.BeforExtensionID}';");
+ sql.Append($@"INSERT INTO [dbo].[ICSWareHouseLotInfoLog] ([ID], [Identification], [TransCode], [TransSequence], [LotNo], [InvCode], [FromWarehouseCode], [FromLocationCode], [ToWarehouseCode], [ToLocationCode], [Quantity], [Memo], [Lock], [TransType], [BusinessCode], [ERPUpload], [ERPID], [ERPDetailID], [ERPCode], [ERPSequence], [LogID], [MergeID], [MUSER], [MUSERName], [MTIME], [WorkPoint], [EATTRIBUTE1], [EATTRIBUTE2], [EATTRIBUTE3])
+ SELECT NEWID(), NEWID(), '{item.TransCode}', '{item.TransSequence}', '{data.LotNo}', '{item.BeforInvCode}', {item.WHCode}, NULL, NULL, NULL, {data.Quantity}, NULL, '0', N'10', N'35', '0', NULL, NULL, NULL, NULL, NULL, NULL,f.F_Account ,f.F_RealName , SYSDATETIME(), '{item.WorkPoint}', NULL, NULL, '{item.BeforExtensionID}' FROM Sys_SRM_User f WHERE f.F_Account='{item.User}' ;");
+ sql.Append($@"INSERT INTO [dbo].[ICSWareHouseLotInfoLog] ([ID], [Identification], [TransCode], [TransSequence], [LotNo], [InvCode], [FromWarehouseCode], [FromLocationCode], [ToWarehouseCode], [ToLocationCode], [Quantity], [Memo], [Lock], [TransType], [BusinessCode], [ERPUpload], [ERPID], [ERPDetailID], [ERPCode], [ERPSequence], [LogID], [MergeID], [MUSER], [MUSERName], [MTIME], [WorkPoint], [EATTRIBUTE1], [EATTRIBUTE2], [EATTRIBUTE3])
+ SELECT NEWID(), NEWID(), '{item.TransCode}', '{item.TransSequence}', '{data.LotNo}', '{item.BeforInvCode}', {item.WHCode}, NULL, NULL, NULL, {data.Quantity}, NULL, '0', N'10', N'36', '0', NULL, NULL, NULL, NULL, NULL, NULL,f.F_Account ,f.F_RealName , SYSDATETIME(), '{item.WorkPoint}', NULL, NULL, '{item.AfterExtensionID}' FROM Sys_SRM_User f WHERE f.F_Account='{item.User}' ;");
+
}
else
{
throw new Exception("单据类型不存在");
}
+ //上传ERP
+ if (Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["UploadERP"]))
+ {
+ ICSWareHouseService.MTDocDocERP(item.TransCode,cmd, language, item.WorkPoint);
+ }
}
+
+
}
DataTable table = DBHelper.SQlReturnData(sql.ToString(), cmd);
cmd.Transaction.Commit();
diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSWareHouseService.cs b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSWareHouseService.cs
index a084cbd..fd3e0bb 100644
--- a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSWareHouseService.cs
+++ b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSWareHouseService.cs
@@ -1328,22 +1328,29 @@ namespace ICSSoft.DataProject
///
///
///
- public static void MTDoc(string TransCode, string TransSequence, string Quantity, string WorkPoint, SqlCommand cmd, Dictionary language)
+ public static void MTDoc(string TransCode, string TransSequence,string User, string Quantity, string WorkPoint, SqlCommand cmd, Dictionary language)
{
try
{
- string sql = @"UPDATE a SET MTDOCQuantity=ISNULL(MTDOCQuantity,0)+'{2}'
+ string code = string.Format(language.GetNameByCode("WMSAPIInfo060"), User);
+ string error = string.Format(language.GetNameByCode("WMSAPIInfo091"), TransCode,"","", TransSequence);
+ string sql = $@"IF NOT EXISTS(SELECT F_Account FROM Sys_SRM_User WHERE F_Account='{User}' AND F_Location='{WorkPoint}')
+ BEGIN
+ RAISERROR('{code}',16,1);
+ RETURN
+ END
+
+ UPDATE a SET MTDOCQuantity=ISNULL(MTDOCQuantity,0)+'{Quantity}'
FROM ICSMTDOC a
- WHERE a.MTDOCCode='{0}' AND a.Sequence='{3}' AND a.WorkPoint='{1}'
+ WHERE a.MTDOCCode='{TransCode}' AND a.Sequence='{TransSequence}' AND a.WorkPoint='{WorkPoint}'
IF EXISTS(SELECT a.ID FROM ICSMTDOC a
- WHERE a.MTDOCCode='{0}' AND a.Sequence='{3}' and a.WorkPoint='{1}' AND a.Quantity
+ /// 形态转换接口
+ ///
+ ///
+ ///
+ ///
+ public static void MTDocDocERP(string Trancode, SqlCommand cmd, Dictionary language, string BusinessCode)
+ {
+ try
+ {
+ #region SAP(三层结构)
+ string IsSuccess = "";
+ string ErrorMessage = "";
+ string sql = $@" select Distinct A.MTDOCCode,A.WorkPoint from ICSMTDOC A
+ where A.MTDOCCode='{Trancode}' AND A.MTDOCType='2' ";
+ DataTable dt = DBHelper.SQlReturnData(sql, cmd);
+ if (dt.Rows.Count > 1)
+ {
+ throw new Exception(language.GetNameByCode("WMSAPIInfo202"));//单次提交单据数量卡控(只允许一张单据)
+ }
+ for (int i = 0; i < dt.Rows.Count; i++)
+ {
+ string chksql = @"select SUM(Quantity) AS Quantity,SUM(MTDOCQuantity) AS MTDOCQuantity from ICSMTDOC
+ where MTDOCCode='{0}' and WorkPoint='{1}'
+ GROUP BY MTDOCCode,WorkPoint";
+ chksql = string.Format(chksql, dt.Rows[i]["MTDOCCode"].ToString(), dt.Rows[i]["WorkPoint"].ToString());
+ DataTable chkdt = DBHelper.SQlReturnData(chksql, cmd);
+ if (Convert.ToDecimal(chkdt.Rows[0]["Quantity"]) == Convert.ToDecimal(chkdt.Rows[0]["MTDOCQuantity"]))
+ {
+ SAPCallBackDocVPN.ZWMS_SK_WS_PZ Client = new SAPCallBackDocVPN.ZWMS_SK_WS_PZ();
+ SAPCallBackDocVPN.ZWMS_SK_WS_PZ1 Info = new SAPCallBackDocVPN.ZWMS_SK_WS_PZ1();
+ Info.NEWID = Guid.NewGuid().ToString();
+ Info.DANJU = dt.Rows[i]["MTDOCCode"].ToString();
+ Info.STATE = "0";
+ List ItemList = new List();
+ List ItemLineList = new List();
+ Info.Z_FLAG = new SAPCallBackDocVPN.ZWEB_RETURN[1];
+ sql = @"select Distinct A.MTDOCCode,A.SAPSequence,A.InvCode,A.Sequence,A.Quantity,A.MTDOCQuantity
+ ,ISNULL(B.BatchCode,'') AS BatchCode from ICSMTDOC A
+ LEFT JOIN ICSExtension B ON B.ID=A.ExtensionID AND B.WorkPoint=A.WorkPoint
+ WHERE MTDOCCode='{0}' AND A.WorkPoint='{1}'";
+ sql = string.Format(sql, dt.Rows[i]["MTDOCCode"].ToString(), dt.Rows[i]["WorkPoint"].ToString());
+ DataTable Sapdt = DBHelper.SQlReturnData(sql, cmd);
+ foreach (DataRow dr in Sapdt.Rows)
+ {
+ if (Convert.ToDecimal(dr["Quantity"].ToString()) == Convert.ToDecimal(dr["MTDOCQuantity"].ToString()))
+ {
+ SAPCallBackDocVPN.ZWMS_PZ Item = new SAPCallBackDocVPN.ZWMS_PZ();
+ SAPCallBackDocVPN.ZWEBS_GERNR ItemLine = new SAPCallBackDocVPN.ZWEBS_GERNR();
+ Item.DANJU = dr["MTDOCCode"].ToString();
+ Item.POSNR = dr["SAPSequence"].ToString();
+ Item.LINGYSL = System.Decimal.Round(Convert.ToDecimal(dr["Quantity"].ToString()), 3);
+ ItemList.Add(Item);
+ if (dr["BatchCode"].ToString() != "")
+ {
+ ItemLine.DANJU = dr["MTDOCCode"].ToString();
+ ItemLine.POSNR = dr["SAPSequence"].ToString();
+ ItemLine.MATNR = dr["InvCode"].ToString();
+ ItemLine.GERNR = dr["BatchCode"].ToString();
+ ItemLineList.Add(ItemLine);
+ }
+ }
+ }
+ if (ItemList.Count > 0)
+ {
+ Info.Z_ITEM = ItemList.ToArray();
+ if (ItemLineList.Count > 0)
+ {
+ Info.Z_GERNR = ItemLineList.ToArray();
+ }
+ else
+ {
+ Info.Z_GERNR = new SAPCallBackDocVPN.ZWEBS_GERNR[1];
+ }
+ SAPCallBackDocVPN.ZWMS_SK_WS_PZResponse result = new SAPCallBackDocVPN.ZWMS_SK_WS_PZResponse();
+ result = Client.CallZWMS_SK_WS_PZ(Info);
+ if (result.Z_NULL == "N")
+ {
+ foreach (SAPCallBackDocVPN.ZWEB_RETURN resultItem in result.Z_FLAG)
+ {
+ IsSuccess = "N";
+ ErrorMessage += resultItem.L_MESSAGE + "/r/n";
+ }
+ }
+ }
+ }
+ }
+ if (IsSuccess == "N")
+ {
+ throw new Exception(ErrorMessage);
+ }
+ #endregion
+ }
+ catch (Exception)
+ {
+ throw;
+ }
+ }
#endregion
+
+#endregion
}
}
diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Properties/Settings.Designer.cs b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Properties/Settings.Designer.cs
index 00c78b4..5113068 100644
--- a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Properties/Settings.Designer.cs
+++ b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Properties/Settings.Designer.cs
@@ -12,7 +12,7 @@ namespace ICSSoft.DataProject.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.2.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -55,5 +55,16 @@ namespace ICSSoft.DataProject.Properties {
return ((string)(this["ICSSoft_DataProject_SAPCallBackDocVPN_ZWMS_SK_WS_PZ"]));
}
}
+
+ [global::System.Configuration.ApplicationScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.WebServiceUrl)]
+ [global::System.Configuration.DefaultSettingValueAttribute("http://ERPQA1.neway.com.cn:8000/sap/bc/srt/rfc/sap/zwms_sk_ws_pz/900/zwms_sk_ws_p" +
+ "z/zwms_sk_ws_pz")]
+ public string ICSSoft_DataProject_SAPCallBackDocVPNCS_ZWMS_SK_WS_PZ {
+ get {
+ return ((string)(this["ICSSoft_DataProject_SAPCallBackDocVPNCS_ZWMS_SK_WS_PZ"]));
+ }
+ }
}
}
diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Properties/Settings.settings b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Properties/Settings.settings
index 0aa36de..4397109 100644
--- a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Properties/Settings.settings
+++ b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Properties/Settings.settings
@@ -11,5 +11,8 @@
http://ERPPRD6.neway.com.cn:8000/sap/bc/srt/rfc/sap/zwms_sk_ws_pz/900/zwms_sk_ws_pz/zwms_sk_ws_pz
+
+ http://ERPQA1.neway.com.cn:8000/sap/bc/srt/rfc/sap/zwms_sk_ws_pz/900/zwms_sk_ws_pz/zwms_sk_ws_pz
+
\ No newline at end of file
diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Web References/SAPCallBackDocVPNCS/Reference.cs b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Web References/SAPCallBackDocVPNCS/Reference.cs
new file mode 100644
index 0000000..7c63b6f
--- /dev/null
+++ b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Web References/SAPCallBackDocVPNCS/Reference.cs
@@ -0,0 +1,529 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+// 运行时版本:4.0.30319.42000
+//
+// 对此文件的更改可能会导致不正确的行为,并且如果
+// 重新生成代码,这些更改将会丢失。
+//
+//------------------------------------------------------------------------------
+
+//
+// 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。
+//
+#pragma warning disable 1591
+
+namespace ICSSoft.DataProject.SAPCallBackDocVPNCS {
+ using System.Diagnostics;
+ using System;
+ using System.Xml.Serialization;
+ using System.ComponentModel;
+ using System.Web.Services.Protocols;
+ using System.Web.Services;
+
+
+ ///
+ // CODEGEN: 未处理命名空间“http://schemas.xmlsoap.org/ws/2004/09/policy”中的可选 WSDL 扩展元素“Policy”。
+ // CODEGEN: 未处理命名空间“http://schemas.xmlsoap.org/ws/2004/08/addressing”中的可选 WSDL 扩展元素“EndpointReference”。
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
+ [System.Diagnostics.DebuggerStepThroughAttribute()]
+ [System.ComponentModel.DesignerCategoryAttribute("code")]
+ [System.Web.Services.WebServiceBindingAttribute(Name="ZWMS_SK_WS_PZ", Namespace="urn:sap-com:document:sap:rfc:functions")]
+ public partial class ZWMS_SK_WS_PZ : System.Web.Services.Protocols.SoapHttpClientProtocol {
+
+ private System.Threading.SendOrPostCallback CallZWMS_SK_WS_PZOperationCompleted;
+
+ private bool useDefaultCredentialsSetExplicitly;
+
+ ///
+ public ZWMS_SK_WS_PZ() {
+ this.Url = global::ICSSoft.DataProject.Properties.Settings.Default.ICSSoft_DataProject_SAPCallBackDocVPNCS_ZWMS_SK_WS_PZ;
+ 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 CallZWMS_SK_WS_PZCompletedEventHandler CallZWMS_SK_WS_PZCompleted;
+
+ ///
+ [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)]
+ [return: System.Xml.Serialization.XmlElementAttribute("ZWMS_SK_WS_PZResponse", Namespace="urn:sap-com:document:sap:rfc:functions")]
+ public ZWMS_SK_WS_PZResponse CallZWMS_SK_WS_PZ([System.Xml.Serialization.XmlElementAttribute(Namespace="urn:sap-com:document:sap:rfc:functions")] ZWMS_SK_WS_PZ1 ZWMS_SK_WS_PZ) {
+ object[] results = this.Invoke("CallZWMS_SK_WS_PZ", new object[] {
+ ZWMS_SK_WS_PZ});
+ return ((ZWMS_SK_WS_PZResponse)(results[0]));
+ }
+
+ ///
+ public void CallZWMS_SK_WS_PZAsync(ZWMS_SK_WS_PZ1 ZWMS_SK_WS_PZ) {
+ this.CallZWMS_SK_WS_PZAsync(ZWMS_SK_WS_PZ, null);
+ }
+
+ ///
+ public void CallZWMS_SK_WS_PZAsync(ZWMS_SK_WS_PZ1 ZWMS_SK_WS_PZ, object userState) {
+ if ((this.CallZWMS_SK_WS_PZOperationCompleted == null)) {
+ this.CallZWMS_SK_WS_PZOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCallZWMS_SK_WS_PZOperationCompleted);
+ }
+ this.InvokeAsync("CallZWMS_SK_WS_PZ", new object[] {
+ ZWMS_SK_WS_PZ}, this.CallZWMS_SK_WS_PZOperationCompleted, userState);
+ }
+
+ private void OnCallZWMS_SK_WS_PZOperationCompleted(object arg) {
+ if ((this.CallZWMS_SK_WS_PZCompleted != null)) {
+ System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
+ this.CallZWMS_SK_WS_PZCompleted(this, new CallZWMS_SK_WS_PZCompletedEventArgs(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.4084.0")]
+ [System.SerializableAttribute()]
+ [System.Diagnostics.DebuggerStepThroughAttribute()]
+ [System.ComponentModel.DesignerCategoryAttribute("code")]
+ [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:sap-com:document:sap:rfc:functions")]
+ public partial class ZWMS_SK_WS_PZ1 {
+
+ private string dANJUField;
+
+ private string nEWIDField;
+
+ private string sTATEField;
+
+ private ZWEB_RETURN[] z_FLAGField;
+
+ private ZWEBS_GERNR[] z_GERNRField;
+
+ private ZWMS_PZ[] z_ITEMField;
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string DANJU {
+ get {
+ return this.dANJUField;
+ }
+ set {
+ this.dANJUField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string NEWID {
+ get {
+ return this.nEWIDField;
+ }
+ set {
+ this.nEWIDField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string STATE {
+ get {
+ return this.sTATEField;
+ }
+ set {
+ this.sTATEField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
+ public ZWEB_RETURN[] Z_FLAG {
+ get {
+ return this.z_FLAGField;
+ }
+ set {
+ this.z_FLAGField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
+ public ZWEBS_GERNR[] Z_GERNR {
+ get {
+ return this.z_GERNRField;
+ }
+ set {
+ this.z_GERNRField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
+ public ZWMS_PZ[] Z_ITEM {
+ get {
+ return this.z_ITEMField;
+ }
+ set {
+ this.z_ITEMField = value;
+ }
+ }
+ }
+
+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")]
+ [System.SerializableAttribute()]
+ [System.Diagnostics.DebuggerStepThroughAttribute()]
+ [System.ComponentModel.DesignerCategoryAttribute("code")]
+ [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:sap-com:document:sap:rfc:functions")]
+ public partial class ZWEB_RETURN {
+
+ private string dANJUField;
+
+ private string pOSNRField;
+
+ private string fLAGField;
+
+ private string l_MESSAGEField;
+
+ private string mBLNRField;
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string DANJU {
+ get {
+ return this.dANJUField;
+ }
+ set {
+ this.dANJUField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string POSNR {
+ get {
+ return this.pOSNRField;
+ }
+ set {
+ this.pOSNRField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string FLAG {
+ get {
+ return this.fLAGField;
+ }
+ set {
+ this.fLAGField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string L_MESSAGE {
+ get {
+ return this.l_MESSAGEField;
+ }
+ set {
+ this.l_MESSAGEField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string MBLNR {
+ get {
+ return this.mBLNRField;
+ }
+ set {
+ this.mBLNRField = value;
+ }
+ }
+ }
+
+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")]
+ [System.SerializableAttribute()]
+ [System.Diagnostics.DebuggerStepThroughAttribute()]
+ [System.ComponentModel.DesignerCategoryAttribute("code")]
+ [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:sap-com:document:sap:rfc:functions")]
+ public partial class ZWMS_PZ {
+
+ private string dANJUField;
+
+ private string pOSNRField;
+
+ private decimal lINGYSLField;
+
+ private string sERNPField;
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string DANJU {
+ get {
+ return this.dANJUField;
+ }
+ set {
+ this.dANJUField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string POSNR {
+ get {
+ return this.pOSNRField;
+ }
+ set {
+ this.pOSNRField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public decimal LINGYSL {
+ get {
+ return this.lINGYSLField;
+ }
+ set {
+ this.lINGYSLField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string SERNP {
+ get {
+ return this.sERNPField;
+ }
+ set {
+ this.sERNPField = value;
+ }
+ }
+ }
+
+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")]
+ [System.SerializableAttribute()]
+ [System.Diagnostics.DebuggerStepThroughAttribute()]
+ [System.ComponentModel.DesignerCategoryAttribute("code")]
+ [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:sap-com:document:sap:rfc:functions")]
+ public partial class ZWEBS_GERNR {
+
+ private string mANDTField;
+
+ private string dANJUField;
+
+ private string pOSNRField;
+
+ private int gERNR_KEYField;
+
+ private string mATNRField;
+
+ private string gERNRField;
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string MANDT {
+ get {
+ return this.mANDTField;
+ }
+ set {
+ this.mANDTField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string DANJU {
+ get {
+ return this.dANJUField;
+ }
+ set {
+ this.dANJUField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string POSNR {
+ get {
+ return this.pOSNRField;
+ }
+ set {
+ this.pOSNRField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public int GERNR_KEY {
+ get {
+ return this.gERNR_KEYField;
+ }
+ set {
+ this.gERNR_KEYField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string MATNR {
+ get {
+ return this.mATNRField;
+ }
+ set {
+ this.mATNRField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string GERNR {
+ get {
+ return this.gERNRField;
+ }
+ set {
+ this.gERNRField = value;
+ }
+ }
+ }
+
+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")]
+ [System.SerializableAttribute()]
+ [System.Diagnostics.DebuggerStepThroughAttribute()]
+ [System.ComponentModel.DesignerCategoryAttribute("code")]
+ [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:sap-com:document:sap:rfc:functions")]
+ public partial class ZWMS_SK_WS_PZResponse {
+
+ private ZWEB_RETURN[] z_FLAGField;
+
+ private ZWEBS_GERNR[] z_GERNRField;
+
+ private ZWMS_PZ[] z_ITEMField;
+
+ private string z_NULLField;
+
+ ///
+ [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
+ public ZWEB_RETURN[] Z_FLAG {
+ get {
+ return this.z_FLAGField;
+ }
+ set {
+ this.z_FLAGField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
+ public ZWEBS_GERNR[] Z_GERNR {
+ get {
+ return this.z_GERNRField;
+ }
+ set {
+ this.z_GERNRField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ [System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
+ public ZWMS_PZ[] Z_ITEM {
+ get {
+ return this.z_ITEMField;
+ }
+ set {
+ this.z_ITEMField = value;
+ }
+ }
+
+ ///
+ [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
+ public string Z_NULL {
+ get {
+ return this.z_NULLField;
+ }
+ set {
+ this.z_NULLField = value;
+ }
+ }
+ }
+
+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
+ public delegate void CallZWMS_SK_WS_PZCompletedEventHandler(object sender, CallZWMS_SK_WS_PZCompletedEventArgs e);
+
+ ///
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
+ [System.Diagnostics.DebuggerStepThroughAttribute()]
+ [System.ComponentModel.DesignerCategoryAttribute("code")]
+ public partial class CallZWMS_SK_WS_PZCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
+
+ private object[] results;
+
+ internal CallZWMS_SK_WS_PZCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
+ base(exception, cancelled, userState) {
+ this.results = results;
+ }
+
+ ///
+ public ZWMS_SK_WS_PZResponse Result {
+ get {
+ this.RaiseExceptionIfNecessary();
+ return ((ZWMS_SK_WS_PZResponse)(this.results[0]));
+ }
+ }
+ }
+}
+
+#pragma warning restore 1591
\ No newline at end of file
diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Web References/SAPCallBackDocVPNCS/Reference.map b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Web References/SAPCallBackDocVPNCS/Reference.map
new file mode 100644
index 0000000..769c6ec
--- /dev/null
+++ b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Web References/SAPCallBackDocVPNCS/Reference.map
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Web References/SAPCallBackDocVPNCS/ZWMS_SK_WS_PZResponse.datasource b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Web References/SAPCallBackDocVPNCS/ZWMS_SK_WS_PZResponse.datasource
new file mode 100644
index 0000000..b255564
--- /dev/null
+++ b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Web References/SAPCallBackDocVPNCS/ZWMS_SK_WS_PZResponse.datasource
@@ -0,0 +1,10 @@
+
+
+
+ ICSSoft.DataProject.SAPCallBackDocVPNCS.ZWMS_SK_WS_PZResponse, Web References.SAPCallBackDocVPNCS.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
+
\ No newline at end of file
diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Web References/SAPCallBackDocVPNCS/document.wsdl b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Web References/SAPCallBackDocVPNCS/document.wsdl
new file mode 100644
index 0000000..91dd4ef
--- /dev/null
+++ b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/Web References/SAPCallBackDocVPNCS/document.wsdl
@@ -0,0 +1,194 @@
+
+
+
+
+
+
+
+
+
+ false
+
+
+
+
+ false
+
+
+ E50B2D7A654B0CF1BEC76C3BE5AB5E3F
+
+
+
+ false
+ true
+ no
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/app.config b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/app.config
index f867234..fa9c3ca 100644
--- a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/app.config
+++ b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/app.config
@@ -19,6 +19,10 @@
serializeAs="String">
http://ERPPRD6.neway.com.cn:8000/sap/bc/srt/rfc/sap/zwms_sk_ws_pz/900/zwms_sk_ws_pz/zwms_sk_ws_pz
+
+ http://ERPQA1.neway.com.cn:8000/sap/bc/srt/rfc/sap/zwms_sk_ws_pz/900/zwms_sk_ws_pz/zwms_sk_ws_pz
+
\ No newline at end of file
diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.Entity/ICSMTDocModel.cs b/ICSSoft.WMS.WebAPI/ICSSoft.Entity/ICSMTDocModel.cs
index 163dcc1..5897780 100644
--- a/ICSSoft.WMS.WebAPI/ICSSoft.Entity/ICSMTDocModel.cs
+++ b/ICSSoft.WMS.WebAPI/ICSSoft.Entity/ICSMTDocModel.cs
@@ -36,6 +36,11 @@ namespace ICSSoft.Entity
///
public string WorkPoint { get; set; }
+ ///
+ /// 操作人
+ ///
+ public string User { get; set; }
+
///
/// 转换前物料编码
///