示例#1
0
        //技师管理
        private void toolTech_Click(object sender, EventArgs e)
        {
            //var db_new = new BathDBDataContext(LogIn.connectionString);
            if (!dao.get_authority(LogIn.m_User, "技师管理"))
            {
                BathClass.printErrorMsg("不具有权限");
                return;
            }

            TechnicianSeclectForm technicianForm = new TechnicianSeclectForm();

            technicianForm.ShowDialog();
        }
示例#2
0
        //技师管理
        private void btnTechnician_Click(object sender, EventArgs e)
        {
            var db = new BathDBDataContext(LogIn.connectionString);

            if (!BathClass.getAuthority(db, LogIn.m_User, "技师管理"))
            {
                GeneralClass.printErrorMsg("不具有权限");
                return;
            }

            TechnicianSeclectForm technicianForm = new TechnicianSeclectForm();

            technicianForm.ShowDialog();
        }
示例#3
0
        //技师管理
        private void toolTech_Click(object sender, EventArgs e)
        {
            TechnicianSeclectForm form = new TechnicianSeclectForm(connectionString, true);

            form.ShowDialog();
        }