|
|
@ -2362,14 +2362,20 @@ namespace ICSSoft.FromERP |
|
|
|
if (Item.SOBKZ == "E") |
|
|
|
{ |
|
|
|
Colspan = Item.VBELN_VA + "~~~" + Item.POSNR_VA + "~~~~~~~~~~"; |
|
|
|
ColspanAfter = Item.VBELN_JS + "~~~" + Item.POSNR_JS + "~~~~~~~~~~"; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
Colspan = "~~~~~~~~~~~~~"; |
|
|
|
} |
|
|
|
|
|
|
|
if (Item.SOBKZ_JS == "E") |
|
|
|
{ |
|
|
|
ColspanAfter = Item.VBELN_JS + "~~~" + Item.POSNR_JS + "~~~~~~~~~~"; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
ColspanAfter = "~~~~~~~~~~~~~"; |
|
|
|
} |
|
|
|
Colspan = Item.VBELN_VA + "~" + Item.SERNP + "~~" + Item.POSNR_VA + "~~~~~~~~~~"; |
|
|
|
|
|
|
|
var Extensionline = db.ICSExtension.SingleOrDefault(a => a.Colspan == Colspan && a.WorkPoint == Info.WERKS); |
|
|
|
if (Extensionline == null) |
|
|
@ -2420,7 +2426,7 @@ namespace ICSSoft.FromERP |
|
|
|
ExtensionAfter = AppConfig.GetGuid(); |
|
|
|
ExtensionlineAfter = new ICSExtension(); |
|
|
|
ExtensionlineAfter.ID = ExtensionAfter; |
|
|
|
if (Item.SOBKZ == "E") |
|
|
|
if (Item.SOBKZ_JS == "E") |
|
|
|
{ |
|
|
|
Extensionline.BatchCode = ""; |
|
|
|
Extensionline.Version = ""; |
|
|
@ -2474,7 +2480,7 @@ namespace ICSSoft.FromERP |
|
|
|
linebefore.WHCode = Item.LGORT.Trim(); |
|
|
|
linebefore.Quantity = Item.LINGYSL;//领用数量
|
|
|
|
linebefore.Amount = 0; |
|
|
|
linebefore.Memo = Item.SOBKZ_JS; |
|
|
|
linebefore.Memo = Item.SOBKZ; |
|
|
|
linebefore.Status = "2"; |
|
|
|
linebefore.INVCode = Item.MATNR.TrimStart('0');//转换前物料编码
|
|
|
|
linebefore.SOCode = ""; |
|
|
|