Browse Source

BUG调整

章政 5 years ago
parent
commit
f8179ad3bd

+ 2 - 1
UAS-出货标签管理(贸易版)/PublicMethod/GlobalEventsHandler.cs

@@ -13,7 +13,7 @@ namespace UAS_Labeling.PublicMethod
     /// </summary>
     class GlobalEventsHandler : IMessageFilter
     {
-        DataHelper dh=SystemInf.dh;
+        DataHelper dh;
         //鼠标左键点击
         public const int WM_LBUTTONDOWN = 0x0201;
         //键盘敲击事件
@@ -43,6 +43,7 @@ namespace UAS_Labeling.PublicMethod
         {
             if (User.UserAccountType != "admin")
             {
+                dh = SystemInf.dh;
                 if (dh.getRowCount("labelprintpower") > 0)
                 {
                     string sql = " select LPP_CLEANDETAIL,LPP_GENCODE,LPP_LABELMATAIN,LPP_SAVEDETAIL,LPP_COLLECTSTRATEGY,LPP_ALLCOLLECT from labelprintpower left join employee on em_code = lpp_emcode where lpp_emcode = '" + User.UserCode + "'";