List.cshtml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @model EMIS.ViewModel.SchedulingManage.SchedulingSettings.ClassTimeSettingsView
  2. @using EMIS.Web.Controls;
  3. @using EMIS.Entities;
  4. @using Bowin.Web.Controls.Mvc;
  5. @{
  6. ViewBag.Title = "Edit";
  7. string teacherScheduleContinuousCount = ViewData["TeacherScheduleContinuousCount"] as string;
  8. string classScheduleContinuousCount = ViewData["ClassScheduleContinuousCount"] as string;
  9. string classCourseScheduleContinuousCount = ViewData["ClassCourseScheduleContinuousCount"] as string;
  10. }
  11. @*<style type="text/css">
  12. #classTimeSettingstable
  13. {
  14. width: 100%;
  15. border: 0px none;
  16. }
  17. #classTimeSettingstable tr
  18. {
  19. min-height: 30px;
  20. }
  21. </style>*@
  22. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  23. @Html.Position()
  24. @using (Ajax.BeginForm(new AjaxOptions
  25. { OnSuccess = "EMISFunction.FormSuccess",
  26. OnBegin = "EMISFunction.FormSubmit",
  27. OnComplete = "EMISFunction.FormComplete"
  28. }))
  29. {
  30. <div class="p_title">
  31. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  32. 节次设定</div>
  33. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  34. </div>
  35. <div class="noPopupContent">
  36. <table cellpadding="0" cellspacing="0" id="classTimeSettingstable">
  37. <tr>
  38. <td>@Html.LabelFor(x => x.TeacherScheduleContinuousCount):
  39. </td>
  40. <td>@Html.TextBoxFor(x => x.TeacherScheduleContinuousCount)<span>节</span>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td>@Html.LabelFor(x => x.ClassScheduleContinuousCount):
  45. </td>
  46. <td>@Html.TextBoxFor(x => x.ClassScheduleContinuousCount)<span>节</span>
  47. </td>
  48. </tr>
  49. <tr>
  50. <td>@Html.LabelFor(x => x.ClassCourseScheduleContinuousCount):
  51. </td>
  52. <td>@Html.TextBoxFor(x => x.ClassCourseScheduleContinuousCount)<span>节</span>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td>@Html.LabelFor(x => x.ClassScheduleWeekTimeCount):
  57. </td>
  58. <td>@Html.TextBoxFor(x => x.ClassScheduleWeekTimeCount)<span>节</span>
  59. </td>
  60. </tr>
  61. </table>
  62. </div>
  63. }
  64. </div>
  65. @section scripts{
  66. <script type="text/javascript">
  67. function ClassTimeSettings_Save() {
  68. $(document.forms[0]).submit();
  69. }
  70. </script>
  71. }