List.cshtml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //校区
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. ID = "CampusDropdown",
  11. Name = "CampusDropdown",
  12. OnSelect = "queryCampus",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Campus/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //院系所
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. ID = "CollegeDropdown",
  33. Name = "CollegeDropdown",
  34. OnSelect = "reload",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  40. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. }
  50. @section scripts{
  51. <script src="~/Scripts/Business/EducationManage/EducationMissionOpenControl.js" type="text/javascript"></script>
  52. <script type="text/javascript">
  53. var nonSelect = "@DropdownList.SELECT_ALL";
  54. </script>
  55. }
  56. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  57. @Html.Position()
  58. <div class="p_SearchTitle">
  59. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  60. 查询条件</div>
  61. </div>
  62. <form id="formQuery" method="post" action="@Url.Content("~/EducationMissionOpenControl/Excel")">
  63. @Html.PositionCondition()
  64. <div class="search_keyword">
  65. <div class="search_input">
  66. <ul>
  67. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  68. <li class="sv">
  69. @Html.DropdownList(new DropdownListOptions
  70. {
  71. ID = "SchoolyearDropdown",
  72. Name = "SchoolyearDropdown",
  73. BindType = DropdownListBindType.SelectAll,
  74. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  75. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  76. OnSelect = "reload"
  77. }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionOpenControlList" } })
  78. </li>
  79. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  80. <li class="sv">
  81. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgEducationMissionOpenControlList" } })
  82. </li>
  83. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  84. <li class="sv">
  85. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgEducationMissionOpenControlList" } })
  86. </li>
  87. <li class="sn" style="padding-left: 5px;color:red;">日期范围:</li>
  88. <li class="sv">
  89. @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Name = "txtDateRange"}, new Dictionary<string, string> { { "data-condition", "dgEducationMissionOpenControlList" } })
  90. </li>
  91. @*<li class="sn" style="padding-left: 20px;"><a href="javascript:void(0)" class="easyui-linkbutton"
  92. data-options="iconCls:'icon-search'" onclick="reload();">查询</a></li>*@
  93. </ul>
  94. </div>
  95. </div>
  96. </form>
  97. <div class="p_title">
  98. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  99. 教学控制列表</div>
  100. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  101. </div>
  102. @Html.PositionBatchModify()
  103. <div class="search_list">
  104. @Html.DataGrid(new DataGridOptions
  105. {
  106. Columns = new List<DataGridColumn>()
  107. {
  108. new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationMissionOpenControlID" },
  109. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Handle="edit", Width=0.06 },
  110. new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.04 },
  111. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  112. new BoundFieldColumn { FieldName="UnitCategoryName", HeaderText="单位类别", Align=AlignStyle.Center, OrderFieldName="UnitCategoryID", Width=0.04 },
  113. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.06 },
  114. new BoundFieldColumn { FieldName="StartDate", HeaderText="开始日期", Align=AlignStyle.Center, Formatter = Formatter.OnlyYearMonthDay, Width=0.06 },
  115. new BoundFieldColumn { FieldName="EndDate", HeaderText="结束日期", Align=AlignStyle.Center, Formatter = Formatter.OnlyYearMonthDay, Width=0.06 },
  116. new BoundFieldColumn { FieldName="OpenDays", HeaderText="开放天数", Align=AlignStyle.Center, OrderFieldName="", Width=0.04 },
  117. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center, Width=0.05 }
  118. },
  119. IsCheckOnSelect = true,
  120. DataSourceUrl = Url.Content("~/EducationMissionOpenControl/List"),
  121. ID = "dgEducationMissionOpenControlList",
  122. IsPagination = true,
  123. IsShowRowNumbers = true,
  124. IsSingleSelect = false
  125. })
  126. </div>
  127. </div>