123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- @model EMIS.ViewModel.SelectCourse.OptionalCourseSettingCreateView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Create";
- ComboGridOptions cgopSpecialty = new ComboGridOptions
- {
- TextField = "SpecialtyName",
- ValueField = "StandardID",
- OnSelect = "QueryStandardDropdownList",
- Name = "StandardID",
- ID = "StandardID",
- EmptyText = "全部",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="SpecialtyName", HeaderText="专业名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/TeachingPlan/SpecialtyList"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions cgopYear = new ComboGridOptions
- {
- TextField = "Years",
- ValueField = "Years",
- OnSelect = "QueryYearDropdownList",
- Name = "YearID",
- ID = "YearID",
- EmptyText = "全部",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Years", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/TeachingPlan/DropDown"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions cgopCourse = new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- Name = "CoursematerialIDDropdownGridBo",
- ID = "CoursematerialIDDropdownGridBo",
- OnSelect = "QueryCoursematerialComboGrid",
- EmptyText = "全部",
- 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 src="~/Scripts/Business/SelectCourseManage/OptionalCourseSettingCreate.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;">@Html.ContextMenuBar("Create")</div>
- </div>
- <div class="search_list">
- <table cellpadding="0" cellspacing="0" id="specialtyCourseable">
- <tr>
- <td>
- @Html.LabelFor(x => x.SchoolYearCode)
- </td>
- <td>
- @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, SelectedValue = ViewBag.SelectSchoolYearID, ItemSourceUrl = Url.Content("~/SchoolYear/DropDownAfterCurrent"), ID = "SchoolYear", Name = "SchoolYear"})
- @*@Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, SelectedValue = ViewBag.SelectSchoolYearID, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") })*@
- </td>
- @*<td>
- @Html.LabelFor(x => x.CampusID)
- </td>
- <td>
- @Html.ComboGridFor((x => x.CampusID), new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CampusID",
- OnSelect = "QueryCampusComboGridList",
- EmptyText = "全部",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Campus/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- })
- </td>*@
- <td>
- @Html.LabelFor(x => x.CollegeName)
- </td>
- <td>
- @Html.ComboGridFor((x => x.CollegeID), new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- OnSelect = "QueryCollegeComboGridList",
- EmptyText = "全部",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Grade)
- </td>
- <td>
- @Html.ComboGridFor((x => x.GradeID), cgopYear, new Dictionary<string, string> { })
- @*@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/TeachingPlan/DropDown"), TextField = "Text", ValueField = "Value", ID = "YearID", Name = "SchoolyearDropdown", OnSelect = "QueryYearDropdownList", OnLoadSuccess = "" }, new Dictionary<string, string> { })*@
- @*@Html.SchoolYearDropDownListFor((x => x.YearID), new DropdownListOptions { BindType = DropdownListBindType.SelectAll, OnSelect = "QueryYearDropdownList" })*@
- </td>
- <td>
- @Html.LabelFor(x => x.StandardDesc)
- </td>
- <td>
- @Html.ComboGridFor((x => x.StandardID), cgopSpecialty, new Dictionary<string, string> { })
- @*@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, x => x.StandardID, DropdownListBindType.PleaseSelect,
- new ComboGridOptions
- {
- OnSelect = "QueryStandardDropdownList"
- })*@
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.GrademajorName)
- </td>
- <td>
- @Html.ComboGridFor((x => x.GrademajorID), new ComboGridOptions
- {
- ID = "GrademajorID",
- Name = "GrademajorID",
- TextField = "Name",
- ValueField = "GrademajorID",
- OnSelect = "QueryCollegeComboGridList",
- EmptyText = "全部",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- })
- @*@Html.ComboGridFor((x => x.GrademajorID), new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "GrademajorID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- })*@
- </td>
- <td>@Html.LabelFor(x => x.CourseName)
- </td>
- <td>
- @Html.ComboGridFor((x => x.CoursematerialID), cgopCourse)
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|