123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- @model EMIS.ViewModel.ScoreManage.ScoreEditView
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Entities;
- @using EMIS.Web.Controls;
- @using EMIS.Web.Controls.Score;
- @{
- ViewBag.Title = "成绩录入信息";
- }
- @section scripts{
- <script type="text/javascript">
- function LoginIDColor(index, row, value) {
- if (row.IsDifferentDynamic == true) {
- return " <span style=\"color:red;\">" + value + "</span>";
- }
- else {
- return value
- }
- }
- function UserNameColor(index, row, value) {
- if (row.IsDifferentDynamic == true) {
- return " <span style=\"color:red;\">" + value + "</span>";
- }
- else {
- return value
- }
- }
- function ExamsCategoryNameColor(index, row, value) {
- if (row.IsDifferentDynamic == true) {
- return " <span style=\"color:red;\">" + value + "</span>";
- }
- else {
- return value
- }
- }
- function TotalScoreColor(index, row, value) {
- if (row.IsDifferentDynamic == true) {
- return " <span style=\"color:red;\">" + value + "</span>";
- }
- else {
- return value
- }
- }
- function CreditColor(index, row, value) {
- if (row.IsDifferentDynamic == true) {
- return " <span style=\"color:red;\">" + value + "</span>";
- }
- else {
- return value
- }
- }
- function GradePointColor(index, row, value) {
- if (row.IsDifferentDynamic == true) {
- return " <span style=\"color:red;\">" + value + "</span>";
- }
- else {
- return value
- }
- }
- $.parser.onComplete = function () {
- var tableContainer = $("#dgScoreDetailList").find(".xDataTable").parent();
- var maxHeight = parseInt(tableContainer.css("maxHeight").replace("px", ""));
- tableContainer.css("maxHeight", maxHeight - $("#Comment").parent().outerHeight() - 20 + "px");
- };
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgScoreDetailList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.UserID);
- });
- return d;
- }
- function Score_Save() {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择您要重新录入成绩的学生名单。");
- return;
- }
- // $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/ScoreAudit/Rebut', { UserID: d.join(","), finalExaminationID: "@ViewBag.FinalExaminationID" }, function (data) {
- // if (data.IsSuccess) {
- // $("#UserID").val(d);
- // $(document.forms[0]).submit();
- // } else {
- // $.messager.alert("系统提示", data.Message);
- // }
- // });
- $("#UserID").val(d);
- $(document.forms[0]).submit();
- }
- </script>
- }
- @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
- {
- <div class="p_title">
- <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("Rebut")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.FinalExaminationID)
- @Html.HiddenFor(x => x.UserID)
- <table cellpadding="0" cellspacing="0" id="buildingstable">
- <tr>
- <td>@Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td>@Html.TextBoxFor(x => x.SchoolyearCode, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x => x.CourseName):
- </td>
- <td>@Html.TextBoxFor(x => x.CourseName, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td colspan="4" style="text-align: left; font-weight: bold; font-size: 14px; height: 25px;">
- <label>
- 成绩公式设置</label>
- </td>
- </tr>
- <tr>
- <td colspan="4">
- <table cellpadding="0" cellspacing="1" style="width: 100%;">
- <tr>
- <td style="width: 23%; text-align:center; font-weight:bold; height:20px;"><label>考试性质</label></td>
- <td style="width: 29%; text-align:center; font-weight:bold; height:20px;"><label>总成绩公式</label></td>
- <td style="width: 29%; text-align:center; font-weight:bold; height:20px;"><label>学分公式</label></td>
- <td style="width: 29%; text-align:center; font-weight:bold; height:20px;"><label>绩点公式</label></td>
- </tr>
- <tr>
- <td style=" text-align:center;">@Model.ExamsCategoryName</td>
- <td style="text-align:left;">@Html.ScoreFormularListFor(x => x.ScoreFormulaID, x => x.IsTotalFormula, new DropdownListOptions { Width = 230 })</td>
- <td style="text-align:left;">@Html.CreditFormularListFor(x => x.CreditFormulaID, x => x.IsCreditFormula, new DropdownListOptions { Width = 230 })</td>
- <td style="text-align:left;">@Html.GradePointFormularListFor(x => x.GradePointFormulaID, x => x.IsGradePointFormula, new DropdownListOptions { Width = 230 })</td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="4">
- @Html.ScoreEditGrid("dgScoreDetailList", false, true, Model.FinalExaminationID.Value)
- </td>
- </tr>
- <tr>
- <td>
- <label>
- 总评语:</label>
- </td>
- <td colspan="3">@Html.TextAreaFor(x => x.Comment, new Dictionary<string, object> { { "style", "width:90%; height:12px;" } })
- </td>
- </tr>
- </table>
- </div>
- }
|