Edit.cshtml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. @model EMIS.ViewModel.EnrollManage.SpecialtyManage.SpecialtyClassSettingView
  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 cgopSpecialty = new ComboGridOptions
  9. {
  10. TextField = "StandardName",
  11. ValueField = "SpecialtyID",
  12. OnSelect = "querySpecialty",
  13. IsEnabled = isEnable,
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. new LinkButtonColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardCode", Width=0.1 },
  19. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardName", Width=0.2 },
  20. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.12 },
  21. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.12 },
  22. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.06 },
  23. new BoundFieldColumn { FieldName="RecordStatusStr", HeaderText="状态", Align=AlignStyle.Center, OrderFieldName="RecordStatus", Width=0.12 }
  24. },
  25. PageSize = 5,
  26. IsCheckOnSelect = true,
  27. DataSourceUrl = Url.Content("~/Specialty/GetEnableAndUseSpecialtyView" + "?specialtyID=" + Model.SpecialtyID),
  28. IsPagination = true,
  29. IsShowRowNumbers = true,
  30. IsSingleSelect = false,
  31. }
  32. };
  33. }
  34. @section scripts{
  35. <script src="~/Scripts/Business/EnrollManage/SpecialtyManage/SpecialtyClassSettingEdit.js" type="text/javascript"></script>
  36. }
  37. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  38. @using (Ajax.BeginForm(new AjaxOptions
  39. {
  40. OnSuccess = "EMISFunction.FormSuccess",
  41. OnBegin = "EMISFunction.FormSubmit",
  42. OnComplete = "EMISFunction.FormComplete"
  43. }))
  44. {
  45. <div class="p_title">
  46. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  47. @if (Request["type"] != "detail")
  48. {
  49. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  50. }
  51. </div>
  52. <div class="search_list">
  53. @Html.HiddenFor(x => x.SpecialtyClassSettingID)
  54. <table cellpadding="0" cellspacing="0" id="recruitspecialtytable">
  55. <tr>
  56. <td style="color:red;">
  57. @Html.LabelFor(x => x.StandardName):
  58. </td>
  59. <td>
  60. @Html.ComboGridFor(x => x.SpecialtyID, cgopSpecialty)
  61. </td>
  62. <td>
  63. @Html.LabelFor(x => x.Code):
  64. </td>
  65. <td>
  66. @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = false })
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>
  71. @Html.LabelFor(x => x.EducationID):
  72. </td>
  73. <td>
  74. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  75. </td>
  76. <td>
  77. @Html.LabelFor(x => x.LearningformID):
  78. </td>
  79. <td>
  80. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, (x => x.LearningformID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  81. </td>
  82. </tr>
  83. <tr>
  84. <td>
  85. @Html.LabelFor(x => x.LearnSystem):
  86. </td>
  87. <td>
  88. @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = false })
  89. </td>
  90. <td>
  91. @Html.LabelFor(x => x.ScienceclassID):
  92. </td>
  93. <td>
  94. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Scienceclass, (x => x.ScienceclassID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
  95. </td>
  96. </tr>
  97. <tr>
  98. <td style="color:red;">
  99. @Html.LabelFor(x => x.PlanRecruitStudentCount):
  100. </td>
  101. <td>
  102. @Html.TextBoxFor(x => x.PlanRecruitStudentCount, new TextBoxOptions() { IsEnabled = isEnable })
  103. </td>
  104. <td style="color:red;">
  105. @Html.LabelFor(x => x.ClassArrangeStudentCount):
  106. </td>
  107. <td>
  108. @Html.TextBoxFor(x => x.ClassArrangeStudentCount, new TextBoxOptions() { IsEnabled = isEnable })
  109. </td>
  110. </tr>
  111. <tr>
  112. <td style="color:red;">
  113. @Html.LabelFor(x => x.ClassMaxStudentCount):
  114. </td>
  115. <td>
  116. @Html.TextBoxFor(x => x.ClassMaxStudentCount, new TextBoxOptions() { IsEnabled = isEnable })
  117. </td>
  118. <td style="color:red;">
  119. @Html.LabelFor(x => x.ClassNumber):
  120. </td>
  121. <td>
  122. @Html.TextBoxFor(x => x.ClassNumber, new TextBoxOptions() { IsEnabled = false })
  123. </td>
  124. </tr>
  125. <tr>
  126. <td style="text-align:left;color:red;height:25px;font-size:12px;" colspan="4">
  127. 注:当 @Html.LabelFor(x => x.PlanRecruitStudentCount)、@Html.LabelFor(x => x.ClassArrangeStudentCount) 或
  128. @Html.LabelFor(x => x.ClassMaxStudentCount)为 0 时,@Html.LabelFor(x => x.ClassNumber) 默认为1个班。
  129. </td>
  130. </tr>
  131. </table>
  132. </div>
  133. }
  134. </div>