List.cshtml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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 = "reload",
  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 cgopClassmajor = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "ClassmajorID",
  30. Name = "ClassmajorDropdown",
  31. ID = "ClassmajorDropdown",
  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("~/Classmajor/List"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false,
  45. OnLoadSuccessFun = "reload",
  46. }
  47. };
  48. ComboGridOptions ExaminationSubject = new ComboGridOptions
  49. {
  50. TextField = "Name",
  51. ValueField = "ExaminationSubjectID",
  52. Name = "ExaminationSubjectDropdown",
  53. ID = "ExaminationSubjectDropdown",
  54. OnSelect = "reload",
  55. GridOptions = new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. ///new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Width=0.1, Align=AlignStyle.Center },
  60. new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Width=0.1, Align=AlignStyle.Center },
  61. new BoundFieldColumn { FieldName="ExaminationFormName", HeaderText="考试类别", Width=0.1, Align=AlignStyle.Center },
  62. new BoundFieldColumn { FieldName="Name", HeaderText="科目名称", Width=0.1, Align=AlignStyle.Center }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/StudentLevelScore/List"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false
  69. }
  70. };
  71. }
  72. @section scripts{
  73. <script src="~/Scripts/Business/ScoreManage/LevelScore.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("~/LevelScore/Excel")">
  85. <div class="search_keyword">
  86. <div class="search_input">
  87. </div>
  88. </div>
  89. </form>
  90. <div class="p_title">
  91. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  92. 过级成绩列表</div>
  93. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  94. </div>
  95. @Html.PositionBatchModify()
  96. <div class="search_list">
  97. @Html.DataGrid(new DataGridOptions
  98. {
  99. Columns = new List<DataGridColumn>()
  100. {
  101. new CheckBoxFieldColumn{ HeaderText="LevelScoreID", FieldName="LevelScoreID" },
  102. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center,Width=0.035 },
  103. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center,Width=0.025 },
  104. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center,Width=0.035 },
  105. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center,OverflowLength=25 },
  106. new BoundFieldColumn { FieldName="ExaminationSubjectName", HeaderText="考试科目", Align=AlignStyle.Center,OverflowLength=25 },
  107. new BoundFieldColumn { FieldName="TotalScore", HeaderText="总成绩", Align=AlignStyle.Center,Width=0.02 },
  108. new BoundFieldColumn { FieldName="LevelName", HeaderText="成绩等级", Align=AlignStyle.Center,Width=0.02 },
  109. new BoundFieldColumn { FieldName="ExaminationDate", HeaderText="考试日期", Align=AlignStyle.Center, Formatter=Formatter.OnlyYearMonthDay,Width=0.03 },
  110. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center,Width=0.03 }
  111. },
  112. IsCheckOnSelect = true,
  113. DataSourceUrl = Url.Content("~/StudentLevelScore/List"),
  114. ID = "dgLevelScoreList",
  115. IsPagination = true,
  116. IsShowRowNumbers = true,
  117. IsSingleSelect = false
  118. })
  119. </div>
  120. </div>