ruoxing.wang 1 day ago
parent
commit
4b563b13db
  1. 11
      MESClassLibrary/DAL/BasicInfo/BarCodeDAl.cs

11
MESClassLibrary/DAL/BasicInfo/BarCodeDAl.cs

@ -499,6 +499,17 @@ namespace MESClassLibrary.DAL.BasicInfo
dbo.tb_Station ON dbo.tb_BarCode5.StationID = dbo.tb_Station.StationID dbo.tb_Station ON dbo.tb_BarCode5.StationID = dbo.tb_Station.StationID
where dbo.tb_Station.StationNo=@stationNo and IsDel=0 and IsBad=0 " + " order by [CreateTime] desc"; where dbo.tb_Station.StationNo=@stationNo and IsDel=0 and IsBad=0 " + " order by [CreateTime] desc";
} }
if (stationNo.Substring(2, 2) == "22" || stationNo.Substring(2, 2) == "23" ||
stationNo.Substring(2, 2) == "24" || stationNo.Substring(2, 2) == "25")
{
sql = @"SELECT top 100 dbo.tb_BarCode6.BarCode,dbo.tb_BarCode6.OneBarCode, dbo.tb_Product.ProductName, dbo.tb_BarCode6.BoxNo,
CASE dbo.tb_BarCode6.PrintType WHEN 0 THEN '' when 1 then '' when 2 then '' END AS PrintType,
dbo.tb_BarCode6.CreateTime
FROM dbo.tb_BarCode6 with (nolock) LEFT OUTER JOIN
dbo.tb_Product ON dbo.tb_BarCode6.StockNo = dbo.tb_Product.StockNo LEFT OUTER JOIN
dbo.tb_Station ON dbo.tb_BarCode6.StationID = dbo.tb_Station.StationID
where dbo.tb_Station.StationNo=@stationNo and IsDel=0 and IsBad=0 " + " order by [CreateTime] desc";
}
SqlParameter[] param = new SqlParameter[1]; SqlParameter[] param = new SqlParameter[1];
param[0] = new SqlParameter("@stationNo", SqlDbType.VarChar); param[0] = new SqlParameter("@stationNo", SqlDbType.VarChar);

Loading…
Cancel
Save