@model EMIS.ViewModel.EducationManagement.EducationMissionClassView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; List lct = ViewData["lct"] as List; ListControlOptions lcop = new ListControlOptions { Name = "WeekNum", TextField = "Name", ValueField = "Value", ColumnCount = 4, ItemList = lct, SelectedValueUrl = Url.Content("~/EducationMissionClass/CheckEducationMissionClassSettingsList?educationMissionClassID=" + Model.EducationMissionClassID) }; 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 } }; } @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.SchoolweeksNum): @Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.WeeklyNum): @Html.TextBoxFor(x => x.WeeklyNum, new TextBoxOptions { IsEnabled = false, }) @Html.LabelFor(x => x.WeeklyHours): @Html.TextBoxFor(x => x.WeeklyHours, new TextBoxOptions { IsEnabled = true })
@Html.LabelFor(x => x.IsNeedMaterial): @Html.CheckBoxFor(x => x.IsNeedMaterial, 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.StartWeeklyNum): @Html.TextBoxFor(x => x.StartWeeklyNum, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.EndWeeklyNum): @Html.TextBoxFor(x => x.EndWeeklyNum, 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.ClassroomID): @Html.ComboGridFor(x => x.ClassroomID, cgop)
@Html.ContextMenuBar("Settings")
@Html.CheckList(lcop)
@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 })
}