public class BalanceDAO extends BillingDAO
dbInfo, transferData, user
Constructor and Description |
---|
BalanceDAO(User user,
java.lang.String billingId) |
Modifier and Type | Method and Description |
---|---|
int |
addContractCharge(int contractId,
java.math.BigDecimal summa,
java.util.Date date,
int typeId,
java.lang.String comment) |
void |
addContractCharge(int contractId,
int pt,
java.math.BigDecimal summa,
java.util.Date date,
java.lang.String comment) |
int |
addContractPayment(int contractId,
java.math.BigDecimal summa,
java.util.Date date,
int typeId,
java.lang.String comment) |
void |
deleteContractCharge(int chargeId,
int contractId) |
void |
deleteContractPayment(int paymentId,
int contractId) |
java.util.List<ContractAccount> |
getContractAccountList(int contractId,
java.util.Date dateFrom,
java.util.Date dateTo) |
java.math.BigDecimal |
getContractAccountSum(int contractId,
java.util.Date dateFrom,
java.util.Date dateTo) |
java.util.List<ContractBalanceGeneral> |
getContractBalanceList(int contractId,
java.util.Date dateFrom,
java.util.Date dateTo) |
java.math.BigDecimal |
getContractBalanceSum(int contractId,
java.util.Date dateFrom,
java.util.Date dateTo) |
ContractCharge |
getContractCharge(int chargeId) |
java.util.List<ContractCharge> |
getContractChargeList(int contractId,
java.util.Date dateFrom,
java.util.Date dateTo) |
java.math.BigDecimal |
getContractChargeSum(int contractId,
java.util.Date dateFrom,
java.util.Date dateTo) |
TypeTreeItem |
getContractChargeTypes(java.util.Set<java.lang.Integer> allowedTypeIds) |
java.util.List<ContractBalanceDetail> |
getContractDetailBalanceList(int contractId,
java.util.Date dateFrom,
java.util.Date dateTo) |
ContractPayment |
getContractPayment(int paymentId) |
java.util.List<ContractPayment> |
getContractPaymentList(int contractId,
java.util.Date dateFrom,
java.util.Date dateTo) |
java.math.BigDecimal |
getContractPaymentSum(int contractId,
java.util.Date dateFrom,
java.util.Date dateTo) |
TypeTreeItem |
getContractPaymentTypes(java.util.Set<java.lang.Integer> allowedTypeIds) |
int |
updateContractCharge(int id,
int contractId,
java.math.BigDecimal summa,
java.util.Date date,
int typeId,
java.lang.String comment) |
int |
updateContractPayment(int id,
int contractId,
java.math.BigDecimal summa,
java.util.Date date,
int typeId,
java.lang.String comment) |
doRequest, getDbInfo, getPage, getParameterId, setPage
public BalanceDAO(User user, java.lang.String billingId) throws BGException
BGException
public java.util.List<ContractPayment> getContractPaymentList(int contractId, java.util.Date dateFrom, java.util.Date dateTo) throws BGException
BGException
public java.math.BigDecimal getContractPaymentSum(int contractId, java.util.Date dateFrom, java.util.Date dateTo)
public TypeTreeItem getContractPaymentTypes(java.util.Set<java.lang.Integer> allowedTypeIds) throws BGException
BGException
public java.util.List<ContractCharge> getContractChargeList(int contractId, java.util.Date dateFrom, java.util.Date dateTo) throws BGException
BGException
public java.math.BigDecimal getContractChargeSum(int contractId, java.util.Date dateFrom, java.util.Date dateTo)
public TypeTreeItem getContractChargeTypes(java.util.Set<java.lang.Integer> allowedTypeIds) throws BGException
BGException
public void addContractCharge(int contractId, int pt, java.math.BigDecimal summa, java.util.Date date, java.lang.String comment) throws BGException
BGException
public java.util.List<ContractAccount> getContractAccountList(int contractId, java.util.Date dateFrom, java.util.Date dateTo) throws BGException
BGException
public java.math.BigDecimal getContractAccountSum(int contractId, java.util.Date dateFrom, java.util.Date dateTo)
public java.util.List<ContractBalanceDetail> getContractDetailBalanceList(int contractId, java.util.Date dateFrom, java.util.Date dateTo) throws BGException
BGException
public java.util.List<ContractBalanceGeneral> getContractBalanceList(int contractId, java.util.Date dateFrom, java.util.Date dateTo) throws BGException
BGException
public java.math.BigDecimal getContractBalanceSum(int contractId, java.util.Date dateFrom, java.util.Date dateTo)
public int addContractPayment(int contractId, java.math.BigDecimal summa, java.util.Date date, int typeId, java.lang.String comment) throws BGException
BGException
public int updateContractPayment(int id, int contractId, java.math.BigDecimal summa, java.util.Date date, int typeId, java.lang.String comment) throws BGException
BGException
public int addContractCharge(int contractId, java.math.BigDecimal summa, java.util.Date date, int typeId, java.lang.String comment) throws BGException
BGException
public int updateContractCharge(int id, int contractId, java.math.BigDecimal summa, java.util.Date date, int typeId, java.lang.String comment) throws BGException
BGException
public ContractPayment getContractPayment(int paymentId) throws BGException
BGException
public ContractCharge getContractCharge(int chargeId) throws BGException
BGException
public void deleteContractCharge(int chargeId, int contractId) throws BGException
BGException
public void deleteContractPayment(int paymentId, int contractId) throws BGException
BGException