Edit.cshtml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. @model EMIS.ViewModel.SelectCourse.FreeSelectionCouseControlView
  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.GradeYear):
  31. </td>
  32. <td width="35%">@Html.SchoolYearDropDownListFor(x => x.GradeYear, new DropdownListOptions { SelectedValue = BaseExtensions.GetCurrentSchoolYearID() })
  33. </td>
  34. </tr>
  35. <tr>
  36. <td>@Html.LabelFor(x => x.StartTime):
  37. </td>
  38. <td>@Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
  39. </td>
  40. <td>@Html.LabelFor(x => x.EndTime):
  41. </td>
  42. <td>@Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
  43. </td>
  44. </tr>
  45. <tr>
  46. <td>@Html.LabelFor(x => x.MinSelectCount):
  47. </td>
  48. <td>@(Html.TextBoxFor(x => x.MinSelectCount, new TextBoxOptions { TextBoxType = TextBoxType.Normal }))门
  49. </td>
  50. <td>@Html.LabelFor(x => x.MaxSelectCount):
  51. </td>
  52. <td>@(Html.TextBoxFor(x => x.MaxSelectCount, new TextBoxOptions { TextBoxType = TextBoxType.Normal }))门
  53. </td>
  54. </tr>
  55. <tr>
  56. <td>@Html.LabelFor(x => x.MinCredit):
  57. </td>
  58. <td>@(Html.TextBoxFor(x => x.MinCredit, new TextBoxOptions { TextBoxType = TextBoxType.Normal }))
  59. </td>
  60. <td>@Html.LabelFor(x => x.MaxCredit):
  61. </td>
  62. <td>@(Html.TextBoxFor(x => x.MaxCredit, new TextBoxOptions { TextBoxType = TextBoxType.Normal }))
  63. </td>
  64. </tr>
  65. <tr>
  66. <td>@Html.LabelFor(x => x.Remark):
  67. </td>
  68. <td colspan="3">@Html.TextAreaFor(x => x.Remark, new Dictionary<string, string> { { "style", "width:500px;" } })
  69. </td>
  70. </tr>
  71. </table>
  72. </div>
  73. }
  74. </div>
  75. @section scripts{
  76. <script type="text/javascript">
  77. function FreeSelectCourseControl_Save() {
  78. $(document.forms[0]).submit();
  79. }
  80. </script>
  81. }