public class AbstractEstimateService extends org.egov.infstr.services.PersistenceService<AbstractEstimate,Long>
| Modifier and Type | Field and Description |
|---|---|
static String |
APPROVED |
static String |
UNAPPROVED |
| Constructor and Description |
|---|
AbstractEstimateService() |
AbstractEstimateService(Class<AbstractEstimate> type) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,List> |
addApprovedEstimateResultList(List<BudgetFolioDetail> budgetFolioResultList,
List<org.egov.model.budget.BudgetUsage> budgetUsageList,
BigDecimal totalGrantPerc) |
void |
addFinancialYearToQuery(FinancialDetail fd,
Map<String,Object> queryParamMap) |
boolean |
checkConsumeEncumbranceBudget(FinancialDetail financialDetail,
Long finyrId,
double budgApprAmnt,
List<Long> budgetheadid,
String appropriationNumber) |
boolean |
checkForBudgetaryAppropriation(FinancialDetail financialDetail,
String appropriationNumber) |
boolean |
checkForBudgetaryAppropriationForDepositWorks(FinancialDetail financialDetail,
String appropriationNumber) |
protected void |
createAccountDetailKey(ProjectCode proj) |
Map<String,Object> |
createBudgetFolioHeaderJasperObject(AbstractEstimate ae,
BigDecimal totalGrant,
BigDecimal totalGrantPer) |
List<AbstractEstimate> |
getAbEstimateListById(String estId) |
List<org.egov.infra.admin.master.entity.AppConfigValues> |
getAppConfigValue(String moduleName,
String key) |
String |
getApporpriationType(long budgetUsageId) |
Map<String,List> |
getApprovedAppropriationDetailsForBugetHead(AbstractEstimate viewEstimate,
BigDecimal totalGrantPerc)
This method will return budgetary appropriation done estimate list for budgetHead
|
Map<String,List> |
getApprovedAppropriationDetailsForBugetHead(Map<String,Object> queryParamMap) |
String |
getBudgetAppropriationNumber(AbstractEstimate entity)
This method invokes the script service to generate the budget appropriation number.
|
BigDecimal |
getBudgetAvailable(AbstractEstimate estimate,
Date date) |
BigDecimal |
getBudgetAvailable(Integer departmentId,
Long functionId,
Integer fundId,
Long budgetGroupId,
Long finYearId) |
org.egov.dao.budget.BudgetDetailsDAO |
getBudgetDetailsDAO() |
org.egov.dao.budget.BudgetGroupDAO |
getBudgetGroupDAO() |
List<org.egov.model.budget.BudgetUsage> |
getBudgetUsageListForEstNo(String estNumber) |
org.egov.infstr.services.PersistenceService<org.egov.model.budget.BudgetUsage,Long> |
getBudgetUsageService() |
org.egov.commons.CFinancialYear |
getCurrentFinancialYear(Date estimateDate) |
DepositWorksUsageService |
getDepositWorksUsageService() |
org.egov.egf.commons.EgovCommon |
getEgovCommon() |
Double |
getEstimateAppropriationAmountForFinyear(AbstractEstimate estimate,
Integer finYearId) |
org.egov.infstr.services.PersistenceService<AbstractEstimateAppropriation,Long> |
getEstimateAppropriationService() |
Date |
getLatestApprYearEndDate(FinancialDetail financialDetail) |
org.egov.eis.entity.Assignment |
getLatestAssignmentForCurrentLoginUser() |
String |
getLatestEstimateAppropriationNumber(AbstractEstimate estimate) |
BigDecimal |
getPlanningBudgetPercentage(FinancialDetail fd,
Long financialyearid,
Integer deptid)
returns the planning budget percentage
|
org.egov.commons.CFinancialYear |
getPreviousFinancialYear() |
BigDecimal |
getTotalGrantForYear(FinancialDetail fd)
returns the sanctioned budget for the year
|
BigDecimal |
getTotalGrantForYear(FinancialDetail fd,
Long financialyearid)
returns the sanctioned budget for the year
|
BigDecimal |
getTotalGrantForYear(FinancialDetail fd,
Long financialyearid,
Integer deptid)
returns the sanctioned budget for the year
|
BigDecimal |
getTotalGrantForYearAsOnDate(FinancialDetail fd,
Long financialyearid,
Integer deptid,
Date asOnDate)
returns the sanctioned budget for the year as on the date passed
|
List<Object> |
getWODetailsForEstimateId(Long estimateId)
This function returns List of objects containing workOder Id and WorkOrder number.
|
WorkOrderService |
getWorkOrderService() |
WorksPackageService |
getWorkspackageService() |
org.egov.infra.persistence.entity.component.Money |
getWorkValueIncludingTaxesForEstList(List<AbstractEstimate> abList) |
List<Object> |
getWPDetailsForEstimateId(Long estimateId)
This function returns List of objects containing worksPackage Id and worksPackage number.
|
Boolean |
isPreviousYearApprRequired(FinancialDetail financialDetail) |
AbstractEstimate |
persistFinancialDetail(FinancialDetail financialDetail,
AbstractEstimate estimate)
This method performs the required validations and persists the
FinancialDetail object |
List<org.egov.common.entity.UOM> |
prepareUomListByExcludingSpecialUoms(List<org.egov.common.entity.UOM> uomList) |
boolean |
releaseBudgetOnReject(FinancialDetail financialDetail) |
boolean |
releaseDepositWorksAmountOnReject(FinancialDetail financialDetail) |
void |
setBudgetDetailsDAO(org.egov.dao.budget.BudgetDetailsDAO budgetDetailsDAO) |
void |
setBudgetGroupDAO(org.egov.dao.budget.BudgetGroupDAO budgetGroupDAO) |
void |
setBudgetNumberGenerator(BudgetNumberGenerator budgetNumberGenerator) |
void |
setBudgetUsageService(org.egov.infstr.services.PersistenceService<org.egov.model.budget.BudgetUsage,Long> budgetUsageService) |
void |
setDepositWorksUsageService(DepositWorksUsageService depositWorksUsageService) |
void |
setEgovCommon(org.egov.egf.commons.EgovCommon egovCommon) |
void |
setEstimateAppropriationService(org.egov.infstr.services.PersistenceService<AbstractEstimateAppropriation,Long> estimateAppropriationService) |
void |
setEstimateNumber(AbstractEstimate entity) |
void |
setProjectCode(AbstractEstimate entity)
This method generates and set the project code for the estimate
|
void |
setWorkOrderService(WorkOrderService workOrderService) |
void |
setWorkspackageService(WorksPackageService workspackageService) |
void |
setWorksService(WorksService worksService) |
addFilterCriteriaForObject, addIndexparams, applyAuditing, applyAuditing, create, delete, find, find, findAll, findAll, findAllBy, findAllByNamedQuery, findByExample, findById, findById, findByIdWithJoinFetch, findByNamedQuery, findPageBy, findPageByNamedQuery, getNamedQuery, getSearchSession, getSession, getType, indexEntity, load, merge, persist, search, search, update, validate, validateModelpublic static final String APPROVED
public static final String UNAPPROVED
public AbstractEstimateService(Class<AbstractEstimate> type)
public AbstractEstimateService()
public void setBudgetDetailsDAO(org.egov.dao.budget.BudgetDetailsDAO budgetDetailsDAO)
public void setBudgetNumberGenerator(BudgetNumberGenerator budgetNumberGenerator)
public String getBudgetAppropriationNumber(AbstractEstimate entity)
entity - an instance of AbstractEstimateString containing the generated the budget appropriation number.public void setEstimateNumber(AbstractEstimate entity)
public void setProjectCode(AbstractEstimate entity)
entity - an instance of AbstractEstimate for the project code is to be generated.protected void createAccountDetailKey(ProjectCode proj)
public AbstractEstimate persistFinancialDetail(FinancialDetail financialDetail, AbstractEstimate estimate)
FinancialDetail objectfinancialDetail - the FinancialDetail object to be persisted.estimate - the parent AbstractEstimate objectAbstractEstimate objectpublic List<org.egov.infra.admin.master.entity.AppConfigValues> getAppConfigValue(String moduleName, String key)
public boolean checkForBudgetaryAppropriation(FinancialDetail financialDetail, String appropriationNumber) throws org.egov.infra.validation.exception.ValidationException
org.egov.infra.validation.exception.ValidationExceptionpublic boolean checkConsumeEncumbranceBudget(FinancialDetail financialDetail, Long finyrId, double budgApprAmnt, List<Long> budgetheadid, String appropriationNumber)
public boolean releaseBudgetOnReject(FinancialDetail financialDetail) throws org.egov.infra.validation.exception.ValidationException
org.egov.infra.validation.exception.ValidationExceptionpublic BigDecimal getTotalGrantForYear(FinancialDetail fd) throws org.egov.infra.validation.exception.ValidationException
paramMap - org.egov.infra.validation.exception.ValidationExceptionpublic BigDecimal getTotalGrantForYear(FinancialDetail fd, Long financialyearid) throws org.egov.infra.validation.exception.ValidationException
paramMap - org.egov.infra.validation.exception.ValidationExceptionpublic BigDecimal getTotalGrantForYear(FinancialDetail fd, Long financialyearid, Integer deptid) throws org.egov.infra.validation.exception.ValidationException
paramMap - org.egov.infra.validation.exception.ValidationExceptionpublic BigDecimal getTotalGrantForYearAsOnDate(FinancialDetail fd, Long financialyearid, Integer deptid, Date asOnDate) throws org.egov.infra.validation.exception.ValidationException
paramMap - org.egov.infra.validation.exception.ValidationExceptionpublic BigDecimal getPlanningBudgetPercentage(FinancialDetail fd, Long financialyearid, Integer deptid) throws org.egov.infra.validation.exception.ValidationException
paramMap - org.egov.infra.validation.exception.ValidationExceptionpublic Map<String,List> getApprovedAppropriationDetailsForBugetHead(AbstractEstimate viewEstimate, BigDecimal totalGrantPerc)
public Map<String,List> getApprovedAppropriationDetailsForBugetHead(Map<String,Object> queryParamMap)
public void addFinancialYearToQuery(FinancialDetail fd, Map<String,Object> queryParamMap)
public Map<String,List> addApprovedEstimateResultList(List<BudgetFolioDetail> budgetFolioResultList, List<org.egov.model.budget.BudgetUsage> budgetUsageList, BigDecimal totalGrantPerc)
public Map<String,Object> createBudgetFolioHeaderJasperObject(AbstractEstimate ae, BigDecimal totalGrant, BigDecimal totalGrantPer)
public String getApporpriationType(long budgetUsageId)
public org.egov.dao.budget.BudgetGroupDAO getBudgetGroupDAO()
public void setBudgetGroupDAO(org.egov.dao.budget.BudgetGroupDAO budgetGroupDAO)
public org.egov.dao.budget.BudgetDetailsDAO getBudgetDetailsDAO()
public void setWorksService(WorksService worksService)
public org.egov.eis.entity.Assignment getLatestAssignmentForCurrentLoginUser()
public org.egov.commons.CFinancialYear getCurrentFinancialYear(Date estimateDate)
public org.egov.commons.CFinancialYear getPreviousFinancialYear()
public Date getLatestApprYearEndDate(FinancialDetail financialDetail)
public BigDecimal getBudgetAvailable(AbstractEstimate estimate, Date date) throws org.egov.infra.validation.exception.ValidationException
org.egov.infra.validation.exception.ValidationExceptionpublic Boolean isPreviousYearApprRequired(FinancialDetail financialDetail)
public BigDecimal getBudgetAvailable(Integer departmentId, Long functionId, Integer fundId, Long budgetGroupId, Long finYearId) throws org.egov.infra.validation.exception.ValidationException
org.egov.infra.validation.exception.ValidationExceptionpublic List<AbstractEstimate> getAbEstimateListById(String estId)
public org.egov.infra.persistence.entity.component.Money getWorkValueIncludingTaxesForEstList(List<AbstractEstimate> abList)
public void setEgovCommon(org.egov.egf.commons.EgovCommon egovCommon)
public org.egov.egf.commons.EgovCommon getEgovCommon()
public boolean checkForBudgetaryAppropriationForDepositWorks(FinancialDetail financialDetail, String appropriationNumber) throws org.egov.infra.validation.exception.ValidationException
org.egov.infra.validation.exception.ValidationExceptionpublic boolean releaseDepositWorksAmountOnReject(FinancialDetail financialDetail) throws org.egov.infra.validation.exception.ValidationException
org.egov.infra.validation.exception.ValidationExceptionpublic void setDepositWorksUsageService(DepositWorksUsageService depositWorksUsageService)
public DepositWorksUsageService getDepositWorksUsageService()
public Double getEstimateAppropriationAmountForFinyear(AbstractEstimate estimate, Integer finYearId)
public void setEstimateAppropriationService(org.egov.infstr.services.PersistenceService<AbstractEstimateAppropriation,Long> estimateAppropriationService)
public org.egov.infstr.services.PersistenceService<AbstractEstimateAppropriation,Long> getEstimateAppropriationService()
public List<org.egov.common.entity.UOM> prepareUomListByExcludingSpecialUoms(List<org.egov.common.entity.UOM> uomList)
public List<org.egov.model.budget.BudgetUsage> getBudgetUsageListForEstNo(String estNumber)
public List<Object> getWODetailsForEstimateId(Long estimateId)
estimateId - public List<Object> getWPDetailsForEstimateId(Long estimateId)
estimateId - public String getLatestEstimateAppropriationNumber(AbstractEstimate estimate)
public org.egov.infstr.services.PersistenceService<org.egov.model.budget.BudgetUsage,Long> getBudgetUsageService()
public void setBudgetUsageService(org.egov.infstr.services.PersistenceService<org.egov.model.budget.BudgetUsage,Long> budgetUsageService)
public WorkOrderService getWorkOrderService()
public void setWorkOrderService(WorkOrderService workOrderService)
public WorksPackageService getWorkspackageService()
public void setWorkspackageService(WorksPackageService workspackageService)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.