Edit.cshtml 2.3 KB

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