Select.cshtml 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. //院系所
  7. ComboGridOptions cgopCollege = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "CollegeID",
  11. ID = "CollegeDropdown",
  12. Name = "CollegeDropdown",
  13. OnSelect = "reload",
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  19. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  20. },
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. }
  27. };
  28. }
  29. @section scripts{
  30. <script src="~/Scripts/Business/ExamManage/Select.js" type="text/javascript"></script>
  31. <script type="text/javascript">
  32. //刷新
  33. function reload() {
  34. $("#dgSelectList").cmsXDataTable("load", $.getDataGridParams("dgSelectList"));
  35. }
  36. </script>
  37. }
  38. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  39. <form id="formQuery" method="post" action="@Url.Content("~/ChargeProject/ProjectExcel")">
  40. <div class="search_keyword">
  41. <div class="search_input">
  42. <ul>
  43. <li class="sn" style="padding-left: 5px;">校区:</li>
  44. <li class="sv">
  45. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlSchoolArea", Name = "ddlSchoolArea", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSelectList" } })
  46. </li>
  47. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  48. <li class="sv">
  49. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgSelectList" } })
  50. </li>
  51. </ul>
  52. <ul>
  53. <li class="sn" style="padding-left: 5px;">年级:</li>
  54. <li class="sv">@*@Html.ComboGrid(cgopSchoolyear, new Dictionary<string, string> { { "data-condition", "dgGrademajorList" } })*@
  55. @Html.SchoolYearDropDownList(new DropdownListOptions
  56. {
  57. ID = "DictionarySchoolyear",
  58. Name = "DictionarySchoolyear",
  59. BindType = DropdownListBindType.SelectAll,
  60. OnSelect = "reload",
  61. SelectedValue = BaseExtensions.GetCurrentYearID()
  62. },
  63. new Dictionary<string, string> { { "data-condition", "dgSelectList" } })
  64. </li>
  65. </ul>
  66. </div>
  67. </div>
  68. </form>
  69. <div class="p_title">
  70. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  71. 标准专业信息列表</div>
  72. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Select")</div>
  73. </div>
  74. <div class="search_list">
  75. @Html.DataGrid(new DataGridOptions
  76. {
  77. Columns = new List<DataGridColumn>()
  78. {
  79. new CheckBoxFieldColumn{ HeaderText="", FieldName="StandardID" },
  80. new BoundFieldColumn { FieldName="CollegeCode", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  81. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  82. new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  83. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  84. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.08 },
  85. },
  86. IsCheckOnSelect = true,
  87. DataSourceUrl = Url.Content("~/Grademajor/SchoolyearStandardList"),
  88. ID = "dgSelectList",
  89. IsPagination = true,
  90. IsShowRowNumbers = true,
  91. IsSingleSelect = false
  92. })
  93. </div>
  94. </div>