Ejemplo n.º 1
0
        private void drop_home_Click(object sender, EventArgs e)
        {
            frm_worker_main main = new frm_worker_main();

            Program.ac.MainForm = main;
            main.Show();
            this.Close();
        }
Ejemplo n.º 2
0
        private void frm_manager_home_Load(object sender, EventArgs e)
        {
            menuSettingByUserID();

            lbl_user.Text = commonVar.login_name;

            menuControls.Add(menu_primarycode, emp);
            menuControls.Add(sub_empCode, emp);
            menuControls.Add(sub_deptCode, dept);
            menuControls.Add(sub_bizCode, biz);
            menuControls.Add(sub_duty, duty);
            menuControls.Add(sub_common, common);
            menuControls.Add(sub_machine, machine);
            menuControls.Add(sub_mold, mold);
            menuControls.Add(sub_product, product);
            menuControls.Add(sub_resinCode, resin);
            menuControls.Add(sub_errorCode, error);
            menuControls.Add(sub_defectiveProducts, defective);
            menuControls.Add(sub_nonOperation, nonOP);
            menuControls.Add(menu_system, permission);
            menuControls.Add(sub_permission, permission);
            menuControls.Add(sub_userSetting, subUserSetting);
            menuControls.Add(menu_manufacture, order);
            menuControls.Add(sub_workorder, order);
            menuControls.Add(sub_workperformance, perform);
            menuControls.Add(menu_conditionmanage, injection);
            menuControls.Add(sub_inejctCondition, injection);
            menuControls.Add(sub_errorBreak, errorState);


            menu_bar.ItemClick            += new DevExpress.XtraEditors.TileItemClickEventHandler(menu_Click);
            sub_bar_primarycode.ItemClick += new DevExpress.XtraEditors.TileItemClickEventHandler(menu_Click);
            sub_bar_manufacture.ItemClick += new DevExpress.XtraEditors.TileItemClickEventHandler(menu_Click);
            sub_bar_system.ItemClick      += new DevExpress.XtraEditors.TileItemClickEventHandler(menu_Click);
            sub_bar_state.ItemClick       += new DevExpress.XtraEditors.TileItemClickEventHandler(menu_Click);

            menu_switch.ItemClick += (senderL, eL) =>
            {
                frm_worker_main worker = new frm_worker_main();
                Program.ac.MainForm = worker;
                worker.Show();
                this.Close();
            };

            menu_logout.ItemClick += (senderL, eL) =>
            {
                frm_login login = new frm_login();
                Program.ac.MainForm = login;
                login.Show();
                this.Close();
            };
        }
Ejemplo n.º 3
0
        private void btn_ok_Click(object sender, EventArgs e)
        {
            try
            {
                //--------------------------------------------로그인 정보 체크
                if (txt_empid.Text == "")
                {
                    MessageBox.Show("사원번호를 입력하세요.", "주의");
                    txt_empid.Focus();
                    return;
                }

                if (txt_pw.Text == "")
                {
                    MessageBox.Show("비밀번호를 입력하세요.", "주의");
                    txt_pw.Focus();
                    return;
                }

                //------------------------------------------유효성 검사 후 로그인 성공시 화면 전환
                if (user_chk())
                {
                    saveLocalSettings();

                    if (commonVar.user_gbn == "U" || (userOn == true && commonVar.user_gbn == "M"))
                    {
                        frm_worker_main worker = new frm_worker_main();
                        Program.ac.MainForm = worker;
                        worker.Show();
                    }
                    else
                    {
                        frm_manager_home manager = new frm_manager_home();
                        Program.ac.MainForm = manager;
                        manager.Show();
                    }

                    this.Close();
                    flyoutPanel1.HidePopup();
                }
            }//try문
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }