List.cshtml 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "List";
  7. }
  8. @section scripts{
  9. <script src="~/Scripts/Business/ExaminationManage/StudentExaminationCourseList.js"
  10. type="text/javascript"></script>
  11. <script type="text/javascript">
  12. var notSubmitVal = @((int)EMIS.ViewModel.CF_ApprovalStatus.NotSubmitted);
  13. </script>
  14. }
  15. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  16. @Html.Position()
  17. <form id="formQuery" method="post" action="@Url.Content("~/StudentExaminationCourse/Excel")">
  18. @Html.PositionCondition()
  19. <div class="search_keyword">
  20. @Html.Hidden("SelectedID")
  21. <div class="search_input">
  22. <ul>
  23. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  24. <li class="sv">
  25. @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", "dgStudentExaminationCourseList" } })
  26. </li>
  27. <li class="sn" style="padding-left: 5px;">考试性质:</li>
  28. <li class="sv">
  29. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ExamsCategory, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlExamsCategory", Name = "ddlExamsCategory", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentExaminationCourseList" } })
  30. </li>
  31. <li class="sn" style="padding-left: 5px;">考试方式:</li>
  32. <li class="sv">
  33. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlExaminationMode", Name = "ddlExaminationMode", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentExaminationCourseList" } })
  34. </li>
  35. <li class="sn" style="padding-left: 5px;">考试形式:</li>
  36. <li class="sv">
  37. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EX_ExaminationStyle, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlExaminationStyle", Name = "ddlExaminationStyle", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentExaminationCourseList" } })
  38. </li>
  39. </ul>
  40. </div>
  41. </div>
  42. <div class="p_title">
  43. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  44. 排考课程</div>
  45. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  46. </div>
  47. </form>
  48. @Html.PositionBatchModify()
  49. <div class="search_list">
  50. @Html.DataGrid(new DataGridOptions
  51. {
  52. Columns = new List<DataGridColumn>()
  53. {
  54. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationPlanID"},
  55. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.05 },
  56. new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="考试科目", Align=AlignStyle.Center, OverflowLength=11, Width=0.1 },
  57. new BoundFieldColumn { FieldName="ExaminationModeName", HeaderText="考试方式", Align=AlignStyle.Center, Width=0.05 },
  58. new BoundFieldColumn { FieldName="ExamsCategoryName", HeaderText="考试性质", Align=AlignStyle.Center, Width=0.05 },
  59. new BoundFieldColumn { FieldName="ExaminationStyleName", HeaderText="考试形式", Align=AlignStyle.Center, Width=0.05},
  60. new BoundFieldColumn { FieldName="ExaminationDate", HeaderText="考试日期", Formatter= Formatter.OnlyYearMonthDay, Align=AlignStyle.Center, Width=0.05},
  61. new BoundFieldColumn { FieldName="ExaminationTime", HeaderText="考试时间", Align=AlignStyle.Center, Width=0.05},
  62. new BoundFieldColumn { FieldName="ClassroomNames", HeaderText="考场", Align=AlignStyle.Center, Width=0.05 },
  63. //new BoundFieldColumn { FieldName="RecordStatusDesc", HeaderText="状态", Align=AlignStyle.Center, Width=0.05 }
  64. },
  65. IsCheckOnSelect = true,
  66. DataSourceUrl = Url.Content("~/StudentExaminationCourse/List"),
  67. ID = "dgStudentExaminationCourseList",
  68. IsPagination = true,
  69. IsShowRowNumbers = true,
  70. IsSingleSelect = false
  71. })
  72. </div>
  73. </div>