Exemple #1
0
 //往来单位账目统计
 private void btnAccountWithTable_Click(object sender, EventArgs e)
 {
     var db = new BathDBDataContext(LogIn.connectionString);
     if (!BathClass.getAuthority(db, LogIn.m_User, "往来单位账目"))
     {
         GeneralClass.printErrorMsg("权限不够,不能访问!");
         return;
     }
     AccountWithTableForm accountWithTableForm = new AccountWithTableForm();
     accountWithTableForm.ShowDialog();
 }
Exemple #2
0
        //往来单位账目统计
        private void btnAccountWithTable_Click(object sender, EventArgs e)
        {
            var db = new BathDBDataContext(LogIn.connectionString);

            if (!BathClass.getAuthority(db, LogIn.m_User, "往来单位账目"))
            {
                GeneralClass.printErrorMsg("权限不够,不能访问!");
                return;
            }
            AccountWithTableForm accountWithTableForm = new AccountWithTableForm();

            accountWithTableForm.ShowDialog();
        }