List.cshtml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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/DegreeManage/DegreeSetting/DegreeOpenControl.js" type="text/javascript"></script>
  8. <script type="text/javascript">
  9. var nonSelect = "@DropdownList.SELECT_ALL";
  10. </script>
  11. }
  12. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  13. @Html.Position()
  14. <div class="p_SearchTitle">
  15. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  16. 查询条件</div>
  17. </div>
  18. <form id="formQuery" method="post" action="@Url.Content("~/DegreeOpenControl/Excel")">
  19. @Html.PositionCondition()
  20. <div class="search_keyword">
  21. <div class="search_input">
  22. <ul>
  23. <li class="sn" style="padding-left: 5px;color:red;">毕业学期:</li>
  24. <li class="sv">
  25. @Html.DropdownList(new DropdownListOptions
  26. {
  27. ID = "GradSchoolyearDropdown",
  28. Name = "GradSchoolyearDropdown",
  29. BindType = DropdownListBindType.SelectAll,
  30. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  31. OnSelect = "reload"
  32. },
  33. new Dictionary<string, string> { { "data-condition", "dgDegreeOpenControlList" } })
  34. </li>
  35. <li class="sn" style="padding-left: 5px;color: red;">学位批次:</li>
  36. <li class="sv">
  37. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.ER_DegreeBatch, DropdownListBindType.SelectAll,
  38. new ComboGridOptions
  39. {
  40. ID = "DictionaryDegreeBatch",
  41. Name = "DictionaryDegreeBatch",
  42. OnSelect = "reload"
  43. }, new Dictionary<string, string> { { "data-condition", "dgDegreeOpenControlList" } })
  44. </li>
  45. </ul>
  46. </div>
  47. </div>
  48. </form>
  49. <div class="p_title">
  50. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">学位控制表</div>
  51. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  52. </div>
  53. @Html.PositionBatchModify()
  54. <div class="search_list">
  55. @Html.DataGrid(new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. new CheckBoxFieldColumn{ HeaderText="", FieldName="DegreeOpenControlID" },
  60. new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.1, CustomFormatFun="SetRedColumn" },
  61. new BoundFieldColumn { FieldName="DegreeBatchName", HeaderText="学位批次", Align=AlignStyle.Center, OrderFieldName="DegreeBatchID", Width=0.06, CustomFormatFun="SetRedColumn" },
  62. new BoundFieldColumn { FieldName="StartDate", HeaderText="开始时间", Align=AlignStyle.Center, Formatter = Formatter.LongDate, Width=0.06 },
  63. new BoundFieldColumn { FieldName="EndDate", HeaderText="结束时间", Align=AlignStyle.Center, Formatter = Formatter.LongDate, Width=0.06 }
  64. },
  65. IsCheckOnSelect = true,
  66. DataSourceUrl = Url.Content("~/DegreeOpenControl/List"),
  67. ID = "dgDegreeOpenControlList",
  68. IsPagination = true,
  69. IsShowRowNumbers = true,
  70. IsSingleSelect = false
  71. })
  72. </div>
  73. </div>