| | |
| | | |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_IF_Kf_ICStockBillMain where 1=1", "h_v_IF_Kf_ICStockBillMain"); |
| | | ds = oCN.RunProcReturn("select * from h_v_IF_Kf_ICStockBillMain where 1=1 order by hmainid desc", "h_v_IF_Kf_ICStockBillMain"); |
| | | } |
| | | else |
| | | { |
| | | string sql = "select * from h_v_IF_Kf_ICStockBillMain where 1 = 1 " + sWhere; |
| | | string sql = "select * from h_v_IF_Kf_ICStockBillMain where 1 = 1 " + sWhere + " order by hmainid desc"; |
| | | ds = oCN.RunProcReturn(sql, "h_v_IF_Kf_ICStockBillMain"); |
| | | } |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |