@Transactional(readOnly=true) public class EgovCommon extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.egov.infra.admin.master.service.UserService |
userManager |
| Constructor and Description |
|---|
EgovCommon() |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
getAccCodeBalanceForIndirectExpense(Date asondate,
String glcode,
Integer accountdetailType,
String accountdetailkey) |
BigDecimal |
getAccountBalance(Date VoucherDate,
Long bankId) |
BigDecimal |
getAccountBalance(Date VoucherDate,
Long bankId,
BigDecimal amount,
Long paymentId,
Long accGlcodeId) |
BigDecimal |
getAccountBalanceforDate(Date asondate,
String glcode,
String fundcode,
Integer accountdetailType,
Integer accountdetailkey,
Integer deptId) |
BigDecimal |
getAccountBalanceFromLedger(Date VoucherDate,
Integer bankId,
BigDecimal amount,
Long paymentId) |
BigDecimal |
getAccountBalanceTillDate(Date asondate,
String glcode,
String fundcode,
Integer accountdetailType,
Integer accountdetailkey,
Integer deptId) |
AccountCodePurpose |
getAccountCodePurposeByName(String name)
return the AccountCodePurpose object if name matches else returns null throws ApplicationRuntimeException if name is null
or empty
|
List<org.egov.commons.Bankbranch> |
getActiveBankBranchForActiveBanks() |
List<org.egov.commons.CChartOfAccounts> |
getAllAccountCodesForAccountDetailType(Integer accountDetailTypeId)
changed while 2ndlevel caching fix
|
BigDecimal |
getAmountApprovedForPaymentAndVoucherNotCreated(Date VoucherDate,
Integer bankaccountId)
This function will return the bank amount that are blocked for payment.
|
BigDecimal |
getAmountForApprovedPaymentAndChequeNotAssigned(Date voucherDate,
Integer bankaccountId)
This method will return the total amount for the payment that are approved and cheques not assigned.
|
org.egov.infra.admin.master.service.AppConfigValueService |
getAppConfigValuesService() |
BigDecimal |
getBankBalanceAvailableforPayment(Date VoucherDate,
Integer bankaccountId)
This method will return the amount that are available to make further payments.
|
List<Map<String,Object>> |
getBankBranchForActiveBanks() |
BigDecimal |
getBillAccountBalanceforDate(Date asondate,
String glcode,
String fundcode,
Integer accountdetailType,
Integer accountdetailkey) |
org.egov.infra.admin.master.entity.Boundary |
getBoundaryForUser(org.egov.infra.admin.master.entity.User user) |
BigDecimal |
getCashBalance(Date VoucherDate,
String cashInHandCode,
Integer fundId) |
Map<String,Object> |
getCashChequeInfoForBoundary()
This method will return the Map of cheque in hand and cash in hand code information for the boundary at which the books of
accounts are maintained.
|
org.egov.commons.dao.ChartOfAccountsDAO |
getChartOfAccountsDAO() |
BigDecimal |
getCreditBalanceforDate(Date asondate,
String glcode,
String fundcode,
Integer accountdetailType,
Integer accountdetailkey) |
org.egov.infra.admin.master.entity.Department |
getDepartmentForUser(org.egov.infra.admin.master.entity.User user,
org.egov.eis.service.EisCommonService eisCommonService,
org.egov.pims.service.EmployeeServiceOld employeeService,
org.egov.infstr.services.PersistenceService persistenceService) |
BigDecimal |
getDepositAmountForDepositCode(Date asondate,
String glcode,
String fundcode,
Integer accountdetailType,
Integer accountdetailkey) |
BigDecimal |
getDirectBankPaymentExpenditureByEntities(Integer detailTypeId,
List<Integer> entityIdList)
Finds the sum of debit amount of all approved Direct Bank Payments vouchers ie is VoucherType is 'Payment' and voucher name
is 'Direct Bank Payment' for the provided list of detailkeyIds.
|
org.egov.commons.utils.EntityType |
getEntityType(org.egov.commons.Accountdetailtype accountdetailtype,
Serializable detailkey) |
List<Map<String,String>> |
getExpenditureDetailsforDepositCode(Long depositCodeId,
Date asOnDate)
This API returns List of Map, Map containing Amount, VoucherNumber, VoucherDate, BillNumber & BillId of passed Depositcode
and till passed date.
|
List<Map<String,String>> |
getExpenditureDetailsforProject(Long projectCodeId,
Date asOnDate)
This API returns List of Map, Map containing Amount, VoucherNumber, VoucherDate, BillNumber & BillId of passed projectcode
and till passed date.
|
List<Map<String,String>> |
getExpenditureDetailsforProjectforFinYear(Long projectCodeId,
Date asOnDate)
This API returns List of Map, Map containing Amount, VoucherNumber, VoucherDate, BillNumber & BillId of passed projectcode
and.
|
org.egov.commons.dao.FundHibernateDAO |
getFundDAO() |
FundFlowService |
getFundFlowService() |
protected BigDecimal |
getGlcodeBalBeforeDate(Date asondate,
String glcode,
String fundcode,
Integer accountdetailType,
Integer accountdetailkey,
Integer deptId) |
protected BigDecimal |
getGlcodeBalTillDate(Date asondate,
String glcode,
String fundcode,
Integer accountdetailType,
Integer accountdetailkey,
Integer deptId) |
List<Map<String,Object>> |
getInstrumentsDetailsForSubledgerTypeAndKey(Integer accountdetailType,
Integer accountdetailKey,
Date voucherToDate)
This method will return the instrument(not cancelled and not dishonored ) details of the vouchers for a given combination
of AccountdetailTypeid and AccountdetailKeyid for which the subledger amount is on the CREDIT SIDE
|
List<BudgetUsage> |
getListBudgetUsage(Map<String,Object> queryParamMap) |
BigDecimal |
getOpeningBalAsonDate(Date asondate,
String glcode,
String fundCode) |
BigDecimal |
getOpeningBalAsonDate(Date asondate,
String glcode,
String fundCode,
Integer accountdetailType,
Integer accountdetailkey,
Integer deptId) |
BigDecimal |
getPaymentAmount(Long billId)
This method returns the total payment amount of all uncancelled payments for a particular billId.
|
Map<String,BigDecimal> |
getPaymentInfoforProjectCode(List<Long> projectCodeIdList,
Date asOnDate) |
Map<String,String> |
getPaymentInfoforProjectCodeByDepartment(List<Long> projectCodeIdList,
Date asOnDate) |
org.egov.infstr.services.PersistenceService |
getPersistenceService() |
List<org.egov.commons.CChartOfAccounts> |
getSubledgerAccountCodesForAccountDetailTypeAndNonSubledgers(Integer accountDetailTypeId) |
BigDecimal |
getSumOfBillAmount(String glcode,
String subledgerType,
Long accountdetailkeyId,
Date toBillDate)
This method will return sum of bill amount for the given combination of AccountdetailTypeid and AccountdetailKeyid for
which the AccountdetailTypeid amount is on the DEBIT SIDE .
|
Map<String,BigDecimal> |
getTotalPaymentforProjectCode(List<Long> projectCodeIdList,
Date asOnDate) |
BigDecimal |
getVoucherExpenditureByEntities(Integer detailTypeId,
List<Integer> entityIdList)
finds the sum of debit amount of all active Journal vouchers ie is VoucherType is 'Journal Voucher' for the provided list
of detailkeyIds.
|
boolean |
isShowChequeNumber() |
List<org.egov.commons.utils.EntityType> |
loadEntitesFor(org.egov.commons.Accountdetailtype detailType) |
void |
setAppConfigValuesService(org.egov.infra.admin.master.service.AppConfigValueService appConfigValuesService) |
void |
setChartOfAccountsDAO(org.egov.commons.dao.ChartOfAccountsDAO chartOfAccountsDAO) |
void |
setFundDAO(org.egov.commons.dao.FundHibernateDAO fundDAO) |
void |
setFundFlowService(FundFlowService fundFlowService) |
void |
setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService) |
public FundFlowService getFundFlowService()
public void setFundFlowService(FundFlowService fundFlowService)
public org.egov.infra.admin.master.service.AppConfigValueService getAppConfigValuesService()
public void setAppConfigValuesService(org.egov.infra.admin.master.service.AppConfigValueService appConfigValuesService)
public org.egov.commons.dao.ChartOfAccountsDAO getChartOfAccountsDAO()
public void setChartOfAccountsDAO(org.egov.commons.dao.ChartOfAccountsDAO chartOfAccountsDAO)
public org.egov.commons.dao.FundHibernateDAO getFundDAO()
public void setFundDAO(org.egov.commons.dao.FundHibernateDAO fundDAO)
public org.egov.infra.admin.master.entity.Boundary getBoundaryForUser(org.egov.infra.admin.master.entity.User user)
public org.egov.infra.admin.master.entity.Department getDepartmentForUser(org.egov.infra.admin.master.entity.User user,
org.egov.eis.service.EisCommonService eisCommonService,
org.egov.pims.service.EmployeeServiceOld employeeService,
org.egov.infstr.services.PersistenceService persistenceService)
public BigDecimal getCashBalance(Date VoucherDate, String cashInHandCode, Integer fundId)
VoucherDate - cashInHandCode - fundId - public BigDecimal getAccountBalance(Date VoucherDate, Long bankId)
VoucherDate - bankId - public BigDecimal getBankBalanceAvailableforPayment(Date VoucherDate, Integer bankaccountId) throws org.egov.infra.validation.exception.ValidationException
VoucherDate - bankaccountId - org.egov.infra.validation.exception.ValidationExceptionpublic BigDecimal getAmountApprovedForPaymentAndVoucherNotCreated(Date VoucherDate, Integer bankaccountId)
VoucherDate - bankaccountId - public BigDecimal getAmountForApprovedPaymentAndChequeNotAssigned(Date voucherDate, Integer bankaccountId)
VoucherDate - bankaccountId - public List<Map<String,Object>> getInstrumentsDetailsForSubledgerTypeAndKey(Integer accountdetailType, Integer accountdetailKey, Date voucherToDate)
accountdetailType - - detail type ID - cannot be nullaccountdetailKey - - detail key ID - cannot be nullvoucherToDate - - the upper limit of the voucherdates of the associated vouchers - current date is taken if null is
passedorg.egov.infra.exception.ApplicationRuntimeException - accountdetailType or accountdetailkey parameter is null ApplicationRuntimeException if
any other exceptionpublic BigDecimal getAccountBalance(Date VoucherDate, Long bankId, BigDecimal amount, Long paymentId, Long accGlcodeId)
public BigDecimal getSumOfBillAmount(String glcode, String subledgerType, Long accountdetailkeyId, Date toBillDate) throws org.egov.infra.exception.ApplicationRuntimeException, org.egov.infra.validation.exception.ValidationException
Chartofaccounts - - glcode - cannot be nullSubledger - Type- cannot be nullaccountdetailKey - - detail key ID - cannot be nullToDate - - the upper limit of the voucherdates of the associated vouchers - current date is taken if null is passedorg.egov.infra.exception.ApplicationRuntimeException - glcode, subledger or accountdetailkey or ToDate parameter is null
ApplicationRuntimeException if chartofaccounts or accountdetailkey doesnot exist in systemorg.egov.infra.validation.exception.ValidationExceptionpublic BigDecimal getAccountBalanceFromLedger(Date VoucherDate, Integer bankId, BigDecimal amount, Long paymentId)
public org.egov.infstr.services.PersistenceService getPersistenceService()
public void setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService)
public org.egov.commons.utils.EntityType getEntityType(org.egov.commons.Accountdetailtype accountdetailtype,
Serializable detailkey)
throws org.egov.infra.exception.ApplicationException
org.egov.infra.exception.ApplicationExceptionpublic Map<String,Object> getCashChequeInfoForBoundary() throws org.egov.infra.validation.exception.ValidationException
org.egov.infra.validation.exception.ValidationExceptionpublic boolean isShowChequeNumber()
public BigDecimal getAccountBalanceforDate(Date asondate, String glcode, String fundcode, Integer accountdetailType, Integer accountdetailkey, Integer deptId) throws org.egov.infra.validation.exception.ValidationException
asondate - - Mandatoryglcode - - - Mandatory (validate the master data)-to get the balance for this supplied account code.fundcode - -Mandatory (Fund code from fund master)accountdetailType - - optional (if supplied validate the master data)accountdetailkey - - optional (if supplied validate the master data)deptId - TODOorg.egov.infra.validation.exception.ValidationException - -public BigDecimal getAccountBalanceTillDate(Date asondate, String glcode, String fundcode, Integer accountdetailType, Integer accountdetailkey, Integer deptId) throws org.egov.infra.validation.exception.ValidationException
asondate - - Mandatoryglcode - - - Mandatory (validate the master data)-to get the balance for this supplied account code.fundcode - -Mandatory (Fund code from fund master)accountdetailType - - optional (if supplied validate the master data)accountdetailkey - - optional (if supplied validate the master data)deptId - TODOorg.egov.infra.validation.exception.ValidationException - -public BigDecimal getOpeningBalAsonDate(Date asondate, String glcode, String fundCode, Integer accountdetailType, Integer accountdetailkey, Integer deptId) throws org.egov.infra.validation.exception.ValidationException
org.egov.infra.validation.exception.ValidationExceptionprotected BigDecimal getGlcodeBalBeforeDate(Date asondate, String glcode, String fundcode, Integer accountdetailType, Integer accountdetailkey, Integer deptId) throws org.egov.infra.validation.exception.ValidationException
org.egov.infra.validation.exception.ValidationExceptionprotected BigDecimal getGlcodeBalTillDate(Date asondate, String glcode, String fundcode, Integer accountdetailType, Integer accountdetailkey, Integer deptId) throws org.egov.infra.validation.exception.ValidationException
org.egov.infra.validation.exception.ValidationExceptionpublic List<org.egov.commons.Bankbranch> getActiveBankBranchForActiveBanks()
public List<org.egov.commons.CChartOfAccounts> getSubledgerAccountCodesForAccountDetailTypeAndNonSubledgers(Integer accountDetailTypeId)
public List<org.egov.commons.CChartOfAccounts> getAllAccountCodesForAccountDetailType(Integer accountDetailTypeId)
accountDetailTypeId - public BigDecimal getOpeningBalAsonDate(Date asondate, String glcode, String fundCode) throws org.egov.infra.validation.exception.ValidationException
org.egov.infra.validation.exception.ValidationExceptionpublic List<BudgetUsage> getListBudgetUsage(Map<String,Object> queryParamMap)
queryParamMap - - HashMappublic List<org.egov.commons.utils.EntityType> loadEntitesFor(org.egov.commons.Accountdetailtype detailType) throws ClassNotFoundException
ClassNotFoundExceptionpublic BigDecimal getBillAccountBalanceforDate(Date asondate, String glcode, String fundcode, Integer accountdetailType, Integer accountdetailkey) throws org.egov.infra.validation.exception.ValidationException
asondate - - Mandatoryglcode - - Mandatory (validate the master data)-to get the balance for this supplied account code.fundcode - -Mandatory (Fund code from fund master)accountdetailType - - optional (if supplied validate the master data)accountdetailkey - - optional (if supplied validate the master data)org.egov.infra.validation.exception.ValidationExceptionpublic BigDecimal getCreditBalanceforDate(Date asondate, String glcode, String fundcode, Integer accountdetailType, Integer accountdetailkey) throws org.egov.infra.validation.exception.ValidationException
asondate - - Mandatoryglcode - - Mandatory (validate the master data)-to get the balance for this supplied account code.fundcode - -Mandatory (Fund code from fund master)accountdetailType - - optional (if supplied validate the master data)accountdetailkey - - optional (if supplied validate the master data)org.egov.infra.validation.exception.ValidationExceptionpublic BigDecimal getDepositAmountForDepositCode(Date asondate, String glcode, String fundcode, Integer accountdetailType, Integer accountdetailkey) throws org.egov.infra.validation.exception.ValidationException
org.egov.infra.validation.exception.ValidationExceptionpublic BigDecimal getAccCodeBalanceForIndirectExpense(Date asondate, String glcode, Integer accountdetailType, String accountdetailkey) throws org.egov.infra.validation.exception.ValidationException, Exception
org.egov.infra.validation.exception.ValidationExceptionExceptionpublic AccountCodePurpose getAccountCodePurposeByName(String name)
name - public Map<String,BigDecimal> getPaymentInfoforProjectCode(List<Long> projectCodeIdList, Date asOnDate) throws org.egov.infra.exception.ApplicationException
entityList - - Integer list containing ProjectCode ids.asOnDate - - The payments are considered from the beginning to asOnDate (including asOnDate)org.egov.infra.exception.ApplicationException - - If anyone of the parameters is null or the ProjectCode ids list passed is empty. - If any id
passed is wrong.public Map<String,BigDecimal> getTotalPaymentforProjectCode(List<Long> projectCodeIdList, Date asOnDate) throws org.egov.infra.exception.ApplicationException
asOnDate - TODOentityList - - Integer list containing ProjectCode ids.org.egov.infra.exception.ApplicationException - - If anyone of the parameters is null or the ProjectCode list passed is empty.public Map<String,String> getPaymentInfoforProjectCodeByDepartment(List<Long> projectCodeIdList, Date asOnDate) throws org.egov.infra.exception.ApplicationException
entityList - - Integer list containing ProjectCode ids.asOnDate - - The payments are considered from the beginning to asOnDate. Only fully approved payments are considered.
(including asOnDate)org.egov.infra.exception.ApplicationException - - If anyone of the parameters is null or the ProjectCode ids list passed is empty. - If any id
passed is wrong.public BigDecimal getPaymentAmount(Long billId) throws org.egov.infra.exception.ApplicationException
billId - - this is the EgBillregister id.org.egov.infra.exception.ApplicationException - - If parameter passed is null. - billId passed is incorrect. - Bill is cancelled.public List<Map<String,String>> getExpenditureDetailsforProject(Long projectCodeId, Date asOnDate) throws org.egov.infra.exception.ApplicationRuntimeException
projectCodeId - asOnDate - org.egov.infra.exception.ApplicationRuntimeExceptionpublic List<Map<String,String>> getExpenditureDetailsforDepositCode(Long depositCodeId, Date asOnDate) throws org.egov.infra.exception.ApplicationRuntimeException
depositCodeId - asOnDate - org.egov.infra.exception.ApplicationRuntimeExceptionpublic List<Map<String,String>> getExpenditureDetailsforProjectforFinYear(Long projectCodeId, Date asOnDate) throws org.egov.infra.exception.ApplicationRuntimeException
projectCodeId - asOnDate - org.egov.infra.exception.ApplicationRuntimeExceptionpublic BigDecimal getVoucherExpenditureByEntities(Integer detailTypeId, List<Integer> entityIdList)
detailTypeId - entityIdList - having list of id is in Integer type(AccountKey List)public BigDecimal getDirectBankPaymentExpenditureByEntities(Integer detailTypeId, List<Integer> entityIdList)
detailTypeId - entityIdList - having list of id is in Integer type(AccountKey List)Copyright © 2015–2017 eGovernments Foundation. All rights reserved.