List.cshtml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //院系所
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. OnSelect = "queryClass",
  11. ID = "CollegeDropdown",
  12. Name = "CollegeDropdown",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //专业名称
  28. ComboGridOptions cgopStandard = new ComboGridOptions
  29. {
  30. TextField = "StandardName",
  31. ValueField = "StandardID",
  32. OnSelect = "queryStandard",
  33. ID = "StandardDictionaryDropDown",
  34. Name = "StandardDictionaryDropDown",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  40. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. }
  50. @section scripts{
  51. <script src="~/Scripts/Business/MinorGraduation/MinorGraduationSetting/MinorGraduationStandard.js"
  52. type="text/javascript"></script>
  53. <script type="text/javascript">
  54. var nonSelect = "@DropdownList.SELECT_ALL";
  55. </script>
  56. }
  57. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  58. @Html.Position()
  59. <div class="p_SearchTitle">
  60. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  61. 查询条件</div>
  62. </div>
  63. <form id="formQuery" method="post" action="@Url.Content("~/MinorGraduationStandard/Excel")">
  64. @Html.PositionCondition()
  65. <div class="search_keyword">
  66. @Html.Hidden("SelectedID")
  67. <div class="search_input">
  68. <ul>
  69. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  70. <li class="sv">
  71. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgMinorGraduationStandardList" } })
  72. </li>
  73. <li class="sn" style="padding-left: 5px;">年级:</li>
  74. <li class="sv">
  75. @Html.SchoolYearDropDownList(new DropdownListOptions
  76. {
  77. BindType = DropdownListBindType.SelectAll,
  78. ID = "SchoolyearDictionaryDropDown",
  79. Name = "SchoolyearDictionaryDropDown",
  80. OnSelect = "queryClass"
  81. },
  82. new Dictionary<string, string> { { "data-condition", "dgMinorGraduationStandardList" } })
  83. </li>
  84. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  85. <li class="sv">
  86. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgMinorGraduationStandardList" } })
  87. </li>
  88. </ul>
  89. </div>
  90. </div>
  91. </form>
  92. <div class="p_title">
  93. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  94. 辅修毕业标准列表</div>
  95. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  96. </div>
  97. @Html.PositionBatchModify()
  98. <div class="search_list">
  99. @Html.DataGrid(new DataGridOptions
  100. {
  101. Columns = new List<DataGridColumn>()
  102. {
  103. new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorGraduationStandardID" },
  104. new BoundFieldColumn { FieldName="YearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.06 },
  105. new BoundFieldColumn { FieldName="StandardName", HeaderText="辅修专业名称", Align=AlignStyle.Center, Width=0.06 },
  106. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  107. new BoundFieldColumn { FieldName="GraduationCredit", HeaderText="毕业学分", Align=AlignStyle.Center, Width=0.04,},
  108. //new LinkButtonColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center , Handle="editStudentCount", Width=0.03 }
  109. },
  110. IsCheckOnSelect = true,
  111. DataSourceUrl = Url.Content("~/MinorGraduationStandard/List"),
  112. ID = "dgMinorGraduationStandardList",
  113. IsPagination = true,
  114. IsShowRowNumbers = true,
  115. IsSingleSelect = false
  116. })
  117. </div>
  118. </div>