123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- @model EMIS.ViewModel.MinorManage.MinorPlanManage.MinorPlanApplyView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- var DataRange = ViewBag.DataRange;
- ComboGridOptions cgopcollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- if (DataRange != (int)EMIS.ViewModel.SYS_DataRange.All)
- {
- cgopcollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- IsEnabled = false,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- }
- @section scripts{
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- function MinorPlanApplyGradeCopy_Confirm() {
- 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("GradeCopy")</div>
- </div>
- <div class="search_list">
-
- @if (DataRange != (int)EMIS.ViewModel.SYS_DataRange.All)
- {
- @Html.HiddenFor(x => x.BeForeCollegeID)
- }
- <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.BeForeCollegeID):
- </td>
- <td>@Html.ComboGridFor(x => x.BeForeCollegeID, cgopcollege)
- </td>
- </tr>
- <tr>
- <td style="width: 80px;">@Html.LabelFor(x => x.GrademajorAfterYear):
- </td>
- <td colspan="3">@Html.SchoolYearDropDownList(new DropdownListOptions
- {
- ID = "GrademajorAfterYear",
- Name = "GrademajorAfterYear",
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|