Browse Source

调整期初导入接口

master
lilili 2 years ago
parent
commit
a2395123fa
  1. 12
      WMS-BS/NFine.Application/WMS/HomeWorkApp.cs

12
WMS-BS/NFine.Application/WMS/HomeWorkApp.cs

@ -73,6 +73,7 @@ namespace NFine.Application.WMS
string StackCode = dr["库位"].ToString(); string StackCode = dr["库位"].ToString();
string Date = dr["入库日期"].ToString(); string Date = dr["入库日期"].ToString();
string VENCODE = dr["供应商"].ToString(); string VENCODE = dr["供应商"].ToString();
string originalCode = dr["原条码"].ToString();
decimal Amount = 0; decimal Amount = 0;
if (data.Columns.Contains("辅计量数量")) if (data.Columns.Contains("辅计量数量"))
@ -244,8 +245,15 @@ namespace NFine.Application.WMS
var logID = GetNewid(); var logID = GetNewid();
for (int i = count; i > 0; i--) for (int i = count; i > 0; i--)
{ {
LotNO = Tday + (Lot_NO + countLot++).ToString().PadLeft(5, '0');
if (originalCode != null&& originalCode!="")
{
LotNO = originalCode.ToString();
}
else
{
LotNO = Tday + (Lot_NO + countLot++).ToString().PadLeft(5, '0');
}
#region 条码 #region 条码
DataRow drInventory = dsSave.Tables[0].NewRow(); DataRow drInventory = dsSave.Tables[0].NewRow();
drInventory["ID"] = GetNewid(); drInventory["ID"] = GetNewid();

Loading…
Cancel
Save