Esempio n. 1
0
        //查询服务
        private void btnCheck_Click(object sender, EventArgs e)
        {
            Employee user;

            if (user_card)
            {
                var form = new InputEmployeeByCard(connectionString);
                if (form.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                user = form.employee;
            }
            else
            {
                var form = new InputEmployeeByPwd(connectionString);
                if (form.ShowDialog() != DialogResult.OK)
                {
                    return;
                }

                user = form.employee;
            }

            CheckForm checkForm = new CheckForm(user);

            checkForm.ShowDialog();
            techId.Focus();
        }
Esempio n. 2
0
        //查询服务
        private void btnCheck_Click(object sender, EventArgs e)
        {
            Employee user;
            if (user_card)
            {
                var form = new InputEmployeeByCard(connectionString);
                if (form.ShowDialog() != DialogResult.OK)
                    return;
                user = form.employee;
            }
            else
            {
                var form = new InputEmployeeByPwd(connectionString);
                if (form.ShowDialog() != DialogResult.OK)
                    return;

                user = form.employee;
            }

            CheckForm checkForm = new CheckForm(user);
            checkForm.ShowDialog();
            techId.Focus();
        }