123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Entities;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "总分公式";
- var gridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="ScoreFormulaID" },
- new LinkButtonColumn { FieldName="Name", HeaderText="公式名称", Align=AlignStyle.Center,Handle="edit" },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Action("List"),
- ID = "dgScoreFormulaList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- };
- var scoreDynamicTypes = (IEnumerable<Sys_DictionaryItem>)ViewBag.ScoreDynamicTypes;
- foreach (var item in scoreDynamicTypes)
- {
- gridOptions.Columns.Add(new BoundFieldColumn { FieldName = "ScoreType" + item.Value.ToString(), HeaderText = item.Name, Align = AlignStyle.Center });
- }
- }
- @section scripts{
- <script src="~/Scripts/Business/ScoreManage/ScoreFormula.js" 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>
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">公式名称:</li>
- <li class="sv">
- @Html.TextBox(new TextBoxOptions { Name = "textName" }, new Dictionary<string, string> { { "data-condition", "dgScoreFormulaList" } })
- </li>
- <li class="sn" style="padding-left: 20px;"><a href="javascript:void(0)" class="easyui-linkbutton"
- data-options="iconCls:'icon-search'" onclick="reload();">查询</a></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>
- <div class="search_list">
- @Html.DataGrid(gridOptions)
- </div>
- </div>
|