コード例 #1
0
ファイル: Login.cs プロジェクト: sunala1008/AGV_Project
        private void BtnRegist_Click(object sender, EventArgs e) // 사원 등록
        {
            Regist regist = new Regist();

            ERegist eregist = new ERegist(regist);

            eregist.ShowDialog();
        }
コード例 #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();
            }
        }
コード例 #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();
                }
            }
        }
コード例 #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();
            }
        }
コード例 #5
0
ファイル: Login.cs プロジェクト: sunala1008/AGV_Project
        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("비밀번호를 다시 입력해 주세요.");
            }
        }
コード例 #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();
                }
            }
        }
コード例 #7
0
ファイル: Login.cs プロジェクト: sunala1008/AGV_Project
        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("비밀번호를 다시 입력해 주세요.");
                }
            }
        }
コード例 #8
0
        public ERegist(Regist regist)
        {
            InitializeComponent();

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