123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Entities;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- //字典类型
- ComboGridOptions cgopDictionary = new ComboGridOptions
- {
- TextField = "DictionaryName",
- ValueField = "DictionaryCode",
- ID = "DictionaryDropdown",
- Name = "DictionaryDropdown",
- OnSelect = "reload",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new BoundFieldColumn { FieldName="DictionaryCode",HeaderText="类型代码", Align=AlignStyle.Center, Width=0.2 },
- new BoundFieldColumn { FieldName="DictionaryName",HeaderText="类型名称", Align=AlignStyle.Center, Width=0.12 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Dictionary/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
-
- }
- @section scripts{
- <script src="~/Scripts/Business/System/DictionaryItem.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()
- <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("~/DictionaryItem/Excel")">
- @Html.PositionCondition()
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">类型名称:</li>
- <li class="sv">
- @Html.ComboGrid(cgopDictionary, new Dictionary<string, string> { { "data-condition", "dgDictionaryItemList" } })
- </li>
- <li class="sn" style="padding-left: 5px;color: red;">可否编辑:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
- {
- ID = "DictionaryIsEditable",
- Name = "DictionaryIsEditable",
- BindType = DropdownListBindType.SelectAll,
- OnSelect = "reload"
- },
- new Dictionary<string, string> { { "data-condition", "dgDictionaryItemList" } })
- </li>
- <li class="sn" style="padding-left: 5px;color: red;">可否显示:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
- {
- ID = "DictionaryIsVisible",
- Name = "DictionaryIsVisible",
- BindType = DropdownListBindType.SelectAll,
- OnSelect = "reload"
- },
- new Dictionary<string, string> { { "data-condition", "dgDictionaryItemList" } })
- </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>
- @Html.PositionBatchModify()
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="DictionaryItemID" },
- new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.02 },
- new LinkButtonColumn { FieldName="Code", HeaderText="元素代码", Align=AlignStyle.Center, Handle="edit", Width=0.06, OverflowLength=18 },
- new BoundFieldColumn { FieldName="Name", HeaderText="元素名称", Align=AlignStyle.Center, Width=0.08 },
- new BoundFieldColumn { FieldName="Value", HeaderText="元素值", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="DictionaryCode", HeaderText="类型代码", Align=AlignStyle.Center, Width=0.08, OverflowLength=25 },
- new BoundFieldColumn { FieldName="DictionaryName", HeaderText="类型名称", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="IsEditableName", HeaderText="可否编辑", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="IsVisibleName", HeaderText="可否显示", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" }
- },
- PageSize = 50,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/DictionaryItem/List"),
- ID = "dgDictionaryItemList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|