Browse Source

调整期初导入接口

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

8
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("辅计量数量"))
@ -243,8 +244,15 @@ namespace NFine.Application.WMS
var Quantity= Convert.ToDecimal(dr["库位数量或最小包装数量"].ToString()); var Quantity= Convert.ToDecimal(dr["库位数量或最小包装数量"].ToString());
var logID = GetNewid(); var logID = GetNewid();
for (int i = count; i > 0; i--) for (int i = count; i > 0; i--)
{
if (originalCode != null&& originalCode!="")
{
LotNO = originalCode.ToString();
}
else
{ {
LotNO = Tday + (Lot_NO + countLot++).ToString().PadLeft(5, '0'); LotNO = Tday + (Lot_NO + countLot++).ToString().PadLeft(5, '0');
}
#region 条码 #region 条码
DataRow drInventory = dsSave.Tables[0].NewRow(); DataRow drInventory = dsSave.Tables[0].NewRow();

Loading…
Cancel
Save