List.cshtml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgopCollege = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. ID = "CollegeDropdown",
  10. Name = "CollegeDropdown",
  11. OnSelect = "queryCollege",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  17. },
  18. OnLoadSuccessFun = "reload",
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false,
  24. }
  25. };
  26. ComboGridOptions cgopStandard = new ComboGridOptions
  27. {
  28. TextField = "StandardName",
  29. ValueField = "StandardID",
  30. OnSelect = "queryClass",
  31. Name = "DictionaryStandard",
  32. ID = "DictionaryStandard",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  38. },
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false,
  44. }
  45. };
  46. }
  47. @section scripts{
  48. <script src="~/Scripts/Business/SchedulingManage/Scheduling/SchedulingClassmajorList.js"
  49. type="text/javascript"></script>
  50. <script type="text/javascript">
  51. var nonSelect = "@DropdownList.SELECT_ALL";
  52. </script>
  53. }
  54. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  55. @Html.Position()
  56. <div class="p_SearchTitle">
  57. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  58. 查询条件</div>
  59. </div>
  60. <form id="formQuery" method="post">
  61. @*@Html.PositionCondition()*@
  62. <div class="search_keyword">
  63. <div class="search_input">
  64. <ul>
  65. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  66. <li class="sv">
  67. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "QueryCampusDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  68. </li>
  69. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  70. <li class="sv">
  71. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  72. </li>
  73. @*<li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  74. <li class="sv">
  75. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanid"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  76. </li>*@
  77. <li class="sn" style="padding-left: 5px;">年级:</li>
  78. <li class="sv">
  79. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", OnSelect = "queryGrademajor" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  80. </li>
  81. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  82. <li class="sv">
  83. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  84. </li>
  85. @*<li class="sn" style="padding-left: 5px;">标准专业:</li>
  86. <li class="sv">
  87. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Standard, new DropdownListOptions { Name = "DictionaryStandard", BindType = DropdownListBindType.SelectAll, OnSelect = "QueryStandardDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  88. </li>*@
  89. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  90. <li class="sv">
  91. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "QueryEducationDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  92. </li>
  93. @*<li class="sn" style="padding-left: 5px;">年级:</li>
  94. <li class="sv">
  95. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { Name = "DictionarySchoolyear", BindType = DropdownListBindType.SelectAll, OnSelect = "QuerySchoolyearDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorList" } })
  96. </li>*@
  97. </ul>
  98. </div>
  99. </div>
  100. </form>
  101. <div class="p_title">
  102. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  103. 排课班级列表</div>
  104. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  105. </div>
  106. <div class="search_list">
  107. @Html.DataGrid(new DataGridOptions
  108. {
  109. Columns = new List<DataGridColumn>()
  110. {
  111. new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassmajorID" },
  112. new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center , Handle="edit",Width=0.055 },
  113. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center },
  114. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center,Width=0.015 },
  115. new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center,Width=0.018 },
  116. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  117. new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业", Align=AlignStyle.Center },
  118. new BoundFieldColumn { FieldName="StandardID", HeaderText="专业名称", Align=AlignStyle.Center ,IsHidden=true},
  119. new LinkButtonColumn { Text="编辑", HeaderText="", Align=AlignStyle.Center, Handle="edit",Width=0.018 }
  120. },
  121. IsCheckOnSelect = true,
  122. DataSourceUrl = Url.Content("~/Classmajor/List"),
  123. ID = "dgClassmajorList",
  124. IsPagination = true,
  125. IsShowRowNumbers = true,
  126. IsSingleSelect = false
  127. })
  128. </div>
  129. </div>