Browse Source

加已杀总头数。

master
yibo 8 years ago
parent
commit
d86e4ea12f
3 changed files with 44 additions and 1 deletions
  1. +6
    -0
      BO/Utils/BillRpc/OrderDetailRpc.cs
  2. +27
    -1
      OrderConfirm/OrderConfirmForm.Designer.cs
  3. +11
    -0
      OrderConfirm/OrderConfirmForm.cs

+ 6
- 0
BO/Utils/BillRpc/OrderDetailRpc.cs View File

@ -141,5 +141,11 @@ namespace BO.Utils.BillRpc
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/GetCurrentOrderPlanNumber"; const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/GetCurrentOrderPlanNumber";
return RpcFacade.Call<int>(method, orderID); return RpcFacade.Call<int>(method, orderID);
} }
public static int GetFinishNumbers(DateTime date)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/OrderDetailRpc/GetFinishNumbers";
return RpcFacade.Call<int>(method, date);
}
} }
} }

+ 27
- 1
OrderConfirm/OrderConfirmForm.Designer.cs View File

@ -55,6 +55,8 @@
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.vScrollBar1 = new System.Windows.Forms.VScrollBar(); this.vScrollBar1 = new System.Windows.Forms.VScrollBar();
this.setTop = new System.Windows.Forms.CheckBox(); 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(); ((System.ComponentModel.ISupportInitialize)(this.orderGrid)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
@ -293,18 +295,40 @@
// //
this.setTop.AutoSize = true; this.setTop.AutoSize = true;
this.setTop.Font = new System.Drawing.Font("宋体", 15F); 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.Name = "setTop";
this.setTop.Size = new System.Drawing.Size(68, 24); this.setTop.Size = new System.Drawing.Size(68, 24);
this.setTop.TabIndex = 53; this.setTop.TabIndex = 53;
this.setTop.Text = "置顶"; this.setTop.Text = "置顶";
this.setTop.UseVisualStyleBackColor = true; 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 // OrderConfirmForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1105, 805); 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.setTop);
this.Controls.Add(this.vScrollBar1); this.Controls.Add(this.vScrollBar1);
this.Controls.Add(this.existBtn); this.Controls.Add(this.existBtn);
@ -351,5 +375,7 @@
private System.Windows.Forms.DataGridViewTextBoxColumn C_PlanNumber; private System.Windows.Forms.DataGridViewTextBoxColumn C_PlanNumber;
private System.Windows.Forms.DataGridViewButtonColumn C_OK; private System.Windows.Forms.DataGridViewButtonColumn C_OK;
private System.Windows.Forms.DataGridViewButtonColumn C_Finish; private System.Windows.Forms.DataGridViewButtonColumn C_Finish;
private System.Windows.Forms.Label finishNumberLabel;
private System.Windows.Forms.Label label4;
} }
} }

+ 11
- 0
OrderConfirm/OrderConfirmForm.cs View File

@ -68,12 +68,20 @@ namespace OrderConfirm
{ {
this.Invoke(new InvokeHandler(delegate() this.Invoke(new InvokeHandler(delegate()
{ {
BindFinishNumber();
BindOrderGrid(); BindOrderGrid();
})); }));
Thread.Sleep(5000); Thread.Sleep(5000);
} }
} }
void BindFinishNumber()
{
var number = OrderDetailRpc.GetFinishNumbers(uDatePicker1.Date.Value);
finishNumberLabel.Text = number.ToString();
finishNumberLabel.Refresh();
}
OrderDetail lastOrderDetail; OrderDetail lastOrderDetail;
private void BindOrderGrid() private void BindOrderGrid()
{ {
@ -178,7 +186,10 @@ namespace OrderConfirm
if (e.ColumnIndex == orderGrid.ColumnCount - 2)//开始 取消 if (e.ColumnIndex == orderGrid.ColumnCount - 2)//开始 取消
OrderDetailRpc.SetOrderState(lastOrderDetail.ID, lastOrderDetail.OrderState == 0 ? 10 : 0); OrderDetailRpc.SetOrderState(lastOrderDetail.ID, lastOrderDetail.OrderState == 0 ? 10 : 0);
else//完成 else//完成
{
OrderDetailRpc.SetOrderState(lastOrderDetail.ID, 20); OrderDetailRpc.SetOrderState(lastOrderDetail.ID, 20);
BindFinishNumber();
}
BindOrderGrid(); BindOrderGrid();
} }


Loading…
Cancel
Save