public class WorksService extends Object
| Constructor and Description |
|---|
WorksService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkBigDecimalValue(BigDecimal obj1,
BigDecimal obj2)
if the bigdecimal obj1 is greater than or egual to obj2 then it returns false
|
void |
createAccountDetailKey(Long id,
String type) |
org.egov.commons.Accountdetailtype |
getAccountdetailtypeByName(String name) |
List<org.egov.infra.admin.master.entity.Department> |
getAllDeptmentsForLoggedInUser() |
List<org.egov.commons.CFinancialYear> |
getAllFinancialYearsForWorks() |
List<org.egov.infra.admin.master.entity.AppConfigValues> |
getAppConfigValue(String moduleName,
String key)
This method will return the value in AppConfigValue table for the given module and key.
|
Map<String,String> |
getBoundaryDepartment() |
List<Map<String,Object>> |
getBudgetDetailsForFinYear(String uuid,
Date fromDate,
Date toDate) |
org.egov.commons.Fund |
getCapitalFund() |
List<Map<String,Map<String,BigDecimal>>> |
getCJVCountAndAmountsForSpillOver(String uuid,
Date fromDate,
Date toDate)
NOTE --- THIS API IS USED ONLY FOR Works Report 2 dashboard BY DEPARTMENT IN WORKS MODULE
|
Double |
getConfigval() |
org.egov.infra.admin.master.entity.User |
getCurrentLoggedInUser() |
Long |
getCurrentLoggedInUserId() |
org.egov.infra.admin.master.entity.Department |
getDepartmentByName(String deptName) |
String |
getEmpNameDesignation(org.egov.pims.commons.Position position,
Date date) |
Map<String,Integer> |
getExceptionSOR() |
String |
getInSubQuery(List<Object> idList,
String param,
boolean isApostropheRequired) |
List<String> |
getNatureOfWorkAppConfigValues(String moduleName,
String key) |
BigDecimal |
getPaymentInfoforProjectCode(List<Object> projectCodeIdList,
Date asOnDate) |
BigDecimal |
getPaymentInfoforProjectCodeSubQuery(String projectCodeIdStr,
Date asOnDate)
Similar to getPaymentInfoforProjectCode() but difference is the sub query used to generate the list of project code ids is
passed as parameter instead
|
List<Map<String,Object>> |
getSpillOverWorkValue(String uuid,
Date fromDate,
Date toDate) |
Collection<Date> |
getStatusDateDetails(Date[] statusDates) |
List<org.egov.commons.EgwStatus> |
getStatusesByParams(String objStatus,
String objSetStatus,
String objLastStatus,
String objType) |
Collection<String> |
getStatusNameDetails(String[] statusNames) |
List<String> |
getTendertypeList() |
List<Map<String,Map<String,BigDecimal>>> |
getTotalCJVCountAndAmounts(String uuid)
NOTE --- THIS API IS USED ONLY FOR WORK PROGRESS ABSTRACT REPORT BY DEPARTMENT IN WORKS MODULE
|
BigDecimal |
getTotalPaymentForProjectCode(Long projcodeId) |
List<Map<String,Object>> |
getVoucherCounts(String uuid)
NOTE --- THIS API IS USED ONLY FOR WORK PROGRESS ABSTRACT REPORT BY DEPARTMENT IN WORKS MODULE
|
List<Map<String,Object>> |
getVoucherCountsForSpillOver(String uuid,
Date fromDate,
Date toDate)
NOTE --- THIS API IS USED ONLY FOR WORK PROGRESS ABSTRACT REPORT BY DEPARTMENT IN WORKS MODULE
|
List<Map<String,Object>> |
getWorkProgressAbstractReport2TotalPayments(String uuid,
Date fromDate,
Date toDate)
NOTE --- THIS API IS USED ONLY FOR WORK PROGRESS ABSTRACT REPORT 2 BY DEPARTMENT IN WORKS MODULE
|
List<Map<String,Object>> |
getWorkProgressAbstractReport2VoucherCounts(String uuid,
Date fromDate,
Date toDate)
NOTE --- THIS API IS USED ONLY FOR WORK PROGRESS ABSTRACT REPORT 2 BY DEPARTMENT IN WORKS MODULE
|
List<Map<String,Object>> |
getWorkProgressTotal(String uuid)
NOTE --- THIS API IS USED ONLY FOR WORK PROGRESS ABSTRACT REPORT BY DEPARTMENT IN WORKS MODULE
|
List<Map<String,Object>> |
getWorkProgressTotalPayments(String uuid)
NOTE --- THIS API IS USED ONLY FOR WORK PROGRESS ABSTRACT REPORT BY DEPARTMENT IN WORKS MODULE
|
List<Map<String,Object>> |
getWorkProgSpillOverTotalPayments(String uuid,
Date fromDate,
Date toDate)
NOTE --- THIS API IS USED ONLY FOR WORK PROGRESS ABSTRACT REPORT BY DEPARTMENT IN WORKS MODULE
|
String |
getWorksConfigValue(String key) |
List |
getWorksRoles() |
void |
setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService) |
String |
toCurrency(double money) |
boolean |
validateWorkflowForUser(org.egov.infra.workflow.entity.StateAware wfObj,
org.egov.infra.admin.master.entity.User user) |
public List<org.egov.infra.admin.master.entity.AppConfigValues> getAppConfigValue(String moduleName, String key)
moduleName - key - public List<String> getNatureOfWorkAppConfigValues(String moduleName, String key)
public org.egov.commons.Accountdetailtype getAccountdetailtypeByName(String name)
public Double getConfigval()
public String getEmpNameDesignation(org.egov.pims.commons.Position position, Date date)
public boolean checkBigDecimalValue(BigDecimal obj1, BigDecimal obj2)
obj1 - obj2 - public List<org.egov.commons.EgwStatus> getStatusesByParams(String objStatus, String objSetStatus, String objLastStatus, String objType)
public List getWorksRoles()
public boolean validateWorkflowForUser(org.egov.infra.workflow.entity.StateAware wfObj,
org.egov.infra.admin.master.entity.User user)
public Long getCurrentLoggedInUserId()
public org.egov.infra.admin.master.entity.User getCurrentLoggedInUser()
public List<Map<String,Object>> getWorkProgressTotalPayments(String uuid) throws org.egov.infra.exception.ApplicationException
uuid - - Only project codes ids associated with this uuid are consideredorg.egov.infra.exception.ApplicationException - - If anyone of the parameters is null or the ProjectCode list passed is empty.public List<Map<String,Object>> getVoucherCounts(String uuid) throws org.egov.infra.exception.ApplicationException
uuid - - Only project codes ids associated with this uuid are consideredorg.egov.infra.exception.ApplicationException - - If anyone of the parameters is null or the ProjectCode list passed is empty.public List<Map<String,Map<String,BigDecimal>>> getTotalCJVCountAndAmounts(String uuid) throws org.egov.infra.exception.ApplicationException
uuid - - Only project codes ids associated with this uuid are consideredorg.egov.infra.exception.ApplicationException - - If anyone of the parameters is null or the ProjectCode list passed is empty.public List<Map<String,Object>> getWorkProgressTotal(String uuid) throws org.egov.infra.exception.ApplicationException
uuid - - Only project codes ids associated with this uuid are consideredorg.egov.infra.exception.ApplicationException - - If anyone of the parameters is null or the ProjectCode list passed is empty.public List<Map<String,Object>> getWorkProgressAbstractReport2TotalPayments(String uuid, Date fromDate, Date toDate) throws org.egov.infra.exception.ApplicationException
uuid - - Only project codes ids associated with this uuid are consideredorg.egov.infra.exception.ApplicationException - - If anyone of the parameters is null or the ProjectCode list passed is empty.public BigDecimal getTotalPaymentForProjectCode(Long projcodeId) throws org.egov.infra.exception.ApplicationException
Project - code id for which the payment amount should be consideredorg.egov.infra.exception.ApplicationException - - If the parameter is nullpublic List<Map<String,Object>> getWorkProgressAbstractReport2VoucherCounts(String uuid, Date fromDate, Date toDate) throws org.egov.infra.exception.ApplicationException
uuid - - Only project codes ids associated with this uuid are consideredorg.egov.infra.exception.ApplicationException - - If anyone of the parameters is null or the ProjectCode list passed is empty.public List<Map<String,Object>> getWorkProgSpillOverTotalPayments(String uuid, Date fromDate, Date toDate) throws org.egov.infra.exception.ApplicationException
uuid - - Only project codes ids associated with this uuid are consideredorg.egov.infra.exception.ApplicationException - - If anyone of the parameters is null or the ProjectCode list passed is empty.public List<Map<String,Object>> getVoucherCountsForSpillOver(String uuid, Date fromDate, Date toDate) throws org.egov.infra.exception.ApplicationException
uuid - - Only project codes ids associated with this uuid are consideredorg.egov.infra.exception.ApplicationException - - If anyone of the parameters is null or the ProjectCode list passed is empty.public org.egov.commons.Fund getCapitalFund()
public List<Map<String,Object>> getBudgetDetailsForFinYear(String uuid, Date fromDate, Date toDate)
public List<Map<String,Object>> getSpillOverWorkValue(String uuid, Date fromDate, Date toDate)
public BigDecimal getPaymentInfoforProjectCode(List<Object> projectCodeIdList, Date asOnDate) throws org.egov.infra.exception.ApplicationException
entityList - - Object list containing ProjectCode ids.asOnDate - - The payments are considered from the beginning to asOnDate (excluding asOnDate)org.egov.infra.exception.ApplicationException - - If anyone of the parameters is null or the ProjectCode ids list passed is empty.public BigDecimal getPaymentInfoforProjectCodeSubQuery(String projectCodeIdStr, Date asOnDate) throws org.egov.infra.exception.ApplicationException
projectCodeIdStr - asOnDate - org.egov.infra.exception.ApplicationExceptionpublic String getInSubQuery(List<Object> idList, String param, boolean isApostropheRequired)
public List<org.egov.infra.admin.master.entity.Department> getAllDeptmentsForLoggedInUser()
public org.egov.infra.admin.master.entity.Department getDepartmentByName(String deptName)
public void setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService)
public List<org.egov.commons.CFinancialYear> getAllFinancialYearsForWorks()
public List<Map<String,Map<String,BigDecimal>>> getCJVCountAndAmountsForSpillOver(String uuid, Date fromDate, Date toDate) throws org.egov.infra.exception.ApplicationException
uuid - - Only spill over project codes ids associated with this uuid are consideredorg.egov.infra.exception.ApplicationException - - If anyone of the parameters is null or the ProjectCode list passed is empty.public String toCurrency(double money)
public Collection<String> getStatusNameDetails(String[] statusNames)
public Collection<Date> getStatusDateDetails(Date[] statusDates)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.