diff --git a/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs b/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs index 09d1115..44ad328 100644 --- a/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs +++ b/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs @@ -49,7 +49,7 @@ where d.Type='1'"; { if (!string.IsNullOrWhiteSpace(queryParam["POCode"].ToString())) { - sql += " and a.POCode like '%" + queryParam["POCode"].ToString() + "%' "; + sql += " and a.ApplyNegCode like '%" + queryParam["POCode"].ToString() + "%' "; } if (!string.IsNullOrWhiteSpace(queryParam["InvCode"].ToString())) { @@ -565,7 +565,7 @@ where a.Type='2'"; { if (!string.IsNullOrWhiteSpace(queryParam["POCode"].ToString())) { - sql += " and a.MOCode like '%" + queryParam["POCode"].ToString() + "%' "; + sql += " and a.SDNCode like '%" + queryParam["POCode"].ToString() + "%' "; } if (!string.IsNullOrWhiteSpace(queryParam["InvCode"].ToString())) { @@ -1582,7 +1582,7 @@ where a.DNType='3' and a.Status='2' and a.EATTRIBUTE1 is NOT null { if (!string.IsNullOrWhiteSpace(queryParam["POCode"].ToString())) { - sql += " and a.RCVCode like '%" + queryParam["POCode"].ToString() + "%' "; + sql += " and a.ApplyNegCode like '%" + queryParam["POCode"].ToString() + "%' "; } if (!string.IsNullOrWhiteSpace(queryParam["InvCode"].ToString())) { @@ -1898,7 +1898,7 @@ left join (select b.TransCode,b.TransSequence,sum(isnull(Quantity,0)) LOTQTY fro { if (!string.IsNullOrWhiteSpace(queryParam["POCode"].ToString())) { - sql += " and a.RCVCode like '%" + queryParam["POCode"].ToString() + "%' "; + sql += " and a.ApplyNegCode like '%" + queryParam["POCode"].ToString() + "%' "; } if (!string.IsNullOrWhiteSpace(queryParam["InvCode"].ToString())) {