@model EMIS.ViewModel.EducationManage.EducationMissionClassCheckView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions time = new ComboGridOptions { TextField = "Times", ValueField = "CoursesTimeID", OnSelect = "GetEducationMissionClassBy", Name = "TimeComboGrid", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Times", HeaderText="节次", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/CoursesTime/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions timefalse = new ComboGridOptions { TextField = "Times", ValueField = "CoursesTimeID", OnSelect = "GetEducationMissionClassBy", Name = "TimeComboGrid", IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Times", HeaderText="节次", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/CoursesTime/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions classroom = new ComboGridOptions { TextField = "Name", ValueField = "ClassroomID", //OnSelect = "GetEducationMissionClassBy", Name = "ClassroomDropdown", OnChange = "GetEducationMissionClassBy", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classroom/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions classroomfalse = new ComboGridOptions { TextField = "Name", ValueField = "ClassroomID", //OnSelect = "GetEducationMissionClassBy", Name = "ClassroomDropdown", OnChange = "GetEducationMissionClassBy", IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classroom/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", Name = "ClassmajorDropdown", OnSelect = "", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions education = new ComboGridOptions { TextField = "Name", ValueField = "EducationMissionClassID", Name = "EducationMissionDropdown", OnSelect = "", OnChange = "GetTeacherName", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="任务班名称", Align=AlignStyle.Center, Width=350 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EducationMissionClassCheck/GetEducationMissionClass"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, OnLoadSuccessFun = "setFirst", IsAutoLoad = false, } }; ComboGridOptions educationfalse = new ComboGridOptions { TextField = "Name", ValueField = "EducationMissionClassID", Name = "EducationMissionDropdown", OnSelect = "", OnChange = "GetTeacherName", IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="任务班名称", Align=AlignStyle.Center, Width=350 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EducationMissionClassCheck/GetEducationMissionClass"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, OnLoadSuccessFun = "setFirst", IsAutoLoad = false, } }; ComboGridOptions course = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", OnSelect = "", Name = "CoursematerialComboGrid", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EducationMissionClassCheck/GetCoursematerial"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, OnLoadSuccessFun = "setCoursematerial", IsAutoLoad = false, } }; ComboGridOptions coursefalse = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", OnSelect = "", Name = "CoursematerialComboGrid", IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EducationMissionClassCheck/GetCoursematerial"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, OnLoadSuccessFun = "setCoursematerial", IsAutoLoad = false, } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("Edit")
@Html.HiddenFor(x => x.EducationMissionClassCheckID) @if (@ViewBag.IsUpdate == "edit") { } else { } @if (@ViewBag.IsUpdate == "edit") { } else { } @if (@ViewBag.IsUpdate == "edit") { } else { } @if (@ViewBag.IsUpdate == "edit") { } else { } @if (@ViewBag.IsUpdate == "edit") { } else { } @if (@ViewBag.IsUpdate == "edit") { } else { } @if (@ViewBag.IsUpdate == "edit") { } else { }
@Html.LabelFor(x => x.SchoolyearCode):@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "GetEducationMissionClassBy", SelectedValue = @ViewBag.SchoolYearID, IsEnabled = false })@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "GetEducationMissionClassBy", SelectedValue = @ViewBag.SchoolYearID })@Html.LabelFor(x => x.WeekNum):@Html.DropdownListFor(x => x.WeekNum, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/GetWeekListDropdown"), OnSelect = "GetEducationMissionClassBy", IsEnabled = false })@Html.DropdownListFor(x => x.WeekNum, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/GetWeekListDropdown"), OnSelect = "GetEducationMissionClassBy" })
@Html.LabelFor(x => x.Weekday): @Html.WeekdayDropDownListFor(x => x.Weekday, new DropdownListOptions { OnSelect = "GetEducationMissionClassBy", IsEnabled = false }) @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ES_WeekDay, (x => x.Weekday), new DropdownListOptions { OnSelect = "GetEducationMissionClassBy", IsEnabled = false })*@ @Html.WeekdayDropDownListFor(x => x.Weekday, new DropdownListOptions { OnSelect = "GetEducationMissionClassBy" }) @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ES_WeekDay, (x => x.Weekday), new DropdownListOptions { OnSelect = "GetEducationMissionClassBy" })*@ @Html.LabelFor(x => x.CoursesTimeID):@Html.ComboGridFor(x => x.CoursesTimeID, timefalse)@Html.ComboGridFor(x => x.CoursesTimeID, time)
@Html.LabelFor(x => x.ClassroomID):@Html.ComboGridFor(x => x.ClassroomID, classroomfalse)@Html.ComboGridFor(x => x.ClassroomID, classroom)@Html.LabelFor(x => x.EducationMissionClassID):@Html.ComboGridFor(x => x.EducationMissionClassID, educationfalse)@Html.ComboGridFor(x => x.EducationMissionClassID, education)
@Html.LabelFor(x => x.CoursematerialID):@Html.ComboGridFor(x => x.CoursematerialID, coursefalse)@Html.ComboGridFor(x => x.CoursematerialID, course)@Html.LabelFor(x => x.TeacherName): @Html.TextBoxFor(x => x.TeacherName, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.StudentComment): @Html.TextAreaFor(x => x.StudentComment, new { style = "width:470px;" })
@Html.LabelFor(x => x.TeacherComment): @Html.TextAreaFor(x => x.TeacherComment, new { style = "width:470px;" })
@Html.LabelFor(x => x.DeviceComment): @Html.TextAreaFor(x => x.DeviceComment, new { style = "width:470px;" })
@Html.LabelFor(x => x.CheckWayID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_EducationMissionClassCheckWay, (x => x.CheckWayID)) @Html.LabelFor(x => x.OpinionID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_EducationMissionClassCheckOpinion, (x => x.OpinionID))
@Html.ContextMenuBar("Edit-Staff") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" }, new LinkButtonColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center , Handle="edit" }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CollegeID", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center ,IsHidden=true }, new BoundFieldColumn { FieldName="DepartmentID", HeaderText="教研室", Align=AlignStyle.Center,IsHidden=true }, new BoundFieldColumn { FieldName="DepartmentName", HeaderText="教研室", Align=AlignStyle.Center }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EducationMissionClassCheck/TeacherList?educationMissionClassCheckID=" + Model.EducationMissionClassCheckID), IsPostBack = true, ID = "dgTeacherList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new { style = "width:470px;" })
}