Edit.cshtml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. @model EMIS.ViewModel.SelectCourse.SelectCourseOpenControlSettingView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. }
  7. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  8. @using (Ajax.BeginForm(new AjaxOptions
  9. {
  10. OnSuccess = "EMISFunction.FormSuccess",
  11. OnBegin = "EMISFunction.FormSubmit",
  12. OnComplete = "EMISFunction.FormComplete"
  13. }))
  14. {
  15. <div class="p_title">
  16. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  17. 类型设定信息</div>
  18. @if (Request["isView"] != "1")
  19. {
  20. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  21. }
  22. </div>
  23. <div class="search_list popupWindowContent">
  24. <table cellpadding="0" cellspacing="0">
  25. <tr>
  26. <td width="15%">@Html.LabelFor(x => x.SchoolyearID):
  27. </td>
  28. <td width="35%">@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/DropDownAfterCurrent") })
  29. </td>
  30. <td width="15%">@Html.LabelFor(x => x.GrademajorID):
  31. </td>
  32. <td width="35%">@Html.ComboGridFor(x => x.GrademajorID, new ComboGridOptions
  33. {
  34. TextField = "Name",
  35. ValueField = "GrademajorID",
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new CheckBoxFieldColumn{ HeaderText="", FieldName="GrademajorID" },
  41. new BoundFieldColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center },
  42. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center }
  43. },
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/Grademajor/List"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false
  49. }
  50. })
  51. </td>
  52. </tr>
  53. <tr>
  54. <td>@Html.LabelFor(x => x.StartTime):
  55. </td>
  56. <td>@Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
  57. </td>
  58. <td>@Html.LabelFor(x => x.EndTime):
  59. </td>
  60. <td>@Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
  61. </td>
  62. </tr>
  63. <tr>
  64. <td>@Html.LabelFor(x => x.MaxSelectCount):
  65. </td>
  66. <td>@(Html.TextBoxFor(x => x.MaxSelectCount, new TextBoxOptions { TextBoxType = TextBoxType.Normal }))门
  67. </td>
  68. <td>@Html.LabelFor(x => x.MinSelectCount):
  69. </td>
  70. <td>@(Html.TextBoxFor(x => x.MinSelectCount, new TextBoxOptions { TextBoxType = TextBoxType.Normal }))门
  71. </td>
  72. </tr>
  73. <tr>
  74. <td>@Html.LabelFor(x => x.MaxCredit):
  75. </td>
  76. <td>@(Html.TextBoxFor(x => x.MaxCredit, new TextBoxOptions { TextBoxType = TextBoxType.Normal }))
  77. </td>
  78. <td>@Html.LabelFor(x => x.MinCredit):
  79. </td>
  80. <td>@(Html.TextBoxFor(x => x.MinCredit, new TextBoxOptions { TextBoxType = TextBoxType.Normal }))
  81. </td>
  82. </tr>
  83. <tr>
  84. <td>@Html.LabelFor(x => x.Remark):
  85. </td>
  86. <td colspan="3">@Html.TextAreaFor(x => x.Remark, new Dictionary<string, string> { { "style", "width:500px;" } })
  87. </td>
  88. </tr>
  89. </table>
  90. </div>
  91. }
  92. </div>
  93. @section scripts{
  94. <script type="text/javascript">
  95. function SelectCourseControl_Save() {
  96. $(document.forms[0]).submit();
  97. }
  98. </script>
  99. }