123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- @model EMIS.ViewModel.Specialtyclass.GrademajorView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "BatchAdd";
- //院系所
- ComboGridOptions cgopCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- OnSelect = "QueryComboGridList",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 },
- new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.3 }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- //专业名称
- ComboGridOptions cgopStandard = new ComboGridOptions
- {
- TextField = "StandardName",
- ValueField = "StandardID",
- ID = "DictionaryStandard",
- Name = "DictionaryStandard",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/GrademajorBindComboGridOptions"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
-
- }
- @section scripts{
- <script src="~/Scripts/Business/Specialtyclass/GrademajorBatchAdd.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- <style>
- .labelClass {
- width: 20%;
- }
- </style>
- }
- <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("BatchSave")
- </div>
- </div>
- <div class="search_list">
- <table cellpadding="0" cellspacing="0" id="grademajorBatchAdd">
- <tr>
- <td>
- @Html.LabelFor(x => x.CollegeID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
- </td>
- <td>
- @Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td>
- @*@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Schoolyear, x => x.SchoolyearID, DropdownListBindType.PleaseSelect, new ComboGridOptions()
- {
- OnSelect = "QueryComboGridList"
- })*@
- @Html.SchoolYearDropDownListFor(x => x.SchoolyearID, new DropdownListOptions()
- {
- OnSelect = "QueryComboGridList"
- })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.StandardName):
- </td>
- <td colspan="3">
- @Html.ComboGridFor(x => x.StandardID, cgopStandard)
- </td>
- </tr>
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.BatchSchoolyearID):
- </td>
- <td>
- @*@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Schoolyear, x => x.BatchSchoolyearID, DropdownListBindType.PleaseSelect)*@
- @Html.SchoolYearDropDownListFor(x => x.BatchSchoolyearID)
- </td>
- <td style="color:red;">
- @Html.LabelFor(x => x.IsOverwrite):
- </td>
- <td>
- @Html.CheckBoxFor((x => x.IsOverwrite))
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|