List.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgop = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. Name = "CollegeComboGrid",
  10. ID = "CollegeComboGrid",
  11. OnSelect = "SelectCollegeComboGrid",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. ComboGridOptions cgopdepartment = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "DepartmentID",
  30. Name = "DepartmentComboGrid",
  31. ID = "DepartmentComboGrid",
  32. OnSelect = "reload",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. // new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center },
  38. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/Department/List"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false
  45. }
  46. };
  47. ComboGridOptions cgopCourse = new ComboGridOptions
  48. {
  49. TextField = "CourseName",
  50. ValueField = "CoursematerialID",
  51. Name = "CoursematerialComboGrid",
  52. OnSelect = "reload",
  53. GridOptions = new DataGridOptions
  54. {
  55. Columns = new List<DataGridColumn>()
  56. {
  57. // new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  58. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
  59. },
  60. IsCheckOnSelect = true,
  61. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  62. IsPagination = true,
  63. IsShowRowNumbers = true,
  64. IsSingleSelect = false
  65. }
  66. };
  67. }
  68. @section scripts{
  69. <script src="~/Scripts/Business/ScoreManage/FinalExamination.js" type="text/javascript"></script>
  70. <script type="text/javascript">
  71. var nonSelect = "@DropdownList.SELECT_ALL";
  72. </script>
  73. }
  74. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  75. <form id="formQuery" method="post" action="@Url.Content("~/FinalExamination/Excel")">
  76. @Html.Position()
  77. <div class="p_SearchTitle">
  78. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  79. 查询条件
  80. </div>
  81. </div>
  82. @Html.PositionCondition()
  83. <div class="search_keyword">
  84. <div class="search_input">
  85. <ul>
  86. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  87. <li class="sv">
  88. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgFinalExaminationList" } })
  89. </li>
  90. <li class="sn" style="padding-left: 5px;">教研室:</li>
  91. <li class="sv">
  92. @Html.ComboGrid(cgopdepartment, new Dictionary<string, string> { { "data-condition", "dgFinalExaminationList" } })
  93. </li>
  94. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  95. <li class="sv">
  96. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgFinalExaminationList" } })
  97. </li>
  98. <li class="sn" style="padding-left: 5px;">课程类型:</li>
  99. <li class="sv">
  100. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_CourseType, new DropdownListOptions { Name = "DictionaryCourseType", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgFinalExaminationList" } })
  101. </li>
  102. </ul>
  103. <ul>
  104. <li class="sn" style="padding-left: 5px;">考试性质:</li>
  105. <li class="sv">
  106. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ExamsCategory, new DropdownListOptions { Name = "DictionaryExamsCategory", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgFinalExaminationList" } })
  107. </li>
  108. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  109. <li class="sv">
  110. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "SchoolyearDropdown", OnSelect = "reload", SelectedValue = ViewBag.SchoolYearID }, new Dictionary<string, string> { { "data-condition", "dgFinalExaminationList" } })
  111. </li>
  112. <li class="sn" style="padding-left: 5px;">年级:</li>
  113. <li class="sv">
  114. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { Name = "DictionaryGrade", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgFinalExaminationList" } })
  115. </li>
  116. <li class="sn" style="padding-left: 5px;">状态:</li>
  117. <li class="sv">
  118. @*@Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ScoreState, new DropdownListOptions { Name = "DictionaryScoreState", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgFinalExaminationList" } })*@
  119. @Html.DropdownList(new DropdownListOptions
  120. {
  121. Name = "DictionaryScoreState",
  122. ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.ER_FinalExamination).Name),
  123. BindType = DropdownListBindType.SelectAll,
  124. OnSelect = "reload"
  125. }, new Dictionary<string, string> { { "data-condition", "dgFinalExaminationList" } })
  126. </li>
  127. @*导出数据*@
  128. <li style="display:none" class="sv" >
  129. <input id="FinalExaminationID" name="FinalExaminationID" type="text" value="" />
  130. </li>
  131. </ul>
  132. </div>
  133. </div>
  134. </form>
  135. <div class="p_title">
  136. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  137. 期末设定列表
  138. </div>
  139. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  140. </div>
  141. @Html.PositionBatchModify()
  142. <div class="search_list">
  143. @Html.Hidden("hid_ApprovalStatus")
  144. @Html.DataGrid(new DataGridOptions
  145. {
  146. Columns = new List<DataGridColumn>()
  147. {
  148. new CheckBoxFieldColumn{ HeaderText="", FieldName="FinalExaminationID" },
  149. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center ,Width=0.08 ,Handle="edit"},
  150. new BoundFieldColumn { FieldName="GradeYearID", HeaderText="年级", Align=AlignStyle.Center,Width=0.04 },
  151. new BoundFieldColumn { FieldName="ClassName", HeaderText="录入班级名称", Align=AlignStyle.Center, Width=0.16 },
  152. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.05 },
  153. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  154. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center,Width=0.05 },
  155. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.03 },
  156. new BoundFieldColumn { FieldName="ExamsCategoryName", HeaderText="考试性质", Align=AlignStyle.Center,Width=0.05 },
  157. new BoundFieldColumn { FieldName="CreatorUserNo", HeaderText="录入人编号", Align=AlignStyle.Center,Width=0.05 },
  158. new BoundFieldColumn { FieldName="CreatorUserName", HeaderText="录入人姓名", Align=AlignStyle.Center,Width=0.05 },
  159. new BoundFieldColumn { FieldName="EntryDeadlineTime", HeaderText="录入截止日期", Align=AlignStyle.Center, Width=0.07, Formatter= Formatter.OnlyYearMonthDay },
  160. new LinkButtonColumn { FieldName="StudentCount", HeaderText="学生数", Align=AlignStyle.Center, Handle="StudentList",Width=0.03 },
  161. new BoundFieldColumn { FieldName="SAPunlogStudentCount", HeaderText="未录入人数", Align=AlignStyle.Center, Width=0.05 },
  162. new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName=typeof(EMIS.Entities.ER_FinalExamination).Name, IDFieldName="FinalExaminationID", HeaderText="状态", Align=AlignStyle.Center,Width=0.04 }
  163. },
  164. IsCheckOnSelect = true,
  165. DataSourceUrl = Url.Content("~/FinalExamination/List"),
  166. ID = "dgFinalExaminationList",
  167. IsPagination = true,
  168. IsShowRowNumbers = true,
  169. IsSingleSelect = false
  170. })
  171. </div>
  172. </div>