private void displaySpecificForm(string PMInvoice = "") { int subModuleID; switch (originModuleID) { case globalConstants.CEK_DATA_MUTASI: if (!PMInvoice.Equals("")) { subModuleID = globalConstants.VIEW_PRODUCT_MUTATION; } else { subModuleID = globalConstants.MUTASI_BARANG; } dataMutasiBarangDetailForm displayedForm = new dataMutasiBarangDetailForm(subModuleID, PMInvoice); displayedForm.ShowDialog(this); break; case globalConstants.PENERIMAAN_BARANG: if (null != parentForm) { penerimaanBarangForm originForm = (penerimaanBarangForm)parentForm; originForm.setSelectedMutasi(PMInvoice); } this.Close(); //penerimaanBarangForm penerimaanBarangDisplayedForm = new penerimaanBarangForm(globalConstants.PENERIMAAN_BARANG_DARI_MUTASI, selectedROID); //penerimaanBarangDisplayedForm.ShowDialog(this); break; } loadROdata(); }
private void displaySpecificForm(int moduleID, string identifierNo) { int productID = 0; switch (moduleID) { case globalConstants.MENU_TRANSAKSI_PENJUALAN: pembayaranPiutangForm displayPiutangForm = new pembayaranPiutangForm(identifierNo); displayPiutangForm.ShowDialog(this); break; case globalConstants.MENU_PURCHASE_ORDER: pembayaranHutangForm displayHutangForm = new pembayaranHutangForm(identifierNo); displayHutangForm.ShowDialog(this); break; case globalConstants.MENU_PEMBAYARAN_PIUTANG: pembayaranPiutangForm displayPiutangFormConfirm = new pembayaranPiutangForm(identifierNo); displayPiutangFormConfirm.ShowDialog(this); break; case globalConstants.MENU_PEMBAYARAN_HUTANG_SUPPLIER: pembayaranHutangForm displayHutangFormConfirm = new pembayaranHutangForm(identifierNo); displayHutangFormConfirm.ShowDialog(this); break; case globalConstants.MENU_REQUEST_ORDER: dataMutasiBarangDetailForm displayedForm = new dataMutasiBarangDetailForm(globalConstants.CEK_DATA_MUTASI, identifierNo); displayedForm.ShowDialog(this); break; case globalConstants.MENU_PRODUK: productID = Convert.ToInt32(DS.getDataSingleValue("SELECT ID FROM MASTER_PRODUCT WHERE PRODUCT_ID = '" + identifierNo + "'")); dataProdukDetailForm displayProdukDetail = new dataProdukDetailForm(globalConstants.EDIT_PRODUK, productID); displayProdukDetail.ShowDialog(this); break; } }
private void displaySpecificForm(int roID = 0) { switch (originModuleID) { case globalConstants.PERMINTAAN_BARANG: if (roID == 0) { permintaanProdukForm requestOrderForm = new permintaanProdukForm(globalConstants.NEW_REQUEST_ORDER); requestOrderForm.ShowDialog(this); } else { permintaanProdukForm editRequestOrderForm = new permintaanProdukForm(globalConstants.EDIT_REQUEST_ORDER, roID); editRequestOrderForm.ShowDialog(this); } break; case globalConstants.CEK_DATA_MUTASI: dataMutasiBarangDetailForm displayedForm = new dataMutasiBarangDetailForm(globalConstants.CEK_DATA_MUTASI, roID); displayedForm.ShowDialog(this); break; } }