From b5df5d4af2d66051e55c91b17bc5e4bec2cf7d28 Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Thu, 23 May 2019 17:15:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E8=B4=A7=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E8=B0=83=E6=95=B4=E3=80=82=E7=A7=B0=E9=87=8D?= =?UTF-8?q?=E8=AE=A1=E6=95=B0bug=E4=BF=AE=E5=A4=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ButcherFactory.BO/Bill/StockUpEntity.cs | 3 +- ButcherFactory.BO/LocalBL/DialogBL.cs | 8 +- .../LocalBL/SegmentProductionBL.cs | 8 +- .../LocalBL/WeightCountEntityBL.cs | 9 +- .../SegmentProductionAutoForm.cs | 2 +- .../SegmentStockUpForm.Designer.cs | 1294 +++++++++-------- .../SegmentStockUp_/SegmentStockUpForm.cs | 18 +- .../SegmentStockUp_/SegmentStockUpForm.resx | 358 ++--- .../SegmentStockUp_/SegmentStockUpPrint.cs | 22 +- .../SegmentStockUp_/SegmentStockUpPrint.txt | 6 +- 10 files changed, 879 insertions(+), 849 deletions(-) diff --git a/ButcherFactory.BO/Bill/StockUpEntity.cs b/ButcherFactory.BO/Bill/StockUpEntity.cs index c3cb81d..0b7b0c8 100644 --- a/ButcherFactory.BO/Bill/StockUpEntity.cs +++ b/ButcherFactory.BO/Bill/StockUpEntity.cs @@ -32,7 +32,8 @@ namespace ButcherFactory.BO return (UnitNum ?? 0) <= (SUnitNum ?? 0); //return (SecondNumber ?? 0) <= (SSecondNumber ?? 0); } - } + } + public long? SendQueue { get; set; } } [KeyField("ID", KeyGenType.identity)] diff --git a/ButcherFactory.BO/LocalBL/DialogBL.cs b/ButcherFactory.BO/LocalBL/DialogBL.cs index 7404cee..95191b2 100644 --- a/ButcherFactory.BO/LocalBL/DialogBL.cs +++ b/ButcherFactory.BO/LocalBL/DialogBL.cs @@ -12,13 +12,13 @@ namespace ButcherFactory.BO.LocalBL { const string RpcPath = @"/MainSystem/B3Sale/Rpcs/BaseInfoSelectRpc/"; public static IEnumerable GetStoreList() - { - return GetBaseInfoList("GetStoreList"); + { + return GetBaseInfoList("GetStoreList", string.Empty); } public static IEnumerable GetDeliverGoodsLineList() - { - return GetBaseInfoList("GetDeliverGoodsLineList"); + { + return GetBaseInfoList("GetDeliverGoodsLineList", string.Empty); } public static IEnumerable GetCustomerList(string spell) diff --git a/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs b/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs index 7de023a..05c9352 100644 --- a/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs +++ b/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs @@ -270,9 +270,9 @@ namespace ButcherFactory.BO.LocalBL query.Columns.Add(DQSelectColumn.Field("CreateTime")); query.Columns.Add(DQSelectColumn.Field("Delete")); query.Columns.Add(DQSelectColumn.Field("StandardPic")); - query.Columns.Add(DQSelectColumn.Field("MsgID")); - query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("Submited", true), DQCondition.EQ("Sync", false))); - query.Where.Conditions.Add(DQCondition.LessThan("CreateTime", DateTime.Now.AddMinutes(-2))); + query.Columns.Add(DQSelectColumn.Field("MsgID")); + query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("Submited", true), DQCondition.EQ("Sync", false), DQCondition.EQ("Delete", false))); + query.Where.Conditions.Add(DQCondition.LessThan("CreateTime", DateTime.Now.AddMinutes(-1))); query.Range = SelectRange.Top(10); query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID")); @@ -318,7 +318,7 @@ namespace ButcherFactory.BO.LocalBL var update = new DQUpdateDom(typeof(SegmentProduction)); update.Where.Conditions.Add(DQCondition.EQ("ID", id)); - update.Columns.Add(new DQUpdateColumn("Sync", false)); + update.Columns.Add(new DQUpdateColumn("Sync", true)); update.Columns.Add(new DQUpdateColumn("Delete", true)); update.Columns.Add(new DQUpdateColumn("RowVersion", DQExpression.Add(DQExpression.Field("RowVersion"), DQExpression.Value(1)))); update.EExecute(); diff --git a/ButcherFactory.BO/LocalBL/WeightCountEntityBL.cs b/ButcherFactory.BO/LocalBL/WeightCountEntityBL.cs index 3426810..878770c 100644 --- a/ButcherFactory.BO/LocalBL/WeightCountEntityBL.cs +++ b/ButcherFactory.BO/LocalBL/WeightCountEntityBL.cs @@ -30,7 +30,7 @@ namespace ButcherFactory.BO.LocalBL query.Columns.Add(DQSelectColumn.Field("Weight")); //query.Columns.Add(DQSelectColumn.Field("CreateTime")); query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID", true)); - query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("ProduceOut", produce), DQCondition.EQ("Submited", submited))); + query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("ProduceOut", produce), DQCondition.EQ("Submited", submited), DQCondition.EQ("Delete", false))); if (submited) { query.Where.Conditions.Add(DQCondition.And(DQCondition.Between("CreateTime", DateTime.Today, DateTime.Today + new TimeSpan(23, 59, 59)))); @@ -173,9 +173,10 @@ namespace ButcherFactory.BO.LocalBL public static void Delete(long id) { - var delete = new DQUpdateDom(typeof(WeightCountEntity)); - delete.Where.Conditions.Add(DQCondition.EQ("ID", id)); - delete.EExecute(); + var update = new DQUpdateDom(typeof(WeightCountEntity)); + update.Columns.Add(new DQUpdateColumn("Delete", true)); + update.Where.Conditions.Add(DQCondition.EQ("ID", id)); + update.EExecute(); } } } diff --git a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs index d2d493d..d789acc 100644 --- a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs +++ b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs @@ -342,7 +342,7 @@ namespace ButcherFactory.SegmentProductionAuto_ if (MessageBox.Show("确定删除选中记录?", "删除确认", MessageBoxButtons.OKCancel) != DialogResult.OK) return; var tag = historyDataGrid.SelectedRows[0].DataBoundItem as SegmentProduction; - if (tag.CreateTime.AddMinutes(2) < DateTime.Now) + if (tag.CreateTime.AddMinutes(1) < DateTime.Now) { MessageBox.Show("已超出可删除时间范围"); return; diff --git a/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.Designer.cs b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.Designer.cs index e350b1b..d468581 100644 --- a/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.Designer.cs +++ b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.Designer.cs @@ -28,644 +28,659 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = 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 dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = 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(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = 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 dataGridViewCellStyle12 = 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(); - this.uScanPanel1 = new WinFormControl.UScanPanel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.goodsLbl = new System.Windows.Forms.Label(); - this.driveLineLbl = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.dhNumberLbl = new System.Windows.Forms.Label(); - this.panel5 = new System.Windows.Forms.Panel(); - this.mainGridView = new WinFormControl.UDataGridView(); - this.D_Finishd = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_DeliverGoodsLine_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_SecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_UnitNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_SSecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_SUnitNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.label12 = new System.Windows.Forms.Label(); - this.panel6 = new System.Windows.Forms.Panel(); - this.finishGrid = new WinFormControl.UDataGridView(); - this.F_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_UnitNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_SecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_SUnitNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_SSecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.label13 = new System.Windows.Forms.Label(); - this.detailGridView = new WinFormControl.UDataGridView(); - this.B_DeliverGoodsLine_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.B_ShortCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.B_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.B_SaleOutStoreID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.B_SecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.B_UnitNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dhUnitNumLbl = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.bhUnitNumLbl = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.bhNumberLbl = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.panel7 = new System.Windows.Forms.Panel(); - this.printCk = new System.Windows.Forms.CheckBox(); - this.refresh = new ButcherFactory.Controls.ColorButton(); - this.roundPanel1.SuspendLayout(); - this.panel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.mainGridView)).BeginInit(); - this.panel6.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.finishGrid)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.detailGridView)).BeginInit(); - this.panel7.SuspendLayout(); - this.SuspendLayout(); - // - // roundPanel1 - // - this.roundPanel1.Controls.Add(this.panel7); - this.roundPanel1.Controls.Add(this.bhUnitNumLbl); - this.roundPanel1.Controls.Add(this.label9); - this.roundPanel1.Controls.Add(this.bhNumberLbl); - this.roundPanel1.Controls.Add(this.label11); - this.roundPanel1.Controls.Add(this.dhUnitNumLbl); - this.roundPanel1.Controls.Add(this.label7); - this.roundPanel1.Controls.Add(this.panel6); - this.roundPanel1.Controls.Add(this.panel5); - this.roundPanel1.Controls.Add(this.dhNumberLbl); - this.roundPanel1.Controls.Add(this.label4); - this.roundPanel1.Controls.Add(this.driveLineLbl); - this.roundPanel1.Controls.Add(this.goodsLbl); - this.roundPanel1.Controls.Add(this.panel4); - this.roundPanel1.Controls.Add(this.uScanPanel1); - // - // uScanPanel1 - // - this.uScanPanel1.BackColor = System.Drawing.Color.Transparent; - this.uScanPanel1.Location = new System.Drawing.Point(18, 9); - this.uScanPanel1.Name = "uScanPanel1"; - this.uScanPanel1.Size = new System.Drawing.Size(303, 32); - this.uScanPanel1.TabIndex = 0; - // - // panel4 - // - this.panel4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(243)))), ((int)(((byte)(243))))); - this.panel4.Location = new System.Drawing.Point(7, 53); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(1174, 1); - this.panel4.TabIndex = 3; - // - // goodsLbl - // - this.goodsLbl.AutoSize = true; - this.goodsLbl.Font = new System.Drawing.Font("宋体", 14F); - this.goodsLbl.ForeColor = System.Drawing.Color.Red; - this.goodsLbl.Location = new System.Drawing.Point(236, 63); - this.goodsLbl.Name = "goodsLbl"; - this.goodsLbl.Size = new System.Drawing.Size(85, 19); - this.goodsLbl.TabIndex = 4; - this.goodsLbl.Text = "存货名称"; - // - // driveLineLbl - // - this.driveLineLbl.AutoSize = true; - this.driveLineLbl.Font = new System.Drawing.Font("宋体", 14F); - this.driveLineLbl.ForeColor = System.Drawing.Color.Red; - this.driveLineLbl.Location = new System.Drawing.Point(16, 63); - this.driveLineLbl.Name = "driveLineLbl"; - this.driveLineLbl.Size = new System.Drawing.Size(85, 19); - this.driveLineLbl.TabIndex = 4; - this.driveLineLbl.Text = "送货线路"; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Font = new System.Drawing.Font("宋体", 14F); - this.label4.Location = new System.Drawing.Point(16, 100); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(85, 19); - this.label4.TabIndex = 5; - this.label4.Text = "订货数量"; - // - // dhNumberLbl - // - this.dhNumberLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.dhNumberLbl.Font = new System.Drawing.Font("宋体", 14F); - this.dhNumberLbl.ForeColor = System.Drawing.Color.Red; - this.dhNumberLbl.Location = new System.Drawing.Point(104, 94); - this.dhNumberLbl.Name = "dhNumberLbl"; - this.dhNumberLbl.Size = new System.Drawing.Size(120, 30); - this.dhNumberLbl.TabIndex = 5; - this.dhNumberLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // panel5 - // - this.panel5.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.panel5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); - this.panel5.Controls.Add(this.mainGridView); - this.panel5.Controls.Add(this.label12); - this.panel5.Location = new System.Drawing.Point(7, 142); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(567, 362); - this.panel5.TabIndex = 12; - // - // mainGridView - // - this.mainGridView.AllowUserToAddRows = false; - this.mainGridView.AllowUserToDeleteRows = false; - this.mainGridView.AllowUserToResizeColumns = false; - this.mainGridView.AllowUserToResizeRows = false; - dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(238)))), ((int)(((byte)(255))))); - this.mainGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13; - this.mainGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.mainGridView.BackgroundColor = System.Drawing.Color.White; - this.mainGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.mainGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; - this.mainGridView.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); - dataGridViewCellStyle14.Font = new System.Drawing.Font("宋体", 10F); - dataGridViewCellStyle14.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.mainGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14; - this.mainGridView.ColumnHeadersHeight = 30; - this.mainGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - this.mainGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.D_Finishd, - this.D_DeliverGoodsLine_Name, - this.D_Goods_Name, - this.D_Goods_Spec, - this.D_SecondNumber, - this.D_UnitNum, - this.D_SSecondNumber, - this.D_SUnitNum}); - this.mainGridView.EnableHeadersVisualStyles = false; - this.mainGridView.Location = new System.Drawing.Point(11, 31); - this.mainGridView.MultiSelect = false; - this.mainGridView.Name = "mainGridView"; - this.mainGridView.ReadOnly = true; - this.mainGridView.RowHeadersVisible = false; - dataGridViewCellStyle19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(243)))), ((int)(((byte)(250))))); - dataGridViewCellStyle19.Font = new System.Drawing.Font("宋体", 9F); - dataGridViewCellStyle19.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); - this.mainGridView.RowsDefaultCellStyle = dataGridViewCellStyle19; - this.mainGridView.RowTemplate.Height = 40; - this.mainGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.mainGridView.Size = new System.Drawing.Size(545, 320); - this.mainGridView.TabIndex = 7; - this.mainGridView.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.mainGridView_CellClick); - this.mainGridView.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.mainGridView_RowPrePaint); - // - // D_Finishd - // - this.D_Finishd.DataPropertyName = "Finishd"; - this.D_Finishd.HeaderText = "Finishd"; - this.D_Finishd.Name = "D_Finishd"; - this.D_Finishd.ReadOnly = true; - this.D_Finishd.Visible = false; - // - // D_DeliverGoodsLine_Name - // - this.D_DeliverGoodsLine_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.D_DeliverGoodsLine_Name.DataPropertyName = "DeliverGoodsLine_Name"; - this.D_DeliverGoodsLine_Name.HeaderText = "线路名称"; - this.D_DeliverGoodsLine_Name.MinimumWidth = 100; - this.D_DeliverGoodsLine_Name.Name = "D_DeliverGoodsLine_Name"; - this.D_DeliverGoodsLine_Name.ReadOnly = true; - // - // D_Goods_Name - // - this.D_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.D_Goods_Name.DataPropertyName = "Goods_Name"; - this.D_Goods_Name.HeaderText = "产品名称"; - this.D_Goods_Name.MinimumWidth = 100; - this.D_Goods_Name.Name = "D_Goods_Name"; - this.D_Goods_Name.ReadOnly = true; - // - // D_Goods_Spec - // - this.D_Goods_Spec.DataPropertyName = "Goods_Spec"; - this.D_Goods_Spec.HeaderText = "规格"; - this.D_Goods_Spec.MinimumWidth = 70; - this.D_Goods_Spec.Name = "D_Goods_Spec"; - this.D_Goods_Spec.ReadOnly = true; - this.D_Goods_Spec.Width = 70; - // - // D_SecondNumber - // - this.D_SecondNumber.DataPropertyName = "SecondNumber"; - dataGridViewCellStyle15.Format = "#0.######"; - this.D_SecondNumber.DefaultCellStyle = dataGridViewCellStyle15; - this.D_SecondNumber.HeaderText = "订货数量"; - this.D_SecondNumber.Name = "D_SecondNumber"; - this.D_SecondNumber.ReadOnly = true; - this.D_SecondNumber.Width = 90; - // - // D_UnitNum - // - this.D_UnitNum.DataPropertyName = "UnitNum"; - dataGridViewCellStyle16.Format = "#0.######"; - this.D_UnitNum.DefaultCellStyle = dataGridViewCellStyle16; - this.D_UnitNum.HeaderText = "订货重量"; - this.D_UnitNum.Name = "D_UnitNum"; - this.D_UnitNum.ReadOnly = true; - this.D_UnitNum.Width = 90; - // - // D_SSecondNumber - // - this.D_SSecondNumber.DataPropertyName = "SSecondNumber"; - dataGridViewCellStyle17.Format = "#0.######"; - this.D_SSecondNumber.DefaultCellStyle = dataGridViewCellStyle17; - this.D_SSecondNumber.HeaderText = "备货数量"; - this.D_SSecondNumber.Name = "D_SSecondNumber"; - this.D_SSecondNumber.ReadOnly = true; - this.D_SSecondNumber.Width = 90; - // - // D_SUnitNum - // - this.D_SUnitNum.DataPropertyName = "SUnitNum"; - dataGridViewCellStyle18.Format = "#0.######"; - this.D_SUnitNum.DefaultCellStyle = dataGridViewCellStyle18; - this.D_SUnitNum.HeaderText = "备货重量"; - this.D_SUnitNum.Name = "D_SUnitNum"; - this.D_SUnitNum.ReadOnly = true; - this.D_SUnitNum.Width = 90; - // - // label12 - // - this.label12.AutoSize = true; - this.label12.Font = new System.Drawing.Font("宋体", 10F); - this.label12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(99)))), ((int)(((byte)(219))))); - this.label12.Location = new System.Drawing.Point(14, 10); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(77, 14); - this.label12.TabIndex = 6; - this.label12.Text = "销售订货:"; - // - // panel6 - // - this.panel6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Right))); - this.panel6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); - this.panel6.Controls.Add(this.finishGrid); - this.panel6.Controls.Add(this.label13); - this.panel6.Controls.Add(this.detailGridView); - this.panel6.Location = new System.Drawing.Point(580, 142); - this.panel6.Name = "panel6"; - this.panel6.Size = new System.Drawing.Size(600, 362); - this.panel6.TabIndex = 13; - // - // finishGrid - // - this.finishGrid.AllowUserToAddRows = false; - this.finishGrid.AllowUserToDeleteRows = false; - this.finishGrid.AllowUserToResizeColumns = false; - this.finishGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(228)))), ((int)(((byte)(203))))); - this.finishGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.finishGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.finishGrid.BackgroundColor = System.Drawing.Color.White; - this.finishGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.finishGrid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; - this.finishGrid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(129)))), ((int)(((byte)(213)))), ((int)(((byte)(68))))); - dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 10F); - dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.finishGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.finishGrid.ColumnHeadersHeight = 30; - this.finishGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - this.finishGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.F_RowIndex, - this.F_Name, - this.F_UnitNum, - this.F_SecondNumber, - this.F_SUnitNum, - this.F_SSecondNumber}); - this.finishGrid.EnableHeadersVisualStyles = false; - this.finishGrid.Location = new System.Drawing.Point(10, 314); - this.finishGrid.MultiSelect = false; - this.finishGrid.Name = "finishGrid"; - this.finishGrid.ReadOnly = true; - this.finishGrid.RowHeadersVisible = false; - dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(247)))), ((int)(((byte)(240))))); - dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 10F); - dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(129)))), ((int)(((byte)(213)))), ((int)(((byte)(68))))); - this.finishGrid.RowsDefaultCellStyle = dataGridViewCellStyle7; - this.finishGrid.RowTemplate.Height = 40; - this.finishGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.finishGrid.Size = new System.Drawing.Size(580, 37); - this.finishGrid.TabIndex = 8; - // - // F_RowIndex - // - this.F_RowIndex.DataPropertyName = "RowIndex"; - this.F_RowIndex.HeaderText = "序号"; - this.F_RowIndex.Name = "F_RowIndex"; - this.F_RowIndex.ReadOnly = true; - this.F_RowIndex.Width = 80; - // - // F_Name - // - this.F_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.F_Name.DataPropertyName = "Name"; - this.F_Name.HeaderText = "线路名称"; - this.F_Name.MinimumWidth = 100; - this.F_Name.Name = "F_Name"; - this.F_Name.ReadOnly = true; - // - // F_UnitNum - // - this.F_UnitNum.DataPropertyName = "UnitNum"; - dataGridViewCellStyle3.Format = "#0.######"; - this.F_UnitNum.DefaultCellStyle = dataGridViewCellStyle3; - this.F_UnitNum.HeaderText = "订货重量"; - this.F_UnitNum.Name = "F_UnitNum"; - this.F_UnitNum.ReadOnly = true; - // - // F_SecondNumber - // - this.F_SecondNumber.DataPropertyName = "SecondNumber"; - dataGridViewCellStyle4.Format = "#0.######"; - this.F_SecondNumber.DefaultCellStyle = dataGridViewCellStyle4; - this.F_SecondNumber.HeaderText = "订货数量"; - this.F_SecondNumber.Name = "F_SecondNumber"; - this.F_SecondNumber.ReadOnly = true; - // - // F_SUnitNum - // - this.F_SUnitNum.DataPropertyName = "SUnitNum"; - dataGridViewCellStyle5.Format = "#0.######"; - this.F_SUnitNum.DefaultCellStyle = dataGridViewCellStyle5; - this.F_SUnitNum.HeaderText = "备货重量"; - this.F_SUnitNum.Name = "F_SUnitNum"; - this.F_SUnitNum.ReadOnly = true; - // - // F_SSecondNumber - // - this.F_SSecondNumber.DataPropertyName = "SSecondNumber"; - dataGridViewCellStyle6.Format = "#0.######"; - this.F_SSecondNumber.DefaultCellStyle = dataGridViewCellStyle6; - this.F_SSecondNumber.HeaderText = "备货数量"; - this.F_SSecondNumber.Name = "F_SSecondNumber"; - this.F_SSecondNumber.ReadOnly = true; - // - // label13 - // - this.label13.AutoSize = true; - this.label13.Font = new System.Drawing.Font("宋体", 10F); - this.label13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(126)))), ((int)(((byte)(51))))); - this.label13.Location = new System.Drawing.Point(13, 10); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(77, 14); - this.label13.TabIndex = 7; - this.label13.Text = "销售订货:"; - // - // detailGridView - // - this.detailGridView.AllowUserToAddRows = false; - this.detailGridView.AllowUserToDeleteRows = false; - this.detailGridView.AllowUserToResizeColumns = false; - this.detailGridView.AllowUserToResizeRows = false; - dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(228)))), ((int)(((byte)(203))))); - this.detailGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle8; - this.detailGridView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.detailGridView.BackgroundColor = System.Drawing.Color.White; - this.detailGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.detailGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; - this.detailGridView.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(148)))), ((int)(((byte)(74))))); - dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 10F); - dataGridViewCellStyle9.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.detailGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9; - this.detailGridView.ColumnHeadersHeight = 30; - this.detailGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - this.detailGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.B_DeliverGoodsLine_Name, - this.B_ShortCode, - this.B_Goods_Name, - this.B_SaleOutStoreID, - this.B_SecondNumber, - this.B_UnitNumber}); - this.detailGridView.EnableHeadersVisualStyles = false; - this.detailGridView.Location = new System.Drawing.Point(10, 31); - this.detailGridView.MultiSelect = false; - this.detailGridView.Name = "detailGridView"; - this.detailGridView.ReadOnly = true; - this.detailGridView.RowHeadersVisible = false; - dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(247)))), ((int)(((byte)(240))))); - dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 10F); - dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(148)))), ((int)(((byte)(74))))); - this.detailGridView.RowsDefaultCellStyle = dataGridViewCellStyle12; - this.detailGridView.RowTemplate.Height = 40; - this.detailGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.detailGridView.Size = new System.Drawing.Size(580, 268); - this.detailGridView.TabIndex = 6; - // - // B_DeliverGoodsLine_Name - // - this.B_DeliverGoodsLine_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.B_DeliverGoodsLine_Name.DataPropertyName = "DeliverGoodsLine_Name"; - this.B_DeliverGoodsLine_Name.HeaderText = "线路名称"; - this.B_DeliverGoodsLine_Name.MinimumWidth = 100; - this.B_DeliverGoodsLine_Name.Name = "B_DeliverGoodsLine_Name"; - this.B_DeliverGoodsLine_Name.ReadOnly = true; - // - // B_ShortCode - // - this.B_ShortCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.B_ShortCode.DataPropertyName = "ShortCode"; - this.B_ShortCode.HeaderText = "条码"; - this.B_ShortCode.MinimumWidth = 90; - this.B_ShortCode.Name = "B_ShortCode"; - this.B_ShortCode.ReadOnly = true; - // - // B_Goods_Name - // - this.B_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.B_Goods_Name.DataPropertyName = "Goods_Name"; - this.B_Goods_Name.HeaderText = "产品名称"; - this.B_Goods_Name.MinimumWidth = 100; - this.B_Goods_Name.Name = "B_Goods_Name"; - this.B_Goods_Name.ReadOnly = true; - // - // B_SaleOutStoreID - // - this.B_SaleOutStoreID.DataPropertyName = "SaleOutStoreID"; - this.B_SaleOutStoreID.HeaderText = "销售出库单"; - this.B_SaleOutStoreID.Name = "B_SaleOutStoreID"; - this.B_SaleOutStoreID.ReadOnly = true; - this.B_SaleOutStoreID.Visible = false; - // - // B_SecondNumber - // - this.B_SecondNumber.DataPropertyName = "SecondNumber"; - dataGridViewCellStyle10.Format = "#0.######"; - this.B_SecondNumber.DefaultCellStyle = dataGridViewCellStyle10; - this.B_SecondNumber.HeaderText = "数量"; - this.B_SecondNumber.Name = "B_SecondNumber"; - this.B_SecondNumber.ReadOnly = true; - this.B_SecondNumber.Width = 80; - // - // B_UnitNumber - // - this.B_UnitNumber.DataPropertyName = "UnitNumber"; - dataGridViewCellStyle11.Format = "#0.######"; - this.B_UnitNumber.DefaultCellStyle = dataGridViewCellStyle11; - this.B_UnitNumber.HeaderText = "重量"; - this.B_UnitNumber.Name = "B_UnitNumber"; - this.B_UnitNumber.ReadOnly = true; - this.B_UnitNumber.Width = 80; - // - // dhUnitNumLbl - // - this.dhUnitNumLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.dhUnitNumLbl.Font = new System.Drawing.Font("宋体", 14F); - this.dhUnitNumLbl.ForeColor = System.Drawing.Color.Red; - this.dhUnitNumLbl.Location = new System.Drawing.Point(326, 94); - this.dhUnitNumLbl.Name = "dhUnitNumLbl"; - this.dhUnitNumLbl.Size = new System.Drawing.Size(120, 30); - this.dhUnitNumLbl.TabIndex = 14; - this.dhUnitNumLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Font = new System.Drawing.Font("宋体", 14F); - this.label7.Location = new System.Drawing.Point(236, 100); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(85, 19); - this.label7.TabIndex = 15; - this.label7.Text = "订货重量"; - // - // bhUnitNumLbl - // - this.bhUnitNumLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.bhUnitNumLbl.Font = new System.Drawing.Font("宋体", 14F); - this.bhUnitNumLbl.ForeColor = System.Drawing.Color.Red; - this.bhUnitNumLbl.Location = new System.Drawing.Point(773, 94); - this.bhUnitNumLbl.Name = "bhUnitNumLbl"; - this.bhUnitNumLbl.Size = new System.Drawing.Size(120, 30); - this.bhUnitNumLbl.TabIndex = 18; - this.bhUnitNumLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.AutoSize = true; - this.label9.Font = new System.Drawing.Font("宋体", 14F); - this.label9.Location = new System.Drawing.Point(680, 100); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(85, 19); - this.label9.TabIndex = 19; - this.label9.Text = "备货重量"; - // - // bhNumberLbl - // - this.bhNumberLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.bhNumberLbl.Font = new System.Drawing.Font("宋体", 14F); - this.bhNumberLbl.ForeColor = System.Drawing.Color.Red; - this.bhNumberLbl.Location = new System.Drawing.Point(547, 94); - this.bhNumberLbl.Name = "bhNumberLbl"; - this.bhNumberLbl.Size = new System.Drawing.Size(120, 30); - this.bhNumberLbl.TabIndex = 16; - this.bhNumberLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label11 - // - this.label11.AutoSize = true; - this.label11.Font = new System.Drawing.Font("宋体", 14F); - this.label11.Location = new System.Drawing.Point(460, 100); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(85, 19); - this.label11.TabIndex = 17; - this.label11.Text = "备货数量"; - // - // panel7 - // - this.panel7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.panel7.Controls.Add(this.printCk); - this.panel7.Controls.Add(this.refresh); - this.panel7.Location = new System.Drawing.Point(824, 5); - this.panel7.Name = "panel7"; - this.panel7.Size = new System.Drawing.Size(346, 44); - this.panel7.TabIndex = 20; - // - // printCk - // - this.printCk.AutoSize = true; - this.printCk.Font = new System.Drawing.Font("黑体", 12F); - this.printCk.Location = new System.Drawing.Point(14, 13); - this.printCk.Name = "printCk"; - this.printCk.Size = new System.Drawing.Size(91, 20); - this.printCk.TabIndex = 1; - this.printCk.Text = "打印条码"; - this.printCk.UseVisualStyleBackColor = true; - // - // refresh - // - this.refresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); - this.refresh.ForeColor = System.Drawing.Color.White; - this.refresh.Location = new System.Drawing.Point(268, 4); - this.refresh.Name = "refresh"; - this.refresh.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); - this.refresh.Size = new System.Drawing.Size(75, 35); - this.refresh.TabIndex = 0; - this.refresh.Text = "刷新"; - this.refresh.UseVisualStyleBackColor = false; - this.refresh.Click += new System.EventHandler(this.refresh_Click); - // - // SegmentStockUpForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1212, 600); - this.ImeMode = System.Windows.Forms.ImeMode.Disable; - this.KeyPreview = true; - this.Name = "SegmentStockUpForm"; - this.Text = "销售备货"; - this.roundPanel1.ResumeLayout(false); - this.roundPanel1.PerformLayout(); - this.panel5.ResumeLayout(false); - this.panel5.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.mainGridView)).EndInit(); - this.panel6.ResumeLayout(false); - this.panel6.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.finishGrid)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.detailGridView)).EndInit(); - this.panel7.ResumeLayout(false); - this.panel7.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = 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 dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = 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(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = 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 dataGridViewCellStyle12 = 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(); + this.uScanPanel1 = new WinFormControl.UScanPanel(); + this.panel4 = new System.Windows.Forms.Panel(); + this.goodsLbl = new System.Windows.Forms.Label(); + this.driveLineLbl = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.dhNumberLbl = new System.Windows.Forms.Label(); + this.panel5 = new System.Windows.Forms.Panel(); + this.mainGridView = new WinFormControl.UDataGridView(); + this.D_Finishd = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.D_DeliverGoodsLine_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.D_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.D_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.D_SecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.D_UnitNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.D_SSecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.D_SUnitNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.label12 = new System.Windows.Forms.Label(); + this.panel6 = new System.Windows.Forms.Panel(); + this.finishGrid = new WinFormControl.UDataGridView(); + this.F_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.F_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.F_UnitNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.F_SecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.F_SUnitNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.F_SSecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.label13 = new System.Windows.Forms.Label(); + this.detailGridView = new WinFormControl.UDataGridView(); + this.B_DeliverGoodsLine_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.B_ShortCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.B_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.B_SaleOutStoreID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.B_SecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.B_UnitNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dhUnitNumLbl = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.bhUnitNumLbl = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.bhNumberLbl = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.panel7 = new System.Windows.Forms.Panel(); + this.printCk = new System.Windows.Forms.CheckBox(); + this.refresh = new ButcherFactory.Controls.ColorButton(); + this.colorButton1 = new ButcherFactory.Controls.ColorButton(); + this.roundPanel1.SuspendLayout(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.mainGridView)).BeginInit(); + this.panel6.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.finishGrid)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.detailGridView)).BeginInit(); + this.panel7.SuspendLayout(); + this.SuspendLayout(); + // + // roundPanel1 + // + this.roundPanel1.Controls.Add(this.panel7); + this.roundPanel1.Controls.Add(this.bhUnitNumLbl); + this.roundPanel1.Controls.Add(this.label9); + this.roundPanel1.Controls.Add(this.bhNumberLbl); + this.roundPanel1.Controls.Add(this.label11); + this.roundPanel1.Controls.Add(this.dhUnitNumLbl); + this.roundPanel1.Controls.Add(this.label7); + this.roundPanel1.Controls.Add(this.panel6); + this.roundPanel1.Controls.Add(this.panel5); + this.roundPanel1.Controls.Add(this.dhNumberLbl); + this.roundPanel1.Controls.Add(this.label4); + this.roundPanel1.Controls.Add(this.driveLineLbl); + this.roundPanel1.Controls.Add(this.goodsLbl); + this.roundPanel1.Controls.Add(this.panel4); + this.roundPanel1.Controls.Add(this.uScanPanel1); + // + // uScanPanel1 + // + this.uScanPanel1.BackColor = System.Drawing.Color.Transparent; + this.uScanPanel1.Location = new System.Drawing.Point(18, 9); + this.uScanPanel1.Name = "uScanPanel1"; + this.uScanPanel1.Size = new System.Drawing.Size(303, 32); + this.uScanPanel1.TabIndex = 0; + // + // panel4 + // + this.panel4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(243)))), ((int)(((byte)(243))))); + this.panel4.Location = new System.Drawing.Point(7, 53); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(1174, 1); + this.panel4.TabIndex = 3; + // + // goodsLbl + // + this.goodsLbl.AutoSize = true; + this.goodsLbl.Font = new System.Drawing.Font("宋体", 14F); + this.goodsLbl.ForeColor = System.Drawing.Color.Red; + this.goodsLbl.Location = new System.Drawing.Point(236, 63); + this.goodsLbl.Name = "goodsLbl"; + this.goodsLbl.Size = new System.Drawing.Size(85, 19); + this.goodsLbl.TabIndex = 4; + this.goodsLbl.Text = "存货名称"; + // + // driveLineLbl + // + this.driveLineLbl.AutoSize = true; + this.driveLineLbl.Font = new System.Drawing.Font("宋体", 14F); + this.driveLineLbl.ForeColor = System.Drawing.Color.Red; + this.driveLineLbl.Location = new System.Drawing.Point(16, 63); + this.driveLineLbl.Name = "driveLineLbl"; + this.driveLineLbl.Size = new System.Drawing.Size(85, 19); + this.driveLineLbl.TabIndex = 4; + this.driveLineLbl.Text = "送货线路"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("宋体", 14F); + this.label4.Location = new System.Drawing.Point(16, 100); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(85, 19); + this.label4.TabIndex = 5; + this.label4.Text = "订货数量"; + // + // dhNumberLbl + // + this.dhNumberLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.dhNumberLbl.Font = new System.Drawing.Font("宋体", 14F); + this.dhNumberLbl.ForeColor = System.Drawing.Color.Red; + this.dhNumberLbl.Location = new System.Drawing.Point(104, 94); + this.dhNumberLbl.Name = "dhNumberLbl"; + this.dhNumberLbl.Size = new System.Drawing.Size(120, 30); + this.dhNumberLbl.TabIndex = 5; + this.dhNumberLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // panel5 + // + this.panel5.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.panel5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); + this.panel5.Controls.Add(this.mainGridView); + this.panel5.Controls.Add(this.label12); + this.panel5.Location = new System.Drawing.Point(7, 142); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(567, 362); + this.panel5.TabIndex = 12; + // + // mainGridView + // + this.mainGridView.AllowUserToAddRows = false; + this.mainGridView.AllowUserToDeleteRows = false; + this.mainGridView.AllowUserToResizeColumns = false; + this.mainGridView.AllowUserToResizeRows = false; + dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(238)))), ((int)(((byte)(255))))); + this.mainGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13; + this.mainGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.mainGridView.BackgroundColor = System.Drawing.Color.White; + this.mainGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.mainGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.mainGridView.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; + dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); + dataGridViewCellStyle14.Font = new System.Drawing.Font("宋体", 10F); + dataGridViewCellStyle14.ForeColor = System.Drawing.Color.White; + dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.mainGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14; + this.mainGridView.ColumnHeadersHeight = 30; + this.mainGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.mainGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.D_Finishd, + this.D_DeliverGoodsLine_Name, + this.D_Goods_Name, + this.D_Goods_Spec, + this.D_SecondNumber, + this.D_UnitNum, + this.D_SSecondNumber, + this.D_SUnitNum}); + this.mainGridView.EnableHeadersVisualStyles = false; + this.mainGridView.Location = new System.Drawing.Point(11, 31); + this.mainGridView.MultiSelect = false; + this.mainGridView.Name = "mainGridView"; + this.mainGridView.ReadOnly = true; + this.mainGridView.RowHeadersVisible = false; + dataGridViewCellStyle19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(243)))), ((int)(((byte)(250))))); + dataGridViewCellStyle19.Font = new System.Drawing.Font("宋体", 9F); + dataGridViewCellStyle19.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); + this.mainGridView.RowsDefaultCellStyle = dataGridViewCellStyle19; + this.mainGridView.RowTemplate.Height = 40; + this.mainGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.mainGridView.Size = new System.Drawing.Size(545, 320); + this.mainGridView.TabIndex = 7; + this.mainGridView.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.mainGridView_CellClick); + this.mainGridView.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.mainGridView_RowPrePaint); + // + // D_Finishd + // + this.D_Finishd.DataPropertyName = "Finishd"; + this.D_Finishd.HeaderText = "Finishd"; + this.D_Finishd.Name = "D_Finishd"; + this.D_Finishd.ReadOnly = true; + this.D_Finishd.Visible = false; + // + // D_DeliverGoodsLine_Name + // + this.D_DeliverGoodsLine_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.D_DeliverGoodsLine_Name.DataPropertyName = "DeliverGoodsLine_Name"; + this.D_DeliverGoodsLine_Name.HeaderText = "线路名称"; + this.D_DeliverGoodsLine_Name.MinimumWidth = 100; + this.D_DeliverGoodsLine_Name.Name = "D_DeliverGoodsLine_Name"; + this.D_DeliverGoodsLine_Name.ReadOnly = true; + // + // D_Goods_Name + // + this.D_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.D_Goods_Name.DataPropertyName = "Goods_Name"; + this.D_Goods_Name.HeaderText = "产品名称"; + this.D_Goods_Name.MinimumWidth = 100; + this.D_Goods_Name.Name = "D_Goods_Name"; + this.D_Goods_Name.ReadOnly = true; + // + // D_Goods_Spec + // + this.D_Goods_Spec.DataPropertyName = "Goods_Spec"; + this.D_Goods_Spec.HeaderText = "规格"; + this.D_Goods_Spec.MinimumWidth = 70; + this.D_Goods_Spec.Name = "D_Goods_Spec"; + this.D_Goods_Spec.ReadOnly = true; + this.D_Goods_Spec.Width = 70; + // + // D_SecondNumber + // + this.D_SecondNumber.DataPropertyName = "SecondNumber"; + dataGridViewCellStyle15.Format = "#0.######"; + this.D_SecondNumber.DefaultCellStyle = dataGridViewCellStyle15; + this.D_SecondNumber.HeaderText = "订货数量"; + this.D_SecondNumber.Name = "D_SecondNumber"; + this.D_SecondNumber.ReadOnly = true; + this.D_SecondNumber.Width = 90; + // + // D_UnitNum + // + this.D_UnitNum.DataPropertyName = "UnitNum"; + dataGridViewCellStyle16.Format = "#0.######"; + this.D_UnitNum.DefaultCellStyle = dataGridViewCellStyle16; + this.D_UnitNum.HeaderText = "订货重量"; + this.D_UnitNum.Name = "D_UnitNum"; + this.D_UnitNum.ReadOnly = true; + this.D_UnitNum.Width = 90; + // + // D_SSecondNumber + // + this.D_SSecondNumber.DataPropertyName = "SSecondNumber"; + dataGridViewCellStyle17.Format = "#0.######"; + this.D_SSecondNumber.DefaultCellStyle = dataGridViewCellStyle17; + this.D_SSecondNumber.HeaderText = "备货数量"; + this.D_SSecondNumber.Name = "D_SSecondNumber"; + this.D_SSecondNumber.ReadOnly = true; + this.D_SSecondNumber.Width = 90; + // + // D_SUnitNum + // + this.D_SUnitNum.DataPropertyName = "SUnitNum"; + dataGridViewCellStyle18.Format = "#0.######"; + this.D_SUnitNum.DefaultCellStyle = dataGridViewCellStyle18; + this.D_SUnitNum.HeaderText = "备货重量"; + this.D_SUnitNum.Name = "D_SUnitNum"; + this.D_SUnitNum.ReadOnly = true; + this.D_SUnitNum.Width = 90; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Font = new System.Drawing.Font("宋体", 10F); + this.label12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(99)))), ((int)(((byte)(219))))); + this.label12.Location = new System.Drawing.Point(14, 10); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(77, 14); + this.label12.TabIndex = 6; + this.label12.Text = "销售订货:"; + // + // panel6 + // + this.panel6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.panel6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); + this.panel6.Controls.Add(this.finishGrid); + this.panel6.Controls.Add(this.label13); + this.panel6.Controls.Add(this.detailGridView); + this.panel6.Location = new System.Drawing.Point(580, 142); + this.panel6.Name = "panel6"; + this.panel6.Size = new System.Drawing.Size(600, 362); + this.panel6.TabIndex = 13; + // + // finishGrid + // + this.finishGrid.AllowUserToAddRows = false; + this.finishGrid.AllowUserToDeleteRows = false; + this.finishGrid.AllowUserToResizeColumns = false; + this.finishGrid.AllowUserToResizeRows = false; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(228)))), ((int)(((byte)(203))))); + this.finishGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.finishGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.finishGrid.BackgroundColor = System.Drawing.Color.White; + this.finishGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.finishGrid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.finishGrid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(129)))), ((int)(((byte)(213)))), ((int)(((byte)(68))))); + dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 10F); + dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.finishGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + this.finishGrid.ColumnHeadersHeight = 30; + this.finishGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.finishGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.F_RowIndex, + this.F_Name, + this.F_UnitNum, + this.F_SecondNumber, + this.F_SUnitNum, + this.F_SSecondNumber}); + this.finishGrid.EnableHeadersVisualStyles = false; + this.finishGrid.Location = new System.Drawing.Point(10, 314); + this.finishGrid.MultiSelect = false; + this.finishGrid.Name = "finishGrid"; + this.finishGrid.ReadOnly = true; + this.finishGrid.RowHeadersVisible = false; + dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(247)))), ((int)(((byte)(240))))); + dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 10F); + dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(129)))), ((int)(((byte)(213)))), ((int)(((byte)(68))))); + this.finishGrid.RowsDefaultCellStyle = dataGridViewCellStyle7; + this.finishGrid.RowTemplate.Height = 40; + this.finishGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.finishGrid.Size = new System.Drawing.Size(580, 37); + this.finishGrid.TabIndex = 8; + // + // F_RowIndex + // + this.F_RowIndex.DataPropertyName = "RowIndex"; + this.F_RowIndex.HeaderText = "序号"; + this.F_RowIndex.Name = "F_RowIndex"; + this.F_RowIndex.ReadOnly = true; + this.F_RowIndex.Width = 80; + // + // F_Name + // + this.F_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.F_Name.DataPropertyName = "Name"; + this.F_Name.HeaderText = "线路名称"; + this.F_Name.MinimumWidth = 100; + this.F_Name.Name = "F_Name"; + this.F_Name.ReadOnly = true; + // + // F_UnitNum + // + this.F_UnitNum.DataPropertyName = "UnitNum"; + dataGridViewCellStyle3.Format = "#0.######"; + this.F_UnitNum.DefaultCellStyle = dataGridViewCellStyle3; + this.F_UnitNum.HeaderText = "订货重量"; + this.F_UnitNum.Name = "F_UnitNum"; + this.F_UnitNum.ReadOnly = true; + // + // F_SecondNumber + // + this.F_SecondNumber.DataPropertyName = "SecondNumber"; + dataGridViewCellStyle4.Format = "#0.######"; + this.F_SecondNumber.DefaultCellStyle = dataGridViewCellStyle4; + this.F_SecondNumber.HeaderText = "订货数量"; + this.F_SecondNumber.Name = "F_SecondNumber"; + this.F_SecondNumber.ReadOnly = true; + // + // F_SUnitNum + // + this.F_SUnitNum.DataPropertyName = "SUnitNum"; + dataGridViewCellStyle5.Format = "#0.######"; + this.F_SUnitNum.DefaultCellStyle = dataGridViewCellStyle5; + this.F_SUnitNum.HeaderText = "备货重量"; + this.F_SUnitNum.Name = "F_SUnitNum"; + this.F_SUnitNum.ReadOnly = true; + // + // F_SSecondNumber + // + this.F_SSecondNumber.DataPropertyName = "SSecondNumber"; + dataGridViewCellStyle6.Format = "#0.######"; + this.F_SSecondNumber.DefaultCellStyle = dataGridViewCellStyle6; + this.F_SSecondNumber.HeaderText = "备货数量"; + this.F_SSecondNumber.Name = "F_SSecondNumber"; + this.F_SSecondNumber.ReadOnly = true; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Font = new System.Drawing.Font("宋体", 10F); + this.label13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(126)))), ((int)(((byte)(51))))); + this.label13.Location = new System.Drawing.Point(13, 10); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(77, 14); + this.label13.TabIndex = 7; + this.label13.Text = "销售订货:"; + // + // detailGridView + // + this.detailGridView.AllowUserToAddRows = false; + this.detailGridView.AllowUserToDeleteRows = false; + this.detailGridView.AllowUserToResizeColumns = false; + this.detailGridView.AllowUserToResizeRows = false; + dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(228)))), ((int)(((byte)(203))))); + this.detailGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle8; + this.detailGridView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.detailGridView.BackgroundColor = System.Drawing.Color.White; + this.detailGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.detailGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.detailGridView.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; + dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(148)))), ((int)(((byte)(74))))); + dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 10F); + dataGridViewCellStyle9.ForeColor = System.Drawing.Color.White; + dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.detailGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9; + this.detailGridView.ColumnHeadersHeight = 30; + this.detailGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.detailGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.B_DeliverGoodsLine_Name, + this.B_ShortCode, + this.B_Goods_Name, + this.B_SaleOutStoreID, + this.B_SecondNumber, + this.B_UnitNumber}); + this.detailGridView.EnableHeadersVisualStyles = false; + this.detailGridView.Location = new System.Drawing.Point(10, 31); + this.detailGridView.MultiSelect = false; + this.detailGridView.Name = "detailGridView"; + this.detailGridView.ReadOnly = true; + this.detailGridView.RowHeadersVisible = false; + dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(247)))), ((int)(((byte)(240))))); + dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 10F); + dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(148)))), ((int)(((byte)(74))))); + this.detailGridView.RowsDefaultCellStyle = dataGridViewCellStyle12; + this.detailGridView.RowTemplate.Height = 40; + this.detailGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.detailGridView.Size = new System.Drawing.Size(580, 268); + this.detailGridView.TabIndex = 6; + // + // B_DeliverGoodsLine_Name + // + this.B_DeliverGoodsLine_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.B_DeliverGoodsLine_Name.DataPropertyName = "DeliverGoodsLine_Name"; + this.B_DeliverGoodsLine_Name.HeaderText = "线路名称"; + this.B_DeliverGoodsLine_Name.MinimumWidth = 100; + this.B_DeliverGoodsLine_Name.Name = "B_DeliverGoodsLine_Name"; + this.B_DeliverGoodsLine_Name.ReadOnly = true; + // + // B_ShortCode + // + this.B_ShortCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.B_ShortCode.DataPropertyName = "ShortCode"; + this.B_ShortCode.HeaderText = "条码"; + this.B_ShortCode.MinimumWidth = 90; + this.B_ShortCode.Name = "B_ShortCode"; + this.B_ShortCode.ReadOnly = true; + // + // B_Goods_Name + // + this.B_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.B_Goods_Name.DataPropertyName = "Goods_Name"; + this.B_Goods_Name.HeaderText = "产品名称"; + this.B_Goods_Name.MinimumWidth = 100; + this.B_Goods_Name.Name = "B_Goods_Name"; + this.B_Goods_Name.ReadOnly = true; + // + // B_SaleOutStoreID + // + this.B_SaleOutStoreID.DataPropertyName = "SaleOutStoreID"; + this.B_SaleOutStoreID.HeaderText = "销售出库单"; + this.B_SaleOutStoreID.Name = "B_SaleOutStoreID"; + this.B_SaleOutStoreID.ReadOnly = true; + this.B_SaleOutStoreID.Visible = false; + // + // B_SecondNumber + // + this.B_SecondNumber.DataPropertyName = "SecondNumber"; + dataGridViewCellStyle10.Format = "#0.######"; + this.B_SecondNumber.DefaultCellStyle = dataGridViewCellStyle10; + this.B_SecondNumber.HeaderText = "数量"; + this.B_SecondNumber.Name = "B_SecondNumber"; + this.B_SecondNumber.ReadOnly = true; + this.B_SecondNumber.Width = 80; + // + // B_UnitNumber + // + this.B_UnitNumber.DataPropertyName = "UnitNumber"; + dataGridViewCellStyle11.Format = "#0.######"; + this.B_UnitNumber.DefaultCellStyle = dataGridViewCellStyle11; + this.B_UnitNumber.HeaderText = "重量"; + this.B_UnitNumber.Name = "B_UnitNumber"; + this.B_UnitNumber.ReadOnly = true; + this.B_UnitNumber.Width = 80; + // + // dhUnitNumLbl + // + this.dhUnitNumLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.dhUnitNumLbl.Font = new System.Drawing.Font("宋体", 14F); + this.dhUnitNumLbl.ForeColor = System.Drawing.Color.Red; + this.dhUnitNumLbl.Location = new System.Drawing.Point(326, 94); + this.dhUnitNumLbl.Name = "dhUnitNumLbl"; + this.dhUnitNumLbl.Size = new System.Drawing.Size(120, 30); + this.dhUnitNumLbl.TabIndex = 14; + this.dhUnitNumLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Font = new System.Drawing.Font("宋体", 14F); + this.label7.Location = new System.Drawing.Point(236, 100); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(85, 19); + this.label7.TabIndex = 15; + this.label7.Text = "订货重量"; + // + // bhUnitNumLbl + // + this.bhUnitNumLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bhUnitNumLbl.Font = new System.Drawing.Font("宋体", 14F); + this.bhUnitNumLbl.ForeColor = System.Drawing.Color.Red; + this.bhUnitNumLbl.Location = new System.Drawing.Point(773, 94); + this.bhUnitNumLbl.Name = "bhUnitNumLbl"; + this.bhUnitNumLbl.Size = new System.Drawing.Size(120, 30); + this.bhUnitNumLbl.TabIndex = 18; + this.bhUnitNumLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Font = new System.Drawing.Font("宋体", 14F); + this.label9.Location = new System.Drawing.Point(680, 100); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(85, 19); + this.label9.TabIndex = 19; + this.label9.Text = "备货重量"; + // + // bhNumberLbl + // + this.bhNumberLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bhNumberLbl.Font = new System.Drawing.Font("宋体", 14F); + this.bhNumberLbl.ForeColor = System.Drawing.Color.Red; + this.bhNumberLbl.Location = new System.Drawing.Point(547, 94); + this.bhNumberLbl.Name = "bhNumberLbl"; + this.bhNumberLbl.Size = new System.Drawing.Size(120, 30); + this.bhNumberLbl.TabIndex = 16; + this.bhNumberLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Font = new System.Drawing.Font("宋体", 14F); + this.label11.Location = new System.Drawing.Point(460, 100); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(85, 19); + this.label11.TabIndex = 17; + this.label11.Text = "备货数量"; + // + // panel7 + // + this.panel7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.panel7.Controls.Add(this.colorButton1); + this.panel7.Controls.Add(this.printCk); + this.panel7.Controls.Add(this.refresh); + this.panel7.Location = new System.Drawing.Point(824, 5); + this.panel7.Name = "panel7"; + this.panel7.Size = new System.Drawing.Size(346, 44); + this.panel7.TabIndex = 20; + // + // printCk + // + this.printCk.AutoSize = true; + this.printCk.Font = new System.Drawing.Font("黑体", 12F); + this.printCk.Location = new System.Drawing.Point(14, 13); + this.printCk.Name = "printCk"; + this.printCk.Size = new System.Drawing.Size(91, 20); + this.printCk.TabIndex = 1; + this.printCk.Text = "打印条码"; + this.printCk.UseVisualStyleBackColor = true; + // + // refresh + // + this.refresh.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); + this.refresh.ForeColor = System.Drawing.Color.White; + this.refresh.Location = new System.Drawing.Point(268, 4); + this.refresh.Name = "refresh"; + this.refresh.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); + this.refresh.Size = new System.Drawing.Size(75, 35); + this.refresh.TabIndex = 0; + this.refresh.Text = "刷新"; + this.refresh.UseVisualStyleBackColor = false; + this.refresh.Click += new System.EventHandler(this.refresh_Click); + // + // colorButton1 + // + this.colorButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); + this.colorButton1.ForeColor = System.Drawing.Color.White; + this.colorButton1.Location = new System.Drawing.Point(136, 5); + this.colorButton1.Name = "colorButton1"; + this.colorButton1.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); + this.colorButton1.Size = new System.Drawing.Size(75, 35); + this.colorButton1.TabIndex = 2; + this.colorButton1.Text = "打印测试"; + this.colorButton1.UseVisualStyleBackColor = false; + this.colorButton1.Click += new System.EventHandler(this.colorButton1_Click); + // + // SegmentStockUpForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1212, 600); + this.ImeMode = System.Windows.Forms.ImeMode.Disable; + this.KeyPreview = true; + this.Name = "SegmentStockUpForm"; + this.Text = "销售备货"; + this.roundPanel1.ResumeLayout(false); + this.roundPanel1.PerformLayout(); + this.panel5.ResumeLayout(false); + this.panel5.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.mainGridView)).EndInit(); + this.panel6.ResumeLayout(false); + this.panel6.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.finishGrid)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.detailGridView)).EndInit(); + this.panel7.ResumeLayout(false); + this.panel7.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + } #endregion @@ -711,6 +726,7 @@ private System.Windows.Forms.DataGridViewTextBoxColumn B_Goods_Name; private System.Windows.Forms.DataGridViewTextBoxColumn B_SaleOutStoreID; private System.Windows.Forms.DataGridViewTextBoxColumn B_SecondNumber; - private System.Windows.Forms.DataGridViewTextBoxColumn B_UnitNumber; + private System.Windows.Forms.DataGridViewTextBoxColumn B_UnitNumber; + private Controls.ColorButton colorButton1; } } \ No newline at end of file diff --git a/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.cs b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.cs index 3db5235..4177e44 100644 --- a/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.cs +++ b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.cs @@ -313,10 +313,12 @@ namespace ButcherFactory.SegmentStockUp_ var last = allMain.Where(x => x.Goods_Name == saleOutStore.Goods_Name && x.DeliverGoodsLine_Name == saleOutStore.DeliverGoodsLine_Name) .Sum(x => ((x.UnitNum ?? 0) - (x.SUnitNum ?? 0)) < 0 ? 0 : ((x.UnitNum ?? 0) - (x.SUnitNum ?? 0))); if (last < 0) - last = 0; - SegmentStockUpPrint.Print(detail,last, saleOutStore.Customer_Name); - } - + last = 0; + SegmentStockUpPrint.Print(detail, last, saleOutStore); + } + var hasUnFinish = allMain.Where(x => x.Customer_Name == saleOutStore.Customer_Name).Any(x => !x.Finishd); + if (!hasUnFinish) + InfoBox.Show("提示", string.Format("{0} 备货完成", saleOutStore.Customer_Name), Color.Green, 1, this); BindMainGrid(saleOutStore); } @@ -405,6 +407,14 @@ namespace ButcherFactory.SegmentStockUp_ { dgrSingle.DefaultCellStyle.BackColor = Color.YellowGreen; } + } + + private void colorButton1_Click(object sender, EventArgs e) + { + var detail = new SegmentStockUp() { DeliverGoodsLine_Name = "青岛龙钰聚祥万福批发部", Date = DateTime.Today, BarCode="260912011201905120100005" }; + var last = 5.234m; + var saleOutStore = new SaleOutStoreInfo() { Customer_Name = "青岛市大客户", SendQueue = 51 }; + SegmentStockUpPrint.Print(detail, last, saleOutStore); } } diff --git a/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.resx b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.resx index 376a16f..58680c6 100644 --- a/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.resx +++ b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.resx @@ -1,180 +1,180 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + \ No newline at end of file diff --git a/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpPrint.cs b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpPrint.cs index b3198fb..2a2fa70 100644 --- a/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpPrint.cs +++ b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpPrint.cs @@ -38,17 +38,17 @@ namespace ButcherFactory.SegmentStockUp_ // PrintAPI.B_Set_Direction('B'); // PrintAPI.B_Print_Out(1); // PrintAPI.B_ClosePrn(); - //} - - public static void Print(SegmentStockUp entity,decimal last, string customer) - { - var templateString = File.ReadAllText("PrintTemplate\\SegmentStockUpPrint.txt", Encoding.UTF8); - - var str = string.Format(templateString, customer, entity.DeliverGoodsLine_Name, entity.Date, entity.BarCode, last); - - - var printName = GetZebraPrintName(); - SendBytesToPrinter(printName, System.Text.Encoding.Default.GetBytes(str)); + //} + + public static void Print(SegmentStockUp entity, decimal last, SaleOutStoreInfo bill) + { + var templateString = File.ReadAllText("PrintTemplate\\SegmentStockUpPrint.txt", Encoding.UTF8); + + var str = string.Format(templateString, bill.Customer_Name, entity.DeliverGoodsLine_Name, entity.Date, entity.BarCode, last, bill.SendQueue); + + + var printName = GetZebraPrintName(); + SendBytesToPrinter(printName, System.Text.Encoding.Default.GetBytes(str)); } private static string GetZebraPrintName() diff --git a/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpPrint.txt b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpPrint.txt index c6a912b..1dbfbbf 100644 --- a/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpPrint.txt +++ b/ButcherFactory.Form/SegmentStockUp_/SegmentStockUpPrint.txt @@ -3,9 +3,11 @@ ^SEE:GB18030.DAT^FS ^CWJ,E:MSUNG24.FNT^FS ^CI26 -^FT20,80^AJN,36,36 ^FH\^FD线路:{1}^FS -^FT20,180^AJN,36,36 ^FH\^FD日期:{2:yyyy/MM/dd}^FS +^FT20,40^AJN,36,36 ^FH\^FD客户:{0}^FS +^FT20,100^AJN,36,36 ^FH\^FD线路:{1}^FS +^FT20,160^AJN,36,36 ^FH\^FD日期:{2:yyyy/MM/dd}^FS ^FT10,320^BCN,80^FD{3}^FS +^FT20,380^AJN,36,36 ^FH\^FD装车顺序与:{5}^FS ^FT450,380^AJN,36,36 ^FH\^FD{4:#0.###}^FS ^PQ1,0,1,Y ^XZ \ No newline at end of file