123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525 |
- @model EMIS.ViewModel.CultureplanManage.PlanManagement.SpecialtyPlanView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- var isEnabled = Request["type"] == "detail" ? false : true;
-
- //年级专业
- ComboGridOptions cgopGrademajor = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "GrademajorID",
- OnSelect = "queryGrademajor",
- IsEnabled = Request["type"] == "detail" ? false : (Request["type"] == "edit" ? false : true),
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.2 },
- new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.4 }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- //课程信息
- ComboGridOptions cgopCourse = new ComboGridOptions
- {
- ID = "CoursematerialID",
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- IsEnabled = Request["type"] == "detail" ? false : (Request["type"] == "edit" ? false : true),
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 },
- new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.1, CustomFormatFun="SetRedColumn" }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Coursematerial/GetEnableAndUseCoursematerialView?coursematerialID=" + Model.CoursematerialID),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- //教研室
- ComboGridOptions cgopDepartment = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "DepartmentID",
- IsEnabled = isEnabled,
- 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.2 },
- new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CourseCollege"), Align=AlignStyle.Center, Width=0.2 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Department/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
-
- //授课方式
- ListControlOptions lcoptm = new ListControlOptions
- {
- ID = "TeachingModeIDList",
- Name = "TeachingModeIDList",
- TextField = "Name",
- ValueField = "Value",
- ColumnCount = 4,
- IsEnabled = isEnabled,
- SelectedValueUrl = @Url.Content("~/SpecialtyPlan/TeachingModeTypeList?specialtyPlanID=" + Model.SpecialtyPlanID)
- };
- //授课地点
- ListControlOptions lcoptp = new ListControlOptions
- {
- ID = "TeachingPlaceIDList",
- Name = "TeachingPlaceIDList",
- TextField = "Name",
- ValueField = "Value",
- ColumnCount = 4,
- IsEnabled = isEnabled,
- SelectedValueUrl = @Url.Content("~/SpecialtyPlan/TeachingPlaceList?specialtyPlanID=" + Model.SpecialtyPlanID)
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/CultureplanManage/SpecialtyPlanEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- }
- <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"
- }))
- {
- <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;">
- @if (Request["type"] != "detail")
- {
- @Html.ContextMenuBar("Edit")
- }
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.SpecialtyPlanID)
- <table cellpadding="0" cellspacing="0" id="specialtyplantable">
- <tr>
- <td style="color: red;">
- @Html.LabelFor(x => x.SchoolyearCode):
- </td>
- <td>
- @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions
- {
- BindType = DropdownListBindType.PleaseSelect,
- TextField = "Text",
- ValueField = "Value",
- IsEnabled = Request["type"] == "detail" ? false : (Request["type"] == "edit" ? false : true),
- ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
- })
- </td>
- <td style="color:red;">
- @Html.LabelFor(x => x.GrademajorName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.GrademajorID, cgopGrademajor)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.GradeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeID), new DropdownListOptions() { IsEnabled = false })
- </td>
- <td>
- @Html.LabelFor(x => x.StandardCode):
- </td>
- <td>
- @Html.TextBoxFor(x => x.StandardCode, new TextBoxOptions() { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.StandardName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x => x.StandardID), new DropdownListOptions() { IsEnabled = false })
- </td>
- <td>
- @Html.LabelFor(x => x.EducationID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), new DropdownListOptions() { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.LearningformID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, (x => x.LearningformID), new DropdownListOptions() { IsEnabled = false })
- </td>
- <td>
- @Html.LabelFor(x => x.LearnSystem):
- </td>
- <td>
- @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.CourseName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
- </td>
- <td style="color:red;">
- @Html.LabelFor(x => x.DepartmentName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.CourseStructureName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseStructure, x => x.CourseStructureID, new DropdownListOptions() { IsEnabled = isEnabled })
- </td>
- <td>
- @Html.LabelFor(x => x.CourseCategoryName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseCategory, x => x.CourseCategoryID, new DropdownListOptions() { IsEnabled = isEnabled })
- </td>
- </tr>
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.CourseTypeName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID, new DropdownListOptions() { IsEnabled = isEnabled })
- </td>
- <td>
- @Html.LabelFor(x => x.CourseQualityName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseQuality, x => x.CourseQualityID, new DropdownListOptions() { IsEnabled = isEnabled })
- </td>
- </tr>
- <tr>
- <td colspan="4" style="padding:1px;height:10px;">
- <div id="teachingSettingExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
- background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;"
- onclick="swapTeachingSetting();">
- </div>
- <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapTeachingSetting();">
- 教学设置信息
- </div>
- </td>
- </tr>
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.Credit):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Credit, new TextBoxOptions() { IsEnabled = isEnabled })
- </td>
- <td style="color:red;">
- @Html.LabelFor(x => x.HandleModeName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HandleMode, (x => x.HandleModeID), new DropdownListOptions() { IsEnabled = isEnabled })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.TheoryCourse):
- </td>
- <td>
- @Html.TextBoxFor(x => x.TheoryCourse, new TextBoxOptions() { IsEnabled = isEnabled })
- </td>
- <td>
- @Html.LabelFor(x => x.Practicehours):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Practicehours, new TextBoxOptions() { IsEnabled = isEnabled })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Trialhours):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Trialhours, new TextBoxOptions() { IsEnabled = isEnabled })
- </td>
- <td>
- @Html.LabelFor(x => x.Totalhours):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Totalhours, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.TheoryWeeklyNum):
- </td>
- <td>
- @Html.TextBoxFor(x => x.TheoryWeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled })
- </td>
- <td>
- @Html.LabelFor(x => x.PracticeWeeklyNum):
- </td>
- <td>
- @Html.TextBoxFor(x => x.PracticeWeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.TrialWeeklyNum):
- </td>
- <td>
- @Html.TextBoxFor(x => x.TrialWeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled })
- </td>
- <td>
- @Html.LabelFor(x => x.SchoolweeksNum):
- </td>
- <td>
- @Html.TextBoxFor(x => x.SchoolweeksNum, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.WeeklyHours):
- </td>
- <td>
- @Html.TextBoxFor(x => x.WeeklyHours, new TextBoxOptions() { IsEnabled = isEnabled })
- </td>
- <td style="color:red;">
- @Html.LabelFor(x => x.WeeklyNum):
- </td>
- <td>
- @Html.TextBoxFor(x => x.WeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.StartWeeklyNum):
- </td>
- <td>
- @Html.TextBoxFor(x => x.StartWeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled })
- </td>
- <td>
- @Html.LabelFor(x => x.EndWeeklyNum):
- </td>
- <td>
- @Html.TextBoxFor(x => x.EndWeeklyNum, new TextBoxOptions() { IsEnabled = isEnabled })
- </td>
- </tr>
- <tr>
- <td colspan="4" style="padding:1px;height:10px;">
- <div id="otherExpander" style="width: 16px; float: left; height: 16px; cursor: pointer;
- background: url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0;"
- onclick="swapother();">
- </div>
- <div style="float: left;height: 10px; cursor: pointer; color: red;" onclick="swapother();">
- 其它信息
- </div>
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.IsSpecialtycore):
- </td>
- <td>
- @if (Request["type"] == "detail")
- {
- @Html.CheckBoxFor(x => x.IsSpecialtycore, new Dictionary<string, object>() { { "disabled", isEnabled } })
- }
- else
- {
- @Html.CheckBoxFor(x => x.IsSpecialtycore)
- }
- </td>
- <td>
- @Html.LabelFor(x => x.IsCooperation):
- </td>
- <td>
- @if (Request["type"] == "detail")
- {
- @Html.CheckBoxFor(x => x.IsCooperation, new Dictionary<string, object>() { { "disabled", isEnabled } })
- }
- else
- {
- @Html.CheckBoxFor(x => x.IsCooperation)
- }
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.IsRequired):
- </td>
- <td>
- @if (Request["type"] == "detail")
- {
- @Html.CheckBoxFor(x => x.IsRequired, new Dictionary<string, object>() { { "disabled", isEnabled } })
- }
- else
- {
- @Html.CheckBoxFor(x => x.IsRequired)
- }
- </td>
- <td>
- @Html.LabelFor(x => x.IsElective):
- </td>
- <td>
- @if (Request["type"] == "detail")
- {
- @Html.CheckBoxFor(x => x.IsElective, new Dictionary<string, object>() { { "disabled", isEnabled } })
- }
- else
- {
- @Html.CheckBoxFor(x => x.IsElective)
- }
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.IsNetworkCourse):
- </td>
- <td>
- @if (Request["type"] == "detail")
- {
- @Html.CheckBoxFor(x => x.IsNetworkCourse, new Dictionary<string, object>() { { "disabled", isEnabled } })
- }
- else
- {
- @Html.CheckBoxFor(x => x.IsNetworkCourse)
- }
- </td>
- <td>
- @Html.LabelFor(x => x.IsMainCourse):
- </td>
- <td>
- @if (Request["type"] == "detail")
- {
- @Html.CheckBoxFor(x => x.IsMainCourse, new Dictionary<string, object>() { { "disabled", isEnabled } })
- }
- else
- {
- @Html.CheckBoxFor(x => x.IsMainCourse)
- }
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.IsNeedMaterial):
- </td>
- <td>
- @if (Request["type"] == "detail")
- {
- @Html.CheckBoxFor(x => x.IsNeedMaterial, new Dictionary<string, object>() { { "disabled", isEnabled } })
- }
- else
- {
- @Html.CheckBoxFor(x => x.IsNeedMaterial)
- }
- </td>
- <td>
- @Html.LabelFor(x => x.CourseFineID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseFine, x => x.CourseFineID, new DropdownListOptions() { IsEnabled = isEnabled })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.PracticeTypeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_PracticeType, x => x.PracticeTypeID, new DropdownListOptions() { IsEnabled = isEnabled })
- </td>
- <td>
- @Html.LabelFor(x => x.TeachinglanguageID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Teachinglanguage, x => x.TeachinglanguageID, new DropdownListOptions() { IsEnabled = isEnabled })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ExaminationModeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, x => x.ExaminationModeID, new DropdownListOptions() { IsEnabled = isEnabled })
- </td>
- <td>
- @Html.LabelFor(x => x.ResultTypeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType, (x => x.ResultTypeID), new DropdownListOptions() { IsEnabled = isEnabled })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.TeachingModeIDList):
- </td>
- <td colspan="3">
- @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, lcoptm)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.TeachingPlaceIDList):
- </td>
- <td colspan="3">
- @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.EM_TeachingPlace, lcoptp)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">
- @if (Request["type"] == "detail")
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 35px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 35px" }
- })
- }
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|