NewList.cshtml 8.4 KB

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