| | |
| | | List<object> columnNameList = new List<object>(); |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_Xt_SystemLogList " + sWhere + " order by hid desc", "h_v_Xt_SystemLogList"); |
| | | string sql = "select top(1000)* from h_v_Xt_SystemLogList " + sWhere + " order by hid desc"; |
| | | ds = oCN.RunProcReturn(sql, "h_v_Xt_SystemLogList"); |
| | | } |
| | | else |
| | | { |
| | | string sql1 = "select * from h_v_Xt_SystemLogList where 1 = 1 "; |
| | | string sql1 = "select top(1000)* from h_v_Xt_SystemLogList where 1 = 1 "; |
| | | string sql = sql1 + sWhere + " order by hid desc"; |
| | | ds = oCN.RunProcReturn(sql, "h_v_Xt_SystemLogList"); |
| | | } |