List.cshtml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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 = "queryCollege",
  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. ID = "CoursematerialComboGrid",
  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. ComboGridOptions cgopClassmajor = new ComboGridOptions
  69. {
  70. TextField = "Name",
  71. ValueField = "ClassmajorID",
  72. Name = "ClassmajorDropdown",
  73. ID = "ClassmajorDropdown",
  74. OnSelect = "reload",
  75. GridOptions = new DataGridOptions
  76. {
  77. Columns = new List<DataGridColumn>()
  78. {
  79. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  80. },
  81. IsCheckOnSelect = true,
  82. DataSourceUrl = Url.Content("~/Classmajor/List"),
  83. IsPagination = true,
  84. IsShowRowNumbers = true,
  85. IsSingleSelect = false
  86. }
  87. };
  88. ComboGridOptions cgopStandard = new ComboGridOptions
  89. {
  90. TextField = "StandardName",
  91. ValueField = "StandardID",
  92. OnSelect = "queryStandard",
  93. Name = "StandardID",
  94. ID = "StandardID",
  95. GridOptions = new DataGridOptions
  96. {
  97. Columns = new List<DataGridColumn>()
  98. {
  99. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  100. },
  101. IsCheckOnSelect = true,
  102. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  103. IsPagination = true,
  104. IsShowRowNumbers = true,
  105. IsSingleSelect = false,
  106. }
  107. };
  108. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  109. {
  110. TextField = "LearnSystem",
  111. ValueField = "LearnSystem",
  112. OnSelect = "queryClass",
  113. Name = "DictionaryLearnSystem",
  114. ID = "DictionaryLearnSystem",
  115. GridOptions = new DataGridOptions
  116. {
  117. Columns = new List<DataGridColumn>()
  118. {
  119. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  120. },
  121. IsCheckOnSelect = true,
  122. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  123. IsPagination = true,
  124. IsShowRowNumbers = true,
  125. IsSingleSelect = false,
  126. IsShowHeader = false
  127. }
  128. };
  129. }
  130. @section scripts{
  131. <script src="~/Scripts/Business/ScoreManage/StudentScore.js" type="text/javascript"></script>
  132. <script type="text/javascript">
  133. var nonSelect = "@DropdownList.SELECT_ALL";
  134. </script>
  135. }
  136. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  137. @Html.Position()
  138. <div class="p_SearchTitle">
  139. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  140. 查询条件
  141. </div>
  142. </div>
  143. <form id="formQuery" method="post" action="@Url.Content("~/StudentScore/Excel")">
  144. @Html.PositionCondition()
  145. <div class="search_keyword">
  146. <div class="search_input">
  147. <ul>
  148. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  149. <li class="sv">
  150. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "SchoolyearDropdown", ID = "SchoolyearDropdown", SelectedValue = ViewBag.SchoolYearID, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  151. </li>
  152. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  153. <li class="sv">
  154. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  155. </li>
  156. @*<li class="sn" style="padding-left: 5px;">教研室:</li>
  157. <li class="sv">
  158. @Html.ComboGrid(cgopdepartment, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  159. </li>*@
  160. <li class="sn" style="padding-left: 5px;">年级:</li>
  161. <li class="sv">
  162. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DictionaryGrade", Name = "DictionaryGrade", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  163. </li>
  164. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  165. <li class="sv">
  166. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  167. @*@Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "StandardDictionaryDropDown", Name = "StandardDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgList" } })*@
  168. </li>
  169. </ul>
  170. <ul>
  171. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  172. <li class="sv">
  173. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "DictionaryEducation", Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  174. </li>
  175. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  176. <li class="sv">
  177. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "LearningformDictionaryDropDown", Name = "LearningformDictionaryDropDown", SelectedValue = BaseExtensions.GetDefaultLearnformForList(), OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  178. </li>
  179. <li class="sn" style="padding-left: 5px;">学制:</li>
  180. <li class="sv">
  181. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  182. </li>
  183. <li class="sn" style="padding-left: 5px;">班级:</li>
  184. <li class="sv">
  185. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  186. </li>
  187. </ul>
  188. <ul>
  189. <li class="sn" style="padding-left: 5px;">处理方式:</li>
  190. <li class="sv">
  191. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_HandleMode, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "HandleModeDictionaryDropDown", Name = "HandleModeDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  192. </li>
  193. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  194. <li class="sv">
  195. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  196. </li>
  197. <li class="sn" style="padding-left: 5px;">课程类型:</li>
  198. <li class="sv">
  199. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_CourseType, new DropdownListOptions { ID = "DictionaryCourseType",Name = "DictionaryCourseType", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  200. </li>
  201. <li class="sn" style="padding-left: 5px;">考试性质:</li>
  202. <li class="sv">
  203. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ExamsCategory, new DropdownListOptions { ID = "DictionaryExamsCategory", Name = "DictionaryExamsCategory", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  204. </li>
  205. </ul>
  206. <ul>
  207. <li class="sn" style="padding-left: 5px;">开课学期:</li>
  208. <li class="sv">
  209. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Startterm, new DropdownListOptions { ID = "DictionaryStarttermBegin", Name = "DictionaryStarttermBegin", BindType = DropdownListBindType.SelectAll,Width=70 }, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  210. </li>
  211. <li class="sn" style=" width:auto" >至</li>
  212. <li class="sv">
  213. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Startterm, new DropdownListOptions { ID = "DictionaryStarttermEnd", Name = "DictionaryStarttermEnd", BindType = DropdownListBindType.SelectAll,Width=70, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  214. </li>
  215. <li style="display:none" class="sv" >
  216. <input id="SubmitedScoreID" name="SubmitedScoreID" type="text" value="" />
  217. </li>
  218. </ul>
  219. </div>
  220. </div>
  221. </form>
  222. <div class="p_title">
  223. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  224. 学生成绩列表
  225. </div>
  226. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  227. </div>
  228. @Html.PositionBatchModify()
  229. <div class="search_list">
  230. @Html.DataGrid(new DataGridOptions
  231. {
  232. Columns = new List<DataGridColumn>()
  233. {
  234. new CheckBoxFieldColumn { HeaderText="", FieldName="SubmitedScoreID" },
  235. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Handle="edit", Width=0.08 },
  236. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
  237. new BoundFieldColumn { FieldName="UserID", HeaderText="UserID", Align=AlignStyle.Center, Width=0.08, IsHidden=true },
  238. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  239. //new BoundFieldColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1 },
  240. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  241. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.12 },
  242. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05 },
  243. new BoundFieldColumn { FieldName="ExamsCategoryName", HeaderText="考试性质", Align=AlignStyle.Center, Width=0.04 },
  244. //new BoundFieldColumn { FieldName="ExaminationModeName", HeaderText="考试方式", Align=AlignStyle.Center, Width=0.04 },
  245. new BoundFieldColumn { FieldName="ExamsStateName", HeaderText="考试状态", Align=AlignStyle. Center, Width=0.04 },
  246. new BoundFieldColumn { FieldName="StarttermName", HeaderText="开课学期", Align=AlignStyle. Center, Width=0.04 },
  247. new BoundFieldColumn { FieldName="TotalHours", HeaderText="学时数", Align=AlignStyle.Center, Width=0.03 },
  248. new BoundFieldColumn { FieldName="Pingshi", HeaderText=@EMIS.Utility.RSL.Get("Peacetime"), Align=AlignStyle.Center, Width=0.04 },
  249. new BoundFieldColumn { FieldName="Jishu", HeaderText=@EMIS.Utility.RSL.Get("Technique"), Align=AlignStyle.Center, Width=0.04 },
  250. new BoundFieldColumn { FieldName="Lilun", HeaderText=@EMIS.Utility.RSL.Get("Theoretical"), Align=AlignStyle.Center, Width=0.04 },
  251. new BoundFieldColumn { FieldName="TotalScoreStr", HeaderText="总成绩", Align=AlignStyle.Center, Width=0.04 },
  252. new BoundFieldColumn { FieldName="ScoreCredit", HeaderText="学分", Align=AlignStyle.Center, Width=0.03 },
  253. new BoundFieldColumn { FieldName="GradePoint", HeaderText="绩点", Align=AlignStyle.Center, Width=0.03 },
  254. new BoundFieldColumn { FieldName="Remarks", HeaderText="备注", Align=AlignStyle.Center ,Width=0.04, OverflowLength=10 }
  255. },
  256. IsCheckOnSelect = true,
  257. DataSourceUrl = Url.Content("~/StudentScore/List"),
  258. ID = "dgStudentScoreList",
  259. IsPagination = true,
  260. IsShowRowNumbers = true,
  261. IsSingleSelect = false
  262. })
  263. </div>
  264. </div>