Esempio n. 1
0
        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;
                }

                if (null == newMutasiForm || newMutasiForm.IsDisposed)
                {
                    newMutasiForm = new dataMutasiBarangDetailForm(subModuleID, PMInvoice);
                }

                newMutasiForm.Show();
                newMutasiForm.WindowState = FormWindowState.Normal;
                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();
        }
Esempio n. 2
0
        private void displaySpecificForm(int roID = 0)
        {
            switch (originModuleID)
            {
            case globalConstants.PERMINTAAN_BARANG:
                if (roID == 0)
                {
                    if (null == newPermintaanForm || newPermintaanForm.IsDisposed)
                    {
                        newPermintaanForm = new permintaanProdukForm(globalConstants.NEW_REQUEST_ORDER);
                    }

                    newPermintaanForm.Show();
                    newPermintaanForm.WindowState = FormWindowState.Normal;
                }
                else
                {
                    if (null == editPermintaanForm || editPermintaanForm.IsDisposed)
                    {
                        editPermintaanForm = new permintaanProdukForm(globalConstants.EDIT_REQUEST_ORDER, roID);
                    }

                    editPermintaanForm.Show();
                    editPermintaanForm.WindowState = FormWindowState.Normal;
                }
                break;

            case globalConstants.CEK_DATA_MUTASI:
                if (null == browseDataMutasiDetailForm || browseDataMutasiDetailForm.IsDisposed)
                {
                    browseDataMutasiDetailForm = new dataMutasiBarangDetailForm(globalConstants.CEK_DATA_MUTASI, roID);
                }

                browseDataMutasiDetailForm.Show();
                browseDataMutasiDetailForm.WindowState = FormWindowState.Normal;
                break;
            }
        }