public class MeasurementBookServiceImpl extends BaseServiceImpl<MBHeader,Long> implements MeasurementBookService
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_STATUS |
static String |
BILLDATE |
static String |
BILLNO |
static String |
BILLSTATUS |
static String |
CONTRACTOR_ID |
static String |
CREATE_DATE |
static String |
DEPT_ID |
static String |
EST_NO |
static String |
FROM_DATE |
static String |
MB_PAGE_NO |
static String |
MB_REF_NO |
static String |
STATUS |
static String |
TO_DATE |
static String |
WORKORDER_NO |
genericService, persistenceService| Constructor and Description |
|---|
MeasurementBookServiceImpl(org.egov.infstr.services.PersistenceService<MBHeader,Long> persistenceService) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
approvalLimitCrossed(MBDetails details)
Check if mb entries are within approved limit or not.
|
MBHeader |
calculateMBDetails(MBHeader mbHeader,
boolean isPersistedObject)
Populate all the cumulative fields related to mbdetail line item
|
List<MBHeader> |
getApprovedMBList(Long workOrderId,
Long workOrderEstimateId,
Date asOnDate)
List of all approved MB's for which Bill is not generated or bill is cancelled.
|
String |
getFinalBillTypeConfigValue() |
Date |
getLastMBCreatedDate(Long woId,
Long estId)
returns last MB created date
|
Date |
getLatestBillDateForMB(Long workOrderId)
returns latest bill date for MB
|
Date |
getLatestBillDateForMBPassingWOEstimate(Long workOrderEstimateId)
returns latest bill date for MB
|
List<MBHeader> |
getPartBillList(Long workOrderId,
String billtype)
List of all MB's were the bill is created and bill type is part bill
|
BigDecimal |
getTotalMBAmount(Long workOrderId,
Long estimateId)
This returns sum of MB amount for the passed workOrderId and estimateId
|
BigDecimal |
getTotalMBAmountForPrevMBs(WorkOrderEstimate workOrderEstimate,
double negoPerc,
String tenderType)
This is used in validating the sum of all MBs against the estimate wise WO amount This returns sum of all previous MBs
|
List<WorkOrderEstimate> |
getWOEstForBillExludingLegacyMB(List<WorkOrderEstimate> workOrderEstimateList)
This method will return workorderestimates objects pending for Bill , but it will not consider Legacy MBs
|
Date |
getWorkCommencedDate(Long woId)
retrurns work commenced date
|
List<WorkOrderEstimate> |
getWorkOrderEstimatesForBill(List<WorkOrderEstimate> workOrderEstimateList)
This method will return workorderestimates objects pending for Bill
|
List<WorkOrderEstimate> |
getWorkOrderEstimatesForMB(List<WorkOrderEstimate> workOrderEstimateList)
This method will return workorderestimates objects pending for MB
|
boolean |
isMBExistForLineItem(String workOrderNumber,
long lineItemId) |
double |
prevCumulativeQuantity(Long woActivityId,
Long mbHeaderId)
Get previous cumulative amount(approved, approval pending and draft entries) based on workorder activity Id.
|
double |
prevCumulativeQuantityIncludingCQ(Long woActivityId,
Long mbHeaderId,
Long activityId,
WorkOrder workOrder) |
List<String> |
searchMB(Map<String,Object> criteriaMap,
List<Object> paramList)
This method will search list of mbheader based on input criteria.
|
void |
setWorksService(WorksService worksService) |
double |
totalEstimatedQuantity(Long woActivityId,
Long mbHeaderId,
Long activityId,
WorkOrder workOrder)
This is used by MB screens.
|
double |
totalEstimatedQuantityForPreviousREs(Long woActivityId,
Long estimateId,
Long activityId,
WorkOrder workOrder)
Similar to totalEstimatedQuantityForRE but will consider only previous REs and not all REs
|
double |
totalEstimatedQuantityForRE(Long woActivityId,
Long estimateId,
Long activityId,
WorkOrder workOrder)
This is used by RE screens.
|
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 WORKORDER_NO
public static final String CONTRACTOR_ID
public static final String CREATE_DATE
public static final String MB_REF_NO
public static final String MB_PAGE_NO
public static final String STATUS
public static final String BILLDATE
public static final String BILLSTATUS
public static final String BILLNO
public static final String ALL_STATUS
public static final String FROM_DATE
public static final String TO_DATE
public static final String EST_NO
public static final String DEPT_ID
public List<String> searchMB(Map<String,Object> criteriaMap, List<Object> paramList)
searchMB in interface MeasurementBookServicecriteriaMap - paramList - TODOpublic double prevCumulativeQuantity(Long woActivityId, Long mbHeaderId)
prevCumulativeQuantity in interface MeasurementBookServicewoActivityId - public double prevCumulativeQuantityIncludingCQ(Long woActivityId, Long mbHeaderId, Long activityId, WorkOrder workOrder)
prevCumulativeQuantityIncludingCQ in interface MeasurementBookServicepublic double totalEstimatedQuantityForRE(Long woActivityId, Long estimateId, Long activityId, WorkOrder workOrder)
totalEstimatedQuantityForRE in interface MeasurementBookServicewoActivityId - ,estimateId,activityIdpublic double totalEstimatedQuantityForPreviousREs(Long woActivityId, Long estimateId, Long activityId, WorkOrder workOrder)
totalEstimatedQuantityForPreviousREs in interface MeasurementBookServicewoActivityId - ,estimateId,activityId, workOrderpublic List<WorkOrderEstimate> getWorkOrderEstimatesForMB(List<WorkOrderEstimate> workOrderEstimateList)
getWorkOrderEstimatesForMB in interface MeasurementBookServiceworkOrderEstimateList - mbHeader - public List<WorkOrderEstimate> getWorkOrderEstimatesForBill(List<WorkOrderEstimate> workOrderEstimateList)
getWorkOrderEstimatesForBill in interface MeasurementBookServiceworkOrderEstimateList - mbHeader - public List<WorkOrderEstimate> getWOEstForBillExludingLegacyMB(List<WorkOrderEstimate> workOrderEstimateList)
getWOEstForBillExludingLegacyMB in interface MeasurementBookServiceworkOrderEstimateList - mbHeader - public MBHeader calculateMBDetails(MBHeader mbHeader, boolean isPersistedObject)
calculateMBDetails in interface MeasurementBookServicewoActivityId - public double totalEstimatedQuantity(Long woActivityId, Long mbHeaderId, Long activityId, WorkOrder workOrder)
totalEstimatedQuantity in interface MeasurementBookServicewoActivityId - ,mbHeaderId,activityId, workOrderpublic boolean isMBExistForLineItem(String workOrderNumber, long lineItemId)
isMBExistForLineItem in interface MeasurementBookServiceworkOrderNumber - ,lineItemIdpublic Boolean approvalLimitCrossed(MBDetails details)
approvalLimitCrossed in interface MeasurementBookServicembHeader - public List<MBHeader> getApprovedMBList(Long workOrderId, Long workOrderEstimateId, Date asOnDate)
getApprovedMBList in interface MeasurementBookServiceworkOrderId - asOnDate - public List<MBHeader> getPartBillList(Long workOrderId, String billtype)
getPartBillList in interface MeasurementBookServiceworkOrderId - billtype - public Date getLatestBillDateForMB(Long workOrderId)
getLatestBillDateForMB in interface MeasurementBookServiceworkOrderId - public Date getLatestBillDateForMBPassingWOEstimate(Long workOrderEstimateId)
getLatestBillDateForMBPassingWOEstimate in interface MeasurementBookServiceworkOrderEstimateId - public void setWorksService(WorksService worksService)
public String getFinalBillTypeConfigValue()
public BigDecimal getTotalMBAmountForPrevMBs(WorkOrderEstimate workOrderEstimate, double negoPerc, String tenderType)
MeasurementBookServicegetTotalMBAmountForPrevMBs in interface MeasurementBookServiceworkOrderEstimate - ,negoPerc,tenderTypepublic BigDecimal getTotalMBAmount(Long workOrderId, Long estimateId)
MeasurementBookServicegetTotalMBAmount in interface MeasurementBookServiceworkOrderId - ,estimateIdpublic Date getWorkCommencedDate(Long woId)
MeasurementBookServicegetWorkCommencedDate in interface MeasurementBookServicepublic Date getLastMBCreatedDate(Long woId, Long estId)
MeasurementBookServicegetLastMBCreatedDate in interface MeasurementBookServiceCopyright © 2015–2016 eGovernments Foundation. All rights reserved.