CtrlPosRes.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using DevExpress.XtraEditors;
  2. using DevExpress.XtraGrid.Views.Grid;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Data;
  7. using System.Drawing;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. using System.Windows.Documents;
  12. using System.Windows.Forms;
  13. using XdCxRhDW.App.Model;
  14. namespace XdCxRhDW.App.UserControl
  15. {
  16. public partial class CtrlPosRes : DevExpress.XtraEditors.XtraUserControl
  17. {
  18. List<PosRes> list = new List<PosRes>();
  19. public CtrlPosRes()
  20. {
  21. InitializeComponent();
  22. }
  23. private async void CtrlPosRes_Load(object sender, EventArgs e)
  24. {
  25. try
  26. {
  27. gridPos.Init().UseFilter().UseRowNumber();
  28. gridPos.DataSource = list;
  29. }
  30. catch (Exception ex)
  31. {
  32. Serilog.Log.Error("查询定位结果失败", ex);
  33. XtraMessageBox.Show("查询定位结果失败");
  34. }
  35. }
  36. }
  37. }