List.cshtml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. @model EMIS.ViewModel.EvaluationManage.EvaluationTable.EvaluationTableView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. //评价表名
  7. ComboGridOptions cgopEvaluationTable = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "EvaluationTableID",
  11. OnSelect = "queryEvaluationTable",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Code", HeaderText="编号", Align=AlignStyle.Center, Width=0.1 },
  17. new BoundFieldColumn { FieldName="Name", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.25 },
  18. //new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.12, OrderFieldName="ParticipateTypeID" },
  19. //new BoundFieldColumn { FieldName="IsStudentName", HeaderText="学生用", Align=AlignStyle.Center, Width=0.1, OrderFieldName="IsStudent", CustomFormatFun="SetRedColumn" },
  20. //new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.1 },
  21. new BoundFieldColumn { FieldName="IsEnabledName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.1, OrderFieldName="IsEnabled", CustomFormatFun="SetRedColumn" }
  22. },
  23. OnLoadSuccessFun = "loadSuccessEvaluationTable",
  24. PageSize = 5,
  25. IsCheckOnSelect = true,
  26. DataSourceUrl = Url.Content("~/EvaluationTable/List"),
  27. IsPagination = true,
  28. IsShowRowNumbers = true,
  29. IsSingleSelect = false
  30. }
  31. };
  32. }
  33. @section scripts{
  34. <script src="~/Scripts/Business/EvaluationManage/EvaluationTable/EvaluationForm.js" type="text/javascript"></script>
  35. <script type="text/javascript">
  36. var nonSelect = "@DropdownList.SELECT_ALL";
  37. </script>
  38. }
  39. <style>
  40. .target td div
  41. {
  42. font-weight: bold;
  43. }
  44. .datagrid-btable .datagrid-cell
  45. {
  46. text-overflow: ellipsis;
  47. }
  48. </style>
  49. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  50. @Html.Position()
  51. <div class="p_SearchTitle">
  52. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  53. </div>
  54. <form id="formQuery" method="post" action="@Url.Content("~/EvaluationTarget/Excel")">
  55. @*@Html.PositionCondition()*@
  56. <div class="search_keyword">
  57. <div class="search_input">
  58. <ul>
  59. <li class="sn" style="padding-left: 5px;">评价表名:</li>
  60. <li class="sv">
  61. @Html.ComboGridFor(x => x.EvaluationTableID, cgopEvaluationTable)
  62. </li>
  63. </ul>
  64. </div>
  65. </div>
  66. </form>
  67. @*<div class="p_title">
  68. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">评价表格列表</div>
  69. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  70. </div>*@
  71. <div class="search_list">
  72. <div id="dgEvaluationFormList"></div>
  73. </div>
  74. </div>