org.kuali.kfs.module.cg.service.impl
Class CloseServiceImpl
java.lang.Object
org.kuali.kfs.module.cg.service.impl.CloseServiceImpl
- All Implemented Interfaces:
- CloseService
@Transactional
public class CloseServiceImpl
- extends Object
- implements CloseService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloseServiceImpl
public CloseServiceImpl()
close
public boolean close()
- Get the max proposal_close_number in cg_prpsl_close_t.
- Get the Close with that max_close_number.
got
- If todays date is the same as the user_initiate_date on that Close, continue. Else, break.
- Get all proposals with a null closing_date and a submission_date <= the last_closed_date of the Close with the
max_proposal_close number.
- Save the number of proposals that come back.
- Update each of these proposals setting the close_date to todays date.
- Get all awards with a null closing_date, an entry_date <= the last_closed_date of the Close with the max_close number
and a status_code not equal to 'U'.
- Save the number of awards that come back.
- Update each of these awards setting the close_date to todays date.
- Update the Close with that max_close_number setting the proposal_closed_count to the number of proposals brought back
above and the award_closed_count to the number of awards brought back above.
- Save the Close.
- Specified by:
close
in interface CloseService
- See Also:
CloseService.close()
getMostRecentClose
public ProposalAwardCloseDocument getMostRecentClose()
- Specified by:
getMostRecentClose
in interface CloseService
addDocumentNoteAfterClosing
protected boolean addDocumentNoteAfterClosing(ProposalAwardCloseDocument close,
String noteText)
- See Also:
org.kuali.kfs.module.cg.service.CloseService#addDocumentNoteAfterClosing(String)
setAwardDao
public void setAwardDao(AwardDao awardDao)
setDateTimeService
public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
setCloseDao
public void setCloseDao(CloseDao closeDao)
setProposalDao
public void setProposalDao(ProposalDao proposalDao)
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.