//充值 private void btnPop_Click(object sender, EventArgs e) { if (!BathClass.getAuthority(db, LogIn.m_User, "充值")) { BathClass.printErrorMsg("权限不够!"); return; } MemberPopForm memberPopForm = new MemberPopForm(m_Seat); memberPopForm.ShowDialog(); }
//充值 private void btnPop_Click(object sender, EventArgs e) { if (!dao.get_authority(LogIn.m_User, "充值")) { BathClass.printErrorMsg("权限不够!"); return; } //if (!BathClass.getAuthority(db, LogIn.m_User, "充值")) //{ // BathClass.printErrorMsg("权限不够!"); // return; //} MemberPopForm memberPopForm = new MemberPopForm(m_Seat); memberPopForm.ShowDialog(); this.DialogResult = DialogResult.OK; this.Close(); }