//结账单据查询 private void btnBillTbale_Click(object sender, EventArgs e) { var db = new BathDBDataContext(LogIn.connectionString); if (!BathClass.getAuthority(db, LogIn.m_User, "收银单据查询")) { GeneralClass.printErrorMsg("权限不够,不能访问!"); return; } TableCashierCheckForm tableCashierCheckForm = new TableCashierCheckForm(); tableCashierCheckForm.ShowDialog(); }