Edit.cshtml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. @model EMIS.ViewModel.GraduationManage.GraduationSetting.GraduationStandardView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. //年级专业
  7. ComboGridOptions cgopGrademajor = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "GrademajorID",
  11. IsEnabled = false,
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Width=0.1, Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Width=0.2, Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Grademajor/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. //院系所
  27. ComboGridOptions cgopCollege = new ComboGridOptions
  28. {
  29. TextField = "Name",
  30. ValueField = "CollegeID",
  31. IsEnabled = false,
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  37. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  38. },
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false,
  44. }
  45. };
  46. }
  47. @section scripts{
  48. <script src="~/Scripts/Business/GraduationManage/GraduationSetting/GraduationStandardEdit.js" type="text/javascript"></script>
  49. <script type="text/javascript">
  50. var nonSelect = "@DropdownList.SELECT_ALL";
  51. </script>
  52. }
  53. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  54. @using (Ajax.BeginForm(new AjaxOptions
  55. {
  56. OnSuccess = "EMISFunction.FormSuccess",
  57. OnBegin = "EMISFunction.FormSubmit",
  58. OnComplete = "EMISFunction.FormComplete"
  59. }))
  60. {
  61. <div class="p_title" style=" min-width:0px">
  62. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  63. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  64. </div>
  65. <div class="search_list" style=" min-width:0px">
  66. @Html.HiddenFor(x => x.GraduationStandardID)
  67. <table cellpadding="0" cellspacing="0" id="chargestandardtable">
  68. <tr>
  69. <td>
  70. @Html.LabelFor(x => x.GrademajorName):
  71. </td>
  72. <td colspan="3">
  73. @*@Html.ComboGridFor(x => x.GrademajorID, cgopGrademajor, new Dictionary<string, string> { { "style", "width:85%;" } })*@
  74. @Html.TextBoxFor(x => x.GrademajorName, new TextBoxOptions()
  75. {
  76. IsEnabled = false
  77. }, new Dictionary<string, string> { { "style", "width:85%;" } })
  78. </td>
  79. </tr>
  80. <tr>
  81. <td>
  82. @Html.LabelFor(x => x.SchoolyearID):
  83. </td>
  84. <td>
  85. @Html.SchoolYearDropDownListFor((x => x.SchoolyearID), new DropdownListOptions() { IsEnabled = false })
  86. </td>
  87. <td>
  88. @Html.LabelFor(x => x.StandardName):
  89. </td>
  90. <td>
  91. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, x => x.StandardID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  92. </td>
  93. </tr>
  94. <tr>
  95. <td>
  96. @Html.LabelFor(x => x.EducationName):
  97. </td>
  98. <td>
  99. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, x => x.EducationID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  100. </td>
  101. <td>
  102. @Html.LabelFor(x => x.LearningformName):
  103. </td>
  104. <td>
  105. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, x => x.LearningformID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  106. </td>
  107. </tr>
  108. <tr>
  109. <td>
  110. @Html.LabelFor(x => x.LearnSystem):
  111. </td>
  112. <td>
  113. @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = false })
  114. </td>
  115. <td>
  116. @Html.LabelFor(x => x.CollegeName):
  117. </td>
  118. <td>
  119. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  120. </td>
  121. </tr>
  122. <tr>
  123. <td>
  124. @Html.LabelFor(x => x.EnteringSchoolYearCode):
  125. </td>
  126. <td>
  127. @Html.DropdownListFor((x => x.EnteringSchoolYearID), new DropdownListOptions
  128. {
  129. BindType = DropdownListBindType.PleaseSelect,
  130. TextField = "Text",
  131. ValueField = "Value",
  132. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  133. IsEnabled = false
  134. })
  135. <td>
  136. @Html.LabelFor(x => x.GraduatingSemesterCode):
  137. </td>
  138. <td>
  139. @Html.DropdownListFor((x => x.GraduatingSemesterID), new DropdownListOptions
  140. {
  141. BindType = DropdownListBindType.PleaseSelect,
  142. TextField = "Text",
  143. ValueField = "Value",
  144. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  145. IsEnabled = false
  146. })
  147. </td>
  148. </tr>
  149. <tr>
  150. <td style="color: red;">
  151. @Html.LabelFor(x => x.RequireCourseCount):
  152. </td>
  153. <td>
  154. @Html.TextBoxFor(x => x.RequireCourseCount)
  155. </td>
  156. <td style="color: red;">
  157. @Html.LabelFor(x => x.GraduationCredit):
  158. </td>
  159. <td>
  160. @Html.TextBoxFor(x => x.GraduationCredit)
  161. </td>
  162. </tr>
  163. </table>
  164. </div>
  165. }
  166. </div>