List.cshtml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/GraduationManage/GraduationSetting/GraduationSchoolYear.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  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("~/GraduationSchoolYear/Excel")">
  19. @Html.PositionCondition()
  20. <div class="search_keyword">
  21. <div class="search_input">
  22. <ul>
  23. <li class="sn" style="padding-left: 5px;">学年:</li>
  24. <li class="sv">
  25. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Year, new DropdownListOptions
  26. {
  27. ID = "DictionarySchoolyear",
  28. Name = "DictionarySchoolyear",
  29. BindType = DropdownListBindType.SelectAll,
  30. OnSelect = "reload"
  31. }, new Dictionary<string, string> { { "data-condition", "dgGraduationSchoolYearList" } })
  32. </li>
  33. <li class="sn" style="padding-left: 5px;">学期:</li>
  34. <li class="sv">
  35. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Semester, new DropdownListOptions
  36. {
  37. ID = "DictionarySchoolcode",
  38. Name = "DictionarySchoolcode",
  39. BindType = DropdownListBindType.SelectAll,
  40. OnSelect = "reload"
  41. }, new Dictionary<string, string> { { "data-condition", "dgGraduationSchoolYearList" } })
  42. </li>
  43. <li class="sn" style="padding-left: 5px; color: red;">当前学期:</li>
  44. <li class="sv">
  45. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  46. {
  47. ID = "IsCurrentDropDown",
  48. Name = "IsCurrentDropDown",
  49. BindType = DropdownListBindType.SelectAll,
  50. OnSelect = "reload"
  51. }, new Dictionary<string, string> { { "data-condition", "dgGraduationSchoolYearList" } })
  52. </li>
  53. <li class="sn" style="padding-left: 5px; color: red;">启用状态:</li>
  54. <li class="sv">
  55. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  56. {
  57. ID = "IsEnableDropDown",
  58. Name = "IsEnableDropDown",
  59. BindType = DropdownListBindType.SelectAll,
  60. OnSelect = "reload"
  61. }, new Dictionary<string, string> { { "data-condition", "dgGraduationSchoolYearList" } })
  62. </li>
  63. </ul>
  64. </div>
  65. </div>
  66. </form>
  67. <div class="p_title">
  68. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  69. 毕业学期列表</div>
  70. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  71. </div>
  72. <div class="search_list">
  73. @Html.DataGrid(new DataGridOptions
  74. {
  75. Columns = new List<DataGridColumn>()
  76. {
  77. new CheckBoxFieldColumn{ HeaderText="", FieldName="GraduationSchoolYearSettingID" },
  78. new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.1 },
  79. new BoundFieldColumn { FieldName="Years", HeaderText="学年", Align=AlignStyle.Center, Width=0.04 },
  80. new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", OrderFieldName="SchoolcodeID", Align=AlignStyle.Center, Width=0.04 },
  81. new BoundFieldColumn { FieldName="WeeksNum", HeaderText="周数", Align=AlignStyle.Center, Width=0.04 },
  82. new BoundFieldColumn{FieldName="GraduateDate",HeaderText="毕业日期", Align=AlignStyle.Center, Width=0.1, Formatter=Formatter.CHSOnlyYearMonthDay },
  83. new BoundFieldColumn { FieldName="IsCurrentName", HeaderText="是否当前学期",Align=AlignStyle.Center, Width=0.06, CustomFormatFun="SetRedColumn" },
  84. //new BoundFieldColumn { FieldName="IsEnableName", HeaderText="启用状态",Align=AlignStyle.Center, Width=0.04 },
  85. new CheckButtonColumn{ FieldName="IsEnable", HeaderText="启用状态", Align=AlignStyle.Center, Width=0.04, EnableFieldName="false" }
  86. },
  87. CustomerRowStyleFun = "SetRedGrid",
  88. IsCheckOnSelect = true,
  89. DataSourceUrl = Url.Content("~/GraduationSchoolYear/List"),
  90. ID = "dgGraduationSchoolYearList",
  91. IsPagination = true,
  92. IsShowRowNumbers = true,
  93. IsSingleSelect = false
  94. })
  95. </div>
  96. </div>