List.cshtml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //院系所
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. OnSelect = "queryClass",
  11. ID = "CollegeDropdown",
  12. Name = "CollegeDropdown",
  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, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //专业名称
  28. ComboGridOptions cgopStandard = new ComboGridOptions
  29. {
  30. TextField = "StandardName",
  31. ValueField = "StandardID",
  32. OnSelect = "queryStandard",
  33. ID = "StandardDictionaryDropDown",
  34. Name = "StandardDictionaryDropDown",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  40. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. //学制
  50. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  51. {
  52. TextField = "LearnSystem",
  53. ValueField = "LearnSystem",
  54. OnSelect = "reload",
  55. ID = "DictionaryLearnSystem",
  56. Name = "DictionaryLearnSystem",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  62. },
  63. IsCheckOnSelect = true,
  64. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  65. IsPagination = true,
  66. IsShowRowNumbers = true,
  67. IsSingleSelect = false,
  68. IsShowHeader = false
  69. }
  70. };
  71. }
  72. @section scripts{
  73. <script src="~/Scripts/Business/ScoreManage/ImportScore.js" type="text/javascript"></script>
  74. <script type="text/javascript">
  75. var nonSelect = "@DropdownList.SELECT_ALL";
  76. </script>
  77. }
  78. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  79. @Html.Position()
  80. <div class="p_SearchTitle">
  81. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  82. 查询条件</div>
  83. </div>
  84. <form id="formQuery" method="post" action="@Url.Content("~/ImportScore/Excel")">
  85. @Html.PositionCondition()
  86. <div class="search_keyword">
  87. <div class="search_input">
  88. <ul>
  89. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  90. <li class="sv">
  91. @Html.DropdownList(new DropdownListOptions
  92. {
  93. ID = "SchoolyearDropdown",
  94. Name = "SchoolyearDropdown",
  95. BindType = DropdownListBindType.SelectAll,
  96. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  97. OnSelect = "reload",
  98. SelectedValue = BaseExtensions.GetCurrentSchoolYearID()
  99. },
  100. new Dictionary<string, string> { { "data-condition", "dgImportScoreList" } })
  101. </li>
  102. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  103. <li class="sv">
  104. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgImportScoreList" } })
  105. </li>
  106. <li class="sn" style="padding-left: 5px;">年级:</li>
  107. <li class="sv">
  108. @Html.SchoolYearDropDownList(new DropdownListOptions
  109. {
  110. BindType = DropdownListBindType.SelectAll,
  111. ID = "SchoolyearDictionaryDropDown",
  112. Name = "SchoolyearDictionaryDropDown",
  113. OnSelect = "queryClass"
  114. },
  115. new Dictionary<string, string> { { "data-condition", "dgImportScoreList" } })
  116. </li>
  117. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  118. <li class="sv">
  119. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgImportScoreList" } })
  120. </li>
  121. </ul>
  122. <ul>
  123. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  124. <li class="sv">
  125. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  126. new ComboGridOptions
  127. {
  128. ID = "DictionaryEducation",
  129. Name = "DictionaryEducation",
  130. OnSelect = "reload"
  131. },
  132. new Dictionary<string, string> { { "data-condition", "dgImportScoreList" } })
  133. </li>
  134. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  135. <li class="sv">
  136. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  137. new ComboGridOptions
  138. {
  139. ID = "DictionaryLearningform",
  140. Name = "DictionaryLearningform",
  141. OnSelect = "reload"
  142. },
  143. new Dictionary<string, string> { { "data-condition", "dgImportScoreList" } })
  144. </li>
  145. <li class="sn" style="padding-left: 5px;">学制:</li>
  146. <li class="sv">
  147. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgImportScoreList" } })
  148. </li>
  149. <li class="sn" style="padding-left: 5px; color: red; width: 85px;">在校状态:</li>
  150. <li class="sv">
  151. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  152. {
  153. ID = "DictionaryInschoolStatus",
  154. Name = "DictionaryInschoolStatus",
  155. BindType = DropdownListBindType.SelectAll,
  156. OnSelect = "reload",
  157. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes
  158. },
  159. new Dictionary<string, string> { { "data-condition", "dgImportScoreList" } })
  160. </li>
  161. </ul>
  162. </div>
  163. </div>
  164. </form>
  165. <div class="p_title">
  166. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  167. 平时成绩列表</div>
  168. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  169. </div>
  170. @Html.PositionBatchModify()
  171. <div class="search_list">
  172. @Html.DataGrid(new DataGridOptions
  173. {
  174. Columns = new List<DataGridColumn>()
  175. {
  176. new CheckBoxFieldColumn{ HeaderText="", FieldName="ImportScoreID"},
  177. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
  178. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  179. new BoundFieldColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 },
  180. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  181. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.05 },
  182. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  183. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  184. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.12 },
  185. new BoundFieldColumn { FieldName="Score", HeaderText="平时成绩", CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit", Align=AlignStyle.Center, Width=0.04 },
  186. //new BoundFieldColumn { FieldName="ModifyUserNo", HeaderText="操作人编号", Align=AlignStyle.Center, Width=0.05 },
  187. new BoundFieldColumn { FieldName="ModifyUserName", HeaderText="操作人", Align=AlignStyle.Center, Width=0.05 },
  188. new BoundFieldColumn { FieldName="ModifyTime", HeaderText="操作时间", Formatter=Formatter.OnlyYearMonthDay, Align=AlignStyle.Center, Width=0.06 },
  189. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=3 }
  190. },
  191. PageSize = 30,
  192. IsCheckOnSelect = true,
  193. DataSourceUrl = Url.Content("~/ImportScore/List"),
  194. ID = "dgImportScoreList",
  195. IsPagination = true,
  196. IsShowRowNumbers = true,
  197. IsSingleSelect = false
  198. })
  199. </div>
  200. </div>