List.cshtml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. string StudentNo = Convert.ToString(ViewBag.StudentNo);
  6. //var CurseGrade = (IList<EMIS.ViewModel.Students.CourseGradeView>)ViewBag.CurseGrade;
  7. ComboGridOptions cgop = new ComboGridOptions
  8. {
  9. TextField = "LoginID",
  10. ValueField = "UserID",
  11. EmptyText = "请选择",
  12. IsAutoComplete = true,
  13. MinReloadCharactor = EMIS.Utility.Const.LOCAL_SETTING_LoginIDLength,
  14. SelectedValue=StudentNo,
  15. Name = "StudentsComboGrid",
  16. ID = "StudentsComboGrid",
  17. OnSelect="reload",
  18. GridOptions = new DataGridOptions
  19. {
  20. Columns = new List<DataGridColumn>()
  21. {
  22. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.1, Align=AlignStyle.Center },
  23. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.1, Align=AlignStyle.Center },
  24. },
  25. OnLoadSuccessFun = "reloadBack",
  26. IsCheckOnSelect = true,
  27. DataSourceUrl = Url.Content("~/Students/List"),
  28. IsPagination = true,
  29. IsShowRowNumbers = true,
  30. IsSingleSelect = false
  31. }
  32. };
  33. }
  34. @section scripts{
  35. <script src="~/Scripts/Business/ScoreManage/PersonalScore.js" type="text/javascript"></script>
  36. <script type="text/javascript">
  37. var nonSelect = "@DropdownList.SELECT_ALL";
  38. </script>
  39. }
  40. <style type="text/css">
  41. .Coursematerialtable
  42. {
  43. width: 100%;
  44. }
  45. .Coursematerialtable tr
  46. {
  47. min-height: 30px;
  48. border: 1px solid #D6D6D6;
  49. }
  50. .Coursematerialtable td
  51. {
  52. border: 1px solid #D6D6D6;
  53. }
  54. @* #StudentCoursematerialtable
  55. {
  56. width: 100%;
  57. }
  58. #StudentCoursematerialtable tr
  59. {
  60. min-height: 30px;
  61. border: 1px solid #D6D6D6;
  62. }
  63. #StudentCoursematerialtable td
  64. {
  65. border: 1px solid #D6D6D6;
  66. text-align: center;
  67. width: 16%;
  68. }*@
  69. </style>
  70. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  71. @Html.Position()
  72. <div class="p_SearchTitle">
  73. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  74. 查询条件
  75. </div>
  76. </div>
  77. <form id="formQuery" method="post" action="@Url.Content("~/PersonalScore/List")">
  78. <div class="search_keyword">
  79. <div class="search_input">
  80. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px; ">
  81. <ul style="min-width:0px;">
  82. <li class="sn" style="padding-left: 5px; ">学号:</li>
  83. <li class="sv">
  84. @Html.ComboGrid(cgop)<a class="easyui-linkbutton l-btn" onclick="reload();" href="javascript:void(0)" data-options="iconCls:'icon-search'">查询
  85. </a>
  86. </li>
  87. </ul>
  88. </div>
  89. <div id="Studenttable" style="float:left;margin-left: 10px; margin-top: 8px;"></div>
  90. <div style="float:right;margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  91. </div>
  92. </div>
  93. @*<div class="search_keyword">
  94. <div class="search_input">
  95. <ul>
  96. <li class="sn" style="padding-left: 5px;">学号:</li>
  97. <li class="sv">
  98. @Html.ComboGrid(cgop)
  99. </li>
  100. <li class="sn" style="padding-right: 10px; ">
  101. <a class="easyui-linkbutton l-btn" onclick="reload();" href="javascript:void(0)" data-options="iconCls:'icon-search'">查询
  102. </a>
  103. <a class="easyui-linkbutton l-btn" onclick="StudentScore_Report();" href="javascript:void(0)" data-options="iconCls:'icon-print'">存档成绩预览
  104. </a>
  105. </li>
  106. </ul>
  107. </div>
  108. </div>*@
  109. </form>
  110. <div class="search_list">
  111. <div id="StudentCoursematerialtable"></div>
  112. @*<div>
  113. <table cellpadding="0" cellspacing="0" id="StudentCoursematerialtable">
  114. </table>
  115. </div>*@
  116. <div id="search_list" style="width: 100%;overflow-x: scroll;
  117. scrollbar-highlight-color: #ffffff; scrollbar-3dlight-color: #70807d; scrollbar-shadow-color: #ffffff;
  118. scrollbar-darkshadow-color: #70807d; scrollbar-track-color: #ffffff; scrollbar-face-color: #cccccc"; overflow:visible">
  119. </div>
  120. </div>
  121. <div id="display_search_list" style="display: none;">
  122. <div class="p_title">
  123. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  124. 学生成绩明细</div>
  125. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Detail")</div>
  126. </div>
  127. <div class="search_list">
  128. @Html.Hidden("hid_SchoolyearID")
  129. @Html.Hidden("hid_CoursematerialID")
  130. @Html.Hidden("hid_UserID")
  131. @Html.Hidden("hid_StarttermID")
  132. @Html.Hidden("LoginID")
  133. @Html.DataGrid(new DataGridOptions
  134. {
  135. Columns = new List<DataGridColumn>()
  136. {
  137. new CheckBoxFieldColumn{ HeaderText="", FieldName="SubmitedScoreID" },
  138. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
  139. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.08},
  140. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  141. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.04 },
  142. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  143. new BoundFieldColumn { FieldName="CoursetypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05 },
  144. new BoundFieldColumn { FieldName="ExamsCategoryName", HeaderText="考试性质", Align=AlignStyle.Center, Width=0.04 },
  145. new BoundFieldColumn { FieldName="ExamsStateName", HeaderText="考试状态", Align=AlignStyle.Center, Width=0.04 },
  146. new BoundFieldColumn { FieldName="Pingshi", HeaderText=@EMIS.Utility.RSL.Get("Peacetime"), Align=AlignStyle.Center , Width=0.04},
  147. new BoundFieldColumn { FieldName="Jishu", HeaderText=@EMIS.Utility.RSL.Get("Technique"), Align=AlignStyle.Center, Width=0.04 },
  148. new BoundFieldColumn { FieldName="Lilun", HeaderText=@EMIS.Utility.RSL.Get("Theoretical"), Align=AlignStyle.Center, Width=0.04 },
  149. new BoundFieldColumn { FieldName="TotalScoreStr", HeaderText="总成绩", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
  150. new BoundFieldColumn { FieldName="ScoreCredit", HeaderText="学分", Align=AlignStyle.Center, Width=0.02, CustomFormatFun="SetRedColumn" },
  151. new BoundFieldColumn { FieldName="CreateTime", HeaderText="录入时间", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.OnlyYearMonthDay, CustomFormatFun="SetRedColumn" },
  152. new BoundFieldColumn { FieldName="OperaUser", HeaderText="录入人", Align=AlignStyle.Center, Width=0.04 },
  153. new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="学年学期", Align=AlignStyle.Center, IsHidden = true },
  154. new BoundFieldColumn { FieldName="CoursematerialID", HeaderText="课程ID", Align=AlignStyle.Center, IsHidden = true },
  155. new BoundFieldColumn { FieldName="StarttermID", HeaderText="开课学期", Align=AlignStyle.Center, IsHidden = true },
  156. new BoundFieldColumn { FieldName="UserID", HeaderText="学生ID", Align=AlignStyle.Center, IsHidden = true },
  157. new BoundFieldColumn { FieldName="StudentScoreRemark", HeaderText="备注", Align=AlignStyle.Center, Width=0.02 }
  158. },
  159. IsCheckOnSelect = true,
  160. DataSourceUrl = Url.Content("~/CourseGrade/GetSubmitedScoreList"),
  161. ID = "dgCourseScheduleSettingList",
  162. IsPagination = true,
  163. IsShowRowNumbers = true,
  164. IsSingleSelect = false,
  165. IsAutoLoad = false
  166. })
  167. </div>
  168. </div>
  169. </div>