Browse Source

上传查询批次信息时 取消带-条码的批次统计

master
Juj 1 year ago
parent
commit
0bddf51ee4
  1. 4
      WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs

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

@ -2577,7 +2577,7 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu
left join ICSInventoryLotDetail c on a.LotNo=c.LotNo and a.WorkPoint=c.WorkPoint left join ICSInventoryLotDetail c on a.LotNo=c.LotNo and a.WorkPoint=c.WorkPoint
left join ICSExtension f on a.ExtensionID=f.ID and a.WorkPoint=f.WorkPoint left join ICSExtension f on a.ExtensionID=f.ID and a.WorkPoint=f.WorkPoint
left join dbo.ICSBackflushBCLog d on d.TransCode=c.TransCode and d.TransSequence=c.TransSequence and f.BatchCode=d.BatchCode left join dbo.ICSBackflushBCLog d on d.TransCode=c.TransCode and d.TransSequence=c.TransSequence and f.BatchCode=d.BatchCode
where c.TransCode='{0}' and c.TransSequence='{1}' and a.WorkPoint='{2}' and isnull(d.ID,'')=''";
where a.LotNo NOT LIKE '%-%' and c.TransCode='{0}' and c.TransSequence='{1}' and a.WorkPoint='{2}' and isnull(d.ID,'')=''";
sqlLotBC = string.Format(sqlLotBC, Code, Sequence, WorkPoint); sqlLotBC = string.Format(sqlLotBC, Code, Sequence, WorkPoint);
DataTable dtLotBC = SqlCommandHelper.SQlReturnData(sqlLotBC, cmd); DataTable dtLotBC = SqlCommandHelper.SQlReturnData(sqlLotBC, cmd);
if (dtLotBC.Rows.Count<=0) if (dtLotBC.Rows.Count<=0)
@ -2627,7 +2627,7 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu
string SqlBackflush = @"select a.LotNo,a.Quantity,c.BatchCode from dbo.ICSWareHouseLotInfo a string SqlBackflush = @"select a.LotNo,a.Quantity,c.BatchCode from dbo.ICSWareHouseLotInfo a
left join dbo.ICSInventoryLot b on a.LotNo=b.LotNo and a.WorkPoint=b.WorkPoint left join dbo.ICSInventoryLot b on a.LotNo=b.LotNo and a.WorkPoint=b.WorkPoint
left join dbo.ICSExtension c on b.ExtensionID=c.ID and a.WorkPoint=c.WorkPoint left join dbo.ICSExtension c on b.ExtensionID=c.ID and a.WorkPoint=c.WorkPoint
where b.LotNo NOT LIKE '%-%' and a.InvCode='{0}' and a.WorkPoint='{1}' and a.WarehouseCode='{2}' and a.Quantity<>0 order by InDate asc";
where a.InvCode='{0}' and a.WorkPoint='{1}' and a.WarehouseCode='{2}' and a.Quantity<>0 order by InDate asc";
SqlBackflush = string.Format(SqlBackflush, item["InvCode"].ToString(), WorkPoint, item["WHCode"].ToString()); SqlBackflush = string.Format(SqlBackflush, item["InvCode"].ToString(), WorkPoint, item["WHCode"].ToString());
DataTable DtBackflush = SqlCommandHelper.SQlReturnData(SqlBackflush, cmd); DataTable DtBackflush = SqlCommandHelper.SQlReturnData(SqlBackflush, cmd);

Loading…
Cancel
Save