Edit.cshtml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. @model EMIS.ViewModel.EnrollManage.NewStudentManage.NewStudentView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. var isEnable = Request["type"] == "detail" ? false : true;
  7. //院系所
  8. ComboGridOptions cgopCollege = new ComboGridOptions
  9. {
  10. TextField = "Name",
  11. ValueField = "CollegeID",
  12. IsEnabled = isEnable,
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 },
  19. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.3 }
  20. },
  21. PageSize = 5,
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false
  27. }
  28. };
  29. //专业信息
  30. ComboGridOptions cgopSpecialty = new ComboGridOptions
  31. {
  32. TextField = "StandardName",
  33. ValueField = "SpecialtyID",
  34. OnSelect = "querySpecialty",
  35. IsEnabled = isEnable,
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new LinkButtonColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardCode", Width=0.1 },
  41. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardName", Width=0.2 },
  42. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.12 },
  43. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.12 },
  44. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.06 },
  45. new BoundFieldColumn { FieldName="RecordStatusStr", HeaderText="状态", Align=AlignStyle.Center, OrderFieldName="RecordStatus", Width=0.12 }
  46. },
  47. PageSize = 5,
  48. IsCheckOnSelect = true,
  49. DataSourceUrl = Url.Content("~/Specialty/GetEnableAndUseSpecialtyView" + "?specialtyID=" + Model.SpecialtyID),
  50. IsPagination = true,
  51. IsShowRowNumbers = true,
  52. IsSingleSelect = false,
  53. }
  54. };
  55. //班级信息(暂时不做联动查询)
  56. ComboGridOptions cgopClassmajor = new ComboGridOptions
  57. {
  58. TextField = "Name",
  59. ValueField = "ClassmajorID",
  60. IsEnabled = isEnable,
  61. GridOptions = new DataGridOptions
  62. {
  63. Columns = new List<DataGridColumn>()
  64. {
  65. new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Width=0.2, Align=AlignStyle.Center },
  66. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.35, Align=AlignStyle.Center }
  67. },
  68. PageSize = 5,
  69. IsCheckOnSelect = true,
  70. DataSourceUrl = Url.Content("~/Classmajor/List"),
  71. IsPagination = true,
  72. IsShowRowNumbers = true,
  73. IsSingleSelect = false
  74. }
  75. };
  76. }
  77. @section scripts{
  78. <script src="~/Scripts/Business/EnrollManage/NewStudentManage/NewStudentEnterEdit.js" type="text/javascript"></script>
  79. <script type="text/javascript">
  80. var nonSelect = "@DropdownList.SELECT_ALL";
  81. </script>
  82. }
  83. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  84. @using (Html.BeginForm("Edit", "NewStudentEnter", new
  85. {
  86. MNU = Request["MNU"],
  87. WindowID = Request["WindowID"] },
  88. FormMethod.Post,
  89. new { enctype = "multipart/form-data"
  90. }))
  91. {
  92. <div class="p_title">
  93. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  94. </div>
  95. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  96. @if (Request["type"] != "detail")
  97. {
  98. @Html.ContextMenuBar("Edit")
  99. }
  100. </div>
  101. </div>
  102. <div class="search_list">
  103. @Html.HiddenFor(x => x.NewStudentID)
  104. <table cellpadding="0" cellspacing="0" id="newStudentEnterTable">
  105. <tr>
  106. <td style="color:red;">
  107. @Html.LabelFor(x => x.ExamineeNum):
  108. </td>
  109. <td>
  110. @Html.TextBoxFor(x => x.ExamineeNum, new TextBoxOptions() { IsEnabled = isEnable })
  111. </td>
  112. <td rowspan="5">
  113. @Html.LabelFor(x => x.RecruitPictureUrl):
  114. </td>
  115. <td rowspan="5">
  116. <div>
  117. <img src="@Model.RecruitPictureUrlStr" id="imgPhoto" width="118" height="125" />
  118. </div>
  119. <div>
  120. <span>
  121. @if (isEnable)
  122. {
  123. if (Request["type"] == "edit")
  124. {
  125. @Html.SingleUploaderFor(x => x.RecruitPictureUrl, new Dictionary<string, object> { { "style", "width:125px;" } })
  126. <input type="button" value="删除" onclick="javascript: delPhoto();" />
  127. }
  128. else
  129. {
  130. @Html.SingleUploaderFor(x => x.RecruitPictureUrl, new Dictionary<string, object> { { "style", "width:175px;" } })
  131. }
  132. }
  133. </span>
  134. </div>
  135. </td>
  136. </tr>
  137. <tr>
  138. <td>
  139. @Html.LabelFor(x => x.AdmissionTicketNo):
  140. </td>
  141. <td>
  142. @Html.TextBoxFor(x => x.AdmissionTicketNo, new TextBoxOptions() { IsEnabled = isEnable })
  143. </td>
  144. </tr>
  145. <tr>
  146. <td>
  147. @Html.LabelFor(x => x.Name):
  148. </td>
  149. <td>
  150. @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = isEnable })
  151. </td>
  152. </tr>
  153. <tr>
  154. <td>
  155. @Html.LabelFor(x => x.SexID):
  156. </td>
  157. <td>
  158. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.SexID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  159. </td>
  160. </tr>
  161. <tr>
  162. <td>
  163. @Html.LabelFor(x => x.NationID):
  164. </td>
  165. <td>
  166. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.NationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  167. </td>
  168. </tr>
  169. <tr>
  170. <td>
  171. @Html.LabelFor(x => x.PoliticsID):
  172. </td>
  173. <td>
  174. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Politics, (x => x.PoliticsID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  175. </td>
  176. <td>
  177. @Html.LabelFor(x => x.BirthDate):
  178. </td>
  179. <td>
  180. @Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable })
  181. </td>
  182. </tr>
  183. <tr>
  184. <td>
  185. @Html.LabelFor(x => x.CertificatesType):
  186. </td>
  187. <td>
  188. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  189. </td>
  190. <td>
  191. @Html.LabelFor(x => x.IDNumber):
  192. </td>
  193. <td>
  194. @Html.TextBoxFor(x => x.IDNumber, new TextBoxOptions() { IsEnabled = isEnable })
  195. </td>
  196. </tr>
  197. <tr>
  198. <td colspan="4" style="padding:1px;height:10px;">
  199. <div id="specialtyExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
  200. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;"
  201. onclick="swapSpecialty();">
  202. </div>
  203. <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapSpecialty();">
  204. 招生信息
  205. </div>
  206. </td>
  207. </tr>
  208. <tr>
  209. <td style="color:red;">
  210. @Html.LabelFor(x => x.GradeID):
  211. </td>
  212. <td>
  213. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  214. </td>
  215. <td style="color:red;">
  216. @Html.LabelFor(x => x.StandardName):
  217. </td>
  218. <td>
  219. @Html.ComboGridFor(x => x.SpecialtyID, cgopSpecialty)
  220. </td>
  221. </tr>
  222. <tr>
  223. <td style="color:red;">
  224. @Html.LabelFor(x => x.Code):
  225. </td>
  226. <td>
  227. @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = false })
  228. </td>
  229. <td style="color:red;">
  230. @Html.LabelFor(x => x.EducationID):
  231. </td>
  232. <td>
  233. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  234. </td>
  235. </tr>
  236. <tr>
  237. <td style="color:red;">
  238. @Html.LabelFor(x => x.LearningformID):
  239. </td>
  240. <td>
  241. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, (x => x.LearningformID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  242. </td>
  243. <td style="color:red;">
  244. @Html.LabelFor(x => x.LearnSystem):
  245. </td>
  246. <td>
  247. @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = false })
  248. </td>
  249. </tr>
  250. <tr>
  251. <td style="color:red;">
  252. @Html.LabelFor(x => x.SemesterID):
  253. </td>
  254. <td>
  255. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Semester, (x => x.SemesterID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  256. </td>
  257. <td style="color:red;">
  258. @Html.LabelFor(x => x.CollegeName):
  259. </td>
  260. <td>
  261. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  262. </td>
  263. </tr>
  264. <tr>
  265. <td style="color: red">
  266. @Html.LabelFor(x => x.ClassmajorName):
  267. </td>
  268. <td>
  269. @Html.ComboGridFor(x => x.ClassmajorID, cgopClassmajor)
  270. </td>
  271. <td style="color: red">
  272. @Html.LabelFor(x => x.StudentNo):
  273. </td>
  274. <td>
  275. @Html.TextBoxFor(x => x.StudentNo, new TextBoxOptions() { IsEnabled = isEnable })
  276. </td>
  277. </tr>
  278. <tr>
  279. <td colspan="4" style="padding:1px;height:10px;">
  280. <div id="otherExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
  281. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;"
  282. onclick="swapOther();">
  283. </div>
  284. <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapOther();">
  285. 其它信息
  286. </div>
  287. </td>
  288. </tr>
  289. <tr>
  290. <td>
  291. @Html.LabelFor(x => x.EntranceDate):
  292. </td>
  293. <td>
  294. @Html.TextBoxFor(x => x.EntranceDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable })
  295. </td>
  296. <td>
  297. @Html.LabelFor(x => x.Score):
  298. </td>
  299. <td>
  300. @Html.TextBoxFor(x => x.Score, new TextBoxOptions() { IsEnabled = isEnable })
  301. </td>
  302. </tr>
  303. <tr>
  304. <td>
  305. @Html.LabelFor(x => x.Telephone):
  306. </td>
  307. <td>
  308. @Html.TextBoxFor(x => x.Telephone, new TextBoxOptions() { IsEnabled = isEnable })
  309. </td>
  310. <td>
  311. @Html.LabelFor(x => x.ZIPCode):
  312. </td>
  313. <td>
  314. @Html.TextBoxFor(x => x.ZIPCode, new TextBoxOptions() { IsEnabled = isEnable })
  315. </td>
  316. </tr>
  317. <tr>
  318. <td>
  319. @Html.LabelFor(x => x.EntranceWayID):
  320. </td>
  321. <td>
  322. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_EntranceWay, (x => x.EntranceWayID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  323. </td>
  324. <td>
  325. @Html.LabelFor(x => x.FeaturesID):
  326. </td>
  327. <td>
  328. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Features, (x => x.FeaturesID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  329. </td>
  330. </tr>
  331. <tr>
  332. <td>
  333. @Html.LabelFor(x => x.TerritorialID):
  334. </td>
  335. <td>
  336. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Province, (x => x.TerritorialID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  337. </td>
  338. <td>
  339. @Html.LabelFor(x => x.Dormitory):
  340. </td>
  341. <td>
  342. @Html.TextBoxFor(x => x.Dormitory, new TextBoxOptions() { IsEnabled = isEnable })
  343. </td>
  344. </tr>
  345. <tr>
  346. <td>
  347. @Html.LabelFor(x => x.Address):
  348. </td>
  349. <td colspan="3">
  350. @Html.TextBoxFor(x => x.Address, new TextBoxOptions() { IsEnabled = isEnable }, new Dictionary<string, string> { { "style", "width:90%;" } })
  351. </td>
  352. </tr>
  353. <tr>
  354. <td>
  355. @Html.LabelFor(x => x.Remark):
  356. </td>
  357. <td colspan="3">
  358. @if (!isEnable)
  359. {
  360. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
  361. {
  362. { "style", "width: 90%;min-height: 20px" },
  363. { "disabled", "true" }
  364. })
  365. }
  366. else
  367. {
  368. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 20px" } })
  369. }
  370. </td>
  371. </tr>
  372. </table>
  373. </div>
  374. }
  375. </div>