Edit.cshtml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. @model EMIS.ViewModel.CalendarManage.SCalendarView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. ViewBag.Title = "Edit";
  7. }
  8. <style type="text/css">
  9. </style>
  10. <div class="separatorline">
  11. @using (Ajax.BeginForm(new AjaxOptions
  12. {
  13. OnSuccess = "EMISFunction.FormSuccess",
  14. OnBegin = "EMISFunction.FormSubmit",
  15. OnComplete = "EMISFunction.FormComplete"
  16. }))
  17. {
  18. <div class="p_title">
  19. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  20. 校历管理信息</div>*@
  21. @if (Request["isView"] != "1")
  22. {
  23. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  24. }
  25. </div>
  26. <div class="gobal-from">
  27. @Html.HiddenFor(x => x.ActivitiesID)
  28. <table cellpadding="0" cellspacing="1">
  29. <tr>
  30. <th>@Html.LabelFor(x => x.Name):
  31. </th>
  32. <td>@Html.TextBoxFor(x => x.Name)
  33. </td>
  34. <th>@Html.LabelFor(x => x.ActivitiesType):
  35. </th>
  36. <td>@Html.DropdownListFor(x => x.ActivitiesType, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Activitie/ActivitiesTypeDropdownListBanid"), TextField = "Text", ValueField = "Value" })
  37. </td>
  38. </tr>
  39. <tr>
  40. <th>@Html.LabelFor(x => x.ActivitiesTime):
  41. </th>
  42. <td>
  43. @Html.TextBoxFor(x => x.ActivitiesTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  44. </td>
  45. <th>@Html.LabelFor(x => x.TimesSegment):
  46. </th>
  47. <td>@Html.DropdownListFor(x => x.TimesSegment, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Activitie/TimesSegmentDropdownListBanid"), TextField = "Text", ValueField = "Value" })
  48. </td>
  49. </tr>
  50. <tr>
  51. <th>@Html.LabelFor(x => x.ActivitiesContent):
  52. </th>
  53. <td colspan="3">@Html.TextAreaFor(x => x.ActivitiesContent, new { style = "width:525px;" })
  54. </td>
  55. </tr>
  56. </table>
  57. </div>
  58. }
  59. </div>
  60. @section scripts{
  61. <script type="text/javascript">
  62. function SCalendar_Save() {
  63. $(document.forms[0]).submit();
  64. }
  65. </script>
  66. }