|
@@ -1,5 +1,7 @@
|
|
|
-using DevExpress.XtraEditors;
|
|
|
+using DevExpress.Data;
|
|
|
+using DevExpress.XtraEditors;
|
|
|
using DevExpress.XtraExport.Helpers;
|
|
|
+using DevExpress.XtraGrid.Columns;
|
|
|
using DevExpress.XtraGrid.Views.Grid;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
@@ -30,6 +32,7 @@ namespace XdCxRhDW.App.UserControl
|
|
|
try
|
|
|
{
|
|
|
gridCg.Init().UseSort().UseFilter().UseMultiSelect().UseRowNumber();
|
|
|
+ gridView1.Columns["SigTime"].SortOrder = ColumnSortOrder.Descending;
|
|
|
using (RHDWContext db = new RHDWContext())
|
|
|
{
|
|
|
gridCg.DataSource = await db.CgRes.OrderByDescending(p => p.SigTime).ToListAsync();
|
|
@@ -37,7 +40,7 @@ namespace XdCxRhDW.App.UserControl
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- Serilog.Log.Error(ex,"查询参估结果异常");
|
|
|
+ Serilog.Log.Error(ex, "查询参估结果异常");
|
|
|
DxHelper.MsgBoxHelper.ShowError("查询参估结果异常");
|
|
|
|
|
|
}
|