public DriverPiutangHistory(Context.pbyd_det dbitem, decimal saldo) { //dv Tanggal = dbitem.pbyd_dt; Jumlah = dbitem.pbyd_amount_pay; Keterangan = dbitem.pby_mstr.pby_remarks == null ? "Pencairan " + dbitem.pby_mstr.pby_code : dbitem.pby_mstr.pby_remarks; Saldo = Jumlah + saldo; }
public void save(string oid, string code, int cc_id, string pby_remarks, int driver_id, int ac_id, string ac_desc, decimal piutang_driver) { Context.pbyd_det model = new Context.pbyd_det(); model.pbyd_oid = Guid.NewGuid().ToString(); model.pbyd_pby_oid = oid; model.pbyd_seq = 0; model.pbyd_ac_id = ac_id; model.pbyd_cc_id = 0; model.pbyd_desc = ac_desc; model.pbyd_amount = 0; model.pbyd_dt = DateTime.Now; model.pbyd_pjc_id = 0; model.pbyd_amount_pay = piutang_driver; model.pbyd_tms_type = "B"; context.pbyd_det.Add(model); context.SaveChanges(); }
public void setDb(Context.pbyd_det dbitem) { // dbitem.pbyd_dt = pbyd_dt; }