GTViewGrade.cshtml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. @model EMIS.ViewModel.Students.StudentGradView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. decimal? ScoreCredit=0;
  7. var CurseGrade = (IList<EMIS.ViewModel.Students.CourseGradeView>)ViewBag.CurseGrade;
  8. var grade = @Model.AverageGrade;
  9. }
  10. <style type="text/css">
  11. .Coursematerialtable
  12. {
  13. width: 100%;
  14. }
  15. .Coursematerialtable tr
  16. {
  17. min-height: 30px;
  18. border: 1px solid #D6D6D6;
  19. }
  20. .Coursematerialtable td
  21. {
  22. border: 1px solid #D6D6D6;
  23. }
  24. </style>
  25. @section scripts{
  26. <script src="~/Scripts/Business/ScoreManage/GTViewGarde.js" type="text/javascript"></script>
  27. <script type="text/javascript">
  28. $(function () {
  29. mnu = $.SystemGeneral.getUrlParam("MNU");
  30. reload();
  31. })
  32. function LoadScore(CoursematerialID, StartTermID, UserID) {
  33. $("#display_search_list").css('display', 'block');
  34. $("#CoursematerialID").val(CoursematerialID);
  35. $("#StarTermID").val(StartTermID);
  36. $("#UserID").val(UserID);
  37. $("#dgCourseScheduleSettingList").cmsXDataTable("load", { CoursematerialID: CoursematerialID, StartTermID: StartTermID, UserID: UserID });
  38. }
  39. //Excel导出
  40. function CourseGrade_Export() {
  41. $("#formQuery").submit();
  42. }
  43. function StudentScore_Report() {
  44. var redirectTo = "/CourseGrade/StudentScoreReport?LoginID=" + $("#LoginID").val();
  45. $.popupTopWindow('学生成绩表', redirectTo, 1100, 550, null, null);
  46. }
  47. </script>
  48. }
  49. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative">
  50. <form id="formQuery" method="post" action="@Url.Content("~/CourseGrade/Excel")">
  51. @Html.Hidden("CoursematerialID")
  52. @Html.Hidden("StarTermID")
  53. @Html.Hidden("UserID")
  54. </form>
  55. @using (Ajax.BeginForm(new AjaxOptions
  56. {
  57. OnSuccess = "EMISFunction.FormSuccess",
  58. OnBegin = "EMISFunction.FormSubmit",
  59. OnComplete = "EMISFunction.FormComplete"
  60. }))
  61. {
  62. <div class="">
  63. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  64. @ViewBag.Path
  65. </div>
  66. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  67. </div>
  68. <div class="search_list">
  69. @Html.HiddenFor(x => x.UserID)
  70. @Html.HiddenFor(x => x.LoginID)
  71. <div id="Studenttable" ></div>
  72. <div id="StudentCoursematerialtable"></div>
  73. <div id="search_list" style="width: 100%;overflow-x: scroll;
  74. scrollbar-highlight-color: #ffffff; scrollbar-3dlight-color: #70807d; scrollbar-shadow-color: #ffffff;
  75. scrollbar-darkshadow-color: #70807d; scrollbar-track-color: #ffffff; scrollbar-face-color: #cccccc"; overflow:visible">
  76. </div>
  77. <div id="display_search_list" style="display: none;">
  78. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  79. 个人成绩明细</div>
  80. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  81. @Html.DataGrid(new DataGridOptions
  82. {
  83. Columns = new List<DataGridColumn>()
  84. {
  85. new CheckBoxFieldColumn{ HeaderText="", FieldName="SubmitedScoreID" },
  86. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
  87. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.08},
  88. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  89. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.04 },
  90. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  91. new BoundFieldColumn { FieldName="CoursetypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05 },
  92. new BoundFieldColumn { FieldName="ExamsCategoryName", HeaderText="考试性质", Align=AlignStyle.Center, Width=0.04 },
  93. new BoundFieldColumn { FieldName="ExamsStateName", HeaderText="考试状态", Align=AlignStyle.Center, Width=0.04 },
  94. new BoundFieldColumn { FieldName="Pingshi", HeaderText=@EMIS.Utility.RSL.Get("Peacetime"), Align=AlignStyle.Center , Width=0.04},
  95. new BoundFieldColumn { FieldName="Jishu", HeaderText=@EMIS.Utility.RSL.Get("Technique"), Align=AlignStyle.Center, Width=0.04 },
  96. new BoundFieldColumn { FieldName="Lilun", HeaderText=@EMIS.Utility.RSL.Get("Theoretical"), Align=AlignStyle.Center, Width=0.04 },
  97. new BoundFieldColumn { FieldName="TotalScoreStr", HeaderText="总成绩", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
  98. new BoundFieldColumn { FieldName="ScoreCredit", HeaderText="学分", Align=AlignStyle.Center, Width=0.02, CustomFormatFun="SetRedColumn" },
  99. new BoundFieldColumn { FieldName="CreateTime", HeaderText="录入时间", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.OnlyYearMonthDay, CustomFormatFun="SetRedColumn" },
  100. new BoundFieldColumn { FieldName="OperaUser", HeaderText="录入人", Align=AlignStyle.Center, Width=0.04 },
  101. new BoundFieldColumn { FieldName="StudentScoreRemark", HeaderText="备注", Align=AlignStyle.Center, Width=0.02 }
  102. },
  103. IsCheckOnSelect = false,
  104. DataSourceUrl = Url.Content("~/CourseGrade/GetSubmitedScoreList"),
  105. ID = "dgCourseScheduleSettingList",
  106. IsPagination = true,
  107. IsShowRowNumbers = true,
  108. IsSingleSelect = false
  109. })
  110. </div>
  111. </div>
  112. }
  113. </div>