List.cshtml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. Name = "CollegeComboGrid",
  10. ID = "CollegeComboGrid",
  11. OnSelect = "reload",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. }
  27. @section scripts{
  28. <script src="../../Scripts/Business/MinorManage/MinorSetting/MinorControl.js" type="text/javascript"></script>
  29. }
  30. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  31. @Html.Position()
  32. <div class="p_SearchTitle">
  33. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  34. 查询条件
  35. </div>
  36. </div>
  37. <form id="formQuery" method="post" action="@Url.Content("~/MinorControl/Excel")">
  38. @Html.PositionCondition()
  39. <div class="search_keyword">
  40. <div class="search_input">
  41. <ul>
  42. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  43. <li class="sv">
  44. @Html.DropdownList(new DropdownListOptions()
  45. {
  46. ID = "ddlSchoolYear",
  47. Name = "ddlSchoolYear",
  48. BindType = DropdownListBindType.SelectAll,
  49. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  50. OnSelect = "reload",
  51. SelectedValue = BaseExtensions.GetCurrentSchoolYearID()
  52. }, new Dictionary<string, string> { { "data-condition", "dgMinorControlList" } })
  53. </li>
  54. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  55. <li class="sv">
  56. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgMinorControlList" } })
  57. </li>
  58. <li class="sn" style="padding-left: 5px;">年级:</li>
  59. <li class="sv">
  60. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgMinorControlList" } })
  61. </li>
  62. </ul>
  63. </div>
  64. </div>
  65. </form>
  66. <div class="p_title">
  67. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  68. 辅修控制列表</div>
  69. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  70. </div>
  71. @Html.PositionBatchModify()
  72. <div class="search_list">
  73. @Html.DataGrid(new DataGridOptions
  74. {
  75. Columns = new List<DataGridColumn>()
  76. {
  77. new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorControlID" },
  78. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.1 },
  79. new BoundFieldColumn { FieldName="GradeYearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 },
  80. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.12 },
  81. new BoundFieldColumn { FieldName="StartDate", HeaderText="开始时间", Align=AlignStyle.Center, Formatter = Formatter.LongDate, Width=0.08 },
  82. new BoundFieldColumn { FieldName="EndDate", HeaderText="结束时间", Align=AlignStyle.Center, Formatter = Formatter.LongDate, Width=0.08 }
  83. },
  84. IsCheckOnSelect = true,
  85. DataSourceUrl = Url.Content("~/MinorControl/List"),
  86. ID = "dgMinorControlList",
  87. IsPagination = true,
  88. IsShowRowNumbers = true,
  89. IsSingleSelect = false
  90. })
  91. </div>
  92. </div>