1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- @model EMIS.ViewModel.ScoreManage.ScoreEditView
- @using Bowin.Common.JSON;
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Entities;
- @using EMIS.Web.Controls;
- @using EMIS.Web.Controls.Score;
- @{
- ViewBag.Title = "成绩录入信息";
- }
- @section scripts{
- <script src="~/Scripts/Business/ScoreManage/ScoreEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- var unusableStatusID = @((int)EMIS.ViewModel.SYS_STATUS.UNUSABLE);
- var credit = @Model.Credit;
- var normalExamsStateID = @Model.NormalExamsID;
- var suspensionStateID = @Model.ExaminationSuspensonID;
- var exemptionStateID = @(Model.ExaminationExemptionID ?? 0);
- var misconductStateIDList = eval("(@Model.MisconductIDList.ToJson())");
- var fixedScoreTypeID = @(Model.FixScoreTypeID.HasValue ? Model.FixScoreTypeID.ToString() : "null");
- var scoreDigitCount = @Model.ScoreDigitCount;
- var ApprovalStatus =@Model.ApprovalStatus;
- </script>
- }
- @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "formSuccessReloadNoClose", OnBegin = "FormSubmit", OnComplete = "FormComplete" }))
- {
- @Html.HiddenFor(x => Model.FinalExaminationID)
- @Html.Hidden("CustomScoreFormula", Model.CustomScoreFormula.ToJson())
- @Html.Hidden("ExamsStateSetting", Model.ExamsStateSetting.ToJson())
- @Html.Hidden("ResultType", Model.ResultType.ToJson())
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 成绩录入信息</div>
- @if ((Request["Isdisplay"] == "" || Request["Isdisplay"] == null) && (Model.ApprovalStatus == 1 || Model.ApprovalStatus == 3 || Model.ApprovalStatus == 5))
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- }
- @if (Model.ApprovalStatus == 2 || Model.ApprovalStatus == 4||Model.ApprovalStatus==6)
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("EditReport")</div>
- }
- </div>
- <div class="search_list">
- <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:12px; height:20px;">
- <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", (Request["Isdisplay"] == "" || Request["Isdisplay"] == null), false, 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>
- <div id="autoSave" class="window-mask" style="width: 100%; height: 100%; z-index: 999;
- background-color: White; filter: alpha(opacity=100); -moz-opacity: 0.5; opacity: 0.5;
- display: none;">
- <span style="font-size: 12px; top: 48%; left: 48%; position: absolute;">自动保存中……<img src="~/Content/images/loading.gif" /></span>
- </div>
- }
|