Edit.cshtml 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. @model EMIS.ViewModel.ExaminationBatchView
  2. @using EMIS.Web.Controls;
  3. @using EMIS.Entities;
  4. @using Bowin.Web.Controls.Mvc;
  5. @{
  6. ViewBag.Title = "Edit";
  7. ComboGridOptions cgopExamType = new ComboGridOptions
  8. {
  9. TextField = "Code",
  10. ValueField = "SchoolYearID",
  11. GridOptions = new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. new BoundFieldColumn { FieldName="Code", HeaderText="学年学期", Align=AlignStyle.Center ,Width=0.2},
  16. new BoundFieldColumn { FieldName="Years", HeaderText="学年", Align=AlignStyle.Center ,Width=0.2},
  17. new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", Align=AlignStyle.Center ,Width=0.2},
  18. },
  19. PageSize = 5,
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/SchoolYear/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. }
  28. @section scripts{
  29. <script src="~/Scripts/Business/ExamManage/ExaminationBatchList.js" type="text/javascript"></script>
  30. <script type="text/javascript">
  31. </script>
  32. }
  33. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  34. @using (Ajax.BeginForm(new AjaxOptions
  35. {
  36. OnSuccess = "EMISFunction.FormSuccess",
  37. OnBegin = "EMISFunction.FormSubmit",
  38. OnComplete = "EMISFunction.FormComplete"
  39. }))
  40. {
  41. <div class="p_title">
  42. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  43. </div>
  44. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  45. @if (Request.QueryString["Type"] != "1")//控制列表进入、屏蔽按钮权限
  46. {
  47. @Html.ContextMenuBar("Edit")
  48. }
  49. </div>
  50. </div>
  51. <div class="search_list">
  52. @Html.HiddenFor(x => x.ExaminationBatchID)
  53. <table cellpadding="0" cellspacing="0" id="Campustable">
  54. <tr>
  55. <td style="width: 150px">
  56. @Html.LabelFor(x => x.SchoolyearID):
  57. </td>
  58. <td colspan="3">
  59. @Html.ComboGridFor(x => x.SchoolyearID, cgopExamType)
  60. </td>
  61. </tr>
  62. <tr>
  63. <td style="width: 150px">
  64. @Html.LabelFor(x => x.Name):
  65. </td>
  66. <td colspan="3">
  67. @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = true }, new Dictionary<string, string> { { "style", "width:90%;" } })
  68. </td>
  69. </tr>
  70. <tr>
  71. <td>
  72. @Html.LabelFor(x => x.StartDate):
  73. </td>
  74. <td>
  75. @Html.TextBoxFor(x => x.StartDate, new TextBoxOptions { TextBoxType = TextBoxType.Date })
  76. </td>
  77. <td style="width: 150px">
  78. @Html.LabelFor(x => x.EndDate):
  79. </td>
  80. <td>
  81. @Html.TextBoxFor(x => x.EndDate, new TextBoxOptions { TextBoxType = TextBoxType.Date })
  82. </td>
  83. </tr>
  84. <tr>
  85. <td>
  86. @Html.LabelFor(x => x.Remark):
  87. </td>
  88. <td colspan="3">
  89. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 50px" } })
  90. </td>
  91. </tr>
  92. </table>
  93. </div>
  94. }
  95. </div>