List.cshtml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "总分公式";
  6. var gridOptions = new DataGridOptions
  7. {
  8. Columns = new List<DataGridColumn>()
  9. {
  10. new CheckBoxFieldColumn{ HeaderText="", FieldName="ScoreFormulaID" },
  11. new LinkButtonColumn { FieldName="Name", HeaderText="公式名称", Align=AlignStyle.Center,Handle="edit" },
  12. },
  13. IsCheckOnSelect = true,
  14. DataSourceUrl = Url.Action("List"),
  15. ID = "dgScoreFormulaList",
  16. IsPagination = true,
  17. IsShowRowNumbers = true,
  18. IsSingleSelect = false
  19. };
  20. var scoreDynamicTypes = (IEnumerable<Sys_DictionaryItem>)ViewBag.ScoreDynamicTypes;
  21. foreach (var item in scoreDynamicTypes)
  22. {
  23. gridOptions.Columns.Add(new BoundFieldColumn { FieldName = "ScoreType" + item.Value.ToString(), HeaderText = item.Name, Align = AlignStyle.Center });
  24. }
  25. }
  26. @section scripts{
  27. <script src="~/Scripts/Business/ScoreManage/ScoreFormula.js" type="text/javascript"></script>
  28. }
  29. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  30. @Html.Position()
  31. <div class="p_SearchTitle">
  32. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  33. 查询条件</div>
  34. </div>
  35. <div class="search_keyword">
  36. <div class="search_input">
  37. <ul>
  38. <li class="sn" style="padding-left: 5px;">公式名称:</li>
  39. <li class="sv">
  40. @Html.TextBox(new TextBoxOptions { Name = "textName" }, new Dictionary<string, string> { { "data-condition", "dgScoreFormulaList" } })
  41. </li>
  42. <li class="sn" style="padding-left: 20px;"><a href="javascript:void(0)" class="easyui-linkbutton"
  43. data-options="iconCls:'icon-search'" onclick="reload();">查询</a></li>
  44. </ul>
  45. </div>
  46. </div>
  47. <div class="p_title">
  48. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  49. 总分公式列表</div>
  50. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  51. </div>
  52. <div class="search_list">
  53. @Html.DataGrid(gridOptions)
  54. </div>
  55. </div>