123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- @model EMIS.ViewModel.EducationSchedule.ClassroomExcessiveUseView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions optClassroom = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassroomID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classroom/ListIsEnable"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions optCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText=EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions optUser = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "UserID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.12 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Staff/GetAllStaffDataBind"),
- 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/ClassroomExcessiveUseEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- @Html.HiddenFor(x => x.ClassroomExcessiveUseID)
- <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("Edit")
- </div>
- </div>
- <div class="search_list">
- <table cellpadding="0" cellspacing="0" id="buildingstable">
- <tr>
- <td>@Html.LabelFor(x => x.SchoolyearID):</td>
- <td>@Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), IsEnabled = false })</td>
- <td>@Html.LabelFor(x => x.ClassroomID):</td>
- <td>@Html.ComboGridFor((x => x.ClassroomID), optClassroom)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CollegeID):</td>
- <td>@Html.ComboGridFor(x => x.CollegeID, optCollege)</td>
- <td>@Html.LabelFor(x => x.UserID):</td>
- <td>@Html.ComboGridFor(x => x.UserID, optUser)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Content):</td>
- <td colspan="3">@Html.TextAreaFor(x => x.Content, new Dictionary<string, object> { { "style", "width: 96%;" } })</td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Scheduling):
- </td>
- <td colspan="3">
- @Html.ContextMenuBar("Edit-SchedulingGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn { HeaderText="", FieldName="ClassroomExcessiveUseSchedulingID" },
- new BoundFieldColumn { HeaderText="周次", FieldName="WeekNumList", CustomFormatFun="CMSFunction.DataTableFormatter.WeekNum", Align=AlignStyle.Center, Width=80 },
- new LinkButtonColumn { HeaderText="星期", FieldName="WeekdayDesc", Align=AlignStyle.Center, Width=80, Handle="Scheduling_Edit" },
- new BoundFieldColumn { HeaderText="节次", FieldName="TimeDesc", Align=AlignStyle.Center, Width=80 },
- },
- IsPostBack = true,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ClassroomExcessiveUse/SchedulingList?classroomExcessiveUseID=" + Model.ClassroomExcessiveUseID),
- ID = "dgSchedulingList",
- IsPagination = false,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- MaxHeight = 120
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|