Add.cshtml 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. }
  26. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  27. @using (Ajax.BeginForm(new AjaxOptions
  28. {
  29. OnSuccess = "EMISFunction.FormSuccess",
  30. OnBegin = "EMISFunction.FormSubmit",
  31. OnComplete = "EMISFunction.FormComplete"
  32. }))
  33. {
  34. @Html.HiddenFor(x => x.ExaminationSubjectCollegeControlID)
  35. <div class="p_title">
  36. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  37. 专业报考限制新增</div>
  38. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  39. </div>
  40. <div class="search_list popupWindowContent">
  41. <table cellpadding="0" cellspacing="0" id="departmenttable">
  42. @Html.Hidden("selectFacultymajorIDs")
  43. <tr>
  44. <td>@Html.LabelFor(x => x.ExaminationTypeID):
  45. </td>
  46. <td>@Html.DropdownListFor((x => x.ExaminationTypeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList"), OnSelect = "BindSubject" })
  47. </td>
  48. <td>@Html.LabelFor(x => x.ExaminationSubjectName):
  49. </td>
  50. <td>@Html.ComboGridFor(x => x.ExaminationSubjectID, cgExaminationSubject)
  51. </td>
  52. </tr>
  53. <tr>
  54. <td>@Html.LabelFor(x => x.SchoolyearNumID):
  55. </td>
  56. <td colspan="3">@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID, new DropdownListOptions { BindType = DropdownListBindType.SelectAll })
  57. </td>
  58. </tr>
  59. <tr>
  60. <td>@Html.LabelFor(x => x.FacultymajorID):
  61. </td>
  62. <td colspan="3">
  63. @Html.DataGrid(new DataGridOptions
  64. {
  65. Columns = new List<DataGridColumn>()
  66. {
  67. new CheckBoxFieldColumn{ HeaderText="", FieldName="FacultymajorID" },
  68. new BoundFieldColumn { FieldName="Name", HeaderText="院系专业名称", Align=AlignStyle.Center },
  69. },
  70. IsCheckOnSelect = true,
  71. IsPostBack = true,
  72. DataSourceUrl = Url.Content("~/Facultymajor/List"),
  73. ID = "dgFacultymajorList",
  74. IsPagination = true,
  75. IsShowRowNumbers = true,
  76. IsSingleSelect = false,
  77. })
  78. </td>
  79. </tr>
  80. </table>
  81. </div>
  82. }
  83. </div>
  84. @section scripts{
  85. <script type="text/javascript">
  86. var nonSelect = "@DropdownList.SELECT_ALL";
  87. </script>
  88. <script src="~/Scripts/Business/ExaminationApply/ExaminationSubjectCollegeControlEdit.js"
  89. type="text/javascript"></script>
  90. }