Edit.cshtml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. @model EMIS.ViewModel.SchedulingManage.SchedulingSettings.CourseTimeHoursView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. ViewBag.Title = "Edit";
  7. ComboGridOptions time = new ComboGridOptions
  8. {
  9. TextField = "time_starTime_endTime",
  10. ValueField = "CoursesTimeID",
  11. Name = "TimeComboGrid",
  12. ID = "TimeComboGrid",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="上课时间", Align=AlignStyle.Center },
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/CoursesTime/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. }
  28. <style type="text/css">
  29. </style>
  30. <div class="separatorline">
  31. @using (Ajax.BeginForm(new AjaxOptions
  32. {
  33. OnSuccess = "EMISFunction.FormSuccess",
  34. OnBegin = "EMISFunction.FormSubmit",
  35. OnComplete = "EMISFunction.FormComplete"
  36. }))
  37. {
  38. <div class="p_title">
  39. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  40. 课程时间信息</div>*@
  41. @if (Request["isView"] != "1")
  42. {
  43. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  44. }
  45. </div>
  46. <div class="gobal-from">
  47. @Html.HiddenFor(x => x.CourseTimeHoursID)
  48. <table cellpadding="0" cellspacing="1">
  49. <tr>
  50. <th>@Html.LabelFor(x => x.Year):
  51. </th>
  52. <td>@Html.SchoolYearDropDownListFor(x => x.Year)
  53. </td>
  54. <th>@Html.LabelFor(x => x.CoursesTimeID):
  55. </th>
  56. <td>@Html.ComboGridFor(x => x.CoursesTimeID, time)
  57. </td>
  58. </tr>
  59. <tr>
  60. <td>@Html.LabelFor(x=>x.Hours):
  61. </td>
  62. <td colspan="3">
  63. @Html.TextBoxFor(x => x.Hours)
  64. </td>
  65. </tr>
  66. </table>
  67. </div>
  68. <div style="color: Red; text-align: center;">
  69. 时间以24小时制(例如:下午2点应表示为14:00)</div>
  70. }
  71. </div>
  72. @section scripts{
  73. <script type="text/javascript">
  74. function CourseTimeHours_Save() {
  75. $(document.forms[0]).submit();
  76. }
  77. </script>
  78. }