@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() { 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{ }
@Html.ContextMenuBar("Scheduling")
@Html.CheckList(new ListControlOptions { Name = "WeekNum", TextField = "Name", ValueField = "Value", ColumnCount = 4, ItemList = ViewBag.WeekList, OnLoadSuccess = "chkWeekNum_LoadSuccess", OnClick = "BindCourseTime" })
@Html.WeekdayDropDownList(new DropdownListOptions { ID = "ddlWeekday", BindType = DropdownListBindType.PleaseSelect, OnLoadSuccess = "ddlWeekday_LoadSuccess", OnSelect = "BindCourseTime" }) @Html.ComboGrid(optCourseTime)