Exemple #1
0
        // Class Constructor
        public FormSlip(View.FormMenuUtama fmu1)
        {
            intfeditdata  = Factory.Factory.getEditData();
            intfmenuutama = Factory.Factory.getMenuUtama();
            intfadddata   = Factory.Factory.getTambahData();

            InitializeComponent();

            fmu2 = fmu1;

            // SET id petugas
            id_petugas = fmu1.getIdPegawai();

            // Retrieve id_transaksi by calling other class function
            data_print.setIdTransaksi(fmu1.getNoTransaksi());

            // GET DATA TRANSAKSI
            GetTransaksiDetail();

            // GET DATA PENGIRIM based on id_transaksi
            GetPengirimDetail();

            // GET DATA PENERIMA based on id_transaksi
            GetPenerimaDetail();

            // GET DATA TARIF based on id_transaksi
            GetTarifDetail();

            // Change All Label based on id_transaksi
            GetChangeLabel();
        }
Exemple #2
0
        // Class Constructor
        public FormEditData(View.FormMenuUtama fmu1)
        {
            intfeditdata  = Factory.Factory.getEditData();
            intfadddata   = Factory.Factory.getTambahData();
            intfmenuutama = Factory.Factory.getMenuUtama();

            InitializeComponent();

            fmu2 = fmu1;

            // SET id pegawai
            id_pegawaiedit = fmu2.getIdPegawai();

            // Display Nama Pegawai on Top Left
            lbl_nama_pegawai.Text = intfmenuutama.getNamaPegawai(id_pegawaiedit);

            // Retrieve id_transaksi by calling other class function
            data_edit.setIdTransaksi(fmu2.getNoTransaksi());

            // GET DATA TRANSAKSI
            GetTransaksiDetail();

            // GET DATA PENGIRIM based on id_transaksi
            GetPengirimDetail();

            // GET DATA PENERIMA based on id_transaksi
            GetPenerimaDetail();

            // GET DATA TARIF based on id_transaksi
            GetTarifDetail();

            // FILL IN ALL TEXTBOX
            FillTextBox();

            // POSITIONING RADIOBUTTON AND COMBOBOX on Pengirim Tab and Penerima Tab
            PositPengirimPenerima();
        }