ByReplaceList.cshtml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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/ScoreConvertByReplaceList.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/ByReplaceExcel")">
  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", "dgScoreConvertByReplaceList" } })
  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", "dgScoreConvertByReplaceList" } })
  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", "dgScoreConvertByReplaceList" } })
  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", "dgScoreConvertByReplaceList" } })
  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", "dgScoreConvertByReplaceList" } })
  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", "dgScoreConvertByReplaceList" } })
  132. </li>
  133. <li class="sn" style="padding-left: 5px;">状态:</li>
  134. <li class="sv">
  135. @Html.DropdownList(new DropdownListOptions
  136. {
  137. Name = "ddlRecordStatus",
  138. ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.ES_EducationSchedulingAdjustment).Name),
  139. BindType = DropdownListBindType.SelectAll,
  140. OnSelect = "reload"
  141. }, new Dictionary<string, string> { { "data-condition", "dgScoreConvertByReplaceList" } })
  142. </li>
  143. </ul>
  144. </div>
  145. </div>
  146. </form>
  147. <div class="p_title">
  148. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  149. 替换认定列表
  150. </div>
  151. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  152. </div>
  153. <div class="search_list">
  154. @Html.DataGrid(new DataGridOptions
  155. {
  156. Columns = new List<DataGridColumn>()
  157. {
  158. new CheckBoxFieldColumn { FieldName = "ScoreConvertByReplaceID" },
  159. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=60 },
  160. new BoundFieldColumn { FieldName="CollegeName", HeaderText=EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=60 },
  161. new BoundFieldColumn { FieldName="StandardDesc", HeaderText="专业", Align=AlignStyle.Center, Width=60 },
  162. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center, Width=200 },
  163. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=60 },
  164. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=50 },
  165. new BoundFieldColumn { FieldName="TargetCourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=40 },
  166. new BoundFieldColumn { FieldName="TargetCourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=40 },
  167. new BoundFieldColumn { FieldName="TotalScore", HeaderText="成绩", Align=AlignStyle.Center, Width=40 },
  168. new BoundFieldColumn { FieldName="SourceCourseCode", HeaderText="原始课程代码", Align=AlignStyle.Center, Width=40 },
  169. new BoundFieldColumn { FieldName="SourceCourseName", HeaderText="原始课程名称", Align=AlignStyle.Center, Width=40 },
  170. new ApproveStatusColumn { FieldName="RecordStatusDesc", TableName=typeof(EMIS.Entities.ER_ScoreConvertByReplace).Name, IDFieldName="ScoreConvertByReplaceID", HeaderText="状态", Align=AlignStyle.Center,Width=0.04 }
  171. },
  172. IsCheckOnSelect = true,
  173. DataSourceUrl = Url.Content("~/ScoreConvert/ByReplaceList"),
  174. ID = "dgScoreConvertByReplaceList",
  175. IsPagination = true,
  176. IsShowRowNumbers = true,
  177. IsSingleSelect = false
  178. })
  179. </div>