@model EMIS.ViewModel.SelectCourse.FreeSelectionCourseApplyView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions cgopDepartment = new ComboGridOptions { TextField = "Name", ValueField = "DepartmentID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.3 } //new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 } //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.3 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Department/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "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.2 }, new BoundFieldColumn { FieldName="ClassroomTypeName", HeaderText="教室类型", Align=AlignStyle.Center, Width=0.2 }, new BoundFieldColumn { FieldName="Totalseating", HeaderText="总座位数", Align=AlignStyle.Center, Width=0.05 }, }, IsCheckOnSelect = true, // DataSourceUrl = Url.Content("~/CollegeClassroom/ClassroomListComboGrid?collegeID=" + Model.CollegeID), DataSourceUrl = Url.Content("~/Classroom/List"),//去除院系条件 IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopCoursesTime = new ComboGridOptions { TextField = "Times", ValueField = "CoursesTimeID", GridOptions = new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="CoursesTimeID"}, new BoundFieldColumn { FieldName="Times", HeaderText="节次", Align=AlignStyle.Center, Width=0.02 }, new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="StartDate", HeaderText="开始时间", CustomFormatFun="formatStartTime", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="EndDate", HeaderText="结束时间", CustomFormatFun="formatEndTime", Align=AlignStyle.Center, Width=0.05 } }, IsCheckOnSelect = true, // DataSourceUrl = Url.Content("~/CollegeClassroom/ClassroomListComboGrid?collegeID=" + Model.CollegeID), DataSourceUrl = Url.Content("~/CoursesTime/List"),//去除院系条件 IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ListControlOptions lcop = new ListControlOptions { Name = "TeachingModeID", TextField = "Name", ValueField = "Value", ColumnCount = 4, SelectedValueUrl = @Url.Content("~/FreeSelectionCourseApply/CourseApplyTeachingModeType?freeSelectionCourseID=" + Model.FreeSelectionCouseApplyID) }; ListControlOptions lcopGrade = new ListControlOptions { Name = "GradeYear", TextField = "Name", ValueField = "Value", ColumnCount = 4, SelectedValueUrl = @Url.Content("~/FreeSelectionCourseApply/GradeYear?freeSelectionCourseApplyID=" + Model.FreeSelectionCouseApplyID) }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { HttpMethod = "Post", OnSuccess = "VerifySave" })) {
@*
开课申请信息
*@
@Html.ContextMenuBar("Edit")
@Html.HiddenFor(x => x.FreeSelectionCouseApplyID) @Html.HiddenFor(x => x.ApprovalStatus) @Html.HiddenFor(x => x.IsNeedVerify) @**@ @* *@
@Html.LabelFor(x => x.DefaultClassName): @Html.TextBoxFor(x => x.DefaultClassName, new Dictionary { { "style", "width:85%;" } })
@Html.LabelFor(x => x.SchoolyearCode): @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, TextField = "Text", ValueField = "Value", ItemSourceUrl = Url.Content("~/SchoolYear/DropDownAfterCurrent"), SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }) @Html.LabelFor(x => x.CourseName): @Html.ComboGridFor(x => x.FreeSelectionCouseID, new ComboGridOptions { OnSelect = "reload", TextField = "CourseName", ValueField = "FreeSelectionCouseID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.25 }, new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.25 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/FreeSelectionCourse/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } })
@Html.LabelFor(x => x.CourseTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID) @Html.LabelFor(x => x.DepartmentName): @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)
@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.TeachinglanguageID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Teachinglanguage, x => x.TeachinglanguageID)
@Html.LabelFor(x => x.ExaminationModeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, x => x.ExaminationModeID) @Html.LabelFor(x=>x.ResultTypeID) @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType, (x => x.ResultTypeID))
@Html.LabelFor(x => x.SchoolyearNumID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID, null, new Dictionary { { "disabled", "disabled" } }) @Html.LabelFor(x => x.SchoolcodeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Semester, x => x.SchoolcodeID, null, new Dictionary { { "disabled", "disabled" } })
@Html.LabelFor(x => x.PracticeTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_PracticeType, x => x.PracticeTypeID) @Html.LabelFor(x => x.IsNeedMaterial): @Html.CheckBoxFor(x => x.IsNeedMaterial)
@Html.LabelFor(x => x.HandleModeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HandleMode, (x => x.HandleModeID)) @Html.LabelFor(x => x.PeopleNumlower): @Html.TextBoxFor(x => x.PeopleNumlower)
@Html.LabelFor(x => x.Credit): @Html.TextBoxFor(x => x.Credit) @Html.LabelFor(x => x.PeopleNumlimit): @Html.TextBoxFor(x => x.PeopleNumlimit)
@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.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.Weekday): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ES_WeekDay, (x => x.Weekday)) @Html.LabelFor(x => x.CoursesTimeID): @Html.ComboGridFor(x => x.CoursesTimeID, cgopCoursesTime)
@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): @Html.ContextMenuBar("Edit-SchedulingGrid") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn { FieldName="ExecutableFreeSelectionCouseSchedulingID" }, new DictionaryDropdownListColumn { HeaderText="授课星期", FieldName="Weekday", DictionaryType=EMIS.ViewModel.DictionaryItem.ES_WeekDay,Width=80 }, new TriggerBoxColumn { HeaderText="节次", FieldName="CoursesTimeID", TextFieldName="Times", TargetTextFieldName="Times", TargetFieldName="CoursesTimeID", TriggerHandle="selectCoursesTime",Width=80 }, //new DictionaryDropdownListColumn { HeaderText="教室类型", FieldName="ClassroomTypeID", DictionaryType=EMIS.ViewModel.DictionaryItem.CF_ClassroomType,Width=80 }, //new TriggerBoxColumn { HeaderText="教室", FieldName="ClassroomID", TextFieldName="ClassroomName", TargetTextFieldName="Name", TargetFieldName="ClassroomID", TriggerHandle="selectClassroom",Width=80 } }, PageSize = 5, IsPostBack = true, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/FreeSelectionCourseApply/GetSchedulingViewList?FreeSelectionCouseApplyID=" + Model.FreeSelectionCouseApplyID), ID = "dgSchedulingList", //OnLoadSuccessFun = "SetTotalView", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, MaxHeight = 110 })
@Html.LabelFor(x => x.GradeYear): @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, lcopGrade)
@Html.LabelFor(x => x.SpecialtyID): @Html.ContextMenuBar("Edit-SpecialtyGrid") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyID" }, new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 }, new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.04 } //new BoundFieldColumn { FieldName="ScienceclassName", HeaderText="专业科类", Align=AlignStyle.Center, Width=0.04 }, //new BoundFieldColumn { FieldName="PropertyName", HeaderText="专业属性", Align=AlignStyle.Center, Width=0.04 }, //new BoundFieldColumn { FieldName="StandardTitleName", HeaderText="专业称号", Align=AlignStyle.Center, Width=0.04 }, //new BoundFieldColumn { FieldName="StandardLevelName", HeaderText="称号级别", Align=AlignStyle.Center, Width=0.04 } }, PageSize =20, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/FreeSelectionCourseApply/SpecialtyList?freeSelectionCourseApplyID=" + Request["FreeSelectionCourseApplyID"]), IsPostBack = true, ID = "dgSpecialtyList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
@Html.LabelFor(x => x.Teachers): @Html.ContextMenuBar("Edit-TeacherGrid") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn { 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("~/FreeSelectionCourseApply/TeacherList?freeSelectionCourseApplyID=" + Request["FreeSelectionCourseApplyID"]), IsPostBack = true, ID = "dgTeacherList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, MaxHeight = 65 })
@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:85%;" } })
}