12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- }
- @section scripts{
- <script src="~/Scripts/Business/EvaluationManage/EvaluationSetting/EvaluationNeed.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("~/EvaluationNeed/Excel")">
- @Html.PositionCondition()
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;color:red;">参评类型:</li>
- <li class="sv">
- @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.EM_ParticipateType, DropdownListBindType.SelectAll,
- new ComboGridOptions
- {
- ID = "DictionaryParticipateType",
- Name = "DictionaryParticipateType",
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgEvaluationNeedList" } })
- </li>
- <li class="sn" style="padding-left: 5px;color: red;">是否启用:</li>
- <li class="sv">
- @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, DropdownListBindType.SelectAll,
- new ComboGridOptions
- {
- ID = "IsEnabledDropdown",
- Name = "IsEnabledDropdown",
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgEvaluationNeedList" } })
- </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="EvaluationNeedID" },
- new LinkButtonColumn { FieldName="Code", HeaderText="编号", Align=AlignStyle.Center, Handle="edit", Width=0.05 },
- new BoundFieldColumn { FieldName="Title", HeaderText="标题", Align=AlignStyle.Center, Width=0.08 },
- new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.05, OrderFieldName="ParticipateTypeID", CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="Content", HeaderText="内容", Align=AlignStyle.Center, Width=0.12, OverflowLength=20 },
- new BoundFieldColumn { FieldName="IsEnabledName", HeaderText="是否启用", Align=AlignStyle.Center, OrderFieldName="IsEnabled", Width=0.04, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=5 }
- //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 }
- },
- CustomerRowStyleFun="SetRedGrid",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EvaluationNeed/List"),
- ID = "dgEvaluationNeedList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|