| | |
| | | using DevExpress.XtraBars.Alerter; |
| | | using DevExpress.XtraBars.ToastNotifications; |
| | | using DevExpress.XtraEditors; |
| | | using 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 |
| | |
| | | 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.KeyDown += (s, e) => |
| | | { |
| | | if (e.KeyCode == Keys.Enter) { getModel("", ""); }; |
| | | if (e.KeyCode == Keys.Enter) { getModel("", "√"); }; |
| | | }; |
| | | btnGood.Click += (s, e) => |
| | | { |
| | |
| | | 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"]) |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |