Edit.cshtml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. @model EMIS.ViewModel.SelectCourse.ExaminationSubjectCollegeControlView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Add";
  6. ComboGridOptions cgExaminationSubject = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "ExaminationSubjectID",
  10. Name = "ExaminationSubjectDropdown",
  11. ID = "ExaminationSubjectDropdown",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Name", HeaderText="考试科目名称", Align=AlignStyle.Center }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/ExaminationSubject/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false
  23. }
  24. };
  25. ComboGridOptions FacultymajorCom = new ComboGridOptions
  26. {
  27. TextField = "Name",
  28. ValueField = "FacultymajorID",
  29. Name = "FacultymajorDropdown",
  30. ID = "FacultymajorDropdown",
  31. GridOptions = new DataGridOptions
  32. {
  33. Columns = new List<DataGridColumn>()
  34. {
  35. new BoundFieldColumn { FieldName="Name", HeaderText="院系专业名称", Align=AlignStyle.Center },
  36. },
  37. IsCheckOnSelect = true,
  38. IsPostBack = true,
  39. DataSourceUrl = Url.Content("~/Facultymajor/List"),
  40. ID = "dgFacultymajorList",
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false,
  44. }
  45. };
  46. }
  47. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  48. @using (Ajax.BeginForm(new AjaxOptions
  49. {
  50. OnSuccess = "EMISFunction.FormSuccess",
  51. OnBegin = "EMISFunction.FormSubmit",
  52. OnComplete = "EMISFunction.FormComplete"
  53. }))
  54. {
  55. @Html.HiddenFor(x => x.ExaminationSubjectCollegeControlID)
  56. <div class="p_title">
  57. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  58. 专业报考限制修改</div>
  59. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  60. </div>
  61. <div class="search_list popupWindowContent">
  62. <table cellpadding="0" cellspacing="0" id="departmenttable">
  63. <tr>
  64. <td>@Html.LabelFor(x => x.ExaminationTypeID):
  65. </td>
  66. <td>@Html.DropdownListFor((x => x.ExaminationTypeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList") })
  67. </td>
  68. <td>@Html.LabelFor(x => x.ExaminationSubjectName):
  69. </td>
  70. <td>@Html.ComboGridFor(x => x.ExaminationSubjectID, cgExaminationSubject)
  71. </td>
  72. </tr>
  73. <tr>
  74. <td>@Html.LabelFor(x => x.SchoolyearNumID):
  75. </td>
  76. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID, new DropdownListOptions { BindType = DropdownListBindType.SelectAll })
  77. </td>
  78. <td>@Html.LabelFor(x => x.FacultymajorName):
  79. </td>
  80. <td>
  81. @Html.ComboGridFor(x => x.FacultymajorID, FacultymajorCom)
  82. </td>
  83. </tr>
  84. </table>
  85. </div>
  86. }
  87. </div>
  88. @section scripts{
  89. <script type="text/javascript">
  90. function ExaminationSubjectCollegeControl_Save() {
  91. $(document.forms[0]).submit();
  92. }
  93. </script>
  94. }