예제 #1
0
파일: FormMain.cs 프로젝트: SUPCDEV/HROS
        private void PayCheck()
        {
            if (CheckPayLogIn() == true)
            {
                HRDOCS.Pay_CheckPay checkpay = new Pay_CheckPay();

                if (!this.CheckOpened(checkpay.Name))
                {
                    checkpay.EmplId = ClassCurUser.LogInEmplId;
                    checkpay.EmplName = ClassCurUser.LogInEmplName;
                    checkpay.Key = ClassCurUser.LogInEmplKey;
                    checkpay.Section = ClassCurUser.LogInSection;

                    checkpay.StartPosition = FormStartPosition.CenterParent;
                    checkpay.WindowState = FormWindowState.Maximized;

                    if ((checkpay.Section == "01") || (checkpay.EmplId == "M9999999"))
                    {
                        checkpay.MdiParent = this;
                        checkpay.Show();
                    }
                    else
                    {
                        MessageBox.Show("คุณไม่มีสิทธิเข้าถึงหน้านี้ได้");
                    }
                }
            }
            else
            {
                // MessageBox.Show("คุณไม่มีสิทธิเข้าถึงหน้านี้ได้");
                return;
            }
        }
예제 #2
0
파일: Pay_Menu.cs 프로젝트: SUPCDEV/HROS
 private void lbl_workpermit_Click(object sender, EventArgs e)
 {
     Pay_CheckPay frm = new Pay_CheckPay();
     frm.Show();
 }