private void lbl_Diagnosis_Click(object sender, EventArgs e) { Pay_Delete frm = new Pay_Delete(); frm.Show(); }
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; } }
void btn_Delete_Click(object sender, EventArgs e) { Pay_Delete frm = new Pay_Delete(); frm.Show(); }