| | |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_ProductionLinePackagingList order by 唯一条码 desc", "h_v_ProductionLinePackagingList"); |
| | | ds = oCN.RunProcReturn("select top 1000 * from h_v_ProductionLinePackagingList order by 扫码日期 desc, 唯一条码 desc", "h_v_ProductionLinePackagingList"); |
| | | } |
| | | else |
| | | { |
| | | string sql1 = "select * from h_v_ProductionLinePackagingList where 1 = 1 "; |
| | | string sql1 = "select top 1000 * from h_v_ProductionLinePackagingList where 1 = 1 "; |
| | | string sql = sql1 + sWhere; |
| | | string sql2 = " order by 唯一条码 desc"; |
| | | string sql2 = " order by 扫码日期 desc, 唯一条码 desc"; |
| | | sql = sql + sql2; |
| | | ds = oCN.RunProcReturn(sql, "h_v_ProductionLinePackagingList"); |
| | | } |