123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654 |
- @model EMIS.ViewModel.SelectCourse.ExecutableFreeSelectionCouseView
- @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<DataGridColumn>()
- {
- //new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 }
- new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.3 }
- //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",
- ID = "ClassroomID",
- Name = "ClassroomID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="Code", HeaderText="教室代码", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center, Width=0.12 },
- new BoundFieldColumn { FieldName="ClassroomTypeName", HeaderText="教室类型", Align=AlignStyle.Center, Width=0.12 },
- new BoundFieldColumn { FieldName="Totalseating", HeaderText="总座位数", Align=AlignStyle.Center, Width=0.1 },
- },
- IsCheckOnSelect = true,
- //DataSourceUrl = Url.Content("~/CollegeClassroom/ClassroomListComboGrid?collegeID=" + Model.CollegeID),
- DataSourceUrl = Url.Content("~/Classroom/List"),//去除院系条件
- //DataSourceUrl = Url.Content("~/ExecutableFreeSelectionCouse/GetCourseProcessClassroomList"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- //课程时间
- ComboGridOptions cgopCoursesTime = new ComboGridOptions
- {
- TextField = "Times",
- ValueField = "CoursesTimeID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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("~/ExecutableFreeSelectionCouse/TeachingModeType?ExecutableFreeSelectionCouseID=" + Model.ExecutableFreeSelectionCouseID)
- };
- ////授课地点
- //ListControlOptions lcoptp = new ListControlOptions
- //{
- // ID = "TeachingPlaceID",
- // Name = "TeachingPlaceID",
- // TextField = "Name",
- // ValueField = "Value",
- // ColumnCount = 4,
- // SelectedValueUrl = @Url.Content("~/ExecutableFreeSelectionCouse/TeachingPlace?ExecutableFreeSelectionCouseID=" + (Model == null ? Guid.Empty : Model.ExecutableFreeSelectionCouseID).ToString())
- //};
- //年级范围
- ListControlOptions lcopGrade = new ListControlOptions
- {
- Name = "GradeYear",
- TextField = "Name",
- ValueField = "Value",
- ColumnCount = 4,
- SelectedValueUrl = @Url.Content("~/ExecutableFreeSelectionCouse/GradeYear?ExecutableFreeSelectionCouseID=" + Model.ExecutableFreeSelectionCouseID)
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/SelectCourseManage/ExecutableFreeSelectionCouseEdit.js"
- type="text/javascript">
- </script>
- <script type="text/javascript">
- var SelectionCourse = "@EMIS.ViewModel.CF_HandleMode.SelectionCourse";
- var TeachingMethod = "@((int)EMIS.ViewModel.EM_TeachingMethod.Lecturer)";
- $(function () {
- $("#Credit").val(parseFloat($("#Credit").val()).toFixed(1));
- $("#TheoryCourse").keyup(function () {
- recalculate();
- });
- $("#Practicehours").keyup(function () {
- recalculate();
- });
- $("#TheoryWeeklyNum").keyup(function () {
- recalculate();
- });
- $("#PracticeWeeklyNum").keyup(function () {
- recalculate();
- });
- //$("#HandleModeID").val("2");
- });
- function recalculate() {
- var theoryCourse = parseInt($("#TheoryCourse").val() == "" ? "0" : $("#TheoryCourse").val());
- var practicehours = parseInt($("#Practicehours").val() == "" ? "0" : $("#Practicehours").val());
- var theoryWeeklyNum = parseInt($("#TheoryWeeklyNum").val() == "" ? "0" : $("#TheoryWeeklyNum").val());
- var practiceWeeklyNum = parseInt($("#PracticeWeeklyNum").val() == "" ? "0" : $("#PracticeWeeklyNum").val());
- var totalHours = theoryCourse + practicehours;
- var totalWeeklyNum = theoryWeeklyNum + practiceWeeklyNum;
- var weeklyHours = totalHours / totalWeeklyNum;
- var weeklyNum = weeklyHours / 2;
- $("#Totalhours").val(totalHours);
- $("#SchoolweeksNum").val(totalWeeklyNum);
- $("#WeeklyHours").val(weeklyHours);
- $("#WeeklyNum").val(weeklyNum);
- }
- function calculate() {
- var theoryHours = parseFloat($("#TheoryCourse").val());
- var practiceHours = parseFloat($("#Practicehours").val());
- var trialHours = parseFloat($("#Trialhours").val());
- if (isNaN(theoryHours)) theoryHours = 0;
- if (isNaN(practiceHours)) practiceHours = 0;
- if (isNaN(trialHours)) trialHours = 0;
- var totalHours = theoryHours + practiceHours + trialHours;
- var timesEachWeek = parseFloat($("#WeeklyNum").val());
- if (isNaN(timesEachWeek)) timesEachWeek = totalHours;
- var theoryWeekNum = Math.ceil(theoryHours / timesEachWeek);
- var practiceWeekNum = Math.ceil(practiceHours / timesEachWeek);
- var trialWeekNum = Math.ceil(trialHours / timesEachWeek);
- var totalWeekNum = theoryWeekNum + practiceWeekNum + trialWeekNum;
- $("#Totalhours").val(totalHours.toString());
- $("#TheoryWeeklyNum").val(theoryWeekNum.toString());
- $("#PracticeWeeklyNum").val(practiceWeekNum.toString());
- $("#TrialWeeklyNum").val(trialWeekNum.toString());
- $("#SchoolweeksNum").val(totalWeekNum.toString());
- }
- function setStartEndWeeklyNum() {
- if ($("#StartWeeklyNum").val() != "" && $("#EndWeeklyNum").val() != "")
- $("#StartEndWeeklyNum").val($("#StartWeeklyNum").val() + "-" + $("#EndWeeklyNum").val());
- DefaultClassNo();
- }
- //function reload() { }
- function selectCoursesTime() {
- trigger = $(this);
- var dataRowIndex = parseInt(trigger.parents('tr').attr('xRowIndex'));
- var dataRow = $("#dgSchedulingList").cmsXDataTable('getRows')[dataRowIndex];
- // var ddlClassroomType = trigger.parents('tr').find('[name*=ClassroomTypeID]');
- // var weekDay = trigger.parents('tr').find('[name*=Weekday]');
- $.popupTopWindow('添加节次', CMS_SystemConfig.VirtualDirectoryPath + '/ExecutableFreeSelectionCouse/CoursesTimeList?' + '&FromMNU=' +
- mnu, 560, 480, CoursesTimeSelect_Close, null);
- }
- function CoursesTimeSelect_Close(coursesTimeList) {
- if (!coursesTimeList) return;
- if (coursesTimeList.length == 0) return;
- trigger.triggerbox("setValue", coursesTimeList);
- trigger = null;
- }
- function selectClassroom() {
- if ($("#StartEndWeeklyNum").val() == null || $("#StartEndWeeklyNum").val() == "") {
- $.messager.alert('系统信息', '请先填写开始周次和结束周次。');
- return;
- }
- trigger = $(this);
- var dataRowIndex = parseInt(trigger.parents('tr').attr('xRowIndex'));
- var dataRow = $("#dgSchedulingList").cmsXDataTable('getRows')[dataRowIndex];
- var ddlClassroomType = trigger.parents('tr').find('[name*=ClassroomTypeID]');
- var weekDay = dataRow.Weekday; //trigger.parents('tr').find('[name*=WeekDay]');
- var coursesTimeID = dataRow.CoursesTimeID;
- if (ddlClassroomType.val() != '-1') {
- $.popupTopWindow('添加教室', CMS_SystemConfig.VirtualDirectoryPath + '/ExecutableFreeSelectionCouse/CourseProcessClassroomList?MaxSelect=1&MinSeatCount='
- + '&schedulingWeek=' + $("#StartEndWeeklyNum").val() + "&weekDay=" + weekDay + "&coursesTimeID="
- + coursesTimeID + '&ClassroomTypeID=' + ddlClassroomType.val() + '&FromMNU=' +
- mnu, 540, 480, ClassroomSelect_Close, null);
- } else {
- $.popupTopWindow('添加教室', CMS_SystemConfig.VirtualDirectoryPath + '/ExecutableFreeSelectionCouse/CourseProcessClassroomList?MaxSelect=1&MinSeatCount='
- + '&schedulingWeek=' + $("#StartEndWeeklyNum").val() + "&weekDay=" + weekDay + "&coursesTimeID="
- + coursesTimeID + '&FromMNU=' +
- mnu, 540, 480, ClassroomSelect_Close, null);
- }
- }
- function ClassroomSelect_Close(classroomList) {
- if (!classroomList) return;
- if (classroomList.length == 0) return;
- trigger.triggerbox("setValue", classroomList);
- trigger = null;
- }
- function ExecutableFreeSelectionCouse_SchedulingAdd() {
- var schedulingViewList = $("#dgSchedulingList").cmsXDataTable("getRows");
- schedulingViewList.push({ Weekday: "", CoursesTimeID: "", ClassroomID: "" });
- //schedulingViewList.push("");
- $("#dgSchedulingList").cmsXDataTable("loadData", { rows: schedulingViewList, total: schedulingViewList.length });
- }
- function ExecutableFreeSelectionCouse_SchedulingDelete() {
- var d = [];
- $.each($("#dgSchedulingList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- var schedulingViewList = $("#dgSchedulingList").cmsXDataTable("getRows");
- var i, j;
- var len = schedulingViewList.length;
- for (i = len - 1; i >= 0; i--) {
- for (j = 0; j < d.length; j++) {
- //schedulingViewList.splice(i, 1);
- if (schedulingViewList[i].Weekday == d[j].Weekday && schedulingViewList[i].CoursesTimeID == d[j].CoursesTimeID && schedulingViewList[i].ClassroomID == d[j].ClassroomID) {
- schedulingViewList.splice(i, 1);
- break;
- }
- }
- }
- $("#dgSchedulingList").cmsXDataTable("loadData", { rows: schedulingViewList, total: schedulingViewList.length });
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions { HttpMethod = "Post", OnSuccess = "VerifySave" }))
- {
- <div class="p_title">
- @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 任选设定信息</div>*@
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.ExecutableFreeSelectionCouseID)
- @Html.HiddenFor(x => x.CollegeID)
- @Html.HiddenFor(x => x.IsNeedVerify)
- <table cellpadding="0" cellspacing="0" id="executableFreeSelectionCouseTable">
- <tr>
- <td>
- @Html.LabelFor(x => x.DefaultClassName):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.DefaultClassName, new Dictionary<string, object> { { "style", "width:85%;" } })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SchoolyearCode):
- </td>
- <td>
- @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions
- {
- BindType = DropdownListBindType.PleaseSelect,
- TextField = "Text",
- ValueField = "Value",
- ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
- SelectedValue = BaseExtensions.GetCurrentSchoolYearID()
- })
- </td>
- <td>
- @Html.LabelFor(x => x.CourseName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.FreeSelectionCouseID, new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "FreeSelectionCouseID",
- OnSelect = "reload",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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
- }
- })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.CourseTypeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID)
- </td>
- <td>
- @Html.LabelFor(x => x.DepartmentName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.CourseStructureID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseStructure, x => x.CourseStructureID)
- </td>
- <td>
- @Html.LabelFor(x => x.CourseCategoryID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseCategory, x => x.CourseCategoryID)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.CourseQualityID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseQuality, x => x.CourseQualityID)
- </td>
- <td>
- @Html.LabelFor(x => x.TeachinglanguageID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Teachinglanguage, x => x.TeachinglanguageID)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ExaminationModeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, x => x.ExaminationModeID)
- </td>
- <td>@Html.LabelFor(x=>x.ResultTypeID)
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType, (x => x.ResultTypeID))
- </td>
- </tr>
- @*<tr>
- <td>@Html.LabelFor(x => x.SchoolyearNumID):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID, null, new Dictionary<string, string> { { "disabled", "disabled" } })
- </td>
- <td>@Html.LabelFor(x => x.SchoolcodeID):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Semester, x => x.SchoolcodeID, null, new Dictionary<string, string> { { "disabled", "disabled" } })
- </td>
- </tr>*@
- <tr>
- <td>
- @Html.LabelFor(x => x.PracticeTypeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_PracticeType, x => x.PracticeTypeID)
- </td>
- <td>
- @Html.LabelFor(x => x.IsNeedMaterial):
- </td>
- <td>
- @Html.CheckBoxFor(x => x.IsNeedMaterial)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.HandleModeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HandleMode, (x => x.HandleModeID))
- </td>
- <td>
- @Html.LabelFor(x => x.PeopleNumlower):
- </td>
- <td>
- @Html.TextBoxFor(x => x.PeopleNumlower)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Credit):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Credit)
- </td>
- <td>
- @Html.LabelFor(x => x.PeopleNumlimit):
- </td>
- <td>
- @Html.TextBoxFor(x => x.PeopleNumlimit)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.TheoryCourse):
- </td>
- <td>
- @Html.TextBoxFor(x => x.TheoryCourse, new { onchange = "recalculate();" })
- </td>
- <td>
- @Html.LabelFor(x => x.Practicehours):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Practicehours, new { onchange = "recalculate();" })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Trialhours):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Trialhours, new { onchange = "recalculate();" })
- </td>
- <td>
- @Html.LabelFor(x => x.Totalhours):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td colspan="4">
- <div id="weekExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
- background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0;"
- onclick="swapWeekSettings();">
- </div>
- <div style="float: left; cursor: pointer; color: red;" onclick="swapWeekSettings();">
- 上课周次信息
- </div>
- </td>
- </tr>
- <tr style="display: ">
- <td>@Html.LabelFor(x => x.TheoryWeeklyNum):
- </td>
- <td>@Html.TextBoxFor(x => x.TheoryWeeklyNum)
- </td>
- <td>@Html.LabelFor(x => x.PracticeWeeklyNum):
- </td>
- <td>@Html.TextBoxFor(x => x.PracticeWeeklyNum)
- </td>
- </tr>
- <tr style="display: ">
- <td>@Html.LabelFor(x => x.TrialWeeklyNum):
- </td>
- <td>@Html.TextBoxFor(x => x.TrialWeeklyNum)
- </td>
- <td>@Html.LabelFor(x => x.SchoolweeksNum):
- </td>
- <td>@Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr style="display: ">
- <td>@Html.LabelFor(x => x.StartWeeklyNum):
- </td>
- <td>@Html.TextBoxFor(x => x.StartWeeklyNum, new { onchange = "setStartEndWeeklyNum();" })
- </td>
- <td>@Html.LabelFor(x => x.EndWeeklyNum):
- </td>
- <td>@Html.TextBoxFor(x => x.EndWeeklyNum, new { onchange = "setStartEndWeeklyNum();" })
- </td>
- </tr>
- <tr style="display: ">
- <td>@Html.LabelFor(x => x.WeeklyHours):
- </td>
- <td>@Html.TextBoxFor(x => x.WeeklyHours)
- </td>
- <td>@Html.LabelFor(x => x.WeeklyNum):
- </td>
- <td>@Html.TextBoxFor(x => x.WeeklyNum)
- </td>
- </tr>
- @*<tr>
- <td>
- @Html.LabelFor(x => x.Weekday):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.ES_WeekDay, (x => x.Weekday))
- </td>
- <td>
- @Html.LabelFor(x => x.CoursesTimeID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CoursesTimeID, cgopCoursesTime)
- </td>
- </tr> *@
- <tr>
- <td>
- @Html.LabelFor(x => x.StartEndWeeklyNum):
- </td>
- <td>
- @Html.TextBoxFor(x => x.StartEndWeeklyNum, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>
- @Html.LabelFor(x => x.ClassroomName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.ClassroomID, cgop)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Scheduling):
- </td>
- <td colspan="3">
- @Html.ContextMenuBar("Edit-SchedulingGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn { HeaderText="", FieldName="ExecutableFreeSelectionCouseSchedulingID" },
- new DictionaryDropdownListColumn { HeaderText="授课星期", FieldName="Weekday", DictionaryType=EMIS.ViewModel.DictionaryItem.ES_WeekDay, Align=AlignStyle.Center, Width=80 },
- new TriggerBoxColumn { HeaderText="节次", FieldName="CoursesTimeID", TextFieldName="Times", TargetTextFieldName="Times", TargetFieldName="CoursesTimeID", TriggerHandle="selectCoursesTime", Align=AlignStyle.Center, Width=80 },
- //new DictionaryDropdownListColumn { HeaderText="教室类型", FieldName="ClassroomTypeID", DictionaryType=EMIS.ViewModel.DictionaryItem.CF_ClassroomType , Align=AlignStyle.Center, Width=80 },
- //new TriggerBoxColumn { HeaderText="教室", FieldName="ClassroomID", TextFieldName="ClassroomName", TargetTextFieldName="Name", TargetFieldName="ClassroomID", TriggerHandle="selectClassroom", Align=AlignStyle.Center, Width=80 }
- },
- PageSize = 5,
- IsPostBack = true,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExecutableFreeSelectionCouse/GetSchedulingViewList?ExecutableFreeSelectionCouseID=" + Model.ExecutableFreeSelectionCouseID),
- ID = "dgSchedulingList",
- //OnLoadSuccessFun = "SetTotalView",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- MaxHeight = 120
- })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.GradeYear):
- </td>
- <td colspan="3">
- @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, lcopGrade)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SpecialtyID):
- </td>
- <td colspan="3">
- @Html.ContextMenuBar("Edit-SpecialtyGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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("~/ExecutableFreeSelectionCouse/SpecialtyList?ExecutableFreeSelectionCouseID=" + Request["ExecutableFreeSelectionCouseID"]),
- IsPostBack = true,
- ID = "dgSpecialtyList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Teachers):
- </td>
- <td colspan="3">@Html.ContextMenuBar("Edit-TeacherGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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("~/ExecutableFreeSelectionCouse/TeacherList?ExecutableFreeSelectionCouseID=" + Request["ExecutableFreeSelectionCouseID"]),
- IsPostBack = true,
- ID = "dgTeacherList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- MaxHeight = 65
- })
- </td>
- </tr>
- @*<tr>
- <td>@Html.LabelFor(x => x.TeachingPlaceID):
- </td>
- <td colspan="3">@Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.EM_TeachingPlace, lcoptp)
- </td>
- </tr>*@
- <tr>
- <td>
- @Html.LabelFor(x => x.TeachingModeID):
- </td>
- <td colspan="3">
- @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, lcop)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Remarks):
- </td>
- <td colspan="3">
- @Html.TextAreaFor(x => x.Remarks, new Dictionary<string, object> { { "style", "width:85%;" } })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|