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