public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrder,Long> implements WorkOrderService
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_FLAG |
static String |
ACTIVITY_CODE |
static String |
ACTIVITY_DESC |
static String |
CANCELWO |
static String |
CONTRACTOR_ID |
static String |
CREATE_DATE |
static String |
ESTIMATE_NO |
static String |
FROM_DATE |
static String |
MB_CREATION |
static String |
PROJECT_CODE |
static String |
REVISION_TYPE |
static String |
SOURCEPAGE |
static String |
STATUS |
static String |
TENDER_FILE_NO |
static String |
TENDER_NO |
static String |
TO_DATE |
static String |
WORKORDER_ESTIMATE_ID |
static String |
WORKORDER_ID |
static String |
WORKORDER_NO |
static String |
WP_NO |
genericService, persistenceService| Constructor and Description |
|---|
WorkOrderServiceImpl(org.egov.infstr.services.PersistenceService<WorkOrder,Long> persistenceService) |
| Modifier and Type | Method and Description |
|---|---|
WorkOrderEstimate |
calculateCumulativeDetailsForRE(WorkOrderEstimate workOrderEstimate)
Populate all the cumulative fields related to WOA line item
|
Map |
createHeaderParams(WorkOrder workOrder,
String type)
returns headermap for pdf
|
MBHeader |
findLastMBPageNoForLineItem(WorkOrderActivity workOrderActivity,
Long mbHeaderId)
This method will return toPageNo for a line item from the last mb entry.
|
List<WorkOrderEstimate> |
getAbstractEstimateListForWp(WorkOrder workOrder)
returns WorkOrderEstimate list
|
Collection<WorkOrderActivity> |
getActionWorkOrderActivitiesList(List<WorkOrderActivity> actionWorkOrderActivities)
This function returns collection of WorkOrderActivity Objects.
|
Collection<EstimateLineItemsForWP> |
getActivitiesForWorkorder(TenderResponse tenderResponse)
This method will return ActivitiesForWorkorder.
|
Collection<EstimateLineItemsForWP> |
getActivitiesForWorkorder(WorkOrder workOrder)
This method will return ActivitiesForWorkorder.
|
Collection<EstimateLineItemsForWP> |
getActivitiesForWorksPackage(TenderResponse tenderResponse)
This method will return Activities For WorksPackage.
|
protected List<AbstractEstimateForWp> |
getAeForWp(List<WorkOrderEstimate> aeList)
returns AbstractEstimateForWp list
|
List<AbstractEstimateForWp> |
getAeForWp(WorkOrder workOrder)
returns AbstractEstimateForWp list
|
List<Contractor> |
getAllContractorForWorkOrder() |
List<Contractor> |
getContractorsWithWO()
This method will return all the contractors which are having active work orders.
|
String |
getFinalBillTypeConfigValue() |
double |
getGrandTotal(List<AbstractEstimateForWp> aeForWp) |
Double |
getLabourWelfareFundConfValue()
gets the LabourWelfareFund appconfig value
|
protected String |
getProjectCodeListForAe(List<WorkOrderEstimate> aeList) |
Double |
getSecurityDepositConfValue()
gets the security desposit appconfig value
|
Object |
getTenderNegotiationInfo(String negotiationNo)
returns tender type and percentage negotiated amount rate
|
protected org.egov.infra.admin.master.entity.Boundary |
getTopLevelBoundary(org.egov.infra.admin.master.entity.Boundary boundary) |
Date |
getWorkCommencedDateByWOId(Long id)
retruns work commenced date for a particular work order by taking id as parameter
|
List<Object> |
getWorkOrderDetails(Long estimateId)
This function returns list of Objects containing workOder Id and WorkOrder number.
|
double |
getWorkOrderEstimateAmount(WorkOrderEstimate ae) |
WorkOrderEstimate |
getWorkOrderEstimateForWOIdAndEstimateId(Long workOrderId,
Long estimateId)
returns WorkOrderEstimate based on the workorder id and estimate id
|
String |
getWorksPackageName(String wpNumber)
returns the WorksPackage name
|
Boolean |
isApprovalLimitReachedForWO(Long woId)
This method will check whether approval limit is already used for all line item for the WO.
|
Boolean |
isMBInApprovalPendingForWO(String woNumber)
Check whether any MB entry is pending for approval for the given WorkOrder
|
Boolean |
isWOValidforBill(Long woId) |
List<WorkOrder> |
searchWO(Map<String,Object> criteriaMap)
This method will search list of WO's for the given criteria.
|
List<WorkOrderActivity> |
searchWOActivities(Map<String,Object> criteriaMap)
This method will search and return list of woactivity based on searched criteria.
|
List<WorkOrderActivity> |
searchWOActivitiesForChangeQuantity(Map<String,Object> criteriaMap)
For the purpose of change quantity in revision estimate Will get work order activity list for the original work order and
subsequent revision work orders It will not get the activities for which MB is present in workflow
|
List<WorkOrderActivity> |
searchWOActivitiesFromRevEstimates(Map<String,Object> criteriaMap)
This method will search and return list of woactivity from only revision estimates based on searched criteria.
|
List<WorkOrder> |
searchWOForBilling(Map<String,Object> criteriaMap)
This method will search list of WO's for the given criteria and eligible for MB.
|
List<WorkOrder> |
searchWOForMB(Map<String,Object> criteriaMap)
This method will search list of WO's for the given criteria and eligible for MB.
|
List<String> |
searchWOQuery(Map<String,Object> criteriaMap,
List<Object> paramList)
Copy of searchWO using for Pagination This method will search list of WO's for the given criteria.
|
List<String> |
searchWOToPaginatedView(Map<String,Object> criteriaMap,
List<Object> paramList)
This method will search list of WO's for the given criteria and eligible to be view.
|
List<WorkOrder> |
searchWOToView(Map<String,Object> criteriaMap)
This method will search list of WO's for the given criteria and eligible to be view.
|
void |
setMeasurementBookService(MeasurementBookService measurementBookService) |
WorkOrder |
setWorkOrderNumber(AbstractEstimate abstractEstimate,
WorkOrder workOrder,
WorksPackage worksPackage)
This method will set workorder number to the work order object
|
void |
setWorkOrderNumberGenerators(WorkOrderNumberGenerator workOrderNumberGenerators) |
void |
setWorkspackageService(WorksPackageService workspackageService) |
void |
setWorksService(WorksService worksService)
This method will check whether final bill is already approved for wo or not.
|
create, delete, find, find, findAll, findAllBy, findAllByNamedQuery, findByExample, findById, findByNamedQuery, getCurrentFinancialYear, merge, persist, setGenericService, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, delete, find, find, findAll, findAllBy, findAllByNamedQuery, findByExample, findById, findByNamedQuery, getCurrentFinancialYear, merge, persist, updatepublic static final String CONTRACTOR_ID
public static final String CREATE_DATE
public static final String FROM_DATE
public static final String TO_DATE
public static final String STATUS
public static final String TENDER_NO
public static final String WORKORDER_NO
public static final String MB_CREATION
public static final String WORKORDER_ID
public static final String WORKORDER_ESTIMATE_ID
public static final String PROJECT_CODE
public static final String ACTIVITY_DESC
public static final String ACTIVITY_CODE
public static final String ACTION_FLAG
public static final String ESTIMATE_NO
public static final String WP_NO
public static final String TENDER_FILE_NO
public static final String REVISION_TYPE
public static final String SOURCEPAGE
public static final String CANCELWO
public Double getSecurityDepositConfValue()
WorkOrderServicegetSecurityDepositConfValue in interface WorkOrderServicepublic Double getLabourWelfareFundConfValue()
WorkOrderServicegetLabourWelfareFundConfValue in interface WorkOrderServicepublic WorkOrder setWorkOrderNumber(AbstractEstimate abstractEstimate, WorkOrder workOrder, WorksPackage worksPackage)
setWorkOrderNumber in interface WorkOrderServiceentity - workOrder - public List<Contractor> getContractorsWithWO()
getContractorsWithWO in interface WorkOrderServicepublic List<WorkOrder> searchWOForMB(Map<String,Object> criteriaMap)
searchWOForMB in interface WorkOrderServicecriteriaMap - public List<WorkOrder> searchWOForBilling(Map<String,Object> criteriaMap)
searchWOForBilling in interface WorkOrderServicecriteriaMap - public List<String> searchWOToPaginatedView(Map<String,Object> criteriaMap, List<Object> paramList)
searchWOToPaginatedView in interface WorkOrderServicecriteriaMap - public List<String> searchWOQuery(Map<String,Object> criteriaMap, List<Object> paramList)
criteriaMap - public List<WorkOrder> searchWOToView(Map<String,Object> criteriaMap)
searchWOToView in interface WorkOrderServicecriteriaMap - public List<WorkOrder> searchWO(Map<String,Object> criteriaMap)
criteriaMap - public Boolean isApprovalLimitReachedForWO(Long woId)
woId - public List<WorkOrderActivity> searchWOActivities(Map<String,Object> criteriaMap)
searchWOActivities in interface WorkOrderServicecriteriaMap - public List<WorkOrderActivity> searchWOActivitiesForChangeQuantity(Map<String,Object> criteriaMap)
searchWOActivitiesForChangeQuantity in interface WorkOrderServicecriteriaMap - public List<WorkOrderActivity> searchWOActivitiesFromRevEstimates(Map<String,Object> criteriaMap)
searchWOActivitiesFromRevEstimates in interface WorkOrderServicecriteriaMap - public MBHeader findLastMBPageNoForLineItem(WorkOrderActivity workOrderActivity, Long mbHeaderId)
findLastMBPageNoForLineItem in interface WorkOrderServiceworkOrderActivity - public void setWorksService(WorksService worksService)
woId - public void setWorkOrderNumberGenerators(WorkOrderNumberGenerator workOrderNumberGenerators)
workOrderNumberGenerators - public List<Contractor> getAllContractorForWorkOrder()
getAllContractorForWorkOrder in interface WorkOrderServicepublic Boolean isMBInApprovalPendingForWO(String woNumber)
isMBInApprovalPendingForWO in interface WorkOrderServicewoId - public Collection<EstimateLineItemsForWP> getActivitiesForWorkorder(TenderResponse tenderResponse)
getActivitiesForWorkorder in interface WorkOrderServicetenderResponse - public Collection<EstimateLineItemsForWP> getActivitiesForWorksPackage(TenderResponse tenderResponse)
getActivitiesForWorksPackage in interface WorkOrderServicetenderResponse - public Collection<EstimateLineItemsForWP> getActivitiesForWorkorder(WorkOrder workOrder)
getActivitiesForWorkorder in interface WorkOrderServiceWorkOrder - public Map createHeaderParams(WorkOrder workOrder, String type)
createHeaderParams in interface WorkOrderServiceworkOrder - public double getGrandTotal(List<AbstractEstimateForWp> aeForWp)
protected org.egov.infra.admin.master.entity.Boundary getTopLevelBoundary(org.egov.infra.admin.master.entity.Boundary boundary)
protected String getProjectCodeListForAe(List<WorkOrderEstimate> aeList)
protected List<AbstractEstimateForWp> getAeForWp(List<WorkOrderEstimate> aeList)
workOrder - public double getWorkOrderEstimateAmount(WorkOrderEstimate ae)
public List<AbstractEstimateForWp> getAeForWp(WorkOrder workOrder)
WorkOrderServicegetAeForWp in interface WorkOrderServicepublic List<WorkOrderEstimate> getAbstractEstimateListForWp(WorkOrder workOrder)
workOrder - public WorkOrderEstimate calculateCumulativeDetailsForRE(WorkOrderEstimate workOrderEstimate)
calculateCumulativeDetailsForRE in interface WorkOrderServiceworkOrderEstimate - public void setWorkspackageService(WorksPackageService workspackageService)
public void setMeasurementBookService(MeasurementBookService measurementBookService)
public String getFinalBillTypeConfigValue()
public Date getWorkCommencedDateByWOId(Long id)
WorkOrderServicegetWorkCommencedDateByWOId in interface WorkOrderServicepublic String getWorksPackageName(String wpNumber)
WorkOrderServicegetWorksPackageName in interface WorkOrderServicepublic Object getTenderNegotiationInfo(String negotiationNo)
WorkOrderServicegetTenderNegotiationInfo in interface WorkOrderServicepublic WorkOrderEstimate getWorkOrderEstimateForWOIdAndEstimateId(Long workOrderId, Long estimateId)
WorkOrderServicegetWorkOrderEstimateForWOIdAndEstimateId in interface WorkOrderServiceworkOrderId - ,estimateIdpublic List<Object> getWorkOrderDetails(Long estimateId)
WorkOrderServicegetWorkOrderDetails in interface WorkOrderServicepublic Collection<WorkOrderActivity> getActionWorkOrderActivitiesList(List<WorkOrderActivity> actionWorkOrderActivities)
WorkOrderServicegetActionWorkOrderActivitiesList in interface WorkOrderServiceCopyright © 2015–2016 eGovernments Foundation. All rights reserved.