|
|
@ -50,16 +50,16 @@ namespace ICSSoft.FromERP |
|
|
|
{ |
|
|
|
foreach (DataRow dr in dt.Rows) |
|
|
|
{ |
|
|
|
SAPGetINV.ZWMS_SK_MARA client = new SAPGetINV.ZWMS_SK_MARA(); |
|
|
|
SAPGetINV.ZWMS_SK_MARA1 Info = new SAPGetINV.ZWMS_SK_MARA1(); |
|
|
|
SAPGetINVVPN.ZWMS_SK_MARA client = new SAPGetINVVPN.ZWMS_SK_MARA(); |
|
|
|
SAPGetINVVPN.ZWMS_SK_MARA1 Info = new SAPGetINVVPN.ZWMS_SK_MARA1(); |
|
|
|
Info.WERKS = dr["WorkPointCode"].ToString(); |
|
|
|
Info.LGORT = WHCode; |
|
|
|
Info.CHG_DATE = ""; |
|
|
|
Info.T_MARA = new SAPGetINV.ZWMS_MARA[1]; |
|
|
|
Info.T_MARA = new SAPGetINVVPN.ZWMS_MARA[1]; |
|
|
|
|
|
|
|
SAPGetINV.ZWMS_SK_MARAResponse result = new SAPGetINV.ZWMS_SK_MARAResponse(); |
|
|
|
SAPGetINVVPN.ZWMS_SK_MARAResponse result = new SAPGetINVVPN.ZWMS_SK_MARAResponse(); |
|
|
|
result = client.CallZWMS_SK_MARA(Info); |
|
|
|
foreach (SAPGetINV.ZWMS_MARA item in result.T_MARA) |
|
|
|
foreach (SAPGetINVVPN.ZWMS_MARA item in result.T_MARA) |
|
|
|
{ |
|
|
|
var line = db.ICSInventory.SingleOrDefault(a => a.InvCode == item.MATNR && a.WorkPoint == item.WERKS); |
|
|
|
bool isNew = false; |
|
|
|