章政 6 years ago
parent
commit
fad28c0708

+ 4 - 4
UAS-出货标签管理(吉利通)/PublicMethod/SqliteDBHelper.cs

@@ -37,7 +37,7 @@ namespace UAS_LabelMachine
             }
         }
 
-        public  void ExecuteZip()
+        public void ExecuteZip()
         {
             command = new SQLiteCommand("Vacuum", this._odcConnection);
             command.ExecuteNonQuery();
@@ -895,13 +895,13 @@ namespace UAS_LabelMachine
                     switch (item.DataType.ToString())
                     {
                         case "System.String":
-                            ExecuteSql("alter table " + tablename + " add [" + item.ToString() + "] varchar(200) NULL", "update");
+                            ExecuteSql("alter table " + tablename + " add [" + item.ToString() + "] VARCHAR(200) NULL", "update");
                             break;
                         case "System.Decimal":
-                            ExecuteSql("alter table " + tablename + " add [" + item.ToString() + "] number NULL", "update");
+                            ExecuteSql("alter table " + tablename + " add [" + item.ToString() + "] NUMERIC NULL", "update");
                             break;
                         case "System.DateTime":
-                            ExecuteSql("alter table " + tablename + " add [" + item.ToString() + "] date NULL", "update");
+                            ExecuteSql("alter table " + tablename + " add [" + item.ToString() + "] DATE NULL", "update");
                             break;
                         default:
                             break;

+ 3 - 2
UAS-出货标签管理(吉利通)/UAS-出货标签管理(吉利通).csproj

@@ -116,8 +116,9 @@
     <Reference Include="System" />
     <Reference Include="System.configuration" />
     <Reference Include="System.Core" />
-    <Reference Include="System.Data.SQLite">
-      <HintPath>tool\System.Data.SQLite.dll</HintPath>
+    <Reference Include="System.Data.SQLite, Version=1.0.82.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=x86">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\UAS-出货标签管理(贸易版)\tool\System.Data.SQLite.dll</HintPath>
     </Reference>
     <Reference Include="System.Runtime.Serialization" />
     <Reference Include="System.ServiceModel" />

+ 4 - 5
UAS-出货标签管理(吉利通)/UAS_出货标签管理.Designer.cs

@@ -2550,7 +2550,7 @@
             // 
             // pr_orispeccode
             // 
-            this.pr_orispeccode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+            this.pr_orispeccode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
             this.pr_orispeccode.DataPropertyName = "pr_orispeccode";
             this.pr_orispeccode.HeaderText = "原厂型号";
             this.pr_orispeccode.Name = "pr_orispeccode";
@@ -2695,7 +2695,7 @@
             // 
             // pd_custprodcode
             // 
-            this.pd_custprodcode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+            this.pd_custprodcode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
             this.pd_custprodcode.DataPropertyName = "pd_custprodcode";
             this.pd_custprodcode.HeaderText = "客户料号";
             this.pd_custprodcode.Name = "pd_custprodcode";
@@ -2704,7 +2704,7 @@
             // 
             // pd_custprodspec
             // 
-            this.pd_custprodspec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+            this.pd_custprodspec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
             this.pd_custprodspec.DataPropertyName = "pd_custprodspec";
             this.pd_custprodspec.HeaderText = "客户型号";
             this.pd_custprodspec.Name = "pd_custprodspec";
@@ -2713,7 +2713,7 @@
             // 
             // pr_spec
             // 
-            this.pr_spec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+            this.pr_spec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
             this.pr_spec.DataPropertyName = "pr_spec";
             this.pr_spec.HeaderText = "规格";
             this.pr_spec.Name = "pr_spec";
@@ -2830,7 +2830,6 @@
         }
 
         #endregion
-        private System.Windows.Forms.DataGridViewTextBoxColumn si_item;
         private CustomControl.SerialPortWithTag BackendCheck;
         private CustomControl.SerialPortWithTag FrontendCheck;
         private System.Windows.Forms.ComboBox OutBoxCombox;

+ 1 - 1
UAS-出货标签管理(吉利通)/生成条码.cs

@@ -271,7 +271,7 @@ namespace UAS_LabelMachine
                         sql.Append("PIB_PDID,PIB_PICLASS,PIB_QTY,PIB_PRODID,PIB_IFPRINT,PIB_IFPICK,PIB_ORDERCODE,PIB_CUSTPO,pib_orderdetno)");
                         sql.Append(" values (prodiobarcode_seq.nextval,'" + pd_prodcode + "',sysdate,'" + pi_inoutno.Text + "'," + pi_id + ",'" + pr_brand + "',:barcode,:custbarcode,'" + pd_pdno + "','" + pd_id + "',");
                         sql.Append("'" + pi_class.Text + "',:pib_inqty,'" + pr_id + "',0,0,'" + pd_ordercode + "','','" + pd_orderdetno + "')");
-                        dh.BatchInsert(sql.ToString(), new string[] { "barcode", "custbarcode", "pib_inqty", "midcode" }, barcode.ToArray(), custbarcode.ToArray(), pib_inqty.ToArray());
+                        dh.BatchInsert(sql.ToString(), new string[] { "barcode", "custbarcode", "pib_inqty"}, barcode.ToArray(), custbarcode.ToArray(), pib_inqty.ToArray());
                         //更新最大流水号
                         dh.UpdateByCondition("RuleMaxNum", "rmn_maxnumber='" + custserialnum + "'", "rmn_nrcode='" + NrCode + "' and rmn_prefix='" + Prefix + "'");
                     }