From 29a7459eb60f8e500d61cec2c2ef29485a03f00f Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Thu, 21 Jun 2018 16:03:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=AB=E8=BA=AB=E4=BB=BD=E8=AF=81=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=89=93=E5=BC=80=E8=BF=87=E7=A3=85=E5=8D=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ButcherWeight/WeightForm.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ButcherWeight/WeightForm.cs b/ButcherWeight/WeightForm.cs index e9bc047..4ba576e 100644 --- a/ButcherWeight/WeightForm.cs +++ b/ButcherWeight/WeightForm.cs @@ -98,8 +98,14 @@ namespace ButcherWeight { this.Invoke(new Action(() => { - msgGrid.DataSource = WeightBillRpc.GetMsgList(); - msgGrid.Refresh(); + //msgGrid.DataSource = WeightBillRpc.GetMsgList(); + //msgGrid.Refresh(); + var list = WeightBillRpc.GetMsgList(); + if (list.Any()) + { + Dmo = WeightBillRpc.Load(list.First().WeightBill_ID); + AppToUI(); + } })); } Thread.Sleep(2000);