public frmUMBungaIden(Form caller, UMBungaDetail pUMBungaDetail, List <UMBungaIden> pListUMBungaIden) { InitializeComponent(); this.Caller = caller; gvIdentifkasi.AutoGenerateColumns = false; _listUMBungaIden = pListUMBungaIden; UMBungaDetailAkanDiIden = pUMBungaDetail; }
private void cboBentukPembayaran_SelectedIndexChanged(object sender, EventArgs e) { txtnominal.Enabled = true; txtnominal.ReadOnly = false; if (cboBentukPembayaran.Text.ToLower() == "tunai") { DisabledControlBG(); lookUpRekening1.Enabled = false; lookUpRekening1.RekeningRowID = Guid.Empty; lookUpRekening1.NamaRekening = ""; lookUpRekening1.NoRekening = ""; lookUpRekening1.SetLabelNoRekening(""); lookUpRekening1.SetTextBoxNamaRekening(""); //txtnominal.Text = lblUMBunga.Text; } else if (cboBentukPembayaran.Text.ToLower() == "transfer") { DisabledControlBG(); lookUpRekening1.Enabled = true; //txtnominal.Text = lblUMBunga.Text; } else if (cboBentukPembayaran.Text.ToLower() == "giro") { EnabledControlBG(); lookUpRekening1.Enabled = false; } else if (cboBentukPembayaran.Text.ToLower() == "titipan") { DisabledControlBG(); lookUpRekening1.Enabled = false; lookUpRekening1.RekeningRowID = Guid.Empty; lookUpRekening1.NamaRekening = ""; lookUpRekening1.NoRekening = ""; lookUpRekening1.SetLabelNoRekening(""); lookUpRekening1.SetTextBoxNamaRekening(""); _selectedUMBungaDetail = new UMBungaDetail(); _selectedUMBungaDetail.CustomerRowID = _custRowID; _selectedUMBungaDetail.CustomerName = _namaCustomer; _selectedUMBungaDetail.NominalPembayaran = Convert.ToDouble(txtnominal.Text); _selectedUMBungaDetail.Potongan = Convert.ToDouble(txtpotongan.Text); _selectedUMBungaDetail.MataUangID = cboMataUang.SelectedValue.ToString(); _listUMBungaIden = new List <UMBungaIden>(); Penjualan.frmUMBungaIden ifrmChild = new Penjualan.frmUMBungaIden(this, _selectedUMBungaDetail, _listUMBungaIden); ifrmChild.ShowDialog(); Double NomIden = ifrmChild.nominalIden; txtnominal.Text = NomIden.ToString(); txtnominal.Enabled = false; txtnominal.ReadOnly = true; txtpotongan.Enabled = false; txtpotongan.ReadOnly = true; } // update juga pembulatannya -- kalau titipan ada kasus sendiri !!! refreshPembulatan(); }