Edit.cshtml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. @model EMIS.ViewModel.Students.StudentsView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. var isAddNew = (Request["userIds"] ?? "") == "";
  7. if (Request["type"] == "copyAdd")
  8. {
  9. isAddNew = true;
  10. }
  11. ComboGridOptions cgopStudentcharge = new ComboGridOptions
  12. {
  13. TextField = "Name",
  14. ValueField = "ClassmajorID",
  15. OnSelect = "QueryClassmajorComboGrid",
  16. //IsEnabled = isAddNew,
  17. GridOptions = new DataGridOptions
  18. {
  19. Columns = new List<DataGridColumn>()
  20. {
  21. new BoundFieldColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.12 },
  22. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.3 },
  23. //new BoundFieldColumn { FieldName="yearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 },
  24. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.06 },
  25. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.1 },
  26. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.15 }
  27. //new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学年学期", Align=AlignStyle.Center }
  28. },
  29. IsCheckOnSelect = true,
  30. DataSourceUrl = Url.Content("~/Classmajor/List"),
  31. IsPagination = true,
  32. IsShowRowNumbers = true,
  33. IsSingleSelect = false
  34. }
  35. };
  36. ComboGridOptions cgopCollege = new ComboGridOptions
  37. {
  38. TextField = "Name",
  39. ValueField = "CollegeID",
  40. //OnSelect = "queryCollege",
  41. Name = "CollegeDropdown",
  42. ID = "CollegeDropdown",
  43. GridOptions = new DataGridOptions
  44. {
  45. Columns = new List<DataGridColumn>()
  46. {
  47. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  48. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  49. },
  50. //OnLoadSuccessFun = "queryClass",
  51. IsCheckOnSelect = true,
  52. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  53. IsPagination = true,
  54. IsShowRowNumbers = true,
  55. IsSingleSelect = false,
  56. }
  57. };
  58. ComboGridOptions cgopStandard = new ComboGridOptions
  59. {
  60. TextField = "StandardName",
  61. ValueField = "StandardID",
  62. //OnSelect = "queryStandard",
  63. Name = "StandardDictionaryDropDown",
  64. ID = "StandardDictionaryDropDown",
  65. GridOptions = new DataGridOptions
  66. {
  67. Columns = new List<DataGridColumn>()
  68. {
  69. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  70. },
  71. IsCheckOnSelect = true,
  72. DataSourceUrl = Url.Content("~/Grademajor/GrademajorBindComboGridOptions"),
  73. IsPagination = true,
  74. IsShowRowNumbers = true,
  75. IsSingleSelect = false,
  76. }
  77. };
  78. }
  79. <style type="text/css">
  80. .universitytable
  81. {
  82. width: 100%;
  83. border: 0px none;
  84. }
  85. .universitytable tr
  86. {
  87. min-height: 30px;
  88. }
  89. .a4
  90. {
  91. width: 600px;
  92. color: Red;
  93. }
  94. </style>
  95. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  96. @using (Html.BeginForm("Edit", "Students", new { MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" }))
  97. {
  98. <div class="p_title">
  99. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  100. </div>
  101. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  102. @if(Request["isView"] != "1")
  103. {
  104. @Html.ContextMenuBar("Edit")
  105. }
  106. </div>
  107. </div>
  108. <div class="search_list">
  109. @Html.HiddenFor(x => x.UserID)
  110. @Html.HiddenFor(x => x.PlanningGraduateDateStr)
  111. @Html.HiddenFor(x=>x.GradeMajorID)
  112. @if(isAddNew==false)
  113. {
  114. @Html.HiddenFor(x=>x.LoginID)
  115. }
  116. <table cellpadding="0" cellspacing="0" class="universitytable">
  117. @*<tr>
  118. <td colspan="4">
  119. <span class="a4">个人信息</span>
  120. </td>
  121. </tr>*@
  122. <tr>
  123. <td>@Html.LabelFor(x => x.IDNumber):
  124. </td>
  125. <td>@Html.TextBoxFor(x => x.IDNumber, new TextBoxOptions() {IsEnabled = isAddNew })
  126. @Html.HiddenFor(x => x.IDNumber)
  127. </td>
  128. <td rowspan="4">@Html.LabelFor(x => x.PhotoUrl):
  129. </td>
  130. <td rowspan="4">
  131. <div>
  132. <img src="@Model.PhotoUrl" width="90" height="100" />
  133. </div>
  134. <div>
  135. @Html.SingleUploaderFor(x => x.PhotoUrl, new Dictionary<string, object> { { "style", "width:150px;" },
  136. { "accept", "*.jpg;*.jpeg;*.png;*.bmp" } })<br />
  137. <b style="color:red">照片要求:照片为近期、正面、免冠、白底彩色证件照,JPG格式,照片大小为50-200K(此照片用于制作证书)</b>
  138. </div>
  139. </td>
  140. </tr>
  141. <tr>
  142. <td>@Html.LabelFor(x => x.UserName):
  143. </td>
  144. <td>
  145. @*@Html.TextBoxFor(x => x.UserName, new TextBoxOptions() {IsEnabled = isAddNew })*@
  146. @Html.TextBoxFor(x => x.UserName)
  147. </td>
  148. </tr>
  149. <tr>
  150. <td>@Html.LabelFor(x => x.Sex):
  151. </td>
  152. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.Sex))
  153. </td>
  154. </tr>
  155. <tr>
  156. <td>@Html.LabelFor(x => x.StudentType):
  157. </td>
  158. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, (x => x.StudentType))
  159. </td>
  160. </tr>
  161. <tr>
  162. <td>@Html.LabelFor(x => x.CertificatesType):
  163. </td>
  164. <td colspan="3">@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType))
  165. </td>
  166. @*<td>@Html.LabelFor(x => x.IDNumber):
  167. </td>
  168. <td>@Html.TextBoxFor(x => x.IDNumber)
  169. </td>*@
  170. </tr>
  171. <tr>
  172. <td>@Html.LabelFor(x => x.CollegeName):
  173. </td>
  174. <td>
  175. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  176. </td>
  177. <td>@Html.LabelFor(x => x.StandardName):
  178. </td>
  179. <td>@Html.ComboGridFor(x => x.StandardID, cgopStandard)
  180. </td>
  181. </tr>
  182. <tr>
  183. <td>@Html.LabelFor(x => x.ClassMajorID):
  184. </td>
  185. <td>
  186. @Html.ComboGridFor(x => x.ClassMajorID, cgopStudentcharge)
  187. </td>
  188. <td>@Html.LabelFor(x => x.EnteringSchoolYearID):
  189. </td>
  190. <td>@Html.DropdownListFor(x => x.EnteringSchoolYearID, new DropdownListOptions { ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value", })
  191. </td>
  192. </tr>
  193. <tr>
  194. <td>@Html.LabelFor(x => x.InSchoolStatusID):
  195. </td>
  196. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID))
  197. </td>
  198. <td>@Html.LabelFor(x => x.StudentStatus):
  199. </td>
  200. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_STUDENTSTATUS, (x => x.StudentStatus))
  201. </td>
  202. </tr>
  203. <tr>
  204. <td>@Html.LabelFor(x => x.Email):
  205. </td>
  206. <td>@Html.TextBoxFor(x => x.Email)
  207. </td>
  208. <td>@Html.LabelFor(x => x.Mobile):
  209. </td>
  210. <td>@Html.TextBoxFor(x => x.Mobile)
  211. </td>
  212. </tr>
  213. <tr>
  214. <td>@Html.LabelFor(x => x.StudentNo):
  215. </td>
  216. <td>@Html.TextBoxFor(x => x.StudentNo)
  217. </td>
  218. <td>@Html.LabelFor(x => x.GraduateCardNo):
  219. </td>
  220. <td>@Html.TextBoxFor(x => x.GraduateCardNo)
  221. </td>
  222. </tr>
  223. <tr>
  224. <td>@Html.LabelFor(x => x.PlanningGraduateDate):
  225. </td>
  226. <td>@Html.TextBoxFor(x => x.PlanningGraduateDate, new TextBoxOptions() { TextBoxType = TextBoxType.yyyyMMdd, IsEnabled = false })
  227. </td>
  228. <td>@Html.LabelFor(x=>x.GraduateDate):
  229. </td>
  230. <td>@Html.TextBoxFor(x => x.GraduateDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled=false })
  231. </td>
  232. </tr>
  233. <tr>
  234. <td>@Html.LabelFor(x => x.IsDreamProject):
  235. </td>
  236. <td>@Html.CheckBoxFor(x=>x.IsDreamProject)
  237. </td>
  238. <td>@Html.LabelFor(x => x.ReplaceGraduateNo):
  239. </td>
  240. <td>@Html.TextBoxFor(x => x.ReplaceGraduateNo)
  241. </td>
  242. </tr>
  243. <tr>
  244. <td colspan="4">
  245. <span class="a4">学生扩展信息</span>
  246. </td>
  247. </tr>
  248. <tr>
  249. <td>@Html.LabelFor(x => x.UsedName):
  250. </td>
  251. <td>@Html.TextBoxFor(x => x.UsedName)
  252. </td>
  253. <td>@Html.LabelFor(x => x.DirectorName):
  254. </td>
  255. <td>@Html.TextBoxFor(x => x.DirectorName)
  256. </td>
  257. </tr>
  258. <tr>
  259. <td>@Html.LabelFor(x => x.BirthDate):
  260. </td>
  261. <td>@Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  262. </td>
  263. <td>@Html.LabelFor(x => x.Country):
  264. </td>
  265. <td>@Html.TextBoxFor(x => x.Country)
  266. </td>
  267. </tr>
  268. <tr>
  269. <td>@Html.LabelFor(x => x.Politics):
  270. </td>
  271. <td>@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Politics, (x => x.Politics), DropdownListBindType.PleaseSelect)
  272. </td>
  273. <td>@Html.LabelFor(x => x.Nation):
  274. </td>
  275. <td>@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.Nation), DropdownListBindType.PleaseSelect)
  276. </td>
  277. </tr>
  278. <tr>
  279. <td>@Html.LabelFor(x => x.Place):
  280. </td>
  281. <td>@Html.TextBoxFor(x => x.Place)
  282. </td>
  283. <td>@Html.LabelFor(x => x.Healthy):
  284. </td>
  285. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HealthState, (x => x.Healthy))
  286. </td>
  287. </tr>
  288. <tr>
  289. <td>@Html.LabelFor(x => x.BloodGroup):
  290. </td>
  291. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_BLOODGROUP, (x => x.BloodGroup))
  292. </td>
  293. <td>@Html.LabelFor(x => x.Specialty):
  294. </td>
  295. <td>@Html.TextBoxFor(x => x.Specialty)
  296. </td>
  297. </tr>
  298. <tr>
  299. <td>@Html.LabelFor(x => x.Height):
  300. </td>
  301. <td>@Html.TextBoxFor(x => x.Height)
  302. </td>
  303. <td>@Html.LabelFor(x => x.Weight):
  304. </td>
  305. <td>@Html.TextBoxFor(x => x.Weight)
  306. </td>
  307. </tr>
  308. <tr>
  309. <td colspan="4">
  310. <span class="a4">高考招生信息</span>
  311. </td>
  312. </tr>
  313. <tr>
  314. <td>@Html.LabelFor(x => x.ExamineeNum):
  315. </td>
  316. <td>@Html.TextBoxFor(x => x.ExamineeNum)
  317. </td>
  318. <td>@Html.LabelFor(x => x.EntranceDate):
  319. </td>
  320. <td>@Html.TextBoxFor(x => x.EntranceDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  321. </td>
  322. </tr>
  323. <tr>
  324. <td>@Html.LabelFor(x => x.CultureModel):
  325. </td>
  326. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CULTUREMODEL, (x => x.CultureModel))
  327. </td>
  328. <td>@Html.LabelFor(x => x.ExamineeType):
  329. </td>
  330. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_EXAMINEETYPE, (x => x.ExamineeType))
  331. </td>
  332. </tr>
  333. <tr>
  334. <td>@Html.LabelFor(x => x.EntranceWay):
  335. </td>
  336. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_EntranceWay, (x => x.EntranceWay))
  337. </td>
  338. <td>@Html.LabelFor(x => x.Features):
  339. </td>
  340. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Features, (x => x.Features))
  341. </td>
  342. </tr>
  343. <tr>
  344. <td>@Html.LabelFor(x => x.Territorial):
  345. </td>
  346. <td>@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Province, (x => x.Territorial), DropdownListBindType.PleaseSelect)
  347. </td>
  348. <td>@Html.LabelFor(x => x.Placebirth):
  349. </td>
  350. <td>@Html.TextBoxFor(x => x.Placebirth)
  351. </td>
  352. </tr>
  353. <tr>
  354. <td>@Html.LabelFor(x => x.Area):
  355. </td>
  356. <td>@Html.TextBoxFor(x => x.Area)
  357. </td>
  358. <td>@Html.LabelFor(x => x.Score):
  359. </td>
  360. <td>@Html.TextBoxFor(x => x.Score)
  361. </td>
  362. </tr>
  363. <tr>
  364. <td colspan="4">
  365. <span class="a4">学生缴费信息</span>
  366. </td>
  367. </tr>
  368. <tr>
  369. <td>@Html.LabelFor(x => x.CardNo):
  370. </td>
  371. <td>@Html.TextBoxFor(x => x.CardNo)
  372. </td>
  373. <td>@Html.LabelFor(x => x.BankName):
  374. </td>
  375. <td>@Html.TextBoxFor(x => x.BankName)
  376. </td>
  377. </tr>
  378. <tr>
  379. <td colspan="4">
  380. <span class="a4">学生联系信息</span>
  381. </td>
  382. </tr>
  383. <tr>
  384. <td>@Html.LabelFor(x => x.Telephone):
  385. </td>
  386. <td>@Html.TextBoxFor(x => x.Telephone)
  387. </td>
  388. <td>@Html.LabelFor(x => x.QQ):
  389. </td>
  390. <td>@Html.TextBoxFor(x => x.QQ)
  391. </td>
  392. </tr>
  393. <tr>
  394. <td>@Html.LabelFor(x => x.MicroMsgNo):
  395. </td>
  396. <td>@Html.TextBoxFor(x => x.MicroMsgNo)
  397. </td>
  398. <td>@Html.LabelFor(x => x.ZipCode):
  399. </td>
  400. <td>@Html.TextBoxFor(x => x.ZipCode)
  401. </td>
  402. </tr>
  403. <tr>
  404. <td>@Html.LabelFor(x => x.Address):
  405. </td>
  406. <td>@Html.TextBoxFor(x => x.Address)
  407. </td>
  408. <td>@Html.LabelFor(x => x.WorkUnit):
  409. </td>
  410. <td>@Html.TextBoxFor(x => x.WorkUnit)
  411. </td>
  412. </tr>
  413. <tr>
  414. <td>@Html.LabelFor(x => x.HomeAddress):
  415. </td>
  416. <td>@Html.TextBoxFor(x => x.HomeAddress)
  417. </td>
  418. <td>@Html.LabelFor(x => x.Recipient):
  419. </td>
  420. <td>@Html.TextBoxFor(x => x.Recipient)
  421. </td>
  422. </tr>
  423. <tr>
  424. <td>@Html.LabelFor(x => x.Dormitory):
  425. </td>
  426. <td>@Html.TextBoxFor(x => x.Dormitory)
  427. </td>
  428. <td>
  429. </td>
  430. <td>
  431. </td>
  432. </tr>
  433. @if (Request["isView"] == "1")
  434. {
  435. <tr>
  436. <td colspan="4">
  437. <span class="a4">学生异动信息</span>
  438. </td>
  439. </tr>
  440. <tr>
  441. <td colspan="4">
  442. <div style="width: 100%; height: 100px; overflow: scroll; scrollbar-arrow-color:#ffffff; scrollbar-highlight-color:#ffffff; scrollbar-3dlight-color:#70807d; scrollbar-shadow-color:#ffffff; scrollbar-darkshadow-color:#70807d; scrollbar-track-color:#ffffff">
  443. @Html.DataGrid(new DataGridOptions
  444. {
  445. Columns = new List<DataGridColumn>()
  446. {
  447. new CheckBoxFieldColumn{ HeaderText="", FieldName="EntityID"},
  448. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="异动学期", Align=AlignStyle.Center, Handle="edit",Width=0.05 },
  449. //new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center,Width=0.045 },
  450. //new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,OverflowLength=6,Width=0.02 },
  451. new BoundFieldColumn { FieldName="DifferentDynamicTypeName", HeaderText="异动类型", Align=AlignStyle.Center,Width=0.025 },
  452. new BoundFieldColumn { FieldName="Reason", HeaderText="异动原因", Align=AlignStyle.Center, OverflowLength=6,Width=0.025, IsHidden=true },
  453. //new BoundFieldColumn { FieldName="ReasonName", HeaderText="异动原因", Align=AlignStyle.Center, OverflowLength=6,Width=0.025 },
  454. //new BoundFieldColumn { FieldName="StandardName", HeaderText="异动前专业", Align=AlignStyle.Center },
  455. //new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="异动前班级", Align=AlignStyle.Center,OverflowLength=13 },
  456. //new BoundFieldColumn { FieldName="AfterStandardName", HeaderText="异动后专业", Align=AlignStyle.Center },
  457. new BoundFieldColumn { FieldName="AfterClassmajorName", HeaderText="异动后班级", Align=AlignStyle.Center,OverflowLength=13 },
  458. new BoundFieldColumn { FieldName="EntityCreateTime", HeaderText="异动日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay,Width=0.04 },
  459. //new BoundFieldColumn { FieldName="ReportStatusName", HeaderText="注册状态", Align=AlignStyle.Center,Width=0.03 },
  460. },
  461. PageSize=3,
  462. IsCheckOnSelect = true,
  463. DataSourceUrl = Url.Content("~/DifferentDynamicResult/StudentDifferentDynamicApplyInfo?userID=" + Model.UserID),
  464. ID = "dgList",
  465. IsPagination = true,
  466. IsShowRowNumbers = true,
  467. IsSingleSelect = false
  468. })
  469. </div>
  470. </td>
  471. </tr>
  472. }
  473. <tr>
  474. <td>@Html.LabelFor(x => x.Career):
  475. </td>
  476. <td colspan="3">@Html.TextAreaFor(x => x.Career, new Dictionary<string, object> { { "style", "width:85%" } })
  477. </td>
  478. </tr>
  479. <tr>
  480. <td>@Html.LabelFor(x => x.Remarks):
  481. </td>
  482. <td colspan="3">@Html.TextAreaFor(x => x.Remarks, new Dictionary<string, object> { { "style", "width:85%" } })
  483. </td>
  484. </tr>
  485. </table>
  486. </div>
  487. }
  488. </div>
  489. @section scripts{
  490. <script src="~/Scripts/Business/Studentfile/StudentEdit.js" type="text/javascript"></script>
  491. }