PhotoDetail.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. @model EMIS.ViewModel.StudentManage.StudentProfile.StudentView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "PhotoDetail";
  6. var isEnable = Request["type"] == "detail" ? false : true;
  7. var isEdit = Request["type"] == "detail" ? false : (Request["type"] == "edit" ? false : true);
  8. //院系所
  9. ComboGridOptions cgopCollege = new ComboGridOptions
  10. {
  11. TextField = "Name",
  12. ValueField = "CollegeID",
  13. IsEnabled = false,
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  19. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 },
  20. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.3 }
  21. },
  22. PageSize = 5,
  23. IsCheckOnSelect = true,
  24. DataSourceUrl = Url.Content("~/College/List"),
  25. IsPagination = true,
  26. IsShowRowNumbers = true,
  27. IsSingleSelect = false
  28. }
  29. };
  30. //班级信息
  31. ComboGridOptions cgopClassmajor = new ComboGridOptions
  32. {
  33. TextField = "Name",
  34. ValueField = "ClassmajorID",
  35. IsEnabled = isEdit,
  36. OnSelect = "queryClassmajor",
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Width=0.2, Align=AlignStyle.Center },
  42. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.35, Align=AlignStyle.Center }
  43. },
  44. PageSize = 5,
  45. IsCheckOnSelect = true,
  46. DataSourceUrl = Url.Content("~/Classmajor/List"),
  47. IsPagination = true,
  48. IsShowRowNumbers = true,
  49. IsSingleSelect = false
  50. }
  51. };
  52. }
  53. @section scripts{
  54. <script src="~/Scripts/Business/StudentManage/StudentProfile/StudentEdit.js" type="text/javascript"></script>
  55. <script type="text/javascript">
  56. var nonSelect = "@DropdownList.SELECT_ALL";
  57. </script>
  58. }
  59. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  60. @using (Html.BeginForm("PhotoDetail", "Student", new { MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" }))
  61. {
  62. <div class="p_title">
  63. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  64. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;"></div>
  65. </div>
  66. <div class="search_list">
  67. @Html.HiddenFor(x => x.UserID)
  68. @if (!isEdit)
  69. {
  70. @Html.HiddenFor(x => x.StudentNo)
  71. @Html.HiddenFor(x => x.ExamineeNum)
  72. }
  73. <table cellpadding="0" cellspacing="0" id="photodetailtable">
  74. <tr>
  75. <td style="color:red;">
  76. @Html.LabelFor(x => x.StudentNo):
  77. </td>
  78. <td>
  79. @Html.TextBoxFor(x => x.StudentNo, new TextBoxOptions() { IsEnabled = isEdit })
  80. </td>
  81. <td style="color: red;" rowspan="5">
  82. @Html.LabelFor(x => x.RecruitPictureUrl):
  83. </td>
  84. <td rowspan="5">
  85. <div>
  86. <img src="@Model.RecruitPictureUrlStr" id="imgRecruitPhoto" width="118" height="125" />
  87. </div>
  88. <div>
  89. <span>
  90. </span>
  91. </div>
  92. </td>
  93. </tr>
  94. <tr>
  95. <td>
  96. @Html.LabelFor(x => x.Name):
  97. </td>
  98. <td>
  99. @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = isEnable })
  100. </td>
  101. </tr>
  102. <tr>
  103. <td>
  104. @Html.LabelFor(x => x.SexID):
  105. </td>
  106. <td>
  107. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.SexID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  108. </td>
  109. </tr>
  110. <tr>
  111. <td>
  112. @Html.LabelFor(x => x.BirthDate):
  113. </td>
  114. <td>
  115. @Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled = isEnable })
  116. </td>
  117. </tr>
  118. <tr>
  119. <td>
  120. @Html.LabelFor(x => x.NationID):
  121. </td>
  122. <td>
  123. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.NationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  124. </td>
  125. </tr>
  126. <tr>
  127. <td>
  128. @Html.LabelFor(x => x.PoliticsID):
  129. </td>
  130. <td>
  131. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Politics, (x => x.PoliticsID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  132. </td>
  133. <td style="color: red;" rowspan="5">
  134. @Html.LabelFor(x => x.PhotoUrl):
  135. </td>
  136. <td rowspan="5">
  137. <div>
  138. <img src="@Model.PhotoUrlStr" id="imgPhoto" width="118" height="125" />
  139. </div>
  140. <div>
  141. <span>
  142. </span>
  143. </div>
  144. </td>
  145. </tr>
  146. <tr>
  147. <td>
  148. @Html.LabelFor(x => x.StudentType):
  149. </td>
  150. <td>
  151. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, (x => x.StudentType), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  152. </td>
  153. </tr>
  154. <tr>
  155. <td>
  156. @Html.LabelFor(x => x.CertificatesType):
  157. </td>
  158. <td>
  159. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  160. </td>
  161. </tr>
  162. <tr>
  163. <td>
  164. @Html.LabelFor(x => x.IDNumber):
  165. </td>
  166. <td>
  167. @Html.TextBoxFor(x => x.IDNumber, new TextBoxOptions() { IsEnabled = isEnable })
  168. </td>
  169. </tr>
  170. <tr>
  171. <td style="color:red;">
  172. @Html.LabelFor(x => x.InSchoolStatusID):
  173. </td>
  174. <td>
  175. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEdit })
  176. </td>
  177. </tr>
  178. <tr>
  179. <td style="color:red;">
  180. @Html.LabelFor(x => x.StudentStatus):
  181. </td>
  182. <td>
  183. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.StudentStatus), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEdit })
  184. </td>
  185. <td style="color: red;" rowspan="5">
  186. @Html.LabelFor(x => x.GraduationPictureUrl):
  187. </td>
  188. <td rowspan="5">
  189. <div>
  190. <img src="@Model.GraduationPictureUrlStr" id="imgGraduationPhoto" width="118" height="125" />
  191. </div>
  192. <div>
  193. <span>
  194. </span>
  195. </div>
  196. </td>
  197. </tr>
  198. <tr>
  199. <td>
  200. @Html.LabelFor(x => x.GradeID):
  201. </td>
  202. <td>
  203. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  204. </td>
  205. </tr>
  206. <tr>
  207. <td>
  208. @Html.LabelFor(x => x.StandardName):
  209. </td>
  210. <td>
  211. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x => x.StandardID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  212. </td>
  213. </tr>
  214. <tr>
  215. <td>
  216. @Html.LabelFor(x => x.StandardCode):
  217. </td>
  218. <td>
  219. @Html.TextBoxFor(x => x.StandardCode, new TextBoxOptions() { IsEnabled = false })
  220. </td>
  221. </tr>
  222. <tr>
  223. <td>
  224. @Html.LabelFor(x => x.EducationID):
  225. </td>
  226. <td>
  227. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  228. </td>
  229. </tr>
  230. <tr>
  231. <td>
  232. @Html.LabelFor(x => x.LearningformID):
  233. </td>
  234. <td>
  235. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, (x => x.LearningformID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  236. </td>
  237. <td>
  238. @Html.LabelFor(x => x.LearnSystem):
  239. </td>
  240. <td>
  241. @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = false })
  242. </td>
  243. </tr>
  244. <tr>
  245. <td>
  246. @Html.LabelFor(x => x.CollegeName):
  247. </td>
  248. <td>
  249. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  250. </td>
  251. <td style="color: red">
  252. @Html.LabelFor(x => x.ClassmajorName):
  253. </td>
  254. <td>
  255. @Html.ComboGridFor(x => x.ClassmajorID, cgopClassmajor)
  256. </td>
  257. </tr>
  258. <tr>
  259. <td style="color:red;">
  260. @Html.LabelFor(x => x.ExamineeNum):
  261. </td>
  262. <td>
  263. @Html.TextBoxFor(x => x.ExamineeNum, new TextBoxOptions() { IsEnabled = isEdit })
  264. </td>
  265. <td style="color: red;">
  266. @Html.LabelFor(x => x.IsPhotoComparison):
  267. </td>
  268. <td>
  269. @if (!isEnable)
  270. {
  271. @Html.CheckBoxFor(x => x.IsPhotoComparison, new Dictionary<string, object>() { { "disabled", isEnable } })
  272. }
  273. else
  274. {
  275. @Html.CheckBoxFor(x => x.IsPhotoComparison, new Dictionary<string, object>() { { "disabled", isEnable } })
  276. }
  277. </td>
  278. </tr>
  279. </table>
  280. </div>
  281. }
  282. </div>