ListDGLG.cshtml 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. ComboGridOptions cgop = new ComboGridOptions
  8. {
  9. TextField = "CourseName",
  10. ValueField = "CoursematerialID",
  11. OnSelect = "reload",
  12. Name = "cbgCoursematerial",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false,
  24. }
  25. };
  26. ComboGridOptions cgopStandard = new ComboGridOptions
  27. {
  28. TextField = "StandardName",
  29. ValueField = "StandardID",
  30. OnSelect = "reload",
  31. Name = "StandardDictionaryDropDown",
  32. ID = "StandardDictionaryDropDown",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  38. },
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false,
  44. }
  45. };
  46. }
  47. @section scripts{
  48. <script src="~/Scripts/Business/ExaminationManage/ExaminationPlanDGLG.js" type="text/javascript"></script>
  49. <script type="text/javascript">
  50. var notSubmitVal = @((int)EMIS.ViewModel.CF_ApprovalStatus.NotSubmitted);
  51. </script>
  52. }
  53. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  54. @Html.Position()
  55. <form id="formQuery" method="post" action="@Url.Content("~/ExaminationPlan/Excel")">
  56. @Html.PositionCondition()
  57. <div class="search_keyword">
  58. @Html.Hidden("SelectedID")
  59. <div class="search_input">
  60. <ul>
  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/YearsDropdownListBanid"), Name = "ddlSchoolYear", OnSelect = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  64. </li>
  65. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  66. <li class="sv">
  67. @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" } })
  68. </li>
  69. <li class="sn" style="padding-left: 5px;">年级:</li>
  70. <li class="sv">
  71. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { ID = "DictionaryGrade", Name = "DictionaryGrade", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  72. </li>
  73. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  74. <li class="sv">
  75. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  76. @*@Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "StandardDictionaryDropDown", Name = "StandardDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })*@
  77. </li>
  78. </ul>
  79. <ul>
  80. <li class="sn" style="padding-left: 5px;">考试科目:</li>
  81. <li class="sv">
  82. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  83. </li>
  84. <li class="sn" style="padding-left: 5px;">考试性质:</li>
  85. <li class="sv">
  86. @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" } })
  87. </li>
  88. <li class="sn" style="padding-left: 5px;">考试方式:</li>
  89. <li class="sv">
  90. @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" } })
  91. </li>
  92. <li class="sn" style="padding-left: 5px;">考试形式:</li>
  93. <li class="sv">
  94. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EX_ExaminationStyle, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlExaminationStyle", Name = "ddlExaminationStyle", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  95. </li>
  96. </ul>
  97. <ul>
  98. <li class="sn" style="padding-left: 5px;">开始周次</li>
  99. <li class="sv">
  100. @Html.TextBox(new TextBoxOptions { Name = "StarWeek", ID = "StarWeek" }, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  101. </li>
  102. <li class="sn" style="padding-left: 5px;">结束周次</li>
  103. <li class="sv">
  104. @Html.TextBox(new TextBoxOptions { Name = "EndWeek", ID = "EndWeek" }, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  105. </li>
  106. <li class="sn" style="padding-left: 5px;">课程结束周次</li>
  107. <li class="sv">
  108. @Html.TextBox(new TextBoxOptions { Name = "CourseEndWeek", ID = "CourseEndWeek" }, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  109. </li>
  110. <li class="sn" style="padding-left: 5px;">状态:</li>
  111. <li class="sv">
  112. @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" } })
  113. </li>
  114. </ul>
  115. </div>
  116. </div>
  117. <div class="p_title">
  118. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  119. 考试计划列表</div>
  120. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  121. </div>
  122. </form>
  123. @Html.PositionBatchModify()
  124. <div class="search_list">
  125. @Html.DataGrid(new DataGridOptions
  126. {
  127. Columns = new List<DataGridColumn>()
  128. {
  129. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationPlanID"},
  130. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.1 },
  131. new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="考试科目", Align=AlignStyle.Center, OverflowLength=11, Width=0.1 },
  132. new LinkButtonColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center, Handle = "view", OverflowLength=29, Width=0.24 },
  133. new LinkButtonColumn { FieldName="MissionStudentCount", HeaderText="学生数", Align=AlignStyle.Center, Handle = "viewStudent", Width=0.05 },
  134. new BoundFieldColumn { FieldName="StudentCount", HeaderText="排考人数", Align=AlignStyle.Center, Width=0.05 },
  135. new BoundFieldColumn { FieldName="ExaminationModeName", HeaderText="考试方式", Align=AlignStyle.Center, Width=0.05 },
  136. new BoundFieldColumn { FieldName="ExamsCategoryName", HeaderText="考试性质", Align=AlignStyle.Center, Width=0.05 },
  137. new BoundFieldColumn { FieldName="ExaminationStyleName", HeaderText="考试形式", Align=AlignStyle.Center, Width=0.05},
  138. new BoundFieldColumn { FieldName="CourseEndWeekNum", HeaderText="课程结束周次", Align=AlignStyle.Center, Width=0.06},
  139. new BoundFieldColumn { FieldName="WeekNumString", HeaderText="考试周次", Align=AlignStyle.Center, Width=0.05 },
  140. new BoundFieldColumn { FieldName="ExaminationDate", HeaderText="考试日期", Formatter= Formatter.OnlyYearMonthDay, Align=AlignStyle.Center, Width=0.1 },
  141. new BoundFieldColumn { FieldName="ExaminationTime", HeaderText="考试时间", Align=AlignStyle.Center, Width=0.1 },
  142. new BoundFieldColumn { FieldName="ClassroomNum", HeaderText="考室数", Align=AlignStyle.Center, Width=0.05 },
  143. new BoundFieldColumn { FieldName="RecordStatusDesc", HeaderText="状态", Align=AlignStyle.Center, Width=0.06 }
  144. },
  145. IsCheckOnSelect = true,
  146. DataSourceUrl = Url.Content("~/ExaminationPlan/List"),
  147. ID = "dgExaminationPlanList",
  148. IsPagination = true,
  149. IsShowRowNumbers = true,
  150. IsSingleSelect = false
  151. })
  152. </div>
  153. </div>