From 1b3f235ec0ec50efa1b813557f7dc244a00c2e73 Mon Sep 17 00:00:00 2001 From: "songnan.zhang" Date: Thu, 31 Mar 2022 10:13:15 +0800 Subject: [PATCH] 1 --- APPQ5/QMAPP.FJC.BLL/TianJin/StorageBLL.cs | 8 ++- APPQ5/QMAPP.FJC.DAL/FIS/DoorPlankPlanDAL.cs | 5 ++ .../TianJin/TJDoorPlankPlanDAL.cs | 8 ++- .../QMAPP.FJC.Web/Content/Xml/Dictionary.xml | 4 ++ .../Controllers/StorageController.cs | 3 +- .../Controllers/TJDoorPlankPlanController.cs | 1 + .../TJDoorPlankPlanPrintController.cs | 1 + .../Models/FIS/DoorPlankPlanModel.cs | 3 +- .../Models/TianJin/StorageLogModel.cs | 2 +- .../Models/TianJin/StorageModel.cs | 2 +- .../Models/TianJin/TJDoorPlankPlanModel.cs | 3 +- .../TJDoorPlankPlan/DoorPlankPlanList.aspx | 7 ++ .../DoorPlankPlanList.aspx | 7 +- APPQ5/QMAPP.WinForm/App.config | 14 ++-- .../QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs | 39 +++++++++-- .../Forms/TianJin/TJFrmPlace.designer.cs | 4 +- .../TianJin/TJPrintPlanLabel.Designer.cs | 21 +++++- .../Forms/TianJin/TJPrintPlanLabel.cs | 66 +++++++++++++++++ .../Forms/TianJin/TJPrintPlanLabel.resx | 70 +++++++++++++++++++ .../QMAPP.WinForm/Properties/AssemblyInfo.cs | 4 +- .../WCF/QMFrameWork.WebServiceHost/Web.config | 4 +- 21 files changed, 246 insertions(+), 30 deletions(-) diff --git a/APPQ5/QMAPP.FJC.BLL/TianJin/StorageBLL.cs b/APPQ5/QMAPP.FJC.BLL/TianJin/StorageBLL.cs index baaf46a..509a028 100644 --- a/APPQ5/QMAPP.FJC.BLL/TianJin/StorageBLL.cs +++ b/APPQ5/QMAPP.FJC.BLL/TianJin/StorageBLL.cs @@ -155,8 +155,8 @@ namespace QMAPP.FJC.BLL.TianJin storageLog.InStorageType = info.InStorageType; //storageLog - //StorageLogDAL cmdDALlog = new StorageLogDAL(); - //cmdDALlog.Insert(storageLog); + StorageLogDAL cmdDALlog = new StorageLogDAL(); + cmdDALlog.Insert(storageLog); result.IsSuccess = true; @@ -194,6 +194,7 @@ namespace QMAPP.FJC.BLL.TianJin info.State = "2"; info.UPDATEDATE = DateTime.Now.ToString(); info.UPDATEUSER = this.LoginUser.UserName; + info.OutStorageType = model.OutStorageType; int temp = new StorageDAL().Update(info); var storageLog = new StorageLog(); @@ -208,6 +209,9 @@ namespace QMAPP.FJC.BLL.TianJin storageLog.MATERIALNAME = info.MATERIALNAME; storageLog.InStorageType = info.InStorageType; + StorageLogDAL cmdDALlog = new StorageLogDAL(); + cmdDALlog.Insert(storageLog); + if (temp == 0) { result.IsSuccess = false; diff --git a/APPQ5/QMAPP.FJC.DAL/FIS/DoorPlankPlanDAL.cs b/APPQ5/QMAPP.FJC.DAL/FIS/DoorPlankPlanDAL.cs index c27f747..e94a9da 100644 --- a/APPQ5/QMAPP.FJC.DAL/FIS/DoorPlankPlanDAL.cs +++ b/APPQ5/QMAPP.FJC.DAL/FIS/DoorPlankPlanDAL.cs @@ -177,6 +177,11 @@ namespace QMAPP.FJC.DAL.FIS whereBuilder.Append(" AND PLAN_NO = @PLAN_NO "); parameters.Add(new DataParameter { ParameterName = "PLAN_NO", DataType = DbType.String, Value = condition.PLAN_NO }); } + if (string.IsNullOrEmpty(condition.PLAN_STATE) == false) + { + whereBuilder.Append(" AND O.PLAN_STATE = @PLAN_STATE "); + parameters.Add(new DataParameter { ParameterName = "PLAN_STATE", DataType = DbType.String, Value = condition.PLAN_STATE }); + } //物料号 if (string.IsNullOrEmpty(condition.MATERIAL_CODE) == false) { diff --git a/APPQ5/QMAPP.FJC.DAL/TianJin/TJDoorPlankPlanDAL.cs b/APPQ5/QMAPP.FJC.DAL/TianJin/TJDoorPlankPlanDAL.cs index c774da8..500824e 100644 --- a/APPQ5/QMAPP.FJC.DAL/TianJin/TJDoorPlankPlanDAL.cs +++ b/APPQ5/QMAPP.FJC.DAL/TianJin/TJDoorPlankPlanDAL.cs @@ -131,7 +131,13 @@ namespace QMAPP.FJC.DAL.TianJin whereBuilder.Append(" AND MATERIAL_CODE = @MATERIAL_CODE "); parameters.Add(new DataParameter { ParameterName = "MATERIAL_CODE", DataType = DbType.String, Value = condition.MATERIAL_CODE }); } - + //状态 + if (string.IsNullOrEmpty(condition.PLAN_STATE) == false) + { + whereBuilder.Append(" AND PLAN_STATE = @PLAN_STATE "); + parameters.Add(new DataParameter { ParameterName = "PLAN_STATE", DataType = DbType.String, Value = condition.PLAN_STATE }); + } + //计划时间 if (condition.PLANTIMESTART != DateTime.MinValue) { diff --git a/APPQ5/QMAPP.FJC.Web/Content/Xml/Dictionary.xml b/APPQ5/QMAPP.FJC.Web/Content/Xml/Dictionary.xml index e232f41..531a9bb 100644 --- a/APPQ5/QMAPP.FJC.Web/Content/Xml/Dictionary.xml +++ b/APPQ5/QMAPP.FJC.Web/Content/Xml/Dictionary.xml @@ -455,6 +455,10 @@ + + + + diff --git a/APPQ5/QMAPP.FJC.Web/Controllers/StorageController.cs b/APPQ5/QMAPP.FJC.Web/Controllers/StorageController.cs index 419c162..7b4edef 100644 --- a/APPQ5/QMAPP.FJC.Web/Controllers/StorageController.cs +++ b/APPQ5/QMAPP.FJC.Web/Controllers/StorageController.cs @@ -72,8 +72,9 @@ namespace QMAPP.FJC.Web.Controllers //获取前台分页设置信息 page = this.GetDataPage(seachModel); condition = CopyToModel(seachModel); + condition.State = "1"; #region wcf服务统一接口 - + pageResult = wcfAgent.InvokeServiceFunction>("StorageBLL_GetList", condition, page); if (pageResult.IsSuccess == false) { diff --git a/APPQ5/QMAPP.FJC.Web/Controllers/TJDoorPlankPlanController.cs b/APPQ5/QMAPP.FJC.Web/Controllers/TJDoorPlankPlanController.cs index 345012c..437a5bf 100644 --- a/APPQ5/QMAPP.FJC.Web/Controllers/TJDoorPlankPlanController.cs +++ b/APPQ5/QMAPP.FJC.Web/Controllers/TJDoorPlankPlanController.cs @@ -38,6 +38,7 @@ namespace QMAPP.FJC.Web.Controllers TJDoorPlankPlanModel seachModel = new TJDoorPlankPlanModel(); seachModel.PLANTIMESTART = DateTime.Now.Date.AddDays(-10).ToString("yyyy-MM-dd HH:mm:ss"); seachModel.PLANTIMEEND = DateTime.Now.Date.AddDays(1).ToString("yyyy-MM-dd HH:mm:ss"); + seachModel.PLAN_STATE = "0"; seachModel.ImmediateSearch = false; if (callback == true) TryGetSelectBuffer(out seachModel); diff --git a/APPQ5/QMAPP.FJC.Web/Controllers/TJDoorPlankPlanPrintController.cs b/APPQ5/QMAPP.FJC.Web/Controllers/TJDoorPlankPlanPrintController.cs index f673bea..d5279d3 100644 --- a/APPQ5/QMAPP.FJC.Web/Controllers/TJDoorPlankPlanPrintController.cs +++ b/APPQ5/QMAPP.FJC.Web/Controllers/TJDoorPlankPlanPrintController.cs @@ -40,6 +40,7 @@ namespace QMAPP.FJC.Web.Controllers seachModel.ORDER_TYPE = order_type; seachModel.PLANTIMESTART = DateTime.Now.Date.AddDays(-10).ToString("yyyy-MM-dd HH:mm:ss"); seachModel.PLANTIMEEND = DateTime.Now.Date.AddDays(1).ToString("yyyy-MM-dd HH:mm:ss"); + seachModel.PLAN_STATE = "0"; seachModel.ImmediateSearch = false; if (callback == true) TryGetSelectBuffer(out seachModel); diff --git a/APPQ5/QMAPP.FJC.Web/Models/FIS/DoorPlankPlanModel.cs b/APPQ5/QMAPP.FJC.Web/Models/FIS/DoorPlankPlanModel.cs index 45ce638..a29a413 100644 --- a/APPQ5/QMAPP.FJC.Web/Models/FIS/DoorPlankPlanModel.cs +++ b/APPQ5/QMAPP.FJC.Web/Models/FIS/DoorPlankPlanModel.cs @@ -43,7 +43,8 @@ namespace QMAPP.FJC.Web.Models.FIS ///计划状态 /// [Description("计划状态")] - [HTMLInput(UpdateRead = false, required = true, MaxLength = 30)] + [HTMLInput(UpdateRead = false, required = true, MaxLength = 30, Width = 180, JsonUtl = "/Dict/GetFixedComboxSource?kind=PLAN_STATE")] + //[HTMLInput(UpdateRead = false, required = true, MaxLength = 30)] [InputType(inputType.combobox)] [DGColumn(frozenColumns = false, Sortable = true, Width = 80, DataAlign = DataAlign.center)] public string PLAN_STATE { get; set; } diff --git a/APPQ5/QMAPP.FJC.Web/Models/TianJin/StorageLogModel.cs b/APPQ5/QMAPP.FJC.Web/Models/TianJin/StorageLogModel.cs index 72f33a0..f2643b5 100644 --- a/APPQ5/QMAPP.FJC.Web/Models/TianJin/StorageLogModel.cs +++ b/APPQ5/QMAPP.FJC.Web/Models/TianJin/StorageLogModel.cs @@ -29,7 +29,7 @@ namespace QMAPP.FJC.Web.Models.TianJin [Description("产品编码")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] [InputType(inputType.text)] - [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] + [DGColumn(frozenColumns = true, Sortable = true, Width = 200, DataAlign = DataAlign.center)] public string ProductCode { get; set; } diff --git a/APPQ5/QMAPP.FJC.Web/Models/TianJin/StorageModel.cs b/APPQ5/QMAPP.FJC.Web/Models/TianJin/StorageModel.cs index d87d896..5a14d79 100644 --- a/APPQ5/QMAPP.FJC.Web/Models/TianJin/StorageModel.cs +++ b/APPQ5/QMAPP.FJC.Web/Models/TianJin/StorageModel.cs @@ -29,7 +29,7 @@ namespace QMAPP.FJC.Web.Models.TianJin [Description("产品编码")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] [InputType(inputType.text)] - [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] + [DGColumn(frozenColumns = true, Sortable = true, Width = 200, DataAlign = DataAlign.center)] public string ProductCode { get; set; } /// diff --git a/APPQ5/QMAPP.FJC.Web/Models/TianJin/TJDoorPlankPlanModel.cs b/APPQ5/QMAPP.FJC.Web/Models/TianJin/TJDoorPlankPlanModel.cs index c150b2b..b578484 100644 --- a/APPQ5/QMAPP.FJC.Web/Models/TianJin/TJDoorPlankPlanModel.cs +++ b/APPQ5/QMAPP.FJC.Web/Models/TianJin/TJDoorPlankPlanModel.cs @@ -50,7 +50,8 @@ namespace QMAPP.FJC.Web.Models.TianJin ///计划状态 /// [Description("计划状态")] - [HTMLInput(UpdateRead = false, required = true, MaxLength = 30)] + [HTMLInput(UpdateRead = false, required = true, MaxLength = 30, Width = 180, JsonUtl = "/Dict/GetFixedComboxSource?kind=PLAN_STATE")] + //[HTMLInput(UpdateRead = false, required = true, MaxLength = 30)] [InputType(inputType.combobox)] [DGColumn(frozenColumns = false, Sortable = true, Width = 80, DataAlign = DataAlign.center)] public string PLAN_STATE { get; set; } diff --git a/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlan/DoorPlankPlanList.aspx b/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlan/DoorPlankPlanList.aspx index 1bd3ac7..a27720e 100644 --- a/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlan/DoorPlankPlanList.aspx +++ b/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlan/DoorPlankPlanList.aspx @@ -15,6 +15,13 @@ <%=Html.QC(p => p.PLAN_NO)%> + + <%=Html.QV(p => p.PLAN_STATE)%> + + + <%=Html.QC(p => p.PLAN_STATE)%> + + <%=Html.QV(p => p.MATERIAL_CODE)%> diff --git a/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankPlanList.aspx b/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankPlanList.aspx index 400bd73..5a07c1e 100644 --- a/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankPlanList.aspx +++ b/APPQ5/QMAPP.FJC.Web/Views/TJDoorPlankPlanPrint/DoorPlankPlanList.aspx @@ -36,12 +36,17 @@ + <%=Html.QV(p => p.PLAN_STATE)%> + + + <%=Html.QC(p => p.PLAN_STATE)%> + + <%=Html.QV(p => p.PLANSOURCE)%> <%=Html.QC(p => p.PLANSOURCE)%> - <%=Html.QV(p => p.PLANTIMESTART)%> diff --git a/APPQ5/QMAPP.WinForm/App.config b/APPQ5/QMAPP.WinForm/App.config index f59e43a..585b5c1 100644 --- a/APPQ5/QMAPP.WinForm/App.config +++ b/APPQ5/QMAPP.WinForm/App.config @@ -8,10 +8,10 @@ - - + - + @@ -184,13 +184,13 @@ - + - + diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs index 014af00..474b25f 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.cs @@ -17,6 +17,7 @@ using QMAPP.MD.Entity; using QMAPP.FJC.Entity.Basic; using QMAPP.FJC.Entity.TianJin; using QMAPP.ServicesAgent; +using QMAPP.MD.Entity.TianJin; namespace QMAPP.WinForm.Forms.TianJin { @@ -503,8 +504,8 @@ namespace QMAPP.WinForm.Forms.TianJin } QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); agent.InvokeServiceFunction(QMAPP.ServicesAgent.FrmPlaceManage.TJFrmPlaceBLL_UpdateWorkOrderState.ToString(), ids); - - //_agent.InvokeServiceFunction(B9IPCService.WorkOrderBLL_CancelSuspend.ToString(), ids); + GetInitData(); + //_agent.InvokeServiceFunction(B9IPCService.WorkOrderBLL_CancelSuspend.ToString(), ids); //if (dgvMATChange.Rows.Count > 0) //{ @@ -2028,14 +2029,44 @@ namespace QMAPP.WinForm.Forms.TianJin doc.PrinterSettings.PrinterName = _TJFYPrintName; prin.Print(dt, _TJFYPrintName); - lberror.Text = "贴车单已打印"; + lberror.Text = "贴车单已打印;"; } else { prin.Print(dt); - lberror.Text = "贴车单已打印"; + lberror.Text = "贴车单已打印;"; } + #region 针对贴车单上的条码进行出库操作 + + for (var i = 0; i < tbl.Rows.Count; i++) + { + var count = agent.InvokeServiceFunction>("StorageBLL_SelectCount", tbl.Rows[i]["VIN"].ToString()); + + //如果条码未入库,先进行入库操作 + if (count.Result <= 0) + { + Storage pi = new Storage(); + pi.ProductCode = tbl.Rows[i]["VIN"].ToString(); + pi.InStorageType = "发运入库"; + + 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; ; + } + } + + + #endregion + + } #endregion diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.designer.cs b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.designer.cs index 703a6d0..6725ecb 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.designer.cs +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJFrmPlace.designer.cs @@ -247,8 +247,6 @@ // this.dgvMATChange.AllowUserToAddRows = false; this.dgvMATChange.AllowUserToDeleteRows = false; - this.dgvMATChange.AllowUserToOrderColumns = true; - this.dgvMATChange.AllowUserToResizeRows = false; this.dgvMATChange.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; this.dgvMATChange.BackgroundColor = System.Drawing.Color.White; this.dgvMATChange.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; @@ -274,7 +272,7 @@ this.dgvMATChange.DefaultCellStyle = dataGridViewCellStyle1; this.dgvMATChange.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvMATChange.Location = new System.Drawing.Point(0, 0); - this.dgvMATChange.MultiSelect = false; + this.dgvMATChange.MultiSelect = true; this.dgvMATChange.Name = "dgvMATChange"; this.dgvMATChange.ReadOnly = true; this.dgvMATChange.RowHeadersWidth = 40; diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.Designer.cs b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.Designer.cs index 7bcd5f7..ea91500 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.Designer.cs +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.Designer.cs @@ -72,6 +72,7 @@ this.timer1 = new System.Windows.Forms.Timer(this.components); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); + this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); ((System.ComponentModel.ISupportInitialize)(this.dgvPlan)).BeginInit(); this.tpContent.SuspendLayout(); this.tpPlanList.SuspendLayout(); @@ -267,6 +268,7 @@ this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Bottom; this.toolStrip1.ImageScalingSize = new System.Drawing.Size(20, 20); this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripButton1, this.tsbPrint, this.tsbOrderOperation, this.tslblOrderCount}); @@ -309,7 +311,7 @@ this.tsmiSuspendOrder.Image = global::QMAPP.WinForm.Resource1.stop; this.tsmiSuspendOrder.Margin = new System.Windows.Forms.Padding(0, 7, 0, 7); this.tsmiSuspendOrder.Name = "tsmiSuspendOrder"; - this.tsmiSuspendOrder.Size = new System.Drawing.Size(144, 26); + this.tsmiSuspendOrder.Size = new System.Drawing.Size(184, 26); this.tsmiSuspendOrder.Text = "挂起工单"; this.tsmiSuspendOrder.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.tsmiSuspendOrder.Click += new System.EventHandler(this.tsmiSuspendOrder_Click); @@ -319,7 +321,7 @@ this.tsmiCancelSuspend.Image = global::QMAPP.WinForm.Resource1.back; this.tsmiCancelSuspend.Margin = new System.Windows.Forms.Padding(0, 7, 0, 7); this.tsmiCancelSuspend.Name = "tsmiCancelSuspend"; - this.tsmiCancelSuspend.Size = new System.Drawing.Size(144, 26); + this.tsmiCancelSuspend.Size = new System.Drawing.Size(184, 26); this.tsmiCancelSuspend.Text = "取消挂起"; this.tsmiCancelSuspend.Click += new System.EventHandler(this.tsmiCancelSuspend_Click); // @@ -328,7 +330,7 @@ this.tsmiDeleteOrder.Image = global::QMAPP.WinForm.Resource1.delete; this.tsmiDeleteOrder.Margin = new System.Windows.Forms.Padding(0, 7, 0, 7); this.tsmiDeleteOrder.Name = "tsmiDeleteOrder"; - this.tsmiDeleteOrder.Size = new System.Drawing.Size(144, 26); + this.tsmiDeleteOrder.Size = new System.Drawing.Size(184, 26); this.tsmiDeleteOrder.Text = "删除工单"; this.tsmiDeleteOrder.Click += new System.EventHandler(this.tsmiDeleteOrder_Click); // @@ -470,6 +472,18 @@ this.label2.TabIndex = 18; this.label2.Text = "门板位置"; // + // toolStripButton1 + // + this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.toolStripButton1.Font = new System.Drawing.Font("微软雅黑", 12F); + this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); + this.toolStripButton1.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; + this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.White; + this.toolStripButton1.Name = "toolStripButton1"; + this.toolStripButton1.Size = new System.Drawing.Size(146, 67); + this.toolStripButton1.Text = "批量打印(&P)"; + this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); + // // TJPrintPlanLabel // this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 25F); @@ -536,5 +550,6 @@ private System.Windows.Forms.Timer timer1; private System.Windows.Forms.ComboBox comboBox1; private System.Windows.Forms.Label label2; + private System.Windows.Forms.ToolStripButton toolStripButton1; } } \ No newline at end of file diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.cs b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.cs index e0e7463..8e6d531 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.cs +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.cs @@ -502,6 +502,72 @@ namespace QMAPP.WinForm.Forms.TianJin SaveSetting(); BindPlanView(); } + /// + /// 批量打印 + /// + /// + /// + private void toolStripButton1_Click(object sender, EventArgs e) + { + var count = 0; + + if (dgvPlan.Rows.Count == 0) + { + MessageBox.Show("当前生产线没有未打印标签的计划工单!"); + } + if (int.Parse(cbListRowcount.Text) <= dgvPlan.Rows.Count) + count = int.Parse(cbListRowcount.Text); + else + count = dgvPlan.Rows.Count; + + for (var i = 0; i < count; i++) + { + var orders = new List(); + + var order1 = (FJC.Entity.ProductionPlan.WorkOrder)dgvPlan.Rows[i].DataBoundItem; + orders.Add(order1); + + toolStripButton1.Enabled = false; + + List labels = new List(); + + var data = DateTime.Now.ToString("yyyyMMddHHmmssfff"); + data = data.Substring(2, data.Length - 2); + + string positioncode = GetNameCode(orders[0].MATERIAL_NAME); + var book = _agent.InvokeServiceFunction("FISPhraseBLL_GetFisPhraseBook", orders[0].MATERIAL_CODE + "", positioncode); + + LabelData labeldata = new LabelData(); + + labeldata.MATERIALCODE = orders[0].MATERIAL_CODE; + + + labeldata.PlanDate = orders[0].PLAN_DATE; + if (book != null) + { + labeldata.Class = " " + book.Class.Substring(0, 2); + labeldata.Description = book.Text; + labeldata.OrderNo = book.CarModel + positioncode + data; + } + var mcresult = _agent.InvokeServiceFunction>("MaterialBLL_Get", new Material { MATERIAL_CODE = orders[0].MATERIAL_CODE }); + var material = mcresult.IsSuccess ? mcresult.Result : null; + if (material != null) + { + labeldata.MaterialName = material.MATERIAL_SHORT; + labeldata.CarModel = material.PROJECTCODE; + } + labels.Add(labeldata); + + PrintLabel(labels); + + //变更打印状态 0=>1 + _agent.InvokeServiceFunction("WorkOrderBLL_SetOrderPrinted", orders[0].PID); + + } + + BindPlanView(); + toolStripButton1.Enabled = true; + } } class Direction { public string Code { get; set; } diff --git a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.resx b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.resx index e069562..c4731e6 100644 --- a/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.resx +++ b/APPQ5/QMAPP.WinForm/Forms/TianJin/TJPrintPlanLabel.resx @@ -154,6 +154,76 @@ 17, 17 + + + iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAA7mSURBVGhD1ZlZcFvXfcapum3SptMm05l4Jk/tg97qNs1L + X/rUaR4Sd6YvfehMl6nTJJ7YriwpsceOY1dy5IoSCW5auG8gQHARCe47KXHfSQAiiH0HCYAEd4AgCBBf + v3MBUKQs2nStOOqZOby4FyDu9/uv51xkfFUDSCA549Ixdfn/zwBiFL57LPwkSIJc0sUXcQBHkjgkFqj5 + L6hZdgyS4HuJRPxY/AsJIiwtHaP/AUR4eniBl/6MIIWYcYfRoI3CsLaP+FHsRRSfsn5cB2x/jYan+PBL + EkgimoGt0CuYdpWjZsFPkEMYCXJ4dPji5Mix9Xdo/TWeblL8No+7v5MEIQSOMhCOfA+z7lKUzwQw4UpC + i9D6rYBItUb8SVs/OgesfANYpdgAPbAuQDgJkiBIIkSYKK8nyBn+LtxbJfzfDalefaUAQrS4aepUmDYJ + sPYjwMZTNy3u5VEC4TwF8hJBCCFA4rwW/3N+WT6/bSv5Hb9JEEk4Z+o0Y3M/DstGBNEj3v9gETD9PmCm + BhvFOXh0c54JIjwicoSfPeS1+EV+iSsFkTTIcxufEh6OYcK5C5U2CPliAK2WI2xb/g3QUdgyRRmpwcIp + vPE5INj7PSDEY/RvCXCYAnhOXjgpWoxgKIpHlg3IZ1ZROrkK+ZwP1Qu7aJsfRmyW1l/gvbW06GMelznP + BcLPC5BYe0r8k17xfx7UfcriToZJr34NFeMu3H1kx/1hB8onvKicdKFkegfWqX8GJmn9aVp/jhokEM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8eJ0GOjuIE + 2cS43oPdlHDxXvp9MUQOTS4FWVl+y8KfHs8SkeDF9HXxWrp4YrwQwp8eQpT4PYGHZ4pLv586fU4jI+N/ + Ae6xxmll7eSUAAAAAElFTkSuQmCC + + iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 diff --git a/APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs b/APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs index d27e626..72d343b 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("2022.03.29.01")] -[assembly: AssemblyFileVersion("2022.03.29.01")] +[assembly: AssemblyVersion("2022.03.31.01")] +[assembly: AssemblyFileVersion("2022.03.31.01")] diff --git a/ServicesCenter/WCF/QMFrameWork.WebServiceHost/Web.config b/ServicesCenter/WCF/QMFrameWork.WebServiceHost/Web.config index ac985c4..d651a04 100644 --- a/ServicesCenter/WCF/QMFrameWork.WebServiceHost/Web.config +++ b/ServicesCenter/WCF/QMFrameWork.WebServiceHost/Web.config @@ -64,9 +64,9 @@ - + - +