Exemplo n.º 1
0
        //售卡
        private void btnSale_Click(object sender, EventArgs e)
        {
            if (!BathClass.getAuthority(db, LogIn.m_User, "售卡"))
            {
                BathClass.printErrorMsg("权限不够!");
                return;
            }
            OpenCardForm openCardForm = new OpenCardForm(m_Seat);

            if (openCardForm.ShowDialog() == DialogResult.OK)
            {
                this.Close();
            }
        }
Exemplo n.º 2
0
        //售卡
        private void btnSale_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;
            //}

            OpenCardForm openCardForm = new OpenCardForm(m_Seat);
            if (openCardForm.ShowDialog() == DialogResult.OK)
                this.Close();
        }