From 9e861a3ab67506b8498a79575b97ffd6390c3d61 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期四, 03 四月 2025 17:08:45 +0800 Subject: [PATCH] loading --- DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs | 25 ++++++++++--------------- 1 files changed, 10 insertions(+), 15 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs b/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs index e5b8d2f..0451b93 100644 --- a/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs +++ b/DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs @@ -1,13 +1,10 @@ -锘縰sing DevExpress.XtraBars.Alerter; -using DevExpress.XtraBars.ToastNotifications; -using DevExpress.XtraEditors; +锘縰sing DevExpress.XtraEditors; using 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 @@ -15,20 +12,19 @@ public partial class Frm_Work01 : DevExpress.XtraEditors.XtraForm { string _webServiceName = "WorkCollect/"; - string fGx = ""; string fBc = ""; public Frm_Work01(string _fGx, string _fBc) { InitializeComponent(); + 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) => { @@ -70,13 +66,13 @@ if (_rtn.rtnCode > 0) { dynamic dy = _rtn.rtnData; - txt_gdbh.Text = dy.gdbh; - txt_itemNo.Text = dy.itemNo; - txt_itemName.Text = dy.itemName; - txt_itemModel.Text = dy.itemModel; - txt_sjXt.Text = dy.sjXt; - txt_sjDate.Text = dy.sjDate; - txt_yjDate.Text = dy.yjDate; + 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(); foreach (var a in _job["rtnData"]["list"]) @@ -135,5 +131,4 @@ } } } - } \ No newline at end of file -- Gitblit v1.9.3