RawScoreList.cshtml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions optCollege = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. OnSelect = "queryStandard",
  10. Name = "cgbCollege",
  11. ID = "cgbCollege",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/College/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. }
  24. };
  25. ComboGridOptions optStandard = new ComboGridOptions
  26. {
  27. TextField = "StandardName",
  28. ValueField = "StandardID",
  29. OnSelect = "queryClass",
  30. Name = "cbgStandard",
  31. ID = "cbgStandard",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  37. },
  38. OnLoadSuccessFun = "queryClass",
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false,
  44. }
  45. };
  46. ComboGridOptions optCourse = new ComboGridOptions
  47. {
  48. TextField = "CourseName",
  49. ValueField = "CoursematerialID",
  50. OnSelect = "reload",
  51. Name = "cgbCourse",
  52. GridOptions = new DataGridOptions
  53. {
  54. Columns = new List<DataGridColumn>()
  55. {
  56. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 },
  57. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  58. },
  59. IsCheckOnSelect = true,
  60. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  61. IsPagination = true,
  62. IsShowRowNumbers = true,
  63. IsSingleSelect = false,
  64. }
  65. };
  66. ComboGridOptions optClassmajor = new ComboGridOptions
  67. {
  68. TextField = "Name",
  69. ValueField = "ClassmajorID",
  70. Name = "cbgClassmajor",
  71. ID = "cbgClassmajor",
  72. OnSelect = "reload",
  73. GridOptions = new DataGridOptions
  74. {
  75. Columns = new List<DataGridColumn>()
  76. {
  77. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  78. },
  79. IsAutoLoad = false,
  80. OnLoadSuccessFun = "reload",
  81. IsCheckOnSelect = true,
  82. DataSourceUrl = Url.Content("~/Classmajor/List"),
  83. IsPagination = true,
  84. IsShowRowNumbers = true,
  85. IsSingleSelect = false
  86. }
  87. };
  88. }
  89. @section scripts{
  90. <script src="~/Scripts/Business/DQPSystem/SOCRawScoreList.js" type="text/javascript"></script>
  91. <script type="text/javascript">
  92. var nonSelect = "@DropdownList.SELECT_ALL";
  93. </script>
  94. }
  95. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  96. @Html.Position()
  97. <div class="p_SearchTitle">
  98. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  99. 查询条件
  100. </div>
  101. </div>
  102. <form id="formQuery" method="post" action="@Url.Content("~/SOCDetailScore/RawExcel")">
  103. @Html.PositionCondition()
  104. <div class="search_keyword">
  105. <div class="search_input">
  106. <ul>
  107. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  108. <li class="sv">
  109. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "ddlSchoolyear", ID = "ddlSchoolyear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSOCDetailRawScoreList" } })
  110. </li>
  111. <li class="sn" style="padding-left: 5px;">@(EMIS.Utility.RSL.Get("College")):</li>
  112. <li class="sv">
  113. @Html.ComboGrid(optCollege, new Dictionary<string, string> { { "data-condition", "dgSOCDetailRawScoreList" } })
  114. </li>
  115. <li class="sn" style="padding-left: 5px;">年级:</li>
  116. <li class="sv">
  117. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ddlYear", ID = "ddlYear", OnSelect = "queryStandard" }, new Dictionary<string, string> { { "data-condition", "dgSOCDetailRawScoreList" } })
  118. </li>
  119. <li class="sn" style="padding-left: 5px;">专业:</li>
  120. <li class="sv">
  121. @Html.ComboGrid(optStandard, new Dictionary<string, string> { { "data-condition", "dgSOCDetailRawScoreList" } })
  122. </li>
  123. </ul>
  124. <ul>
  125. <li class="sn" style="padding-left: 5px;">班级:</li>
  126. <li class="sv">
  127. @Html.ComboGrid(optClassmajor, new Dictionary<string, string> { { "data-condition", "dgSOCDetailRawScoreList" } })
  128. </li>
  129. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  130. <li class="sv">
  131. @Html.ComboGrid(optCourse, new Dictionary<string, string> { { "data-condition", "dgSOCDetailRawScoreList" } })
  132. </li>
  133. </ul>
  134. </div>
  135. </div>
  136. <div class="p_title">
  137. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  138. SOC原始成绩
  139. </div>
  140. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  141. </div>
  142. </form>
  143. <div class="search_list">
  144. @Html.DataGrid(new DataGridOptions
  145. {
  146. Columns = new List<DataGridColumn>()
  147. {
  148. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=60 },
  149. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=60 },
  150. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=120 },
  151. new BoundFieldColumn { FieldName="TotalCredit", HeaderText="课程学分", Align=AlignStyle.Center, Width=60 },
  152. new BoundFieldColumn { FieldName="Gradeyear", HeaderText="年级", Align=AlignStyle.Center, Width=60 },
  153. new BoundFieldColumn { FieldName="StandardDesc", HeaderText="专业", Align=AlignStyle.Center, Width=100 },
  154. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center, Width=200 },
  155. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=60 },
  156. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=50 },
  157. new BoundFieldColumn { FieldName="SOCDetailName", HeaderText="成果名称", Align=AlignStyle.Center, Width=40 },
  158. new BoundFieldColumn { FieldName="SOCDetailCredit", HeaderText="成果学分", Align=AlignStyle.Center, Width=40, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  159. new BoundFieldColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=40, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  160. new BoundFieldColumn { FieldName="Score", HeaderText="成果得分", Align=AlignStyle.Center, Width=40, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  161. new BoundFieldColumn { FieldName="ActualScore", HeaderText="实际得分", Align=AlignStyle.Center, Width=40, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  162. },
  163. IsCheckOnSelect = true,
  164. DataSourceUrl = Url.Content("~/SOCDetailScore/RawList"),
  165. ID = "dgSOCDetailRawScoreList",
  166. IsPagination = true,
  167. IsShowRowNumbers = true,
  168. IsSingleSelect = false
  169. })
  170. </div>
  171. </div>