12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- @model EMIS.ViewModel.EducationManagement.EducationMissionClassView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
- {
- @Html.HiddenFor(x => x.EducationMissionID)
- @Html.HiddenFor(x => x.Totalhours)
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 课程进度设置
- </div>
- @if (Model.ApprovalStatus != (int)EMIS.ViewModel.EM_EducationMissionClassStatus.Scheduled)
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("CourseProcess")</div>
- }
- </div>
- <div class="search_list">
- <font color="red">提示:教室及授课老师以教学安排中的设置为准,默认显示为空,如某个周次情况特殊时可单独设置。</font>
- </div>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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
- })
- </div>
- <div class="search_list" id="totalView" style="text-align: right;">
- </div>
- }
- </div>
- @section scripts{
- <script src="~/Scripts/Business/EducationManage/CourseProcess.js" type="text/javascript"></script>
- <script type="text/javascript">
- var totalTimes = @Model.Totalhours;
- var isSubmited = @((Model.ApprovalStatus == (int)EMIS.ViewModel.EM_EducationMissionClassStatus.Submitted) ? "true" : "false");
- </script>
- }
|