@model EMIS.ViewModel.EducationManage.EducationMissionImportClassView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; bool IsView = false; if (Model.ApprovalStatus != (int)EMIS.ViewModel.EM_EducationMissionClassStatus.Scheduled) { IsView = true; } ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "ClassroomID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { 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("~/CollegeClassroom/ClassroomListComboGrid?collegeID=" + Model.CollegeID), DataSourceUrl = Url.Content("~/Classroom/List"),//去除院系条件 IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions time = new ComboGridOptions { TextField = "time_starTime_endTime", ValueField = "CoursesTimeID", GridOptions = new DataGridOptions { Columns = new List() { //new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="上课时间", Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="EndDate", HeaderText="结束时间", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/CoursesTime/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
教学安排
@if (Model.ApprovalStatus != (int)EMIS.ViewModel.EM_EducationMissionClassStatus.Scheduled) {
@Html.ContextMenuBar("ArrConfirm")
}
@Html.HiddenFor(x => x.EducationMissionClassID) @Html.HiddenFor(x => x.CollegeID) @Html.Hidden("ClassNums")
@Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name, new TextBoxOptions { IsEnabled = IsView }) @Html.LabelFor(x => x.CourseCode): @Html.TextBoxFor(x => x.CourseCode, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.CourseName): @Html.TextBoxFor(x => x.CourseName, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.TeachingModeName): @Html.TextBoxFor(x => x.TeachingModeName, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.SchoolyearCode): @Html.TextBoxFor(x => x.SchoolyearCode, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.CourseStructureName): @Html.TextBoxFor(x => x.CourseStructureName, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.CourseCategoryName): @Html.TextBoxFor(x => x.CourseCategoryName, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.CourseTypeName): @Html.TextBoxFor(x => x.CourseTypeName, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.CourseQualityName): @Html.TextBoxFor(x => x.CourseQualityName, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.ExaminationModeName): @Html.TextBoxFor(x => x.ExaminationModeName, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x=>x.ResultTypeID) @Html.TextBoxFor(x => x.ResultTypeName, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.TeachinglanguageName): @Html.TextBoxFor(x => x.TeachinglanguageName, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.HandleModeName): @Html.TextBoxFor(x => x.HandleModeName, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.Credit): @Html.TextBoxFor(x => x.Credit, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.Totalhours): @Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.CourseTimeID): @Html.ComboGridFor(x => x.CourseTimeID, time)
@Html.LabelFor(x => x.ExamWeek): @Html.TextBoxFor(x => x.ExamWeek, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.Examedate_time): @Html.TextBoxFor(x => x.Examedate_time, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.SchedulingClassNum): @Html.TextBoxFor(x => x.SchedulingClassNum, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.ClassNum): @Html.TextBoxFor(x => x.ClassNum, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.ClassroomTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ClassroomType, (x => x.ClassroomTypeID), new DropdownListOptions { OnSelect = "queryClassroom", OnLoadSuccess = "loadClassroom" }) @Html.LabelFor(x => x.ClassroomName): @Html.ComboGridFor(x => x.ClassroomID, cgop)
@Html.ContextMenuBar("Edit-TeacherGrid") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn { FieldName="UserID" }, new BoundFieldColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center }, new DictionaryDropdownListColumn { FieldName="TeachingMethod", HeaderText="任课方式", Align=AlignStyle.Center, DictionaryType = EMIS.ViewModel.DictionaryItem.EM_TeachingMethod } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EducationMissionClass/TeacherList?educationMissionClassID=" + Model.EducationMissionClassID), IsPostBack = true, ID = "dgTeacherList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
}