- 为了更好的使用FineUI
- /// <summary>
- /// 获取模拟表格
- /// </summary>
- /// <returns></returns>
- protected DataTable GetDataTable()
- {
- DataTable table = new DataTable();
- table.Columns.Add(new DataColumn("Id", typeof(int)));
- table.Columns.Add(new DataColumn("Name", typeof(String)));
- table.Columns.Add(new DataColumn("EntranceYear", typeof(String)));
- table.Columns.Add(new DataColumn("AtSchool", typeof(bool)));
- table.Columns.Add(new DataColumn("Major", typeof(String)));
- table.Columns.Add(new DataColumn("Group", typeof(int)));
- table.Columns.Add(new DataColumn("Gender", typeof(int)));
- table.Columns.Add(new DataColumn("LogTime", typeof(DateTime)));
- table.Columns.Add(new DataColumn("Desc", typeof(string)));
- table.Columns.Add(new DataColumn("Guid", typeof(Guid)));
- table.Columns.Add(new DataColumn("Hobby", typeof(String)));
- // Hobby:reading,basketball,travel,movie,music
- // 爱好:读书, 篮球, 旅游, 电影, 音乐
- table.Columns.Add(new DataColumn("ChineseScore", typeof(Int32)));
- table.Columns.Add(new DataColumn("MathScore", typeof(Int32)));
- table.Columns.Add(new DataColumn("TotalScore", typeof(Int32)));
- DataRow row = table.NewRow();
- row[0] = 101;
- row[1] = "张萍萍";
- row[2] = "2000";
- row[3] = true;
- row[4] = "材料科学与工程系";
- row[5] = 1;
- row[6] = 0;
- row[7] = DateTime.Now.AddDays(-100);
- row[8] = "张萍萍,女,20岁,出生于中国南方的一个小山村,毕业于中国科学技术大学。";
- row[9] = Guid.NewGuid();
- row[10] = "reading,travel,music";
- row[11] = 0;
- row[12] = 0;
- row[13] = 0;
- table.Rows.Add(row);
- row = table.NewRow();
- row[0] = 102;
- row[1] = "陈飞";
- row[2] = "2001";
- row[3] = false;
- row[4] = "化学物理系";
- row[5] = 1;
- row[6] = 1;
- row[7] = DateTime.Now.AddDays(-90);
- row[8] = "陈飞,男,20岁,出生于中国北方的一个小山村,毕业于南方科学技术大学。";
- row[9] = Guid.NewGuid();
- row[10] = "basketball,travel,movie";
- row[11] = 0;
- row[12] = 0;
- row[13] = 0;
- table.Rows.Add(row);
- row = table.NewRow();
- row[0] = 103;
- row[1] = "董婷婷";
- row[2] = "2008";
- row[3] = true;
- row[4] = "化学系";
- row[5] = 2;
- row[6] = 0;
- row[7] = DateTime.Now.AddDays(-80);
- row[8] = "董婷婷,女,28岁,出生于中国海南岛的一个小山村,毕业于中国科学技术大学。";
- row[9] = Guid.NewGuid();
- row[10] = "basketball,movie,music";
- row[11] = 0;
- row[12] = 0;
- row[13] = 0;
- table.Rows.Add(row);
- row = table.NewRow();
- row[0] = 104;
- row[1] = "刘国";
- row[2] = "2002";
- row[3] = false;
- row[4] = "高分子科学与工程系";
- row[5] = 2;
- row[6] = 1;
- row[7] = DateTime.Now.AddDays(-70);
- row[8] = "刘国,男,22岁,出生于中国澳门的一个小山村,毕业于中国科学技术大学。";
- row[9] = Guid.NewGuid();
- row[10] = "reading,basketball,movie";
- row[11] = 0;
- row[12] = 0;
- row[13] = 0;
- table.Rows.Add(row);
- row = table.NewRow();
- row[0] = 105;
- row[1] = "康颖颖";
- row[2] = "2008";
- row[3] = true;
- row[4] = "数学系";
- row[5] = 3;
- row[6] = 0;
- row[7] = DateTime.Now.AddDays(-60);
- row[8] = "康颖颖,女,26岁,出生于中国福建的一个小山村,毕业于香港科学技术大学。";
- row[9] = Guid.NewGuid();
- row[10] = "reading,travel,movie";
- row[11] = 0;
- row[12] = 0;
- row[13] = 0;
- table.Rows.Add(row);
- row = table.NewRow();
- row[0] = 106;
- row[1] = "彭博";
- row[2] = "2003";
- row[3] = false;
- row[4] = "计算与应用数学系";
- row[5] = 3;
- row[6] = 1;
- row[7] = DateTime.Now.AddDays(-50);
- row[8] = "彭博,男,28岁,出生于中国浙江的一个小山村,毕业于电子科学技术大学。";
- row[9] = Guid.NewGuid();
- row[10] = "basketball,travel,music";
- row[11] = 0;
- row[12] = 0;
- row[13] = 0;
- table.Rows.Add(row);
- row = table.NewRow();
- row[0] = 107;
- row[1] = "黄倩倩";
- row[2] = "2000";
- row[3] = true;
- row[4] = "物理系";
- row[5] = 4;
- row[6] = 0;
- row[7] = DateTime.Now.AddDays(-40);
- row[8] = "黄倩倩,女,25岁,出生于中国北方的一个小山村,毕业于北京科学技术大学。";
- row[9] = Guid.NewGuid();
- row[10] = "travel,movie,music";
- row[11] = 0;
- row[12] = 0;
- row[13] = 0;
- table.Rows.Add(row);
- row = table.NewRow();
- row[0] = 108;
- row[1] = "唐超";
- row[2] = "2004";
- row[3] = false;
- row[4] = "近代物理系";
- row[5] = 4;
- row[6] = 1;
- row[7] = DateTime.Now.AddDays(-30);
- row[8] = "唐超,男,26岁,出生于中国河南的一个小山村,毕业于中国科学技术大学。";
- row[9] = Guid.NewGuid();
- row[10] = "reading,movie,music";
- row[11] = 0;
- row[12] = 0;
- row[13] = 0;
- table.Rows.Add(row);
- row = table.NewRow();
- row[0] = 109;
- row[1] = "杨娟娟";
- row[2] = "2003";
- row[3] = true;
- row[4] = "天文物理系";
- row[5] = 5;
- row[6] = 0;
- row[7] = DateTime.Now.AddDays(-20);
- row[8] = "杨娟娟,女,25岁,出生于中国广西的一个小山村,毕业于南方科学技术大学。";
- row[9] = Guid.NewGuid();
- row[10] = "reading,basketball,movie";
- row[11] = 0;
- row[12] = 0;
- row[13] = 0;
- table.Rows.Add(row);
- row = table.NewRow();
- row[0] = 110;
- row[1] = "徐鹏";
- row[2] = "2002";
- row[3] = false;
- row[4] = "天文学系";
- row[5] = 5;
- row[6] = 1;
- row[7] = DateTime.Now.AddDays(-10);
- row[8] = "徐鹏,男,23岁,出生于中国安徽的一个小山村,毕业于国防科学技术大学。";
- row[9] = Guid.NewGuid();
- row[10] = "reading,basketball,travel";
- row[11] = 0;
- row[12] = 0;
- row[13] = 0;
- table.Rows.Add(row);
- row = table.NewRow();
- row[0] = 111;
- row[1] = "纪玲玲";
- row[2] = "2006";
- row[3] = true;
- row[4] = "自动化系";
- row[5] = 5;
- row[6] = 0;
- row[7] = DateTime.Now.AddDays(-5);
- row[8] = "纪玲玲,女,22岁,出生于中国台湾的一个小山村,毕业于台湾科学技术大学。";
- row[9] = Guid.NewGuid();
- row[10] = "reading,movie,music";
- row[11] = 0;
- row[12] = 0;
- row[13] = 0;
- table.Rows.Add(row);
- return table;
- }
复制代码 |