@model EMIS.ViewModel.PaymentManage.WorktimeAdditionView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions optCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "queryUser", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 } }, OnLoadSuccessFun = "queryUser", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optStudentCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "queryStandard", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 } }, OnLoadSuccessFun = "queryStandard", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optCourseCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "queryGrademajor", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center } }, OnLoadSuccessFun = "queryGrademajor", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsShowHeader = false } }; ComboGridOptions optGrademajor = new ComboGridOptions { TextField = "Name", ValueField = "GrademajorID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions optUser = new ComboGridOptions { TextField = "Name", ValueField = "UserID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optCoursematerial = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", 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 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), 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.CollegeID): @Html.ComboGridFor(x => x.CollegeID, optCollege) @Html.LabelFor(x => x.UserID): @Html.ComboGridFor(x => x.UserID, optUser)
@Html.LabelFor(x => x.SchoolyearID): @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") }) @Html.LabelFor(x => x.StudentCollegeID): @Html.ComboGridFor(x => x.StudentCollegeID, optStudentCollege)
@Html.LabelFor(x => x.GradeYearID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeYearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect = "queryStandard", OnLoadSuccess = "queryStandard" }) @Html.LabelFor(x => x.StandardID): @Html.ComboGridFor(x => x.StandardID, optStandard)
@Html.LabelFor(x => x.GrademajorID): @Html.ComboGridFor(x => x.GrademajorID, optGrademajor) @Html.LabelFor(x => x.CourseCollegeID): @Html.ComboGridFor(x => x.CourseCollegeID, optCourseCollege)
@Html.LabelFor(x => x.CoursematerialID): @Html.ComboGridFor(x => x.CoursematerialID, optCoursematerial) @Html.LabelFor(x => x.EducationMissionClassName): @Html.TextBoxFor(x => x.EducationMissionClassName)
@Html.LabelFor(x => x.TeachingModeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, (x => x.TeachingModeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect }) @Html.LabelFor(x => x.TeachType): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_TeachingMethod, (x => x.TeachType), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
@Html.LabelFor(x => x.StudentCount): @Html.TextBoxFor(x => x.StudentCount) @Html.LabelFor(x => x.CourseTime): @Html.TextBoxFor(x => x.CourseTime)
@Html.LabelFor(x=>x.Month): @Html.TextBoxFor(x=>x.Month)
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new { style = "width:98%;" })
}