From 62a564f283e70b5eda749df806162a8c5aa7fe75 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期四, 03 四月 2025 20:53:37 +0800
Subject: [PATCH] 1

---
 DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs b/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs
index 3676326..0b71328 100644
--- a/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs
@@ -1,13 +1,9 @@
-锘縰sing DevExpress.XtraBars.Alerter;
-using DevExpress.XtraBars.ToastNotifications;
-using DevExpress.XtraEditors;
-using Gs.DevApp.Entity;
+锘縰sing Gs.DevApp.Entity;
 using Gs.DevApp.ToolBox;
 using Newtonsoft.Json;
 using Newtonsoft.Json.Linq;
 using System;
 using System.Data;
-using System.Drawing;
 using System.Windows.Forms;
 
 namespace Gs.DevApp.DevFrm.Work
@@ -20,15 +16,14 @@
         public Frm_Work01(string _fGx, string _fBc)
         {
             InitializeComponent();
-            this.Text = "宸ュ簭閲囬泦 - " + _fGx;
+            this.Text = "宸ュ簭閲囬泦 - " + _fGx+ " - "+ fBc;
             this.fGx = _fGx;
             this.fBc = _fBc;
             txt_gx.Text = fGx;
             txt_bc.Text = fBc;
-            txt_barCode.Focus();
             txt_barCode.KeyDown += (s, e) =>
             {
-                if (e.KeyCode == Keys.Enter) { getModel("", ""); };
+                if (e.KeyCode == Keys.Enter) { getModel("", "鈭�"); };
             };
             btnGood.Click += (s, e) =>
             {
@@ -50,7 +45,8 @@
             string _inBz = ""; ; //澶囨敞
             if (string.IsNullOrEmpty(_barCode))
             {
-                ToolBox.MsgHelper.ShowError("璇峰厛鎵爜锛�");
+                Toast vm = new Toast(System.Drawing.Color.DodgerBlue, "璇峰厛鎵爜");
+                vm.Show();
                 return;
             }
             var _obj = new
@@ -71,6 +67,11 @@
                 {
                     dynamic dy = _rtn.rtnData;
                     UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, false);
+                    lbSum1.Text = dy.lbSum1;
+                    lbSum2.Text = dy.lbSum2;
+                    lbSum3.Text = dy.lbSum3;
+                    lbSum4.Text = dy.lbSum4;
+                    prog1.Position = dy.jd;
                     txt_barCode.ReadOnly = false;
                     JObject _job = JObject.Parse(strJson);
                     JArray array = new JArray();

--
Gitblit v1.9.3