Edit.cshtml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. @model EMIS.ViewModel.Specialtyclass.GrademajorView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. //院系所
  7. ComboGridOptions cgopCollege = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "CollegeID",
  11. IsEnabled = false,
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 },
  18. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.3 }
  19. },
  20. PageSize = 5,
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false
  26. }
  27. };
  28. //院系专业
  29. ComboGridOptions cgopFacultymajor = new ComboGridOptions
  30. {
  31. TextField = "Name",
  32. ValueField = "FacultymajorID",
  33. OnSelect = "queryFacultymajor",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. new LinkButtonColumn { FieldName="Code", HeaderText="院系专业代码", Width=0.15, Align=AlignStyle.Center },
  39. new BoundFieldColumn { FieldName="Name", HeaderText="院系专业名称", Width=0.25, Align=AlignStyle.Center },
  40. new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), Width=0.08, Align=AlignStyle.Center },
  41. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Width=0.08, Align=AlignStyle.Center },
  42. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Width=0.06, Align=AlignStyle.Center },
  43. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Width=0.1, Align=AlignStyle.Center }
  44. //new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("Campus"), Width=0.1, Align=AlignStyle.Center }
  45. },
  46. PageSize = 5,
  47. IsCheckOnSelect = true,
  48. DataSourceUrl = Url.Content("~/Facultymajor/List"),
  49. IsPagination = true,
  50. IsShowRowNumbers = true,
  51. IsSingleSelect = false
  52. }
  53. };
  54. }
  55. @section scripts{
  56. <script src="~/Scripts/Business/Specialtyclass/GrademajorEdit.js" type="text/javascript"></script>
  57. }
  58. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  59. @using (Ajax.BeginForm(new AjaxOptions
  60. {
  61. OnSuccess = "EMISFunction.FormSuccess",
  62. OnBegin = "EMISFunction.FormSubmit",
  63. OnComplete = "EMISFunction.FormComplete"
  64. }))
  65. {
  66. <div class="p_title">
  67. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  68. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  69. @if (ViewBag.Type != "1")//控制列表进入、屏蔽按钮权限
  70. {
  71. @Html.ContextMenuBar("Edit")
  72. }
  73. </div>
  74. </div>
  75. <div class="search_list">
  76. @Html.HiddenFor(x => x.GrademajorID)
  77. @Html.Hidden("hid_LearnSystem")
  78. <table cellpadding="0" cellspacing="0" id="facultymajortable">
  79. <tr>
  80. <td>
  81. @Html.LabelFor(x => x.Code):
  82. </td>
  83. <td>
  84. @Html.TextBoxFor(x => x.Code)
  85. </td>
  86. <td>
  87. @Html.LabelFor(x => x.Abbreviation):
  88. </td>
  89. <td>
  90. @Html.TextBoxFor(x => x.Abbreviation)
  91. </td>
  92. </tr>
  93. <tr>
  94. <td>
  95. @Html.LabelFor(x => x.Name):
  96. </td>
  97. <td colspan="3">
  98. @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { }, new Dictionary<string, string> { { "style", "width:85%;" } })
  99. </td>
  100. </tr>
  101. <tr>
  102. <td style="color:red;">
  103. @Html.LabelFor(x => x.SchoolyearID):
  104. </td>
  105. <td>
  106. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Schoolyear, (x => x.SchoolyearID))
  107. </td>
  108. <td style="color:red;">
  109. @Html.LabelFor(x => x.SchoolcodeID):
  110. </td>
  111. <td>
  112. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Schoolcode, (x => x.SchoolcodeID))
  113. </td>
  114. </tr>
  115. <tr>
  116. <td style="color:red;">
  117. @Html.LabelFor(x => x.FacultymajorID):
  118. </td>
  119. <td>
  120. @Html.ComboGridFor(x => x.FacultymajorID, cgopFacultymajor)
  121. </td>
  122. <td style="color:red;">
  123. @Html.LabelFor(x => x.SchoolAreaID):
  124. </td>
  125. <td>
  126. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, x => x.SchoolAreaID)
  127. </td>
  128. </tr>
  129. <tr>
  130. <td>
  131. @Html.LabelFor(x => x.EducationName):
  132. </td>
  133. <td>
  134. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, x => x.EducationID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  135. </td>
  136. <td>
  137. @Html.LabelFor(x => x.LearningformName):
  138. </td>
  139. <td>
  140. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, x => x.LearningformID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  141. </td>
  142. </tr>
  143. <tr>
  144. <td>
  145. @Html.LabelFor(x => x.LearnSystem):
  146. </td>
  147. <td>
  148. @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = false })
  149. </td>
  150. <td>
  151. @Html.LabelFor(x => x.CollegeName):
  152. </td>
  153. <td>
  154. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  155. </td>
  156. </tr>
  157. <tr>
  158. <td>
  159. @Html.LabelFor(x => x.Professional):
  160. </td>
  161. <td colspan="3">
  162. @Html.TextAreaFor(x => x.Professional, new Dictionary<string, object> { { "style", "width: 90%;min-height: 20px" } })
  163. </td>
  164. </tr>
  165. <tr>
  166. <td>
  167. @Html.LabelFor(x => x.Remark):
  168. </td>
  169. <td colspan="3">
  170. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 60px" } })
  171. </td>
  172. </tr>
  173. </table>
  174. </div>
  175. }
  176. </div>