示例#1
0
        //供应商管理
        private void btnProvideCretia_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;
            }

            var form = new ProviderMgForm();

            form.ShowDialog();
        }
示例#2
0
        //供应商管理
        private void btnProvideCretia_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;
            }

            var form = new ProviderMgForm();
            form.ShowDialog();
        }