Edit.cshtml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. @model EMIS.ViewModel.DegreeManage.DegreeManage.DegreeApplyView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Entities;
  4. @using EMIS.Web.Controls;
  5. @{
  6. ViewBag.Title = "Edit";
  7. //学生信息
  8. ComboGridOptions cgopStudent = new ComboGridOptions
  9. {
  10. TextField = "LoginID",
  11. ValueField = "UserID",
  12. IsEnabled = false,
  13. OnSelect = "queryStudentView",
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.25, Align=AlignStyle.Center },
  19. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.15, Align=AlignStyle.Center }
  20. },
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/Students/BaseStudentViewList"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false
  26. }
  27. };
  28. //班级信息
  29. ComboGridOptions cgopClassmajor = new ComboGridOptions
  30. {
  31. TextField = "Name",
  32. ValueField = "ClassmajorID",
  33. Name = "ClassmajorComboGrid",
  34. IsEnabled = false,
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Width=0.2, Align=AlignStyle.Center },
  40. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.3, Align=AlignStyle.Center }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Classmajor/List"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false
  47. }
  48. };
  49. //院系所
  50. ComboGridOptions cgopCollege = new ComboGridOptions
  51. {
  52. TextField = "Name",
  53. ValueField = "CollegeID",
  54. ID = "CollegeDropdown",
  55. Name = "CollegeDropdown",
  56. IsEnabled = false,
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  62. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false,
  69. }
  70. };
  71. }
  72. @section scripts{
  73. <script src="~/Scripts/Business/DegreeManage/DegreeManage/DegreeApplyEdit.js" type="text/javascript"></script>
  74. }
  75. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  76. @using (Ajax.BeginForm(new AjaxOptions
  77. {
  78. OnSuccess = "EMISFunction.FormSuccess",
  79. OnBegin = "EMISFunction.FormSubmit",
  80. OnComplete = "EMISFunction.FormComplete"
  81. }))
  82. {
  83. <div class="p_title">
  84. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  85. </div>
  86. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  87. @Html.ContextMenuBar("Edit")
  88. </div>
  89. </div>
  90. <div class="search_list">
  91. @Html.HiddenFor(x => x.DegreeApplyID)
  92. <table cellpadding="0" cellspacing="0" id="chargedelaytable">
  93. <tr>
  94. <td style="color:red;">
  95. @Html.LabelFor(x => x.StudentNo):
  96. </td>
  97. <td>
  98. @Html.ComboGridFor(x => x.UserID, cgopStudent)
  99. </td>
  100. <td>
  101. @Html.LabelFor(x => x.UserName):
  102. </td>
  103. <td>
  104. @Html.TextBoxFor(x => x.UserName, new TextBoxOptions() { IsEnabled = false })
  105. </td>
  106. </tr>
  107. <tr>
  108. <td>
  109. @Html.LabelFor(x => x.SexName):
  110. </td>
  111. <td>
  112. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, x => x.SexID, new DropdownListOptions() { IsEnabled = false })
  113. </td>
  114. <td style="color:red;">
  115. @Html.LabelFor(x => x.InSchoolStatusName):
  116. </td>
  117. <td>
  118. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, x => x.InSchoolStatusID, new DropdownListOptions() { IsEnabled = false })
  119. </td>
  120. </tr>
  121. <tr>
  122. <td>
  123. @Html.LabelFor(x => x.ClassName):
  124. </td>
  125. <td>
  126. @Html.ComboGridFor(x => x.ClassID, cgopClassmajor)
  127. </td>
  128. <td>
  129. @Html.LabelFor(x => x.CollegeName):
  130. </td>
  131. <td>
  132. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  133. </td>
  134. </tr>
  135. <tr>
  136. <td style="color:red;">
  137. @Html.LabelFor(x => x.ApplySchoolyearCode):
  138. </td>
  139. <td>
  140. @Html.DropdownListFor((x => x.ApplySchoolyearID), new DropdownListOptions
  141. {
  142. BindType = DropdownListBindType.PleaseSelect,
  143. TextField = "Text",
  144. ValueField = "Value",
  145. IsEnabled = false,
  146. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
  147. })
  148. </td>
  149. <td style="color:red;">
  150. @Html.LabelFor(x => x.GraduatingSemesterCode):
  151. </td>
  152. <td>
  153. @Html.DropdownListFor((x => x.GraduatingSemesterID), new DropdownListOptions
  154. {
  155. BindType = DropdownListBindType.PleaseSelect,
  156. TextField = "Text",
  157. ValueField = "Value",
  158. IsEnabled = false,
  159. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
  160. })
  161. </td>
  162. </tr>
  163. @*<tr>
  164. <td>
  165. @Html.LabelFor(x => x.GraduationTypeName):
  166. </td>
  167. <td>
  168. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ER_GraduationType, x => x.GraduationTypeID, new DropdownListOptions() { IsEnabled = false })
  169. </td>
  170. <td>
  171. @Html.LabelFor(x => x.GradDesignScore):
  172. </td>
  173. <td>
  174. @Html.TextBoxFor(x => x.GradDesignScore, new TextBoxOptions() { IsEnabled = false })
  175. </td>
  176. </tr>
  177. <tr>
  178. <td>
  179. @Html.LabelFor(x => x.DegreeForeignLanguageScore):
  180. </td>
  181. <td>
  182. @Html.TextBoxFor(x => x.DegreeForeignLanguageScore, new TextBoxOptions() { IsEnabled = false })
  183. </td>
  184. <td>
  185. @Html.LabelFor(x => x.DegreeCourseAverageScore):
  186. </td>
  187. <td>
  188. @Html.TextBoxFor(x => x.DegreeCourseAverageScore, new TextBoxOptions() { IsEnabled = false })
  189. </td>
  190. </tr>*@
  191. <tr>
  192. <td style="color: red;">
  193. @Html.LabelFor(x => x.Remark):
  194. </td>
  195. <td colspan="3">
  196. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
  197. {
  198. { "style", "width: 90%;min-height: 75px" }
  199. })
  200. </td>
  201. </tr>
  202. </table>
  203. </div>
  204. }
  205. </div>