Edit.cshtml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. @model EMIS.ViewModel.EvaluationManage.EvaluationSetting.EvaluationGradeControlView
  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 = false,
  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. },
  20. PageSize = 5,
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/College/List"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false
  26. }
  27. };
  28. //年级专业
  29. ComboGridOptions cgopGrademajor = new ComboGridOptions
  30. {
  31. TextField = "Name",
  32. ValueField = "GrademajorID",
  33. OnSelect = "queryGrademajor",
  34. IsEnabled = isEnable,
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Width=0.2, Align=AlignStyle.Center },
  40. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Width=0.3, Align=AlignStyle.Center },
  41. new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Width=0.1, Align=AlignStyle.Center },
  42. //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Width=0.2, Align=AlignStyle.Center },
  43. new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), Width=0.1, Align=AlignStyle.Center },
  44. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Width=0.1, Align=AlignStyle.Center },
  45. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Width=0.1, Align=AlignStyle.Center }
  46. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Width=0.2, Align=AlignStyle.Center }
  47. },
  48. PageSize = 5,
  49. IsCheckOnSelect = true,
  50. DataSourceUrl = Url.Content("~/Grademajor/List"),
  51. IsPagination = true,
  52. IsShowRowNumbers = true,
  53. IsSingleSelect = false
  54. }
  55. };
  56. }
  57. @section scripts{
  58. <script src="~/Scripts/Business/EvaluationManage/EvaluationSetting/EvaluationGradeControlEdit.js" type="text/javascript"></script>
  59. <script type="text/javascript">
  60. var nonSelect = "@DropdownList.SELECT_ALL";
  61. </script>
  62. }
  63. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  64. @using (Ajax.BeginForm(new AjaxOptions
  65. {
  66. OnSuccess = "EMISFunction.FormSuccess",
  67. OnBegin = "EMISFunction.FormSubmit",
  68. OnComplete = "EMISFunction.FormComplete"
  69. }))
  70. {
  71. <div class="p_title" style=" min-width:0px">
  72. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  73. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  74. @if (Request["type"] != "detail")
  75. {
  76. @Html.ContextMenuBar("Edit")
  77. }
  78. </div>
  79. </div>
  80. <div class="search_list" style=" min-width:0px">
  81. @Html.HiddenFor(x => x.EvaluationGradeControlID)
  82. <table cellpadding="0" cellspacing="0" id="evaluationgradecontroltable">
  83. <tr>
  84. <td style="color: red;">
  85. @Html.LabelFor(x => x.SchoolyearCode):
  86. </td>
  87. <td>
  88. @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions
  89. {
  90. TextField = "Text",
  91. ValueField = "Value",
  92. BindType = DropdownListBindType.PleaseSelect,
  93. IsEnabled = isEnable,
  94. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  95. ItemSourceUrl = Url.Content("~/SchoolYear/DropDownBeforeCurrent")
  96. })
  97. </td>
  98. <td style="color: red;">
  99. @Html.LabelFor(x => x.GrademajorName):
  100. </td>
  101. <td style="color: red;">
  102. @Html.ComboGridFor(x => x.GrademajorID, cgopGrademajor)
  103. </td>
  104. </tr>
  105. <tr>
  106. <td>
  107. @Html.LabelFor(x => x.GradeID):
  108. </td>
  109. <td>
  110. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  111. </td>
  112. <td>
  113. @Html.LabelFor(x => x.StandardName):
  114. </td>
  115. <td>
  116. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x => x.StandardID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  117. </td>
  118. </tr>
  119. <tr>
  120. <td>
  121. @Html.LabelFor(x => x.StandardCode):
  122. </td>
  123. <td>
  124. @Html.TextBoxFor(x => x.StandardCode, new TextBoxOptions() { IsEnabled = false })
  125. </td>
  126. <td>
  127. @Html.LabelFor(x => x.EducationID):
  128. </td>
  129. <td>
  130. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  131. </td>
  132. </tr>
  133. <tr>
  134. <td>
  135. @Html.LabelFor(x => x.LearningformID):
  136. </td>
  137. <td>
  138. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, (x => x.LearningformID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  139. </td>
  140. <td>
  141. @Html.LabelFor(x => x.LearnSystem):
  142. </td>
  143. <td>
  144. @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = false })
  145. </td>
  146. </tr>
  147. <tr>
  148. <td>
  149. @Html.LabelFor(x => x.CollegeName):
  150. </td>
  151. <td>
  152. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  153. </td>
  154. <td style="color: red">
  155. @Html.LabelFor(x => x.Number):
  156. </td>
  157. <td>
  158. @Html.TextBoxFor(x => x.Number, new TextBoxOptions() { IsEnabled = isEnable })
  159. </td>
  160. </tr>
  161. <tr>
  162. <td>
  163. @Html.LabelFor(x => x.StartTime):
  164. </td>
  165. <td>
  166. @Html.TextBoxFor(x => x.StartTime, new TextBoxOptions
  167. {
  168. TextBoxType = TextBoxType.DateTime,
  169. IsEnabled = isEnable
  170. })
  171. </td>
  172. <td>
  173. @Html.LabelFor(x => x.EndTime):
  174. </td>
  175. <td>
  176. @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions
  177. {
  178. TextBoxType = TextBoxType.DateTime,
  179. IsEnabled = isEnable
  180. })
  181. </td>
  182. </tr>
  183. </table>
  184. </div>
  185. }
  186. </div>