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