private void annualFeeAccountingToolStripMenuItem_Click(object sender, EventArgs e) { string insert = "", update = "", delete = "", select = "", err = ""; bool kq = Businessbp.executedb.CheckPRIVILEGES ( "CF36", ref insert, ref delete, ref update, ref select, ref err ); if (err != "") { MessageBox.Show(err); return; } else { if (kq == false) { MessageBox.Show("No privililege to run the form"); return; } else { if (select != "Y") { MessageBox.Show("No privililege to run the form"); return; } } } Frm_HachToan_AnnualFee a = new Frm_HachToan_AnnualFee(); a.type = "ACCOUNTING_ANNUALFEE"; a.ShowDialog(); }
private void hạchToánPhíThườngNiênToolStripMenuItem1_Click(object sender, EventArgs e) { string insert = "", update = "", delete = "", select = "", err = ""; bool kq = Businessbp.executedb.CheckPRIVILEGES("CC100", ref insert, ref delete, ref update, ref select, ref err); if (err != "") { MessageBox.Show(err); return; } else { if (kq == false) { MessageBox.Show("No privililege to run the form"); return; } else { if (select != "Y") { MessageBox.Show("No privililege to run the form"); return; } } } Frm_HachToan_AnnualFee a = new Frm_HachToan_AnnualFee(); a.ShowDialog(); }