public decimal prevAccountBalance(DateTime upTo) { Database.InvoiceMgr invMgr = InvoiceMgr.Instance; Database.PaymentMgr payMgr = new Database.PaymentMgr(); return payMgr.getPatientTotalPayments(this.patID, upTo) - invMgr.getPatientsTotalBilling(this.patID, upTo); }
public decimal rangedAccountBalance(DateTime startDate, DateTime endDate) { Database.InvoiceMgr invMgr = InvoiceMgr.Instance; Database.PaymentMgr payMgr = new Database.PaymentMgr(); return payMgr.getPatientTotalPayments(this.patID, startDate, endDate) - invMgr.getPatientsTotalBilling(this.patID, startDate, endDate); }
public ChangePaymentDialog(int payID, Database.PaymentMgr payMgr) { InitializeComponent(); m_payMgr = payMgr; m_payment = m_payMgr.getPayment(payID); txtAmount.Text = m_payment.payAmount.ToString(); paymentTypeBindingSource.DataSource = m_payMgr.getPaymentTypes(); }