List.cshtml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. }
  6. @section scripts{
  7. <script src="~/Scripts/Business/EvaluationManage/EvaluationTable/EvaluationNorm.js" type="text/javascript"></script>
  8. <script type="text/javascript">
  9. var nonSelect = "@DropdownList.SELECT_ALL";
  10. </script>
  11. }
  12. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  13. @Html.Position()
  14. <div class="p_SearchTitle">
  15. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  16. </div>
  17. <form id="formQuery" method="post" action="@Url.Content("~/EvaluationNorm/Excel")">
  18. @Html.PositionCondition()
  19. <div class="search_keyword">
  20. <div class="search_input">
  21. <ul>
  22. <li class="sn" style="padding-left: 5px;color: red;">评分类型:</li>
  23. <li class="sv">
  24. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.EM_EvaluationNormType, DropdownListBindType.SelectAll,
  25. new ComboGridOptions
  26. {
  27. ID = "DictionaryNormType",
  28. Name = "DictionaryNormType",
  29. OnSelect = "reload"
  30. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationNormList" } })
  31. </li>
  32. </ul>
  33. </div>
  34. </div>
  35. </form>
  36. <div class="p_title">
  37. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">评分标准列表</div>
  38. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  39. </div>
  40. @Html.PositionBatchModify()
  41. <div class="search_list">
  42. @Html.DataGrid(new DataGridOptions
  43. {
  44. Columns = new List<DataGridColumn>()
  45. {
  46. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationNormID" },
  47. new LinkButtonColumn { FieldName="Name", HeaderText="评分标准", Align=AlignStyle.Center, Handle="edit", Width=0.05 },
  48. new BoundFieldColumn { FieldName="NormTypeName", HeaderText="评分类型", Align=AlignStyle.Center, OrderFieldName="NormTypeID", Width=0.03, CustomFormatFun="SetRedColumn" },
  49. new BoundFieldColumn { FieldName="SatisfyWeight", HeaderText="满意权重", Align=AlignStyle.Center, Width=0.04 },
  50. new LinkButtonColumn { FieldName="NormDetailListName", HeaderText="标准明细", Align=AlignStyle.Center, Handle="edit", OrderFieldName="", Width=0.06, OverflowLength=20 },
  51. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=5 },
  52. //new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center, Width=0.04 },
  53. new BoundFieldColumn { FieldName="ModifyUserName", HeaderText="修改人", Align=AlignStyle.Center, Width=0.04 }
  54. //new BoundFieldColumn { FieldName="ModifyTime", HeaderText="修改时间", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.LongDate }
  55. },
  56. IsCheckOnSelect = true,
  57. DataSourceUrl = Url.Content("~/EvaluationNorm/List"),
  58. ID = "dgEvaluationNormList",
  59. IsPagination = true,
  60. IsShowRowNumbers = true,
  61. IsSingleSelect = false
  62. })
  63. </div>
  64. </div>