Edit.cshtml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. @model EMIS.ViewModel.ScoreManage.LevelScoreView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions ExaminationSubject = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "ExaminationSubjectID",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. //new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Width=0.1, Align=AlignStyle.Center },
  15. //new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Width=0.1, Align=AlignStyle.Center },
  16. //new BoundFieldColumn { FieldName="ExaminationFormName", HeaderText="考试类别", Width=0.1, Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="Name", HeaderText="科目名称", Width=0.1, Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/ExaminationSubject/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. ComboGridOptions Student = new ComboGridOptions
  27. {
  28. TextField = "LoginID",
  29. ValueField = "UserID",
  30. GridOptions = new DataGridOptions
  31. {
  32. Columns = new List<DataGridColumn>()
  33. {
  34. new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Width=0.1, Align=AlignStyle.Center },
  35. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.1, Align=AlignStyle.Center }
  36. },
  37. IsCheckOnSelect = true,
  38. DataSourceUrl = Url.Content("~/Students/List"),
  39. IsPagination = true,
  40. IsShowRowNumbers = true,
  41. IsSingleSelect = false
  42. }
  43. };
  44. }
  45. @section scripts{
  46. <script src="~/Scripts/Business/ScoreManage/LevelScoreEdit.js" type="text/javascript"></script>
  47. }
  48. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  49. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  50. {
  51. <div class="p_title">
  52. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  53. </div>
  54. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  55. </div>
  56. <div class="search_list">
  57. @Html.HiddenFor(x => x.LevelScoreID)
  58. <table cellpadding="0" cellspacing="0" id="levelSettingTable">
  59. <tr>
  60. <td>@Html.LabelFor(x => x.ExaminationSubjectID):
  61. </td>
  62. <td>
  63. @Html.ComboGridFor(x => x.ExaminationSubjectID, ExaminationSubject)
  64. </td>
  65. <td>@Html.LabelFor(x => x.SchoolyearID):
  66. </td>
  67. <td>@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "SchoolyearDropdown", ID = "SchoolyearDropdown", OnSelect = "", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnLoadSuccess = "" }, new Dictionary<string, string> { })
  68. </td>
  69. </tr>
  70. <tr>
  71. <td>@Html.LabelFor(x => x.LoginID):
  72. </td>
  73. <td>@Html.ComboGridFor(x => x.UserID, Student)
  74. @*@Html.TextBoxFor(x => x.StudentCardNo, new Dictionary<string, object> { })*@
  75. </td>
  76. <td>@Html.LabelFor(x => x.ScoreNo):
  77. </td>
  78. <td>@Html.TextBoxFor(x => x.ScoreNo, new TextBoxOptions { TextBoxType = TextBoxType.Normal })
  79. </td>
  80. </tr>
  81. <tr>
  82. <td>@Html.LabelFor(x => x.TotalScore):
  83. </td>
  84. <td>@Html.TextBoxFor(x => x.TotalScore, new TextBoxOptions { TextBoxType = TextBoxType.Normal })
  85. </td>
  86. <td>@Html.Label("")
  87. </td>
  88. <td>@Html.Label("")
  89. </td>
  90. </tr>
  91. <tr>
  92. <td>@Html.LabelFor(x => x.ExaminationDate):
  93. </td>
  94. <td>@Html.TextBoxFor(x => x.ExaminationDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  95. </td>
  96. <td>@Html.LabelFor(x => x.ValidDate):
  97. </td>
  98. <td>@Html.TextBoxFor(x => x.ValidDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  99. </td>
  100. </tr>
  101. <tr>
  102. <td>@Html.LabelFor(x => x.Remark):
  103. </td>
  104. <td colspan="3">@Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width:460px;" } })
  105. </td>
  106. </tr>
  107. </table>
  108. </div>
  109. }
  110. </div>