Beispiel #1
0
        private void BtnRegist_Click(object sender, EventArgs e) // 사원 등록
        {
            Regist regist = new Regist();

            ERegist eregist = new ERegist(regist);

            eregist.ShowDialog();
        }
Beispiel #2
0
        private void BtnDone_Click(object sender, EventArgs e)
        {
            Regist regist = new Regist();

            if (regist.EmployeeNum == null)
            {
                regist.OperatorName = txbOperator.Text;
                regist.EmployeeNum  = txbId.Text;
                regist.Password     = txbPassword.Text;

                DB.employee.Insert(regist);

                Close();
            }
        }
Beispiel #3
0
        private void TxbPassword_KeyDown(object sender, KeyEventArgs e)
        {
            Regist regist = new Regist();

            if (e.KeyCode == Keys.Enter)
            {
                if (regist.EmployeeNum == null)
                {
                    regist.OperatorName = txbOperator.Text;
                    regist.EmployeeNum  = txbId.Text;
                    regist.Password     = txbPassword.Text;

                    DB.employee.Insert(regist);

                    Close();
                }
            }
        }
Beispiel #4
0
        private void BtnDone_Click(object sender, EventArgs e)
        {
            string ENum = txbId.Text;

            Regist regist = new Regist();

            if (DB.employee.CheckENum(ENum))
            {
                FormHelper.ChangeEnum();
            }
            else if (regist != null)
            {
                regist.OperatorName = txbOperator.Text;
                regist.EmployeeNum  = txbId.Text;
                regist.Password     = txbPassword.Text;

                DB.employee.Insert(regist);

                Close();
            }
        }
Beispiel #5
0
        private void BtnLogin_Click(object sender, EventArgs e)
        {
            string Enum  = txbId.Text;
            string pw    = txbPassword.Text;
            string EName = txbOperator.Text;

            Regist regist = DB.employee.Check(Enum, pw, EName);

            if (regist != null)
            {
                this.Hide();
                AGVMain agv = new AGVMain(txbOperator.Text);
                agv.Owner = this;
                agv.ShowDialog();
                this.Close();
            }
            else
            {
                MessageBox.Show("비밀번호를 다시 입력해 주세요.");
            }
        }
Beispiel #6
0
        private void TxbPassword_KeyDown(object sender, KeyEventArgs e)
        {
            string ENum = txbId.Text;

            if (e.KeyCode == Keys.Enter)
            {
                Regist regist = new Regist();

                if (DB.employee.CheckENum(ENum))
                {
                    FormHelper.ChangeEnum();
                }
                else if (regist != null)
                {
                    regist.OperatorName = txbOperator.Text;
                    regist.EmployeeNum  = txbId.Text;
                    regist.Password     = txbPassword.Text;

                    DB.employee.Insert(regist);

                    Close();
                }
            }
        }
Beispiel #7
0
        private void TxbPassword_KeyDown(object sender, KeyEventArgs e)
        {
            string Enum  = txbId.Text;
            string pw    = txbPassword.Text;
            string EName = txbOperator.Text;

            if (e.KeyCode == Keys.Enter)
            {
                Regist regist = DB.employee.Check(Enum, pw, EName);

                if (regist != null)
                {
                    this.Hide();
                    AGVMain agv = new AGVMain(txbOperator.Text);
                    agv.Owner = this;
                    agv.ShowDialog();
                    this.Close();
                }
                else
                {
                    MessageBox.Show("비밀번호를 다시 입력해 주세요.");
                }
            }
        }
Beispiel #8
0
        public ERegist(Regist regist)
        {
            InitializeComponent();

            Icon = Resources.AGV_Navigation_icon_drop_shadow1; // 프로그램 Icon 설정
        }