Exemplo n.º 1
0
 //调货补货
 private void btnAdjust_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;
     }
     TransferStockMangeForm transferStockMangeForm = new TransferStockMangeForm();
     transferStockMangeForm.ShowDialog();
 }
Exemplo n.º 2
0
        //调货补货
        private void btnAdjust_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;
            }
            TransferStockMangeForm transferStockMangeForm = new TransferStockMangeForm();

            transferStockMangeForm.ShowDialog();
        }