123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- @model EMIS.ViewModel.MinorManage.MinorPlanManage.MinorSpecialtyView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions cgopStandard = new ComboGridOptions
- {
- TextField = "StandardName",
- ValueField = "StandardID",
- OnSelect = "reload",
- Name = "StandardDictionaryDropDown",
- ID = "StandardDictionaryDropDown",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- 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
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/MinorManage/MinorPlanManage/MinorPlanApplyEdit.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>
- @if (Request["isView"] != "1")
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- }
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.GrademinorID)
- @Html.Hidden("MinorSpecialtyCourse")
- @Html.HiddenFor(x=>x.YearID)
- <table cellpadding="0" cellspacing="0" id="planApplicationtable">
- <tr>
-
- <td style="width: 80px;">@Html.LabelFor(x => x.YearID):
- </td>
- <td>@Html.SchoolYearDropDownListFor(x => x.YearID, new DropdownListOptions { OnSelect = "reload", OnLoadSuccess = "reload"})
- </td>
- <td>@Html.LabelFor(x => x.StandardName):
- </td>
- <td>@Html.ComboGridFor(x => x.StandardID, cgopStandard, new Dictionary<string, string> { { "data-condition", "dgStandardAndMinorSpecialtyCourseViewList" } })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.StudentLimit):
- </td>
- <td>@Html.TextBoxFor(x => x.StudentLimit)
- </td>
- <td>@Html.LabelFor(x => x.CollegeID):
- </td>
- <td>@Html.ComboGridFor(x => x.CollegeID, cgopcollege)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td>@Html.TextBoxFor(x=>x.SchoolyearCode)
- </td>
- <td>@Html.LabelFor(x => x.OpenStatusStr)
- </td>
- <td>@Html.TextBoxFor(x=>x.OpenStatusStr)
- </td>
- </tr>
- <tr>
- <td><label>辅修计划:</label>
- </td>
- <td colspan="3">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorPlanID" },
- new LinkButtonColumn { FieldName="SchoolcodeStr", HeaderText="学年学期", Align=AlignStyle.Center , Handle="edit", Width=0.08 },
- new BoundFieldColumn { FieldName="YearID", HeaderText="年级", Align=AlignStyle.Center , Width=0.04},
- new BoundFieldColumn { FieldName="SpecialtyCode", HeaderText="专业代码", Align=AlignStyle.Center , Width=0.05 },
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.05},
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 },
- new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05},
- new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.03},
- new BoundFieldColumn { FieldName="TheoryCourse", HeaderText="理论学时", Align=AlignStyle.Center, Width=0.05},
- new BoundFieldColumn { FieldName="Practicehours", HeaderText="实践学时", Align=AlignStyle.Center, Width=0.05},
- new BoundFieldColumn { FieldName="Trialhours", HeaderText="实验学时", Align=AlignStyle.Center, Width=0.05},
- new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.04},
- new BoundFieldColumn { FieldName="SchoolyearNumName", HeaderText="开课学年", Align=AlignStyle.Center, Width=0.05},
- new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="开课学期", Align=AlignStyle.Center, Width=0.05},
- new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center},
- new BoundFieldColumn { FieldName="CollegeName", HeaderText="开课"+@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center},
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/MinorSpecialtyPlan/GetListByMinorSpecialtyID?MinorSpecialtyID=") + @Model.GrademinorID,
- ID = "dgMinorSpecialtyPlanList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|