Exemple #1
0
        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 newButton_Click(object sender, EventArgs e)
 {
     if (originModuleID == globalConstants.RETUR_PEMBELIAN_KE_SUPPLIER)
     {
         dataReturPermintaanForm displayedForm = new dataReturPermintaanForm(globalConstants.RETUR_PEMBELIAN_KE_SUPPLIER);
         displayedForm.ShowDialog(this);
     }
     else if (originModuleID == globalConstants.RETUR_PEMBELIAN_KE_PUSAT)
     {
         dataReturPermintaanForm displayedForm = new dataReturPermintaanForm(globalConstants.RETUR_PEMBELIAN_KE_PUSAT);
         displayedForm.ShowDialog(this);
     }
     else if (originModuleID == globalConstants.RETUR_PENJUALAN)
     {
         dataInvoiceForm displayedForm = new dataInvoiceForm(globalConstants.RETUR_PENJUALAN);
         displayedForm.ShowDialog(this);
     }
 }