Edit.cshtml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgopClassmajor = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "ClassmajorID",
  9. Name = "ClassmajorDropdown",
  10. ID = "ClassmajorDropdown",
  11. OnSelect = "reload",
  12. Width = 300,
  13. SelectedValue=Request["classmajorID"],
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  19. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  20. },
  21. OnLoadSuccessFun = "reload",
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/Classmajor/List"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false
  27. }
  28. };
  29. ComboGridOptions optStandard = new ComboGridOptions
  30. {
  31. TextField = "StandardName",
  32. ValueField = "StandardID",
  33. OnSelect = "SelectStandardComboGrid",
  34. Name = "DictionaryStandard",
  35. ID = "DictionaryStandard",
  36. SelectedValue = Request["standardID"],
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  42. },
  43. OnLoadSuccessFun = "QueryStandardComboGrid",
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false,
  49. }
  50. };
  51. }
  52. @section scripts{
  53. <script type="text/javascript">
  54. var nonSelect = "@DropdownList.SELECT_ALL";
  55. var windowID = '@(Request["WindowID"])';
  56. var standardIDs = '@(Request["standardID"])';
  57. var years = '@(Request["yearID"])';
  58. </script>
  59. <script src="@Url.Content("~/Scripts/Business/Common/WeekNum.js")" type="text/javascript"></script>
  60. <script src="@Url.Content("~/Scripts/Business/SchedulingManage/Scheduling/Scheduling.js")" type="text/javascript"></script>
  61. <script src="@Url.Content("~/Scripts/Business/SchedulingManage/Scheduling/SchedulingCommon.js")" type="text/javascript"></script>
  62. }
  63. <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/Business/Scheduling/Scheduling.css")" />
  64. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  65. <div class="p_title">
  66. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  67. 课程安排
  68. </div>
  69. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("SchedulingForm")</div>
  70. </div>
  71. <div class="search_list popupWindowContent" style="overflow: hidden;">
  72. <div class="search_keyword">
  73. <div class="search_input">
  74. <ul>
  75. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  76. <li class="sv">
  77. @Html.DropdownList(new DropdownListOptions { Width=120, BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), SelectedValue = string.IsNullOrEmpty(Request["schoolyearID"]) ? BaseExtensions.GetCurrentSchoolYearID() : new Guid(Request["schoolyearID"]), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload" })
  78. </li>
  79. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  80. <li class="sv">
  81. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanidsWithoutRange"), SelectedValue = Request["collegeID"], ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList", OnLoadSuccess = "QueryCollegeDropdownList" })
  82. </li>
  83. <li class="sn" style="padding-left: 5px;">年级:</li>
  84. <li class="sv">
  85. @Html.DropdownList(new DropdownListOptions { Width = 80, ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", BindType = DropdownListBindType.SelectAll, SelectedValue = Request["yearID"], OnSelect = "QueryYearDropdownList", OnLoadSuccess = "QueryYearDropdownList" })
  86. </li>
  87. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  88. <li class="sv">
  89. @Html.ComboGrid(optStandard)
  90. </li>
  91. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  92. <li class="sv">
  93. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingClassList" } })
  94. </li>
  95. @*<li class="sn" style="padding-left: 5px;">班级名称:</li>
  96. <li class="sv">
  97. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, SelectedValue = , ID = "ClassmajorDropdown", Name = "ClassmajorDropdown", OnSelect = "reload", OnLoadSuccess = "QueryClassmajorDropdownList" })
  98. </li>*@
  99. </ul>
  100. </div>
  101. </div>
  102. <div id="leftContainer" style="float: left; position: absolute; width: 220px; top: 40px; bottom: 2px; overflow-x: scroll;">
  103. @Html.DataGrid(new DataGridOptions
  104. {
  105. Columns = new List<DataGridColumn>()
  106. {
  107. new BoundFieldColumn { FieldName="EducationSchedulingClassID", IsHidden=true },
  108. new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center, Width=100 },
  109. new BoundFieldColumn { FieldName="TaskGroupName", HeaderText="分组", Align=AlignStyle.Center, Width=50 },
  110. new BoundFieldColumn { FieldName="TeachingModeName", HeaderText="授课方式", Align=AlignStyle.Center, Width=70 },
  111. new BoundFieldColumn { FieldName="StartStopWeeklyNum", HeaderText="执行周次", Align=AlignStyle.Center, Width=70 },
  112. new BoundFieldColumn { FieldName="ExecutablePlanCourseTime", HeaderText="执行学时", Align=AlignStyle.Center, Width=70 },
  113. new BoundFieldColumn { FieldName="TeacherNames", HeaderText="授课老师", Align=AlignStyle.Center, OverflowLength=8, Width=100 },
  114. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=70 },
  115. new BoundFieldColumn { FieldName="RemainCourseTime", HeaderText="剩余学时", Align=AlignStyle.Center, Width=70 }
  116. },
  117. IsCheckOnSelect = true,
  118. DataSourceUrl = Url.Content("~/EducationSchedule/GetEducationSchedulingClass?classmajorID=" + Request["classmajorID"]) + "&schoolyearID=" + BaseExtensions.GetCurrentSchoolYearID(),
  119. ID = "dgEducationSchedulingClassList",
  120. OnClickRow = "selectItem",
  121. OnLoadSuccessFun = "gridLoaded",
  122. CustomerRowStyleFun = "isScheduleEnable",
  123. RowHighlightColor = System.Drawing.Color.FromArgb(114, 181, 233),
  124. IsMouseOverHighlight = true,
  125. MaxHeight = 1024,
  126. IsAutoLoad = false,
  127. IsPagination = false,
  128. IsShowRowNumbers = true,
  129. IsSingleSelect = true
  130. })
  131. </div>
  132. <div class="middleBar" style="float: left; position: absolute; margin-left: 222px; width: 2px; cursor: e-resize; background-color: #e8e8e8; height: 100%;">
  133. </div>
  134. <div style="float: right; position: absolute; left: 225px; top: 40px; right: 5px; bottom: 2px; overflow: hidden;"
  135. id="scheduleContainer">
  136. </div>
  137. <div>
  138. <div id="popupMenu" class="scheduleMenu">
  139. <div onclick="EducationScheduling_DeleteItem();$('#popupMenu').css('display', 'none');">删除</div>
  140. <div onclick="EducationScheduling_WeekModify();$('#popupMenu').css('display', 'none');">编辑周次</div>
  141. <div onclick="EducationScheduling_ModifyTeacher();$('#popupMenu').css('display', 'none');">修改老师</div>
  142. <div onclick="EducationScheduling_ModifyClassroom();$('#popupMenu').css('display', 'none');">修改教室</div>
  143. <div class="schedulingClassMenu editWeek">编辑周次</div>
  144. <div class="commonMenu" onclick="window.location.reload(true);$('#popupMenu').css('display', 'none');">刷新页面</div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>