@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions optClassroom = new ComboGridOptions { TextField = "Name", ValueField = "ClassroomID", OnSelect = "reload", Name = "cbgClassroom", ID = "cbgClassroom", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classroom/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optBuilding = new ComboGridOptions { TextField = "Name", ValueField = "BuildingsInfoID", Name = "cbgBuilding", ID = "cbgBuilding", OnSelect = "queryClassroom", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="建筑物名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Buildings/BuildingsList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions optCourseTime = new ComboGridOptions { TextField = "time_starTime_endTime", ValueField = "CoursesTimeID", ID = "cbgCoursesTime", Name = "cbgCoursesTime", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="上课时间", Align=AlignStyle.Center }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/CoursesTime/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopcollge = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", Name = "CollegeComboGrid", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ } @Html.Position()
查询条件
@Html.PositionCondition()
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "ddlSchoolyear", Name = "ddlSchoolyear", OnSelect = "reload", OnLoadSuccess = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary { { "data-condition", "dgClassroomExecessiveUse" } })
  • 周次:
  • @Html.NumberRangeDropdownList(1, 21, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlWeekNum", Name = "ddlWeekNum", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgClassroomExecessiveUse" } })
  • 星期:
  • @Html.WeekdayDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlWeekday", Name = "ddlWeekday", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgClassroomExecessiveUse" } })
  • 节次:
  • @Html.ComboGrid(optCourseTime, new Dictionary { { "data-condition", "dgClassroomExecessiveUse" } })
  • @Html.RSLabel("College"):
  • @Html.ComboGrid(cgopcollge, new Dictionary { { "data-condition", "dgClassroomExecessiveUse" } })
  • 所在建筑物:
  • @Html.ComboGrid(optBuilding, new Dictionary { { "data-condition", "dgClassroomExecessiveUse" } })
  • 教室名称
  • @Html.ComboGrid(optClassroom, new Dictionary { { "data-condition", "dgClassroomExecessiveUse" } })
课外教室使用登记列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassroomExcessiveUseID" }, new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="CollegeName", HeaderText= EMIS.Utility.RSL.Get("UsingCollege"), Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="UserName", HeaderText="使用人", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="Content", HeaderText="活动内容", Align=AlignStyle.Center, Width=0.15 }, new BoundFieldColumn { FieldName="SchedulingString", HeaderText="时间安排", Align=AlignStyle.Center, Width=0.15 }, new BoundFieldColumn { FieldName="CreateUserName", HeaderText="申请人", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="CreateTimeStr", HeaderText="申请时间", Align=AlignStyle.Center, Width=0.15 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ClassroomExcessiveUse/List"), ID = "dgClassroomExecessiveUse", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })