示例#1
0
        private void newProduk_Click(object sender, EventArgs e)
        {
            dataProdukDetailForm displayForm = new dataProdukDetailForm(globalConstants.STOK_PECAH_BARANG, this);

            displayForm.ShowDialog(this);

            loadProductName();
        }
示例#2
0
        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;
            }
        }
示例#3
0
        private void newButton_Click(object sender, EventArgs e)
        {
            dataProdukDetailForm displayForm = new dataProdukDetailForm(globalConstants.NEW_PRODUK);

            displayForm.ShowDialog(this);
        }
示例#4
0
        private void displaySpecificForm()
        {
            switch (originModuleID)
            {
            case globalConstants.STOK_PECAH_BARANG:
                stokPecahBarangForm displaystokPecahBarangForm = new stokPecahBarangForm(selectedProductID);
                displaystokPecahBarangForm.ShowDialog(this);
                break;

            case globalConstants.PENYESUAIAN_STOK:
                penyesuaianStokForm penyesuaianStokForm = new penyesuaianStokForm(selectedProductID);
                penyesuaianStokForm.ShowDialog(this);
                break;

            case globalConstants.BROWSE_STOK_PECAH_BARANG:
                parentForm.setNewSelectedProductID(selectedProductID);
                this.Close();
                break;

            case globalConstants.CASHIER_MODULE:
                parentCashierForm.addNewRowFromBarcode(selectedkodeProduct, selectedProductName, selectedRowIndex);
                this.Close();
                break;

            case globalConstants.PENERIMAAN_BARANG:
                parentPenerimaanBarangForm.addNewRowFromBarcode(selectedkodeProduct, selectedProductName, selectedRowIndex);
                this.Close();
                break;

            case globalConstants.NEW_PURCHASE_ORDER:
                parentPOForm.addNewRowFromBarcode(selectedkodeProduct, selectedProductName, selectedRowIndex);
                this.Close();
                break;

            case globalConstants.MUTASI_BARANG:
                //parentMutasiForm.addNewRowFromBarcode(selectedkodeProduct, selectedProductName, selectedRowIndex);
                this.Close();
                break;

            case globalConstants.NEW_REQUEST_ORDER:
                parentRequestForm.addNewRowFromBarcode(selectedkodeProduct, selectedProductName, selectedRowIndex);
                this.Close();
                break;

            case globalConstants.RETUR_PENJUALAN:
            case globalConstants.RETUR_PENJUALAN_STOCK_ADJUSTMENT:
                parentReturJualForm.addNewRowFromBarcode(selectedkodeProduct, selectedProductName, selectedRowIndex);
                this.Close();
                break;

            case globalConstants.RETUR_PEMBELIAN_KE_PUSAT:
            case globalConstants.RETUR_PEMBELIAN_KE_SUPPLIER:
            case globalConstants.RETUR_PEMBELIAN:
                parentReturBeliForm.addNewRowFromBarcode(selectedkodeProduct, selectedProductName, selectedRowIndex, selectedProductID);
                this.Close();
                break;

            case globalConstants.PRODUCT_BC:
                parentBarcodeForm.addNewRowFromBarcode(selectedkodeProduct, selectedProductName, selectedRowIndex);
                this.Close();
                break;

            default:     // MASTER DATA PRODUK
                dataProdukDetailForm displayForm = new dataProdukDetailForm(globalConstants.EDIT_PRODUK, selectedProductID);
                displayForm.ShowDialog(this);
                break;
            }
        }