Browse Source

切换账套的时候名称改变

callm 4 years ago
parent
commit
34da283324

+ 1 - 0
UAS-出货标签管理(贸易版)/ChangeMaster.cs

@@ -44,6 +44,7 @@ namespace UAS_LabelMachine
             //设置当前账套
             SystemInf.Master = MasterCombox.SelectedValue.ToString();
             SystemInf.sdh = sdh = new SqliteDBHelper(SystemInf.Master + ".db3");
+            SystemInf.MasterName = MasterCombox.Text;
             //设置了Connection,重新执行构造函数,重置数据库连接
             dh = new DataHelper();
             Close();

+ 2 - 0
UAS-出货标签管理(贸易版)/Entity/SystemInf.cs

@@ -19,5 +19,7 @@ namespace UAS_LabelMachine.Entity
         public static bool CheckDcAndLotNo = false;
 
         public static string IP = "";
+
+        public static string MasterName;
     }
 }

+ 1 - 0
UAS-出货标签管理(贸易版)/UAS_出货标签管理.cs

@@ -2031,6 +2031,7 @@ namespace UAS_LabelMachine
         {
             dh = SystemInf.dh;
             sdh = SystemInf.sdh;
+            Text = "UAS-出货标签打印-" + SystemInf.MasterName;
         }
 
         private void LabelInf_DataError(object sender, DataGridViewDataErrorEventArgs e) { }