Edit.cshtml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. @model EMIS.ViewModel.ExamManage.LevelSettingView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. var url = ViewBag.Url;
  7. ComboGridOptions ExaminationType = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "ExaminationTypeID",
  11. ID = "ExaminationTypeID",
  12. Name = "ExaminationTypeID",
  13. OnSelect = "queryProject",
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. new BoundFieldColumn { FieldName="Name", HeaderText="类型名称", Width=0.1, Align=AlignStyle.Center }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/ExaminationType/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. ComboGridOptions ExaminationSubject = new ComboGridOptions
  28. {
  29. TextField = "Name",
  30. ValueField = "ExaminationProjectID",
  31. ID = "ExaminationProjectID",
  32. Name = "ExaminationProjectID",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Width=0.1, Align=AlignStyle.Center }
  38. },
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetProjectListViewGrid"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false
  44. }
  45. };
  46. }
  47. @section scripts{
  48. <script src="~/Scripts/Business/ExamManage/LevelSettingEdit.js"></script>
  49. <script type="text/javascript">
  50. var nonSelect = "@DropdownList.SELECT_ALL";
  51. </script>
  52. }
  53. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  54. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  55. {
  56. <div class="p_title">
  57. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  58. </div>
  59. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  60. @if (Request["type"] != "detail")
  61. {
  62. @Html.ContextMenuBar("Edit")
  63. }
  64. </div>
  65. </div>
  66. <div class="search_list">
  67. @Html.HiddenFor(x => x.LevelSettingID)
  68. <table cellpadding="0" cellspacing="0" id="levelSettingTable">
  69. <tr>
  70. <td>@Html.LabelFor(x => x.ExaminationTypeName):
  71. </td>
  72. <td>@Html.ComboGridFor(x => x.ExaminationTypeID, ExaminationType)
  73. </td>
  74. <td>@Html.LabelFor(x => x.ExaminationProjectName):
  75. </td>
  76. <td>@Html.ComboGridFor(x => x.ExaminationProjectID, ExaminationSubject)
  77. </td>
  78. </tr>
  79. <tr>
  80. <td>@Html.LabelFor(x => x.LevelName):
  81. </td>
  82. <td>@Html.TextBoxFor(x => x.LevelName, new Dictionary<string, object> { })
  83. </td>
  84. <td>@Html.LabelFor(x => x.IsPassed):
  85. </td>
  86. <td>@Html.CheckBoxFor(x => x.IsPassedEdit)
  87. </td>
  88. </tr>
  89. <tr>
  90. <td>
  91. @Html.LabelFor(x => x.IsPassedEdit):
  92. </td>
  93. <td colspan="3">
  94. @Html.CheckBoxFor(x => x.IsPassLineEdit)
  95. </td>
  96. </tr>
  97. <tr>
  98. <td>
  99. <label>
  100. 科目:
  101. </label>
  102. </td>
  103. <td colspan="3">
  104. @if (Request["type"] != "detail")
  105. {
  106. @Html.ContextMenuBar("Edit-SubjectGrid")
  107. }
  108. @Html.DataGrid(new DataGridOptions
  109. {
  110. Columns = new List<DataGridColumn>()
  111. {
  112. new CheckBoxFieldColumn { FieldName="ExaminationSubjectID" },
  113. new BoundFieldColumn { FieldName="ExaminationSubjectName", HeaderText="科目考核项", Align=AlignStyle.Center },
  114. new TextBoxColumn { FieldName="PassScore", HeaderText="分数", Align=AlignStyle.Center },
  115. },
  116. IsCheckOnSelect = true,
  117. DataSourceUrl = Url.Content("~/LevelSetting/GetLevelSettingSubjectList?levelSettingID=" + Model.LevelSettingID),
  118. IsPostBack = true,
  119. ID = "dgLevelSettingSubjectList",
  120. IsPagination = true,
  121. IsShowRowNumbers = true,
  122. IsSingleSelect = false
  123. })
  124. </td>
  125. </tr>
  126. </table>
  127. </div>
  128. }
  129. </div>