采用VS2013,自带的MVC4来搭建
MODEL层,表对象的建立:
T_Bm.cs
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace Reservation.MODEL 8 { 9 public class T_Bm 10 { 11 /// <summary> 12 /// 部门表,对象 13 /// </summary> 14 15 int _id; 16 17 public int Id 18 { 19 get { return _id; } 20 set { _id = value; } 21 } 22 23 //部门代号 24 string bm_no; 25 26 public string Bm_no 27 { 28 get { return bm_no; } 29 set { bm_no = value; } 30 } 31 32 //部门名称 33 string bm_mc; 34 35 public string Bm_mc 36 { 37 get { return bm_mc; } 38 set { bm_mc = value; } 39 } 40 41 //创建人 42 string adder; 43 44 public string Adder 45 { 46 get { return adder; } 47 set { adder = value; } 48 } 49 50 //创建时间 51 DateTime add_time; 52 53 public DateTime Add_time 54 { 55 get { return add_time; } 56 set { add_time = value; } 57 } 58 59 } 60 }
T_Hys_Plan.cs
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace Reservation.MODEL 8 { 9 public class T_Hys_Plan 10 { 11 /// <summary> 12 /// 会议室预约表,对象 13 /// </summary> 14 15 int id; 16 17 public int Id 18 { 19 get { return id; } 20 set { id = value; } 21 } 22 23 //创建时间 24 DateTime add_time; 25 26 public DateTime Add_time 27 { 28 get { return add_time; } 29 set { add_time = value; } 30 } 31 32 //创建人 33 string adder; 34 35 public string Adder 36 { 37 get { return adder; } 38 set { adder = value; } 39 } 40 41 //预约日期 42 string rq; 43 44 public string Rq 45 { 46 get { return rq; } 47 set { rq = value; } 48 } 49 50 //预约开始时间 51 string time_begin; 52 53 public string Time_begin 54 { 55 get { return time_begin; } 56 set { time_begin = value; } 57 } 58 59 //预约结束时间 60 string time_end; 61 62 public string Time_end 63 { 64 get { return time_end; } 65 set { time_end = value; } 66 } 67 68 //会议室 69 string hys; 70 71 public string Hys 72 { 73 get { return hys; } 74 set { hys = value; } 75 } 76 77 //预约人 78 string yyr; 79 80 public string Yyr 81 { 82 get { return yyr; } 83 set { yyr = value; } 84 } 85 86 //预约部门 87 string yybm; 88 89 public string Yybm 90 { 91 get { return yybm; } 92 set { yybm = value; } 93 } 94 95 //会议主题 96 string hyzt; 97 98 public string Hyzt 99 { 100 get { return hyzt; } 101 set { hyzt = value; } 102 } 103 104 //目前状态 105 string mqzt; 106 107 public string Mqzt 108 { 109 get { return mqzt; } 110 set { mqzt = value; } 111 } 112 113 //操作密码 114 string lock_key; 115 116 public string Lock_key 117 { 118 get { return lock_key; } 119 set { lock_key = value; } 120 } 121 122 //是否例会 123 string flax_while; 124 125 public string Flax_while 126 { 127 get { return flax_while; } 128 set { flax_while = value; } 129 } 130 131 //例会备注 132 string flax_bz; 133 134 public string Flax_bz 135 { 136 get { return flax_bz; } 137 set { flax_bz = value; } 138 } 139 140 //每周几 141 string zhou_x; 142 143 public string Zhou_x 144 { 145 get { return zhou_x; } 146 set { zhou_x = value; } 147 } 148 149 //每月几号 150 string yue_x; 151 152 public string Yue_x 153 { 154 get { return yue_x; } 155 set { yue_x = value; } 156 } 157 158 //每天 159 string day_x; 160 161 public string Day_x 162 { 163 get { return day_x; } 164 set { day_x = value; } 165 } 166 167 //备注 168 string bz; 169 170 public string Bz 171 { 172 get { return bz; } 173 set { bz = value; } 174 } 175 176 string flax; 177 178 //标志 0:普通预约 1:例会预约 179 public string Flax 180 { 181 get { return flax; } 182 set { flax = value; } 183 } 184 } 185 186 }
T_Room.cs
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace Reservation.MODEL 8 { 9 public class T_Room 10 { 11 12 /// <summary> 13 /// 会议室表,对象 14 /// </summary> 15 16 17 int id; 18 19 public int Id 20 { 21 get { return id; } 22 set { id = value; } 23 } 24 25 //会议室编号 26 string room_id; 27 28 public string Room_id 29 { 30 get { return room_id; } 31 set { room_id = value; } 32 } 33 34 //会议室名字:一楼教育培训会议室,一楼大会议室...... 35 string room_mc; 36 37 public string Room_mc 38 { 39 get { return room_mc; } 40 set { room_mc = value; } 41 } 42 43 //创建人 44 string adder; 45 46 public string Adder 47 { 48 get { return adder; } 49 set { adder = value; } 50 } 51 52 //创建时间 53 DateTime add_time; 54 55 public DateTime Add_time 56 { 57 get { return add_time; } 58 set { add_time = value; } 59 } 60 61 } 62 }
T_UserInfo.cs
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace Reservation.MODEL 8 { 9 public class T_UserInfo 10 { 11 /// <summary> 12 /// 用户表,对象 13 /// </summary> 14 15 //id 16 int id; 17 18 public int Id 19 { 20 get { return id; } 21 set { id = value; } 22 } 23 24 //用户名 25 string userName; 26 27 public string UserName 28 { 29 get { return userName; } 30 set { userName = value; } 31 } 32 33 //密码 34 string userPassword; 35 36 public string UserPassword 37 { 38 get { return userPassword; } 39 set { userPassword = value; } 40 } 41 42 //邮箱 43 string userEmail; 44 45 public string UserEmail 46 { 47 get { return userEmail; } 48 set { userEmail = value; } 49 } 50 51 //部门 52 string user_BM; 53 54 public string User_BM 55 { 56 get { return user_BM; } 57 set { user_BM = value; } 58 } 59 60 //添加时间 61 DateTime add_time; 62 63 public DateTime Add_time 64 { 65 get { return add_time; } 66 set { add_time = value; } 67 } 68 69 //用户全名 70 string user_FullName; 71 72 public string User_FullName 73 { 74 get { return user_FullName; } 75 set { user_FullName = value; } 76 } 77 78 string user_Power; 79 80 public string User_Power 81 { 82 get { return user_Power; } 83 set { user_Power = value; } 84 } 85 } 86 }