GdssList.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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 = "queryClass",
  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. ComboGridOptions cgopClassmajor = new ComboGridOptions
  47. {
  48. TextField = "Name",
  49. ValueField = "ClassmajorID",
  50. Name = "ClassmajorDropdown",
  51. ID = "ClassmajorDropdown",
  52. OnSelect = "reload",
  53. GridOptions = new DataGridOptions
  54. {
  55. Columns = new List<DataGridColumn>()
  56. {
  57. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  58. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  59. },
  60. IsCheckOnSelect = true,
  61. DataSourceUrl = Url.Content("~/Classmajor/List"),
  62. IsPagination = true,
  63. IsShowRowNumbers = true,
  64. IsSingleSelect = false
  65. }
  66. };
  67. }
  68. @section scripts{
  69. <script src="~/Scripts/Business/ExaminationManage/ExaminationPlanGdss.js" type="text/javascript"></script>
  70. <script type="text/javascript">
  71. var notSubmitVal = @((int)EMIS.ViewModel.CF_ApprovalStatus.NotSubmitted);
  72. var nonSelect = "@DropdownList.SELECT_ALL";
  73. </script>
  74. }
  75. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  76. @Html.Position()
  77. <form id="formQuery" method="post" action="@Url.Content("~/ExaminationPlan/GdssExcel")">
  78. @Html.PositionCondition()
  79. <div class="search_keyword">
  80. @Html.Hidden("SelectedID")
  81. <div class="search_input">
  82. <ul>
  83. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  84. <li class="sv">
  85. @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" } })
  86. </li>
  87. <li class="sn" style="padding-left: 5px;">开课 @EMIS.Utility.RSL.Get("College"):</li>
  88. <li class="sv">
  89. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListOnlyCollege"), ID = "ddlCollege", Name = "ddlCollege", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  90. </li>
  91. <li class="sn" style="padding-left: 5px;">年级:</li>
  92. <li class="sv">
  93. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { ID = "DictionaryGrade", Name = "DictionaryGrade", BindType = DropdownListBindType.SelectAll, OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  94. </li>
  95. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  96. <li class="sv">
  97. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  98. </li>
  99. </ul>
  100. <ul>
  101. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  102. <li class="sv">
  103. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  104. </li>
  105. <li class="sn" style="padding-left: 5px;">考试科目:</li>
  106. <li class="sv">
  107. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  108. </li>
  109. <li class="sn" style="padding-left: 5px;">考试性质:</li>
  110. <li class="sv">
  111. @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" } })
  112. </li>
  113. <li class="sn" style="padding-left: 5px;">考试方式:</li>
  114. <li class="sv">
  115. @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" } })
  116. </li>
  117. </ul>
  118. <ul>
  119. <li class="sn" style="padding-left: 5px;">考试形式:</li>
  120. <li class="sv">
  121. @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" } })
  122. </li>
  123. <li class="sn" style="padding-left: 5px;">课程结束周次</li>
  124. <li class="sv">
  125. @Html.TextBox(new TextBoxOptions { Name = "CourseEndWeek", ID = "CourseEndWeek" }, new Dictionary<string, string> { { "data-condition", "dgExaminationPlanList" } })
  126. </li>
  127. <li class="sn" style="padding-left: 5px;">状态:</li>
  128. <li class="sv">
  129. @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" } })
  130. </li>
  131. </ul>
  132. <ul>
  133. @*导出数据*@
  134. <li style="display:none" class="sv" >
  135. <input id="ExaminationPlanIDs" name="ExaminationPlanIDs" type="text" value="" />
  136. </li>
  137. </ul>
  138. </div>
  139. </div>
  140. <div class="p_title">
  141. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  142. 考试计划列表</div>
  143. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  144. </div>
  145. </form>
  146. @Html.PositionBatchModify()
  147. <div class="search_list">
  148. @Html.DataGrid(new DataGridOptions
  149. {
  150. Columns = new List<DataGridColumn>()
  151. {
  152. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationPlanID"},
  153. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.05 },
  154. new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="考试科目", Align=AlignStyle.Center, OverflowLength=11, Width=0.1 },
  155. new LinkButtonColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center, Handle = "view", OverflowLength=29, Width=0.15 },
  156. new LinkButtonColumn { FieldName="MissionStudentCount", HeaderText="学生数", Align=AlignStyle.Center, Handle = "viewStudent", Width=0.03 },
  157. new BoundFieldColumn { FieldName="ExaminationModeName", HeaderText="考试方式", Align=AlignStyle.Center, Width=0.05 },
  158. new BoundFieldColumn { FieldName="ExamsCategoryName", HeaderText="考试性质", Align=AlignStyle.Center, Width=0.05 },
  159. new BoundFieldColumn { FieldName="ExaminationStyleName", HeaderText="考试形式", Align=AlignStyle.Center, Width=0.05},
  160. new BoundFieldColumn { FieldName="CourseEndWeekNum", HeaderText="课程结束周次", Align=AlignStyle.Center, Width=0.05},
  161. new BoundFieldColumn { FieldName="ExaminationDate", HeaderText="考试日期", Formatter= Formatter.OnlyYearMonthDay, Align=AlignStyle.Center, Width=0.05},
  162. new BoundFieldColumn { FieldName="ExaminationTime", HeaderText="考试时间", Align=AlignStyle.Center, Width=0.05},
  163. new BoundFieldColumn { FieldName="TeacherName", HeaderText="监考老师", Align=AlignStyle.Center, Width=0.1 },
  164. new BoundFieldColumn { FieldName="ClassroomNames", HeaderText="考场", Align=AlignStyle.Center, Width=0.05 },
  165. new BoundFieldColumn { FieldName="RecordStatusDesc", HeaderText="状态", Align=AlignStyle.Center, Width=0.05 }
  166. },
  167. IsCheckOnSelect = true,
  168. DataSourceUrl = Url.Content("~/ExaminationPlan/GdssList"),
  169. ID = "dgExaminationPlanList",
  170. IsPagination = true,
  171. IsShowRowNumbers = true,
  172. IsSingleSelect = false
  173. })
  174. </div>
  175. </div>