|
|
@ -55,8 +55,8 @@ namespace ICSSoft.FromERP |
|
|
|
#region 检验合格单同步
|
|
|
|
foreach (DataRow dr in dt.Rows) |
|
|
|
{ |
|
|
|
SAPGetChkDocInfoVPN.ZWMS_SK_WS_CHECK client = new SAPGetChkDocInfoVPN.ZWMS_SK_WS_CHECK(); |
|
|
|
SAPGetChkDocInfoVPN.ZWMS_SK_WS_CHECK1 Info = new SAPGetChkDocInfoVPN.ZWMS_SK_WS_CHECK1(); |
|
|
|
SAPGetChkDocInfoZS.ZWMS_SK_WS_CHECK client = new SAPGetChkDocInfoZS.ZWMS_SK_WS_CHECK(); |
|
|
|
SAPGetChkDocInfoZS.ZWMS_SK_WS_CHECK1 Info = new SAPGetChkDocInfoZS.ZWMS_SK_WS_CHECK1(); |
|
|
|
if (DocNO != "") |
|
|
|
{ |
|
|
|
Info.PRUEFLOS = DocNO; |
|
|
@ -73,20 +73,20 @@ namespace ICSSoft.FromERP |
|
|
|
Info.CHG_DATE = DateTime.Now.Year + "-" + DateTime.Now.Month.ToString().PadLeft(2, '0') + "-" + DateTime.Now.Day.ToString().PadLeft(2, '0'); |
|
|
|
} |
|
|
|
Info.WERKS = dr["WorkPointCode"].ToString(); |
|
|
|
Info.ZCHECK_HEAD = new SAPGetChkDocInfoVPN.ZWMS_SK_CHECK_HEAD[1]; |
|
|
|
Info.ZCHECK_ITEM = new SAPGetChkDocInfoVPN.ZWMS_SK_CHECK_ITEM[1]; |
|
|
|
Info.ZCHECK_HEAD = new SAPGetChkDocInfoZS.ZWMS_SK_CHECK_HEAD[1]; |
|
|
|
Info.ZCHECK_ITEM = new SAPGetChkDocInfoZS.ZWMS_SK_CHECK_ITEM[1]; |
|
|
|
|
|
|
|
|
|
|
|
SAPGetChkDocInfoVPN.ZWMS_SK_WS_CHECKResponse result = new SAPGetChkDocInfoVPN.ZWMS_SK_WS_CHECKResponse(); |
|
|
|
SAPGetChkDocInfoZS.ZWMS_SK_WS_CHECKResponse result = new SAPGetChkDocInfoZS.ZWMS_SK_WS_CHECKResponse(); |
|
|
|
client.Timeout = 300000; |
|
|
|
result = client.CallZWMS_SK_WS_CHECK(Info); |
|
|
|
List<SAPGetChkDocInfoVPN.ZWMS_SK_CHECK_ITEM> ItemInfoList = new List<SAPGetChkDocInfoVPN.ZWMS_SK_CHECK_ITEM>(); |
|
|
|
List<SAPGetChkDocInfoZS.ZWMS_SK_CHECK_ITEM> ItemInfoList = new List<SAPGetChkDocInfoZS.ZWMS_SK_CHECK_ITEM>(); |
|
|
|
ItemInfoList.AddRange(result.ZCHECK_ITEM); |
|
|
|
foreach (SAPGetChkDocInfoVPN.ZWMS_SK_CHECK_HEAD HeadInfo in result.ZCHECK_HEAD) |
|
|
|
foreach (SAPGetChkDocInfoZS.ZWMS_SK_CHECK_HEAD HeadInfo in result.ZCHECK_HEAD) |
|
|
|
{ |
|
|
|
string LineNum = "10"; |
|
|
|
var ItemInfo = ItemInfoList.Where(a => a.PRUEFLOS == HeadInfo.PRUEFLOS); |
|
|
|
foreach (SAPGetChkDocInfoVPN.ZWMS_SK_CHECK_ITEM Item in ItemInfo) |
|
|
|
foreach (SAPGetChkDocInfoZS.ZWMS_SK_CHECK_ITEM Item in ItemInfo) |
|
|
|
{ |
|
|
|
str = Item.PRUEFLOS; |
|
|
|
string ExtensionID = ""; |
|
|
|