List.cshtml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgop = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "ClassmajorID",
  9. Name = "ClassmajorComboGrid",
  10. ID = "ClassmajorComboGrid",
  11. GridOptions = new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. // new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Width=0.1, Align=AlignStyle.Center },
  16. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.3, Align=AlignStyle.Center }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/Classmajor/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false
  23. }
  24. };
  25. ComboGridOptions cgopCollge = new ComboGridOptions
  26. {
  27. TextField = "Name",
  28. ValueField = "CollegeID",
  29. Name = "CollegeComboGrid",
  30. ID="CollegeComboGrid",
  31. OnSelect = "queryClass",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center },
  37. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center }
  38. },
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false
  44. }
  45. };
  46. ComboGridOptions cgopStandard = new ComboGridOptions
  47. {
  48. TextField = "StandardName",
  49. ValueField = "StandardID",
  50. OnSelect = "queryClass",
  51. Name = "DictionaryStandard",
  52. ID = "DictionaryStandard",
  53. GridOptions = new DataGridOptions
  54. {
  55. Columns = new List<DataGridColumn>()
  56. {
  57. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  58. },
  59. IsCheckOnSelect = true,
  60. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  61. IsPagination = true,
  62. IsShowRowNumbers = true,
  63. IsSingleSelect = false,
  64. }
  65. };
  66. }
  67. @section scripts{
  68. <script src="~/Scripts/Business/SchedulingManage/SchedulingSettings/ClassmajorScheduleSetting.js"
  69. type="text/javascript"></script>
  70. <script type="text/javascript">
  71. var nonSelect = "@DropdownList.SELECT_ALL";
  72. </script>
  73. }
  74. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  75. @Html.Position()
  76. <div class="p_SearchTitle">
  77. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  78. 查询条件</div>
  79. </div>
  80. <div class="search_keyword">
  81. <div class="search_input">
  82. <ul>
  83. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  84. <li class="sv">
  85. @Html.ComboGrid(cgopCollge, new Dictionary<string, string> { { "data-condition", "dgClassmajorScheduleSettingList" } })
  86. </li>
  87. <li class="sn" style="padding-left: 5px;">年级:</li>
  88. <li class="sv">
  89. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgClassmajorScheduleSettingList" } })
  90. </li>
  91. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  92. <li class="sv">
  93. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgClassmajorScheduleSettingList" } })
  94. </li>
  95. <li class="sn" style="padding-left: 5px;">班级:</li>
  96. <li class="sv">
  97. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgClassmajorScheduleSettingList" } })
  98. </li>
  99. <li class="sn" style="padding-left: 20px;"><a href="javascript:void(0)" class="easyui-linkbutton"
  100. data-options="iconCls:'icon-search'" onclick="reload();">查询</a></li>
  101. </ul>
  102. </div>
  103. </div>
  104. <div class="p_title">
  105. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  106. 班级可排时间设置列表</div>
  107. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  108. </div>
  109. <div class="search_list">
  110. @Html.DataGrid(new DataGridOptions
  111. {
  112. Columns = new List<DataGridColumn>()
  113. {
  114. new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassmajorID" },
  115. new LinkButtonColumn { FieldName="ClassmajorNo", HeaderText="班级编号", Align=AlignStyle.Center , Handle="edit",Width=0.075},
  116. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center },
  117. new BoundFieldColumn { FieldName="yearsID", HeaderText="年级", Align=AlignStyle.Center,Width=0.018 },
  118. new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业", Align=AlignStyle.Center },
  119. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center },
  120. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center },
  121. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center,Width=0.015 },
  122. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }
  123. },
  124. IsCheckOnSelect = true,
  125. DataSourceUrl = Url.Content("~/ClassmajorScheduleSetting/List"),
  126. ID = "dgClassmajorScheduleSettingList",
  127. IsPagination = true,
  128. IsShowRowNumbers = true,
  129. IsSingleSelect = false
  130. })
  131. </div>
  132. </div>