Browse Source

工单生成条码 调用接口子数据为空时增加卡控

master
Juj 2 years ago
parent
commit
b0fe085391
  1. 6
      WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs

6
WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs

@ -2582,7 +2582,7 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu
DataTable dtLotBC = SqlCommandHelper.SQlReturnData(sqlLotBC, cmd);
if (dtLotBC.Rows.Count<=0)
{
throw new Exception("该工单,暂无可上传批次!");
throw new Exception("该工单,暂无可上传批次!");
}
// DataTable dtLotBC = Repository().FindTableBySql(sqlLotBC.ToString());
var BCNum = dtLotBC.Rows.Count;
@ -2614,6 +2614,10 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu
where a.MOCode='{0}' and a.Sequence='{1}' and a.WorkPoint='{2}'";
sqlSubject = string.Format(sqlSubject, Code, Sequence, WorkPoint);
DataTable dtSubject = SqlCommandHelper.SQlReturnData(sqlSubject, cmd);
if (dtSubject.Rows.Count <= 0)
{
throw new Exception("该工单下暂无可上传的子行!");
}
// DataTable dtSubject = Repository().FindTableBySql(sqlSubject.ToString());
var Identification = Guid.NewGuid().ToString();
foreach (DataRow item in dtSubject.Rows)

Loading…
Cancel
Save