Edit.cshtml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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. @section scripts{
  57. <script src="~/Scripts/Business/EnrollManage/NewStudentManage/NewStudentCollegeEdit.js" type="text/javascript"></script>
  58. <script type="text/javascript">
  59. var nonSelect = "@DropdownList.SELECT_ALL";
  60. </script>
  61. }
  62. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  63. @using (Ajax.BeginForm(new AjaxOptions
  64. {
  65. OnSuccess = "EMISFunction.FormSuccess",
  66. OnBegin = "EMISFunction.FormSubmit",
  67. OnComplete = "EMISFunction.FormComplete"
  68. }))
  69. {
  70. <div class="p_title">
  71. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  72. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  73. @if (Request["type"] != "detail")
  74. {
  75. @Html.ContextMenuBar("Edit")
  76. }
  77. </div>
  78. </div>
  79. <div class="search_list">
  80. @Html.HiddenFor(x => x.NewStudentID)
  81. <table cellpadding="0" cellspacing="0" id="newStudentCollegeTable">
  82. <tr>
  83. <td style="color:red;">
  84. @Html.LabelFor(x => x.ExamineeNum):
  85. </td>
  86. <td>
  87. @Html.TextBoxFor(x => x.ExamineeNum, new TextBoxOptions() { IsEnabled = isEnable })
  88. </td>
  89. <td rowspan="5">
  90. @Html.LabelFor(x => x.RecruitPictureUrl):
  91. </td>
  92. <td rowspan="5">
  93. <div>
  94. <img src="@Model.RecruitPictureUrlStr" id="imgPhoto" width="118" height="125" />
  95. </div>
  96. @*<div>
  97. <span>
  98. @if (isEnable)
  99. {
  100. if (Request["type"] == "edit")
  101. {
  102. @Html.SingleUploaderFor(x => x.RecruitPictureUrl, new Dictionary<string, object> { { "style", "width:125px;" } })
  103. <input type="button" value="删除" onclick="javascript: delPhoto();" />
  104. }
  105. else
  106. {
  107. @Html.SingleUploaderFor(x => x.RecruitPictureUrl, new Dictionary<string, object> { { "style", "width:175px;" } })
  108. }
  109. }
  110. </span>
  111. </div>*@
  112. </td>
  113. </tr>
  114. <tr>
  115. <td>
  116. @Html.LabelFor(x => x.AdmissionTicketNo):
  117. </td>
  118. <td>
  119. @Html.TextBoxFor(x => x.AdmissionTicketNo, new TextBoxOptions() { IsEnabled = isEnable })
  120. </td>
  121. </tr>
  122. <tr>
  123. <td>
  124. @Html.LabelFor(x => x.Name):
  125. </td>
  126. <td>
  127. @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = isEnable })
  128. </td>
  129. </tr>
  130. <tr>
  131. <td>
  132. @Html.LabelFor(x => x.SexID):
  133. </td>
  134. <td>
  135. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.SexID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  136. </td>
  137. </tr>
  138. <tr>
  139. <td>
  140. @Html.LabelFor(x => x.NationID):
  141. </td>
  142. <td>
  143. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.NationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  144. </td>
  145. </tr>
  146. <tr>
  147. <td>
  148. @Html.LabelFor(x => x.PoliticsID):
  149. </td>
  150. <td>
  151. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Politics, (x => x.PoliticsID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  152. </td>
  153. <td>
  154. @Html.LabelFor(x => x.BirthDate):
  155. </td>
  156. <td>
  157. @Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable })
  158. </td>
  159. </tr>
  160. <tr>
  161. <td>
  162. @Html.LabelFor(x => x.CertificatesType):
  163. </td>
  164. <td>
  165. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  166. </td>
  167. <td>
  168. @Html.LabelFor(x => x.IDNumber):
  169. </td>
  170. <td>
  171. @Html.TextBoxFor(x => x.IDNumber, new TextBoxOptions() { IsEnabled = isEnable })
  172. </td>
  173. </tr>
  174. <tr>
  175. <td colspan="4" style="padding:1px;height:10px;">
  176. <div id="specialtyExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
  177. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;"
  178. onclick="swapSpecialty();">
  179. </div>
  180. <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapSpecialty();">
  181. 招生信息
  182. </div>
  183. </td>
  184. </tr>
  185. <tr>
  186. <td style="color:red;">
  187. @Html.LabelFor(x => x.GradeID):
  188. </td>
  189. <td>
  190. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  191. </td>
  192. <td style="color:red;">
  193. @Html.LabelFor(x => x.StandardName):
  194. </td>
  195. <td>
  196. @Html.ComboGridFor(x => x.SpecialtyID, cgopSpecialty)
  197. </td>
  198. </tr>
  199. <tr>
  200. <td style="color:red;">
  201. @Html.LabelFor(x => x.Code):
  202. </td>
  203. <td>
  204. @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = false })
  205. </td>
  206. <td style="color:red;">
  207. @Html.LabelFor(x => x.EducationID):
  208. </td>
  209. <td>
  210. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  211. </td>
  212. </tr>
  213. <tr>
  214. <td style="color:red;">
  215. @Html.LabelFor(x => x.LearningformID):
  216. </td>
  217. <td>
  218. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, (x => x.LearningformID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  219. </td>
  220. <td style="color:red;">
  221. @Html.LabelFor(x => x.LearnSystem):
  222. </td>
  223. <td>
  224. @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = false })
  225. </td>
  226. </tr>
  227. <tr>
  228. <td style="color:red;">
  229. @Html.LabelFor(x => x.SemesterID):
  230. </td>
  231. <td>
  232. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Semester, (x => x.SemesterID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  233. </td>
  234. <td style="color:red;">
  235. @Html.LabelFor(x => x.CollegeName):
  236. </td>
  237. <td>
  238. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  239. </td>
  240. </tr>
  241. <tr>
  242. <td colspan="4" style="padding:1px;height:10px;">
  243. <div id="otherExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
  244. background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;"
  245. onclick="swapOther();">
  246. </div>
  247. <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapOther();">
  248. 其它信息
  249. </div>
  250. </td>
  251. </tr>
  252. <tr>
  253. <td>
  254. @Html.LabelFor(x => x.EntranceDate):
  255. </td>
  256. <td>
  257. @Html.TextBoxFor(x => x.EntranceDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable })
  258. </td>
  259. <td>
  260. @Html.LabelFor(x => x.Score):
  261. </td>
  262. <td>
  263. @Html.TextBoxFor(x => x.Score, new TextBoxOptions() { IsEnabled = isEnable })
  264. </td>
  265. </tr>
  266. <tr>
  267. <td>
  268. @Html.LabelFor(x => x.Telephone):
  269. </td>
  270. <td>
  271. @Html.TextBoxFor(x => x.Telephone, new TextBoxOptions() { IsEnabled = isEnable })
  272. </td>
  273. <td>
  274. @Html.LabelFor(x => x.ZIPCode):
  275. </td>
  276. <td>
  277. @Html.TextBoxFor(x => x.ZIPCode, new TextBoxOptions() { IsEnabled = isEnable })
  278. </td>
  279. </tr>
  280. <tr>
  281. <td>
  282. @Html.LabelFor(x => x.EntranceWayID):
  283. </td>
  284. <td>
  285. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_EntranceWay, (x => x.EntranceWayID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  286. </td>
  287. <td>
  288. @Html.LabelFor(x => x.FeaturesID):
  289. </td>
  290. <td>
  291. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Features, (x => x.FeaturesID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  292. </td>
  293. </tr>
  294. <tr>
  295. <td>
  296. @Html.LabelFor(x => x.TerritorialID):
  297. </td>
  298. <td>
  299. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Province, (x => x.TerritorialID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  300. </td>
  301. <td>
  302. @Html.LabelFor(x => x.Dormitory):
  303. </td>
  304. <td>
  305. @Html.TextBoxFor(x => x.Dormitory, new TextBoxOptions() { IsEnabled = isEnable })
  306. </td>
  307. </tr>
  308. <tr>
  309. <td>
  310. @Html.LabelFor(x => x.Address):
  311. </td>
  312. <td colspan="3">
  313. @Html.TextBoxFor(x => x.Address, new TextBoxOptions() { IsEnabled = isEnable }, new Dictionary<string, string> { { "style", "width:90%;" } })
  314. </td>
  315. </tr>
  316. <tr>
  317. <td>
  318. @Html.LabelFor(x => x.Remark):
  319. </td>
  320. <td colspan="3">
  321. @if (!isEnable)
  322. {
  323. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
  324. {
  325. { "style", "width: 90%;min-height: 20px" },
  326. { "disabled", "true" }
  327. })
  328. }
  329. else
  330. {
  331. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 20px" } })
  332. }
  333. </td>
  334. </tr>
  335. </table>
  336. </div>
  337. }
  338. </div>