List.cshtml 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @using EMIS.Utility;
  5. @using EMIS.ViewModel;
  6. @{
  7. ViewBag.Title = "List";
  8. }
  9. @section scripts{
  10. <script src="~/Scripts/Business/StudentManage/OnlineChecking/CheckingControl.js" type="text/javascript"></script>
  11. <script type="text/javascript">
  12. var nonSelect = "@DropdownList.SELECT_ALL";
  13. </script>
  14. }
  15. <div class="easyui-panel" data-options="border:false,fit:true" style="position:relative;">
  16. @Html.Position()
  17. @using (Ajax.BeginForm(new AjaxOptions
  18. {
  19. Url = @Url.Content("~/CheckingControl/StudentEditControlSet?MNU=" + Request["MNU"]),
  20. OnSuccess = "EMISFunction.FormSuccess",
  21. OnBegin = "EMISFunction.FormSubmit",
  22. OnComplete = "EMISFunction.FormComplete"
  23. }))
  24. {
  25. <div class="p_SearchTitle">
  26. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  27. </div>
  28. @Html.PositionCondition()
  29. <div class="search_keyword">
  30. <div class="search_input">
  31. <ul>
  32. <li class="sn" style="padding-left: 5px;color: red;">校对类型:</li>
  33. <li class="sv">
  34. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_CheckingType, DropdownListBindType.SelectAll,
  35. new ComboGridOptions
  36. {
  37. ID = "DictionaryCheckingType",
  38. Name = "DictionaryCheckingType",
  39. OnSelect = "reload"
  40. }, new Dictionary<string, string> { { "data-condition", "dgStudentEditControlList" } })
  41. </li>
  42. </ul>
  43. </div>
  44. </div>
  45. <div class="p_title">
  46. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  47. 校对控制列表</div>
  48. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  49. </div>
  50. @*@Html.PositionBatchModify()*@
  51. <div class="search_list">
  52. @Html.DataGrid(new DataGridOptions
  53. {
  54. Columns = new List<DataGridColumn>()
  55. {
  56. //new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentEditControlID" },
  57. //new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.03 },
  58. //new BoundFieldColumn { FieldName="ColumnName", HeaderText="校对代码", Align=AlignStyle.Center, Width=0.08 },
  59. //new BoundFieldColumn { FieldName="DisplayColumnName", HeaderText="校对列名", Align=AlignStyle.Center, Width=0.06 },
  60. new BoundFieldColumn { FieldName="Description", HeaderText="校对名称", Align=AlignStyle.Center, Width=0.06 },
  61. new RadioButtonColumn{ FieldName="CheckingTypeID", HeaderText="不可修改", Align=AlignStyle.Center, RadioValue=(int)CF_CheckingType.Close, Width=0.06 },
  62. new RadioButtonColumn{ FieldName="CheckingTypeID", HeaderText="记录且审核", Align=AlignStyle.Center, RadioValue=(int)CF_CheckingType.OpenApprove, Width=0.08 },
  63. new RadioButtonColumn{ FieldName="CheckingTypeID", HeaderText="记录且不审核", Align=AlignStyle.Center, RadioValue=(int)CF_CheckingType.OpenRecord, Width=0.08 },
  64. new RadioButtonColumn{ FieldName="CheckingTypeID", HeaderText="不记录且不审核", Align=AlignStyle.Center, RadioValue=(int)CF_CheckingType.AllOpen, Width=0.08 },
  65. new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center, Width=0.04 },
  66. new BoundFieldColumn { FieldName="ModifyUserName", HeaderText="修改人", Align=AlignStyle.Center, Width=0.04 },
  67. new BoundFieldColumn { FieldName="ModifyTime", HeaderText="修改时间", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.LongDate }
  68. },
  69. PageSize = 100,
  70. IsCheckOnSelect = true,
  71. IsPostBack = true,
  72. DataSourceUrl = Url.Content("~/CheckingControl/List"),
  73. ID = "dgStudentEditControlList",
  74. IsPagination = true,
  75. IsShowRowNumbers = true,
  76. IsSingleSelect = false
  77. })
  78. </div>
  79. }
  80. <form id="formQuery" method="post" action="@Url.Content("~/CheckingControl/Excel")">
  81. </form>
  82. </div>