123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- @model EMIS.ViewModel.Students.StudentGradView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- decimal? ScoreCredit=0;
- var CurseGrade = (IList<EMIS.ViewModel.Students.CourseGradeView>)ViewBag.CurseGrade;
- var grade = @Model.AverageGrade;
- }
- <style type="text/css">
- .Coursematerialtable
- {
- width: 100%;
- }
-
- .Coursematerialtable tr
- {
- min-height: 30px;
- border: 1px solid #D6D6D6;
- }
-
- .Coursematerialtable td
- {
- border: 1px solid #D6D6D6;
- }
- </style>
- @section scripts{
- <script src="~/Scripts/Business/ScoreManage/GTViewGarde.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- reload();
- })
- function LoadScore(CoursematerialID, StartTermID, UserID) {
- $("#display_search_list").css('display', 'block');
- $("#CoursematerialID").val(CoursematerialID);
- $("#StarTermID").val(StartTermID);
- $("#UserID").val(UserID);
- $("#dgCourseScheduleSettingList").cmsXDataTable("load", { CoursematerialID: CoursematerialID, StartTermID: StartTermID, UserID: UserID });
- }
- //Excel导出
- function CourseGrade_Export() {
- $("#formQuery").submit();
- }
- function StudentScore_Report() {
- var redirectTo = "/CourseGrade/StudentScoreReport?LoginID=" + $("#LoginID").val();
- $.popupTopWindow('学生成绩表', redirectTo, 1100, 550, null, null);
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative">
- <form id="formQuery" method="post" action="@Url.Content("~/CourseGrade/Excel")">
- @Html.Hidden("CoursematerialID")
- @Html.Hidden("StarTermID")
- @Html.Hidden("UserID")
- </form>
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- <div class="">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- @ViewBag.Path
- </div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.UserID)
- @Html.HiddenFor(x => x.LoginID)
- <div id="Studenttable" ></div>
- <div id="StudentCoursematerialtable"></div>
- <div id="search_list" style="width: 100%;overflow-x: scroll;
- scrollbar-highlight-color: #ffffff; scrollbar-3dlight-color: #70807d; scrollbar-shadow-color: #ffffff;
- scrollbar-darkshadow-color: #70807d; scrollbar-track-color: #ffffff; scrollbar-face-color: #cccccc"; overflow:visible">
-
- </div>
- <div id="display_search_list" style="display: none;">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 个人成绩明细</div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="SubmitedScoreID" },
- new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.08},
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="CoursetypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05 },
- new BoundFieldColumn { FieldName="ExamsCategoryName", HeaderText="考试性质", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="ExamsStateName", HeaderText="考试状态", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="Pingshi", HeaderText=@EMIS.Utility.RSL.Get("Peacetime"), Align=AlignStyle.Center , Width=0.04},
- new BoundFieldColumn { FieldName="Jishu", HeaderText=@EMIS.Utility.RSL.Get("Technique"), Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="Lilun", HeaderText=@EMIS.Utility.RSL.Get("Theoretical"), Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="TotalScoreStr", HeaderText="总成绩", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="ScoreCredit", HeaderText="学分", Align=AlignStyle.Center, Width=0.02, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="CreateTime", HeaderText="录入时间", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.OnlyYearMonthDay, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="OperaUser", HeaderText="录入人", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="StudentScoreRemark", HeaderText="备注", Align=AlignStyle.Center, Width=0.02 }
- },
- IsCheckOnSelect = false,
- DataSourceUrl = Url.Content("~/CourseGrade/GetSubmitedScoreList"),
- ID = "dgCourseScheduleSettingList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
- }
- </div>
|