Exemplo n.º 1
0
        //技师管理
        private void toolTech_Click(object sender, EventArgs e)
        {
            if (dao.get_authority(LogIn.m_User, "技师管理"))
            //if (!BathClass.getAuthority(db_new, LogIn.m_User, "技师管理"))
            {
                BathClass.printErrorMsg("不具有权限");
                return;
            }

            TechnicianSeclectForm technicianForm = new TechnicianSeclectForm();
            technicianForm.ShowDialog();
        }
Exemplo n.º 2
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();
        }
Exemplo n.º 3
0
 //技师管理
 private void toolTech_Click(object sender, EventArgs e)
 {
     TechnicianSeclectForm form = new TechnicianSeclectForm(connectionString, true);
     form.ShowDialog();
 }
Exemplo n.º 4
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();
        }