void removeFromProcessRT(Shared.Services.Table.CONTAINER_REKENING_TEMPAT rt) { try{ if (listRTPay.Exists(x => x.nomor == rt.nomor && x.bulan == rt.bulan)) { listRTPay.RemoveAll(y => y.nostand == rt.nostand && y.bulan == rt.bulan); sumTotal(); checkedRow(rt.nomor, rt.bulan, rt.jns); } }catch (Exception ex) { Shared.Services.Logs.Insights.Send("removeFromProcessRT", ex); } }
void addToProcessRT(Shared.Services.Table.CONTAINER_REKENING_TEMPAT rt) { try{ if (!listRTPay.Exists(x => x.nomor == rt.nomor) || !listRTPay.Exists(x => x.bulan == rt.bulan) || !listRTPay.Exists(x => x.tahun == rt.tahun)) { listRTPay.Add(new Shared.Services.Table.CONTAINER_REKENING_TEMPAT { alamat = rt.alamat, biaya = rt.biaya, btu = rt.btu, bulan = rt.bulan, jns = rt.jns, luas = rt.luas, materai = rt.materai, nmpasar = rt.nmpasar, nmped = rt.nmped, nomor = rt.nomor, nostand = rt.nostand, pasar = rt.pasar, ppn = rt.ppn, sampah = rt.sampah, tahun = rt.tahun, tarip = rt.tarip, tglbayar = rt.tglbayar, total = rt.total, uid = rt.uid, uname = rt.uname }); sumTotal(); checkedRow(rt.nomor, rt.bulan, rt.jns); } else { Shared.Settings.Panels.Alert.Display("Tidak dapat menambahkan rekening yang sudah ditandai", "Gagal Menambahkan", "OK"); } }catch (Exception ex) { Shared.Services.Logs.Insights.Send("addToProcessRT", ex); } }