Edit.cshtml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. @model EMIS.ViewModel.CalendarManage.ActivitieView
  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.ActivitiesTime):
  35. </th>
  36. <td>@Html.TextBoxFor(x => x.ActivitiesTimeMonth, new { style = "width:65px;" }) -@Html.TextBoxFor(x => x.ActivitiesTimeDay, new { style = "width:65px;" })
  37. </td>
  38. </tr>
  39. <tr>
  40. <th>@Html.LabelFor(x => x.ActivitiesType):
  41. </th>
  42. <td>@Html.DropdownListFor(x => x.ActivitiesType, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Activitie/ActivitiesTypeDropdownListBanid"), TextField = "Text", ValueField = "Value" })
  43. </td>
  44. <th>@Html.LabelFor(x => x.TimesSegment):
  45. </th>
  46. <td>@Html.DropdownListFor(x => x.TimesSegment, new DropdownListOptions { ItemSourceUrl = Url.Content("~/Activitie/TimesSegmentDropdownListBanid"), TextField = "Text", ValueField = "Value" })
  47. </td>
  48. </tr>
  49. <tr>
  50. <th>@Html.LabelFor(x => x.ActivitiesContent):
  51. </th>
  52. <td colspan="3">@Html.TextAreaFor(x => x.ActivitiesContent, new { style = "width:519px;" })
  53. </td>
  54. </tr>
  55. </table>
  56. </div>
  57. }
  58. </div>
  59. @section scripts{
  60. <script type="text/javascript">
  61. function Activitie_Save() {
  62. $(document.forms[0]).submit();
  63. }
  64. </script>
  65. }