123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Entities;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- }
- @section scripts{
- <script src="~/Scripts/Business/GraduationManage/GraduationSetting/GraduationSchoolYear.js" type="text/javascript"></script>
- <script type="text/javascript">
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @Html.Position()
- <div class="p_SearchTitle">
- <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
- 查询条件</div>
- </div>
- <form id="formQuery" method="post" action="@Url.Content("~/GraduationSchoolYear/Excel")">
- @Html.PositionCondition()
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">学年:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Year, new DropdownListOptions
- {
- ID = "DictionarySchoolyear",
- Name = "DictionarySchoolyear",
- BindType = DropdownListBindType.SelectAll,
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgGraduationSchoolYearList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">学期:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Semester, new DropdownListOptions
- {
- ID = "DictionarySchoolcode",
- Name = "DictionarySchoolcode",
- BindType = DropdownListBindType.SelectAll,
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgGraduationSchoolYearList" } })
- </li>
- <li class="sn" style="padding-left: 5px; color: red;">当前学期:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
- {
- ID = "IsCurrentDropDown",
- Name = "IsCurrentDropDown",
- BindType = DropdownListBindType.SelectAll,
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgGraduationSchoolYearList" } })
- </li>
- <li class="sn" style="padding-left: 5px; color: red;">启用状态:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
- {
- ID = "IsEnableDropDown",
- Name = "IsEnableDropDown",
- BindType = DropdownListBindType.SelectAll,
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgGraduationSchoolYearList" } })
- </li>
- </ul>
- </div>
- </div>
- </form>
- <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("List")</div>
- </div>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="GraduationSchoolYearSettingID" },
- new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="Years", HeaderText="学年", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", OrderFieldName="SchoolcodeID", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="WeeksNum", HeaderText="周数", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn{FieldName="GraduateDate",HeaderText="毕业日期", Align=AlignStyle.Center, Width=0.1, Formatter=Formatter.CHSOnlyYearMonthDay },
- new BoundFieldColumn { FieldName="IsCurrentName", HeaderText="是否当前学期",Align=AlignStyle.Center, Width=0.06, CustomFormatFun="SetRedColumn" },
- //new BoundFieldColumn { FieldName="IsEnableName", HeaderText="启用状态",Align=AlignStyle.Center, Width=0.04 },
- new CheckButtonColumn{ FieldName="IsEnable", HeaderText="启用状态", Align=AlignStyle.Center, Width=0.04, EnableFieldName="false" }
- },
- CustomerRowStyleFun = "SetRedGrid",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/GraduationSchoolYear/List"),
- ID = "dgGraduationSchoolYearList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|