@model EMIS.ViewModel.PaymentManage.WorktimeAdjustmentView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions optCourse = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", OnSelect = "queryMissionClass", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 } }, IsAutoLoad = false, OnLoadSuccessFun = "queryMissionClass", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optMissionClass = new ComboGridOptions { TextField = "Name", ValueField = "EducationMissionClassID", PanelWidth = 350, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="任务班名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/WorktimeAdjustment/GetEducationMissionClass"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optUser = new ComboGridOptions { TextField = "Name", ValueField = "UserID", OnSelect = "queryMissionClass", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.2 } }, OnLoadSuccessFun = "queryMissionClass", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "queryMissionClass", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 } }, IsAutoLoad = false, OnLoadSuccessFun = "queryCourse", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; } @section scripts{ } @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
工作量调整
@Html.ContextMenuBar("Edit")
@Html.LabelFor(x => x.SchoolyearID): @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "queryMissionClass", OnLoadSuccess = "queryMissionClass" }) @Html.LabelFor(x => x.WorktimeAdjustmentTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.TP_WorktimeAdjustmentType, (x => x.WorktimeAdjustmentTypeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
@Html.LabelFor(x => x.AdjustDate): @Html.TextBoxFor(x => x.AdjustDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, OnChange = "adjustDateChanged" }) @Html.LabelFor(x => x.UserID): @Html.ComboGridFor(x => x.UserID, optUser)
@Html.LabelFor(x => x.CollegeID): @Html.DropdownListFor(x => x.CollegeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanids"), OnLoadSuccess = "queryStandard", OnSelect = "queryStandard" }) @Html.LabelFor(x => x.GradeYearID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeYearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnLoadSuccess = "queryStandard", OnSelect = "queryStandard" })
@Html.LabelFor(x => x.StandardID): @Html.ComboGridFor(x => x.StandardID, optStandard) @Html.LabelFor(x => x.CoursematerialID): @Html.ComboGridFor(x => x.CoursematerialID, optCourse)
@Html.LabelFor(x => x.EducationMissionClassID): @Html.ComboGridFor(x => x.EducationMissionClassID, optMissionClass) @Html.LabelFor(x => x.Worktime): @Html.TextBoxFor(x => x.Worktime)
}