private void PendaftaranTransaksi_Load(object sender, EventArgs e) { idTransaksi.Text = ((inputPembayaran)f).txtTransaksi.Text; idCus = TSC_C.getIDPelanggan(idTransaksi.Text); poin = CUS_C.getPoinCustomer(idCus).ToString(); lblPoin.Text = poin; cekTanggal(); setDataGridView(this.dataGridView1); }
private void makeReward() { if (totalAfterDisc >= 50000) { int totalForReward = int.Parse(totalAfterDisc.ToString()); string idCust = TSC_C.getIDPelanggan(idTransaksi.Text); int poinSaatIni = int.Parse(CUS_C.getPoinCustomer(idCust).ToString()); int poinAdd = totalForReward / 50000; reward = poinSaatIni + poinAdd; TSC_C.updatePoinCust(reward, idCust); } }