예제 #1
0
        private void bttBack_Click(object sender, EventArgs e)
        {
            //Clear panel Body.
            _frmMain.panBody.Controls.Clear();

            //Load page search.
            pageEnter_Create _pageEnter_User = new pageEnter_Create(_frmMain);

            _frmMain.panBody.Controls.Add(_pageEnter_User);
            _pageEnter_User.Dock = DockStyle.Fill;
            _pageEnter_User.BringToFront();
        }
예제 #2
0
        private void bttNext_Click(object sender, EventArgs e)
        {
            if (this.txtEmpID.Text.Trim() == "")
            {
                return;
            }
            _empProperty = new EmpProperty {
                code = this.txtEmpID.Text.Trim()
            };

            if (_controllors.CheckEmpCompanyExist(_empProperty) == true)
            {
                _empProperty = _controllors.GetEmpProperty(_empProperty);
            }
            else
            {
                this.txtEmpID.Text = ""; return;
            }

            _frmMain._resultLogin.empDetial = _empProperty;
            if (_controllors.CheckEmpFitelGroupExist(_empProperty) == true)
            {
                //Clear panel Body.
                _frmMain.panBody.Controls.Clear();

                //Load page search.
                pageEnter_Password _pageEnter_User = new pageEnter_Password(_frmMain);
                _frmMain.panBody.Controls.Add(_pageEnter_User);
                _pageEnter_User.Dock = DockStyle.Fill;
                _pageEnter_User.BringToFront();
            }
            else
            {
                //Clear panel Body.
                _frmMain.panBody.Controls.Clear();

                //Load page search.
                pageEnter_Create _pageEnter_User = new pageEnter_Create(_frmMain);
                _frmMain.panBody.Controls.Add(_pageEnter_User);
                _pageEnter_User.Dock = DockStyle.Fill;
                _pageEnter_User.BringToFront();
            }
        }