Edit.cshtml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. @model EMIS.ViewModel.ScoreManage.ExaminationSuspensionView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions cgopCourse = new ComboGridOptions
  7. {
  8. TextField = "CourseName",
  9. ValueField = "CoursematerialID",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  15. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
  16. },
  17. IsCheckOnSelect = true,
  18. DataSourceUrl = Url.Content("~/ExaminationSuspension/GetCoursematerial"),
  19. IsPagination = true,
  20. IsShowRowNumbers = true,
  21. IsSingleSelect = false
  22. }
  23. };
  24. }
  25. @section scripts{
  26. <script type="text/javascript">
  27. function ExaminationSuspension_Save() {
  28. $(document.forms[0]).submit();
  29. }
  30. </script>
  31. }
  32. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  33. @using (Ajax.BeginForm(new AjaxOptions
  34. {
  35. OnSuccess = "EMISFunction.FormSuccess",
  36. OnBegin = "EMISFunction.FormSubmit",
  37. OnComplete = "EMISFunction.FormComplete"
  38. }))
  39. {
  40. <div class="p_title">
  41. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  42. 缓考申请</div>
  43. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  44. </div>
  45. <div class="search_list">
  46. @Html.HiddenFor(x => x.ExaminationSuspensionID)
  47. <table cellpadding="0" cellspacing="0">
  48. <tr>
  49. <td>@Html.LabelFor(x => x.CoursematerialID):
  50. </td>
  51. <td>@Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
  52. </td>
  53. <td>@Html.LabelFor(x => x.ExamsCategoryID):
  54. </td>
  55. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExamsCategory, x => x.ExamsCategoryID,
  56. new DropdownListOptions { IsEnabled = false })
  57. </td>
  58. </tr>
  59. <tr>
  60. <td>@Html.LabelFor(x => x.Reason):
  61. </td>
  62. <td colspan="3">@Html.TextAreaFor(x => x.Reason, new Dictionary<string, object> { { "style", "width: 98%;" } })
  63. </td>
  64. </tr>
  65. </table>
  66. </div>
  67. }
  68. </div>