StopEdit.cshtml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @model EMIS.ViewModel.EducationSchedule.EducationSchedulingStopView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script type="text/javascript">
  9. var windowID = '@(Request["WindowID"])';
  10. var educationMissionClassID = '@Model.EducationMissionClassID';
  11. var schoolyearID = '@Model.SchoolyearID.ToString()';
  12. var nonSelect = "@DropdownList.SELECT_ALL";
  13. var isEdit = @(Model.EducationSchedulingStopID != Guid.Empty ? "true" : "false");
  14. </script>
  15. <script src="@Url.Content("~/Scripts/Business/SchedulingManage/Scheduling/StopEdit.js")" type="text/javascript"></script>
  16. }
  17. <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/Business/Scheduling/Scheduling.css")" />
  18. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  19. {
  20. @Html.HiddenFor(x => x.EducationMissionClassID)
  21. @Html.HiddenFor(x => x.Weekday)
  22. @Html.HiddenFor(x => x.CoursesTimeID)
  23. @Html.HiddenFor(x => x.ClassroomID)
  24. @Html.HiddenFor(x => x.UserID)
  25. <div class="p_title">
  26. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  27. 停课申请
  28. </div>
  29. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  30. </div>
  31. <div class="search_list popupWindowContent" style="overflow: hidden;">
  32. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  33. <tr>
  34. <td>
  35. <label>@Html.LabelFor(x => x.WeekNum)</label>
  36. </td>
  37. <td>
  38. @Html.DropdownListFor(x => x.WeekNum, new DropdownListOptions
  39. {
  40. BindType = DropdownListBindType.PleaseSelect,
  41. ItemList = Model.ScheduleWeekNumList.OrderBy(x => x).Select(x => new DropdownListItem { Text = x.ToString(), Value = x }).ToList()
  42. })
  43. </td>
  44. </tr>
  45. </table>
  46. </div>
  47. }