// 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(); }
// Class Constructor public FormTambahData(View.FormMenuUtama fmu1) { intfadddata = Factory.Factory.getTambahData(); intfmenuutama = Factory.Factory.getMenuUtama(); InitializeComponent(); fillcombo1(); // cmbKotaPengiriman fillcombo4(); // cmbProvPengirim fillcombo5(); // cmbProvPenerima fmu2 = fmu1; // Retrieve id_pegawai value from function of other class v3id_pegawai = fmu2.getIdPegawai(); // Display Nama Pegawai on Top Left lbl_pegawaiheader.Text = intfmenuutama.getNamaPegawai(v3id_pegawai); // Set id_pegawai to data_add object data_add.setIdPegawai(v3id_pegawai); }
// 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(); }