123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- @model EMIS.ViewModel.CultureplanManage.PlanManagement.AdultSpecialtyPlanView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "SpecialtyCopyList";
- ComboGridOptions cgop = new ComboGridOptions
- {
- ID = "SpecialtyID",
- Name = "SpecialtyID",
- TextField = "StandardName",
- ValueField = "SpecialtyID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="Code", HeaderText="专业代码", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Width=0.1, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Specialty/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions cgopCourse = new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- Name = "CoursematerialIDDropdownGridBo",
- ID = "CoursematerialIDDropdownGridBo",
- //OnSelect = "QueryCoursematerialComboGrid",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- function SpecialtyPlan_CopySave() {
- var BeForeYearID = $("#GrademajorBeForeYear").combobox("getValue");
- if (BeForeYearID == nonSelect) {
- $.messager.alert("系统提示", "请选择源年级!");
- return;
- }
- var AfterYearID = $("#GrademajorAfterYear").combobox("getValue");
- if (AfterYearID == nonSelect) {
- $.messager.alert("系统提示", "请选择目标年级!");
- return;
- }
- if (BeForeYearID > AfterYearID) {
- $.messager.alert("系统提示", "源年级要小于目标年级!");
- return;
- }
- $(document.forms[0]).submit();
- }
- </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="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("SpeCopy")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.PlanApplicationID)
- @Html.Hidden("SpecialtyCourse")
- <table cellpadding="0" cellspacing="0" id="planApplicationtable">
- <tr>
- <td style="width: 80px;">@Html.LabelFor(x => x.GrademajorBeForeYear):
- </td>
- <td>@Html.SchoolYearDropDownList(new DropdownListOptions
- {
- ID = "GrademajorBeForeYear",
- Name = "GrademajorBeForeYear",
- })
- </td>
- <td style="width: 80px;">@Html.LabelFor(x => x.GrademajorBeForeGrademajor):
- </td>
- <td>@Html.ComboGridFor(x => x.GrademajorBeForeGrademajor, cgop)
- </td>
- </tr>
- <tr>
- <td style="width: 80px;">@Html.LabelFor(x => x.CourseTypeID):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID)
- </td>
- <td style="width: 80px;">@Html.LabelFor(x => x.CoursematerialID):
- </td>
- <td>@Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
- </td>
- </tr>
- <tr>
- <td style="width: 80px;">@Html.LabelFor(x => x.GrademajorAfterYear):
- </td>
- <td>@Html.SchoolYearDropDownList(new DropdownListOptions
- {
- ID = "GrademajorAfterYear",
- Name = "GrademajorAfterYear",
- })
- </td>
- <td>@Html.LabelFor(x => x.IsOverwrite)
- </td>
- <td>@Html.CheckBoxFor((x => x.IsOverwrite))
- </td>
- </tr>
- <tr>
- @*<td>@Html.LabelFor(x => x.StarttermID):</td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Semester, (x => x.SchoolcodeID))
- </td>
- <td>
- </td>
- <td>
- </td>*@
- </tr>
- </table>
- </div>
- }
- </div>
|