コード例 #1
0
ファイル: MainWindow.cs プロジェクト: zanderphh/yousoftbath
        //信用卡统计
        private void btnCreditCardTable_Click(object sender, EventArgs e)
        {
            var    db  = new BathDBDataContext(LogIn.connectionString);
            string pro = ((Button)sender).Text;

            if (!BathClass.getAuthority(db, LogIn.m_User, pro))
            {
                GeneralClass.printErrorMsg("权限不够,不能访问!");
                return;
            }
            CreditCardTableForm creditCardTableForm = new CreditCardTableForm();

            creditCardTableForm.ShowDialog();
        }
コード例 #2
0
ファイル: MainWindow.cs プロジェクト: huaminglee/yousoftbath
 //信用卡统计
 private void btnCreditCardTable_Click(object sender, EventArgs e)
 {
     var db = new BathDBDataContext(LogIn.connectionString);
     string pro = ((Button)sender).Text;
     if (!BathClass.getAuthority(db, LogIn.m_User, pro))
     {
         GeneralClass.printErrorMsg("权限不够,不能访问!");
         return;
     }
     CreditCardTableForm creditCardTableForm = new CreditCardTableForm();
     creditCardTableForm.ShowDialog();
 }