1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- var schoolyearID = ViewBag.SchoolyearID;
- var classroomID = ViewBag.ClassroomID;
- ComboGridOptions optCourseTime = new ComboGridOptions
- {
- TextField = "time_starTime_endTime",
- ValueField = "CoursesTimeID",
- ID = "cbgCoursesTime",
- Name = "cbgCoursesTime",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="上课时间", Align=AlignStyle.Center },
- },
- OnLoadSuccessFun = "cbgCoursesTime_LoadSuccess",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ClassroomExcessiveUse/GetCourseTimeOnlyUsable"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/Common/WeekNum.js" type="text/javascript"></script>
- <script src="~/Scripts/Business/SchedulingManage/ClassroomExcessiveUse/ClassroomExcessiveUseSchedulingEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- var schoolyear = "@schoolyearID";
- var classroom = "@classroomID";
- </script>
- }
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
- @Html.ContextMenuBar("Scheduling")
- </div>
- </div>
- <div class="search_list">
- <table cellpadding="0" cellspacing="0" id="buildingstable">
- <tr>
- <td><label>周次:</label></td>
- <td colspan="3">@Html.CheckList(new ListControlOptions
- {
- Name = "WeekNum",
- TextField = "Name",
- ValueField = "Value",
- ColumnCount = 4,
- ItemList = ViewBag.WeekList,
- OnLoadSuccess = "chkWeekNum_LoadSuccess",
- OnClick = "BindCourseTime"
- })</td>
- </tr>
- <tr>
- <td><label>星期:</label></td>
- <td>@Html.WeekdayDropDownList(new DropdownListOptions { ID = "ddlWeekday", BindType = DropdownListBindType.PleaseSelect, OnLoadSuccess = "ddlWeekday_LoadSuccess", OnSelect = "BindCourseTime" })</td>
- <td><label>节次:</label></td>
- <td>@Html.ComboGrid(optCourseTime)</td>
- </tr>
- </table>
- </div>
|