From c2b1227f6c2cc51740edde9ee6409f78afb8e41f Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Sat, 7 Aug 2021 17:09:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ButcherFactory.Form.csproj | 116 -- .../CarcassSaleOutForm.Designer.cs | 1193 ---------------- .../CarcassSaleOut_/CarcassSaleOutForm.cs | 457 ------ .../CarcassSaleOut_/CarcassSaleOutForm.resx | 287 ---- .../CarcassTakeOutForm.Designer.cs | 698 ---------- .../CarcassTakeOut_/CarcassTakeOutForm.cs | 283 ---- .../CarcassTakeOut_/CarcassTakeOutForm.resx | 158 --- .../CarcassTakeOutFormConfig.cs | 15 - .../InStoreSummaryView.Designer.cs | 180 --- .../SegmentInStore_/InStoreSummaryView.cs | 76 - .../SegmentInStore_/InStoreSummaryView.resx | 129 -- .../SegmentInStoreForm.Designer.cs | 839 ----------- .../SegmentInStore_/SegmentInStoreForm.cs | 326 ----- .../SegmentInStore_/SegmentInStoreForm.resx | 141 -- .../SegmentInStoreFormConfig.cs | 13 - .../SegmentProductionForm.Designer.cs | 726 ---------- .../SegmentProductionForm.cs | 319 ----- .../SegmentProductionForm.resx | 202 --- .../AddWeightRecord.Designer.cs | 168 --- .../SegmentSaleOut_/AddWeightRecord.cs | 66 - .../SegmentSaleOut_/AddWeightRecord.resx | 120 -- .../DiscontSetDialog.Designer.cs | 180 --- .../SegmentSaleOut_/DiscontSetDialog.cs | 69 - .../SegmentSaleOut_/DiscontSetDialog.resx | 120 -- .../SegmentSaleOutForm.Designer.cs | 1223 ----------------- .../SegmentSaleOut_/SegmentSaleOutForm.cs | 474 ------- .../SegmentSaleOut_/SegmentSaleOutForm.resx | 189 --- .../SegmentSaleOutFormConfig.cs | 17 - .../WeightRecordDialog.Designer.cs | 274 ---- .../SegmentSaleOut_/WeightRecordDialog.cs | 122 -- .../SegmentSaleOut_/WeightRecordDialog.resx | 150 -- .../DeliverLineGroupSelectDialog.Designer.cs | 78 -- .../DeliverLineGroupSelectDialog.cs | 75 - .../DeliverLineGroupSelectDialog.resx | 120 -- .../SegmentStockUp_/PrintAPI.cs | 43 - .../SegmentStockUp_/SegmentStockUpConfig.cs | 17 - .../SegmentStockUpForm.Designer.cs | 879 ------------ .../SegmentStockUp_/SegmentStockUpForm.cs | 538 -------- .../SegmentStockUp_/SegmentStockUpForm.resx | 180 --- .../SegmentStockUp_/SegmentStockUpPrint.cs | 153 --- .../SegmentStockUp_/SegmentStockUpPrint.html | 30 - .../SegmentStockUp_/SegmentStockUpPrint.txt | 13 - .../SelectCustomerDialog.Designer.cs | 122 -- .../SegmentStockUp_/SelectCustomerDialog.cs | 68 - .../SegmentStockUp_/SelectCustomerDialog.resx | 120 -- 45 files changed, 11766 deletions(-) delete mode 100644 ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.Designer.cs delete mode 100644 ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.cs delete mode 100644 ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.resx delete mode 100644 ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.Designer.cs delete mode 100644 ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.cs delete mode 100644 ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.resx delete mode 100644 ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutFormConfig.cs delete mode 100644 ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.Designer.cs delete mode 100644 ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.cs delete mode 100644 ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.resx delete mode 100644 ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.Designer.cs delete mode 100644 ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.cs delete mode 100644 ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.resx delete mode 100644 ButcherFactory.Form/SegmentInStore_/SegmentInStoreFormConfig.cs delete mode 100644 ButcherFactory.Form/SegmentProduction_/SegmentProductionForm.Designer.cs delete mode 100644 ButcherFactory.Form/SegmentProduction_/SegmentProductionForm.cs delete mode 100644 ButcherFactory.Form/SegmentProduction_/SegmentProductionForm.resx delete mode 100644 ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.Designer.cs delete mode 100644 ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.cs delete mode 100644 ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.resx delete mode 100644 ButcherFactory.Form/SegmentSaleOut_/DiscontSetDialog.Designer.cs delete mode 100644 ButcherFactory.Form/SegmentSaleOut_/DiscontSetDialog.cs delete mode 100644 ButcherFactory.Form/SegmentSaleOut_/DiscontSetDialog.resx delete mode 100644 ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutForm.Designer.cs delete mode 100644 ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutForm.cs delete mode 100644 ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutForm.resx delete mode 100644 ButcherFactory.Form/SegmentSaleOut_/SegmentSaleOutFormConfig.cs delete mode 100644 ButcherFactory.Form/SegmentSaleOut_/WeightRecordDialog.Designer.cs delete mode 100644 ButcherFactory.Form/SegmentSaleOut_/WeightRecordDialog.cs delete mode 100644 ButcherFactory.Form/SegmentSaleOut_/WeightRecordDialog.resx delete mode 100644 ButcherFactory.Form/SegmentStockUp_/DeliverLineGroupSelectDialog.Designer.cs delete mode 100644 ButcherFactory.Form/SegmentStockUp_/DeliverLineGroupSelectDialog.cs delete mode 100644 ButcherFactory.Form/SegmentStockUp_/DeliverLineGroupSelectDialog.resx delete mode 100644 ButcherFactory.Form/SegmentStockUp_/PrintAPI.cs delete mode 100644 ButcherFactory.Form/SegmentStockUp_/SegmentStockUpConfig.cs delete mode 100644 ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.Designer.cs delete mode 100644 ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.cs delete mode 100644 ButcherFactory.Form/SegmentStockUp_/SegmentStockUpForm.resx delete mode 100644 ButcherFactory.Form/SegmentStockUp_/SegmentStockUpPrint.cs delete mode 100644 ButcherFactory.Form/SegmentStockUp_/SegmentStockUpPrint.html delete mode 100644 ButcherFactory.Form/SegmentStockUp_/SegmentStockUpPrint.txt delete mode 100644 ButcherFactory.Form/SegmentStockUp_/SelectCustomerDialog.Designer.cs delete mode 100644 ButcherFactory.Form/SegmentStockUp_/SelectCustomerDialog.cs delete mode 100644 ButcherFactory.Form/SegmentStockUp_/SelectCustomerDialog.resx diff --git a/ButcherFactory.Form/ButcherFactory.Form.csproj b/ButcherFactory.Form/ButcherFactory.Form.csproj index 9ce0a64..6ca5200 100644 --- a/ButcherFactory.Form/ButcherFactory.Form.csproj +++ b/ButcherFactory.Form/ButcherFactory.Form.csproj @@ -126,14 +126,7 @@ WeightControl.cs - - Form - - - CarcassSaleOutForm.cs - - Form @@ -198,30 +191,11 @@ WeightRecordDialog.cs - - Form - - - CarcassTakeOutForm.cs - True True Resources.resx - - Form - - - InStoreSummaryView.cs - - - Form - - - SegmentInStoreForm.cs - - Form @@ -273,12 +247,6 @@ WeightView.cs - - Form - - - SegmentProductionForm.cs - @@ -287,52 +255,6 @@ TrunOutDialog.cs - - Form - - - AddWeightRecord.cs - - - Form - - - DiscontSetDialog.cs - - - Form - - - SegmentSaleOutForm.cs - - - - Form - - - WeightRecordDialog.cs - - - Form - - - DeliverLineGroupSelectDialog.cs - - - - - Form - - - SegmentStockUpForm.cs - - - - Form - - - SelectCustomerDialog.cs - @@ -381,12 +303,6 @@ WeightControl.cs - - CarcassSaleOutForm.cs - - - CarcassTakeOutForm.cs - WeightSettingFrom.cs @@ -421,12 +337,6 @@ ResXFileCodeGenerator Resources.Designer.cs - - InStoreSummaryView.cs - - - SegmentInStoreForm.cs - SegmentPickUpForm.cs @@ -451,33 +361,9 @@ WeightView.cs - - SegmentProductionForm.cs - TrunOutDialog.cs - - AddWeightRecord.cs - - - DiscontSetDialog.cs - - - SegmentSaleOutForm.cs - - - WeightRecordDialog.cs - - - DeliverLineGroupSelectDialog.cs - - - SegmentStockUpForm.cs - - - SelectCustomerDialog.cs - DiscontWeightSetDialog.cs @@ -520,8 +406,6 @@ - - diff --git a/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.Designer.cs b/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.Designer.cs deleted file mode 100644 index a5d8c4c..0000000 --- a/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.Designer.cs +++ /dev/null @@ -1,1193 +0,0 @@ -namespace ButcherFactory.CarcassSaleOut_ -{ - partial class CarcassSaleOutForm - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CarcassSaleOutForm)); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = 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 dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = 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 dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); - this.uWeightControl1 = new WinFormControl.UWeightControl(); - this.panel1 = new System.Windows.Forms.Panel(); - this.carNumberLabel = new WinFormControl.ULabel(); - this.customerLabel = new WinFormControl.ULabel(); - this.addressLabel = new WinFormControl.ULabel(); - this.billIDLabel = new WinFormControl.ULabel(); - this.uLabel9 = new WinFormControl.ULabel(); - this.uLabel10 = new WinFormControl.ULabel(); - this.uLabel7 = new WinFormControl.ULabel(); - this.uLabel8 = new WinFormControl.ULabel(); - this.productBatchSelect = new System.Windows.Forms.ComboBox(); - this.uLabel2 = new WinFormControl.ULabel(); - this.closeBtn = new WinFormControl.UButton(); - this.uTimerLabel1 = new WinFormControl.UTimerLabel(); - this.uScanPanel1 = new WinFormControl.UScanPanel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.clearBtn = new WinFormControl.UButton(); - this.billStateBox = new System.Windows.Forms.TextBox(); - this.storeBox = new System.Windows.Forms.TextBox(); - this.customerBox = new System.Windows.Forms.TextBox(); - this.deliverGoodsLineBox = new System.Windows.Forms.TextBox(); - this.refreshBtn = new WinFormControl.UButton(); - this.sendDateBox = new System.Windows.Forms.TextBox(); - this.uLabel5 = new WinFormControl.ULabel(); - this.uLabel6 = new WinFormControl.ULabel(); - this.uLabel4 = new WinFormControl.ULabel(); - this.uLabel3 = new WinFormControl.ULabel(); - this.uLabel1 = new WinFormControl.ULabel(); - this.panel3 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.goodsFinishBtn = new WinFormControl.UButton(); - this.unFinishBtn = new WinFormControl.UButton(); - this.alreadyViewBtn = new WinFormControl.UButton(); - this.weightRecordBtn = new WinFormControl.UButton(); - this.mainGridView = new WinFormControl.UDataGridView(); - this.M_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.M_Customer_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.M_SendTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.M_DeliverGoodsLine_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.panel4 = new System.Windows.Forms.Panel(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.orderGridView = new WinFormControl.UDataGridView(); - this.D_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_SaleOutStore_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_Customer_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_Goods_Code = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_SecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_SSecondNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_SNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.D_DiffNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.sendGridView = new WinFormControl.UDataGridView(); - this.F_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Selected = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Image = new System.Windows.Forms.DataGridViewImageColumn(); - this.F_Idx = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_GoodsCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_InStoreWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_DiffWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.F_Time = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.commitBtn = new WinFormControl.UButton(); - this.deleteBtn = new WinFormControl.UButton(); - this.checkBox1 = new System.Windows.Forms.CheckBox(); - this.halfBtn = new WinFormControl.UButton(); - this.fullBtn = new WinFormControl.UButton(); - this.panel1.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel3.SuspendLayout(); - this.panel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.mainGridView)).BeginInit(); - this.panel4.SuspendLayout(); - this.groupBox1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.orderGridView)).BeginInit(); - this.groupBox2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.sendGridView)).BeginInit(); - this.SuspendLayout(); - // - // uWeightControl1 - // - this.uWeightControl1.BackColor = System.Drawing.Color.Transparent; - this.uWeightControl1.Location = new System.Drawing.Point(1, 1); - this.uWeightControl1.Name = "uWeightControl1"; - this.uWeightControl1.Size = new System.Drawing.Size(349, 78); - this.uWeightControl1.TabIndex = 1; - this.uWeightControl1.WeightFalg = null; - // - // panel1 - // - this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel1.Controls.Add(this.carNumberLabel); - this.panel1.Controls.Add(this.customerLabel); - this.panel1.Controls.Add(this.addressLabel); - this.panel1.Controls.Add(this.billIDLabel); - this.panel1.Controls.Add(this.uLabel9); - this.panel1.Controls.Add(this.uLabel10); - this.panel1.Controls.Add(this.uLabel7); - this.panel1.Controls.Add(this.uLabel8); - this.panel1.Controls.Add(this.productBatchSelect); - this.panel1.Controls.Add(this.uLabel2); - this.panel1.Controls.Add(this.closeBtn); - this.panel1.Controls.Add(this.uTimerLabel1); - this.panel1.Controls.Add(this.uScanPanel1); - this.panel1.Controls.Add(this.uWeightControl1); - this.panel1.Location = new System.Drawing.Point(0, 0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(1305, 84); - this.panel1.TabIndex = 2; - // - // carNumberLabel - // - this.carNumberLabel.AutoSize = true; - this.carNumberLabel.BackColor = System.Drawing.Color.Transparent; - this.carNumberLabel.Location = new System.Drawing.Point(688, 52); - this.carNumberLabel.Name = "carNumberLabel"; - this.carNumberLabel.Size = new System.Drawing.Size(41, 12); - this.carNumberLabel.TabIndex = 28; - this.carNumberLabel.Text = "车牌号"; - // - // customerLabel - // - this.customerLabel.AutoSize = true; - this.customerLabel.BackColor = System.Drawing.Color.Transparent; - this.customerLabel.Font = new System.Drawing.Font("宋体", 13F); - this.customerLabel.ForeColor = System.Drawing.Color.Red; - this.customerLabel.Location = new System.Drawing.Point(688, 14); - this.customerLabel.Name = "customerLabel"; - this.customerLabel.Size = new System.Drawing.Size(80, 18); - this.customerLabel.TabIndex = 27; - this.customerLabel.Text = "购货客户"; - // - // addressLabel - // - this.addressLabel.AutoSize = true; - this.addressLabel.BackColor = System.Drawing.Color.Transparent; - this.addressLabel.Location = new System.Drawing.Point(428, 52); - this.addressLabel.Name = "addressLabel"; - this.addressLabel.Size = new System.Drawing.Size(53, 12); - this.addressLabel.TabIndex = 26; - this.addressLabel.Text = "送货地址"; - // - // billIDLabel - // - this.billIDLabel.AutoSize = true; - this.billIDLabel.BackColor = System.Drawing.Color.Transparent; - this.billIDLabel.Location = new System.Drawing.Point(428, 17); - this.billIDLabel.Name = "billIDLabel"; - this.billIDLabel.Size = new System.Drawing.Size(53, 12); - this.billIDLabel.TabIndex = 25; - this.billIDLabel.Text = "出库单号"; - // - // uLabel9 - // - this.uLabel9.AutoSize = true; - this.uLabel9.BackColor = System.Drawing.Color.Transparent; - this.uLabel9.Location = new System.Drawing.Point(637, 53); - this.uLabel9.Name = "uLabel9"; - this.uLabel9.Size = new System.Drawing.Size(41, 12); - this.uLabel9.TabIndex = 24; - this.uLabel9.Text = "车牌号"; - // - // uLabel10 - // - this.uLabel10.AutoSize = true; - this.uLabel10.BackColor = System.Drawing.Color.Transparent; - this.uLabel10.Location = new System.Drawing.Point(625, 18); - this.uLabel10.Name = "uLabel10"; - this.uLabel10.Size = new System.Drawing.Size(53, 12); - this.uLabel10.TabIndex = 23; - this.uLabel10.Text = "购货客户"; - // - // uLabel7 - // - this.uLabel7.AutoSize = true; - this.uLabel7.BackColor = System.Drawing.Color.Transparent; - this.uLabel7.Location = new System.Drawing.Point(368, 52); - this.uLabel7.Name = "uLabel7"; - this.uLabel7.Size = new System.Drawing.Size(53, 12); - this.uLabel7.TabIndex = 22; - this.uLabel7.Text = "送货地址"; - // - // uLabel8 - // - this.uLabel8.AutoSize = true; - this.uLabel8.BackColor = System.Drawing.Color.Transparent; - this.uLabel8.Location = new System.Drawing.Point(368, 17); - this.uLabel8.Name = "uLabel8"; - this.uLabel8.Size = new System.Drawing.Size(53, 12); - this.uLabel8.TabIndex = 21; - this.uLabel8.Text = "出库单号"; - // - // productBatchSelect - // - this.productBatchSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.productBatchSelect.Font = new System.Drawing.Font("宋体", 15F); - this.productBatchSelect.FormattingEnabled = true; - this.productBatchSelect.Location = new System.Drawing.Point(979, 43); - this.productBatchSelect.Name = "productBatchSelect"; - this.productBatchSelect.Size = new System.Drawing.Size(170, 28); - this.productBatchSelect.TabIndex = 20; - // - // uLabel2 - // - this.uLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uLabel2.AutoSize = true; - this.uLabel2.BackColor = System.Drawing.Color.Transparent; - this.uLabel2.Font = new System.Drawing.Font("宋体", 15F); - this.uLabel2.Location = new System.Drawing.Point(878, 46); - this.uLabel2.Name = "uLabel2"; - this.uLabel2.Size = new System.Drawing.Size(109, 20); - this.uLabel2.TabIndex = 19; - this.uLabel2.Text = "生产批次:"; - // - // closeBtn - // - this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.closeBtn.AsClicked = false; - this.closeBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("closeBtn.BackgroundImage"))); - this.closeBtn.EnableGroup = false; - this.closeBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.closeBtn.FlatAppearance.BorderSize = 0; - this.closeBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.closeBtn.Font = new System.Drawing.Font("宋体", 15F); - this.closeBtn.ForeColor = System.Drawing.Color.Black; - this.closeBtn.Location = new System.Drawing.Point(1189, 3); - this.closeBtn.Name = "closeBtn"; - this.closeBtn.PlaySound = false; - this.closeBtn.SelfControlEnable = false; - this.closeBtn.Size = new System.Drawing.Size(111, 34); - this.closeBtn.SoundType = WinFormControl.SoundType.Click; - this.closeBtn.TabIndex = 12; - this.closeBtn.Text = "关 闭"; - this.closeBtn.UseVisualStyleBackColor = true; - this.closeBtn.WithStataHode = false; - this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); - // - // uTimerLabel1 - // - this.uTimerLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uTimerLabel1.AutoSize = true; - this.uTimerLabel1.BackColor = System.Drawing.Color.Transparent; - this.uTimerLabel1.Font = new System.Drawing.Font("黑体", 12F); - this.uTimerLabel1.Format = "M月d日 H:mm:ss"; - this.uTimerLabel1.Location = new System.Drawing.Point(1167, 49); - this.uTimerLabel1.Name = "uTimerLabel1"; - this.uTimerLabel1.Size = new System.Drawing.Size(128, 16); - this.uTimerLabel1.TabIndex = 11; - this.uTimerLabel1.Text = "7月10日 8:50:27"; - // - // uScanPanel1 - // - this.uScanPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uScanPanel1.BackColor = System.Drawing.Color.Transparent; - this.uScanPanel1.Location = new System.Drawing.Point(878, 4); - this.uScanPanel1.Name = "uScanPanel1"; - this.uScanPanel1.Size = new System.Drawing.Size(303, 32); - this.uScanPanel1.TabIndex = 2; - // - // panel2 - // - this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel2.Controls.Add(this.clearBtn); - this.panel2.Controls.Add(this.billStateBox); - this.panel2.Controls.Add(this.storeBox); - this.panel2.Controls.Add(this.customerBox); - this.panel2.Controls.Add(this.deliverGoodsLineBox); - this.panel2.Controls.Add(this.refreshBtn); - this.panel2.Controls.Add(this.sendDateBox); - this.panel2.Controls.Add(this.uLabel5); - this.panel2.Controls.Add(this.uLabel6); - this.panel2.Controls.Add(this.uLabel4); - this.panel2.Controls.Add(this.uLabel3); - this.panel2.Controls.Add(this.uLabel1); - this.panel2.Location = new System.Drawing.Point(0, 83); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(499, 135); - this.panel2.TabIndex = 3; - // - // clearBtn - // - this.clearBtn.AsClicked = false; - this.clearBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("clearBtn.BackgroundImage"))); - this.clearBtn.EnableGroup = false; - this.clearBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.clearBtn.FlatAppearance.BorderSize = 0; - this.clearBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.clearBtn.ForeColor = System.Drawing.Color.Black; - this.clearBtn.Location = new System.Drawing.Point(357, 93); - this.clearBtn.Name = "clearBtn"; - this.clearBtn.PlaySound = false; - this.clearBtn.SelfControlEnable = false; - this.clearBtn.Size = new System.Drawing.Size(90, 30); - this.clearBtn.SoundType = WinFormControl.SoundType.Click; - this.clearBtn.TabIndex = 15; - this.clearBtn.Text = "清除条件"; - this.clearBtn.UseVisualStyleBackColor = true; - this.clearBtn.WithStataHode = false; - this.clearBtn.Click += new System.EventHandler(this.clearBtn_Click); - // - // billStateBox - // - this.billStateBox.Location = new System.Drawing.Point(299, 56); - this.billStateBox.Name = "billStateBox"; - this.billStateBox.ReadOnly = true; - this.billStateBox.Size = new System.Drawing.Size(148, 21); - this.billStateBox.TabIndex = 14; - this.billStateBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.queryControl_MouseDown); - // - // storeBox - // - this.storeBox.Location = new System.Drawing.Point(71, 96); - this.storeBox.Name = "storeBox"; - this.storeBox.ReadOnly = true; - this.storeBox.Size = new System.Drawing.Size(148, 21); - this.storeBox.TabIndex = 13; - this.storeBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.queryControl_MouseDown); - // - // customerBox - // - this.customerBox.Location = new System.Drawing.Point(71, 56); - this.customerBox.Name = "customerBox"; - this.customerBox.ReadOnly = true; - this.customerBox.Size = new System.Drawing.Size(148, 21); - this.customerBox.TabIndex = 12; - this.customerBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.queryControl_MouseDown); - // - // deliverGoodsLineBox - // - this.deliverGoodsLineBox.Location = new System.Drawing.Point(299, 19); - this.deliverGoodsLineBox.Name = "deliverGoodsLineBox"; - this.deliverGoodsLineBox.ReadOnly = true; - this.deliverGoodsLineBox.Size = new System.Drawing.Size(148, 21); - this.deliverGoodsLineBox.TabIndex = 11; - this.deliverGoodsLineBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.queryControl_MouseDown); - // - // refreshBtn - // - this.refreshBtn.AsClicked = false; - this.refreshBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("refreshBtn.BackgroundImage"))); - this.refreshBtn.EnableGroup = false; - this.refreshBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.refreshBtn.FlatAppearance.BorderSize = 0; - this.refreshBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.refreshBtn.ForeColor = System.Drawing.Color.Black; - this.refreshBtn.Location = new System.Drawing.Point(242, 93); - this.refreshBtn.Name = "refreshBtn"; - this.refreshBtn.PlaySound = false; - this.refreshBtn.SelfControlEnable = false; - this.refreshBtn.Size = new System.Drawing.Size(90, 30); - this.refreshBtn.SoundType = WinFormControl.SoundType.Click; - this.refreshBtn.TabIndex = 10; - this.refreshBtn.Text = "刷新"; - this.refreshBtn.UseVisualStyleBackColor = true; - this.refreshBtn.WithStataHode = false; - this.refreshBtn.Click += new System.EventHandler(this.refreshBtn_Click); - // - // sendDateBox - // - this.sendDateBox.Location = new System.Drawing.Point(71, 19); - this.sendDateBox.Name = "sendDateBox"; - this.sendDateBox.ReadOnly = true; - this.sendDateBox.Size = new System.Drawing.Size(148, 21); - this.sendDateBox.TabIndex = 5; - this.sendDateBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.queryControl_MouseDown); - // - // uLabel5 - // - this.uLabel5.AutoSize = true; - this.uLabel5.BackColor = System.Drawing.Color.Transparent; - this.uLabel5.Location = new System.Drawing.Point(240, 59); - this.uLabel5.Name = "uLabel5"; - this.uLabel5.Size = new System.Drawing.Size(53, 12); - this.uLabel5.TabIndex = 4; - this.uLabel5.Text = "单据状态"; - // - // uLabel6 - // - this.uLabel6.AutoSize = true; - this.uLabel6.BackColor = System.Drawing.Color.Transparent; - this.uLabel6.Location = new System.Drawing.Point(240, 22); - this.uLabel6.Name = "uLabel6"; - this.uLabel6.Size = new System.Drawing.Size(53, 12); - this.uLabel6.TabIndex = 3; - this.uLabel6.Text = "送货线路"; - // - // uLabel4 - // - this.uLabel4.AutoSize = true; - this.uLabel4.BackColor = System.Drawing.Color.Transparent; - this.uLabel4.Location = new System.Drawing.Point(12, 99); - this.uLabel4.Name = "uLabel4"; - this.uLabel4.Size = new System.Drawing.Size(29, 12); - this.uLabel4.TabIndex = 2; - this.uLabel4.Text = "仓库"; - // - // uLabel3 - // - this.uLabel3.AutoSize = true; - this.uLabel3.BackColor = System.Drawing.Color.Transparent; - this.uLabel3.Location = new System.Drawing.Point(12, 59); - this.uLabel3.Name = "uLabel3"; - this.uLabel3.Size = new System.Drawing.Size(29, 12); - this.uLabel3.TabIndex = 1; - this.uLabel3.Text = "客户"; - // - // uLabel1 - // - this.uLabel1.AutoSize = true; - this.uLabel1.BackColor = System.Drawing.Color.Transparent; - this.uLabel1.Location = new System.Drawing.Point(12, 22); - this.uLabel1.Name = "uLabel1"; - this.uLabel1.Size = new System.Drawing.Size(53, 12); - this.uLabel1.TabIndex = 0; - this.uLabel1.Text = "发货日期"; - // - // panel3 - // - this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.panel3.Controls.Add(this.panel5); - this.panel3.Controls.Add(this.unFinishBtn); - this.panel3.Controls.Add(this.alreadyViewBtn); - this.panel3.Controls.Add(this.weightRecordBtn); - this.panel3.Location = new System.Drawing.Point(2, 263); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(492, 115); - this.panel3.TabIndex = 4; - // - // panel5 - // - this.panel5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); - this.panel5.Controls.Add(this.goodsFinishBtn); - this.panel5.Location = new System.Drawing.Point(342, 15); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(137, 81); - this.panel5.TabIndex = 16; - // - // goodsFinishBtn - // - this.goodsFinishBtn.AsClicked = false; - this.goodsFinishBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("goodsFinishBtn.BackgroundImage"))); - this.goodsFinishBtn.EnableGroup = false; - this.goodsFinishBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.goodsFinishBtn.FlatAppearance.BorderSize = 0; - this.goodsFinishBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.goodsFinishBtn.Font = new System.Drawing.Font("宋体", 12F); - this.goodsFinishBtn.ForeColor = System.Drawing.Color.Black; - this.goodsFinishBtn.Location = new System.Drawing.Point(19, 10); - this.goodsFinishBtn.Name = "goodsFinishBtn"; - this.goodsFinishBtn.PlaySound = false; - this.goodsFinishBtn.SelfControlEnable = false; - this.goodsFinishBtn.Size = new System.Drawing.Size(100, 60); - this.goodsFinishBtn.SoundType = WinFormControl.SoundType.Click; - this.goodsFinishBtn.TabIndex = 13; - this.goodsFinishBtn.Text = "配货完成"; - this.goodsFinishBtn.UseVisualStyleBackColor = true; - this.goodsFinishBtn.WithStataHode = false; - this.goodsFinishBtn.Click += new System.EventHandler(this.goodsFinishBtn_Click); - // - // unFinishBtn - // - this.unFinishBtn.AsClicked = false; - this.unFinishBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("unFinishBtn.BackgroundImage"))); - this.unFinishBtn.EnableGroup = false; - this.unFinishBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.unFinishBtn.FlatAppearance.BorderSize = 0; - this.unFinishBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.unFinishBtn.ForeColor = System.Drawing.Color.Black; - this.unFinishBtn.Location = new System.Drawing.Point(31, 68); - this.unFinishBtn.Name = "unFinishBtn"; - this.unFinishBtn.PlaySound = false; - this.unFinishBtn.SelfControlEnable = false; - this.unFinishBtn.Size = new System.Drawing.Size(100, 30); - this.unFinishBtn.SoundType = WinFormControl.SoundType.Click; - this.unFinishBtn.TabIndex = 15; - this.unFinishBtn.Text = "撤销完成"; - this.unFinishBtn.UseVisualStyleBackColor = true; - this.unFinishBtn.WithStataHode = false; - this.unFinishBtn.Click += new System.EventHandler(this.unFinishBtn_Click); - // - // alreadyViewBtn - // - this.alreadyViewBtn.AsClicked = false; - this.alreadyViewBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("alreadyViewBtn.BackgroundImage"))); - this.alreadyViewBtn.EnableGroup = false; - this.alreadyViewBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.alreadyViewBtn.FlatAppearance.BorderSize = 0; - this.alreadyViewBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.alreadyViewBtn.ForeColor = System.Drawing.Color.Black; - this.alreadyViewBtn.Location = new System.Drawing.Point(31, 17); - this.alreadyViewBtn.Name = "alreadyViewBtn"; - this.alreadyViewBtn.PlaySound = false; - this.alreadyViewBtn.SelfControlEnable = false; - this.alreadyViewBtn.Size = new System.Drawing.Size(100, 30); - this.alreadyViewBtn.SoundType = WinFormControl.SoundType.Click; - this.alreadyViewBtn.TabIndex = 14; - this.alreadyViewBtn.Text = "已配货"; - this.alreadyViewBtn.UseVisualStyleBackColor = true; - this.alreadyViewBtn.WithStataHode = false; - this.alreadyViewBtn.Click += new System.EventHandler(this.alreadyViewBtn_Click); - // - // weightRecordBtn - // - this.weightRecordBtn.AsClicked = false; - this.weightRecordBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("weightRecordBtn.BackgroundImage"))); - this.weightRecordBtn.EnableGroup = false; - this.weightRecordBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.weightRecordBtn.FlatAppearance.BorderSize = 0; - this.weightRecordBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.weightRecordBtn.Font = new System.Drawing.Font("宋体", 12F); - this.weightRecordBtn.ForeColor = System.Drawing.Color.Black; - this.weightRecordBtn.Location = new System.Drawing.Point(191, 25); - this.weightRecordBtn.Name = "weightRecordBtn"; - this.weightRecordBtn.PlaySound = false; - this.weightRecordBtn.SelfControlEnable = false; - this.weightRecordBtn.Size = new System.Drawing.Size(100, 60); - this.weightRecordBtn.SoundType = WinFormControl.SoundType.Click; - this.weightRecordBtn.TabIndex = 12; - this.weightRecordBtn.Text = "称重记录"; - this.weightRecordBtn.UseVisualStyleBackColor = true; - this.weightRecordBtn.WithStataHode = false; - this.weightRecordBtn.Click += new System.EventHandler(this.weightRecordBtn_Click); - // - // mainGridView - // - this.mainGridView.AllowUserToAddRows = false; - this.mainGridView.AllowUserToDeleteRows = false; - this.mainGridView.AllowUserToResizeColumns = false; - this.mainGridView.AllowUserToResizeRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.mainGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.mainGridView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - this.mainGridView.BackgroundColor = System.Drawing.Color.White; - this.mainGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F); - dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.mainGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.mainGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.mainGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.M_ID, - this.M_Customer_Name, - this.M_SendTime, - this.M_DeliverGoodsLine_Name}); - this.mainGridView.Location = new System.Drawing.Point(1, 3); - this.mainGridView.MultiSelect = false; - this.mainGridView.Name = "mainGridView"; - this.mainGridView.ReadOnly = true; - dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 9F); - dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.mainGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; - this.mainGridView.RowHeadersVisible = false; - dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 9F); - dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.mainGridView.RowsDefaultCellStyle = dataGridViewCellStyle5; - this.mainGridView.RowTemplate.Height = 40; - this.mainGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.mainGridView.Size = new System.Drawing.Size(493, 254); - this.mainGridView.TabIndex = 5; - this.mainGridView.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.mainGridView_CellClick); - // - // M_ID - // - this.M_ID.DataPropertyName = "ID"; - this.M_ID.HeaderText = "单号"; - this.M_ID.Name = "M_ID"; - this.M_ID.ReadOnly = true; - this.M_ID.Width = 90; - // - // M_Customer_Name - // - this.M_Customer_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.M_Customer_Name.DataPropertyName = "Customer_Name"; - this.M_Customer_Name.HeaderText = "客户名称"; - this.M_Customer_Name.Name = "M_Customer_Name"; - this.M_Customer_Name.ReadOnly = true; - // - // M_SendTime - // - this.M_SendTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.M_SendTime.DataPropertyName = "SendTime"; - dataGridViewCellStyle3.Format = "yyyy/MM/dd"; - this.M_SendTime.DefaultCellStyle = dataGridViewCellStyle3; - this.M_SendTime.HeaderText = "发货时间"; - this.M_SendTime.Name = "M_SendTime"; - this.M_SendTime.ReadOnly = true; - // - // M_DeliverGoodsLine_Name - // - this.M_DeliverGoodsLine_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.M_DeliverGoodsLine_Name.DataPropertyName = "DeliverGoodsLine_Name"; - this.M_DeliverGoodsLine_Name.HeaderText = "送货线路"; - this.M_DeliverGoodsLine_Name.Name = "M_DeliverGoodsLine_Name"; - this.M_DeliverGoodsLine_Name.ReadOnly = true; - // - // panel4 - // - this.panel4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel4.Controls.Add(this.mainGridView); - this.panel4.Controls.Add(this.panel3); - this.panel4.Location = new System.Drawing.Point(0, 217); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(499, 394); - this.panel4.TabIndex = 6; - // - // groupBox1 - // - this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.groupBox1.Controls.Add(this.orderGridView); - this.groupBox1.Location = new System.Drawing.Point(505, 90); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(795, 220); - this.groupBox1.TabIndex = 7; - this.groupBox1.TabStop = false; - this.groupBox1.Text = "订货明细"; - // - // orderGridView - // - this.orderGridView.AllowUserToAddRows = false; - this.orderGridView.AllowUserToDeleteRows = false; - this.orderGridView.AllowUserToResizeColumns = false; - this.orderGridView.AllowUserToResizeRows = false; - dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.orderGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; - this.orderGridView.BackgroundColor = System.Drawing.Color.White; - this.orderGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 9F); - dataGridViewCellStyle7.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.orderGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; - this.orderGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.orderGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.D_ID, - this.D_SaleOutStore_ID, - this.D_Customer_Name, - this.D_Goods_Code, - this.D_Goods_Name, - this.D_SecondNumber, - this.D_Number, - this.D_SSecondNumber, - this.D_SNumber, - this.D_DiffNumber}); - this.orderGridView.Dock = System.Windows.Forms.DockStyle.Fill; - this.orderGridView.Location = new System.Drawing.Point(3, 17); - this.orderGridView.MultiSelect = false; - this.orderGridView.Name = "orderGridView"; - this.orderGridView.ReadOnly = true; - this.orderGridView.RowHeadersVisible = false; - dataGridViewCellStyle13.Font = new System.Drawing.Font("宋体", 9F); - dataGridViewCellStyle13.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.orderGridView.RowsDefaultCellStyle = dataGridViewCellStyle13; - this.orderGridView.RowTemplate.Height = 40; - this.orderGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.orderGridView.Size = new System.Drawing.Size(789, 200); - this.orderGridView.TabIndex = 0; - this.orderGridView.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.orderGridView_RowPrePaint); - // - // D_ID - // - this.D_ID.DataPropertyName = "ID"; - this.D_ID.HeaderText = "ID"; - this.D_ID.Name = "D_ID"; - this.D_ID.ReadOnly = true; - this.D_ID.Visible = false; - // - // D_SaleOutStore_ID - // - this.D_SaleOutStore_ID.DataPropertyName = "SaleOutStore_ID"; - this.D_SaleOutStore_ID.HeaderText = "单号"; - this.D_SaleOutStore_ID.Name = "D_SaleOutStore_ID"; - this.D_SaleOutStore_ID.ReadOnly = true; - this.D_SaleOutStore_ID.Width = 90; - // - // D_Customer_Name - // - this.D_Customer_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.D_Customer_Name.DataPropertyName = "Customer_Name"; - this.D_Customer_Name.HeaderText = "客户名称"; - this.D_Customer_Name.MinimumWidth = 100; - this.D_Customer_Name.Name = "D_Customer_Name"; - this.D_Customer_Name.ReadOnly = true; - // - // D_Goods_Code - // - this.D_Goods_Code.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.D_Goods_Code.DataPropertyName = "Goods_Code"; - this.D_Goods_Code.HeaderText = "产品编码"; - this.D_Goods_Code.MinimumWidth = 100; - this.D_Goods_Code.Name = "D_Goods_Code"; - this.D_Goods_Code.ReadOnly = true; - // - // D_Goods_Name - // - this.D_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; - 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_SecondNumber - // - this.D_SecondNumber.DataPropertyName = "SecondNumber"; - dataGridViewCellStyle8.Format = "#0.######"; - this.D_SecondNumber.DefaultCellStyle = dataGridViewCellStyle8; - this.D_SecondNumber.HeaderText = "辅数量"; - this.D_SecondNumber.Name = "D_SecondNumber"; - this.D_SecondNumber.ReadOnly = true; - // - // D_Number - // - this.D_Number.DataPropertyName = "Number"; - dataGridViewCellStyle9.Format = "#0.######"; - this.D_Number.DefaultCellStyle = dataGridViewCellStyle9; - this.D_Number.HeaderText = "报价数量"; - this.D_Number.Name = "D_Number"; - this.D_Number.ReadOnly = true; - // - // D_SSecondNumber - // - this.D_SSecondNumber.DataPropertyName = "SSecondNumber"; - dataGridViewCellStyle10.Format = "#0.######"; - this.D_SSecondNumber.DefaultCellStyle = dataGridViewCellStyle10; - this.D_SSecondNumber.HeaderText = "配货辅数量"; - this.D_SSecondNumber.Name = "D_SSecondNumber"; - this.D_SSecondNumber.ReadOnly = true; - // - // D_SNumber - // - this.D_SNumber.DataPropertyName = "SNumber"; - dataGridViewCellStyle11.Format = "#0.######"; - this.D_SNumber.DefaultCellStyle = dataGridViewCellStyle11; - this.D_SNumber.HeaderText = "配货数量"; - this.D_SNumber.Name = "D_SNumber"; - this.D_SNumber.ReadOnly = true; - // - // D_DiffNumber - // - this.D_DiffNumber.DataPropertyName = "DiffNumber"; - dataGridViewCellStyle12.Format = "#0.######"; - this.D_DiffNumber.DefaultCellStyle = dataGridViewCellStyle12; - this.D_DiffNumber.HeaderText = "差异数量"; - this.D_DiffNumber.Name = "D_DiffNumber"; - this.D_DiffNumber.ReadOnly = true; - // - // groupBox2 - // - this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); - this.groupBox2.Controls.Add(this.sendGridView); - this.groupBox2.Location = new System.Drawing.Point(505, 323); - this.groupBox2.Name = "groupBox2"; - this.groupBox2.Size = new System.Drawing.Size(795, 220); - this.groupBox2.TabIndex = 8; - this.groupBox2.TabStop = false; - this.groupBox2.Text = "发货明细"; - // - // sendGridView - // - this.sendGridView.AllowUserToAddRows = false; - this.sendGridView.AllowUserToDeleteRows = false; - this.sendGridView.AllowUserToResizeColumns = false; - this.sendGridView.AllowUserToResizeRows = false; - dataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.sendGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle14; - this.sendGridView.BackgroundColor = System.Drawing.Color.White; - this.sendGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle15.Font = new System.Drawing.Font("宋体", 9F); - dataGridViewCellStyle15.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.sendGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle15; - this.sendGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.sendGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.F_ID, - this.F_Selected, - this.F_Image, - this.F_Idx, - this.F_BarCode, - this.F_GoodsCode, - this.F_Goods_Name, - this.F_Number, - this.F_InStoreWeight, - this.F_Weight, - this.F_DiffWeight, - this.F_Time}); - this.sendGridView.Dock = System.Windows.Forms.DockStyle.Fill; - this.sendGridView.Location = new System.Drawing.Point(3, 17); - this.sendGridView.MultiSelect = false; - this.sendGridView.Name = "sendGridView"; - this.sendGridView.ReadOnly = true; - this.sendGridView.RowHeadersVisible = false; - dataGridViewCellStyle21.Font = new System.Drawing.Font("宋体", 10F); - dataGridViewCellStyle21.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.sendGridView.RowsDefaultCellStyle = dataGridViewCellStyle21; - this.sendGridView.RowTemplate.Height = 40; - this.sendGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.sendGridView.Size = new System.Drawing.Size(789, 200); - this.sendGridView.TabIndex = 1; - this.sendGridView.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.sendGridView_CellClick); - // - // F_ID - // - this.F_ID.DataPropertyName = "ID"; - this.F_ID.HeaderText = "ID"; - this.F_ID.Name = "F_ID"; - this.F_ID.ReadOnly = true; - this.F_ID.Visible = false; - // - // F_Selected - // - this.F_Selected.DataPropertyName = "Selected"; - this.F_Selected.HeaderText = "Selected"; - this.F_Selected.Name = "F_Selected"; - this.F_Selected.ReadOnly = true; - this.F_Selected.Visible = false; - // - // F_Image - // - this.F_Image.HeaderText = "选中"; - this.F_Image.Name = "F_Image"; - this.F_Image.ReadOnly = true; - this.F_Image.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.F_Image.Width = 50; - // - // F_Idx - // - this.F_Idx.DataPropertyName = "Idx"; - this.F_Idx.HeaderText = "序号"; - this.F_Idx.Name = "F_Idx"; - this.F_Idx.ReadOnly = true; - this.F_Idx.Width = 60; - // - // F_BarCode - // - this.F_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.F_BarCode.DataPropertyName = "ShortCode"; - this.F_BarCode.HeaderText = "存货条码"; - this.F_BarCode.MinimumWidth = 100; - this.F_BarCode.Name = "F_BarCode"; - this.F_BarCode.ReadOnly = true; - // - // F_GoodsCode - // - this.F_GoodsCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; - this.F_GoodsCode.DataPropertyName = "Goods_Code"; - this.F_GoodsCode.HeaderText = "产品编码"; - this.F_GoodsCode.MinimumWidth = 100; - this.F_GoodsCode.Name = "F_GoodsCode"; - this.F_GoodsCode.ReadOnly = true; - // - // F_Goods_Name - // - this.F_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.F_Goods_Name.DataPropertyName = "Goods_Name"; - this.F_Goods_Name.HeaderText = "产品名称"; - this.F_Goods_Name.MinimumWidth = 100; - this.F_Goods_Name.Name = "F_Goods_Name"; - this.F_Goods_Name.ReadOnly = true; - // - // F_Number - // - this.F_Number.DataPropertyName = "Number"; - dataGridViewCellStyle16.Format = "#0.######"; - this.F_Number.DefaultCellStyle = dataGridViewCellStyle16; - this.F_Number.HeaderText = "数量"; - this.F_Number.Name = "F_Number"; - this.F_Number.ReadOnly = true; - this.F_Number.Width = 60; - // - // F_InStoreWeight - // - this.F_InStoreWeight.DataPropertyName = "InStoreWeight"; - dataGridViewCellStyle17.Format = "#0.######"; - this.F_InStoreWeight.DefaultCellStyle = dataGridViewCellStyle17; - this.F_InStoreWeight.HeaderText = "入库重量"; - this.F_InStoreWeight.Name = "F_InStoreWeight"; - this.F_InStoreWeight.ReadOnly = true; - this.F_InStoreWeight.Width = 90; - // - // F_Weight - // - this.F_Weight.DataPropertyName = "Weight"; - dataGridViewCellStyle18.Format = "#0.######"; - this.F_Weight.DefaultCellStyle = dataGridViewCellStyle18; - this.F_Weight.HeaderText = "重量"; - this.F_Weight.Name = "F_Weight"; - this.F_Weight.ReadOnly = true; - this.F_Weight.Width = 80; - // - // F_DiffWeight - // - this.F_DiffWeight.DataPropertyName = "DiffWeight"; - dataGridViewCellStyle19.Format = "#0.######"; - this.F_DiffWeight.DefaultCellStyle = dataGridViewCellStyle19; - this.F_DiffWeight.HeaderText = "差异"; - this.F_DiffWeight.Name = "F_DiffWeight"; - this.F_DiffWeight.ReadOnly = true; - this.F_DiffWeight.Width = 70; - // - // F_Time - // - this.F_Time.DataPropertyName = "Time"; - dataGridViewCellStyle20.Format = "MM.dd HH:mm:ss"; - this.F_Time.DefaultCellStyle = dataGridViewCellStyle20; - this.F_Time.HeaderText = "时间"; - this.F_Time.Name = "F_Time"; - this.F_Time.ReadOnly = true; - this.F_Time.Width = 120; - // - // commitBtn - // - this.commitBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.commitBtn.AsClicked = false; - this.commitBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("commitBtn.BackgroundImage"))); - this.commitBtn.EnableGroup = false; - this.commitBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.commitBtn.FlatAppearance.BorderSize = 0; - this.commitBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.commitBtn.Font = new System.Drawing.Font("宋体", 15F); - this.commitBtn.ForeColor = System.Drawing.Color.Black; - this.commitBtn.Location = new System.Drawing.Point(1180, 549); - this.commitBtn.Name = "commitBtn"; - this.commitBtn.PlaySound = false; - this.commitBtn.SelfControlEnable = false; - this.commitBtn.Size = new System.Drawing.Size(107, 58); - this.commitBtn.SoundType = WinFormControl.SoundType.Click; - this.commitBtn.TabIndex = 15; - this.commitBtn.Text = "提交"; - this.commitBtn.UseVisualStyleBackColor = true; - this.commitBtn.WithStataHode = false; - this.commitBtn.Click += new System.EventHandler(this.commitBtn_Click); - // - // deleteBtn - // - this.deleteBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.deleteBtn.AsClicked = false; - this.deleteBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("deleteBtn.BackgroundImage"))); - this.deleteBtn.EnableGroup = false; - this.deleteBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.deleteBtn.FlatAppearance.BorderSize = 0; - this.deleteBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.deleteBtn.ForeColor = System.Drawing.Color.Black; - this.deleteBtn.Location = new System.Drawing.Point(994, 566); - this.deleteBtn.Name = "deleteBtn"; - this.deleteBtn.PlaySound = false; - this.deleteBtn.SelfControlEnable = false; - this.deleteBtn.Size = new System.Drawing.Size(100, 30); - this.deleteBtn.SoundType = WinFormControl.SoundType.Click; - this.deleteBtn.TabIndex = 16; - this.deleteBtn.Text = "删除选中"; - this.deleteBtn.UseVisualStyleBackColor = true; - this.deleteBtn.WithStataHode = false; - this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click); - // - // checkBox1 - // - this.checkBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.checkBox1.AutoSize = true; - this.checkBox1.Font = new System.Drawing.Font("宋体", 12F); - this.checkBox1.Location = new System.Drawing.Point(534, 570); - this.checkBox1.Name = "checkBox1"; - this.checkBox1.Size = new System.Drawing.Size(91, 20); - this.checkBox1.TabIndex = 17; - this.checkBox1.Text = "扫码发货"; - this.checkBox1.UseVisualStyleBackColor = true; - // - // halfBtn - // - this.halfBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.halfBtn.AsClicked = false; - this.halfBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("halfBtn.BackgroundImage"))); - this.halfBtn.EnableGroup = false; - this.halfBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.halfBtn.FlatAppearance.BorderSize = 0; - this.halfBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.halfBtn.ForeColor = System.Drawing.Color.Black; - this.halfBtn.Location = new System.Drawing.Point(681, 566); - this.halfBtn.Name = "halfBtn"; - this.halfBtn.PlaySound = false; - this.halfBtn.SelfControlEnable = false; - this.halfBtn.Size = new System.Drawing.Size(100, 30); - this.halfBtn.SoundType = WinFormControl.SoundType.Click; - this.halfBtn.TabIndex = 18; - this.halfBtn.Text = "0.5"; - this.halfBtn.UseVisualStyleBackColor = true; - this.halfBtn.WithStataHode = false; - this.halfBtn.Click += new System.EventHandler(this.halfBtn_Click); - // - // fullBtn - // - this.fullBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.fullBtn.AsClicked = false; - this.fullBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("fullBtn.BackgroundImage"))); - this.fullBtn.EnableGroup = false; - this.fullBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.fullBtn.FlatAppearance.BorderSize = 0; - this.fullBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.fullBtn.ForeColor = System.Drawing.Color.Black; - this.fullBtn.Location = new System.Drawing.Point(815, 566); - this.fullBtn.Name = "fullBtn"; - this.fullBtn.PlaySound = false; - this.fullBtn.SelfControlEnable = false; - this.fullBtn.Size = new System.Drawing.Size(100, 30); - this.fullBtn.SoundType = WinFormControl.SoundType.Click; - this.fullBtn.TabIndex = 19; - this.fullBtn.Text = "1"; - this.fullBtn.UseVisualStyleBackColor = true; - this.fullBtn.WithStataHode = false; - this.fullBtn.Click += new System.EventHandler(this.fullBtn_Click); - // - // CarcassSaleOutForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1305, 611); - this.Controls.Add(this.fullBtn); - this.Controls.Add(this.halfBtn); - this.Controls.Add(this.checkBox1); - this.Controls.Add(this.deleteBtn); - this.Controls.Add(this.commitBtn); - this.Controls.Add(this.groupBox2); - this.Controls.Add(this.groupBox1); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.ImeMode = System.Windows.Forms.ImeMode.Disable; - this.KeyPreview = true; - this.MinimumSize = new System.Drawing.Size(1321, 650); - this.Name = "CarcassSaleOutForm"; - this.Text = "白条发货"; - this.WindowState = System.Windows.Forms.FormWindowState.Maximized; - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - this.panel3.ResumeLayout(false); - this.panel5.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.mainGridView)).EndInit(); - this.panel4.ResumeLayout(false); - this.groupBox1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.orderGridView)).EndInit(); - this.groupBox2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.sendGridView)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private WinFormControl.UWeightControl uWeightControl1; - private System.Windows.Forms.Panel panel1; - private WinFormControl.UScanPanel uScanPanel1; - private WinFormControl.UButton closeBtn; - private WinFormControl.UTimerLabel uTimerLabel1; - private System.Windows.Forms.ComboBox productBatchSelect; - private WinFormControl.ULabel uLabel2; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.TextBox sendDateBox; - private WinFormControl.ULabel uLabel5; - private WinFormControl.ULabel uLabel6; - private WinFormControl.ULabel uLabel4; - private WinFormControl.UButton refreshBtn; - private System.Windows.Forms.Panel panel3; - private WinFormControl.UButton goodsFinishBtn; - private WinFormControl.UButton weightRecordBtn; - private WinFormControl.UDataGridView mainGridView; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.GroupBox groupBox1; - private System.Windows.Forms.GroupBox groupBox2; - private WinFormControl.UDataGridView orderGridView; - private WinFormControl.UDataGridView sendGridView; - private WinFormControl.ULabel uLabel7; - private WinFormControl.ULabel uLabel8; - private WinFormControl.ULabel uLabel3; - private WinFormControl.ULabel uLabel1; - private WinFormControl.ULabel uLabel9; - private WinFormControl.ULabel uLabel10; - private WinFormControl.ULabel addressLabel; - private WinFormControl.ULabel billIDLabel; - private WinFormControl.ULabel carNumberLabel; - private WinFormControl.ULabel customerLabel; - private System.Windows.Forms.TextBox deliverGoodsLineBox; - private WinFormControl.UButton commitBtn; - private System.Windows.Forms.TextBox billStateBox; - private System.Windows.Forms.TextBox storeBox; - private System.Windows.Forms.TextBox customerBox; - private WinFormControl.UButton clearBtn; - private WinFormControl.UButton alreadyViewBtn; - private WinFormControl.UButton deleteBtn; - private System.Windows.Forms.DataGridViewTextBoxColumn D_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn D_SaleOutStore_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn D_Customer_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn D_Goods_Code; - private System.Windows.Forms.DataGridViewTextBoxColumn D_Goods_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn D_SecondNumber; - private System.Windows.Forms.DataGridViewTextBoxColumn D_Number; - private System.Windows.Forms.DataGridViewTextBoxColumn D_SSecondNumber; - private System.Windows.Forms.DataGridViewTextBoxColumn D_SNumber; - private System.Windows.Forms.DataGridViewTextBoxColumn D_DiffNumber; - private System.Windows.Forms.DataGridViewTextBoxColumn M_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn M_Customer_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn M_SendTime; - private System.Windows.Forms.DataGridViewTextBoxColumn M_DeliverGoodsLine_Name; - private System.Windows.Forms.CheckBox checkBox1; - private WinFormControl.UButton halfBtn; - private WinFormControl.UButton fullBtn; - private System.Windows.Forms.DataGridViewTextBoxColumn F_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn F_Selected; - private System.Windows.Forms.DataGridViewImageColumn F_Image; - private System.Windows.Forms.DataGridViewTextBoxColumn F_Idx; - private System.Windows.Forms.DataGridViewTextBoxColumn F_BarCode; - private System.Windows.Forms.DataGridViewTextBoxColumn F_GoodsCode; - private System.Windows.Forms.DataGridViewTextBoxColumn F_Goods_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn F_Number; - private System.Windows.Forms.DataGridViewTextBoxColumn F_InStoreWeight; - private System.Windows.Forms.DataGridViewTextBoxColumn F_Weight; - private System.Windows.Forms.DataGridViewTextBoxColumn F_DiffWeight; - private System.Windows.Forms.DataGridViewTextBoxColumn F_Time; - private WinFormControl.UButton unFinishBtn; - private System.Windows.Forms.Panel panel5; - } -} \ No newline at end of file diff --git a/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.cs b/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.cs deleted file mode 100644 index a96ee70..0000000 --- a/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.cs +++ /dev/null @@ -1,457 +0,0 @@ -using ButcherFactory.BO; -using ButcherFactory.BO.LocalBL; -using ButcherFactory.BO.Utils; -using ButcherFactory.Dialogs; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using WinFormControl; - -namespace ButcherFactory.CarcassSaleOut_ -{ - public partial class CarcassSaleOutForm : Form, IWithRoleForm - { - #region IWithRoleForm - public List RoleName - { - // get { return new List { (short)设备类别.白条发货 }; } - get { return new List { 150 }; } - } - - public Form Generate() - { - return this; - } - #endregion - - BindingList saleOutStoreList; - BindingList details; - BindingList weightRecord; - Thread checkWeight; - string strErrorWeight = ""; - List errorWeight = new List(); - internal DateTime sendTime = DateTime.Today; - internal long? deliverGoodsLineID; - internal long? customerID; - internal int billState; - internal long? storeID; - long? batchID; - bool already = false; - public CarcassSaleOutForm() - { - InitializeComponent(); - this.Resize += CarcassSaleOutForm_Resize; - this.FormClosing += delegate - { - if (checkWeight != null && checkWeight.IsAlive) - checkWeight.Abort(); - }; - uWeightControl1.ReceivedValue += uWeightControl1_ReceivedValue; - - uScanPanel1.AfterScan += uScanPanel1_AfterScan; - productBatchSelect.SelectedIndexChanged += delegate - { - if (productBatchSelect.SelectedValue == null) - batchID = null; - else - batchID = (long)productBatchSelect.SelectedValue; - }; - - sendGridView.CellFormatting += sendGridView_CellFormatting; - } - - static Image CheckImg = System.Drawing.Image.FromFile("Images\\check.png"); - static Image UnCheckImg = System.Drawing.Image.FromFile("Images\\uCheck.png"); - - void sendGridView_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) - { - if (e.RowIndex < 0 || e.ColumnIndex != 2) - return; - var v = (bool)sendGridView.Rows[e.RowIndex].Cells[1].Value; - e.Value = v ? CheckImg : UnCheckImg; - } - - protected override void OnLoad(EventArgs e) - { - base.OnLoad(e); - billState = 0; - billStateBox.Text = "未审核"; - sendDateBox.Text = sendTime.ToString("yyyy-MM-dd"); - - var config = XmlUtil.DeserializeFromFile(); - if (config.Store_ID.HasValue) - { - storeBox.Text = config.Store_Name; - storeID = config.Store_ID; - } - if (!string.IsNullOrEmpty(config.Weight)) - { - strErrorWeight = config.Weight; - var arr = strErrorWeight.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(x => int.Parse(x)).OrderBy(x => x); - errorWeight.AddRange(arr); - } - this.mainGridView.BorderStyle = BorderStyle.FixedSingle; - BindWeightRecord(); - BindProductBatch(); - } - - void BindWeightRecord() - { - weightRecord = CarcassSaleOutBL.GetUnSubmitWeightRecord(); - sendGridView.DataSource = weightRecord; - sendGridView.Refresh(); - } - - private void BindProductBatch() - { - var batchs = CarcassSaleOutBL.GetBatchFromEMS(0); - productBatchSelect.DisplayMember = "Name"; - productBatchSelect.ValueMember = "ID"; - - productBatchSelect.DataSource = batchs; - var idx = batchs.FindIndex(x => x.Date == DateTime.Today); - if (idx > 0) - productBatchSelect.SelectedIndex = idx; - productBatchSelect.Refresh(); - } - - void CarcassSaleOutForm_Resize(object sender, EventArgs e) - { - if (this.Height < this.MinimumSize.Height) - return; - groupBox1.Height = (this.Height - 200) / 2; - groupBox2.Height = groupBox1.Height; - groupBox2.Location = new Point(groupBox2.Location.X, groupBox1.Height + 100); - } - - static object _lock = new object(); - void uWeightControl1_ReceivedValue(decimal weight) - { - lock (_lock) - { - this.Invoke(new Action(() => - { - var detail = CarcassSaleOutBL.Insert(weight); - if (weightRecord.Any()) - detail.Idx = weightRecord.Max(x => x.Idx) + 1; - else - detail.Idx = 1; - weightRecord.Insert(0, detail); - sendGridView.FirstDisplayedScrollingRowIndex = 0; - if (!checkBox1.Checked) - AfterScan("G8536"); - else - sendGridView.Refresh(); - checkWeight = new Thread(new ParameterizedThreadStart(CheckWeight)); - checkWeight.Start(weight); - })); - } - } - - void CheckWeight(object objWeight) - { - decimal weight = (decimal)objWeight; - var first = errorWeight.FirstOrDefault(x => x > weight); - if (first != 0) - SoundPalyUtil.PlaySound(string.Format("Sounds\\l{0}.wav", first)); - } - - void uScanPanel1_AfterScan() - { - var barCode = uScanPanel1.TextBox.Text.Trim(); - if (!barCode.StartsWith("G") && weightRecord.Any(x => x.BarCode == barCode)) - return; - AfterScan(barCode); - } - - void AfterScan(string barCode) - { - if (string.IsNullOrEmpty(barCode)) - throw new Exception("条码错误"); - var first = weightRecord.LastOrDefault(x => !x.Filled); - if (first == null) - return; - //throw new Exception("请先过磅"); - CarcassSaleOutBL.FillDetail(first, barCode, batchID); - SoundPalyUtil.PlaySound(SoundType.Click); - sendGridView.Refresh(); - } - - private void refreshBtn_Click(object sender, EventArgs e) - { - already = false; - Refersh(); - } - - private void weightRecordBtn_Click(object sender, EventArgs e) - { - if (orderGridView.CurrentRow == null) - throw new Exception("请选择配货明细"); - var detail = orderGridView.CurrentRow.DataBoundItem as SaleOutStore_Detail; - var dg = new WeightRecordDialog(details.First(x => x.ID == detail.ID), already, batchID, null); - dg.ShowDialog(); - if (dg.Changed) - BindOrderGrid(detail.SaleOutStore_ID); - if (dg.rolBack) - BindWeightRecord(); - } - - private void goodsFinishBtn_Click(object sender, EventArgs e) - { - if (mainGridView.CurrentRow == null) - throw new Exception("请选择要配货完成的发货单"); - var id = (long)mainGridView.CurrentRow.Cells[0].Value; - - var ds = CarcassSaleOutBL.GetSaleOutStoreDetailList(id); - if (ds.Any(x => x.SSecondNumber == null || x.SSecondNumber == 0)) - { - if (MessageBox.Show("有未配货的明细,确认配货完成?", "配货完成确认", MessageBoxButtons.OKCancel) != DialogResult.OK) - return; - } - CarcassSaleOutBL.SetGoodsFinish(id); - AfterChangeFinishGoods(id); - UMessageBox.Show("配货完成!"); - } - - private void unFinishBtn_Click(object sender, EventArgs e) - { - if (mainGridView.CurrentRow == null) - throw new Exception("请选择要配货完成的发货单"); - var id = (long)mainGridView.CurrentRow.Cells[0].Value; - CarcassSaleOutBL.SetGoodsUnFinish(id); - AfterChangeFinishGoods(id); - UMessageBox.Show("撤销成功!"); - } - - private void AfterChangeFinishGoods(long id) - { - saleOutStoreList.Remove(saleOutStoreList.First(x => x.ID == id)); - mainGridView.Refresh(); - if (details != null) - details.Clear(); - orderGridView.Refresh(); - - billIDLabel.Text = string.Empty; - customerLabel.Text = string.Empty; - addressLabel.Text = string.Empty; - carNumberLabel.Text = string.Empty; - } - - private void commitBtn_Click(object sender, EventArgs e) - { - if (orderGridView.CurrentRow == null) - throw new Exception("请选择配货明细"); - var subList = weightRecord.Where(x => x.Selected).ToList(); - if (subList.Count() == 0) - throw new Exception("没有发货明细"); - if (subList.Any(x => !x.Filled)) - throw new Exception("有未扫码的明细"); - var detailID = (long)orderGridView.CurrentRow.Cells[0].Value; - var detail = details.First(x => x.ID == detailID); - CarcassSaleOutBL.SubmitDetails(subList, detail, null); - foreach (var item in subList) - weightRecord.Remove(item); - var idx = weightRecord.Count; - foreach (var item in weightRecord) - { - item.Idx = idx; - idx--; - } - - sendGridView.Refresh(); - orderGridView.Refresh(); - UMessageBox.Show("提交成功!"); - } - - private void closeBtn_Click(object sender, EventArgs e) - { - Close(); - } - - private void queryControl_MouseDown(object sender, MouseEventArgs e) - { - var textBox = sender as TextBox; - switch (textBox.Name) - { - case "sendDateBox": - var cs = new CalendarSelecter(); - if (cs.ShowDialog() == true) - { - sendTime = cs.Result; - sendDateBox.Text = sendTime.ToString("yyyy-MM-dd"); - } - break; - case "deliverGoodsLineBox": - var dgl = new SelectDeliverGoodsLineDialog(); - if (dgl.ShowDialog() == DialogResult.OK) - { - textBox.Text = dgl.Result.Item1; - deliverGoodsLineID = dgl.Result.Item2; - } - break; - case "customerBox": - var cb = new SelectCustomerDialog(); - if (cb.ShowDialog() == DialogResult.OK) - { - textBox.Text = cb.Result.Item1; - customerID = cb.Result.Item2; - } - break; - case "billStateBox": - var bs = new SelectBillStateDialog(); - if (bs.ShowDialog() == DialogResult.OK) - { - textBox.Text = bs.Result.Item1; - billState = bs.Result.Item2; - } - break; - case "storeBox": - var sb = new SelectStoreDialog(); - if (sb.ShowDialog() == DialogResult.OK) - { - textBox.Text = sb.Result.Item1; - storeID = sb.Result.Item2; - XmlUtil.SerializerObjToFile(new CarcassSaleOutFormConfig { Weight = strErrorWeight, Store_ID = storeID, Store_Name = textBox.Text }); - } - break; - } - } - - private void clearBtn_Click(object sender, EventArgs e) - { - billState = 0; - billStateBox.Text = "未审核"; - - sendTime = DateTime.Today; - sendDateBox.Text = sendTime.ToString("yyyy-MM-dd"); - - deliverGoodsLineBox.Clear(); - deliverGoodsLineID = null; - - customerBox.Clear(); - customerID = null; - - storeBox.Clear(); - storeID = null; - } - - private void mainGridView_CellClick(object sender, DataGridViewCellEventArgs e) - { - var id = (long)mainGridView.CurrentRow.Cells[0].Value; - var first = saleOutStoreList.First(x => x.ID == id); - billIDLabel.Text = id.ToString(); - customerLabel.Text = first.Customer_Name; - addressLabel.Text = first.Address; - carNumberLabel.Text = first.CarNumber; - BindOrderGrid(null); - } - - void BindOrderGrid(long? detailID) - { - var id = long.Parse(billIDLabel.Text); - details = CarcassSaleOutBL.GetSaleOutStoreDetailList(id); - foreach (var item in details) - { - item.SaleOutStore_ID = id; - item.Customer_Name = customerLabel.Text; - } - orderGridView.DataSource = details; - if (detailID.HasValue) - { - foreach (DataGridViewRow row in orderGridView.Rows) - { - if ((long)row.Cells[0].Value == detailID) - { - row.Selected = true; - break; - } - } - } - else - { - if (details.Any()) - orderGridView.FirstDisplayedScrollingRowIndex = 0; - } - orderGridView.Refresh(); - } - - private void alreadyViewBtn_Click(object sender, EventArgs e) - { - already = true; - Refersh(); - } - - void Refersh() - { - commitBtn.Enabled = !already; - goodsFinishBtn.Enabled = !already; - unFinishBtn.Enabled = already; - if (details != null) - { - details.Clear(); - orderGridView.Refresh(); - } - - saleOutStoreList = CarcassSaleOutBL.GetSaleOutStoreList(sendTime, deliverGoodsLineID, customerID, billState, storeID, already); - mainGridView.DataSource = saleOutStoreList; - mainGridView.Refresh(); - } - - private void deleteBtn_Click(object sender, EventArgs e) - { - if (sendGridView.CurrentRow == null) - return; - var id = (long)sendGridView.CurrentRow.Cells[0].Value; - CarcassSaleOutBL.Delete(id); - var tag = weightRecord.First(x => x.ID == id); - weightRecord.Remove(tag); - foreach (var item in weightRecord.Where(x => x.Idx > tag.Idx)) - item.Idx -= 1; - sendGridView.Refresh(); - } - - private void orderGridView_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) - { - DataGridViewRow dgrSingle = orderGridView.Rows[e.RowIndex]; - var v = (decimal?)dgrSingle.Cells["D_SNumber"].Value; - if (v.HasValue && v > 0) - { - dgrSingle.DefaultCellStyle.BackColor = Color.YellowGreen; - } - } - - private void halfBtn_Click(object sender, EventArgs e) - { - SetWeightNumber(0.5m); - } - - private void fullBtn_Click(object sender, EventArgs e) - { - SetWeightNumber(1); - } - - private void SetWeightNumber(decimal number) - { - if (sendGridView.CurrentRow == null) - return; - var id = (long)sendGridView.CurrentRow.Cells[0].Value; - CarcassSaleOutBL.UpdateWeightNumber(id, number); - var first = weightRecord.First(x => x.ID == id); - first.Selected = true; - first.Number = number; - sendGridView.Refresh(); - } - - private void sendGridView_CellClick(object sender, DataGridViewCellEventArgs e) - { - - } - } -} diff --git a/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.resx b/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.resx deleted file mode 100644 index 12c520e..0000000 --- a/ButcherFactory.Form/CarcassSaleOut_/CarcassSaleOutForm.resx +++ /dev/null @@ -1,287 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - \ No newline at end of file diff --git a/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.Designer.cs b/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.Designer.cs deleted file mode 100644 index 98e4dc6..0000000 --- a/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.Designer.cs +++ /dev/null @@ -1,698 +0,0 @@ -namespace ButcherFactory.CarcassTakeOut_ -{ - partial class CarcassTakeOutForm - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = 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 dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CarcassTakeOutForm)); - this.workUnitSelect = new System.Windows.Forms.ComboBox(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.productBatchSelect = new System.Windows.Forms.ComboBox(); - this.uLabel2 = new WinFormControl.ULabel(); - this.closeBtn = new WinFormControl.UButton(); - this.uTimerLabel1 = new WinFormControl.UTimerLabel(); - this.uScanPanel1 = new WinFormControl.UScanPanel(); - this.netStateWatch1 = new WinFormControl.NetStateWatch(); - this.uWeightControl1 = new WinFormControl.UWeightControl(); - this.uLabel1 = new WinFormControl.ULabel(); - this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.historyDataGrid = new WinFormControl.UDataGridView(); - this.H_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_BeforeWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.uLabel4 = new WinFormControl.ULabel(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.weightGrid = new WinFormControl.UDataGridView(); - this.W_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.W_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.needSubmitGrid = new WinFormControl.UDataGridView(); - this.U_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.U_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.U_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.U_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.U_BeforeWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.U_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.U_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.readBtn = new WinFormControl.UButton(); - this.submitBtn = new WinFormControl.UButton(); - this.uLabel3 = new WinFormControl.ULabel(); - this.uLabel5 = new WinFormControl.ULabel(); - this.storeSelect = new System.Windows.Forms.ComboBox(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.groupBox2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.historyDataGrid)).BeginInit(); - this.groupBox1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.weightGrid)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.needSubmitGrid)).BeginInit(); - this.SuspendLayout(); - // - // workUnitSelect - // - this.workUnitSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.workUnitSelect.Font = new System.Drawing.Font("宋体", 15F); - this.workUnitSelect.FormattingEnabled = true; - this.workUnitSelect.Location = new System.Drawing.Point(984, 11); - this.workUnitSelect.Name = "workUnitSelect"; - this.workUnitSelect.Size = new System.Drawing.Size(170, 28); - this.workUnitSelect.TabIndex = 7; - // - // splitContainer1 - // - this.splitContainer1.BackColor = System.Drawing.Color.Transparent; - this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; - this.splitContainer1.IsSplitterFixed = true; - this.splitContainer1.Location = new System.Drawing.Point(0, 0); - this.splitContainer1.Name = "splitContainer1"; - this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer1.Panel1 - // - this.splitContainer1.Panel1.BackColor = System.Drawing.Color.Transparent; - this.splitContainer1.Panel1.Controls.Add(this.storeSelect); - this.splitContainer1.Panel1.Controls.Add(this.productBatchSelect); - this.splitContainer1.Panel1.Controls.Add(this.uLabel5); - this.splitContainer1.Panel1.Controls.Add(this.uLabel2); - this.splitContainer1.Panel1.Controls.Add(this.closeBtn); - this.splitContainer1.Panel1.Controls.Add(this.uTimerLabel1); - this.splitContainer1.Panel1.Controls.Add(this.workUnitSelect); - this.splitContainer1.Panel1.Controls.Add(this.uScanPanel1); - this.splitContainer1.Panel1.Controls.Add(this.netStateWatch1); - this.splitContainer1.Panel1.Controls.Add(this.uWeightControl1); - this.splitContainer1.Panel1.Controls.Add(this.uLabel1); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.flowLayoutPanel1); - this.splitContainer1.Panel2.Controls.Add(this.groupBox2); - this.splitContainer1.Panel2.Controls.Add(this.groupBox1); - this.splitContainer1.Size = new System.Drawing.Size(1305, 611); - this.splitContainer1.SplitterDistance = 86; - this.splitContainer1.TabIndex = 1; - // - // productBatchSelect - // - this.productBatchSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.productBatchSelect.Font = new System.Drawing.Font("宋体", 15F); - this.productBatchSelect.FormattingEnabled = true; - this.productBatchSelect.Location = new System.Drawing.Point(984, 50); - this.productBatchSelect.Name = "productBatchSelect"; - this.productBatchSelect.Size = new System.Drawing.Size(170, 28); - this.productBatchSelect.TabIndex = 18; - // - // uLabel2 - // - this.uLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uLabel2.AutoSize = true; - this.uLabel2.BackColor = System.Drawing.Color.Transparent; - this.uLabel2.Font = new System.Drawing.Font("宋体", 15F); - this.uLabel2.Location = new System.Drawing.Point(883, 53); - this.uLabel2.Name = "uLabel2"; - this.uLabel2.Size = new System.Drawing.Size(109, 20); - this.uLabel2.TabIndex = 16; - this.uLabel2.Text = "生产批次:"; - // - // closeBtn - // - this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.closeBtn.AsClicked = false; - this.closeBtn.EnableGroup = false; - this.closeBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.closeBtn.FlatAppearance.BorderSize = 0; - this.closeBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.closeBtn.Font = new System.Drawing.Font("宋体", 15F); - this.closeBtn.ForeColor = System.Drawing.Color.Black; - this.closeBtn.Location = new System.Drawing.Point(1187, 7); - this.closeBtn.Name = "closeBtn"; - this.closeBtn.PlaySound = false; - this.closeBtn.SelfControlEnable = false; - this.closeBtn.Size = new System.Drawing.Size(111, 34); - this.closeBtn.SoundType = WinFormControl.SoundType.Click; - this.closeBtn.TabIndex = 10; - this.closeBtn.Text = "关 闭"; - this.closeBtn.UseVisualStyleBackColor = true; - this.closeBtn.WithStataHode = false; - this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); - // - // uTimerLabel1 - // - this.uTimerLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uTimerLabel1.AutoSize = true; - this.uTimerLabel1.BackColor = System.Drawing.Color.Transparent; - this.uTimerLabel1.Font = new System.Drawing.Font("黑体", 12F); - this.uTimerLabel1.Format = "M月d日 H:mm:ss"; - this.uTimerLabel1.Location = new System.Drawing.Point(1165, 53); - this.uTimerLabel1.Name = "uTimerLabel1"; - this.uTimerLabel1.Size = new System.Drawing.Size(128, 16); - this.uTimerLabel1.TabIndex = 8; - this.uTimerLabel1.Text = "3月30日 8:54:07"; - // - // uScanPanel1 - // - this.uScanPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uScanPanel1.BackColor = System.Drawing.Color.Transparent; - this.uScanPanel1.Location = new System.Drawing.Point(580, 9); - this.uScanPanel1.Name = "uScanPanel1"; - this.uScanPanel1.Size = new System.Drawing.Size(303, 32); - this.uScanPanel1.TabIndex = 3; - // - // netStateWatch1 - // - this.netStateWatch1.BackColor = System.Drawing.Color.Transparent; - this.netStateWatch1.Location = new System.Drawing.Point(354, 4); - this.netStateWatch1.Name = "netStateWatch1"; - this.netStateWatch1.Size = new System.Drawing.Size(90, 39); - this.netStateWatch1.TabIndex = 1; - // - // uWeightControl1 - // - this.uWeightControl1.BackColor = System.Drawing.Color.Transparent; - this.uWeightControl1.Location = new System.Drawing.Point(3, 3); - this.uWeightControl1.Name = "uWeightControl1"; - this.uWeightControl1.Size = new System.Drawing.Size(349, 78); - this.uWeightControl1.TabIndex = 0; - this.uWeightControl1.WeightFalg = null; - // - // uLabel1 - // - this.uLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uLabel1.AutoSize = true; - this.uLabel1.BackColor = System.Drawing.Color.Transparent; - this.uLabel1.Font = new System.Drawing.Font("宋体", 15F); - this.uLabel1.Location = new System.Drawing.Point(883, 14); - this.uLabel1.Name = "uLabel1"; - this.uLabel1.Size = new System.Drawing.Size(109, 20); - this.uLabel1.TabIndex = 5; - this.uLabel1.Text = "工作单元:"; - // - // flowLayoutPanel1 - // - this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Right))); - this.flowLayoutPanel1.AutoScroll = true; - this.flowLayoutPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.flowLayoutPanel1.Location = new System.Drawing.Point(793, -1); - this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Size = new System.Drawing.Size(514, 521); - this.flowLayoutPanel1.TabIndex = 4; - // - // groupBox2 - // - this.groupBox2.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.groupBox2.Controls.Add(this.historyDataGrid); - this.groupBox2.Controls.Add(this.uLabel4); - this.groupBox2.Location = new System.Drawing.Point(11, 284); - this.groupBox2.Name = "groupBox2"; - this.groupBox2.Padding = new System.Windows.Forms.Padding(5); - this.groupBox2.Size = new System.Drawing.Size(776, 222); - this.groupBox2.TabIndex = 3; - this.groupBox2.TabStop = false; - // - // historyDataGrid - // - this.historyDataGrid.AllowUserToAddRows = false; - this.historyDataGrid.AllowUserToDeleteRows = false; - this.historyDataGrid.AllowUserToResizeColumns = false; - this.historyDataGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.historyDataGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.historyDataGrid.BackgroundColor = System.Drawing.Color.White; - this.historyDataGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F); - dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.historyDataGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.historyDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.historyDataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.H_ID, - this.H_RowIndex, - this.H_BarCode, - this.H_Goods_Name, - this.H_BeforeWeight, - this.H_Number, - this.H_Weight}); - this.historyDataGrid.Dock = System.Windows.Forms.DockStyle.Fill; - this.historyDataGrid.Location = new System.Drawing.Point(5, 19); - this.historyDataGrid.MultiSelect = false; - this.historyDataGrid.Name = "historyDataGrid"; - this.historyDataGrid.ReadOnly = true; - this.historyDataGrid.RowHeadersVisible = false; - dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.historyDataGrid.RowsDefaultCellStyle = dataGridViewCellStyle5; - this.historyDataGrid.RowTemplate.Height = 23; - this.historyDataGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.historyDataGrid.Size = new System.Drawing.Size(766, 198); - this.historyDataGrid.TabIndex = 2; - // - // H_ID - // - this.H_ID.DataPropertyName = "ID"; - this.H_ID.HeaderText = "ID"; - this.H_ID.Name = "H_ID"; - this.H_ID.ReadOnly = true; - this.H_ID.Visible = false; - // - // H_RowIndex - // - this.H_RowIndex.DataPropertyName = "RowIndex"; - this.H_RowIndex.HeaderText = "序号"; - this.H_RowIndex.Name = "H_RowIndex"; - this.H_RowIndex.ReadOnly = true; - // - // H_BarCode - // - this.H_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.H_BarCode.DataPropertyName = "BarCode"; - this.H_BarCode.HeaderText = "条码"; - this.H_BarCode.Name = "H_BarCode"; - this.H_BarCode.ReadOnly = true; - // - // H_Goods_Name - // - this.H_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.H_Goods_Name.DataPropertyName = "Goods_Name"; - this.H_Goods_Name.HeaderText = "产品名称"; - this.H_Goods_Name.Name = "H_Goods_Name"; - this.H_Goods_Name.ReadOnly = true; - // - // H_BeforeWeight - // - this.H_BeforeWeight.DataPropertyName = "BeforeWeight"; - dataGridViewCellStyle3.Format = "#0.######"; - this.H_BeforeWeight.DefaultCellStyle = dataGridViewCellStyle3; - this.H_BeforeWeight.HeaderText = "入库重量"; - this.H_BeforeWeight.Name = "H_BeforeWeight"; - this.H_BeforeWeight.ReadOnly = true; - this.H_BeforeWeight.Width = 150; - // - // H_Number - // - this.H_Number.DataPropertyName = "Number"; - this.H_Number.HeaderText = "头数"; - this.H_Number.Name = "H_Number"; - this.H_Number.ReadOnly = true; - this.H_Number.Width = 65; - // - // H_Weight - // - this.H_Weight.DataPropertyName = "Weight"; - dataGridViewCellStyle4.Format = "#0.######"; - this.H_Weight.DefaultCellStyle = dataGridViewCellStyle4; - this.H_Weight.HeaderText = "重量"; - this.H_Weight.Name = "H_Weight"; - this.H_Weight.ReadOnly = true; - this.H_Weight.Width = 150; - // - // uLabel4 - // - this.uLabel4.AutoSize = true; - this.uLabel4.BackColor = System.Drawing.Color.White; - this.uLabel4.Font = new System.Drawing.Font("宋体", 13F); - this.uLabel4.Location = new System.Drawing.Point(8, -1); - this.uLabel4.Name = "uLabel4"; - this.uLabel4.Size = new System.Drawing.Size(80, 18); - this.uLabel4.TabIndex = 1; - this.uLabel4.Text = "历史领料"; - // - // groupBox1 - // - this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.groupBox1.Controls.Add(this.splitContainer2); - this.groupBox1.Controls.Add(this.readBtn); - this.groupBox1.Controls.Add(this.submitBtn); - this.groupBox1.Controls.Add(this.uLabel3); - this.groupBox1.Location = new System.Drawing.Point(11, 13); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Padding = new System.Windows.Forms.Padding(5); - this.groupBox1.Size = new System.Drawing.Size(776, 265); - this.groupBox1.TabIndex = 2; - this.groupBox1.TabStop = false; - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Bottom; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; - this.splitContainer2.IsSplitterFixed = true; - this.splitContainer2.Location = new System.Drawing.Point(5, 60); - this.splitContainer2.Name = "splitContainer2"; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.weightGrid); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.needSubmitGrid); - this.splitContainer2.Size = new System.Drawing.Size(766, 200); - this.splitContainer2.SplitterDistance = 254; - this.splitContainer2.TabIndex = 14; - // - // weightGrid - // - this.weightGrid.AllowUserToAddRows = false; - this.weightGrid.AllowUserToDeleteRows = false; - this.weightGrid.AllowUserToResizeColumns = false; - this.weightGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.weightGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; - this.weightGrid.BackgroundColor = System.Drawing.Color.White; - this.weightGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 12F); - dataGridViewCellStyle7.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.weightGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; - this.weightGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.weightGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.W_ID, - this.W_Weight}); - this.weightGrid.Dock = System.Windows.Forms.DockStyle.Fill; - this.weightGrid.Location = new System.Drawing.Point(0, 0); - this.weightGrid.MultiSelect = false; - this.weightGrid.Name = "weightGrid"; - this.weightGrid.ReadOnly = true; - this.weightGrid.RowHeadersVisible = false; - dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.weightGrid.RowsDefaultCellStyle = dataGridViewCellStyle8; - this.weightGrid.RowTemplate.Height = 23; - this.weightGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.weightGrid.Size = new System.Drawing.Size(254, 200); - this.weightGrid.TabIndex = 14; - // - // W_ID - // - this.W_ID.DataPropertyName = "ID"; - this.W_ID.HeaderText = "序号"; - this.W_ID.Name = "W_ID"; - this.W_ID.ReadOnly = true; - // - // W_Weight - // - this.W_Weight.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.W_Weight.DataPropertyName = "Weight"; - this.W_Weight.HeaderText = "重量"; - this.W_Weight.Name = "W_Weight"; - this.W_Weight.ReadOnly = true; - // - // needSubmitGrid - // - this.needSubmitGrid.AllowUserToAddRows = false; - this.needSubmitGrid.AllowUserToDeleteRows = false; - this.needSubmitGrid.AllowUserToResizeColumns = false; - this.needSubmitGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.needSubmitGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9; - this.needSubmitGrid.BackgroundColor = System.Drawing.Color.White; - this.needSubmitGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 12F); - dataGridViewCellStyle10.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.needSubmitGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10; - this.needSubmitGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.needSubmitGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.U_ID, - this.U_RowIndex, - this.U_BarCode, - this.U_Goods_Name, - this.U_BeforeWeight, - this.U_Number, - this.U_Weight}); - this.needSubmitGrid.Dock = System.Windows.Forms.DockStyle.Fill; - this.needSubmitGrid.Location = new System.Drawing.Point(0, 0); - this.needSubmitGrid.MultiSelect = false; - this.needSubmitGrid.Name = "needSubmitGrid"; - this.needSubmitGrid.ReadOnly = true; - this.needSubmitGrid.RowHeadersVisible = false; - dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.needSubmitGrid.RowsDefaultCellStyle = dataGridViewCellStyle12; - this.needSubmitGrid.RowTemplate.Height = 30; - this.needSubmitGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.needSubmitGrid.Size = new System.Drawing.Size(508, 200); - this.needSubmitGrid.TabIndex = 1; - // - // U_ID - // - this.U_ID.DataPropertyName = "ID"; - this.U_ID.HeaderText = "ID"; - this.U_ID.Name = "U_ID"; - this.U_ID.ReadOnly = true; - this.U_ID.Visible = false; - // - // U_RowIndex - // - this.U_RowIndex.DataPropertyName = "RowIndex"; - this.U_RowIndex.HeaderText = "序号"; - this.U_RowIndex.Name = "U_RowIndex"; - this.U_RowIndex.ReadOnly = true; - this.U_RowIndex.Width = 70; - // - // U_BarCode - // - this.U_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.U_BarCode.DataPropertyName = "BarCode"; - this.U_BarCode.HeaderText = "条码"; - this.U_BarCode.Name = "U_BarCode"; - this.U_BarCode.ReadOnly = true; - // - // U_Goods_Name - // - this.U_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.U_Goods_Name.DataPropertyName = "Goods_Name"; - this.U_Goods_Name.HeaderText = "产品名称"; - this.U_Goods_Name.Name = "U_Goods_Name"; - this.U_Goods_Name.ReadOnly = true; - // - // U_BeforeWeight - // - this.U_BeforeWeight.DataPropertyName = "BeforeWeight"; - dataGridViewCellStyle11.Format = "#0.######"; - this.U_BeforeWeight.DefaultCellStyle = dataGridViewCellStyle11; - this.U_BeforeWeight.HeaderText = "入库重量"; - this.U_BeforeWeight.Name = "U_BeforeWeight"; - this.U_BeforeWeight.ReadOnly = true; - // - // U_Number - // - this.U_Number.DataPropertyName = "Number"; - this.U_Number.HeaderText = "头数"; - this.U_Number.Name = "U_Number"; - this.U_Number.ReadOnly = true; - this.U_Number.Width = 65; - // - // U_Weight - // - this.U_Weight.DataPropertyName = "Weight"; - this.U_Weight.HeaderText = "重量"; - this.U_Weight.Name = "U_Weight"; - this.U_Weight.ReadOnly = true; - // - // readBtn - // - this.readBtn.AsClicked = false; - this.readBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("readBtn.BackgroundImage"))); - this.readBtn.EnableGroup = false; - this.readBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.readBtn.FlatAppearance.BorderSize = 0; - this.readBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.readBtn.Font = new System.Drawing.Font("宋体", 15F); - this.readBtn.ForeColor = System.Drawing.Color.Black; - this.readBtn.Location = new System.Drawing.Point(145, 20); - this.readBtn.Name = "readBtn"; - this.readBtn.PlaySound = false; - this.readBtn.SelfControlEnable = false; - this.readBtn.Size = new System.Drawing.Size(114, 34); - this.readBtn.SoundType = WinFormControl.SoundType.Click; - this.readBtn.TabIndex = 13; - this.readBtn.Text = "读 入"; - this.readBtn.UseVisualStyleBackColor = true; - this.readBtn.WithStataHode = false; - this.readBtn.Click += new System.EventHandler(this.readBtn_Click); - // - // submitBtn - // - this.submitBtn.AsClicked = false; - this.submitBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("submitBtn.BackgroundImage"))); - this.submitBtn.EnableGroup = false; - this.submitBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.submitBtn.FlatAppearance.BorderSize = 0; - this.submitBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.submitBtn.Font = new System.Drawing.Font("宋体", 15F); - this.submitBtn.ForeColor = System.Drawing.Color.Black; - this.submitBtn.Location = new System.Drawing.Point(11, 20); - this.submitBtn.Name = "submitBtn"; - this.submitBtn.PlaySound = false; - this.submitBtn.SelfControlEnable = false; - this.submitBtn.Size = new System.Drawing.Size(111, 34); - this.submitBtn.SoundType = WinFormControl.SoundType.Click; - this.submitBtn.TabIndex = 11; - this.submitBtn.Text = "提 交"; - this.submitBtn.UseVisualStyleBackColor = true; - this.submitBtn.WithStataHode = false; - this.submitBtn.Click += new System.EventHandler(this.submitBtn_Click); - // - // uLabel3 - // - this.uLabel3.AutoSize = true; - this.uLabel3.BackColor = System.Drawing.Color.White; - this.uLabel3.Font = new System.Drawing.Font("宋体", 13F); - this.uLabel3.Location = new System.Drawing.Point(8, 0); - this.uLabel3.Name = "uLabel3"; - this.uLabel3.Size = new System.Drawing.Size(80, 18); - this.uLabel3.TabIndex = 0; - this.uLabel3.Text = "领料明细"; - // - // uLabel5 - // - this.uLabel5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uLabel5.AutoSize = true; - this.uLabel5.BackColor = System.Drawing.Color.Transparent; - this.uLabel5.Font = new System.Drawing.Font("宋体", 15F); - this.uLabel5.Location = new System.Drawing.Point(607, 53); - this.uLabel5.Name = "uLabel5"; - this.uLabel5.Size = new System.Drawing.Size(109, 20); - this.uLabel5.TabIndex = 16; - this.uLabel5.Text = "领用仓库:"; - // - // storeSelect - // - this.storeSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.storeSelect.Font = new System.Drawing.Font("宋体", 15F); - this.storeSelect.FormattingEnabled = true; - this.storeSelect.Location = new System.Drawing.Point(708, 50); - this.storeSelect.Name = "storeSelect"; - this.storeSelect.Size = new System.Drawing.Size(170, 28); - this.storeSelect.TabIndex = 18; - // - // CarcassTakeOutForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1305, 611); - this.Controls.Add(this.splitContainer1); - this.MinimumSize = new System.Drawing.Size(1321, 650); - this.Name = "CarcassTakeOutForm"; - this.Text = "白条领用"; - this.WindowState = System.Windows.Forms.FormWindowState.Maximized; - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel1.PerformLayout(); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.groupBox2.ResumeLayout(false); - this.groupBox2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.historyDataGrid)).EndInit(); - this.groupBox1.ResumeLayout(false); - this.groupBox1.PerformLayout(); - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.weightGrid)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.needSubmitGrid)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private WinFormControl.UTimerLabel uTimerLabel1; - private System.Windows.Forms.ComboBox workUnitSelect; - private WinFormControl.UScanPanel uScanPanel1; - private WinFormControl.NetStateWatch netStateWatch1; - private WinFormControl.UWeightControl uWeightControl1; - private WinFormControl.ULabel uLabel1; - private System.Windows.Forms.SplitContainer splitContainer1; - private System.Windows.Forms.GroupBox groupBox2; - private WinFormControl.UDataGridView historyDataGrid; - private WinFormControl.ULabel uLabel4; - private System.Windows.Forms.GroupBox groupBox1; - private WinFormControl.UDataGridView needSubmitGrid; - private WinFormControl.ULabel uLabel3; - private WinFormControl.UButton closeBtn; - private WinFormControl.UButton readBtn; - private WinFormControl.UButton submitBtn; - private WinFormControl.UDataGridView weightGrid; - private System.Windows.Forms.SplitContainer splitContainer2; - private System.Windows.Forms.DataGridViewTextBoxColumn W_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn W_Weight; - private System.Windows.Forms.ComboBox productBatchSelect; - private WinFormControl.ULabel uLabel2; - private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; - private System.Windows.Forms.DataGridViewTextBoxColumn H_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn H_RowIndex; - private System.Windows.Forms.DataGridViewTextBoxColumn H_BarCode; - private System.Windows.Forms.DataGridViewTextBoxColumn H_Goods_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn H_BeforeWeight; - private System.Windows.Forms.DataGridViewTextBoxColumn H_Number; - private System.Windows.Forms.DataGridViewTextBoxColumn H_Weight; - private System.Windows.Forms.DataGridViewTextBoxColumn U_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn U_RowIndex; - private System.Windows.Forms.DataGridViewTextBoxColumn U_BarCode; - private System.Windows.Forms.DataGridViewTextBoxColumn U_Goods_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn U_BeforeWeight; - private System.Windows.Forms.DataGridViewTextBoxColumn U_Number; - private System.Windows.Forms.DataGridViewTextBoxColumn U_Weight; - private System.Windows.Forms.ComboBox storeSelect; - private WinFormControl.ULabel uLabel5; - - } -} \ No newline at end of file diff --git a/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.cs b/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.cs deleted file mode 100644 index 7664e17..0000000 --- a/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.cs +++ /dev/null @@ -1,283 +0,0 @@ -using ButcherFactory.BO; -using ButcherFactory.BO.LocalBL; -using ButcherFactory.BO.Rpcs; -using ButcherFactory.BO.Utils; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using ButcherFactory.Utils; -using WinFormControl; -using ButcherFactory.Dialogs; - -namespace ButcherFactory.CarcassTakeOut_ -{ - public partial class CarcassTakeOutForm : Form, IWithRoleForm - { - #region IWithRoleForm - public List RoleName - { - get { return new List { (short)设备类别.白条领用 }; } - } - - public Form Generate() - { - return this; - } - #endregion - - Thread syncBeforeInfo; - Thread uploadData; - BindingList needSubmitedList; - BindingList historyList; - BindingList weightList; - long? batchID; - CarcassTakeOutFormConfig config; - public CarcassTakeOutForm() - { - InitializeComponent(); - netStateWatch1.GetConnectState = () => LoginUtil.TestConnection(500); - uScanPanel1.AfterScan += uScanPanel1_AfterScan; - storeSelect.SelectedIndexChanged += delegate - { - if (storeSelect.SelectedValue == null) - config.Store_ID = null; - else - config.Store_ID = (long)storeSelect.SelectedValue; - XmlUtil.SerializerObjToFile(config); - }; - workUnitSelect.SelectedIndexChanged += delegate - { - if (workUnitSelect.SelectedValue == null) - config.WorkUnitID = null; - else - config.WorkUnitID = (long)workUnitSelect.SelectedValue; - XmlUtil.SerializerObjToFile(config); - }; - productBatchSelect.SelectedIndexChanged += delegate - { - if (productBatchSelect.SelectedValue == null) - batchID = null; - else - batchID = (long)productBatchSelect.SelectedValue; - }; - this.FormClosing += delegate - { - if (syncBeforeInfo != null && syncBeforeInfo.IsAlive) - syncBeforeInfo.Abort(); - if (uploadData != null && uploadData.IsAlive) - uploadData.Abort(); - }; - } - - protected override void OnLoad(EventArgs e) - { - base.OnLoad(e); - var initTask = new Thread(LoadBind); - initTask.Start(); - - syncBeforeInfo = new Thread(GetBeforeInfo); - syncBeforeInfo.Start(); - - uploadData = new Thread(UpLoadLocalData); - uploadData.Start(); - } - - private void LoadBind() - { - this.Invoke(new Action(() => - { - BLUtil.DeleteLocalDb(); - if (netStateWatch1.NetState) - { - BaseInfoSyncRpc.SyncGoodsByTag(ApplyClient.白条出入库); - BaseInfoSyncRpc.SyncBaseInfo(); - BaseInfoSyncRpc.SyncProductBatch(0); - BaseInfoSyncRpc.SyncBaseInfo(); - } - - productBatchSelect.EBindComboBox(x => x.Date == DateTime.Today, 6, "Date"); - config = XmlUtil.DeserializeFromFile(); - workUnitSelect.EBindComboBox(x => x.ID == config.WorkUnitID, top: 100); - storeSelect.EBindComboBox(x => x.ID == config.Store_ID, top: 100); - BindGoods(); - BindGrid(); - })); - } - - List goodsBtns = new List(); - void BindGoods() - { - var goods = FormClientGoodsSetBL.GetGoodsList(); - foreach (var item in goods) - { - var btn = new UButton() { Width = 120, Height = 75, Text = item.Goods_Name, Tag = item.Goods_ID, Font = new Font("宋体", 15), Margin = new Padding(22, 10, 22, 30), PlaySound = true }; - btn.Click += GoodsBtnClick; - goodsBtns.Add(btn); - flowLayoutPanel1.Controls.Add(btn); - } - } - - void GoodsBtnClick(object sender, EventArgs e) - { - if (batchID == null) - throw new Exception("请先选择批次"); - var c = sender as UButton; - Insert(null, (long)c.Tag, c.Text); - } - - void BindGrid() - { - weightList = CarcassTakeOutBL.GetWeightList(); - weightGrid.DataSource = weightList; - weightGrid.Refresh(); - - needSubmitedList = CarcassTakeOutBL.GetLocalDataWithState(false); - needSubmitGrid.DataSource = needSubmitedList; - needSubmitGrid.Refresh(); - - historyList = CarcassTakeOutBL.GetLocalDataWithState(true); - historyDataGrid.DataSource = historyList; - historyDataGrid.Refresh(); - } - - private void GetBeforeInfo() - { - while (true) - { - if (this.IsHandleCreated) - { - this.Invoke(new Action(() => - { - if (netStateWatch1.NetState) - { - bool ff = true; - var list = needSubmitedList.Where(x => x.BeforeWeight == null && !string.IsNullOrEmpty(x.BarCode)).Take(5); - if (!list.Any()) - { - list = historyList.Where(x => x.BeforeWeight == null && !string.IsNullOrEmpty(x.BarCode)).Take(5); - ff = false; - } - if (list.Any()) - { - var back = CarcassTakeOutBL.GetBeforeInfo(list.Select(x => x.BarCode)); - if (back.Any()) - { - foreach (var item in back) - { - var f = list.First(x => x.BarCode == item.StringExt1); - f.BeforeWeight = item.DecimalExt1; - f.Goods_Name = item.StringExt2; - } - if (ff) - needSubmitGrid.Refresh(); - else - historyDataGrid.Refresh(); - } - } - } - })); - } - Thread.Sleep(2000); - } - } - - private void UpLoadLocalData() - { - while (true) - { - if (this.IsHandleCreated) - { - this.Invoke(new Action(() => - { - if (netStateWatch1.NetState) - CarcassTakeOutBL.UploadCarcassInfo(); - })); - } - Thread.Sleep(2000); - } - } - - void uScanPanel1_AfterScan() - { - if (config.Store_ID == null) - throw new Exception("请先选择仓库"); - var barCode = uScanPanel1.TextBox.Text.Trim(); - if (string.IsNullOrEmpty(barCode)) - throw new Exception("请先扫码"); - if (barCode.StartsWith("G")) - { - var gId = barCode.TrimStart('G'); - var first = goodsBtns.FirstOrDefault(x => x.Tag.ToString() == gId); - if (first == null) - throw new Exception(string.Format("没找到ID为{0}的存货", gId)); - GoodsBtnClick(first, EventArgs.Empty); - } - else - { - if (barCode.Length != 23) - throw new Exception("条码格式不正确"); - Insert(barCode, null, null); - } - } - - void Insert(string barCode, long? goodsID, string goodsName) - { - var entity = CarcassTakeOutBL.Insert(config.WorkUnitID, batchID, goodsID, barCode, config.Store_ID.Value); - if (entity == null) - return; - if (string.IsNullOrEmpty(barCode)) - entity.Goods_Name = goodsName; - needSubmitedList.Insert(0, entity); - needSubmitGrid.FirstDisplayedScrollingRowIndex = 0; - needSubmitGrid.Rows[0].Selected = true; - needSubmitGrid.Refresh(); - uScanPanel1.TextBox.Clear(); - } - - private void closeBtn_Click(object sender, EventArgs e) - { - Close(); - } - - private void submitBtn_Click(object sender, EventArgs e) - { - if (weightList.Count == 0) - throw new Exception("没有称重记录"); - if (needSubmitedList.Count == 0) - throw new Exception("没有扫码记录"); - var weight = weightList.Sum(x => x.Weight); - var arr = needSubmitedList.ToList(); - CarcassTakeOutBL.Submit(weight, arr); - arr.Reverse(); - foreach (var item in arr) - { - historyList.Insert(0, item); - if (historyList.Count > 50) - historyList.RemoveAt(50); - needSubmitedList.Remove(item); - } - weightList.Clear(); - historyDataGrid.FirstDisplayedScrollingRowIndex = 0; - historyDataGrid.Refresh(); - needSubmitGrid.Refresh(); - weightGrid.Refresh(); - } - - private void readBtn_Click(object sender, EventArgs e) - { - if (uWeightControl1.Weight == 0) - throw new Exception("重量为0,不能读入"); - var entity = CarcassTakeOutBL.InsertWeight(uWeightControl1.Weight); - weightList.Insert(0, entity); - weightGrid.FirstDisplayedScrollingRowIndex = 0; - weightGrid.Refresh(); - } - } -} diff --git a/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.resx b/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.resx deleted file mode 100644 index f6e1852..0000000 --- a/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.resx +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - \ No newline at end of file diff --git a/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutFormConfig.cs b/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutFormConfig.cs deleted file mode 100644 index 20ca88f..0000000 --- a/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutFormConfig.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace ButcherFactory.CarcassTakeOut_ -{ - public class CarcassTakeOutFormConfig - { - public long? WorkUnitID { get; set; } - - public long? Store_ID { get; set; } - } -} diff --git a/ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.Designer.cs b/ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.Designer.cs deleted file mode 100644 index 1478ead..0000000 --- a/ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.Designer.cs +++ /dev/null @@ -1,180 +0,0 @@ -namespace ButcherFactory.SegmentInStore_ -{ - partial class InStoreSummaryView - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); - this.inStoreGrid = new WinFormControl.UDataGridView(); - this.closeBtn = new WinFormControl.NButton(); - this.I_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.I_Goods_Code = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.I_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.I_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.I_Number = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.I_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - ((System.ComponentModel.ISupportInitialize)(this.inStoreGrid)).BeginInit(); - this.SuspendLayout(); - // - // inStoreGrid - // - this.inStoreGrid.AllowUserToAddRows = false; - this.inStoreGrid.AllowUserToDeleteRows = false; - this.inStoreGrid.AllowUserToResizeColumns = false; - this.inStoreGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.inStoreGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.inStoreGrid.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.inStoreGrid.BackgroundColor = System.Drawing.Color.White; - this.inStoreGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F); - dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.inStoreGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.inStoreGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.inStoreGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.I_RowIndex, - this.I_Goods_Code, - this.I_Goods_Name, - this.I_Goods_Spec, - this.I_Number, - this.I_Weight}); - this.inStoreGrid.Location = new System.Drawing.Point(12, 53); - this.inStoreGrid.MultiSelect = false; - this.inStoreGrid.Name = "inStoreGrid"; - this.inStoreGrid.ReadOnly = true; - this.inStoreGrid.RowHeadersVisible = false; - dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.inStoreGrid.RowsDefaultCellStyle = dataGridViewCellStyle4; - this.inStoreGrid.RowTemplate.Height = 23; - this.inStoreGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.inStoreGrid.Size = new System.Drawing.Size(858, 539); - this.inStoreGrid.TabIndex = 10; - // - // closeBtn - // - this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.closeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); - this.closeBtn.ClickColor = System.Drawing.Color.YellowGreen; - this.closeBtn.Font = new System.Drawing.Font("宋体", 15F); - this.closeBtn.ForeColor = System.Drawing.Color.White; - this.closeBtn.Location = new System.Drawing.Point(780, 2); - this.closeBtn.Name = "closeBtn"; - this.closeBtn.PlaySound = false; - this.closeBtn.Size = new System.Drawing.Size(90, 45); - this.closeBtn.SoundType = WinFormControl.SoundType.Click; - this.closeBtn.TabIndex = 11; - this.closeBtn.Text = "关闭"; - this.closeBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); - this.closeBtn.UseVisualStyleBackColor = false; - this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); - // - // I_RowIndex - // - this.I_RowIndex.DataPropertyName = "RowIndex"; - this.I_RowIndex.HeaderText = "序号"; - this.I_RowIndex.Name = "I_RowIndex"; - this.I_RowIndex.ReadOnly = true; - this.I_RowIndex.Width = 70; - // - // I_Goods_Code - // - this.I_Goods_Code.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.I_Goods_Code.DataPropertyName = "Goods_Code"; - this.I_Goods_Code.FillWeight = 90F; - this.I_Goods_Code.HeaderText = "产品编号"; - this.I_Goods_Code.Name = "I_Goods_Code"; - this.I_Goods_Code.ReadOnly = true; - // - // I_Goods_Name - // - this.I_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.I_Goods_Name.DataPropertyName = "Goods_Name"; - this.I_Goods_Name.FillWeight = 150F; - this.I_Goods_Name.HeaderText = "产品名称"; - this.I_Goods_Name.Name = "I_Goods_Name"; - this.I_Goods_Name.ReadOnly = true; - // - // I_Goods_Spec - // - this.I_Goods_Spec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.I_Goods_Spec.DataPropertyName = "Goods_Spec"; - this.I_Goods_Spec.FillWeight = 90F; - this.I_Goods_Spec.HeaderText = "规格"; - this.I_Goods_Spec.Name = "I_Goods_Spec"; - this.I_Goods_Spec.ReadOnly = true; - // - // I_Number - // - this.I_Number.DataPropertyName = "Number"; - this.I_Number.HeaderText = "件数"; - this.I_Number.Name = "I_Number"; - this.I_Number.ReadOnly = true; - // - // I_Weight - // - this.I_Weight.DataPropertyName = "Weight"; - dataGridViewCellStyle3.Format = "#0.######"; - this.I_Weight.DefaultCellStyle = dataGridViewCellStyle3; - this.I_Weight.HeaderText = "重量"; - this.I_Weight.Name = "I_Weight"; - this.I_Weight.ReadOnly = true; - // - // InStoreSummaryView - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(882, 604); - this.Controls.Add(this.closeBtn); - this.Controls.Add(this.inStoreGrid); - this.Name = "InStoreSummaryView"; - this.Text = "入库表"; - ((System.ComponentModel.ISupportInitialize)(this.inStoreGrid)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private WinFormControl.UDataGridView inStoreGrid; - private WinFormControl.NButton closeBtn; - private System.Windows.Forms.DataGridViewTextBoxColumn I_RowIndex; - private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Code; - private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Spec; - private System.Windows.Forms.DataGridViewTextBoxColumn I_Number; - private System.Windows.Forms.DataGridViewTextBoxColumn I_Weight; - } -} \ No newline at end of file diff --git a/ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.cs b/ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.cs deleted file mode 100644 index 963c968..0000000 --- a/ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.cs +++ /dev/null @@ -1,76 +0,0 @@ -using ButcherFactory.BO; -using ButcherFactory.BO.LocalBL; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace ButcherFactory.SegmentInStore_ -{ - public partial class InStoreSummaryView : Form - { - BindingList list; - public InStoreSummaryView() - { - InitializeComponent(); - inStoreGrid.RowPrePaint += uDataGridView1_RowPrePaint; - inStoreGrid.CellPainting += uDataGridView1_CellPainting; - } - - protected override void OnLoad(EventArgs e) - { - base.OnLoad(e); - list = SegmentInStoreBL.GetInStoreSummary(); - list.Add(new SegmentInStore { Number = list.Sum(x => x.Number ?? 0), Weight = list.Sum(x => x.Weight ?? 0) }); - inStoreGrid.DataSource = list; - inStoreGrid.Refresh(); - } - - private void uDataGridView1_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) - { - if (e.RowIndex == inStoreGrid.Rows.Count - 1) - { - var row = inStoreGrid.Rows[e.RowIndex]; - row.DefaultCellStyle.SelectionForeColor = Color.Black; - row.DefaultCellStyle.BackColor = Color.Khaki; - row.DefaultCellStyle.SelectionBackColor = Color.Khaki; - } - } - - private void uDataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) - { - var last = inStoreGrid.Rows.Count - 1; - if (e.RowIndex == last) - { - if (e.ColumnIndex == 2) - { - e.PaintBackground(e.ClipBounds, false); - e.Handled = true; - } - else if (e.ColumnIndex == 3) - { - using (Brush foreColor = new SolidBrush(e.CellStyle.ForeColor)) - { - e.PaintBackground(e.ClipBounds, false); - StringFormat drawFormat = new StringFormat(); - drawFormat.LineAlignment = StringAlignment.Center; - drawFormat.Alignment = System.Drawing.StringAlignment.Center; - - e.Graphics.DrawString("合计", e.CellStyle.Font, foreColor, e.CellBounds, drawFormat); - e.Handled = true; - } - } - } - } - - private void closeBtn_Click(object sender, EventArgs e) - { - this.Close(); - } - } -} diff --git a/ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.resx b/ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.resx deleted file mode 100644 index 623f4ba..0000000 --- a/ButcherFactory.Form/SegmentInStore_/InStoreSummaryView.resx +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.Designer.cs b/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.Designer.cs deleted file mode 100644 index e280f14..0000000 --- a/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.Designer.cs +++ /dev/null @@ -1,839 +0,0 @@ -namespace ButcherFactory.SegmentInStore_ -{ - partial class SegmentInStoreForm - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = 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 dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = 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 dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = 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(); - this.panel1 = new System.Windows.Forms.Panel(); - this.barCodeBox = new System.Windows.Forms.TextBox(); - this.uLabel1 = new WinFormControl.ULabel(); - this.inStoreViewBtn = new WinFormControl.NButton(); - this.netStateWatch1 = new WinFormControl.NetStateWatch(); - this.storeSelect = new System.Windows.Forms.ComboBox(); - this.uLabel3 = new WinFormControl.ULabel(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.inStoreGrid = new WinFormControl.UDataGridView(); - this.I_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.I_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.I_ShortCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.I_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.I_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.I_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.I_InStoreTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.goodsNameLbl = new WinFormControl.ULabel(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.submitBtn = new WinFormControl.NButton(); - this.deleteBtn = new WinFormControl.NButton(); - this.backStoreGrid = new WinFormControl.UDataGridView(); - this.B_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.B_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.B_ShortCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.B_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.B_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.B_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.B_ProductTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.uLabel5 = new WinFormControl.ULabel(); - this.backBtn = new WinFormControl.NButton(); - this.groupBox3 = new System.Windows.Forms.GroupBox(); - this.unInstoreGrid = new WinFormControl.UDataGridView(); - this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.U_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.U_ShortCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.U_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.U_Goods_Spec = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.U_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.U_ProductTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.uLabel6 = new WinFormControl.ULabel(); - this.groupBox4 = new System.Windows.Forms.GroupBox(); - this.exceptionGrid = new WinFormControl.UDataGridView(); - this.E_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.E_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.E_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.E_ExceptionInfo = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.uLabel4 = new WinFormControl.ULabel(); - this.clearErrorBtn = new WinFormControl.NButton(); - this.refreshBtn = new WinFormControl.NButton(); - this.panel1.SuspendLayout(); - this.groupBox1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.inStoreGrid)).BeginInit(); - this.groupBox2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.backStoreGrid)).BeginInit(); - this.groupBox3.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.unInstoreGrid)).BeginInit(); - this.groupBox4.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.exceptionGrid)).BeginInit(); - this.SuspendLayout(); - // - // panel1 - // - this.panel1.Controls.Add(this.barCodeBox); - this.panel1.Controls.Add(this.uLabel1); - this.panel1.Controls.Add(this.inStoreViewBtn); - this.panel1.Controls.Add(this.netStateWatch1); - this.panel1.Controls.Add(this.storeSelect); - this.panel1.Controls.Add(this.uLabel3); - this.panel1.Location = new System.Drawing.Point(0, 0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(583, 140); - this.panel1.TabIndex = 0; - // - // barCodeBox - // - this.barCodeBox.Font = new System.Drawing.Font("宋体", 14F); - this.barCodeBox.Location = new System.Drawing.Point(83, 33); - this.barCodeBox.Name = "barCodeBox"; - this.barCodeBox.Size = new System.Drawing.Size(391, 29); - this.barCodeBox.TabIndex = 20; - // - // uLabel1 - // - this.uLabel1.AutoSize = true; - this.uLabel1.BackColor = System.Drawing.Color.Transparent; - this.uLabel1.Font = new System.Drawing.Font("宋体", 15F); - this.uLabel1.Location = new System.Drawing.Point(16, 37); - this.uLabel1.Name = "uLabel1"; - this.uLabel1.Size = new System.Drawing.Size(69, 20); - this.uLabel1.TabIndex = 21; - this.uLabel1.Text = "条码:"; - // - // inStoreViewBtn - // - this.inStoreViewBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); - this.inStoreViewBtn.ClickColor = System.Drawing.Color.YellowGreen; - this.inStoreViewBtn.Font = new System.Drawing.Font("宋体", 12F); - this.inStoreViewBtn.ForeColor = System.Drawing.Color.White; - this.inStoreViewBtn.Location = new System.Drawing.Point(379, 76); - this.inStoreViewBtn.Name = "inStoreViewBtn"; - this.inStoreViewBtn.PlaySound = false; - this.inStoreViewBtn.Size = new System.Drawing.Size(95, 45); - this.inStoreViewBtn.SoundType = WinFormControl.SoundType.Click; - this.inStoreViewBtn.TabIndex = 19; - this.inStoreViewBtn.Text = "入库表"; - this.inStoreViewBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); - this.inStoreViewBtn.UseVisualStyleBackColor = false; - this.inStoreViewBtn.Click += new System.EventHandler(this.inStoreViewBtn_Click); - // - // netStateWatch1 - // - this.netStateWatch1.BackColor = System.Drawing.Color.Transparent; - this.netStateWatch1.Location = new System.Drawing.Point(489, 3); - this.netStateWatch1.Name = "netStateWatch1"; - this.netStateWatch1.Size = new System.Drawing.Size(90, 39); - this.netStateWatch1.TabIndex = 18; - // - // storeSelect - // - this.storeSelect.Font = new System.Drawing.Font("宋体", 15F); - this.storeSelect.FormattingEnabled = true; - this.storeSelect.Location = new System.Drawing.Point(83, 84); - this.storeSelect.Name = "storeSelect"; - this.storeSelect.Size = new System.Drawing.Size(240, 28); - this.storeSelect.TabIndex = 16; - // - // uLabel3 - // - this.uLabel3.AutoSize = true; - this.uLabel3.BackColor = System.Drawing.Color.Transparent; - this.uLabel3.Font = new System.Drawing.Font("宋体", 15F); - this.uLabel3.Location = new System.Drawing.Point(16, 88); - this.uLabel3.Name = "uLabel3"; - this.uLabel3.Size = new System.Drawing.Size(69, 20); - this.uLabel3.TabIndex = 17; - this.uLabel3.Text = "仓库:"; - // - // groupBox1 - // - this.groupBox1.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.groupBox1.Controls.Add(this.inStoreGrid); - this.groupBox1.Controls.Add(this.goodsNameLbl); - this.groupBox1.Location = new System.Drawing.Point(11, 159); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(627, 434); - this.groupBox1.TabIndex = 1; - this.groupBox1.TabStop = false; - // - // inStoreGrid - // - this.inStoreGrid.AllowUserToAddRows = false; - this.inStoreGrid.AllowUserToDeleteRows = false; - this.inStoreGrid.AllowUserToResizeColumns = false; - this.inStoreGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.inStoreGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.inStoreGrid.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.inStoreGrid.BackgroundColor = System.Drawing.Color.White; - this.inStoreGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F); - dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.inStoreGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.inStoreGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.inStoreGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.I_ID, - this.I_RowIndex, - this.I_ShortCode, - this.I_Goods_Name, - this.I_Goods_Spec, - this.I_Weight, - this.I_InStoreTime}); - this.inStoreGrid.Location = new System.Drawing.Point(3, 33); - this.inStoreGrid.MultiSelect = false; - this.inStoreGrid.Name = "inStoreGrid"; - this.inStoreGrid.ReadOnly = true; - this.inStoreGrid.RowHeadersVisible = false; - dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.inStoreGrid.RowsDefaultCellStyle = dataGridViewCellStyle5; - this.inStoreGrid.RowTemplate.Height = 23; - this.inStoreGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.inStoreGrid.Size = new System.Drawing.Size(618, 398); - this.inStoreGrid.TabIndex = 9; - // - // I_ID - // - this.I_ID.DataPropertyName = "ID"; - this.I_ID.HeaderText = "ID"; - this.I_ID.Name = "I_ID"; - this.I_ID.ReadOnly = true; - this.I_ID.Visible = false; - // - // I_RowIndex - // - this.I_RowIndex.DataPropertyName = "RowIndex"; - this.I_RowIndex.HeaderText = "序号"; - this.I_RowIndex.Name = "I_RowIndex"; - this.I_RowIndex.ReadOnly = true; - this.I_RowIndex.Width = 65; - // - // I_ShortCode - // - this.I_ShortCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.I_ShortCode.DataPropertyName = "ShortCode"; - this.I_ShortCode.HeaderText = "条码"; - this.I_ShortCode.MinimumWidth = 120; - this.I_ShortCode.Name = "I_ShortCode"; - this.I_ShortCode.ReadOnly = true; - // - // I_Goods_Name - // - this.I_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.I_Goods_Name.DataPropertyName = "Goods_Name"; - this.I_Goods_Name.FillWeight = 110F; - this.I_Goods_Name.HeaderText = "产品名称"; - this.I_Goods_Name.MinimumWidth = 120; - this.I_Goods_Name.Name = "I_Goods_Name"; - this.I_Goods_Name.ReadOnly = true; - // - // I_Goods_Spec - // - this.I_Goods_Spec.DataPropertyName = "Goods_Spec"; - this.I_Goods_Spec.HeaderText = "规格"; - this.I_Goods_Spec.Name = "I_Goods_Spec"; - this.I_Goods_Spec.ReadOnly = true; - this.I_Goods_Spec.Width = 70; - // - // I_Weight - // - this.I_Weight.DataPropertyName = "Weight"; - dataGridViewCellStyle3.Format = "#0.######"; - this.I_Weight.DefaultCellStyle = dataGridViewCellStyle3; - this.I_Weight.HeaderText = "重量"; - this.I_Weight.Name = "I_Weight"; - this.I_Weight.ReadOnly = true; - this.I_Weight.Width = 70; - // - // I_InStoreTime - // - this.I_InStoreTime.DataPropertyName = "InStoreTime"; - dataGridViewCellStyle4.Format = "T"; - dataGridViewCellStyle4.NullValue = null; - this.I_InStoreTime.DefaultCellStyle = dataGridViewCellStyle4; - this.I_InStoreTime.HeaderText = "入库时间"; - this.I_InStoreTime.Name = "I_InStoreTime"; - this.I_InStoreTime.ReadOnly = true; - this.I_InStoreTime.Width = 110; - // - // goodsNameLbl - // - this.goodsNameLbl.AutoSize = true; - this.goodsNameLbl.BackColor = System.Drawing.Color.White; - this.goodsNameLbl.Font = new System.Drawing.Font("宋体", 12F); - this.goodsNameLbl.ForeColor = System.Drawing.SystemColors.ControlText; - this.goodsNameLbl.Location = new System.Drawing.Point(6, 0); - this.goodsNameLbl.Name = "goodsNameLbl"; - this.goodsNameLbl.Size = new System.Drawing.Size(72, 16); - this.goodsNameLbl.TabIndex = 4; - this.goodsNameLbl.Text = "存货名称"; - // - // groupBox2 - // - this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.groupBox2.Controls.Add(this.submitBtn); - this.groupBox2.Controls.Add(this.deleteBtn); - this.groupBox2.Controls.Add(this.backStoreGrid); - this.groupBox2.Controls.Add(this.uLabel5); - this.groupBox2.Controls.Add(this.backBtn); - this.groupBox2.Location = new System.Drawing.Point(656, 159); - this.groupBox2.Name = "groupBox2"; - this.groupBox2.Size = new System.Drawing.Size(630, 241); - this.groupBox2.TabIndex = 2; - this.groupBox2.TabStop = false; - // - // submitBtn - // - this.submitBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); - this.submitBtn.ClickColor = System.Drawing.Color.YellowGreen; - this.submitBtn.Font = new System.Drawing.Font("宋体", 12F); - this.submitBtn.ForeColor = System.Drawing.Color.White; - this.submitBtn.Location = new System.Drawing.Point(356, 11); - this.submitBtn.Name = "submitBtn"; - this.submitBtn.PlaySound = false; - this.submitBtn.Size = new System.Drawing.Size(95, 45); - this.submitBtn.SoundType = WinFormControl.SoundType.Click; - this.submitBtn.TabIndex = 10; - this.submitBtn.Text = "提交"; - this.submitBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); - this.submitBtn.UseVisualStyleBackColor = false; - this.submitBtn.Click += new System.EventHandler(this.submitBtn_Click); - // - // deleteBtn - // - this.deleteBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); - this.deleteBtn.ClickColor = System.Drawing.Color.YellowGreen; - this.deleteBtn.Font = new System.Drawing.Font("宋体", 12F); - this.deleteBtn.ForeColor = System.Drawing.Color.White; - this.deleteBtn.Location = new System.Drawing.Point(212, 11); - this.deleteBtn.Name = "deleteBtn"; - this.deleteBtn.PlaySound = false; - this.deleteBtn.Size = new System.Drawing.Size(95, 45); - this.deleteBtn.SoundType = WinFormControl.SoundType.Click; - this.deleteBtn.TabIndex = 9; - this.deleteBtn.Text = "删除"; - this.deleteBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); - this.deleteBtn.UseVisualStyleBackColor = false; - this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click); - // - // backStoreGrid - // - this.backStoreGrid.AllowUserToAddRows = false; - this.backStoreGrid.AllowUserToDeleteRows = false; - this.backStoreGrid.AllowUserToResizeColumns = false; - this.backStoreGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.backStoreGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; - this.backStoreGrid.BackgroundColor = System.Drawing.Color.White; - this.backStoreGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 12F); - dataGridViewCellStyle7.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.backStoreGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; - this.backStoreGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.backStoreGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.B_ID, - this.B_RowIndex, - this.B_ShortCode, - this.B_Goods_Name, - this.B_Goods_Spec, - this.B_Weight, - this.B_ProductTime}); - this.backStoreGrid.Dock = System.Windows.Forms.DockStyle.Bottom; - this.backStoreGrid.Location = new System.Drawing.Point(3, 60); - this.backStoreGrid.MultiSelect = false; - this.backStoreGrid.Name = "backStoreGrid"; - this.backStoreGrid.ReadOnly = true; - this.backStoreGrid.RowHeadersVisible = false; - dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.backStoreGrid.RowsDefaultCellStyle = dataGridViewCellStyle10; - this.backStoreGrid.RowTemplate.Height = 23; - this.backStoreGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.backStoreGrid.Size = new System.Drawing.Size(624, 178); - this.backStoreGrid.TabIndex = 8; - // - // B_ID - // - this.B_ID.DataPropertyName = "ID"; - this.B_ID.HeaderText = "ID"; - this.B_ID.Name = "B_ID"; - this.B_ID.ReadOnly = true; - this.B_ID.Visible = false; - // - // B_RowIndex - // - this.B_RowIndex.DataPropertyName = "RowIndex"; - this.B_RowIndex.HeaderText = "序号"; - this.B_RowIndex.Name = "B_RowIndex"; - this.B_RowIndex.ReadOnly = true; - this.B_RowIndex.Width = 65; - // - // B_ShortCode - // - this.B_ShortCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.B_ShortCode.DataPropertyName = "ShortCode"; - this.B_ShortCode.FillWeight = 120F; - this.B_ShortCode.HeaderText = "条码"; - this.B_ShortCode.MinimumWidth = 120; - 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.FillWeight = 140F; - this.B_Goods_Name.HeaderText = "产品名称"; - this.B_Goods_Name.MinimumWidth = 140; - this.B_Goods_Name.Name = "B_Goods_Name"; - this.B_Goods_Name.ReadOnly = true; - // - // B_Goods_Spec - // - this.B_Goods_Spec.DataPropertyName = "Goods_Spec"; - this.B_Goods_Spec.HeaderText = "规格"; - this.B_Goods_Spec.Name = "B_Goods_Spec"; - this.B_Goods_Spec.ReadOnly = true; - this.B_Goods_Spec.Width = 70; - // - // B_Weight - // - this.B_Weight.DataPropertyName = "Weight"; - dataGridViewCellStyle8.Format = "#0.######"; - this.B_Weight.DefaultCellStyle = dataGridViewCellStyle8; - this.B_Weight.HeaderText = "重量"; - this.B_Weight.Name = "B_Weight"; - this.B_Weight.ReadOnly = true; - this.B_Weight.Width = 80; - // - // B_ProductTime - // - this.B_ProductTime.DataPropertyName = "ProductTime"; - dataGridViewCellStyle9.Format = "T"; - dataGridViewCellStyle9.NullValue = null; - this.B_ProductTime.DefaultCellStyle = dataGridViewCellStyle9; - this.B_ProductTime.HeaderText = "生产时间"; - this.B_ProductTime.Name = "B_ProductTime"; - this.B_ProductTime.ReadOnly = true; - this.B_ProductTime.Width = 110; - // - // uLabel5 - // - this.uLabel5.AutoSize = true; - this.uLabel5.BackColor = System.Drawing.Color.White; - this.uLabel5.Font = new System.Drawing.Font("宋体", 12F); - this.uLabel5.ForeColor = System.Drawing.SystemColors.ControlText; - this.uLabel5.Location = new System.Drawing.Point(6, 0); - this.uLabel5.Name = "uLabel5"; - this.uLabel5.Size = new System.Drawing.Size(40, 16); - this.uLabel5.TabIndex = 6; - this.uLabel5.Text = "退库"; - // - // backBtn - // - this.backBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); - this.backBtn.ClickColor = System.Drawing.Color.YellowGreen; - this.backBtn.Font = new System.Drawing.Font("宋体", 12F); - this.backBtn.ForeColor = System.Drawing.Color.White; - this.backBtn.Location = new System.Drawing.Point(64, 11); - this.backBtn.Name = "backBtn"; - this.backBtn.PlaySound = false; - this.backBtn.Size = new System.Drawing.Size(95, 45); - this.backBtn.SoundType = WinFormControl.SoundType.Click; - this.backBtn.TabIndex = 0; - this.backBtn.Text = "退库"; - this.backBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); - this.backBtn.UseVisualStyleBackColor = false; - this.backBtn.WithStataHode = true; - this.backBtn.Click += new System.EventHandler(this.backBtn_Click); - // - // groupBox3 - // - this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Right))); - this.groupBox3.Controls.Add(this.unInstoreGrid); - this.groupBox3.Controls.Add(this.uLabel6); - this.groupBox3.Location = new System.Drawing.Point(656, 428); - this.groupBox3.Name = "groupBox3"; - this.groupBox3.Size = new System.Drawing.Size(630, 165); - this.groupBox3.TabIndex = 3; - this.groupBox3.TabStop = false; - this.groupBox3.Text = "groupBox3"; - // - // unInstoreGrid - // - this.unInstoreGrid.AllowUserToAddRows = false; - this.unInstoreGrid.AllowUserToDeleteRows = false; - this.unInstoreGrid.AllowUserToResizeColumns = false; - this.unInstoreGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.unInstoreGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11; - this.unInstoreGrid.BackgroundColor = System.Drawing.Color.White; - this.unInstoreGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 12F); - dataGridViewCellStyle12.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.unInstoreGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12; - this.unInstoreGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.unInstoreGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.dataGridViewTextBoxColumn8, - this.U_RowIndex, - this.U_ShortCode, - this.U_Goods_Name, - this.U_Goods_Spec, - this.U_Weight, - this.U_ProductTime}); - this.unInstoreGrid.Dock = System.Windows.Forms.DockStyle.Fill; - this.unInstoreGrid.Location = new System.Drawing.Point(3, 17); - this.unInstoreGrid.MultiSelect = false; - this.unInstoreGrid.Name = "unInstoreGrid"; - this.unInstoreGrid.ReadOnly = true; - this.unInstoreGrid.RowHeadersVisible = false; - dataGridViewCellStyle15.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle15.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.unInstoreGrid.RowsDefaultCellStyle = dataGridViewCellStyle15; - this.unInstoreGrid.RowTemplate.Height = 23; - this.unInstoreGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.unInstoreGrid.Size = new System.Drawing.Size(624, 145); - this.unInstoreGrid.TabIndex = 9; - // - // dataGridViewTextBoxColumn8 - // - this.dataGridViewTextBoxColumn8.DataPropertyName = "U_ID"; - this.dataGridViewTextBoxColumn8.HeaderText = "ID"; - this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; - this.dataGridViewTextBoxColumn8.ReadOnly = true; - this.dataGridViewTextBoxColumn8.Visible = false; - // - // U_RowIndex - // - this.U_RowIndex.DataPropertyName = "RowIndex"; - this.U_RowIndex.HeaderText = "序号"; - this.U_RowIndex.Name = "U_RowIndex"; - this.U_RowIndex.ReadOnly = true; - this.U_RowIndex.Width = 65; - // - // U_ShortCode - // - this.U_ShortCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.U_ShortCode.DataPropertyName = "ShortCode"; - this.U_ShortCode.FillWeight = 120F; - this.U_ShortCode.HeaderText = "条码"; - this.U_ShortCode.MinimumWidth = 120; - this.U_ShortCode.Name = "U_ShortCode"; - this.U_ShortCode.ReadOnly = true; - // - // U_Goods_Name - // - this.U_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.U_Goods_Name.DataPropertyName = "Goods_Name"; - this.U_Goods_Name.FillWeight = 140F; - this.U_Goods_Name.HeaderText = "产品名称"; - this.U_Goods_Name.MinimumWidth = 140; - this.U_Goods_Name.Name = "U_Goods_Name"; - this.U_Goods_Name.ReadOnly = true; - // - // U_Goods_Spec - // - this.U_Goods_Spec.DataPropertyName = "Goods_Spec"; - this.U_Goods_Spec.HeaderText = "规格"; - this.U_Goods_Spec.Name = "U_Goods_Spec"; - this.U_Goods_Spec.ReadOnly = true; - this.U_Goods_Spec.Width = 70; - // - // U_Weight - // - this.U_Weight.DataPropertyName = "Weight"; - dataGridViewCellStyle13.Format = "#0.######"; - this.U_Weight.DefaultCellStyle = dataGridViewCellStyle13; - this.U_Weight.HeaderText = "重量"; - this.U_Weight.Name = "U_Weight"; - this.U_Weight.ReadOnly = true; - this.U_Weight.Width = 80; - // - // U_ProductTime - // - this.U_ProductTime.DataPropertyName = "ProductTime"; - dataGridViewCellStyle14.Format = "T"; - dataGridViewCellStyle14.NullValue = null; - this.U_ProductTime.DefaultCellStyle = dataGridViewCellStyle14; - this.U_ProductTime.HeaderText = "生产时间"; - this.U_ProductTime.MinimumWidth = 2; - this.U_ProductTime.Name = "U_ProductTime"; - this.U_ProductTime.ReadOnly = true; - this.U_ProductTime.Width = 110; - // - // uLabel6 - // - this.uLabel6.AutoSize = true; - this.uLabel6.BackColor = System.Drawing.Color.White; - this.uLabel6.Font = new System.Drawing.Font("宋体", 12F); - this.uLabel6.ForeColor = System.Drawing.SystemColors.ControlText; - this.uLabel6.Location = new System.Drawing.Point(6, 0); - this.uLabel6.Name = "uLabel6"; - this.uLabel6.Size = new System.Drawing.Size(88, 16); - this.uLabel6.TabIndex = 7; - this.uLabel6.Text = "未入库条码"; - // - // groupBox4 - // - this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.groupBox4.Controls.Add(this.exceptionGrid); - this.groupBox4.Controls.Add(this.uLabel4); - this.groupBox4.Location = new System.Drawing.Point(656, 16); - this.groupBox4.Name = "groupBox4"; - this.groupBox4.Size = new System.Drawing.Size(630, 124); - this.groupBox4.TabIndex = 4; - this.groupBox4.TabStop = false; - this.groupBox4.Text = "groupBox4"; - // - // exceptionGrid - // - this.exceptionGrid.AllowUserToAddRows = false; - this.exceptionGrid.AllowUserToDeleteRows = false; - this.exceptionGrid.AllowUserToResizeColumns = false; - this.exceptionGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.exceptionGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle16; - this.exceptionGrid.BackgroundColor = System.Drawing.Color.White; - this.exceptionGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle17.Font = new System.Drawing.Font("宋体", 12F); - dataGridViewCellStyle17.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.exceptionGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle17; - this.exceptionGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.exceptionGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.E_ID, - this.E_RowIndex, - this.E_BarCode, - this.E_ExceptionInfo}); - this.exceptionGrid.Dock = System.Windows.Forms.DockStyle.Fill; - this.exceptionGrid.Location = new System.Drawing.Point(3, 17); - this.exceptionGrid.MultiSelect = false; - this.exceptionGrid.Name = "exceptionGrid"; - this.exceptionGrid.ReadOnly = true; - this.exceptionGrid.RowHeadersVisible = false; - dataGridViewCellStyle18.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle18.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.exceptionGrid.RowsDefaultCellStyle = dataGridViewCellStyle18; - this.exceptionGrid.RowTemplate.Height = 23; - this.exceptionGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.exceptionGrid.Size = new System.Drawing.Size(624, 104); - this.exceptionGrid.TabIndex = 9; - // - // E_ID - // - this.E_ID.DataPropertyName = "ID"; - this.E_ID.HeaderText = "ID"; - this.E_ID.Name = "E_ID"; - this.E_ID.ReadOnly = true; - this.E_ID.Visible = false; - // - // E_RowIndex - // - this.E_RowIndex.DataPropertyName = "ID"; - this.E_RowIndex.HeaderText = "异常号"; - this.E_RowIndex.Name = "E_RowIndex"; - this.E_RowIndex.ReadOnly = true; - // - // E_BarCode - // - this.E_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.E_BarCode.DataPropertyName = "BarCode"; - this.E_BarCode.HeaderText = "条码"; - this.E_BarCode.Name = "E_BarCode"; - this.E_BarCode.ReadOnly = true; - // - // E_ExceptionInfo - // - this.E_ExceptionInfo.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.E_ExceptionInfo.DataPropertyName = "ExceptionInfo"; - this.E_ExceptionInfo.HeaderText = "异常信息"; - this.E_ExceptionInfo.Name = "E_ExceptionInfo"; - this.E_ExceptionInfo.ReadOnly = true; - // - // uLabel4 - // - this.uLabel4.AutoSize = true; - this.uLabel4.BackColor = System.Drawing.Color.White; - this.uLabel4.Font = new System.Drawing.Font("宋体", 12F); - this.uLabel4.ForeColor = System.Drawing.SystemColors.ControlText; - this.uLabel4.Location = new System.Drawing.Point(6, -1); - this.uLabel4.Name = "uLabel4"; - this.uLabel4.Size = new System.Drawing.Size(72, 16); - this.uLabel4.TabIndex = 5; - this.uLabel4.Text = "异常记录"; - // - // clearErrorBtn - // - this.clearErrorBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.clearErrorBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); - this.clearErrorBtn.ClickColor = System.Drawing.Color.YellowGreen; - this.clearErrorBtn.Font = new System.Drawing.Font("宋体", 12F); - this.clearErrorBtn.ForeColor = System.Drawing.Color.White; - this.clearErrorBtn.Location = new System.Drawing.Point(1191, 134); - this.clearErrorBtn.Name = "clearErrorBtn"; - this.clearErrorBtn.PlaySound = false; - this.clearErrorBtn.Size = new System.Drawing.Size(95, 32); - this.clearErrorBtn.SoundType = WinFormControl.SoundType.Click; - this.clearErrorBtn.TabIndex = 5; - this.clearErrorBtn.Text = "清理异常"; - this.clearErrorBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); - this.clearErrorBtn.UseVisualStyleBackColor = false; - this.clearErrorBtn.Click += new System.EventHandler(this.clearErrorBtn_Click); - // - // refreshBtn - // - this.refreshBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.refreshBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); - this.refreshBtn.ClickColor = System.Drawing.Color.YellowGreen; - this.refreshBtn.Font = new System.Drawing.Font("宋体", 12F); - this.refreshBtn.ForeColor = System.Drawing.Color.White; - this.refreshBtn.Location = new System.Drawing.Point(1191, 401); - this.refreshBtn.Name = "refreshBtn"; - this.refreshBtn.PlaySound = false; - this.refreshBtn.Size = new System.Drawing.Size(95, 32); - this.refreshBtn.SoundType = WinFormControl.SoundType.Click; - this.refreshBtn.TabIndex = 6; - this.refreshBtn.Text = "刷新"; - this.refreshBtn.ToColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(136)))), ((int)(((byte)(255))))); - this.refreshBtn.UseVisualStyleBackColor = false; - this.refreshBtn.Click += new System.EventHandler(this.refreshBtn_Click); - // - // SegmentInStoreForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1305, 611); - this.Controls.Add(this.refreshBtn); - this.Controls.Add(this.clearErrorBtn); - this.Controls.Add(this.groupBox4); - this.Controls.Add(this.panel1); - this.Controls.Add(this.groupBox3); - this.Controls.Add(this.groupBox2); - this.Controls.Add(this.groupBox1); - this.ImeMode = System.Windows.Forms.ImeMode.Disable; - this.KeyPreview = true; - this.Name = "SegmentInStoreForm"; - this.Text = "扫码入库"; - this.WindowState = System.Windows.Forms.FormWindowState.Maximized; - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.groupBox1.ResumeLayout(false); - this.groupBox1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.inStoreGrid)).EndInit(); - this.groupBox2.ResumeLayout(false); - this.groupBox2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.backStoreGrid)).EndInit(); - this.groupBox3.ResumeLayout(false); - this.groupBox3.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.unInstoreGrid)).EndInit(); - this.groupBox4.ResumeLayout(false); - this.groupBox4.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.exceptionGrid)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.GroupBox groupBox1; - private WinFormControl.ULabel goodsNameLbl; - private System.Windows.Forms.GroupBox groupBox2; - private System.Windows.Forms.GroupBox groupBox3; - private System.Windows.Forms.ComboBox storeSelect; - private WinFormControl.ULabel uLabel3; - private WinFormControl.NetStateWatch netStateWatch1; - private WinFormControl.ULabel uLabel5; - private WinFormControl.ULabel uLabel6; - private System.Windows.Forms.GroupBox groupBox4; - private WinFormControl.ULabel uLabel4; - private WinFormControl.UDataGridView backStoreGrid; - private WinFormControl.UDataGridView exceptionGrid; - private WinFormControl.UDataGridView unInstoreGrid; - private WinFormControl.UDataGridView inStoreGrid; - private WinFormControl.NButton backBtn; - private WinFormControl.NButton submitBtn; - private WinFormControl.NButton deleteBtn; - private WinFormControl.NButton inStoreViewBtn; - private System.Windows.Forms.DataGridViewTextBoxColumn E_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn E_RowIndex; - private System.Windows.Forms.DataGridViewTextBoxColumn E_BarCode; - private System.Windows.Forms.DataGridViewTextBoxColumn E_ExceptionInfo; - private WinFormControl.NButton clearErrorBtn; - private System.Windows.Forms.DataGridViewTextBoxColumn B_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn B_RowIndex; - private System.Windows.Forms.DataGridViewTextBoxColumn B_ShortCode; - private System.Windows.Forms.DataGridViewTextBoxColumn B_Goods_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn B_Goods_Spec; - private System.Windows.Forms.DataGridViewTextBoxColumn B_Weight; - private System.Windows.Forms.DataGridViewTextBoxColumn B_ProductTime; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8; - private System.Windows.Forms.DataGridViewTextBoxColumn U_RowIndex; - private System.Windows.Forms.DataGridViewTextBoxColumn U_ShortCode; - private System.Windows.Forms.DataGridViewTextBoxColumn U_Goods_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn U_Goods_Spec; - private System.Windows.Forms.DataGridViewTextBoxColumn U_Weight; - private System.Windows.Forms.DataGridViewTextBoxColumn U_ProductTime; - private System.Windows.Forms.DataGridViewTextBoxColumn I_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn I_RowIndex; - private System.Windows.Forms.DataGridViewTextBoxColumn I_ShortCode; - private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn I_Goods_Spec; - private System.Windows.Forms.DataGridViewTextBoxColumn I_Weight; - private System.Windows.Forms.DataGridViewTextBoxColumn I_InStoreTime; - private System.Windows.Forms.TextBox barCodeBox; - private WinFormControl.ULabel uLabel1; - private WinFormControl.NButton refreshBtn; - } -} \ No newline at end of file diff --git a/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.cs b/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.cs deleted file mode 100644 index a273285..0000000 --- a/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.cs +++ /dev/null @@ -1,326 +0,0 @@ -using ButcherFactory.BO; -using ButcherFactory.BO.Rpcs; -using ButcherFactory.BO.Utils; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using ButcherFactory.Utils; -using ButcherFactory.BO.LocalBL; -using ButcherFactory.Controls; -using WebSocketSharp; - -namespace ButcherFactory.SegmentInStore_ -{ - public partial class SegmentInStoreForm : Form, IWithRoleForm - { - #region IWithRoleForm - public List RoleName - { - get { return new List { (short)设备类别.扫码入库 }; } - } - - public Form Generate() - { - return this; - } - #endregion - - Thread uploadData; - Thread checkHasData; - BindingList inStoreList; - BindingList unInstoreList; - BindingList exceptionList; - BindingList backStoreList; - long? storeID; - bool isBack = false; - WebSocket ws; - - public SegmentInStoreForm() - { - InitializeComponent(); - netStateWatch1.GetConnectState = () => LoginUtil.TestConnection(500); - this.FormClosing += delegate - { - if (uploadData != null && uploadData.IsAlive) - uploadData.Abort(); - if (checkHasData != null && checkHasData.IsAlive) - checkHasData.Abort(); - if (ws != null) - ws.Close(); - }; - - storeSelect.SelectedIndexChanged += delegate - { - if (storeSelect.SelectedValue == null) - storeID = null; - else - storeID = (long)storeSelect.SelectedValue; - XmlUtil.SerializerObjToFile(new SegmentInStoreFormConfig { StoreID = storeID }); - }; - this.Load += SegmentInStoreForm_Load; - } - - private void SegmentInStoreForm_Load(object sender, EventArgs e) - { - ws = new WebSocket("ws://127.0.0.1:12346"); - ws.OnMessage += (s, l) => - { - ScannerDataRecieved(l.Data); - }; - ws.Connect(); - if (ws.ReadyState != WebSocketState.Open) - throw new Exception("扫码服务异常,请检查"); - } - - protected override void OnLoad(EventArgs e) - { - base.OnLoad(e); - inStoreList = new BindingList(); - var initTask = new Thread(LoadBind); - initTask.Start(); - uploadData = new Thread(UpLoadLocalData); - uploadData.Start(); - - //var vid = Int32.Parse("0C2E", System.Globalization.NumberStyles.HexNumber); - //var pid = Int32.Parse("0927", System.Globalization.NumberStyles.HexNumber); - //_scanner = Scanner1902.Enumerate(vid, pid).FirstOrDefault(); - //if (_scanner != null) - //{ - // _scanner.DataRecieved += ScannerDataRecieved; - // _scanner.StartListen(); - //} - //else - //{ - // MessageBox.Show("请连接扫码枪后重新启动程序!"); - //} - } - - private void LoadBind() - { - BLUtil.DeleteLocalDb(); - if (netStateWatch1.NetState) - { - BaseInfoSyncRpc.SyncBaseInfo(); - BaseInfoSyncRpc.SyncProductBatch(1); - BaseInfoSyncRpc.SyncBaseInfo(); - } - this.Invoke(new Action(() => - { - var config = XmlUtil.DeserializeFromFile(); - var m = config.StoreID; - storeSelect.EBindComboBox(x => x.ID == m); - BindInStoreGrid(); - BindExceptionGrid(); - BindBackGrid(); - BindUnInstall(); - })); - } - - private void BindUnInstall() - { - unInstoreList = new BindingList(SegmentInStoreBL.GetUnInStoreList()); - unInstoreGrid.DataSource = unInstoreList; - RefreshUnInStore(); - } - - object _lockUn = new object(); - void RefreshUnInStore() - { - lock (_lockUn) - unInstoreGrid.Refresh(); - } - - private void BindInStoreGrid() - { - inStoreList = SegmentInStoreBL.GetInStoreByStateList(0); - inStoreGrid.DataSource = inStoreList; - RefreshInStore(); - } - - private void BindExceptionGrid() - { - exceptionList = SegmentInStoreBL.GetExceptionList(); - exceptionGrid.DataSource = exceptionList; - exceptionGrid.Refresh(); - } - - private void BindBackGrid() - { - backStoreList = SegmentInStoreBL.GetInStoreByStateList(1); - backStoreGrid.DataSource = backStoreList; - backStoreGrid.Refresh(); - } - - private void UpLoadLocalData() - { - while (true) - { - try - { - if (netStateWatch1.NetState) - SegmentInStoreBL.UploadSegmentInstoreInfo(); - } - catch { } - Thread.Sleep(1000); - } - } - - private void ScannerDataRecieved(string data) - { - var code = ControlsUtil.ParseCode(data); - if (string.IsNullOrEmpty(code)) - return; - this.Invoke(new Action(() => - { - barCodeBox.Text = code; - if (isBack) - { - var idx = backStoreList.Any() ? backStoreList.First().RowIndex.Value : 0; - var msg = SegmentInStoreBL.SetAsBacking(code, idx + 1); - if (!string.IsNullOrEmpty(msg)) - { - InsertExceptionInfo(code, msg); - ControlsUtil.PlanVoice(msg); - //InfoBox.Show("错误", msg, Color.Red, 1, this); - return; - } - BindBackGrid(); - var fir = inStoreList.FirstOrDefault(x => x.BarCode == code); - if (fir != null) - { - inStoreList.Remove(fir); - RefreshInStore(); - } - } - else - { - var idx = inStoreList.Any() ? inStoreList.First().RowIndex.Value : 0; - var first = new SegmentInStore() { Store_ID = storeID, BarCode = code, RowIndex = idx + 1 }; - var msg = SegmentInStoreBL.InsertInStore(first); - if (!string.IsNullOrEmpty(msg)) - { - InsertExceptionInfo(code, msg); - ControlsUtil.PlanVoice(msg); - //InfoBox.Show("错误", msg, Color.Red, 1, this); - return; - } - inStoreList.Insert(0, first); - if (inStoreList.Count > 30) - inStoreList.RemoveAt(30); - if (first.Weight == null) - { - checkHasData = new Thread(new ParameterizedThreadStart(GetInfoFromServer)); - checkHasData.Start(first); - } - } - })); - } - - private void GetInfoFromServer(object obj) - { - var entity = obj as SegmentInStore; - SegmentInStoreBL.RefreshFromServer(entity); - if (entity.Weight == null) - { - this.Invoke(new Action(() => - { - var msg = "条码无效"; - InsertExceptionInfo(entity.BarCode, msg); - - SegmentInStoreBL.Delete(entity.ID); - inStoreList.Remove(entity); - ControlsUtil.PlanVoice(msg); - //InfoBox.Show("错误", msg, Color.Red, 1, this); - })); - } - this.Invoke(new Action(() => - { - RefreshInStore(); - var first = unInstoreList.FirstOrDefault(x => x.BarCode == entity.BarCode); - if (first != null) - { - try - { - unInstoreList.Remove(first); - RefreshUnInStore(); - } - catch { } - } - })); - } - - object lc = new object(); - void RefreshInStore() - { - lock (lc) - inStoreGrid.Refresh(); - } - - void InsertExceptionInfo(string barCode, string msg) - { - var error = new SegmentCodeError() - { - BarCode = barCode, - ExceptionInfo = msg - }; - SegmentInStoreBL.InsertSegmentCodeError(error); - exceptionList.Insert(0, error); - if (exceptionList.Count > 20) - exceptionList.RemoveAt(20); - exceptionGrid.Refresh(); - } - - private void backBtn_Click(object sender, EventArgs e) - { - isBack = !isBack; - backBtn.Text = isBack ? "等待退库" : "退库"; - } - - private void deleteBtn_Click(object sender, EventArgs e) - { - if (MessageBox.Show("确定删除该入库信息?", "删除确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK) - return; - if (backStoreGrid.CurrentRow == null) - return; - var id = (long)backStoreGrid.CurrentRow.Cells["B_ID"].Value; - SegmentInStoreBL.Delete(id); - var tag = backStoreList.First(x => x.ID == id); - backStoreList.Remove(tag); - backStoreGrid.Refresh(); - } - - private void submitBtn_Click(object sender, EventArgs e) - { - if (backStoreList.Count == 0) - return; - var ids = backStoreList.Select(x => x.ID); - SegmentInStoreBL.SubmitBackStore(ids); - backStoreList.Clear(); - backStoreGrid.Refresh(); - } - - private void inStoreViewBtn_Click(object sender, EventArgs e) - { - new InStoreSummaryView().ShowDialog(); - } - - private void clearErrorBtn_Click(object sender, EventArgs e) - { - SegmentInStoreBL.ClearErrorMsg(); - exceptionList.Clear(); - exceptionGrid.Refresh(); - } - - private void refreshBtn_Click(object sender, EventArgs e) - { - BindUnInstall(); - } - } -} diff --git a/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.resx b/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.resx deleted file mode 100644 index e10499e..0000000 --- a/ButcherFactory.Form/SegmentInStore_/SegmentInStoreForm.resx +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/ButcherFactory.Form/SegmentInStore_/SegmentInStoreFormConfig.cs b/ButcherFactory.Form/SegmentInStore_/SegmentInStoreFormConfig.cs deleted file mode 100644 index 1a445e1..0000000 --- a/ButcherFactory.Form/SegmentInStore_/SegmentInStoreFormConfig.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace ButcherFactory.SegmentInStore_ -{ - public class SegmentInStoreFormConfig - { - public long? StoreID { get; set; } - } -} diff --git a/ButcherFactory.Form/SegmentProduction_/SegmentProductionForm.Designer.cs b/ButcherFactory.Form/SegmentProduction_/SegmentProductionForm.Designer.cs deleted file mode 100644 index 178b5d0..0000000 --- a/ButcherFactory.Form/SegmentProduction_/SegmentProductionForm.Designer.cs +++ /dev/null @@ -1,726 +0,0 @@ -namespace ButcherFactory.SegmentProduction_ -{ - partial class SegmentProductionForm - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SegmentProductionForm)); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = 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 dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = 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(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.barPrintCheck = new System.Windows.Forms.CheckBox(); - this.closeBtn = new WinFormControl.UButton(); - this.uTimerLabel1 = new WinFormControl.UTimerLabel(); - this.productBatchSelect = new System.Windows.Forms.ComboBox(); - this.workUnitSelect = new System.Windows.Forms.ComboBox(); - this.uLabel1 = new WinFormControl.ULabel(); - this.uLabel2 = new WinFormControl.ULabel(); - this.uWeightControl1 = new WinFormControl.UWeightControl(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.submitBtn = new WinFormControl.UButton(); - this.deleteBtn = new WinFormControl.UButton(); - this.rePrintBtn = new WinFormControl.UButton(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.historyDataGrid = new WinFormControl.UDataGridView(); - this.H_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.uLabel3 = new WinFormControl.ULabel(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.taskDataGrid = new WinFormControl.UDataGridView(); - this.T_Item = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.T_Need = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.T_Done = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.T_Last = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.GoodsLabel = new WinFormControl.ULabel(); - this.trunOutBtn = new WinFormControl.UButton(); - this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); - this.switchBtn = new WinFormControl.UButton(); - this.goodsSetBtn = new WinFormControl.UButton(); - this.endBtn = new WinFormControl.UButton(); - this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); - this.startBtn = new WinFormControl.UButton(); - this.netStateWatch1 = new WinFormControl.NetStateWatch(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - this.groupBox1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.historyDataGrid)).BeginInit(); - this.groupBox2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.taskDataGrid)).BeginInit(); - this.SuspendLayout(); - // - // splitContainer1 - // - this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; - this.splitContainer1.IsSplitterFixed = true; - this.splitContainer1.Location = new System.Drawing.Point(0, 0); - this.splitContainer1.Name = "splitContainer1"; - this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer1.Panel1 - // - this.splitContainer1.Panel1.Controls.Add(this.barPrintCheck); - this.splitContainer1.Panel1.Controls.Add(this.closeBtn); - this.splitContainer1.Panel1.Controls.Add(this.uTimerLabel1); - this.splitContainer1.Panel1.Controls.Add(this.productBatchSelect); - this.splitContainer1.Panel1.Controls.Add(this.workUnitSelect); - this.splitContainer1.Panel1.Controls.Add(this.uLabel1); - this.splitContainer1.Panel1.Controls.Add(this.uLabel2); - this.splitContainer1.Panel1.Controls.Add(this.netStateWatch1); - this.splitContainer1.Panel1.Controls.Add(this.uWeightControl1); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); - this.splitContainer1.Size = new System.Drawing.Size(1226, 602); - this.splitContainer1.SplitterDistance = 87; - this.splitContainer1.TabIndex = 0; - // - // barPrintCheck - // - this.barPrintCheck.AutoSize = true; - this.barPrintCheck.Font = new System.Drawing.Font("宋体", 15F); - this.barPrintCheck.Location = new System.Drawing.Point(359, 50); - this.barPrintCheck.Name = "barPrintCheck"; - this.barPrintCheck.Size = new System.Drawing.Size(108, 24); - this.barPrintCheck.TabIndex = 16; - this.barPrintCheck.Text = "启用打码"; - this.barPrintCheck.UseVisualStyleBackColor = true; - // - // closeBtn - // - this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.closeBtn.AsClicked = false; - this.closeBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("closeBtn.BackgroundImage"))); - this.closeBtn.EnableGroup = false; - this.closeBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.closeBtn.FlatAppearance.BorderSize = 0; - this.closeBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.closeBtn.Font = new System.Drawing.Font("宋体", 15F); - this.closeBtn.ForeColor = System.Drawing.Color.Black; - this.closeBtn.Location = new System.Drawing.Point(1106, 7); - this.closeBtn.Name = "closeBtn"; - this.closeBtn.PlaySound = false; - this.closeBtn.SelfControlEnable = false; - this.closeBtn.Size = new System.Drawing.Size(111, 34); - this.closeBtn.SoundType = WinFormControl.SoundType.Click; - this.closeBtn.TabIndex = 15; - this.closeBtn.Text = "关 闭"; - this.closeBtn.UseVisualStyleBackColor = true; - this.closeBtn.WithStataHode = false; - this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); - // - // uTimerLabel1 - // - this.uTimerLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uTimerLabel1.AutoSize = true; - this.uTimerLabel1.BackColor = System.Drawing.Color.Transparent; - this.uTimerLabel1.Font = new System.Drawing.Font("黑体", 12F); - this.uTimerLabel1.Format = "M月d日 H:mm:ss"; - this.uTimerLabel1.Location = new System.Drawing.Point(1084, 53); - this.uTimerLabel1.Name = "uTimerLabel1"; - this.uTimerLabel1.Size = new System.Drawing.Size(136, 16); - this.uTimerLabel1.TabIndex = 14; - this.uTimerLabel1.Text = "4月21日 16:32:19"; - // - // productBatchSelect - // - this.productBatchSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.productBatchSelect.Font = new System.Drawing.Font("宋体", 15F); - this.productBatchSelect.FormattingEnabled = true; - this.productBatchSelect.Location = new System.Drawing.Point(903, 47); - this.productBatchSelect.Name = "productBatchSelect"; - this.productBatchSelect.Size = new System.Drawing.Size(170, 28); - this.productBatchSelect.TabIndex = 11; - // - // workUnitSelect - // - this.workUnitSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.workUnitSelect.Font = new System.Drawing.Font("宋体", 15F); - this.workUnitSelect.FormattingEnabled = true; - this.workUnitSelect.Location = new System.Drawing.Point(903, 11); - this.workUnitSelect.Name = "workUnitSelect"; - this.workUnitSelect.Size = new System.Drawing.Size(170, 28); - this.workUnitSelect.TabIndex = 10; - // - // uLabel1 - // - this.uLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uLabel1.AutoSize = true; - this.uLabel1.BackColor = System.Drawing.Color.Transparent; - this.uLabel1.Font = new System.Drawing.Font("宋体", 15F); - this.uLabel1.Location = new System.Drawing.Point(802, 14); - this.uLabel1.Name = "uLabel1"; - this.uLabel1.Size = new System.Drawing.Size(109, 20); - this.uLabel1.TabIndex = 12; - this.uLabel1.Text = "工作单元:"; - // - // uLabel2 - // - this.uLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uLabel2.AutoSize = true; - this.uLabel2.BackColor = System.Drawing.Color.Transparent; - this.uLabel2.Font = new System.Drawing.Font("宋体", 15F); - this.uLabel2.Location = new System.Drawing.Point(802, 50); - this.uLabel2.Name = "uLabel2"; - this.uLabel2.Size = new System.Drawing.Size(109, 20); - this.uLabel2.TabIndex = 13; - this.uLabel2.Text = "生产批次:"; - // - // uWeightControl1 - // - this.uWeightControl1.BackColor = System.Drawing.Color.Transparent; - this.uWeightControl1.Location = new System.Drawing.Point(3, 3); - this.uWeightControl1.Name = "uWeightControl1"; - this.uWeightControl1.Size = new System.Drawing.Size(349, 78); - this.uWeightControl1.TabIndex = 0; - this.uWeightControl1.WeightFalg = null; - // - // splitContainer2 - // - this.splitContainer2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.submitBtn); - this.splitContainer2.Panel1.Controls.Add(this.deleteBtn); - this.splitContainer2.Panel1.Controls.Add(this.rePrintBtn); - this.splitContainer2.Panel1.Controls.Add(this.groupBox1); - this.splitContainer2.Panel1.Controls.Add(this.groupBox2); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.trunOutBtn); - this.splitContainer2.Panel2.Controls.Add(this.flowLayoutPanel2); - this.splitContainer2.Panel2.Controls.Add(this.switchBtn); - this.splitContainer2.Panel2.Controls.Add(this.goodsSetBtn); - this.splitContainer2.Panel2.Controls.Add(this.endBtn); - this.splitContainer2.Panel2.Controls.Add(this.flowLayoutPanel1); - this.splitContainer2.Panel2.Controls.Add(this.startBtn); - this.splitContainer2.Size = new System.Drawing.Size(1226, 511); - this.splitContainer2.SplitterDistance = 554; - this.splitContainer2.TabIndex = 0; - // - // submitBtn - // - this.submitBtn.AsClicked = false; - this.submitBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("submitBtn.BackgroundImage"))); - this.submitBtn.EnableGroup = false; - this.submitBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.submitBtn.FlatAppearance.BorderSize = 0; - this.submitBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.submitBtn.Font = new System.Drawing.Font("宋体", 15F); - this.submitBtn.ForeColor = System.Drawing.Color.Black; - this.submitBtn.Location = new System.Drawing.Point(249, 134); - this.submitBtn.Name = "submitBtn"; - this.submitBtn.PlaySound = false; - this.submitBtn.SelfControlEnable = false; - this.submitBtn.Size = new System.Drawing.Size(111, 34); - this.submitBtn.SoundType = WinFormControl.SoundType.Click; - this.submitBtn.TabIndex = 23; - this.submitBtn.Text = "提交"; - this.submitBtn.UseVisualStyleBackColor = true; - this.submitBtn.WithStataHode = false; - this.submitBtn.Click += new System.EventHandler(this.submitBtn_Click); - // - // deleteBtn - // - this.deleteBtn.AsClicked = false; - this.deleteBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("deleteBtn.BackgroundImage"))); - this.deleteBtn.EnableGroup = false; - this.deleteBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.deleteBtn.FlatAppearance.BorderSize = 0; - this.deleteBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.deleteBtn.Font = new System.Drawing.Font("宋体", 15F); - this.deleteBtn.ForeColor = System.Drawing.Color.Black; - this.deleteBtn.Location = new System.Drawing.Point(129, 134); - this.deleteBtn.Name = "deleteBtn"; - this.deleteBtn.PlaySound = false; - this.deleteBtn.SelfControlEnable = false; - this.deleteBtn.Size = new System.Drawing.Size(111, 34); - this.deleteBtn.SoundType = WinFormControl.SoundType.Click; - this.deleteBtn.TabIndex = 22; - this.deleteBtn.Text = "删除"; - this.deleteBtn.UseVisualStyleBackColor = true; - this.deleteBtn.WithStataHode = false; - this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click); - // - // rePrintBtn - // - this.rePrintBtn.AsClicked = false; - this.rePrintBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("rePrintBtn.BackgroundImage"))); - this.rePrintBtn.EnableGroup = false; - this.rePrintBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.rePrintBtn.FlatAppearance.BorderSize = 0; - this.rePrintBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.rePrintBtn.Font = new System.Drawing.Font("宋体", 15F); - this.rePrintBtn.ForeColor = System.Drawing.Color.Black; - this.rePrintBtn.Location = new System.Drawing.Point(9, 134); - this.rePrintBtn.Name = "rePrintBtn"; - this.rePrintBtn.PlaySound = false; - this.rePrintBtn.SelfControlEnable = false; - this.rePrintBtn.Size = new System.Drawing.Size(111, 34); - this.rePrintBtn.SoundType = WinFormControl.SoundType.Click; - this.rePrintBtn.TabIndex = 21; - this.rePrintBtn.Text = "补打"; - this.rePrintBtn.UseVisualStyleBackColor = true; - this.rePrintBtn.WithStataHode = false; - this.rePrintBtn.Click += new System.EventHandler(this.rePrintBtn_Click); - // - // groupBox1 - // - this.groupBox1.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.groupBox1.Controls.Add(this.historyDataGrid); - this.groupBox1.Controls.Add(this.uLabel3); - this.groupBox1.Location = new System.Drawing.Point(10, 174); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Padding = new System.Windows.Forms.Padding(5); - this.groupBox1.Size = new System.Drawing.Size(533, 332); - this.groupBox1.TabIndex = 5; - this.groupBox1.TabStop = false; - // - // historyDataGrid - // - this.historyDataGrid.AllowUserToAddRows = false; - this.historyDataGrid.AllowUserToDeleteRows = false; - this.historyDataGrid.AllowUserToResizeColumns = false; - this.historyDataGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.historyDataGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.historyDataGrid.BackgroundColor = System.Drawing.Color.White; - this.historyDataGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F); - dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.historyDataGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.historyDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.historyDataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.H_ID, - this.H_RowIndex, - this.H_BarCode, - this.H_Goods_Name, - this.H_Weight}); - this.historyDataGrid.Dock = System.Windows.Forms.DockStyle.Fill; - this.historyDataGrid.Location = new System.Drawing.Point(5, 19); - this.historyDataGrid.MultiSelect = false; - this.historyDataGrid.Name = "historyDataGrid"; - this.historyDataGrid.ReadOnly = true; - this.historyDataGrid.RowHeadersVisible = false; - dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.historyDataGrid.RowsDefaultCellStyle = dataGridViewCellStyle4; - this.historyDataGrid.RowTemplate.Height = 23; - this.historyDataGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.historyDataGrid.Size = new System.Drawing.Size(523, 308); - this.historyDataGrid.TabIndex = 2; - // - // H_ID - // - this.H_ID.DataPropertyName = "ID"; - this.H_ID.HeaderText = "ID"; - this.H_ID.Name = "H_ID"; - this.H_ID.ReadOnly = true; - this.H_ID.Visible = false; - // - // H_RowIndex - // - this.H_RowIndex.DataPropertyName = "RowIndex"; - this.H_RowIndex.HeaderText = "序号"; - this.H_RowIndex.Name = "H_RowIndex"; - this.H_RowIndex.ReadOnly = true; - this.H_RowIndex.Width = 80; - // - // H_BarCode - // - this.H_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.H_BarCode.DataPropertyName = "BarCode"; - this.H_BarCode.HeaderText = "条码"; - this.H_BarCode.Name = "H_BarCode"; - this.H_BarCode.ReadOnly = true; - // - // H_Goods_Name - // - this.H_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.H_Goods_Name.DataPropertyName = "Goods_Name"; - this.H_Goods_Name.HeaderText = "产品"; - this.H_Goods_Name.Name = "H_Goods_Name"; - this.H_Goods_Name.ReadOnly = true; - // - // H_Weight - // - this.H_Weight.DataPropertyName = "Weight"; - dataGridViewCellStyle3.Format = "#0.######"; - this.H_Weight.DefaultCellStyle = dataGridViewCellStyle3; - this.H_Weight.HeaderText = "重量"; - this.H_Weight.Name = "H_Weight"; - this.H_Weight.ReadOnly = true; - // - // uLabel3 - // - this.uLabel3.AutoSize = true; - this.uLabel3.BackColor = System.Drawing.Color.White; - this.uLabel3.Font = new System.Drawing.Font("宋体", 12F); - this.uLabel3.Location = new System.Drawing.Point(8, 0); - this.uLabel3.Name = "uLabel3"; - this.uLabel3.Size = new System.Drawing.Size(72, 16); - this.uLabel3.TabIndex = 1; - this.uLabel3.Text = "生产历史"; - // - // groupBox2 - // - this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.groupBox2.Controls.Add(this.taskDataGrid); - this.groupBox2.Controls.Add(this.GoodsLabel); - this.groupBox2.Location = new System.Drawing.Point(9, 8); - this.groupBox2.Name = "groupBox2"; - this.groupBox2.Padding = new System.Windows.Forms.Padding(5); - this.groupBox2.Size = new System.Drawing.Size(533, 120); - this.groupBox2.TabIndex = 4; - this.groupBox2.TabStop = false; - // - // taskDataGrid - // - this.taskDataGrid.AllowUserToAddRows = false; - this.taskDataGrid.AllowUserToDeleteRows = false; - this.taskDataGrid.AllowUserToResizeColumns = false; - this.taskDataGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.taskDataGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5; - this.taskDataGrid.BackgroundColor = System.Drawing.Color.White; - this.taskDataGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 12F); - dataGridViewCellStyle6.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.taskDataGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6; - this.taskDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.taskDataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.T_Item, - this.T_Need, - this.T_Done, - this.T_Last}); - this.taskDataGrid.Dock = System.Windows.Forms.DockStyle.Fill; - this.taskDataGrid.Location = new System.Drawing.Point(5, 19); - this.taskDataGrid.MultiSelect = false; - this.taskDataGrid.Name = "taskDataGrid"; - this.taskDataGrid.ReadOnly = true; - this.taskDataGrid.RowHeadersVisible = false; - dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.taskDataGrid.RowsDefaultCellStyle = dataGridViewCellStyle10; - this.taskDataGrid.RowTemplate.Height = 23; - this.taskDataGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.taskDataGrid.Size = new System.Drawing.Size(523, 96); - this.taskDataGrid.TabIndex = 2; - // - // T_Item - // - this.T_Item.DataPropertyName = "Item"; - this.T_Item.HeaderText = "项目"; - this.T_Item.Name = "T_Item"; - this.T_Item.ReadOnly = true; - // - // T_Need - // - this.T_Need.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.T_Need.DataPropertyName = "Need"; - dataGridViewCellStyle7.Format = "#0.######"; - this.T_Need.DefaultCellStyle = dataGridViewCellStyle7; - this.T_Need.HeaderText = "订货"; - this.T_Need.Name = "T_Need"; - this.T_Need.ReadOnly = true; - // - // T_Done - // - this.T_Done.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.T_Done.DataPropertyName = "Done"; - dataGridViewCellStyle8.Format = "#0.######"; - this.T_Done.DefaultCellStyle = dataGridViewCellStyle8; - this.T_Done.HeaderText = "完工"; - this.T_Done.Name = "T_Done"; - this.T_Done.ReadOnly = true; - // - // T_Last - // - this.T_Last.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.T_Last.DataPropertyName = "Last"; - dataGridViewCellStyle9.Format = "#0.######"; - this.T_Last.DefaultCellStyle = dataGridViewCellStyle9; - this.T_Last.HeaderText = "剩余"; - this.T_Last.Name = "T_Last"; - this.T_Last.ReadOnly = true; - // - // GoodsLabel - // - this.GoodsLabel.AutoSize = true; - this.GoodsLabel.BackColor = System.Drawing.Color.White; - this.GoodsLabel.Font = new System.Drawing.Font("宋体", 12F); - this.GoodsLabel.ForeColor = System.Drawing.Color.Red; - this.GoodsLabel.Location = new System.Drawing.Point(8, 0); - this.GoodsLabel.Name = "GoodsLabel"; - this.GoodsLabel.Size = new System.Drawing.Size(72, 16); - this.GoodsLabel.TabIndex = 1; - this.GoodsLabel.Text = "存货名称"; - // - // trunOutBtn - // - this.trunOutBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.trunOutBtn.AsClicked = false; - this.trunOutBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("trunOutBtn.BackgroundImage"))); - this.trunOutBtn.EnableGroup = false; - this.trunOutBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.trunOutBtn.FlatAppearance.BorderSize = 0; - this.trunOutBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.trunOutBtn.Font = new System.Drawing.Font("宋体", 15F); - this.trunOutBtn.ForeColor = System.Drawing.Color.Black; - this.trunOutBtn.Location = new System.Drawing.Point(433, 7); - this.trunOutBtn.Name = "trunOutBtn"; - this.trunOutBtn.PlaySound = false; - this.trunOutBtn.SelfControlEnable = false; - this.trunOutBtn.Size = new System.Drawing.Size(111, 34); - this.trunOutBtn.SoundType = WinFormControl.SoundType.Click; - this.trunOutBtn.TabIndex = 22; - this.trunOutBtn.Text = "挂起"; - this.trunOutBtn.UseVisualStyleBackColor = true; - this.trunOutBtn.WithStataHode = false; - this.trunOutBtn.Click += new System.EventHandler(this.trunOutBtn_Click); - // - // flowLayoutPanel2 - // - this.flowLayoutPanel2.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.flowLayoutPanel2.AutoScroll = true; - this.flowLayoutPanel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.flowLayoutPanel2.Location = new System.Drawing.Point(-3, 125); - this.flowLayoutPanel2.Name = "flowLayoutPanel2"; - this.flowLayoutPanel2.Size = new System.Drawing.Size(670, 384); - this.flowLayoutPanel2.TabIndex = 21; - // - // switchBtn - // - this.switchBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.switchBtn.AsClicked = false; - this.switchBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("switchBtn.BackgroundImage"))); - this.switchBtn.EnableGroup = false; - this.switchBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.switchBtn.FlatAppearance.BorderSize = 0; - this.switchBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.switchBtn.Font = new System.Drawing.Font("宋体", 15F); - this.switchBtn.ForeColor = System.Drawing.Color.Black; - this.switchBtn.Location = new System.Drawing.Point(551, 7); - this.switchBtn.Name = "switchBtn"; - this.switchBtn.PlaySound = false; - this.switchBtn.SelfControlEnable = false; - this.switchBtn.Size = new System.Drawing.Size(111, 34); - this.switchBtn.SoundType = WinFormControl.SoundType.Click; - this.switchBtn.TabIndex = 20; - this.switchBtn.Text = "切换"; - this.switchBtn.UseVisualStyleBackColor = true; - this.switchBtn.WithStataHode = false; - this.switchBtn.Click += new System.EventHandler(this.switchBtn_Click); - // - // goodsSetBtn - // - this.goodsSetBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.goodsSetBtn.AsClicked = false; - this.goodsSetBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("goodsSetBtn.BackgroundImage"))); - this.goodsSetBtn.EnableGroup = false; - this.goodsSetBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.goodsSetBtn.FlatAppearance.BorderSize = 0; - this.goodsSetBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.goodsSetBtn.Font = new System.Drawing.Font("宋体", 15F); - this.goodsSetBtn.ForeColor = System.Drawing.Color.Black; - this.goodsSetBtn.Location = new System.Drawing.Point(551, 52); - this.goodsSetBtn.Name = "goodsSetBtn"; - this.goodsSetBtn.PlaySound = false; - this.goodsSetBtn.SelfControlEnable = false; - this.goodsSetBtn.Size = new System.Drawing.Size(111, 62); - this.goodsSetBtn.SoundType = WinFormControl.SoundType.Click; - this.goodsSetBtn.TabIndex = 18; - this.goodsSetBtn.Text = "产品设置"; - this.goodsSetBtn.UseVisualStyleBackColor = true; - this.goodsSetBtn.WithStataHode = false; - this.goodsSetBtn.Click += new System.EventHandler(this.goodsSetBtn_Click); - // - // endBtn - // - this.endBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.endBtn.AsClicked = false; - this.endBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("endBtn.BackgroundImage"))); - this.endBtn.EnableGroup = false; - this.endBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.endBtn.FlatAppearance.BorderSize = 0; - this.endBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.endBtn.Font = new System.Drawing.Font("宋体", 15F); - this.endBtn.ForeColor = System.Drawing.Color.Black; - this.endBtn.Location = new System.Drawing.Point(315, 7); - this.endBtn.Name = "endBtn"; - this.endBtn.PlaySound = false; - this.endBtn.SelfControlEnable = true; - this.endBtn.Size = new System.Drawing.Size(111, 34); - this.endBtn.SoundType = WinFormControl.SoundType.Click; - this.endBtn.TabIndex = 18; - this.endBtn.Text = "结束"; - this.endBtn.UseVisualStyleBackColor = true; - this.endBtn.WithStataHode = false; - this.endBtn.Click += new System.EventHandler(this.endBtn_Click); - // - // flowLayoutPanel1 - // - this.flowLayoutPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.flowLayoutPanel1.Location = new System.Drawing.Point(-3, 49); - this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Size = new System.Drawing.Size(547, 70); - this.flowLayoutPanel1.TabIndex = 0; - // - // startBtn - // - this.startBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.startBtn.AsClicked = false; - this.startBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("startBtn.BackgroundImage"))); - this.startBtn.EnableGroup = false; - this.startBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.startBtn.FlatAppearance.BorderSize = 0; - this.startBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.startBtn.Font = new System.Drawing.Font("宋体", 15F); - this.startBtn.ForeColor = System.Drawing.Color.Black; - this.startBtn.Location = new System.Drawing.Point(197, 7); - this.startBtn.Name = "startBtn"; - this.startBtn.PlaySound = false; - this.startBtn.SelfControlEnable = true; - this.startBtn.Size = new System.Drawing.Size(111, 34); - this.startBtn.SoundType = WinFormControl.SoundType.Click; - this.startBtn.TabIndex = 17; - this.startBtn.Text = "开始"; - this.startBtn.UseVisualStyleBackColor = true; - this.startBtn.WithStataHode = false; - this.startBtn.Click += new System.EventHandler(this.startBtn_Click); - // - // netStateWatch1 - // - this.netStateWatch1.BackColor = System.Drawing.Color.Transparent; - this.netStateWatch1.Location = new System.Drawing.Point(359, 2); - this.netStateWatch1.Name = "netStateWatch1"; - this.netStateWatch1.Size = new System.Drawing.Size(90, 39); - this.netStateWatch1.TabIndex = 1; - // - // SegmentProductionForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1226, 602); - this.Controls.Add(this.splitContainer1); - this.Name = "SegmentProductionForm"; - this.Text = "分割品车间称重计数"; - this.WindowState = System.Windows.Forms.FormWindowState.Maximized; - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel1.PerformLayout(); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - this.groupBox1.ResumeLayout(false); - this.groupBox1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.historyDataGrid)).EndInit(); - this.groupBox2.ResumeLayout(false); - this.groupBox2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.taskDataGrid)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.SplitContainer splitContainer1; - private WinFormControl.UWeightControl uWeightControl1; - private WinFormControl.UButton closeBtn; - private WinFormControl.UTimerLabel uTimerLabel1; - private System.Windows.Forms.ComboBox productBatchSelect; - private System.Windows.Forms.ComboBox workUnitSelect; - private WinFormControl.ULabel uLabel1; - private WinFormControl.ULabel uLabel2; - private System.Windows.Forms.CheckBox barPrintCheck; - private WinFormControl.UButton switchBtn; - private WinFormControl.UButton endBtn; - private WinFormControl.UButton startBtn; - private System.Windows.Forms.SplitContainer splitContainer2; - private WinFormControl.UButton goodsSetBtn; - private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; - private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2; - private System.Windows.Forms.GroupBox groupBox2; - private WinFormControl.UDataGridView taskDataGrid; - private WinFormControl.ULabel GoodsLabel; - private System.Windows.Forms.GroupBox groupBox1; - private WinFormControl.UDataGridView historyDataGrid; - private WinFormControl.ULabel uLabel3; - private WinFormControl.UButton submitBtn; - private WinFormControl.UButton deleteBtn; - private WinFormControl.UButton rePrintBtn; - private System.Windows.Forms.DataGridViewTextBoxColumn T_Item; - private System.Windows.Forms.DataGridViewTextBoxColumn T_Need; - private System.Windows.Forms.DataGridViewTextBoxColumn T_Done; - private System.Windows.Forms.DataGridViewTextBoxColumn T_Last; - private WinFormControl.UButton trunOutBtn; - private System.Windows.Forms.DataGridViewTextBoxColumn H_ID; - private System.Windows.Forms.DataGridViewTextBoxColumn H_RowIndex; - private System.Windows.Forms.DataGridViewTextBoxColumn H_BarCode; - private System.Windows.Forms.DataGridViewTextBoxColumn H_Goods_Name; - private System.Windows.Forms.DataGridViewTextBoxColumn H_Weight; - private WinFormControl.NetStateWatch netStateWatch1; - } -} \ No newline at end of file diff --git a/ButcherFactory.Form/SegmentProduction_/SegmentProductionForm.cs b/ButcherFactory.Form/SegmentProduction_/SegmentProductionForm.cs deleted file mode 100644 index 3231663..0000000 --- a/ButcherFactory.Form/SegmentProduction_/SegmentProductionForm.cs +++ /dev/null @@ -1,319 +0,0 @@ -using ButcherFactory.BO; -using ButcherFactory.BO.Rpcs; -using ButcherFactory.BO.Utils; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using ButcherFactory.Utils; -using ButcherFactory.BO.LocalBL; -using WinFormControl; -using ButcherFactory.Dialogs; - -namespace ButcherFactory.SegmentProduction_ -{ - public partial class SegmentProductionForm : Form, IWithRoleForm - { - public List RoleName - { - //get { return new List { (short)设备类别.分割生产 }; } - - get { return new List { -1 }; } - } - - public Form Generate() - { - return this; - } - - Thread uploadData; - BindingList historyList; - BindingList unSubmitList; - Dictionary> goodsSetDic; - long? workUnitID; - long? batchID; - DateTime? batchDate; - - void Start(bool start) - { - startBtn.Enabled = !start; - endBtn.Enabled = start; - } - //GroupID 标识有没有结束,同时是总码的标识。 - //TrunOutID 标识挂起,同时标识挂起的组。 点击挂起 或者切换,需要给该字段赋值,点击切换回来,需要清空 - public SegmentProductionForm() - { - InitializeComponent(); - netStateWatch1.GetConnectState = () => LoginUtil.TestConnection(500); - this.FormClosing += delegate - { - if (uploadData != null && uploadData.IsAlive) - uploadData.Abort(); - }; - workUnitSelect.SelectedIndexChanged += delegate - { - if (workUnitSelect.SelectedValue == null) - workUnitID = null; - else - workUnitID = (long)workUnitSelect.SelectedValue; - XmlUtil.SerializerObjToFile(new SegmentProductionFormConfig { WorkUnitID = workUnitID }); - }; - productBatchSelect.SelectedIndexChanged += delegate - { - if (productBatchSelect.SelectedValue == null) - { - batchID = null; - batchDate = null; - } - else - { - var entity = productBatchSelect.SelectedItem as ProductBatch; - batchID = entity.ID; - batchDate = entity.Date; - } - }; - } - - protected override void OnLoad(EventArgs e) - { - base.OnLoad(e); - var initTask = new Thread(LoadBind); - initTask.Start(); - - uploadData = new Thread(UpLoadLocalData); - uploadData.Start(); - } - - void LoadBind() - { - this.Invoke(new Action(() => - { - if (netStateWatch1.NetState) - { - BaseInfoSyncRpc.SyncGoodsByTag(ApplyClient.分割品); - BaseInfoSyncRpc.SyncBaseInfo(); - BaseInfoSyncRpc.SyncProductBatch(1); - } - productBatchSelect.EBindComboBox(x => x.Date == DateTime.Today, 6, "Date"); - var config = XmlUtil.DeserializeFromFile(); - var m = config.WorkUnitID; - workUnitSelect.EBindComboBox(x => x.ID == m, top: 100); - - BindGoods(); - BindGrid(); - })); - } - - void BindGoods() - { - goodsSetDic = FormClientGoodsSetBL.GetSelectedDetail(); - flowLayoutPanel1.Controls.Clear(); - flowLayoutPanel2.Controls.Clear(); - foreach (var item in goodsSetDic) - { - var btn = new UButton() { Width = 100, Height = 62, Text = item.Key, Font = new Font("宋体", 15), Margin = new Padding(15, 3, 15, 0), WithStataHode = true, EnableGroup = true }; - btn.Click += GroupGoodsSetClick; - flowLayoutPanel1.Controls.Add(btn); - } - } - - void GroupGoodsSetClick(object sender, EventArgs e) - { - flowLayoutPanel2.Controls.Clear(); - var groupBtn = sender as UButton; - var arr = goodsSetDic[groupBtn.Text]; - foreach (var item in arr) - { - var btn = new UButton() { Width = 127, Height = 75, Text = item.Goods_Name, Tag = item, Font = new Font("宋体", 15), Margin = new Padding(20, 10, 20, 35), PlaySound = true }; - btn.Click += GoodsBtnClick; - flowLayoutPanel2.Controls.Add(btn); - } - } - - void GoodsBtnClick(object sender, EventArgs e) - { - if (batchID == null) - throw new Exception("请先选择批次"); - var btn = sender as UButton; - var detail = btn.Tag as ClientGoodsSet_Detail; - var weight = uWeightControl1.Weight; - if (weight == 0) - throw new Exception("重量不能为0"); - if (detail.StandardWeight.HasValue) - { - if (weight < (detail.StandardWeightLow ?? 0) || weight > (detail.StandardWeightUp ?? 0)) - throw new Exception(string.Format("重量必须在{0:#0.######}-{1:#0.######}之间", detail.StandardWeightLow, detail.StandardWeightUp)); - weight = detail.StandardWeight.Value; - } - if (startBtn.Enabled) - Start(true); - var entity = SegmentProductionBL.Insert(detail.Goods_ID, weight, workUnitID, batchID.Value, batchDate.Value); - entity.Goods_Name = detail.Goods_Name; - entity.Goods_Spec = detail.Goods_Spec; - entity.MainUnit = detail.MainUnit; - entity.ShotPrintName = detail.ShotPrintName; - GoodsLabel.Text = entity.Goods_Name; - unSubmitList.Insert(0, entity); - historyList.Insert(0, entity); - if (historyList.Count > 100) - historyList.RemoveAt(100); - historyDataGrid.FirstDisplayedScrollingRowIndex = 0; - historyDataGrid.Refresh(); - if (barPrintCheck.Checked) - SegmentProductionPrint.Print(entity, batchDate, "",""); - } - - void BindGrid() - { - unSubmitList = SegmentProductionBL.GetListByState(false); - historyList = SegmentProductionBL.GetListByState(true); - foreach (var item in unSubmitList) - historyList.Insert(0, item); - - historyDataGrid.DataSource = historyList; - historyDataGrid.Refresh(); - - var first = unSubmitList.FirstOrDefault(x => x.GroupID == null && x.TrunOutID == null); - if (first == null) - Start(false); - else - { - GoodsLabel.Text = first.Goods_Name; - Start(true); - } - } - - void UpLoadLocalData() - { - while (true) - { - if (this.IsHandleCreated) - { - this.Invoke(new Action(() => - { - if (netStateWatch1.NetState) - SegmentProductionBL.UploadSegmentInfo(); - })); - } - Thread.Sleep(2000); - } - } - - private void closeBtn_Click(object sender, EventArgs e) - { - Close(); - } - - private void startBtn_Click(object sender, EventArgs e) - { - Start(true); - } - - private void endBtn_Click(object sender, EventArgs e) - { - var arr = unSubmitList.Where(x => x.GroupID == null && x.TrunOutID == null); - if (arr.Any()) - { - var groupID = SegmentProductionBL.SetListGroupID(arr.Select(x => x.ID)); - var bk = new List(); - foreach (var item in arr) - { - item.GroupID = groupID; - bk.Add(item); - } - Start(false); - if (barPrintCheck.Checked) - SegmentProductionPrint.PrintEnd(bk); - } - else - throw new Exception("本次开始之后未生产任何商品"); - } - - private void trunOutBtn_Click(object sender, EventArgs e) - { - var arr = unSubmitList.Where(x => x.GroupID == null && x.TrunOutID == null); - long id = 0; - if (arr.Any()) - { - id = arr.First().ID; - SegmentProductionBL.BatchUpdate(arr.Select(x => x.ID), new Tuple("TrunOutID", id)); - } - foreach (var item in arr) - item.TrunOutID = id; - GoodsLabel.Text = string.Empty; - Start(false); - } - - private void switchBtn_Click(object sender, EventArgs e) - { - trunOutBtn_Click(sender, e); - var arr = unSubmitList.Where(x => x.GroupID == null && x.TrunOutID.HasValue); - var r = new BindingList(); - foreach (var item in arr.GroupBy(x => x.TrunOutID)) - r.Add(item.First()); - var dialog = new TrunOutDialog(r); - if (dialog.ShowDialog() == DialogResult.OK) - { - var back = dialog.Back; - var targets = arr.Where(x => x.TrunOutID == back.TrunOutID); - SegmentProductionBL.TrunBack(targets.Select(x => x.ID)); - foreach (var item in targets) - item.TrunOutID = null; - GoodsLabel.Text = back.Goods_Name; - Start(true); - } - } - - private void goodsSetBtn_Click(object sender, EventArgs e) - { - new ClientGoodsSetDialog().ShowDialog(); - } - - private void rePrintBtn_Click(object sender, EventArgs e) - { - if (barPrintCheck.Checked) - { - if (historyDataGrid.CurrentRow == null) - throw new Exception("请先选择要补打的记录"); - var item = historyDataGrid.CurrentRow.DataBoundItem as SegmentProduction; - SegmentProductionPrint.Print(item, batchDate, "",""); - } - } - - private void deleteBtn_Click(object sender, EventArgs e) - { - if (historyDataGrid.CurrentRow == null) - throw new Exception("请先选中要删除的记录"); - var id = (long)historyDataGrid.CurrentRow.Cells[0].Value; - var first = unSubmitList.FirstOrDefault(x => x.ID == id && x.GroupID == null); - if (first == null) - throw new Exception("已结束,无法删除"); - if (MessageBox.Show(string.Format("确认删除{0} {1}的记录?", first.RowIndex, first.Goods_Name), "删除确认", MessageBoxButtons.OKCancel) == DialogResult.OK) - { - var item = historyDataGrid.CurrentRow.DataBoundItem as SegmentProduction; - SegmentProductionBL.SetAsDelete(item.ID, item.BarCode); - unSubmitList.Remove(first); - historyList.Remove(first); - historyDataGrid.Refresh(); - } - } - - private void submitBtn_Click(object sender, EventArgs e) - { - var arrs = unSubmitList.Where(x => x.GroupID.HasValue).ToList(); - if (arrs.Any()) - { - SegmentProductionBL.BatchUpdate(arrs.Select(x => x.ID), new Tuple("Submited", true)); - foreach (var item in arrs) - unSubmitList.Remove(item); - } - UMessageBox.Show("已提交"); - } - } -} diff --git a/ButcherFactory.Form/SegmentProduction_/SegmentProductionForm.resx b/ButcherFactory.Form/SegmentProduction_/SegmentProductionForm.resx deleted file mode 100644 index dd31395..0000000 --- a/ButcherFactory.Form/SegmentProduction_/SegmentProductionForm.resx +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - True - - - True - - - True - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - \ No newline at end of file diff --git a/ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.Designer.cs b/ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.Designer.cs deleted file mode 100644 index 73fa433..0000000 --- a/ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.Designer.cs +++ /dev/null @@ -1,168 +0,0 @@ -namespace ButcherFactory.SegmentSaleOut_ -{ - partial class AddWeightRecord - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.cancelBtn = new ButcherFactory.Controls.ColorButton(); - this.okBtn = new ButcherFactory.Controls.ColorButton(); - this.numberInput = new WinFormControl.UTextBoxWithPad(); - this.weightInput = new WinFormControl.UTextBoxWithPad(); - this.goodsLabel = new WinFormControl.ULabel(); - this.uLabel3 = new WinFormControl.ULabel(); - this.uLabel2 = new WinFormControl.ULabel(); - this.uLabel1 = new WinFormControl.ULabel(); - this.SuspendLayout(); - // - // cancelBtn - // - this.cancelBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); - this.cancelBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.cancelBtn.ForeColor = System.Drawing.Color.White; - this.cancelBtn.Location = new System.Drawing.Point(375, 259); - this.cancelBtn.Name = "cancelBtn"; - this.cancelBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); - this.cancelBtn.Size = new System.Drawing.Size(92, 40); - this.cancelBtn.TabIndex = 17; - this.cancelBtn.Text = "取消"; - this.cancelBtn.UseVisualStyleBackColor = false; - this.cancelBtn.Click += new System.EventHandler(this.cancelBtn_Click); - // - // okBtn - // - this.okBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(194)))), ((int)(((byte)(76))))); - this.okBtn.Font = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.okBtn.ForeColor = System.Drawing.Color.White; - this.okBtn.Location = new System.Drawing.Point(231, 259); - this.okBtn.Name = "okBtn"; - this.okBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); - this.okBtn.Size = new System.Drawing.Size(92, 40); - this.okBtn.TabIndex = 16; - this.okBtn.Text = "确定"; - this.okBtn.UseVisualStyleBackColor = false; - this.okBtn.Click += new System.EventHandler(this.okBtn_Click); - // - // numberInput - // - this.numberInput.Font = new System.Drawing.Font("宋体", 20F); - this.numberInput.Location = new System.Drawing.Point(228, 99); - this.numberInput.Name = "numberInput"; - this.numberInput.Size = new System.Drawing.Size(242, 38); - this.numberInput.TabIndex = 11; - this.numberInput.Type = WinFormControl.UTextBoxWithPad.TextBoxType.Number; - this.numberInput.Click += new System.EventHandler(this.weightInput_Click); - // - // weightInput - // - this.weightInput.Font = new System.Drawing.Font("宋体", 20F); - this.weightInput.Location = new System.Drawing.Point(228, 175); - this.weightInput.Name = "weightInput"; - this.weightInput.Size = new System.Drawing.Size(242, 38); - this.weightInput.TabIndex = 13; - this.weightInput.Type = WinFormControl.UTextBoxWithPad.TextBoxType.Number; - this.weightInput.Click += new System.EventHandler(this.weightInput_Click); - // - // goodsLabel - // - this.goodsLabel.AutoSize = true; - this.goodsLabel.BackColor = System.Drawing.Color.Transparent; - this.goodsLabel.Font = new System.Drawing.Font("宋体", 15F); - this.goodsLabel.ForeColor = System.Drawing.Color.Red; - this.goodsLabel.Location = new System.Drawing.Point(227, 43); - this.goodsLabel.Name = "goodsLabel"; - this.goodsLabel.Size = new System.Drawing.Size(49, 20); - this.goodsLabel.TabIndex = 14; - this.goodsLabel.Text = "存货"; - // - // uLabel3 - // - this.uLabel3.AutoSize = true; - this.uLabel3.BackColor = System.Drawing.Color.Transparent; - this.uLabel3.Font = new System.Drawing.Font("宋体", 12F); - this.uLabel3.Location = new System.Drawing.Point(107, 184); - this.uLabel3.Name = "uLabel3"; - this.uLabel3.Size = new System.Drawing.Size(80, 16); - this.uLabel3.TabIndex = 12; - this.uLabel3.Text = "重 量:"; - // - // uLabel2 - // - this.uLabel2.AutoSize = true; - this.uLabel2.BackColor = System.Drawing.Color.Transparent; - this.uLabel2.Font = new System.Drawing.Font("宋体", 12F); - this.uLabel2.Location = new System.Drawing.Point(110, 111); - this.uLabel2.Name = "uLabel2"; - this.uLabel2.Size = new System.Drawing.Size(80, 16); - this.uLabel2.TabIndex = 10; - this.uLabel2.Text = "数 量:"; - // - // uLabel1 - // - this.uLabel1.AutoSize = true; - this.uLabel1.BackColor = System.Drawing.Color.Transparent; - this.uLabel1.Font = new System.Drawing.Font("宋体", 12F); - this.uLabel1.Location = new System.Drawing.Point(110, 43); - this.uLabel1.Name = "uLabel1"; - this.uLabel1.Size = new System.Drawing.Size(88, 16); - this.uLabel1.TabIndex = 9; - this.uLabel1.Text = "存货名称:"; - // - // AddWeightRecord - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(582, 357); - this.ControlBox = false; - this.Controls.Add(this.cancelBtn); - this.Controls.Add(this.okBtn); - this.Controls.Add(this.numberInput); - this.Controls.Add(this.weightInput); - this.Controls.Add(this.goodsLabel); - this.Controls.Add(this.uLabel3); - this.Controls.Add(this.uLabel2); - this.Controls.Add(this.uLabel1); - this.Name = "AddWeightRecord"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "新增"; - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private Controls.ColorButton cancelBtn; - private Controls.ColorButton okBtn; - private WinFormControl.UTextBoxWithPad numberInput; - private WinFormControl.UTextBoxWithPad weightInput; - private WinFormControl.ULabel goodsLabel; - private WinFormControl.ULabel uLabel3; - private WinFormControl.ULabel uLabel2; - private WinFormControl.ULabel uLabel1; - } -} \ No newline at end of file diff --git a/ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.cs b/ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.cs deleted file mode 100644 index 67f3cc4..0000000 --- a/ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.cs +++ /dev/null @@ -1,66 +0,0 @@ -using ButcherFactory.BO; -using ButcherFactory.BO.LocalBL; -using ButcherFactory.BO.Utils; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; -using WinFormControl; - -namespace ButcherFactory.SegmentSaleOut_ -{ - public partial class AddWeightRecord : Form - { - SaleOutStore_Detail mDetail; - long? mBatchID = null; - public AddWeightRecord(SaleOutStore_Detail detail, long? batchID) - { - InitializeComponent(); - mDetail = detail; - mBatchID = batchID; - goodsLabel.Text = mDetail.Goods_Name; - } - - private void okBtn_Click(object sender, EventArgs e) - { - decimal weight = 0; - if (!decimal.TryParse(weightInput.Text, out weight)) - throw new Exception("请输入重量"); - decimal number = 0; - if (!decimal.TryParse(numberInput.Text, out number)) - throw new Exception("请输入数量"); - if (number < 0) - throw new Exception("数量不能为负"); - var record = new SegmentSaleOut_Detail(); - record.BillID = mDetail.SaleOutStore_ID; - record.DetailID = mDetail.ID; - record.ProductBatch_ID = mBatchID; - record.Goods_Code = mDetail.Goods_Code; - record.Goods_ID = mDetail.Goods_ID; - record.Goods_Name = mDetail.Goods_Name; - record.Number = weight; - record.SecondNumber = number; - record.Operator = AppContext.Worker.Name; - - SegmentSaleOutBL.AddAndUpdate(record); - DialogResult = DialogResult.OK; - } - - private void cancelBtn_Click(object sender, EventArgs e) - { - this.Close(); - } - - private void weightInput_Click(object sender, EventArgs e) - { - var keyBoard = new NumberPad(); - if (keyBoard.ShowDialog() == true) - (sender as TextBox).Text = keyBoard.Result; - } - } -} diff --git a/ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.resx b/ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.resx deleted file mode 100644 index 1af7de1..0000000 --- a/ButcherFactory.Form/SegmentSaleOut_/AddWeightRecord.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - \ No newline at end of file diff --git a/ButcherFactory.Form/SegmentSaleOut_/DiscontSetDialog.Designer.cs b/ButcherFactory.Form/SegmentSaleOut_/DiscontSetDialog.Designer.cs deleted file mode 100644 index 2c07a6d..0000000 --- a/ButcherFactory.Form/SegmentSaleOut_/DiscontSetDialog.Designer.cs +++ /dev/null @@ -1,180 +0,0 @@ -namespace ButcherFactory.SegmentSaleOut_ -{ - partial class DiscontSetDialog - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.lbl1 = new System.Windows.Forms.Label(); - this.lbl2 = new System.Windows.Forms.Label(); - this.lbl3 = new System.Windows.Forms.Label(); - this.lbl4 = new System.Windows.Forms.Label(); - this.okBtn = new ButcherFactory.Controls.ColorButton(); - this.SuspendLayout(); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("宋体", 12F); - this.label1.Location = new System.Drawing.Point(72, 32); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(56, 16); - this.label1.TabIndex = 0; - this.label1.Text = "扣重一"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Font = new System.Drawing.Font("宋体", 12F); - this.label2.Location = new System.Drawing.Point(72, 87); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(56, 16); - this.label2.TabIndex = 1; - this.label2.Text = "扣重二"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Font = new System.Drawing.Font("宋体", 12F); - this.label3.Location = new System.Drawing.Point(72, 144); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(56, 16); - this.label3.TabIndex = 2; - this.label3.Text = "扣重三"; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Font = new System.Drawing.Font("宋体", 12F); - this.label4.Location = new System.Drawing.Point(72, 201); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(56, 16); - this.label4.TabIndex = 3; - this.label4.Text = "扣重四"; - // - // lbl1 - // - this.lbl1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.lbl1.Font = new System.Drawing.Font("黑体", 12F); - this.lbl1.ForeColor = System.Drawing.Color.Red; - this.lbl1.Location = new System.Drawing.Point(161, 29); - this.lbl1.Name = "lbl1"; - this.lbl1.Size = new System.Drawing.Size(100, 30); - this.lbl1.TabIndex = 4; - this.lbl1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.lbl1.Click += new System.EventHandler(this.lbl1_Click); - // - // lbl2 - // - this.lbl2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.lbl2.Font = new System.Drawing.Font("黑体", 12F); - this.lbl2.ForeColor = System.Drawing.Color.Red; - this.lbl2.Location = new System.Drawing.Point(161, 84); - this.lbl2.Name = "lbl2"; - this.lbl2.Size = new System.Drawing.Size(100, 30); - this.lbl2.TabIndex = 5; - this.lbl2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.lbl2.Click += new System.EventHandler(this.lbl1_Click); - // - // lbl3 - // - this.lbl3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.lbl3.Font = new System.Drawing.Font("黑体", 12F); - this.lbl3.ForeColor = System.Drawing.Color.Red; - this.lbl3.Location = new System.Drawing.Point(161, 141); - this.lbl3.Name = "lbl3"; - this.lbl3.Size = new System.Drawing.Size(100, 30); - this.lbl3.TabIndex = 6; - this.lbl3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.lbl3.Click += new System.EventHandler(this.lbl1_Click); - // - // lbl4 - // - this.lbl4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.lbl4.Font = new System.Drawing.Font("黑体", 12F); - this.lbl4.ForeColor = System.Drawing.Color.Red; - this.lbl4.Location = new System.Drawing.Point(161, 198); - this.lbl4.Name = "lbl4"; - this.lbl4.Size = new System.Drawing.Size(100, 30); - this.lbl4.TabIndex = 7; - this.lbl4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.lbl4.Click += new System.EventHandler(this.lbl1_Click); - // - // okBtn - // - this.okBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); - this.okBtn.Font = new System.Drawing.Font("宋体", 12F); - this.okBtn.ForeColor = System.Drawing.Color.White; - this.okBtn.Location = new System.Drawing.Point(119, 271); - this.okBtn.Name = "okBtn"; - this.okBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); - this.okBtn.Size = new System.Drawing.Size(98, 43); - this.okBtn.TabIndex = 8; - this.okBtn.Text = "确定"; - this.okBtn.UseVisualStyleBackColor = false; - this.okBtn.Click += new System.EventHandler(this.okBtn_Click); - // - // DiscontSetDialog - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(343, 343); - this.ControlBox = false; - this.Controls.Add(this.okBtn); - this.Controls.Add(this.lbl4); - this.Controls.Add(this.lbl3); - this.Controls.Add(this.lbl2); - this.Controls.Add(this.lbl1); - this.Controls.Add(this.label4); - this.Controls.Add(this.label3); - this.Controls.Add(this.label2); - this.Controls.Add(this.label1); - this.Name = "DiscontSetDialog"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "扣重设置"; - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label lbl1; - private System.Windows.Forms.Label lbl2; - private System.Windows.Forms.Label lbl3; - private System.Windows.Forms.Label lbl4; - private Controls.ColorButton okBtn; - } -} \ No newline at end of file diff --git a/ButcherFactory.Form/SegmentSaleOut_/DiscontSetDialog.cs b/ButcherFactory.Form/SegmentSaleOut_/DiscontSetDialog.cs deleted file mode 100644 index 4303a83..0000000 --- a/ButcherFactory.Form/SegmentSaleOut_/DiscontSetDialog.cs +++ /dev/null @@ -1,69 +0,0 @@ -using ButcherFactory.BO.Utils; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; -using WinFormControl; - -namespace ButcherFactory.SegmentSaleOut_ -{ - public partial class DiscontSetDialog : Form - { - public string disCont = string.Empty; - SegmentSaleOutFormConfig config; - List