瀏覽代碼

出货清单打印

callm 1 年之前
父節點
當前提交
eb1500d129

+ 2 - 2
UAS_BARCODEIO/DataHelper.cs

@@ -13,9 +13,9 @@ namespace UAS_BARCODEIO
         ////用户选择的数据库的连接字符串
         //public static string DBConnectionString = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=SENGWILL;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=sengwill.hicp.net)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
 
-        private string ConnectionStrings = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=N_JICE_ZS;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.1.81.208)(PORT=11681)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
+        private string ConnectionStrings = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=N_JICE_ZS;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.9.2)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
         //用户选择的数据库的连接字符串
-        public static string DBConnectionString = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=N_JICE_ZS;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.1.81.208)(PORT=11681)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
+        public static string DBConnectionString = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=N_JICE_ZS;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.9.2)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
 
         public static OracleConnection connection = null;
         OracleCommand command = null;

+ 44 - 44
UAS_BARCODEIO/极测_出货清单打印.Designer.cs

@@ -32,9 +32,6 @@
             this.label9 = new System.Windows.Forms.Label();
             this.ChooseAll = new System.Windows.Forms.Button();
             this.BarcodeIO = new System.Windows.Forms.DataGridView();
-            this.PrintBarCode = new System.Windows.Forms.Button();
-            this.label3 = new System.Windows.Forms.Label();
-            this.spl_code = new UAS_BARCODEIO.SearchTextBox();
             this.CheckBox = new System.Windows.Forms.DataGridViewCheckBoxColumn();
             this.spld_detno = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.spld_module = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -49,6 +46,9 @@
             this.spld_sncode = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.spld_wjqty = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.spld_remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.PrintBarCode = new System.Windows.Forms.Button();
+            this.label3 = new System.Windows.Forms.Label();
+            this.spl_code = new UAS_BARCODEIO.SearchTextBox();
             ((System.ComponentModel.ISupportInitialize)(this.BarcodeIO)).BeginInit();
             this.SuspendLayout();
             // 
@@ -109,47 +109,6 @@
             this.BarcodeIO.Size = new System.Drawing.Size(2087, 1215);
             this.BarcodeIO.TabIndex = 35;
             // 
-            // PrintBarCode
-            // 
-            this.PrintBarCode.Location = new System.Drawing.Point(1230, 35);
-            this.PrintBarCode.Name = "PrintBarCode";
-            this.PrintBarCode.Size = new System.Drawing.Size(169, 45);
-            this.PrintBarCode.TabIndex = 36;
-            this.PrintBarCode.Text = "打印条码";
-            this.PrintBarCode.UseVisualStyleBackColor = true;
-            this.PrintBarCode.Click += new System.EventHandler(this.PrintBarCode_Click);
-            // 
-            // label3
-            // 
-            this.label3.AutoSize = true;
-            this.label3.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label3.Location = new System.Drawing.Point(37, 38);
-            this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
-            this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(133, 38);
-            this.label3.TabIndex = 40;
-            this.label3.Text = "单据编号";
-            // 
-            // spl_code
-            // 
-            this.spl_code.AllPower = null;
-            this.spl_code.Caller = null;
-            this.spl_code.Condition = null;
-            this.spl_code.DBTitle = null;
-            this.spl_code.FormName = null;
-            this.spl_code.Location = new System.Drawing.Point(178, 38);
-            this.spl_code.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
-            this.spl_code.Name = "spl_code";
-            this.spl_code.Power = null;
-            this.spl_code.ReturnData = null;
-            this.spl_code.SelectField = null;
-            this.spl_code.SetValueField = null;
-            this.spl_code.Size = new System.Drawing.Size(436, 35);
-            this.spl_code.TabIndex = 41;
-            this.spl_code.TableName = null;
-            this.spl_code.TextBoxEnable = false;
-            this.spl_code.UserControlTextChanged += new UAS_BARCODEIO.SearchTextBox.OnTextChange(this.spl_code_UserControlTextChanged);
-            // 
             // CheckBox
             // 
             this.CheckBox.DataPropertyName = "CheckBox";
@@ -262,6 +221,47 @@
             this.spld_remark.Name = "spld_remark";
             this.spld_remark.Width = 200;
             // 
+            // PrintBarCode
+            // 
+            this.PrintBarCode.Location = new System.Drawing.Point(1234, 34);
+            this.PrintBarCode.Name = "PrintBarCode";
+            this.PrintBarCode.Size = new System.Drawing.Size(169, 45);
+            this.PrintBarCode.TabIndex = 36;
+            this.PrintBarCode.Text = "打印条码";
+            this.PrintBarCode.UseVisualStyleBackColor = true;
+            this.PrintBarCode.Click += new System.EventHandler(this.PrintBarCode_Click);
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label3.Location = new System.Drawing.Point(37, 38);
+            this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(133, 38);
+            this.label3.TabIndex = 40;
+            this.label3.Text = "单据编号";
+            // 
+            // spl_code
+            // 
+            this.spl_code.AllPower = null;
+            this.spl_code.Caller = null;
+            this.spl_code.Condition = null;
+            this.spl_code.DBTitle = null;
+            this.spl_code.FormName = null;
+            this.spl_code.Location = new System.Drawing.Point(178, 38);
+            this.spl_code.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
+            this.spl_code.Name = "spl_code";
+            this.spl_code.Power = null;
+            this.spl_code.ReturnData = null;
+            this.spl_code.SelectField = null;
+            this.spl_code.SetValueField = null;
+            this.spl_code.Size = new System.Drawing.Size(436, 35);
+            this.spl_code.TabIndex = 41;
+            this.spl_code.TableName = null;
+            this.spl_code.TextBoxEnable = false;
+            this.spl_code.UserControlTextChanged += new UAS_BARCODEIO.SearchTextBox.OnTextChange(this.spl_code_UserControlTextChanged);
+            // 
             // 极测_出货清单打印
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);

+ 1 - 1
UAS_BARCODEIO/极测_出货清单打印.cs

@@ -136,7 +136,7 @@ namespace UAS_BARCODEIO
                     format.SubStrings["DC"].Value = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
 
                     dh.ExecuteSql("insert into prodiobarcode(pib_id,pib_prodcode,pib_inoutno,pib_barcode,pib_indate,pib_qty)" +
-                        "values(prodiobarcode_seq.nextval,'" + BarcodeIO.Rows[i].Cells["spld_prodspec"].Value.ToString() + "','" + spl_code.Text + "','" + barcode + "',sysdate,'" + BarcodeIO.Rows[i].Cells["spld_thisqty"].Value.ToString() + "')", "insert");
+                        "values(prodiobarcode_seq.nextval,'" + BarcodeIO.Rows[i].Cells["spld_prodcode"].Value.ToString() + "','" + spl_code.Text + "','" + barcode + "',sysdate,'" + BarcodeIO.Rows[i].Cells["spld_thisqty"].Value.ToString() + "')", "insert");
 
                     format.PrintSetup.PrinterName = PrinterList.Text;
                     format.PrintSetup.IdenticalCopiesOfLabel = 1;