示例#1
0
文件: Pay_Menu.cs 项目: SUPCDEV/HROS
 private void lbl_Diagnosis_Click(object sender, EventArgs e)
 {
     Pay_Delete frm = new Pay_Delete();
     frm.Show();
 }
示例#2
0
文件: FormMain.cs 项目: SUPCDEV/HROS
        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
文件: Pay_Creat.cs 项目: SUPCDEV/HROS
 void btn_Delete_Click(object sender, EventArgs e)
 {
     Pay_Delete frm = new Pay_Delete();
     frm.Show();
 }