From ef038348f2bb98b9974f5f553c9a0e512a3a594f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE=E7=94=B7?= <446507344@qq.com> Date: Wed, 28 Feb 2024 08:51:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E9=83=BDMP4=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- APP/QMAPP.Web/Web.config | 8 +- APPMD/QMAPP.MD.BLL/MaterialClassBLL.cs | 24 + APPMD/QMAPP.MD.DAL/MaterialClassDAL.cs | 39 ++ APPMD/QMAPP.MD.Web/Web.config | 9 +- APPQ5/QMAPP.FJC.BLL/FrmPlace/FrmPlaceBLL.cs | 18 + APPQ5/QMAPP.FJC.BLL/ProductIn/ProductInBLL.cs | 4 + APPQ5/QMAPP.FJC.DAL/Operation/ProductDAL.cs | 22 + APPQ5/QMAPP.FJC.DAL/ProductIn/ProductInDAL.cs | 22 + APPQ5/QMAPP.FJC.DAL/TianJin/StorageDAL.cs | 12 +- APPQ5/QMAPP.FJC.DAL/TianJin/StorageLogDAL.cs | 10 +- .../DAHandler/DataAcquirer.cs | 17 +- .../DataValidators/BOMValidator.cs | 3 +- APPQ5/QMAPP.FJC.Web/Web.config | 5 +- APPQ5/QMAPP.WinForm/App.config | 42 +- .../QMAPP.WinForm/Forms/DisPatch/FrmPlace.cs | 23 +- .../Injection/InjectionCodePrint.Designer.cs | 444 ++++++++++-------- .../Forms/Injection/InjectionCodePrint.resx | 2 +- .../Forms/Injection/SewingPrint.Designer.cs | 67 ++- .../Forms/Injection/SewingPrint.cs | 8 +- .../Forms/Injection/SewingPrint.resx | 2 +- .../QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs | 42 +- .../QMAPP.WinForm/Properties/AssemblyInfo.cs | 4 +- AppCommon/QMAPP.ServicesAgent/ServiceEnums.cs | 4 + .../WCF/QMFrameWork.WebServiceHost/Web.config | 21 +- 24 files changed, 556 insertions(+), 296 deletions(-) diff --git a/APP/QMAPP.Web/Web.config b/APP/QMAPP.Web/Web.config index 97a6b12..9ac8a0a 100644 --- a/APP/QMAPP.Web/Web.config +++ b/APP/QMAPP.Web/Web.config @@ -40,7 +40,7 @@ - + - - + @@ -46,6 +46,9 @@ --> + + + + --> diff --git a/APPQ5/QMAPP.FJC.BLL/FrmPlace/FrmPlaceBLL.cs b/APPQ5/QMAPP.FJC.BLL/FrmPlace/FrmPlaceBLL.cs index 9686d04..ee879a0 100644 --- a/APPQ5/QMAPP.FJC.BLL/FrmPlace/FrmPlaceBLL.cs +++ b/APPQ5/QMAPP.FJC.BLL/FrmPlace/FrmPlaceBLL.cs @@ -525,6 +525,24 @@ namespace QMAPP.FJC.BLL.FrmPlace throw ex; } + } + /// + /// + /// + /// + /// + /// + public Product GetProductByAssembleCodeMP4(string code) + { + try + { + return new ProductDAL().GetProductByAssembleCodeMP4(code); + } + catch (Exception ex) + { + throw ex; + } + } public QMAPP.FJC.Entity.SendManage.PastCard GetLastPastCard(string workcentercode) diff --git a/APPQ5/QMAPP.FJC.BLL/ProductIn/ProductInBLL.cs b/APPQ5/QMAPP.FJC.BLL/ProductIn/ProductInBLL.cs index c56f060..b661415 100644 --- a/APPQ5/QMAPP.FJC.BLL/ProductIn/ProductInBLL.cs +++ b/APPQ5/QMAPP.FJC.BLL/ProductIn/ProductInBLL.cs @@ -43,6 +43,10 @@ namespace QMAPP.FJC.BLL.ProductIn { return new DAL.ProductIn.ProductInDAL().GetInRecord(productcode); } + public Entity.ProductIn.ProductIn GetInRecordmp4(string productcode) + { + return new DAL.ProductIn.ProductInDAL().GetInRecordmp4(productcode); + } #endregion public DataResult GetListWeb(Entity.ProductIn.ProductIn condition, DataPage page) { diff --git a/APPQ5/QMAPP.FJC.DAL/Operation/ProductDAL.cs b/APPQ5/QMAPP.FJC.DAL/Operation/ProductDAL.cs index b55e623..26aeaae 100644 --- a/APPQ5/QMAPP.FJC.DAL/Operation/ProductDAL.cs +++ b/APPQ5/QMAPP.FJC.DAL/Operation/ProductDAL.cs @@ -1561,6 +1561,28 @@ namespace QMAPP.FJC.DAL.Operation } } + public Product GetProductByAssembleCodeMP4(string code) + { + string sql = null; + Product model = new Product(); + List parameters = new List(); + try + { + sql = this.GetQuerySqlByAssemble(code); + + using (IDataSession session = AppDataFactory.CreateSession("maindbBC316_MP4")) + { + //获取信息 + model = session.Get(sql, parameters.ToArray()); + } + return model; + } + catch (Exception ex) + { + throw ex; + } + } + #region 获取主体条码下的零件列表 public List GetMainProductMaterialCodeList(string productcode) diff --git a/APPQ5/QMAPP.FJC.DAL/ProductIn/ProductInDAL.cs b/APPQ5/QMAPP.FJC.DAL/ProductIn/ProductInDAL.cs index 1a71128..0f64d6b 100644 --- a/APPQ5/QMAPP.FJC.DAL/ProductIn/ProductInDAL.cs +++ b/APPQ5/QMAPP.FJC.DAL/ProductIn/ProductInDAL.cs @@ -58,6 +58,28 @@ namespace QMAPP.FJC.DAL.ProductIn throw ex; } } + /// + /// 获取入库记录 + /// + /// + /// + public Entity.ProductIn.ProductIn GetInRecordmp4(string productcode) + { + try + { + List parameters = new List(); + string sql = "SELECT * FROM T_AW_PRODUCTIN WHERE PRODUCTCODE=@productcode"; + using (IDataSession session = AppDataFactory.CreateSession("maindbBC316_MP4")) + { + parameters.Add(new DataParameter("productcode", productcode)); + return session.Get(sql, parameters.ToArray()); + } + } + catch (Exception ex) + { + throw ex; + } + } #endregion public DataPage GetList(Entity.ProductIn.ProductIn condition, DataPage page) diff --git a/APPQ5/QMAPP.FJC.DAL/TianJin/StorageDAL.cs b/APPQ5/QMAPP.FJC.DAL/TianJin/StorageDAL.cs index 957f7a2..078e571 100644 --- a/APPQ5/QMAPP.FJC.DAL/TianJin/StorageDAL.cs +++ b/APPQ5/QMAPP.FJC.DAL/TianJin/StorageDAL.cs @@ -252,10 +252,18 @@ namespace QMAPP.FJC.DAL.TianJin int count = 0; try { + List parameters = new List(); + var select_sql = $"select * from T_AW_StorageLog where ProductCode = '{info.ProductCode}' and State = '{info.State}' and CREATEUSER = '{info.CREATEUSER}'"; + using (IDataSession session = AppDataFactory.CreateMainSession()) { - //插入基本信息 - count = session.Insert(info); + var list = session.GetList(select_sql, parameters.ToArray()).ToList(); + if (list.Count <= 0) + { + //插入基本信息 + count = session.Insert(info); + } + } return count; } diff --git a/APPQ5/QMAPP.FJC.DAL/TianJin/StorageLogDAL.cs b/APPQ5/QMAPP.FJC.DAL/TianJin/StorageLogDAL.cs index 7abecfb..b4ddee8 100644 --- a/APPQ5/QMAPP.FJC.DAL/TianJin/StorageLogDAL.cs +++ b/APPQ5/QMAPP.FJC.DAL/TianJin/StorageLogDAL.cs @@ -229,10 +229,16 @@ namespace QMAPP.FJC.DAL.TianJin int count = 0; try { + List parameters = new List(); + var select_sql = $"select * from T_AW_StorageLog where ProductCode = '{info.ProductCode}' and State = '{info.State}' and CREATEUSER = '{info.CREATEUSER}'"; using (IDataSession session = AppDataFactory.CreateMainSession()) { - //插入基本信息 - count = session.Insert(info); + var list = session.GetList(select_sql, parameters.ToArray()).ToList(); + if (list.Count <= 0) + { + //插入基本信息 + count = session.Insert(info); + } } return count; } diff --git a/APPQ5/QMAPP.FJC.TRACING/DAHandler/DataAcquirer.cs b/APPQ5/QMAPP.FJC.TRACING/DAHandler/DataAcquirer.cs index 82c30c2..a91f5bf 100644 --- a/APPQ5/QMAPP.FJC.TRACING/DAHandler/DataAcquirer.cs +++ b/APPQ5/QMAPP.FJC.TRACING/DAHandler/DataAcquirer.cs @@ -221,14 +221,14 @@ namespace QMAPP.FJC.TRACING.DAHandler data.WorkLocState.LoadState(Args.MouldCode); result.MouldCode = data.MouldCode; ////判断是否已生成产品数据 - //if (string.IsNullOrWhiteSpace(data.WorkLocState.CurrentState.PROCESS_CODE)) - //{ - // throw new Exception(string.Format("当前状态“{0}”,无法执行撤销操作!", data.WorkLocState.CurrentState.STATE_NAME)); - //} - //StateActions.RollbackWithOrder rollback = new StateActions.RollbackWithOrder(); //执行数据回滚动作 - //rollback.Execute(data); - //StateActions.ResetData resetdata = new StateActions.ResetData(); //执行数据复位 - //resetdata.Execute(data); + if (string.IsNullOrWhiteSpace(data.WorkLocState.CurrentState.PROCESS_CODE)) + { + throw new Exception(string.Format("当前状态“{0}”,无法执行撤销操作!", data.WorkLocState.CurrentState.STATE_NAME)); + } + StateActions.RollbackWithOrder rollback = new StateActions.RollbackWithOrder(); //执行数据回滚动作 + rollback.Execute(data); + StateActions.ResetData resetdata = new StateActions.ResetData(); //执行数据复位 + resetdata.Execute(data); if (string.Equals(data.WorkLocState.CurrentState.ROLLBACK_ACTION, "N/A")) { throw new Exception(string.Format("当前状态“{0}”,无法执行撤销操作!", data.WorkLocState.CurrentState.STATE_NAME)); @@ -242,6 +242,7 @@ namespace QMAPP.FJC.TRACING.DAHandler result.Actions.Add(action); } } + result.StateChanged = true; SetToFirstState(data); foreach (var action in data.WorkLocState.CurrentState.ENTRY_ACTION.Split(';'))//执行进入状态动作 diff --git a/APPQ5/QMAPP.FJC.TRACING/DataValidators/BOMValidator.cs b/APPQ5/QMAPP.FJC.TRACING/DataValidators/BOMValidator.cs index 0950b94..7afb1d2 100644 --- a/APPQ5/QMAPP.FJC.TRACING/DataValidators/BOMValidator.cs +++ b/APPQ5/QMAPP.FJC.TRACING/DataValidators/BOMValidator.cs @@ -28,8 +28,9 @@ namespace QMAPP.FJC.TRACING.DataValidators && da.ISPROCESSCODE == "1")) //过滤掉当前输入的采集点 select da.MATERIAL_CODE).ToList(); PbomDAL dal = new PbomDAL(); + if(!string.IsNullOrEmpty(data.MaterialCode)) + materials.Add(data.MaterialCode + ""); - materials.Add(data.MaterialCode+""); var bomlocates = dal.LocateBom(materials.Distinct().ToArray()); //匹配物料BOM if (data != null && data.OrderPlan != null) { diff --git a/APPQ5/QMAPP.FJC.Web/Web.config b/APPQ5/QMAPP.FJC.Web/Web.config index 94795c4..f85db8f 100644 --- a/APPQ5/QMAPP.FJC.Web/Web.config +++ b/APPQ5/QMAPP.FJC.Web/Web.config @@ -31,7 +31,7 @@ - + + + + diff --git a/APPQ5/QMAPP.WinForm/App.config b/APPQ5/QMAPP.WinForm/App.config index 0c052ac..0f6c1d1 100644 --- a/APPQ5/QMAPP.WinForm/App.config +++ b/APPQ5/QMAPP.WinForm/App.config @@ -3,24 +3,28 @@ + + + + + + - - + - + - + + --> @@ -175,7 +179,7 @@ - + @@ -238,12 +242,16 @@ - - - - + + + + + diff --git a/APPQ5/QMAPP.WinForm/Forms/DisPatch/FrmPlace.cs b/APPQ5/QMAPP.WinForm/Forms/DisPatch/FrmPlace.cs index 1ee88ef..b5e3fed 100644 --- a/APPQ5/QMAPP.WinForm/Forms/DisPatch/FrmPlace.cs +++ b/APPQ5/QMAPP.WinForm/Forms/DisPatch/FrmPlace.cs @@ -1522,8 +1522,18 @@ namespace QMAPP.WinForm.Forms.DisPatch Code = Code.Substring(Code.LastIndexOf('-') + 1); } #region 去数据库查询相关产品信息,外来零件忽略此步骤 - Product product = agent.InvokeServiceFunction(QMAPP.ServicesAgent.FrmPlaceManage.FrmPlaceBLL_GetProductByAssembleCode.ToString(), Code); + Product product = null; + if (System.Text.RegularExpressions.Regex.IsMatch(Code, "^BCP")) + { + //BCP开头的是BC316-MP4的包覆件 + product = agent.InvokeServiceFunction(QMAPP.ServicesAgent.FrmPlaceManage.FrmPlaceBLL_GetProductByAssembleCodeMP4.ToString(), Code); + } + else + { + product = agent.InvokeServiceFunction(QMAPP.ServicesAgent.FrmPlaceManage.FrmPlaceBLL_GetProductByAssembleCode.ToString(), Code); + } + if (product != null) { Code = string.IsNullOrEmpty(product.MAINCODE) ? product.PRODUCTCODE : product.MAINCODE; @@ -1594,8 +1604,13 @@ namespace QMAPP.WinForm.Forms.DisPatch txtCode.Focus(); return; } + var mcresult = agent.InvokeServiceFunction>("MaterialClassBLL_Get", new MaterialClass { MATERIAL_TYPE_CODE = product.MATERIAL_TYPE }); - var mc = mcresult.IsSuccess ? mcresult.Result : new MaterialClass { }; + if (System.Text.RegularExpressions.Regex.IsMatch(product.PRODUCTCODE, "^BCP")) + { + mcresult = agent.InvokeServiceFunction>("MaterialClassBLL_GetMP4", new MaterialClass { MATERIAL_TYPE_CODE = product.MATERIAL_TYPE }); + } + var mc = mcresult.IsSuccess ? mcresult.Result : new MaterialClass { }; if (!string.Equals(mc.MATERIAL_ATTRIBUTE, "2")) { SetContainerItem(nfindex, false); @@ -1605,6 +1620,10 @@ namespace QMAPP.WinForm.Forms.DisPatch return; } FJC.Entity.ProductIn.ProductIn inrecord = agent.InvokeServiceFunction("ProductInBLL_GetInRecord", Code); + if (System.Text.RegularExpressions.Regex.IsMatch(product.PRODUCTCODE, "^BCP")) + { + inrecord = agent.InvokeServiceFunction("ProductInBLL_GetInRecordmp4", Code); + } if (inrecord != null) { SetContainerItem(nfindex, false); diff --git a/APPQ5/QMAPP.WinForm/Forms/Injection/InjectionCodePrint.Designer.cs b/APPQ5/QMAPP.WinForm/Forms/Injection/InjectionCodePrint.Designer.cs index 8aec80a..db83ddb 100644 --- a/APPQ5/QMAPP.WinForm/Forms/Injection/InjectionCodePrint.Designer.cs +++ b/APPQ5/QMAPP.WinForm/Forms/Injection/InjectionCodePrint.Designer.cs @@ -29,12 +29,12 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); this.DGView = new System.Windows.Forms.DataGridView(); this.MAINCODE = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.MATERIAL_NAME = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -72,6 +72,8 @@ this.cbSkipHistory = new System.Windows.Forms.CheckBox(); this.btnStartFileScan = new System.Windows.Forms.Button(); this.btnStopFileScan = new System.Windows.Forms.Button(); + this.tpManual = new System.Windows.Forms.TabPage(); + this.cbTemplateDesign = new System.Windows.Forms.CheckBox(); this.tpTimer = new System.Windows.Forms.TabPage(); this.label5 = new System.Windows.Forms.Label(); this.cbPrintSpan = new System.Windows.Forms.ComboBox(); @@ -81,8 +83,6 @@ this.lblLastCount = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); - this.tpManual = new System.Windows.Forms.TabPage(); - this.cbTemplateDesign = new System.Windows.Forms.CheckBox(); this.timer2 = new System.Windows.Forms.Timer(this.components); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); @@ -111,8 +111,8 @@ this.groupBox3.SuspendLayout(); this.tpPrintMode.SuspendLayout(); this.tpOnline.SuspendLayout(); - this.tpTimer.SuspendLayout(); this.tpManual.SuspendLayout(); + this.tpTimer.SuspendLayout(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); this.tabPage2.SuspendLayout(); @@ -128,14 +128,14 @@ this.DGView.AllowUserToDeleteRows = false; this.DGView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.DGView.BackgroundColor = System.Drawing.SystemColors.ButtonFace; - dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle13.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle13.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.DGView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle13; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.DGView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.DGView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.DGView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.MAINCODE, @@ -143,28 +143,29 @@ this.PRODUCTCODE, this.CREATETIME}); this.DGView.Dock = System.Windows.Forms.DockStyle.Fill; - this.DGView.Location = new System.Drawing.Point(3, 3); + this.DGView.Location = new System.Drawing.Point(4, 4); + this.DGView.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.DGView.Name = "DGView"; this.DGView.ReadOnly = true; - dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle18.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle18.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle18.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle18.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.DGView.RowHeadersDefaultCellStyle = dataGridViewCellStyle18; + dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.DGView.RowHeadersDefaultCellStyle = dataGridViewCellStyle6; this.DGView.RowTemplate.Height = 23; this.DGView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.DGView.Size = new System.Drawing.Size(667, 567); + this.DGView.Size = new System.Drawing.Size(1006, 858); this.DGView.TabIndex = 38; // // MAINCODE // this.MAINCODE.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.MAINCODE.DataPropertyName = "MAINCODE"; - dataGridViewCellStyle14.Font = new System.Drawing.Font("宋体", 15.75F); - this.MAINCODE.DefaultCellStyle = dataGridViewCellStyle14; + dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 15.75F); + this.MAINCODE.DefaultCellStyle = dataGridViewCellStyle2; this.MAINCODE.FillWeight = 48.95314F; this.MAINCODE.HeaderText = "条码信息"; this.MAINCODE.Name = "MAINCODE"; @@ -175,8 +176,8 @@ // this.MATERIAL_NAME.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.MATERIAL_NAME.DataPropertyName = "MATERIAL_NAME"; - dataGridViewCellStyle15.Font = new System.Drawing.Font("宋体", 15.75F); - this.MATERIAL_NAME.DefaultCellStyle = dataGridViewCellStyle15; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 15.75F); + this.MATERIAL_NAME.DefaultCellStyle = dataGridViewCellStyle3; this.MATERIAL_NAME.FillWeight = 99.90437F; this.MATERIAL_NAME.HeaderText = "零件名称"; this.MATERIAL_NAME.Name = "MATERIAL_NAME"; @@ -187,8 +188,8 @@ // this.PRODUCTCODE.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.PRODUCTCODE.DataPropertyName = "PRODUCTCODE"; - dataGridViewCellStyle16.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.PRODUCTCODE.DefaultCellStyle = dataGridViewCellStyle16; + dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.PRODUCTCODE.DefaultCellStyle = dataGridViewCellStyle4; this.PRODUCTCODE.FillWeight = 48.95314F; this.PRODUCTCODE.HeaderText = "零件号"; this.PRODUCTCODE.Name = "PRODUCTCODE"; @@ -199,11 +200,11 @@ // this.CREATETIME.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.CREATETIME.DataPropertyName = "CREATETIME"; - dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle17.Font = new System.Drawing.Font("宋体", 15.75F); - dataGridViewCellStyle17.Format = "f"; - dataGridViewCellStyle17.NullValue = null; - this.CREATETIME.DefaultCellStyle = dataGridViewCellStyle17; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 15.75F); + dataGridViewCellStyle5.Format = "f"; + dataGridViewCellStyle5.NullValue = null; + this.CREATETIME.DefaultCellStyle = dataGridViewCellStyle5; this.CREATETIME.FillWeight = 48.95314F; this.CREATETIME.HeaderText = "操作时间"; this.CREATETIME.Name = "CREATETIME"; @@ -214,9 +215,10 @@ // this.paneldouble.Controls.Add(this.comboxMaterial); this.paneldouble.Controls.Add(this.label2); - this.paneldouble.Location = new System.Drawing.Point(0, 215); + this.paneldouble.Location = new System.Drawing.Point(0, 322); + this.paneldouble.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.paneldouble.Name = "paneldouble"; - this.paneldouble.Size = new System.Drawing.Size(449, 38); + this.paneldouble.Size = new System.Drawing.Size(674, 57); this.paneldouble.TabIndex = 52; this.paneldouble.Visible = false; // @@ -224,27 +226,30 @@ // this.comboxMaterial.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboxMaterial.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.comboxMaterial.Location = new System.Drawing.Point(71, 3); + this.comboxMaterial.Location = new System.Drawing.Point(106, 4); + this.comboxMaterial.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.comboxMaterial.Name = "comboxMaterial"; - this.comboxMaterial.Size = new System.Drawing.Size(369, 30); + this.comboxMaterial.Size = new System.Drawing.Size(552, 39); this.comboxMaterial.TabIndex = 40; // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label2.Location = new System.Drawing.Point(0, 7); + this.label2.Location = new System.Drawing.Point(0, 10); + this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(67, 22); + this.label2.Size = new System.Drawing.Size(99, 31); this.label2.TabIndex = 41; this.label2.Text = "零件#2:"; // // btnChoiceMaterial // this.btnChoiceMaterial.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnChoiceMaterial.Location = new System.Drawing.Point(6, 86); + this.btnChoiceMaterial.Location = new System.Drawing.Point(9, 129); + this.btnChoiceMaterial.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btnChoiceMaterial.Name = "btnChoiceMaterial"; - this.btnChoiceMaterial.Size = new System.Drawing.Size(124, 44); + this.btnChoiceMaterial.Size = new System.Drawing.Size(186, 66); this.btnChoiceMaterial.TabIndex = 37; this.btnChoiceMaterial.Text = "选择零件信息"; this.btnChoiceMaterial.UseVisualStyleBackColor = true; @@ -255,9 +260,10 @@ this.tsbPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.tsbPrint.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.tsbPrint.Image = global::QMAPP.WinForm.Resource1.save; - this.tsbPrint.Location = new System.Drawing.Point(241, 6); + this.tsbPrint.Location = new System.Drawing.Point(362, 9); + this.tsbPrint.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.tsbPrint.Name = "tsbPrint"; - this.tsbPrint.Size = new System.Drawing.Size(190, 83); + this.tsbPrint.Size = new System.Drawing.Size(285, 124); this.tsbPrint.TabIndex = 34; this.tsbPrint.Text = "打印"; this.tsbPrint.TextAlign = System.Drawing.ContentAlignment.MiddleRight; @@ -269,22 +275,24 @@ // this.textMaterialName.BackColor = System.Drawing.SystemColors.Control; this.textMaterialName.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.textMaterialName.Location = new System.Drawing.Point(70, 141); + this.textMaterialName.Location = new System.Drawing.Point(105, 212); + this.textMaterialName.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.textMaterialName.MaxLength = 3096; this.textMaterialName.Name = "textMaterialName"; this.textMaterialName.ReadOnly = true; - this.textMaterialName.Size = new System.Drawing.Size(370, 29); + this.textMaterialName.Size = new System.Drawing.Size(553, 39); this.textMaterialName.TabIndex = 33; // // txtMaterialCode // this.txtMaterialCode.BackColor = System.Drawing.SystemColors.Control; this.txtMaterialCode.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtMaterialCode.Location = new System.Drawing.Point(70, 180); + this.txtMaterialCode.Location = new System.Drawing.Point(105, 270); + this.txtMaterialCode.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.txtMaterialCode.MaxLength = 3096; this.txtMaterialCode.Name = "txtMaterialCode"; this.txtMaterialCode.ReadOnly = true; - this.txtMaterialCode.Size = new System.Drawing.Size(370, 29); + this.txtMaterialCode.Size = new System.Drawing.Size(553, 39); this.txtMaterialCode.TabIndex = 30; this.txtMaterialCode.TextChanged += new System.EventHandler(this.txtMaterialCode_TextChanged); // @@ -292,9 +300,10 @@ // this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label6.Location = new System.Drawing.Point(3, 183); + this.label6.Location = new System.Drawing.Point(4, 274); + this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(63, 22); + this.label6.Size = new System.Drawing.Size(93, 31); this.label6.TabIndex = 29; this.label6.Text = "零件号:"; // @@ -302,9 +311,10 @@ // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label1.Location = new System.Drawing.Point(3, 144); + this.label1.Location = new System.Drawing.Point(4, 216); + this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(63, 22); + this.label1.Size = new System.Drawing.Size(93, 31); this.label1.TabIndex = 25; this.label1.Text = "零件名:"; // @@ -314,9 +324,11 @@ this.groupBox1.Controls.Add(this.tpPrintMode); this.groupBox1.Dock = System.Windows.Forms.DockStyle.Right; this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.groupBox1.Location = new System.Drawing.Point(685, 4); + this.groupBox1.Location = new System.Drawing.Point(1028, 6); + this.groupBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(451, 607); + this.groupBox1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox1.Size = new System.Drawing.Size(676, 910); this.groupBox1.TabIndex = 40; this.groupBox1.TabStop = false; // @@ -336,10 +348,10 @@ this.plPrintSetting.Controls.Add(this.comMachine); this.plPrintSetting.Controls.Add(this.btnLockMachine); this.plPrintSetting.Dock = System.Windows.Forms.DockStyle.Top; - this.plPrintSetting.Location = new System.Drawing.Point(3, 25); + this.plPrintSetting.Location = new System.Drawing.Point(4, 36); this.plPrintSetting.Margin = new System.Windows.Forms.Padding(0); this.plPrintSetting.Name = "plPrintSetting"; - this.plPrintSetting.Size = new System.Drawing.Size(445, 404); + this.plPrintSetting.Size = new System.Drawing.Size(668, 606); this.plPrintSetting.TabIndex = 64; // // panel34 @@ -350,9 +362,10 @@ this.panel34.Controls.Add(this.txtMaterial3); this.panel34.Controls.Add(this.labelTex4); this.panel34.Controls.Add(this.labelTex3); - this.panel34.Location = new System.Drawing.Point(0, 212); + this.panel34.Location = new System.Drawing.Point(0, 318); + this.panel34.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.panel34.Name = "panel34"; - this.panel34.Size = new System.Drawing.Size(449, 118); + this.panel34.Size = new System.Drawing.Size(674, 177); this.panel34.TabIndex = 50; this.panel34.Visible = false; // @@ -360,20 +373,22 @@ // this.txtMaterial2.BackColor = System.Drawing.SystemColors.Control; this.txtMaterial2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtMaterial2.Location = new System.Drawing.Point(70, 8); + this.txtMaterial2.Location = new System.Drawing.Point(105, 12); + this.txtMaterial2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.txtMaterial2.MaxLength = 3096; this.txtMaterial2.Name = "txtMaterial2"; this.txtMaterial2.ReadOnly = true; - this.txtMaterial2.Size = new System.Drawing.Size(369, 29); + this.txtMaterial2.Size = new System.Drawing.Size(552, 39); this.txtMaterial2.TabIndex = 56; // // labelTex2 // this.labelTex2.AutoSize = true; this.labelTex2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelTex2.Location = new System.Drawing.Point(1, 11); + this.labelTex2.Location = new System.Drawing.Point(2, 16); + this.labelTex2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelTex2.Name = "labelTex2"; - this.labelTex2.Size = new System.Drawing.Size(67, 22); + this.labelTex2.Size = new System.Drawing.Size(99, 31); this.labelTex2.TabIndex = 55; this.labelTex2.Text = "零件#2:"; // @@ -381,31 +396,34 @@ // this.txtMaterial4.BackColor = System.Drawing.SystemColors.Control; this.txtMaterial4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtMaterial4.Location = new System.Drawing.Point(71, 83); + this.txtMaterial4.Location = new System.Drawing.Point(106, 124); + this.txtMaterial4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.txtMaterial4.MaxLength = 3096; this.txtMaterial4.Name = "txtMaterial4"; this.txtMaterial4.ReadOnly = true; - this.txtMaterial4.Size = new System.Drawing.Size(368, 29); + this.txtMaterial4.Size = new System.Drawing.Size(550, 39); this.txtMaterial4.TabIndex = 54; // // txtMaterial3 // this.txtMaterial3.BackColor = System.Drawing.SystemColors.Control; this.txtMaterial3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtMaterial3.Location = new System.Drawing.Point(70, 45); + this.txtMaterial3.Location = new System.Drawing.Point(105, 68); + this.txtMaterial3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.txtMaterial3.MaxLength = 3096; this.txtMaterial3.Name = "txtMaterial3"; this.txtMaterial3.ReadOnly = true; - this.txtMaterial3.Size = new System.Drawing.Size(369, 29); + this.txtMaterial3.Size = new System.Drawing.Size(552, 39); this.txtMaterial3.TabIndex = 53; // // labelTex4 // this.labelTex4.AutoSize = true; this.labelTex4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelTex4.Location = new System.Drawing.Point(1, 86); + this.labelTex4.Location = new System.Drawing.Point(2, 129); + this.labelTex4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelTex4.Name = "labelTex4"; - this.labelTex4.Size = new System.Drawing.Size(67, 22); + this.labelTex4.Size = new System.Drawing.Size(99, 31); this.labelTex4.TabIndex = 50; this.labelTex4.Text = "零件#4:"; // @@ -413,9 +431,10 @@ // this.labelTex3.AutoSize = true; this.labelTex3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelTex3.Location = new System.Drawing.Point(1, 48); + this.labelTex3.Location = new System.Drawing.Point(2, 72); + this.labelTex3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelTex3.Name = "labelTex3"; - this.labelTex3.Size = new System.Drawing.Size(67, 22); + this.labelTex3.Size = new System.Drawing.Size(99, 31); this.labelTex3.TabIndex = 49; this.labelTex3.Text = "零件#3:"; // @@ -424,18 +443,20 @@ this.cbMould.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbMould.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.cbMould.FormattingEnabled = true; - this.cbMould.Location = new System.Drawing.Point(70, 44); + this.cbMould.Location = new System.Drawing.Point(105, 66); + this.cbMould.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cbMould.Name = "cbMould"; - this.cbMould.Size = new System.Drawing.Size(370, 30); + this.cbMould.Size = new System.Drawing.Size(553, 39); this.cbMould.TabIndex = 60; // // label9 // this.label9.AutoSize = true; this.label9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(2, 6); + this.label9.Location = new System.Drawing.Point(3, 9); + this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(63, 22); + this.label9.Size = new System.Drawing.Size(93, 31); this.label9.TabIndex = 25; this.label9.Text = "注塑机:"; // @@ -445,9 +466,11 @@ this.groupBox3.Controls.Add(this.radioButDouble); this.groupBox3.Controls.Add(this.radioButFourth); this.groupBox3.Enabled = false; - this.groupBox3.Location = new System.Drawing.Point(136, 73); + this.groupBox3.Location = new System.Drawing.Point(204, 110); + this.groupBox3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.groupBox3.Name = "groupBox3"; - this.groupBox3.Size = new System.Drawing.Size(303, 58); + this.groupBox3.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox3.Size = new System.Drawing.Size(454, 87); this.groupBox3.TabIndex = 49; this.groupBox3.TabStop = false; // @@ -455,9 +478,10 @@ // this.radioButSignal.AutoSize = true; this.radioButSignal.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.radioButSignal.Location = new System.Drawing.Point(7, 22); + this.radioButSignal.Location = new System.Drawing.Point(10, 33); + this.radioButSignal.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.radioButSignal.Name = "radioButSignal"; - this.radioButSignal.Size = new System.Drawing.Size(92, 26); + this.radioButSignal.Size = new System.Drawing.Size(135, 35); this.radioButSignal.TabIndex = 44; this.radioButSignal.TabStop = true; this.radioButSignal.Text = "单件打印"; @@ -468,9 +492,10 @@ // this.radioButDouble.AutoSize = true; this.radioButDouble.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.radioButDouble.Location = new System.Drawing.Point(107, 22); + this.radioButDouble.Location = new System.Drawing.Point(160, 33); + this.radioButDouble.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.radioButDouble.Name = "radioButDouble"; - this.radioButDouble.Size = new System.Drawing.Size(92, 26); + this.radioButDouble.Size = new System.Drawing.Size(135, 35); this.radioButDouble.TabIndex = 45; this.radioButDouble.TabStop = true; this.radioButDouble.Text = "双件打印"; @@ -481,9 +506,10 @@ // this.radioButFourth.AutoSize = true; this.radioButFourth.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.radioButFourth.Location = new System.Drawing.Point(207, 22); + this.radioButFourth.Location = new System.Drawing.Point(310, 33); + this.radioButFourth.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.radioButFourth.Name = "radioButFourth"; - this.radioButFourth.Size = new System.Drawing.Size(92, 26); + this.radioButFourth.Size = new System.Drawing.Size(135, 35); this.radioButFourth.TabIndex = 46; this.radioButFourth.TabStop = true; this.radioButFourth.Text = "四件打印"; @@ -494,9 +520,10 @@ // this.label10.AutoSize = true; this.label10.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(18, 48); + this.label10.Location = new System.Drawing.Point(27, 72); + this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(47, 22); + this.label10.Size = new System.Drawing.Size(69, 31); this.label10.TabIndex = 61; this.label10.Text = "模具:"; // @@ -505,18 +532,20 @@ this.comMachine.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comMachine.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.comMachine.FormattingEnabled = true; - this.comMachine.Location = new System.Drawing.Point(71, 4); + this.comMachine.Location = new System.Drawing.Point(106, 6); + this.comMachine.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.comMachine.Name = "comMachine"; - this.comMachine.Size = new System.Drawing.Size(297, 30); + this.comMachine.Size = new System.Drawing.Size(444, 39); this.comMachine.TabIndex = 60; this.comMachine.SelectedIndexChanged += new System.EventHandler(this.comMachine_SelectedIndexChanged); // // btnLockMachine // this.btnLockMachine.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnLockMachine.Location = new System.Drawing.Point(374, 3); + this.btnLockMachine.Location = new System.Drawing.Point(561, 4); + this.btnLockMachine.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btnLockMachine.Name = "btnLockMachine"; - this.btnLockMachine.Size = new System.Drawing.Size(67, 32); + this.btnLockMachine.Size = new System.Drawing.Size(100, 48); this.btnLockMachine.TabIndex = 63; this.btnLockMachine.Text = "锁定"; this.btnLockMachine.UseVisualStyleBackColor = true; @@ -529,11 +558,12 @@ this.tpPrintMode.Controls.Add(this.tpTimer); this.tpPrintMode.Dock = System.Windows.Forms.DockStyle.Bottom; this.tpPrintMode.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.tpPrintMode.Location = new System.Drawing.Point(3, 458); + this.tpPrintMode.Location = new System.Drawing.Point(4, 687); + this.tpPrintMode.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.tpPrintMode.Name = "tpPrintMode"; this.tpPrintMode.Padding = new System.Drawing.Point(12, 9); this.tpPrintMode.SelectedIndex = 0; - this.tpPrintMode.Size = new System.Drawing.Size(445, 146); + this.tpPrintMode.Size = new System.Drawing.Size(668, 219); this.tpPrintMode.TabIndex = 62; // // tpOnline @@ -541,10 +571,11 @@ this.tpOnline.Controls.Add(this.cbSkipHistory); this.tpOnline.Controls.Add(this.btnStartFileScan); this.tpOnline.Controls.Add(this.btnStopFileScan); - this.tpOnline.Location = new System.Drawing.Point(4, 47); + this.tpOnline.Location = new System.Drawing.Point(4, 58); + this.tpOnline.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.tpOnline.Name = "tpOnline"; - this.tpOnline.Padding = new System.Windows.Forms.Padding(3); - this.tpOnline.Size = new System.Drawing.Size(437, 95); + this.tpOnline.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.tpOnline.Size = new System.Drawing.Size(660, 157); this.tpOnline.TabIndex = 0; this.tpOnline.Text = "注塑联机打印"; this.tpOnline.UseVisualStyleBackColor = true; @@ -556,9 +587,10 @@ this.cbSkipHistory.Checked = true; this.cbSkipHistory.CheckState = System.Windows.Forms.CheckState.Checked; this.cbSkipHistory.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.cbSkipHistory.Location = new System.Drawing.Point(19, 19); + this.cbSkipHistory.Location = new System.Drawing.Point(28, 28); + this.cbSkipHistory.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cbSkipHistory.Name = "cbSkipHistory"; - this.cbSkipHistory.Size = new System.Drawing.Size(78, 60); + this.cbSkipHistory.Size = new System.Drawing.Size(114, 87); this.cbSkipHistory.TabIndex = 60; this.cbSkipHistory.Text = "扫描跳过\r\n历史数据"; this.cbSkipHistory.UseVisualStyleBackColor = true; @@ -567,9 +599,10 @@ // this.btnStartFileScan.Font = new System.Drawing.Font("微软雅黑", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnStartFileScan.Image = global::QMAPP.WinForm.Resource1.forward; - this.btnStartFileScan.Location = new System.Drawing.Point(114, 6); + this.btnStartFileScan.Location = new System.Drawing.Point(171, 9); + this.btnStartFileScan.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btnStartFileScan.Name = "btnStartFileScan"; - this.btnStartFileScan.Size = new System.Drawing.Size(150, 83); + this.btnStartFileScan.Size = new System.Drawing.Size(225, 124); this.btnStartFileScan.TabIndex = 59; this.btnStartFileScan.Text = "启动参数\r\n文件扫描"; this.btnStartFileScan.TextAlign = System.Drawing.ContentAlignment.MiddleRight; @@ -582,9 +615,10 @@ this.btnStopFileScan.Enabled = false; this.btnStopFileScan.Font = new System.Drawing.Font("微软雅黑", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnStopFileScan.Image = global::QMAPP.WinForm.Resource1.st; - this.btnStopFileScan.Location = new System.Drawing.Point(270, 6); + this.btnStopFileScan.Location = new System.Drawing.Point(405, 9); + this.btnStopFileScan.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btnStopFileScan.Name = "btnStopFileScan"; - this.btnStopFileScan.Size = new System.Drawing.Size(150, 83); + this.btnStopFileScan.Size = new System.Drawing.Size(225, 124); this.btnStopFileScan.TabIndex = 58; this.btnStopFileScan.Text = "停止参数\r\n文件扫描"; this.btnStopFileScan.TextAlign = System.Drawing.ContentAlignment.MiddleRight; @@ -592,6 +626,31 @@ this.btnStopFileScan.UseVisualStyleBackColor = true; this.btnStopFileScan.Click += new System.EventHandler(this.btnStopFileScan_Click); // + // tpManual + // + this.tpManual.Controls.Add(this.cbTemplateDesign); + this.tpManual.Controls.Add(this.tsbPrint); + this.tpManual.Location = new System.Drawing.Point(4, 58); + this.tpManual.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.tpManual.Name = "tpManual"; + this.tpManual.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.tpManual.Size = new System.Drawing.Size(660, 157); + this.tpManual.TabIndex = 2; + this.tpManual.Text = "手动打印"; + this.tpManual.UseVisualStyleBackColor = true; + // + // cbTemplateDesign + // + this.cbTemplateDesign.AutoSize = true; + this.cbTemplateDesign.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.cbTemplateDesign.Location = new System.Drawing.Point(9, 9); + this.cbTemplateDesign.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.cbTemplateDesign.Name = "cbTemplateDesign"; + this.cbTemplateDesign.Size = new System.Drawing.Size(136, 35); + this.cbTemplateDesign.TabIndex = 35; + this.cbTemplateDesign.Text = "模板调整"; + this.cbTemplateDesign.UseVisualStyleBackColor = true; + // // tpTimer // this.tpTimer.Controls.Add(this.label5); @@ -602,10 +661,11 @@ this.tpTimer.Controls.Add(this.lblLastCount); this.tpTimer.Controls.Add(this.label7); this.tpTimer.Controls.Add(this.label8); - this.tpTimer.Location = new System.Drawing.Point(4, 47); + this.tpTimer.Location = new System.Drawing.Point(4, 58); + this.tpTimer.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.tpTimer.Name = "tpTimer"; - this.tpTimer.Padding = new System.Windows.Forms.Padding(3); - this.tpTimer.Size = new System.Drawing.Size(437, 95); + this.tpTimer.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.tpTimer.Size = new System.Drawing.Size(660, 157); this.tpTimer.TabIndex = 1; this.tpTimer.Text = "定时打印"; this.tpTimer.UseVisualStyleBackColor = true; @@ -614,9 +674,10 @@ // this.label5.AutoSize = true; this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(8, 13); + this.label5.Location = new System.Drawing.Point(12, 20); + this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(88, 26); + this.label5.Size = new System.Drawing.Size(129, 37); this.label5.TabIndex = 56; this.label5.Text = "定时打印"; // @@ -635,9 +696,10 @@ "60s", "70s", "80s"}); - this.cbPrintSpan.Location = new System.Drawing.Point(102, 10); + this.cbPrintSpan.Location = new System.Drawing.Point(153, 15); + this.cbPrintSpan.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cbPrintSpan.Name = "cbPrintSpan"; - this.cbPrintSpan.Size = new System.Drawing.Size(106, 34); + this.cbPrintSpan.Size = new System.Drawing.Size(157, 45); this.cbPrintSpan.TabIndex = 53; // // cbPrintCount @@ -653,17 +715,19 @@ "200", "300", "400"}); - this.cbPrintCount.Location = new System.Drawing.Point(102, 51); + this.cbPrintCount.Location = new System.Drawing.Point(153, 76); + this.cbPrintCount.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cbPrintCount.Name = "cbPrintCount"; - this.cbPrintCount.Size = new System.Drawing.Size(106, 34); + this.cbPrintCount.Size = new System.Drawing.Size(157, 45); this.cbPrintCount.TabIndex = 54; // // btnStart // this.btnStart.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnStart.Location = new System.Drawing.Point(229, 9); + this.btnStart.Location = new System.Drawing.Point(344, 14); + this.btnStart.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btnStart.Name = "btnStart"; - this.btnStart.Size = new System.Drawing.Size(90, 35); + this.btnStart.Size = new System.Drawing.Size(135, 52); this.btnStart.TabIndex = 55; this.btnStart.Text = "开始"; this.btnStart.UseVisualStyleBackColor = true; @@ -673,9 +737,10 @@ // this.btnStop.Enabled = false; this.btnStop.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnStop.Location = new System.Drawing.Point(330, 9); + this.btnStop.Location = new System.Drawing.Point(495, 14); + this.btnStop.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btnStop.Name = "btnStop"; - this.btnStop.Size = new System.Drawing.Size(90, 35); + this.btnStop.Size = new System.Drawing.Size(135, 52); this.btnStop.TabIndex = 55; this.btnStop.Text = "停止"; this.btnStop.UseVisualStyleBackColor = true; @@ -685,9 +750,10 @@ // this.lblLastCount.AutoSize = true; this.lblLastCount.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.lblLastCount.Location = new System.Drawing.Point(332, 56); + this.lblLastCount.Location = new System.Drawing.Point(498, 84); + this.lblLastCount.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lblLastCount.Name = "lblLastCount"; - this.lblLastCount.Size = new System.Drawing.Size(24, 26); + this.lblLastCount.Size = new System.Drawing.Size(34, 37); this.lblLastCount.TabIndex = 59; this.lblLastCount.Text = "0"; // @@ -695,9 +761,10 @@ // this.label7.AutoSize = true; this.label7.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label7.Location = new System.Drawing.Point(8, 54); + this.label7.Location = new System.Drawing.Point(12, 81); + this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(88, 26); + this.label7.Size = new System.Drawing.Size(129, 37); this.label7.TabIndex = 57; this.label7.Text = "打印数量"; // @@ -705,35 +772,13 @@ // this.label8.AutoSize = true; this.label8.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label8.Location = new System.Drawing.Point(231, 56); + this.label8.Location = new System.Drawing.Point(346, 84); + this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(88, 26); + this.label8.Size = new System.Drawing.Size(129, 37); this.label8.TabIndex = 58; this.label8.Text = "剩余数量"; // - // tpManual - // - this.tpManual.Controls.Add(this.cbTemplateDesign); - this.tpManual.Controls.Add(this.tsbPrint); - this.tpManual.Location = new System.Drawing.Point(4, 47); - this.tpManual.Name = "tpManual"; - this.tpManual.Padding = new System.Windows.Forms.Padding(3); - this.tpManual.Size = new System.Drawing.Size(437, 95); - this.tpManual.TabIndex = 2; - this.tpManual.Text = "手动打印"; - this.tpManual.UseVisualStyleBackColor = true; - // - // cbTemplateDesign - // - this.cbTemplateDesign.AutoSize = true; - this.cbTemplateDesign.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.cbTemplateDesign.Location = new System.Drawing.Point(6, 6); - this.cbTemplateDesign.Name = "cbTemplateDesign"; - this.cbTemplateDesign.Size = new System.Drawing.Size(93, 25); - this.cbTemplateDesign.TabIndex = 35; - this.cbTemplateDesign.Text = "模板调整"; - this.cbTemplateDesign.UseVisualStyleBackColor = true; - // // timer2 // this.timer2.Enabled = true; @@ -746,20 +791,21 @@ this.tabControl1.Controls.Add(this.tabPage2); this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.tabControl1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.tabControl1.Location = new System.Drawing.Point(4, 4); - this.tabControl1.Margin = new System.Windows.Forms.Padding(10, 10, 10, 3); + this.tabControl1.Location = new System.Drawing.Point(6, 6); + this.tabControl1.Margin = new System.Windows.Forms.Padding(15, 15, 15, 4); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; - this.tabControl1.Size = new System.Drawing.Size(681, 607); + this.tabControl1.Size = new System.Drawing.Size(1022, 910); this.tabControl1.TabIndex = 41; // // tabPage1 // this.tabPage1.Controls.Add(this.DGView); - this.tabPage1.Location = new System.Drawing.Point(4, 30); + this.tabPage1.Location = new System.Drawing.Point(4, 40); + this.tabPage1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.tabPage1.Name = "tabPage1"; - this.tabPage1.Padding = new System.Windows.Forms.Padding(3); - this.tabPage1.Size = new System.Drawing.Size(673, 573); + this.tabPage1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.tabPage1.Size = new System.Drawing.Size(1014, 866); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "打印记录"; this.tabPage1.UseVisualStyleBackColor = true; @@ -768,10 +814,11 @@ // this.tabPage2.Controls.Add(this.groupBox4); this.tabPage2.Controls.Add(this.groupBox2); - this.tabPage2.Location = new System.Drawing.Point(4, 30); + this.tabPage2.Location = new System.Drawing.Point(4, 40); + this.tabPage2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.tabPage2.Name = "tabPage2"; - this.tabPage2.Padding = new System.Windows.Forms.Padding(3); - this.tabPage2.Size = new System.Drawing.Size(673, 573); + this.tabPage2.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.tabPage2.Size = new System.Drawing.Size(1014, 866); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "注塑参数扫描"; this.tabPage2.UseVisualStyleBackColor = true; @@ -780,9 +827,11 @@ // this.groupBox4.Controls.Add(this.lvParamRecords); this.groupBox4.Dock = System.Windows.Forms.DockStyle.Fill; - this.groupBox4.Location = new System.Drawing.Point(3, 140); + this.groupBox4.Location = new System.Drawing.Point(4, 210); + this.groupBox4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.groupBox4.Name = "groupBox4"; - this.groupBox4.Size = new System.Drawing.Size(667, 430); + this.groupBox4.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox4.Size = new System.Drawing.Size(1006, 652); this.groupBox4.TabIndex = 1; this.groupBox4.TabStop = false; this.groupBox4.Text = "扫描记录"; @@ -794,9 +843,11 @@ this.lvParamRecords.Dock = System.Windows.Forms.DockStyle.Fill; this.lvParamRecords.FullRowSelect = true; this.lvParamRecords.GridLines = true; - this.lvParamRecords.Location = new System.Drawing.Point(3, 25); + this.lvParamRecords.HideSelection = false; + this.lvParamRecords.Location = new System.Drawing.Point(4, 36); + this.lvParamRecords.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.lvParamRecords.Name = "lvParamRecords"; - this.lvParamRecords.Size = new System.Drawing.Size(661, 402); + this.lvParamRecords.Size = new System.Drawing.Size(998, 612); this.lvParamRecords.TabIndex = 0; this.lvParamRecords.UseCompatibleStateImageBehavior = false; this.lvParamRecords.View = System.Windows.Forms.View.Details; @@ -819,9 +870,11 @@ this.groupBox2.Controls.Add(this.txtFilePath); this.groupBox2.Controls.Add(this.label4); this.groupBox2.Dock = System.Windows.Forms.DockStyle.Top; - this.groupBox2.Location = new System.Drawing.Point(3, 3); + this.groupBox2.Location = new System.Drawing.Point(4, 4); + this.groupBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.groupBox2.Name = "groupBox2"; - this.groupBox2.Size = new System.Drawing.Size(667, 137); + this.groupBox2.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox2.Size = new System.Drawing.Size(1006, 206); this.groupBox2.TabIndex = 0; this.groupBox2.TabStop = false; this.groupBox2.Text = "参数信息"; @@ -833,18 +886,20 @@ this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.Add(this.picConnectState); this.panel1.Controls.Add(this.txtConnectState); - this.panel1.Location = new System.Drawing.Point(537, 24); + this.panel1.Location = new System.Drawing.Point(812, 36); + this.panel1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(117, 29); + this.panel1.Size = new System.Drawing.Size(174, 42); this.panel1.TabIndex = 12; // // picConnectState // this.picConnectState.BackColor = System.Drawing.SystemColors.Control; this.picConnectState.Image = global::QMAPP.WinForm.Resource1.help; - this.picConnectState.Location = new System.Drawing.Point(1, 1); + this.picConnectState.Location = new System.Drawing.Point(2, 2); + this.picConnectState.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.picConnectState.Name = "picConnectState"; - this.picConnectState.Size = new System.Drawing.Size(25, 25); + this.picConnectState.Size = new System.Drawing.Size(38, 38); this.picConnectState.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.picConnectState.TabIndex = 2; this.picConnectState.TabStop = false; @@ -853,28 +908,31 @@ // this.txtConnectState.BackColor = System.Drawing.SystemColors.Control; this.txtConnectState.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.txtConnectState.Location = new System.Drawing.Point(32, 3); + this.txtConnectState.Location = new System.Drawing.Point(48, 4); + this.txtConnectState.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.txtConnectState.Name = "txtConnectState"; this.txtConnectState.ReadOnly = true; - this.txtConnectState.Size = new System.Drawing.Size(80, 22); + this.txtConnectState.Size = new System.Drawing.Size(120, 32); this.txtConnectState.TabIndex = 11; // // txtLastScanTime // this.txtLastScanTime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.txtLastScanTime.Location = new System.Drawing.Point(537, 61); + this.txtLastScanTime.Location = new System.Drawing.Point(812, 92); + this.txtLastScanTime.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.txtLastScanTime.Name = "txtLastScanTime"; this.txtLastScanTime.ReadOnly = true; - this.txtLastScanTime.Size = new System.Drawing.Size(117, 29); + this.txtLastScanTime.Size = new System.Drawing.Size(174, 39); this.txtLastScanTime.TabIndex = 8; // // label14 // this.label14.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label14.AutoSize = true; - this.label14.Location = new System.Drawing.Point(452, 64); + this.label14.Location = new System.Drawing.Point(684, 96); + this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(90, 21); + this.label14.Size = new System.Drawing.Size(134, 31); this.label14.TabIndex = 7; this.label14.Text = "扫描时间:"; // @@ -882,18 +940,20 @@ // this.txtMessage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtMessage.Location = new System.Drawing.Point(73, 97); + this.txtMessage.Location = new System.Drawing.Point(110, 146); + this.txtMessage.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.txtMessage.Name = "txtMessage"; this.txtMessage.ReadOnly = true; - this.txtMessage.Size = new System.Drawing.Size(581, 29); + this.txtMessage.Size = new System.Drawing.Size(876, 39); this.txtMessage.TabIndex = 6; // // label12 // this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(21, 100); + this.label12.Location = new System.Drawing.Point(32, 150); + this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(58, 21); + this.label12.Size = new System.Drawing.Size(86, 31); this.label12.TabIndex = 5; this.label12.Text = "消息:"; // @@ -901,18 +961,20 @@ // this.txtCurrentFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtCurrentFile.Location = new System.Drawing.Point(73, 61); + this.txtCurrentFile.Location = new System.Drawing.Point(110, 92); + this.txtCurrentFile.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.txtCurrentFile.Name = "txtCurrentFile"; this.txtCurrentFile.ReadOnly = true; - this.txtCurrentFile.Size = new System.Drawing.Size(358, 29); + this.txtCurrentFile.Size = new System.Drawing.Size(541, 39); this.txtCurrentFile.TabIndex = 6; // // label13 // this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(6, 65); + this.label13.Location = new System.Drawing.Point(9, 98); + this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(74, 21); + this.label13.Size = new System.Drawing.Size(110, 31); this.label13.TabIndex = 5; this.label13.Text = "文件名:"; // @@ -920,9 +982,10 @@ // this.label11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(453, 27); + this.label11.Location = new System.Drawing.Point(686, 40); + this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(90, 21); + this.label11.Size = new System.Drawing.Size(134, 31); this.label11.TabIndex = 3; this.label11.Text = "连接状态:"; // @@ -930,30 +993,33 @@ // this.txtFilePath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtFilePath.Location = new System.Drawing.Point(73, 24); + this.txtFilePath.Location = new System.Drawing.Point(110, 36); + this.txtFilePath.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.txtFilePath.Name = "txtFilePath"; this.txtFilePath.ReadOnly = true; - this.txtFilePath.Size = new System.Drawing.Size(358, 29); + this.txtFilePath.Size = new System.Drawing.Size(541, 39); this.txtFilePath.TabIndex = 1; // // label4 // this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(21, 27); + this.label4.Location = new System.Drawing.Point(32, 40); + this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(58, 21); + this.label4.Size = new System.Drawing.Size(86, 31); this.label4.TabIndex = 0; this.label4.Text = "路径:"; // // InjectionCodePrint // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1140, 615); + this.ClientSize = new System.Drawing.Size(1710, 922); this.Controls.Add(this.tabControl1); this.Controls.Add(this.groupBox1); + this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.Name = "InjectionCodePrint"; - this.Padding = new System.Windows.Forms.Padding(4); + this.Padding = new System.Windows.Forms.Padding(6, 6, 6, 6); this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "注塑条码打印"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.InjectionCodePrint_FormClosed); @@ -971,10 +1037,10 @@ this.tpPrintMode.ResumeLayout(false); this.tpOnline.ResumeLayout(false); this.tpOnline.PerformLayout(); - this.tpTimer.ResumeLayout(false); - this.tpTimer.PerformLayout(); this.tpManual.ResumeLayout(false); this.tpManual.PerformLayout(); + this.tpTimer.ResumeLayout(false); + this.tpTimer.PerformLayout(); this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.tabPage2.ResumeLayout(false); diff --git a/APPQ5/QMAPP.WinForm/Forms/Injection/InjectionCodePrint.resx b/APPQ5/QMAPP.WinForm/Forms/Injection/InjectionCodePrint.resx index cd9c729..29e8347 100644 --- a/APPQ5/QMAPP.WinForm/Forms/Injection/InjectionCodePrint.resx +++ b/APPQ5/QMAPP.WinForm/Forms/Injection/InjectionCodePrint.resx @@ -133,6 +133,6 @@ 107, 17 - 33 + 270 \ No newline at end of file diff --git a/APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.Designer.cs b/APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.Designer.cs index b78beb4..440408c 100644 --- a/APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.Designer.cs +++ b/APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.Designer.cs @@ -29,12 +29,12 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); this.DGView = new System.Windows.Forms.DataGridView(); this.MAINCODE = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.MATERIAL_NAME = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -81,14 +81,14 @@ this.DGView.AllowUserToDeleteRows = false; this.DGView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.DGView.BackgroundColor = System.Drawing.SystemColors.ButtonFace; - dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle7.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.DGView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.DGView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.DGView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.DGView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.MAINCODE, @@ -100,14 +100,14 @@ this.DGView.Margin = new System.Windows.Forms.Padding(4); this.DGView.Name = "DGView"; this.DGView.ReadOnly = true; - dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle12.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.DGView.RowHeadersDefaultCellStyle = dataGridViewCellStyle12; + dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.DGView.RowHeadersDefaultCellStyle = dataGridViewCellStyle6; this.DGView.RowTemplate.Height = 23; this.DGView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.DGView.Size = new System.Drawing.Size(1006, 858); @@ -117,8 +117,8 @@ // this.MAINCODE.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.MAINCODE.DataPropertyName = "MAINCODE"; - dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 15.75F); - this.MAINCODE.DefaultCellStyle = dataGridViewCellStyle8; + dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 15.75F); + this.MAINCODE.DefaultCellStyle = dataGridViewCellStyle2; this.MAINCODE.FillWeight = 48.95314F; this.MAINCODE.HeaderText = "条码信息"; this.MAINCODE.Name = "MAINCODE"; @@ -129,8 +129,8 @@ // this.MATERIAL_NAME.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.MATERIAL_NAME.DataPropertyName = "MATERIAL_NAME"; - dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 15.75F); - this.MATERIAL_NAME.DefaultCellStyle = dataGridViewCellStyle9; + dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 15.75F); + this.MATERIAL_NAME.DefaultCellStyle = dataGridViewCellStyle3; this.MATERIAL_NAME.FillWeight = 99.90437F; this.MATERIAL_NAME.HeaderText = "零件名称"; this.MATERIAL_NAME.Name = "MATERIAL_NAME"; @@ -141,8 +141,8 @@ // this.PRODUCTCODE.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.PRODUCTCODE.DataPropertyName = "PRODUCTCODE"; - dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.PRODUCTCODE.DefaultCellStyle = dataGridViewCellStyle10; + dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.PRODUCTCODE.DefaultCellStyle = dataGridViewCellStyle4; this.PRODUCTCODE.FillWeight = 48.95314F; this.PRODUCTCODE.HeaderText = "零件号"; this.PRODUCTCODE.Name = "PRODUCTCODE"; @@ -153,11 +153,11 @@ // this.CREATETIME.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.CREATETIME.DataPropertyName = "CREATETIME"; - dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle11.Font = new System.Drawing.Font("宋体", 15.75F); - dataGridViewCellStyle11.Format = "f"; - dataGridViewCellStyle11.NullValue = null; - this.CREATETIME.DefaultCellStyle = dataGridViewCellStyle11; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 15.75F); + dataGridViewCellStyle5.Format = "f"; + dataGridViewCellStyle5.NullValue = null; + this.CREATETIME.DefaultCellStyle = dataGridViewCellStyle5; this.CREATETIME.FillWeight = 48.95314F; this.CREATETIME.HeaderText = "操作时间"; this.CREATETIME.Name = "CREATETIME"; @@ -411,7 +411,6 @@ // // btnStop // - this.btnStop.Enabled = false; this.btnStop.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnStop.Location = new System.Drawing.Point(495, 14); this.btnStop.Margin = new System.Windows.Forms.Padding(4); diff --git a/APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.cs b/APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.cs index 4f1e991..7159775 100644 --- a/APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.cs +++ b/APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.cs @@ -433,7 +433,7 @@ namespace QMAPP.WinForm.Forms.Injection tsbPrint.Enabled = false; //btnChoiceMaterial.Enabled = false; //groupBox3.Enabled = false; - printtimer = int.Parse(cbPrintSpan.Text.Trim('s')); + //printtimer = int.Parse(cbPrintSpan.Text.Trim('s')); LockPrintMode(2); } @@ -441,7 +441,7 @@ namespace QMAPP.WinForm.Forms.Injection private void btnStop_Click(object sender, EventArgs e) { btnStart.Enabled = true; - btnStop.Enabled = false; + btnStop.Enabled = true; cbPrintCount.Enabled = true; cbPrintSpan.Enabled = true; //lblLastCount.Text = cbPrintCount.Text; @@ -455,13 +455,13 @@ namespace QMAPP.WinForm.Forms.Injection private void timer2_Tick(object sender, EventArgs e) { - if (!btnStart.Enabled&&btnStop.Enabled) + if (!btnStart.Enabled) { int span=int.Parse(cbPrintSpan.Text.Trim('s')); if (printtimer >= span) { - CodeCreatePrint(); printtimer = 0; + CodeCreatePrint(); var lastcount = int.Parse(lblLastCount.Text) - 1; lblLastCount.Text = lastcount + ""; if (lastcount <= 0) diff --git a/APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.resx b/APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.resx index cd9c729..38bdb05 100644 --- a/APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.resx +++ b/APPQ5/QMAPP.WinForm/Forms/Injection/SewingPrint.resx @@ -133,6 +133,6 @@ 107, 17 - 33 + 176 \ No newline at end of file diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs index 25d219e..aa211ec 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs @@ -2202,28 +2202,38 @@ namespace QMAPP.WinForm.Forms.TianJin #region 针对贴车单上的条码进行出库操作 + var nor = string.Empty; for (var i = 0; i < tbl.Rows.Count; i++) { - var count = agent.InvokeServiceFunction>("StorageBLL_SelectCount", tbl.Rows[i]["VIN"].ToString()); - - //如果条码未入库,先进行入库操作 - if (count.Result <= 0) + if (string.IsNullOrEmpty(nor)) + nor += tbl.Rows[i]["VIN"].ToString() + ","; + else { - Storage pi = new Storage(); - pi.ProductCode = tbl.Rows[i]["VIN"].ToString(); - pi.InStorageType = "发运入库"; + if (!nor.Contains(tbl.Rows[i]["VIN"].ToString())) + { + var count = agent.InvokeServiceFunction>("StorageBLL_SelectCount", tbl.Rows[i]["VIN"].ToString()); - agent.InvokeServiceFunction>("StorageBLL_Insert", pi); - } + //如果条码未入库,先进行入库操作 + if (count.Result <= 0) + { + Storage pi = new Storage(); + pi.ProductCode = tbl.Rows[i]["VIN"].ToString(); + pi.InStorageType = "发运入库"; - var storage = new Storage(); - storage.ProductCode = tbl.Rows[i]["VIN"].ToString(); - storage.OutStorageType = "发运出库"; - var result = agent.InvokeServiceFunction("StorageBLL_Update", storage); - if (!result.IsSuccess) - { - lberror.Text += tbl.Rows[i]["VIN"].ToString() + "出库失败;原因:" + result.Msg; ; + agent.InvokeServiceFunction>("StorageBLL_Insert", pi); + } + + var storage = new Storage(); + storage.ProductCode = tbl.Rows[i]["VIN"].ToString(); + storage.OutStorageType = "发运出库"; + var result = agent.InvokeServiceFunction("StorageBLL_Update", storage); + if (!result.IsSuccess) + { + lberror.Text += tbl.Rows[i]["VIN"].ToString() + "出库失败;原因:" + result.Msg; ; + } + } } + } diff --git a/APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs b/APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs index 5627fda..5a4e5cb 100644 --- a/APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs +++ b/APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值, // 方法是按如下所示使用“*”: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2024.01.24.01")] -[assembly: AssemblyFileVersion("2024.01.24.01")] +[assembly: AssemblyVersion("2024.01.30.01")] +[assembly: AssemblyFileVersion("2024.01.30.01")] diff --git a/AppCommon/QMAPP.ServicesAgent/ServiceEnums.cs b/AppCommon/QMAPP.ServicesAgent/ServiceEnums.cs index 1466ddd..04a7eea 100644 --- a/AppCommon/QMAPP.ServicesAgent/ServiceEnums.cs +++ b/AppCommon/QMAPP.ServicesAgent/ServiceEnums.cs @@ -2239,6 +2239,10 @@ namespace QMAPP.ServicesAgent [Description("通过总成条码获取产品")] FrmPlaceBLL_GetProductByAssembleCode, + + [Description("通过总成条码获取产品")] + FrmPlaceBLL_GetProductByAssembleCodeMP4, + FrmPlaceBLL_GetTimeOutSet, } diff --git a/ServicesCenter/WCF/QMFrameWork.WebServiceHost/Web.config b/ServicesCenter/WCF/QMFrameWork.WebServiceHost/Web.config index 6dc0ed0..f948115 100644 --- a/ServicesCenter/WCF/QMFrameWork.WebServiceHost/Web.config +++ b/ServicesCenter/WCF/QMFrameWork.WebServiceHost/Web.config @@ -66,28 +66,27 @@ - - + --> + + + - + + -