List.cshtml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgop = new ComboGridOptions
  7. {
  8. TextField = "CourseName",
  9. ValueField = "CoursematerialID",
  10. OnSelect = "reload",
  11. Name = "cbgCoursematerial",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. }
  24. };
  25. }
  26. @section scripts{
  27. <script src="~/Scripts/Business/ExaminationManage/ExaminationPlan.js" type="text/javascript"></script>
  28. <script type="text/javascript">
  29. var notSubmitVal = @((int)EMIS.ViewModel.CF_ApprovalStatus.NotSubmitted);
  30. </script>
  31. }
  32. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  33. @Html.Position()
  34. <form id="formQuery" method="post" action="@Url.Content("~/ExaminationPlan/Excel")">
  35. @Html.PositionCondition()
  36. <div class="search_keyword">
  37. <div class="search_input">
  38. <ul>
  39. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  40. <li class="sv">
  41. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "ddlSchoolYear", OnSelect = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  42. </li>
  43. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  44. <li class="sv">
  45. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListOnlyCollege"), ID = "ddlCollege", Name = "ddlCollege", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  46. </li>
  47. <li class="sn" style="padding-left: 5px;">考试科目:</li>
  48. <li class="sv">
  49. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  50. </li>
  51. <li class="sn" style="padding-left: 5px;">考试性质:</li>
  52. <li class="sv">
  53. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ExamsCategory, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlExamsCategory", Name = "ddlExamsCategory", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  54. </li>
  55. </ul>
  56. <ul>
  57. <li class="sn" style="padding-left: 5px;">考试方式:</li>
  58. <li class="sv">
  59. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlExaminationMode", Name = "ddlExaminationMode", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  60. </li>
  61. @*<li class="sn" style="padding-left: 5px;">考试周次:</li>
  62. <li class="sv">
  63. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/CurrentWeekListDropdown"), ID = "ddlWeekNum", Name = "ddlWeekNum", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  64. </li>*@
  65. <li class="sn" style="padding-left: 5px;">状态:</li>
  66. <li class="sv">
  67. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EX_ExaminationPlanStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ddlStatus", ID = "ddlStatus", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  68. </li>
  69. </ul>
  70. </div>
  71. </div>
  72. <div class="p_title">
  73. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  74. 考试计划列表</div>
  75. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  76. </div>
  77. </form>
  78. @Html.PositionBatchModify()
  79. <div class="search_list">
  80. @Html.DataGrid(new DataGridOptions
  81. {
  82. Columns = new List<DataGridColumn>()
  83. {
  84. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationPlanID"},
  85. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.1 },
  86. new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="考试科目", Align=AlignStyle.Center, OverflowLength=11, Width=0.1 },
  87. new LinkButtonColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center, Handle = "view", OverflowLength=29, Width=0.24 },
  88. new LinkButtonColumn { FieldName="MissionStudentCount", HeaderText="学生数", Align=AlignStyle.Center, Handle = "viewStudent", Width=0.05 },
  89. new BoundFieldColumn { FieldName="StudentCount", HeaderText="排考人数", Align=AlignStyle.Center, Width=0.05 },
  90. new BoundFieldColumn { FieldName="ExaminationModeName", HeaderText="考试方式", Align=AlignStyle.Center, Width=0.05 },
  91. new BoundFieldColumn { FieldName="ExamsCategoryName", HeaderText="考试性质", Align=AlignStyle.Center, Width=0.05 },
  92. new BoundFieldColumn { FieldName="ExaminationDate", HeaderText="考试日期", Formatter= Formatter.OnlyYearMonthDay, Align=AlignStyle.Center, Width=0.1 },
  93. new BoundFieldColumn { FieldName="ExaminationTime", HeaderText="考试时间", Align=AlignStyle.Center, Width=0.1 },
  94. new BoundFieldColumn { FieldName="ClassroomNum", HeaderText="考室数", Align=AlignStyle.Center, Width=0.05 },
  95. new BoundFieldColumn { FieldName="RecordStatusDesc", HeaderText="状态", Align=AlignStyle.Center, Width=0.06 }
  96. },
  97. IsCheckOnSelect = true,
  98. DataSourceUrl = Url.Content("~/ExaminationPlan/List"),
  99. ID = "dgExaminationPlanList",
  100. IsPagination = true,
  101. IsShowRowNumbers = true,
  102. IsSingleSelect = false
  103. })
  104. </div>
  105. </div>