|
@@ -13,7 +13,7 @@ namespace UAS_Labeling.PublicMethod
|
|
|
|
|
|
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 + "'";
|