@model EMIS.ViewModel.RetakeManage.RetakePlanTaskSettingView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var isEdit = (Request["RetakePlanID"] ?? "") == ""; //开课教研室 ComboGridOptions cgopDepartment = new ComboGridOptions { ID = "DepartmentComboGrid", Name = "DepartmentComboGrid", TextField = "Name", ValueField = "DepartmentID", IsEnabled = isEdit, GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 } new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.3 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Department/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //课程信息 ComboGridOptions cgopCourse = new ComboGridOptions { ID = "CoursematerialComboGrid", Name = "CoursematerialComboGrid", TextField = "CourseName", ValueField = "CoursematerialID", IsEnabled = isEdit, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //授课方式 ListControlOptions lcop = new ListControlOptions { ID = "TeachingModeID", Name = "TeachingModeID", TextField = "Name", ValueField = "Value", ColumnCount = 4, SelectedValueUrl = @Url.Content("~/RetakePlanTask/TeachingModeType?RetakePlanID=" + Model.RetakePlanID) }; //授课地点 ListControlOptions lcoptp = new ListControlOptions { ID = "TeachingPlaceID", Name = "TeachingPlaceID", TextField = "Name", ValueField = "Value", ColumnCount = 4, SelectedValueUrl = @Url.Content("~/RetakePlanTask/TeachingPlace?RetakePlanID=" + (Model == null ? Guid.Empty : Model.RetakePlanID).ToString()) }; //教室信息 ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "ClassroomID", ID = "ClassroomID", Name = "ClassroomID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="Code", HeaderText="教室代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="ClassroomTypeName", HeaderText="教室类型", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="Totalseating", HeaderText="总座位数", Align=AlignStyle.Center, Width=0.1 }, }, IsCheckOnSelect = true, //DataSourceUrl = Url.Content("~/CollegeClassroom/ClassroomListComboGrid?collegeID=" + Model.CollegeID), DataSourceUrl = Url.Content("~/Classroom/List"),//去除院系条件 //DataSourceUrl = Url.Content("~/ExecutableFreeSelectionCouse/GetCourseProcessClassroomList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { //HttpMethod = "Post", OnSuccess = "VerifySave", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@*
重修计划信息
*@ @if(Request["Isdisplay"] == "" || Request["Isdisplay"] == null) {
@Html.ContextMenuBar("Edit")
}
@Html.HiddenFor(x => x.RetakePlanID) @Html.HiddenFor(x => x.IsNeedVerify) @**@
@Html.LabelFor(x => x.ClassName): @Html.TextBoxFor(x => x.ClassName, new Dictionary { { "style", "width:85%;" } })
@Html.LabelFor(x => x.SchoolyearCode): @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, TextField = "Text", ValueField = "Value", IsEnabled = isEdit, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }) @Html.LabelFor(x => x.RetakeTypeName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ER_RetakeType, x => x.RetakeTypeID, new DropdownListOptions() { IsEnabled = isEdit })
@Html.LabelFor(x => x.CourseName): @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse) @Html.LabelFor(x => x.DepartmentName): @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)
@Html.LabelFor(x => x.CourseTypeName): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID, new DropdownListOptions() { IsEnabled = isEdit }) @Html.LabelFor(x => x.CourseStructureID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseStructure, x => x.CourseStructureID)
@Html.LabelFor(x => x.CourseCategoryID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseCategory, x => x.CourseCategoryID) @Html.LabelFor(x => x.CourseQualityID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseQuality, x => x.CourseQualityID)
@Html.LabelFor(x => x.Credit): @Html.TextBoxFor(x => x.Credit, new TextBoxOptions { IsEnabled = isEdit }) @Html.LabelFor(x => x.ExaminationModeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, x => x.ExaminationModeID)
@Html.LabelFor(x => x.TheoryCourse): @Html.TextBoxFor(x => x.TheoryCourse, new { onchange = "recalculate();" }) @Html.LabelFor(x => x.Practicehours): @Html.TextBoxFor(x => x.Practicehours, new { onchange = "recalculate();" })
@Html.LabelFor(x => x.Trialhours): @Html.TextBoxFor(x => x.Trialhours, new { onchange = "recalculate();" }) @Html.LabelFor(x => x.Totalhours): @Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.PeopleNumlower): @Html.TextBoxFor(x => x.PeopleNumlower) @Html.LabelFor(x => x.PeopleNumlimit): @Html.TextBoxFor(x => x.PeopleNumlimit)
设置信息
@Html.LabelFor(x => x.TeachinglanguageID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Teachinglanguage, x => x.TeachinglanguageID) @Html.LabelFor(x => x.IsNeedMaterial): @Html.CheckBoxFor(x => x.IsNeedMaterial)
@Html.LabelFor(x => x.PracticeTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_PracticeType, x => x.PracticeTypeID) @Html.LabelFor(x => x.CourseFineID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseFine, x => x.CourseFineID)
@Html.LabelFor(x => x.IsRequired): @Html.CheckBoxFor(x => x.IsRequired) @Html.LabelFor(x => x.IsSpecialtycore): @Html.CheckBoxFor(x => x.IsSpecialtycore)
@Html.LabelFor(x => x.IsCooperation): @Html.CheckBoxFor(x => x.IsCooperation) @Html.LabelFor(x => x.IsElective): @Html.CheckBoxFor(x => x.IsElective)
@Html.LabelFor(x => x.IsNetworkCourse): @Html.CheckBoxFor(x => x.IsNetworkCourse) @Html.LabelFor(x => x.IsMainCourse): @Html.CheckBoxFor(x => x.IsMainCourse)
上课周次信息
@Html.LabelFor(x => x.TheoryWeeklyNum): @Html.TextBoxFor(x => x.TheoryWeeklyNum) @Html.LabelFor(x => x.PracticeWeeklyNum): @Html.TextBoxFor(x => x.PracticeWeeklyNum)
@Html.LabelFor(x => x.TrialWeeklyNum): @Html.TextBoxFor(x => x.TrialWeeklyNum) @Html.LabelFor(x => x.SchoolweeksNum): @Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.StartWeeklyNum): @Html.TextBoxFor(x => x.StartWeeklyNum) @Html.LabelFor(x => x.EndWeeklyNum): @Html.TextBoxFor(x => x.EndWeeklyNum)
@Html.LabelFor(x => x.WeeklyHours): @Html.TextBoxFor(x => x.WeeklyHours) @Html.LabelFor(x => x.WeeklyNum): @Html.TextBoxFor(x => x.WeeklyNum)
@Html.LabelFor(x => x.StartEndWeeklyNum): @Html.TextBoxFor(x => x.StartEndWeeklyNum, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.ClassroomName): @Html.ComboGridFor(x => x.ClassroomID, cgop)
@Html.LabelFor(x => x.Scheduling): @if(Request["Isdisplay"] == "" || Request["Isdisplay"] == null) { @Html.ContextMenuBar("Edit-SchedulingGrid") } @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn { HeaderText="" ,FieldName="RetakePlanSettingScheduling" }, new DictionaryDropdownListColumn { HeaderText="授课星期", FieldName="Weekday", DictionaryType=EMIS.ViewModel.DictionaryItem.ES_WeekDay, Align=AlignStyle.Center, Width=80 }, new TriggerBoxColumn { HeaderText="节次", FieldName="CoursesTimeID", TextFieldName="Times", TargetTextFieldName="Times", TargetFieldName="CoursesTimeID", TriggerHandle="selectCoursesTime", Align=AlignStyle.Center, Width=80 }, //暂时没用到,原来考虑到课室可能不同,现课室相同所以不需要用到 //new DictionaryDropdownListColumn { HeaderText="教室类型", FieldName="ClassroomTypeID", DictionaryType=EMIS.ViewModel.DictionaryItem.CF_ClassroomType, Align=AlignStyle.Center, Width=80 }, //new TriggerBoxColumn { HeaderText="教室", FieldName="ClassroomID", TextFieldName="ClassroomName", TargetTextFieldName="Name", TargetFieldName="ClassroomID", TriggerHandle="selectClassroom", Align=AlignStyle.Center, Width=80 } }, PageSize = 5, IsPostBack = true, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/RetakePlanTask/GetSchedulingViewList?RetakePlanID=" + Model.RetakePlanID), ID = "dgSchedulingList", //OnLoadSuccessFun = "SetTotalView", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, MaxHeight = 120 })
@Html.LabelFor(x => x.Teachers): @if(Request["Isdisplay"] == "" || Request["Isdisplay"] == null) { @Html.ContextMenuBar("Edit-TeacherGrid") } @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn { HeaderText="", FieldName="UserID" }, new BoundFieldColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 }, new DictionaryDropdownListColumn { FieldName="TeachingMethod", HeaderText="任课方式", Align=AlignStyle.Center, Width=0.04, DictionaryType = EMIS.ViewModel.DictionaryItem.EM_TeachingMethod } }, PageSize = 3, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/RetakePlanTask/TeacherList?RetakePlanID=" + Request["RetakePlanID"]), IsPostBack = true, ID = "dgTeacherList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, MaxHeight = 65 })
@Html.LabelFor(x => x.TeachingPlaceID): @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.EM_TeachingPlace, lcoptp)
@Html.LabelFor(x => x.TeachingModeID): @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, lcop)
@Html.LabelFor(x => x.Remarks): @Html.TextAreaFor(x => x.Remarks, new Dictionary { { "style", "width: 90%;min-height: 45px" } })
}