| | |
| | | string sql1 = string.Format("select * from h_v_Kf_MoveStockStepOutBillList where (璋冨叆缁勭粐='" + Organization + "')"); |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCn.RunProcReturn(sql1 + " order by 鏃ユ湡 desc", "h_v_Kf_MoveStockStepOutBillList"); |
| | | ds = oCn.RunProcReturn(sql1 + " order by hmainid desc", "h_v_Kf_MoveStockStepOutBillList"); |
| | | } |
| | | else |
| | | { |
| | | string sql = sql1 + sWhere + " order by 鏃ユ湡 desc"; |
| | | string sql = sql1 + sWhere + " order by hmainid desc"; |
| | | ds = oCn.RunProcReturn(sql, "h_v_Kf_MoveStockStepOutBillList"); |
| | | } |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |