private void newButton_Click(object sender, EventArgs e) { if (originModuleID == globalConstants.RETUR_PEMBELIAN_KE_SUPPLIER) { if (null == returPembelianForm || returPembelianForm.IsDisposed) returPembelianForm = new dataReturPermintaanForm(globalConstants.RETUR_PEMBELIAN_KE_SUPPLIER); returPembelianForm.Show(); returPembelianForm.WindowState = FormWindowState.Normal; } else if (originModuleID == globalConstants.RETUR_PEMBELIAN_KE_PUSAT) { if (null == returMutasiForm || returMutasiForm.IsDisposed) returMutasiForm = new dataReturPermintaanForm(globalConstants.RETUR_PEMBELIAN_KE_PUSAT); returMutasiForm.Show(); returMutasiForm.WindowState = FormWindowState.Normal; } else if (originModuleID == globalConstants.RETUR_PENJUALAN) { if (null == returPenjualanForm || returPenjualanForm.IsDisposed) returPenjualanForm = new dataInvoiceForm(globalConstants.RETUR_PENJUALAN); returPenjualanForm.Show(); returPenjualanForm.WindowState = FormWindowState.Normal; } }
private void toolStripButton2_Click(object sender, EventArgs e) { if (null == pembayaranPiutangInvoiceForm || pembayaranPiutangInvoiceForm.IsDisposed) pembayaranPiutangInvoiceForm = new dataInvoiceForm(globalConstants.PEMBAYARAN_PIUTANG); pembayaranPiutangInvoiceForm.Show(); pembayaranPiutangInvoiceForm.WindowState = FormWindowState.Normal; }
private void toolStripButton6_Click(object sender, EventArgs e) { if (null == returPenjualanInvoiceForm || returPenjualanInvoiceForm.IsDisposed) returPenjualanInvoiceForm = new dataInvoiceForm(globalConstants.RETUR_PENJUALAN); returPenjualanInvoiceForm.Show(); returPenjualanInvoiceForm.WindowState = FormWindowState.Normal; }
private void captureAll(Keys key) { int userAccessOptions = 0; switch (key) { case Keys.F1: if (0 != ( DS.getUserAccessRight(globalConstants.MENU_PRODUK, gutil.getUserGroupID()) * DS.getUserAccessRight(globalConstants.MENU_PURCHASE_ORDER, gutil.getUserGroupID()) * DS.getUserAccessRight(globalConstants.MENU_PENJUALAN, gutil.getUserGroupID()) * DS.getUserAccessRight(globalConstants.MENU_PEMBAYARAN_PIUTANG, gutil.getUserGroupID()) * DS.getUserAccessRight(globalConstants.MENU_PEMBAYARAN_HUTANG_SUPPLIER, gutil.getUserGroupID()) * DS.getUserAccessRight(globalConstants.MENU_TRANSAKSI_HARIAN, gutil.getUserGroupID()) * DS.getUserAccessRight(globalConstants.MENU_RETUR_PEMBELIAN, gutil.getUserGroupID()) * DS.getUserAccessRight(globalConstants.MENU_RETUR_PENJUALAN, gutil.getUserGroupID()) * DS.getUserAccessRight(globalConstants.MENU_MODULE_MESSAGING, gutil.getUserGroupID()) ) ) { adminHelpForm displayHelp = new adminHelpForm(); displayHelp.ShowDialog(this); } break; case Keys.F2: userAccessOptions = DS.getUserAccessRight(globalConstants.MENU_PRODUK, gutil.getUserGroupID()); if (userAccessOptions > 0) { dataProdukForm displayedProdukForm = new dataProdukForm(); displayedProdukForm.ShowDialog(this); } break; case Keys.F3: userAccessOptions = DS.getUserAccessRight(globalConstants.MENU_PURCHASE_ORDER, gutil.getUserGroupID()); if (userAccessOptions > 0) { dataPOForm displayedPOForm = new dataPOForm(); displayedPOForm.ShowDialog(this); } break; case Keys.F4: userAccessOptions = DS.getUserAccessRight(globalConstants.MENU_PENJUALAN, gutil.getUserGroupID()); if (userAccessOptions > 0) { cashierForm displayedCashierForm = new cashierForm(1); displayedCashierForm.ShowDialog(this); } break; case Keys.F5: userAccessOptions = DS.getUserAccessRight(globalConstants.MENU_PEMBAYARAN_PIUTANG, gutil.getUserGroupID()); if (userAccessOptions > 0) { dataInvoiceForm displayedInvoiceForm = new dataInvoiceForm(globalConstants.PEMBAYARAN_PIUTANG); displayedInvoiceForm.ShowDialog(this); } break; case Keys.F6: userAccessOptions = DS.getUserAccessRight(globalConstants.MENU_PEMBAYARAN_HUTANG_SUPPLIER, gutil.getUserGroupID()); if (userAccessOptions > 0) { dataPOForm displayedPOSupplierForm = new dataPOForm(globalConstants.PEMBAYARAN_HUTANG); displayedPOSupplierForm.ShowDialog(this); } break; case Keys.F7: userAccessOptions = DS.getUserAccessRight(globalConstants.MENU_TRANSAKSI_HARIAN, gutil.getUserGroupID()); if (userAccessOptions > 0) { dataTransaksiJurnalHarianDetailForm displayedDJForm = new dataTransaksiJurnalHarianDetailForm(globalConstants.NEW_DJ, selectedUserID); displayedDJForm.ShowDialog(this); } break; case Keys.F8: userAccessOptions = DS.getUserAccessRight(globalConstants.MENU_RETUR_PEMBELIAN, gutil.getUserGroupID()); if (userAccessOptions > 0) { dataReturPermintaanForm displayedRetBeliForm = new dataReturPermintaanForm(globalConstants.RETUR_PEMBELIAN_KE_SUPPLIER); displayedRetBeliForm.ShowDialog(this); } break; case Keys.F9: userAccessOptions = DS.getUserAccessRight(globalConstants.MENU_RETUR_PENJUALAN, gutil.getUserGroupID()); if (userAccessOptions > 0) { dataInvoiceForm displayedRetJualForm = new dataInvoiceForm(globalConstants.RETUR_PENJUALAN); displayedRetJualForm.ShowDialog(this); } break; } }