Edit.cshtml 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. @model EMIS.ViewModel.ScoreManage.ScoreEditView
  2. @using Bowin.Common.JSON;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.Entities;
  5. @using EMIS.Web.Controls;
  6. @using EMIS.Web.Controls.Score;
  7. @{
  8. ViewBag.Title = "成绩录入信息";
  9. }
  10. @section scripts{
  11. <script src="~/Scripts/Business/ScoreManage/ScoreEdit.js" type="text/javascript"></script>
  12. <script type="text/javascript">
  13. var unusableStatusID = @((int)EMIS.ViewModel.SYS_STATUS.UNUSABLE);
  14. var credit = @Model.Credit;
  15. var normalExamsStateID = @Model.NormalExamsID;
  16. var suspensionStateID = @Model.ExaminationSuspensonID;
  17. var exemptionStateID = @(Model.ExaminationExemptionID ?? 0);
  18. var misconductStateIDList = eval("(@Model.MisconductIDList.ToJson())");
  19. var fixedScoreTypeID = @(Model.FixScoreTypeID.HasValue ? Model.FixScoreTypeID.ToString() : "null");
  20. var scoreDigitCount = @Model.ScoreDigitCount;
  21. var ApprovalStatus =@Model.ApprovalStatus;
  22. </script>
  23. }
  24. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "formSuccessReloadNoClose", OnBegin = "FormSubmit", OnComplete = "FormComplete" }))
  25. {
  26. @Html.HiddenFor(x => Model.FinalExaminationID)
  27. @Html.Hidden("CustomScoreFormula", Model.CustomScoreFormula.ToJson())
  28. @Html.Hidden("ExamsStateSetting", Model.ExamsStateSetting.ToJson())
  29. @Html.Hidden("ResultType", Model.ResultType.ToJson())
  30. <div class="p_title">
  31. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  32. 成绩录入信息</div>
  33. @if ((Request["Isdisplay"] == "" || Request["Isdisplay"] == null) && (Model.ApprovalStatus == 1 || Model.ApprovalStatus == 3 || Model.ApprovalStatus == 5))
  34. {
  35. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  36. }
  37. @if (Model.ApprovalStatus == 2 || Model.ApprovalStatus == 4||Model.ApprovalStatus==6)
  38. {
  39. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("EditReport")</div>
  40. }
  41. </div>
  42. <div class="search_list">
  43. <table cellpadding="0" cellspacing="0" id="buildingstable">
  44. <tr>
  45. <td>@Html.LabelFor(x => x.SchoolyearID):</td>
  46. <td>@Html.TextBoxFor(x => x.SchoolyearCode, new TextBoxOptions { IsEnabled = false })</td>
  47. <td>@Html.LabelFor(x => x.CourseName):</td>
  48. <td>@Html.TextBoxFor(x => x.CourseName, new TextBoxOptions { IsEnabled = false })</td>
  49. </tr>
  50. <tr>
  51. <td colspan="4" style=" text-align:left; font-weight:bold; font-size:12px; height:20px;">
  52. <label>成绩公式设置</label>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td colspan="4">
  57. <table cellpadding="0" cellspacing="1" style="width: 100%;">
  58. <tr>
  59. <td style="width: 23%; text-align:center; font-weight:bold; height:20px;"><label>考试性质</label></td>
  60. <td style="width: 29%; text-align:center; font-weight:bold; height:20px;"><label>总成绩公式</label></td>
  61. <td style="width: 29%; text-align:center; font-weight:bold; height:20px;"><label>学分公式</label></td>
  62. <td style="width: 29%; text-align:center; font-weight:bold; height:20px;"><label>绩点公式</label></td>
  63. </tr>
  64. <tr>
  65. <td style=" text-align:center;">@Model.ExamsCategoryName</td>
  66. <td style="text-align:left;">@Html.ScoreFormularListFor(x => x.ScoreFormulaID, x => x.IsTotalFormula, new DropdownListOptions { Width = 230 })</td>
  67. <td style="text-align:left;">@Html.CreditFormularListFor(x => x.CreditFormulaID, x => x.IsCreditFormula, new DropdownListOptions { Width = 230 })</td>
  68. <td style="text-align:left;">@Html.GradePointFormularListFor(x => x.GradePointFormulaID, x => x.IsGradePointFormula, new DropdownListOptions { Width = 230 })</td>
  69. </tr>
  70. </table>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td colspan="4">
  75. @Html.ScoreEditGrid("dgScoreDetailList", (Request["Isdisplay"] == "" || Request["Isdisplay"] == null), false, Model.FinalExaminationID.Value)
  76. </td>
  77. </tr>
  78. <tr>
  79. <td><label>总评语:</label></td>
  80. <td colspan="3">@Html.TextAreaFor(x => x.Comment, new Dictionary<string, object> { { "style", "width:90%; height:12px;" } })</td>
  81. </tr>
  82. </table>
  83. </div>
  84. <div id="autoSave" class="window-mask" style="width: 100%; height: 100%; z-index: 999;
  85. background-color: White; filter: alpha(opacity=100); -moz-opacity: 0.5; opacity: 0.5;
  86. display: none;">
  87. <span style="font-size: 12px; top: 48%; left: 48%; position: absolute;">自动保存中……<img src="~/Content/images/loading.gif" /></span>
  88. </div>
  89. }