Exemplo n.º 1
0
        //优惠方案
        private void btnPromotion_Click(object sender, EventArgs e)
        {
            var db = new BathDBDataContext(LogIn.connectionString);

            if (!BathClass.getAuthority(db, LogIn.m_User, "优惠方案"))
            {
                GeneralClass.printErrorMsg("权限不够,不能访问!");
                return;
            }
            PromotionManagementForm promotionManagementForm = new PromotionManagementForm();

            promotionManagementForm.ShowDialog();
        }
Exemplo n.º 2
0
 //优惠方案
 private void btnPromotion_Click(object sender, EventArgs e)
 {
     var db = new BathDBDataContext(LogIn.connectionString);
     if (!BathClass.getAuthority(db, LogIn.m_User, "优惠方案"))
     {
         GeneralClass.printErrorMsg("权限不够,不能访问!");
         return;
     }
     PromotionManagementForm promotionManagementForm = new PromotionManagementForm();
     promotionManagementForm.ShowDialog();
 }