Edit.cshtml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. @model EMIS.ViewModel.GraduationManage.GraduationSetting.GraduationSchoolYearView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. //var isEdit = (Request["graduationSchoolYearSettingID"] ?? "") == "";
  7. }
  8. @section scripts{
  9. <script src="~/Scripts/Business/GraduationManage/GraduationSetting/GraduationSchoolYearEdit.js" type="text/javascript"></script>
  10. <script type="text/javascript"> var nonSelect = "@DropdownList.SELECT_ALL";</script>
  11. }
  12. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  13. @using (Ajax.BeginForm(new AjaxOptions
  14. {
  15. OnSuccess = "EMISFunction.FormSuccess",
  16. OnBegin = "EMISFunction.FormSubmit",
  17. OnComplete = "EMISFunction.FormComplete"
  18. }))
  19. {
  20. <div class="p_title">
  21. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  22. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  23. </div>
  24. <div class="search_list">
  25. <table cellpadding="0" cellspacing="0">
  26. @Html.HiddenFor(x => x.GraduationSchoolYearSettingID)
  27. <tr>
  28. <td>
  29. @Html.LabelFor(x => x.GraduatingSemesterCode):
  30. </td>
  31. <td>
  32. @Html.DropdownListFor((x => x.GraduatingSemesterID), new DropdownListOptions()
  33. {
  34. BindType = DropdownListBindType.PleaseSelect,
  35. //IsEnabled = isEdit,
  36. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
  37. })
  38. </td>
  39. <td style="color: red;">
  40. @Html.LabelFor(x => x.IsEnable):
  41. </td>
  42. <td>
  43. @Html.CheckBoxFor(x => x.IsEnable)
  44. </td>
  45. </tr>
  46. <tr>
  47. <td style="color: red;">
  48. @Html.LabelFor(x => x.GraduateDate):
  49. </td>
  50. <td colspan="3">
  51. @Html.TextBoxFor(x => x.GraduateDate, new TextBoxOptions()
  52. {
  53. TextBoxType = TextBoxType.Date
  54. }, new Dictionary<string, string> { { "style", "width:56%;" } })
  55. </td>
  56. </tr>
  57. </table>
  58. </div>
  59. }
  60. </div>