Exemple #1
0
        //盘点清册
        private void btnCheckStock_Click(object sender, EventArgs e)
        {
            var    db  = new BathDBDataContext(LogIn.connectionString);
            string pro = ((Button)sender).Text;

            if (!BathClass.getAuthority(db, LogIn.m_User, pro))
            {
                GeneralClass.printErrorMsg("权限不够,不能访问!");
                return;
            }

            StockTakeForm stockTakeForm = new StockTakeForm();

            stockTakeForm.ShowDialog();
        }
Exemple #2
0
        //盘点清册
        private void btnCheckStock_Click(object sender, EventArgs e)
        {
            var db = new BathDBDataContext(LogIn.connectionString);
            string pro = ((Button)sender).Text;
            if (!BathClass.getAuthority(db, LogIn.m_User, pro))
            {
                GeneralClass.printErrorMsg("权限不够,不能访问!");
                return;
            }

            StockTakeForm stockTakeForm = new StockTakeForm();
            stockTakeForm.ShowDialog();
        }