コード例 #1
0
 public DataModel()
 {
     tableName = "";
     tableNames = null;
     limit = "";
     sortUp = "";
     sortDown = "";
     hiddenColumnList = new List<string>();
     rawSqlString = "";
     stats = new StatsHelper.HelperStatistics();
 }
コード例 #2
0
 public DataModel(string p_table, string p_limit, string p_showStats, string p_sortUp, string p_sortDown, string p_columns)
 {
     tableName = p_table;
     tableNames = getTableSelectList();
     limit = p_limit;
     sortUp = p_sortUp;
     sortDown = p_sortDown;
     hiddenColumnList = new List<string>(p_columns.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries));
     rawSqlString = "";
     if (!String.IsNullOrEmpty(p_showStats))
     {
         stats = new StatsHelper.HelperStatistics();
     }
     else
     {
         stats = null;
     }
 }