CheckingDetailList.cshtml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. @using EMIS.Web.Controls;
  2. @using Bowin.Web.Controls.Mvc;
  3. @{
  4. ViewBag.Title = "CheckingDetailList";
  5. Guid? studentContrastID = new Guid(Request["studentContrastID"]);
  6. }
  7. @section scripts{
  8. <script type="text/javascript">
  9. var nonSelect = "@DropdownList.SELECT_ALL";
  10. //刷新
  11. function reload() {
  12. $("#dgCheckingDetailList").cmsXDataTable("load", $.getDataGridParams("dgCheckingDetailList"));
  13. }
  14. //设置列颜色为红色
  15. function SetRedColumn(index, row, value) {
  16. return " <span style=\"color: red;\">" + value + "</span>";
  17. }
  18. //Excel导出
  19. function CheckingApprove_DetailExport() {
  20. $("#formQuery").submit();
  21. }
  22. </script>
  23. }
  24. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  25. <form id="formQuery" method="post" action="@Url.Content("~/CheckingApprove/Excel_CheckingDetail?studentContrastID=" + studentContrastID)">
  26. @Html.PositionCondition("CheckingDetail")
  27. @*<div class="search_keyword">
  28. <div class="search_input">
  29. </div>
  30. </div>*@
  31. <div class="p_title">
  32. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  33. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("CheDetail")</div>
  34. </div>
  35. </form>
  36. <div class="search_list">
  37. @Html.DataGrid(new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentRecordChangeHistoryID" },
  42. new LinkButtonColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Handle="edit", Width=0.1 },
  43. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  44. //new BoundFieldColumn { FieldName="TableName", HeaderText="校对表名", Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
  45. //new BoundFieldColumn { FieldName="ColumnName", HeaderText="校对列名", Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
  46. //new BoundFieldColumn { FieldName="DisplayPropertyName", HeaderText="显示属性", Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
  47. new BoundFieldColumn { FieldName="Description", HeaderText="校对名称", Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  48. new BoundFieldColumn { FieldName="CheckingTypeName", HeaderText="校对类型", Align=AlignStyle.Center, OrderFieldName="CheckingTypeID", Width=0.04, CustomFormatFun="SetRedColumn", OverflowLength=4 },
  49. new BoundFieldColumn { FieldName="CheckingBeforeContent", HeaderText="校对前内容", Align=AlignStyle.Center, Width=0.05, OrderFieldName="ColumnName", OverflowLength=6 },
  50. new BoundFieldColumn { FieldName="CheckingAfterContent", HeaderText="校对后内容", Align=AlignStyle.Center, Width=0.05, OrderFieldName="ColumnName", OverflowLength=6 },
  51. new BoundFieldColumn { FieldName="IP", HeaderText="IP地址", Align=AlignStyle.Center, Width=0.08 },
  52. new BoundFieldColumn { FieldName="ModifyTime", HeaderText="申请时间", Align=AlignStyle.Center, Width=0.1, Formatter = Formatter.LongDate }
  53. },
  54. IsPostBack = true,
  55. IsCheckOnSelect = true,
  56. DataSourceUrl = Url.Content("~/CheckingApprove/CheckingDetailList?studentContrastID=" + studentContrastID),
  57. ID = "dgCheckingDetailList",
  58. IsPagination = true,
  59. IsShowRowNumbers = true,
  60. IsSingleSelect = false
  61. })
  62. </div>
  63. </div>