123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- @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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- // 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{
- <script src="~/Scripts/Business/SchedulingManage/ClassroomExcessiveUse/ClassroomExcessiveUse.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- }
- @Html.Position()
- <div class="p_SearchTitle">
- <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
- 查询条件</div>
- </div>
- <form id="formQuery" method="post" action="@Url.Content("~/ClassroomExcessiveUse/Excel")">
- @Html.PositionCondition()
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">学年学期:</li>
- <li class="sv">
- @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<string, string> { { "data-condition", "dgClassroomExecessiveUse" } })
- </li>
- <li class="sn" style="padding-left: 5px;">周次:</li>
- <li class="sv">
- @Html.NumberRangeDropdownList(1, 21, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlWeekNum", Name = "ddlWeekNum", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgClassroomExecessiveUse" } })
- </li>
- <li class="sn" style="padding-left: 5px;">星期:</li>
- <li class="sv">
- @Html.WeekdayDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlWeekday", Name = "ddlWeekday", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgClassroomExecessiveUse" } })
- </li>
- <li class="sn" style="padding-left: 5px;">节次:</li>
- <li class="sv">
- @Html.ComboGrid(optCourseTime, new Dictionary<string, string> { { "data-condition", "dgClassroomExecessiveUse" } })
- </li>
- </ul>
- <ul>
- <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
- <li class="sv">
- @Html.ComboGrid(cgopcollge, new Dictionary<string, string> { { "data-condition", "dgClassroomExecessiveUse" } })
- </li>
- <li class="sn" style="padding-left: 5px;">所在建筑物:</li>
- <li class="sv">
- @Html.ComboGrid(optBuilding, new Dictionary<string, string> { { "data-condition", "dgClassroomExecessiveUse" } })
- </li>
- <li class="sn" style="padding-left: 5px;">教室名称</li>
- <li class="sv">
- @Html.ComboGrid(optClassroom, new Dictionary<string, string> { { "data-condition", "dgClassroomExecessiveUse" } })
- </li>
- </ul>
- </div>
- </div>
- </form>
- <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("List")</div>
- </div>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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
- })
- </div>
|