Przeglądaj źródła

添加界面删除条码

callm 1 rok temu
rodzic
commit
71e7b2dfdd

+ 0 - 10
UAS_BARCODEIO/Properties/Resources.Designer.cs

@@ -130,16 +130,6 @@ namespace UAS_BARCODEIO.Properties {
             }
         }
         
-        /// <summary>
-        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
-        /// </summary>
-        public static System.Drawing.Bitmap _5600c803afc2d {
-            get {
-                object obj = ResourceManager.GetObject("_5600c803afc2d", resourceCulture);
-                return ((System.Drawing.Bitmap)(obj));
-            }
-        }
-        
         /// <summary>
         ///   查找 System.Drawing.Bitmap 类型的本地化资源。
         /// </summary>

+ 0 - 3
UAS_BARCODEIO/Properties/Resources.resx

@@ -388,9 +388,6 @@
   <data name="_46" type="System.Resources.ResXFileRef, System.Windows.Forms">
     <value>..\Resources\46.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
   </data>
-  <data name="_5600c803afc2d" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resources\5600c803afc2d.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
   <data name="_83" type="System.Resources.ResXFileRef, System.Windows.Forms">
     <value>..\Resources\83.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
   </data>

BIN
UAS_BARCODEIO/Resources/5600c803afc2d.png


+ 0 - 3
UAS_BARCODEIO/UAS_BARCODEIO.csproj

@@ -273,9 +273,6 @@
   <ItemGroup>
     <None Include="Resources\46.gif" />
   </ItemGroup>
-  <ItemGroup>
-    <None Include="Resources\5600c803afc2d.png" />
-  </ItemGroup>
   <ItemGroup>
     <None Include="Resources\83.gif" />
   </ItemGroup>

+ 13 - 0
UAS_BARCODEIO/入库条码规则解析.Designer.cs

@@ -75,6 +75,7 @@
             this.label10 = new System.Windows.Forms.Label();
             this.es_custcode = new UAS_BARCODEIO.SearchTextBox();
             this.PrintStockBarCode = new System.Windows.Forms.Button();
+            this.DeletaBarcode = new System.Windows.Forms.Button();
             ((System.ComponentModel.ISupportInitialize)(this.Prodiodetail)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.BarcodeIO)).BeginInit();
             this.SuspendLayout();
@@ -550,11 +551,22 @@
             this.PrintStockBarCode.UseVisualStyleBackColor = true;
             this.PrintStockBarCode.Click += new System.EventHandler(this.PrintStockBarCode_Click);
             // 
+            // DeletaBarcode
+            // 
+            this.DeletaBarcode.Location = new System.Drawing.Point(1922, 501);
+            this.DeletaBarcode.Name = "DeletaBarcode";
+            this.DeletaBarcode.Size = new System.Drawing.Size(169, 45);
+            this.DeletaBarcode.TabIndex = 47;
+            this.DeletaBarcode.Text = "删除条码";
+            this.DeletaBarcode.UseVisualStyleBackColor = true;
+            this.DeletaBarcode.Click += new System.EventHandler(this.DeletaBarcode_Click);
+            // 
             // 入库条码规则解析
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.ClientSize = new System.Drawing.Size(2136, 1338);
+            this.Controls.Add(this.DeletaBarcode);
             this.Controls.Add(this.PrintStockBarCode);
             this.Controls.Add(this.pr_orispeccode3);
             this.Controls.Add(this.label10);
@@ -647,6 +659,7 @@
         private System.Windows.Forms.TextBox pr_orispeccode3;
         private System.Windows.Forms.Label label10;
         private System.Windows.Forms.Button PrintStockBarCode;
+        private System.Windows.Forms.Button DeletaBarcode;
     }
 }
 

+ 13 - 0
UAS_BARCODEIO/入库条码规则解析.cs

@@ -162,6 +162,7 @@ namespace UAS_BARCODEIO
                 INQTY.Text = outqty;
                 LOTNO.Text = lotno;
                 pr_orispeccode3.Text = spec;
+                Barcode.Clear();
             }
         }
         bool AutoSized = false;
@@ -458,5 +459,17 @@ namespace UAS_BARCODEIO
             库存条码打印 form = new 库存条码打印();
             form.ShowDialog();
         }
+
+        private void DeletaBarcode_Click(object sender, EventArgs e)
+        {
+            for (int i = 0; i < BarcodeIO.Rows.Count; i++)
+            {
+                if (BarcodeIO.Rows[i].Cells["CheckBox"].FormattedValue != null && BarcodeIO.Rows[i].Cells["CheckBox"].FormattedValue.ToString() == "True")
+                {
+                    dh.ExecuteSql("delete from barcodeio where bi_barcode='" + BarcodeIO.Rows[i].Cells["bi_barcode"].Value.ToString() + "'", "delete");
+                }
+            }
+            LoadBarcodeioData(PR_CODE.Text);
+        }
     }
 }