From d86e4ea12f97b5375bfe078423c231916d63bd7c Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Wed, 1 Nov 2017 22:59:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=B7=B2=E6=9D=80=E6=80=BB=E5=A4=B4?= =?UTF-8?q?=E6=95=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BO/Utils/BillRpc/OrderDetailRpc.cs | 6 +++++ OrderConfirm/OrderConfirmForm.Designer.cs | 28 ++++++++++++++++++++++- OrderConfirm/OrderConfirmForm.cs | 11 +++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) diff --git a/BO/Utils/BillRpc/OrderDetailRpc.cs b/BO/Utils/BillRpc/OrderDetailRpc.cs index 0d6419d..b75b4ea 100644 --- a/BO/Utils/BillRpc/OrderDetailRpc.cs +++ b/BO/Utils/BillRpc/OrderDetailRpc.cs @@ -141,5 +141,11 @@ namespace BO.Utils.BillRpc const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/GetCurrentOrderPlanNumber"; return RpcFacade.Call(method, orderID); } + + public static int GetFinishNumbers(DateTime date) + { + const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/GetFinishNumbers"; + return RpcFacade.Call(method, date); + } } } diff --git a/OrderConfirm/OrderConfirmForm.Designer.cs b/OrderConfirm/OrderConfirmForm.Designer.cs index b34f0f9..94b8c11 100644 --- a/OrderConfirm/OrderConfirmForm.Designer.cs +++ b/OrderConfirm/OrderConfirmForm.Designer.cs @@ -55,6 +55,8 @@ this.label1 = new System.Windows.Forms.Label(); this.vScrollBar1 = new System.Windows.Forms.VScrollBar(); this.setTop = new System.Windows.Forms.CheckBox(); + this.finishNumberLabel = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.orderGrid)).BeginInit(); this.SuspendLayout(); // @@ -293,18 +295,40 @@ // this.setTop.AutoSize = true; this.setTop.Font = new System.Drawing.Font("宋体", 15F); - this.setTop.Location = new System.Drawing.Point(762, 17); + this.setTop.Location = new System.Drawing.Point(845, 20); this.setTop.Name = "setTop"; this.setTop.Size = new System.Drawing.Size(68, 24); this.setTop.TabIndex = 53; this.setTop.Text = "置顶"; this.setTop.UseVisualStyleBackColor = true; // + // finishNumberLabel + // + this.finishNumberLabel.AutoSize = true; + this.finishNumberLabel.Font = new System.Drawing.Font("宋体", 15F); + this.finishNumberLabel.Location = new System.Drawing.Point(758, 21); + this.finishNumberLabel.Name = "finishNumberLabel"; + this.finishNumberLabel.Size = new System.Drawing.Size(19, 20); + this.finishNumberLabel.TabIndex = 55; + this.finishNumberLabel.Text = "0"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("宋体", 15F); + this.label4.Location = new System.Drawing.Point(660, 21); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(109, 20); + this.label4.TabIndex = 54; + this.label4.Text = "已杀头数:"; + // // OrderConfirmForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1105, 805); + this.Controls.Add(this.finishNumberLabel); + this.Controls.Add(this.label4); this.Controls.Add(this.setTop); this.Controls.Add(this.vScrollBar1); this.Controls.Add(this.existBtn); @@ -351,5 +375,7 @@ private System.Windows.Forms.DataGridViewTextBoxColumn C_PlanNumber; private System.Windows.Forms.DataGridViewButtonColumn C_OK; private System.Windows.Forms.DataGridViewButtonColumn C_Finish; + private System.Windows.Forms.Label finishNumberLabel; + private System.Windows.Forms.Label label4; } } \ No newline at end of file diff --git a/OrderConfirm/OrderConfirmForm.cs b/OrderConfirm/OrderConfirmForm.cs index abd7943..acc4aad 100644 --- a/OrderConfirm/OrderConfirmForm.cs +++ b/OrderConfirm/OrderConfirmForm.cs @@ -68,12 +68,20 @@ namespace OrderConfirm { this.Invoke(new InvokeHandler(delegate() { + BindFinishNumber(); BindOrderGrid(); })); Thread.Sleep(5000); } } + void BindFinishNumber() + { + var number = OrderDetailRpc.GetFinishNumbers(uDatePicker1.Date.Value); + finishNumberLabel.Text = number.ToString(); + finishNumberLabel.Refresh(); + } + OrderDetail lastOrderDetail; private void BindOrderGrid() { @@ -178,7 +186,10 @@ namespace OrderConfirm if (e.ColumnIndex == orderGrid.ColumnCount - 2)//开始 取消 OrderDetailRpc.SetOrderState(lastOrderDetail.ID, lastOrderDetail.OrderState == 0 ? 10 : 0); else//完成 + { OrderDetailRpc.SetOrderState(lastOrderDetail.ID, 20); + BindFinishNumber(); + } BindOrderGrid(); }