@Transactional public class BulkReceivingServiceImpl extends Object implements BulkReceivingService
Modifier and Type | Field and Description |
---|---|
protected BulkReceivingDao |
bulkReceivingDao |
protected org.kuali.rice.core.api.config.property.ConfigurationService |
configurationService |
protected org.kuali.rice.krad.service.DocumentService |
documentService |
protected PrintService |
printService |
protected PurchaseOrderService |
purchaseOrderService |
protected org.kuali.rice.krad.workflow.service.WorkflowDocumentService |
workflowDocumentService |
Constructor and Description |
---|
BulkReceivingServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addStringErrorMessagesToMessageMap(String errorKey,
Collection<String> errors) |
protected void |
appendDuplicateMessage(StringBuffer currentMessage,
String duplicateMessageKey,
Integer poId) |
HashMap<String,String> |
bulkReceivingDuplicateMessages(BulkReceivingDocument blkRecDoc)
Checks for duplicate Bulk Receiving documents and passes back a list of those found
where vendor date, packing slip number or bill of lading match on previous bulk receiving
documents by purchase order.
|
boolean |
canPrintReceivingTicket(BulkReceivingDocument blkRecDoc) |
BulkReceivingDocument |
getBulkReceivingByDocumentNumber(String documentNumber) |
String |
getBulkReceivingDocumentNumberInProcessForPurchaseOrder(Integer poId,
String bulkReceivingDocumentNumber) |
protected boolean |
hasDuplicateEntry(List<String> docNumbers)
Looks at a list of doc numbers, but only considers an entry duplicate
if the document is in a Final status.
|
void |
performPrintReceivingTicketPDF(String blkDocId,
ByteArrayOutputStream baosPDF) |
void |
populateAndSaveBulkReceivingDocument(BulkReceivingDocument blkRecDoc)
A save is done passing the continue purap event so as to call a populate within
prepare for save.
|
void |
populateBulkReceivingFromPurchaseOrder(BulkReceivingDocument blkRecDoc)
Populates a Bulk Receiving Document with information from a Purchase Order.
|
void |
setBulkReceivingDao(BulkReceivingDao bulkReceivingDao) |
void |
setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService configurationService) |
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentService) |
void |
setPrintService(PrintService printService) |
void |
setPurchaseOrderService(PurchaseOrderService purchaseOrderService) |
void |
setWorkflowDocumentService(org.kuali.rice.krad.workflow.service.WorkflowDocumentService workflowDocumentService) |
protected PurchaseOrderService purchaseOrderService
protected BulkReceivingDao bulkReceivingDao
protected org.kuali.rice.krad.service.DocumentService documentService
protected org.kuali.rice.krad.workflow.service.WorkflowDocumentService workflowDocumentService
protected org.kuali.rice.core.api.config.property.ConfigurationService configurationService
protected PrintService printService
public BulkReceivingServiceImpl()
public boolean canPrintReceivingTicket(BulkReceivingDocument blkRecDoc)
canPrintReceivingTicket
in interface BulkReceivingService
public void populateAndSaveBulkReceivingDocument(BulkReceivingDocument blkRecDoc) throws org.kuali.rice.kew.api.exception.WorkflowException
BulkReceivingService
populateAndSaveBulkReceivingDocument
in interface BulkReceivingService
org.kuali.rice.kew.api.exception.WorkflowException
public HashMap<String,String> bulkReceivingDuplicateMessages(BulkReceivingDocument blkRecDoc)
BulkReceivingService
bulkReceivingDuplicateMessages
in interface BulkReceivingService
protected boolean hasDuplicateEntry(List<String> docNumbers)
docNumbers
- protected void appendDuplicateMessage(StringBuffer currentMessage, String duplicateMessageKey, Integer poId)
public String getBulkReceivingDocumentNumberInProcessForPurchaseOrder(Integer poId, String bulkReceivingDocumentNumber)
getBulkReceivingDocumentNumberInProcessForPurchaseOrder
in interface BulkReceivingService
public void populateBulkReceivingFromPurchaseOrder(BulkReceivingDocument blkRecDoc)
BulkReceivingService
populateBulkReceivingFromPurchaseOrder
in interface BulkReceivingService
public BulkReceivingDocument getBulkReceivingByDocumentNumber(String documentNumber)
public void performPrintReceivingTicketPDF(String blkDocId, ByteArrayOutputStream baosPDF)
performPrintReceivingTicketPDF
in interface BulkReceivingService
protected void addStringErrorMessagesToMessageMap(String errorKey, Collection<String> errors)
public void setPrintService(PrintService printService)
public void setPurchaseOrderService(PurchaseOrderService purchaseOrderService)
public void setBulkReceivingDao(BulkReceivingDao bulkReceivingDao)
public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
public void setWorkflowDocumentService(org.kuali.rice.krad.workflow.service.WorkflowDocumentService workflowDocumentService)
public void setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService configurationService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.