ClearAutoSchedule.cshtml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. @model EMIS.ViewModel.EducationSchedule.ClearAutoScheduleView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ComboGridOptions cgop = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. OnSelect = "SelectCollegeComboGrid",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  15. },
  16. IsCheckOnSelect = true,
  17. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  18. IsPagination = true,
  19. IsShowRowNumbers = true,
  20. IsSingleSelect = false
  21. }
  22. };
  23. ComboGridOptions cgopClassmajor = new ComboGridOptions
  24. {
  25. TextField = "Name",
  26. ValueField = "ClassmajorID",
  27. GridOptions = new DataGridOptions
  28. {
  29. Columns = new List<DataGridColumn>()
  30. {
  31. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  32. },
  33. IsCheckOnSelect = true,
  34. DataSourceUrl = Url.Content("~/Classmajor/List"),
  35. IsPagination = true,
  36. IsShowRowNumbers = true,
  37. IsSingleSelect = false
  38. }
  39. };
  40. }
  41. @section scripts{
  42. <script src="~/Scripts/Business/SchedulingManage/Scheduling/ClearAutoSchedule.js"
  43. type="text/javascript"></script>
  44. <script type="text/javascript">
  45. var nonSelect = "@DropdownList.SELECT_ALL";
  46. </script>
  47. }
  48. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  49. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  50. {
  51. <div class="p_title">
  52. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  53. 重置智能排课结果
  54. </div>
  55. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("ClearAutoSchedule")</div>
  56. </div>
  57. <div class="search_list">
  58. <table cellpadding="0" cellspacing="0" id="educationMissionClasstable">
  59. <tr>
  60. <td>@Html.LabelFor(x => x.SchoolyearID):
  61. </td>
  62. <td>@Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), SelectedValue = BaseExtensions.GetCurrentSchoolYearID() })
  63. </td>
  64. <td>@Html.LabelFor(x => x.CollegeID):
  65. </td>
  66. <td>@Html.ComboGridFor((x => x.CollegeID), cgop)
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>@Html.LabelFor(x => x.Year):
  71. </td>
  72. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.Year), new DropdownListOptions { BindType = DropdownListBindType.SelectAll, OnSelect = "SelectDictionaryGrade" })
  73. </td>
  74. <td>@Html.LabelFor(x => x.StandardID):
  75. </td>
  76. <td>@Html.DropdownListFor((x => x.StandardID), new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Facultymajor/BindStandardDropDownList"), Name = "StandardID", ID = "StandardID", OnSelect = "SelectStandard", OnLoadSuccess = "selectClass" })
  77. </td>
  78. </tr>
  79. <tr>
  80. <td>@Html.LabelFor(x => x.ClassmarjorID):
  81. </td>
  82. <td>@Html.ComboGridFor((x => x.ClassmarjorID), cgopClassmajor)
  83. </td>
  84. <td>&nbsp;
  85. </td>
  86. <td>&nbsp;
  87. </td>
  88. </tr>
  89. </table>
  90. </div>
  91. }
  92. </div>