StudentByApplyList.cshtml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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 optClassmajor = new ComboGridOptions
  47. {
  48. TextField = "Name",
  49. ValueField = "ClassmajorID",
  50. Name = "cbgClassmajor",
  51. ID = "cbgClassmajor",
  52. OnSelect = "reload",
  53. GridOptions = new DataGridOptions
  54. {
  55. Columns = new List<DataGridColumn>()
  56. {
  57. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  58. },
  59. IsAutoLoad = false,
  60. OnLoadSuccessFun = "reload",
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/Classmajor/List"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false
  66. }
  67. };
  68. ComboGridOptions optCourse = new ComboGridOptions
  69. {
  70. TextField = "CourseName",
  71. ValueField = "CoursematerialID",
  72. OnSelect = "reload",
  73. Name = "cgbCourse",
  74. GridOptions = new DataGridOptions
  75. {
  76. Columns = new List<DataGridColumn>()
  77. {
  78. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 },
  79. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  80. },
  81. IsCheckOnSelect = true,
  82. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  83. IsPagination = true,
  84. IsShowRowNumbers = true,
  85. IsSingleSelect = false,
  86. }
  87. };
  88. }
  89. @section scripts{
  90. <script src="~/Scripts/Business/ScoreManage/StudentScoreConvertByApplyList.js" type="text/javascript"></script>
  91. <script type="text/javascript">
  92. var nonSelect = "@DropdownList.SELECT_ALL";
  93. var startStatusID = @ViewBag.StartStatusID;
  94. </script>
  95. }
  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("~/ScoreConvert/StudentByApplyExcel")">
  103. @Html.PositionCondition()
  104. <div class="search_keyword">
  105. @Html.Hidden("SelectedID")
  106. <div class="search_input">
  107. <ul>
  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 = "ddlSchoolyear", ID = "ddlSchoolyear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentScoreConvertByApplyList" } })
  111. </li>
  112. <li class="sn" style="padding-left: 5px;">@(EMIS.Utility.RSL.Get("College")):</li>
  113. <li class="sv">
  114. @Html.ComboGrid(optCollege, new Dictionary<string, string> { { "data-condition", "dgStudentScoreConvertByApplyList" } })
  115. </li>
  116. <li class="sn" style="padding-left: 5px;">年级:</li>
  117. <li class="sv">
  118. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ddlYear", ID = "ddlYear", OnSelect = "queryStandard" }, new Dictionary<string, string> { { "data-condition", "dgStudentScoreConvertByApplyList" } })
  119. </li>
  120. <li class="sn" style="padding-left: 5px;">专业:</li>
  121. <li class="sv">
  122. @Html.ComboGrid(optStandard, new Dictionary<string, string> { { "data-condition", "dgStudentScoreConvertByApplyList" } })
  123. </li>
  124. </ul>
  125. <ul>
  126. <li class="sn" style="padding-left: 5px;">班级:</li>
  127. <li class="sv">
  128. @Html.ComboGrid(optClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentScoreConvertByApplyList" } })
  129. </li>
  130. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  131. <li class="sv">
  132. @Html.ComboGrid(optCourse, new Dictionary<string, string> { { "data-condition", "dgStudentScoreConvertByApplyList" } })
  133. </li>
  134. <li class="sn" style="padding-left: 5px;">状态:</li>
  135. <li class="sv">
  136. @Html.DropdownList(new DropdownListOptions
  137. {
  138. Name = "ddlRecordStatus",
  139. ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.ER_ScoreConvertByApply).Name),
  140. BindType = DropdownListBindType.SelectAll,
  141. OnSelect = "reload"
  142. }, new Dictionary<string, string> { { "data-condition", "dgStudentScoreConvertByApplyList" } })
  143. </li>
  144. </ul>
  145. </div>
  146. </div>
  147. </form>
  148. <div class="p_title">
  149. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  150. 申报认定列表
  151. </div>
  152. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  153. </div>
  154. <div class="search_list">
  155. @Html.DataGrid(new DataGridOptions
  156. {
  157. Columns = new List<DataGridColumn>()
  158. {
  159. new CheckBoxFieldColumn { FieldName = "ScoreConvertByApplyID" },
  160. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  161. new BoundFieldColumn { FieldName="CollegeName", HeaderText=EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08 },
  162. new BoundFieldColumn { FieldName="StandardDesc", HeaderText="专业", Align=AlignStyle.Center, Width=0.08 },
  163. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center, Width=0.1 },
  164. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.08 },
  165. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.06 },
  166. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.08 },
  167. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.12 },
  168. //new BoundFieldColumn { FieldName="SchoolyearNumName", HeaderText="开课学年", Align=AlignStyle.Center, Width=40 },
  169. //new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="开课学期", Align=AlignStyle.Center, Width=40 },
  170. new BoundFieldColumn { FieldName="TotalScore", HeaderText="成绩", Align=AlignStyle.Center, Width=0.06 },
  171. new LinkButtonColumn { FieldName="AttachmentName", HeaderText="证明文件", Align=AlignStyle.Center, Width=0.06, Handle = "attachment" },
  172. new ApproveStatusColumn { FieldName="RecordStatusDesc", TableName=typeof(EMIS.Entities.ER_ScoreConvertByApply).Name, IDFieldName="ScoreConvertByApplyID", HeaderText="状态", Align=AlignStyle.Center,Width=0.04 }
  173. },
  174. IsCheckOnSelect = true,
  175. DataSourceUrl = Url.Content("~/ScoreConvert/StudentByApplyList"),
  176. ID = "dgStudentScoreConvertByApplyList",
  177. IsPagination = true,
  178. IsShowRowNumbers = true,
  179. IsSingleSelect = false
  180. })
  181. </div>