Edit.cshtml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. @model EMIS.ViewModel.MinorManage.MinorSetting.MinorControlView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions cgop = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. Name = "CollegeDropdown",
  11. ID = "CollegeDropdown",
  12. //OnSelect = "queryCollege",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. }
  28. @section scripts{
  29. <script src="~/Scripts/Business/MinorManage/MinorSetting/MinorControlEdit.js" type="text/javascript"></script>
  30. <script type="text/javascript">
  31. var nonSelect = "@DropdownList.SELECT_ALL";
  32. </script>
  33. }
  34. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  35. @using (Ajax.BeginForm(new AjaxOptions
  36. {
  37. OnSuccess = "EMISFunction.FormSuccess",
  38. OnBegin = "EMISFunction.FormSubmit",
  39. OnComplete = "EMISFunction.FormComplete"
  40. }))
  41. {
  42. <div class="p_title">
  43. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  44. </div>
  45. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  46. </div>
  47. <div class="search_list">
  48. <table cellpadding="0" cellspacing="0" id="retakeopencontrol">
  49. <tr>
  50. <td>
  51. @Html.LabelFor(x => x.SchoolyearCode):
  52. </td>
  53. <td>
  54. @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions()
  55. {
  56. BindType = DropdownListBindType.PleaseSelect,
  57. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
  58. })
  59. </td>
  60. <td>
  61. @Html.LabelFor(x => x.CollegeName):
  62. </td>
  63. <td>
  64. @Html.ComboGridFor(x => x.CollegeID, cgop)
  65. </td>
  66. </tr>
  67. <tr>
  68. <td>
  69. @Html.LabelFor(x => x.GradeYearID):
  70. </td>
  71. <td>
  72. @Html.SchoolYearDropDownListFor(x => x.GradeYearID)
  73. </td>
  74. <td colspan = "2"></td>
  75. </tr>
  76. <tr>
  77. <td>
  78. @Html.LabelFor(x => x.StartDate)
  79. </td>
  80. <td>
  81. @Html.TextBoxFor(x => x.StartDate, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
  82. </td>
  83. <td>
  84. @Html.LabelFor(x => x.EndDate):
  85. </td>
  86. <td>
  87. @Html.TextBoxFor(x => x.EndDate, new TextBoxOptions { TextBoxType = TextBoxType.DateTime })
  88. </td>
  89. </tr>
  90. </table>
  91. </div>
  92. }
  93. </div>