List.cshtml 10 KB

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