@model EMIS.ViewModel.EducationManagement.EducationMissionClassView
@using EMIS.Web.Controls;
@using Bowin.Web.Controls.Mvc;
@{
ViewBag.Title = "Edit";
}
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
{
@Html.HiddenFor(x => x.EducationMissionID)
@Html.HiddenFor(x => x.Totalhours)
课程进度设置
@if (Model.ApprovalStatus != (int)EMIS.ViewModel.EM_EducationMissionClassStatus.Scheduled)
{
@Html.ContextMenuBar("CourseProcess")
}
提示:教室及授课老师以教学安排中的设置为准,默认显示为空,如某个周次情况特殊时可单独设置。
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationMissionClassID",Width=30 },
new BoundFieldColumn { HeaderText="授课方式", FieldName="TeachingModeName",Width=70 },
new BoundFieldColumn { HeaderText="周次", FieldName="Week",Width=50 },
new TextBoxColumn { HeaderText="学时", FieldName="Times", IsRequired=true, Validator=new OnlyNumberValidator(), OnChangedFunc="SetTotalView",Width=50 },
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 },
new TriggerBoxColumn { HeaderText="授课老师", FieldName="CourseProcessTeacherViewList",TextFieldName="StaffNames", TargetTextFieldName="Name", TriggerHandle="selectTeacher",Width=180 }
},
IsPostBack = true,
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/EducationMissionClass/GetCourseProcessViewList?educationMissionClassID=" + Model.EducationMissionClassID.ToString()),
ID = "dgCourseProcessList",
OnLoadSuccessFun = "SetTotalView",
MaxHeight = 500,
IsPagination = false,
IsShowRowNumbers = true,
IsSingleSelect = false
})
}
@section scripts{
}