//营业报表 private void btnOverallTable_Click(object sender, EventArgs e) { var db = new BathDBDataContext(LogIn.connectionString); if (!BathClass.getAuthority(db, LogIn.m_User, "营业报表")) { GeneralClass.printErrorMsg("权限不够,不能访问!"); return; } DayOperationForm tableOperationForm = new DayOperationForm(); tableOperationForm.ShowDialog(); }