123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- @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",
- Name = "CollegeDropdown",
- ID = "CollegeDropdown",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), 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",
- Name = "CollegeDropdown",
- ID = "CollegeDropdown",
- IsEnabled=false,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- }
- 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,
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/MinorManage/MinorPlanManage/MinorPlanApplyChoiceList.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- var CollegeName = '@EMIS.Utility.RSL.Get("College")';
- var DataRange = '@DataRange';
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "formSuccessReloadNoClose",
- 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;">@Html.ContextMenuBar("Apply")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.GradeMinorApplicationID)
- @Html.Hidden("MinorSpecialtyCourse")
- @if (DataRange != (int)EMIS.ViewModel.SYS_DataRange.All)
- {
- @Html.HiddenFor(x => x.CollegeID)
- }
- <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" }, new Dictionary<string, string> { { "data-condition", "dgStandardAndMinorSpecialtyCourseViewList" } })
- </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, new Dictionary<string, string> { { "data-condition", "dgStandardAndMinorSpecialtyCourseViewList" } })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Remarks):
- </td>
- <td colspan="3">@Html.TextAreaFor(x => x.Remarks, new Dictionary<string, object> { { "style", "width: 98%;" } })
- </td>
- </tr>
- <tr>
- <td><label>辅修课程:</label>
- </td>
- <td colspan="3">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorCourseID" },
- new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center },
- new DictionaryDropdownListColumn { FieldName="StarttermID", HeaderText="开课学期",DictionaryType=EMIS.ViewModel.DictionaryItem.CF_Startterm, Align=AlignStyle.Center },
- new TextBoxColumn { FieldName="Credit", HeaderText="学分",IsRequired=true, Align=AlignStyle.Center },
- new TextBoxColumn { FieldName="TheoryCourse", HeaderText="理论学时",IsRequired=true, Align=AlignStyle.Center },
- new TextBoxColumn { FieldName="Practicehours", HeaderText="实践学时",IsRequired=true, Align=AlignStyle.Center },
- new TextBoxColumn { FieldName="TheoryWeeklyNum", HeaderText="理论周次", Width=60 },
- new TextBoxColumn { FieldName="PracticeWeeklyNum", HeaderText="实践周次", Width=60 },
- new TextBoxColumn { FieldName="TrialWeeklyNum", HeaderText="实验周次", Width=60 },
- new TextBoxColumn { FieldName="StartWeeklyNum", HeaderText="开始周次", IsRequired=true, Width=60 },
- new TextBoxColumn { FieldName="EndWeeklyNum", HeaderText="结束周次", IsRequired=true, Width=60 },
- new TextBoxColumn { FieldName="WeeklyHours", HeaderText="周学时", Width=60 },
- new TextBoxColumn { FieldName="WeeklyNum", HeaderText="每周次数", Width=60 },
- new BoundFieldColumn { FieldName="ResultTypeID", HeaderText="成绩类型", Align=AlignStyle.Center, Width=0.1, IsHidden=true },
- new DictionaryDropdownListColumn { FieldName="HandleModeID", HeaderText="处理方式", DictionaryType=EMIS.ViewModel.DictionaryItem.CF_HandleMode, Align=AlignStyle.Center },
- new CheckButtonColumn { FieldName="IsNeedMaterial", HeaderText="是否需要教材", Align=AlignStyle.Center }
- },
- IsAutoLoad = false,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/MinorPlanApply/StandardAndMinorSpecialtyCourseViewList"),
- ID = "dgStandardAndMinorSpecialtyCourseViewList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|