Пример #1
0
 private void lbl_Diagnosis_Click(object sender, EventArgs e)
 {
     Pay_Delete frm = new Pay_Delete();
     frm.Show();
 }
Пример #2
0
        private void PayDelete()
        {
            if (CheckPayLogIn() == true)
            {
                HRDOCS.Pay_Delete report = new Pay_Delete();

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

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

                    if ((report.Section == "01") || (report.EmplId == "M9999999"))
                    {
                        report.MdiParent = this;
                        report.Show();
                    }
                    else
                    {
                        MessageBox.Show("คุณไม่มีสิทธิเข้าถึงหน้านี้ได้");
                    }
                }
            }
            else
            {
                // MessageBox.Show("คุณไม่มีสิทธิเข้าถึงหน้านี้ได้");
                return;
            }
        }
Пример #3
0
 void btn_Delete_Click(object sender, EventArgs e)
 {
     Pay_Delete frm = new Pay_Delete();
     frm.Show();
 }