123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Entities;
- @using EMIS.Web.Controls;
- @using EMIS.Utility;
- @{
- ViewBag.Title = "List";
- }
- @section scripts{
- <script src="~/Scripts/Business/StudentManage/StudentStatistics/InSchoolSetting.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;">
- @Html.Position()
- @using (Ajax.BeginForm(new AjaxOptions
- {
- Url = @Url.Content("~/InSchoolSetting/Edit?MNU=" + Request["MNU"]),
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- <div class="p_SearchTitle">
- <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
- </div>
- @Html.PositionCondition()
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">在校状态:</li>
- <li class="sv">
- @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, DropdownListBindType.SelectAll,
- new ComboGridOptions
- {
- ID = "DictionaryInSchoolStatus",
- Name = "DictionaryInSchoolStatus",
- OnSelect = "reload"
- },
- new Dictionary<string, string> { { "data-condition", "dgInSchoolSettingList" } })
- </li>
- <li class="sn" style="padding-left: 5px;color:red;">是否选中:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
- {
- ID = "DictionaryIsSelected",
- Name = "DictionaryIsSelected",
- BindType = DropdownListBindType.SelectAll,
- OnSelect = "reload"
- },
- new Dictionary<string, string> { { "data-condition", "dgInSchoolSettingList" } })
- </li>
- <li class="sn" style="padding-left: 5px;color:red;">可否显示:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
- {
- ID = "DictionaryIsDisplay",
- Name = "DictionaryIsDisplay",
- BindType = DropdownListBindType.SelectAll,
- SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsYes,
- OnSelect = "reload"
- },
- new Dictionary<string, string> { { "data-condition", "dgInSchoolSettingList" } })
- </li>
- </ul>
- </div>
- </div>
- <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>
- @*@Html.PositionBatchModify()*@
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new CheckBoxFieldColumn{ HeaderText="", FieldName="InSchoolSettingID" },
- new BoundFieldColumn { FieldName="InSchoolStatusID", HeaderText="类型代码", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.05, CustomFormatFun="SetRedColumn" },
- new CheckButtonColumn { FieldName="IsSelected", HeaderText="是否选中", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="IsDisplayName", HeaderText="可否显示", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="ModifyUserName", HeaderText="修改人", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="ModifyTime", HeaderText="修改时间", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.LongDate }
- },
- IsCheckOnSelect = true,
- IsPostBack = true,
- DataSourceUrl = Url.Content("~/InSchoolSetting/List"),
- ID = "dgInSchoolSettingList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- }
- <form id="formQuery" method="post" action="@Url.Content("~/InSchoolSetting/Excel")">
- </form>
- </div>
|