123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "CheckingDetailList";
- Guid? studentContrastID = new Guid(Request["studentContrastID"]);
- }
- @section scripts{
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- //刷新
- function reload() {
- $("#dgCheckingDetailList").cmsXDataTable("load", $.getDataGridParams("dgCheckingDetailList"));
- }
- //设置列颜色为红色
- function SetRedColumn(index, row, value) {
- return " <span style=\"color: red;\">" + value + "</span>";
- }
- //Excel导出
- function CheckingApprove_DetailExport() {
- $("#formQuery").submit();
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- <form id="formQuery" method="post" action="@Url.Content("~/CheckingApprove/Excel_CheckingDetail?studentContrastID=" + studentContrastID)">
- @Html.PositionCondition("CheckingDetail")
- @*<div class="search_keyword">
- <div class="search_input">
- </div>
- </div>*@
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("CheDetail")</div>
- </div>
- </form>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentRecordChangeHistoryID" },
- new LinkButtonColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Handle="edit", Width=0.1 },
- new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
- //new BoundFieldColumn { FieldName="TableName", HeaderText="校对表名", Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
- //new BoundFieldColumn { FieldName="ColumnName", HeaderText="校对列名", Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
- //new BoundFieldColumn { FieldName="DisplayPropertyName", HeaderText="显示属性", Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
- new BoundFieldColumn { FieldName="Description", HeaderText="校对名称", Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
- new BoundFieldColumn { FieldName="CheckingTypeName", HeaderText="校对类型", Align=AlignStyle.Center, OrderFieldName="CheckingTypeID", Width=0.04, CustomFormatFun="SetRedColumn", OverflowLength=4 },
- new BoundFieldColumn { FieldName="CheckingBeforeContent", HeaderText="校对前内容", Align=AlignStyle.Center, Width=0.05, OrderFieldName="ColumnName", OverflowLength=6 },
- new BoundFieldColumn { FieldName="CheckingAfterContent", HeaderText="校对后内容", Align=AlignStyle.Center, Width=0.05, OrderFieldName="ColumnName", OverflowLength=6 },
- new BoundFieldColumn { FieldName="IP", HeaderText="IP地址", Align=AlignStyle.Center, Width=0.08 },
- new BoundFieldColumn { FieldName="ModifyTime", HeaderText="申请时间", Align=AlignStyle.Center, Width=0.1, Formatter = Formatter.LongDate }
- },
- IsPostBack = true,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/CheckingApprove/CheckingDetailList?studentContrastID=" + studentContrastID),
- ID = "dgCheckingDetailList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|