List.cshtml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. }
  6. @section scripts{
  7. <script src="../../Scripts/Business/RetakeManage/RetakeOpenControl.js" type="text/javascript"></script>
  8. }
  9. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  10. @Html.Position()
  11. <div class="p_SearchTitle">
  12. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  13. 查询条件
  14. </div>
  15. </div>
  16. <form id="formQuery" method="post" action="@Url.Content("~/RetakeOpenControl/Excel")">
  17. @Html.PositionCondition()
  18. <div class="search_keyword">
  19. <div class="search_input">
  20. <ul>
  21. <li class="sn" style="padding-left: 5px;">重修学年学期:</li>
  22. <li class="sv">
  23. @Html.DropdownList(new DropdownListOptions()
  24. {
  25. ID = "ddlSchoolYear",
  26. Name = "ddlSchoolYear",
  27. BindType = DropdownListBindType.SelectAll,
  28. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  29. OnSelect = "reload"
  30. }, new Dictionary<string, string> { { "data-condition", "dgOpenControlList" } })
  31. </li>
  32. </ul>
  33. </div>
  34. </div>
  35. </form>
  36. <div class="p_title">
  37. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  38. 重修控制列表</div>
  39. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  40. </div>
  41. <div class="search_list">
  42. @Html.DataGrid(new DataGridOptions
  43. {
  44. Columns = new List<DataGridColumn>()
  45. {
  46. new CheckBoxFieldColumn{ HeaderText="", FieldName="RetakeOpenControlID" },
  47. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="重修学年学期", Align=AlignStyle.Center, Width=0.1 },
  48. new BoundFieldColumn { FieldName="StartDate", HeaderText="开始时间", Align=AlignStyle.Center, Formatter = Formatter.LongDate, Width=0.04 },
  49. new BoundFieldColumn { FieldName="EndDate", HeaderText="结束时间", Align=AlignStyle.Center, Formatter = Formatter.LongDate, Width=0.04 }
  50. },
  51. IsCheckOnSelect = true,
  52. DataSourceUrl = Url.Content("~/RetakeOpenControl/List"),
  53. ID = "dgOpenControlList",
  54. IsPagination = true,
  55. IsShowRowNumbers = true,
  56. IsSingleSelect = false
  57. })
  58. </div>
  59. </div>