当前位置: 首页>>代码示例>>Java>>正文


Java DocumentHeader.getWorkflowDocument方法代码示例

本文整理汇总了Java中org.kuali.rice.krad.bo.DocumentHeader.getWorkflowDocument方法的典型用法代码示例。如果您正苦于以下问题:Java DocumentHeader.getWorkflowDocument方法的具体用法?Java DocumentHeader.getWorkflowDocument怎么用?Java DocumentHeader.getWorkflowDocument使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.kuali.rice.krad.bo.DocumentHeader的用法示例。


在下文中一共展示了DocumentHeader.getWorkflowDocument方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: doRouteStatusChange

import org.kuali.rice.krad.bo.DocumentHeader; //导入方法依赖的package包/类
/**
 * This method overrides the parent method to check the status of the award document and change the linked
 * {@link ProposalStatus} to A (Approved) if the {@link Award} is now in approved status.
 * 
 * @see org.kuali.rice.kns.maintenance.KualiMaintainableImpl#doRouteStatusChange(org.kuali.rice.krad.bo.DocumentHeader)
 */
@Override
public void doRouteStatusChange(DocumentHeader header) {
    super.doRouteStatusChange(header);

    Award award = getAward();
    WorkflowDocument workflowDoc = header.getWorkflowDocument();

    // Use the isProcessed() method so this code is only executed when the final approval occurs
    if (workflowDoc.isProcessed()) {
        Proposal proposal = award.getProposal();
        proposal.setProposalStatusCode(Proposal.AWARD_CODE);
        SpringContext.getBean(BusinessObjectService.class).save(proposal);
    }

}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:22,代码来源:AwardMaintainableImpl.java

示例2: shouldRunValidation

import org.kuali.rice.krad.bo.DocumentHeader; //导入方法依赖的package包/类
/**
 * Determines if this validation should be run at this node
 * @param document the document which is being validated
 * @return true if one of the validation nodes is within the current nodes and the validation should run; false otherwise
 */
@Override
protected boolean shouldRunValidation(Document document) {
    if (document == null) {
        throw new IllegalStateException("Attempting to run NodeSpecificValidation but the event didn't have a document associated with it");
    }
    final DocumentHeader documentHeader = document.getDocumentHeader();
    final WorkflowDocument workflowDocument = documentHeader.getWorkflowDocument();

    if (workflowDocument != null) {
        if (getValidationNodes() != null && getValidationNodes().contains(PRE_ROUTE)) {
            if (workflowDocument.isInitiated() || workflowDocument.isSaved()) {
                return true; // special pre-route check
            }
        }

        final Set<String> currentNodes = workflowDocument.getCurrentNodeNames();
        for (String validationNode : getValidationNodes()) {
            if (currentNodes.contains(validationNode)) {
                return true;
            }
        }
    }
    return false;
}
 
开发者ID:kuali,项目名称:kfs,代码行数:30,代码来源:NodeSpecificValidation.java

示例3: shouldRunValidation

import org.kuali.rice.krad.bo.DocumentHeader; //导入方法依赖的package包/类
/**
 * Determines if this validation should be run at this node
 * @param document the document which is being validated
 * @return true if one of the validation nodes is within the current nodes and the validation should run; false otherwise
 */
@Override
protected boolean shouldRunValidation(Document document) {
    if (document == null) {
        throw new IllegalStateException("Attempting to run NodeSpecificValidation but the event didn't have a document associated with it");
    }
    final DocumentHeader documentHeader = document.getDocumentHeader();
    final WorkflowDocument workflowDocument = documentHeader.getWorkflowDocument();

    if (workflowDocument != null) {
        if (getValidationSkipNodes() != null && getValidationSkipNodes().contains(PRE_ROUTE)) {
            if (workflowDocument.isInitiated() || workflowDocument.isSaved()) {
                return false; // special pre-route check
            }
        }

        final Set<String> currentNodes = workflowDocument.getCurrentNodeNames();
        for (String validationNode : getValidationSkipNodes()) {
            if (currentNodes.contains(validationNode)) {
                return false;
            }
        }
    }
    return true;
}
 
开发者ID:kuali,项目名称:kfs,代码行数:30,代码来源:NodeSkippingValidation.java

示例4: doRouteStatusChange

import org.kuali.rice.krad.bo.DocumentHeader; //导入方法依赖的package包/类
/**
 * This method overrides the parent method to check the status of the award document and change the linked
 * {@link ProposalStatus} to A (Approved) if the {@link Award} is now in approved status.
 *
 * @see org.kuali.rice.kns.maintenance.KualiMaintainableImpl#doRouteStatusChange(org.kuali.rice.krad.bo.DocumentHeader)
 */
@Override
public void doRouteStatusChange(DocumentHeader header) {
    super.doRouteStatusChange(header);

    Award award = getAward();
    WorkflowDocument workflowDoc = header.getWorkflowDocument();

    // Use the isProcessed() method so this code is only executed when the final approval occurs
    if (workflowDoc.isProcessed()) {
        Proposal proposal = award.getProposal();
        proposal.setProposalStatusCode(Proposal.AWARD_CODE);
        SpringContext.getBean(BusinessObjectService.class).save(proposal);
    }

}
 
开发者ID:kuali,项目名称:kfs,代码行数:22,代码来源:AwardMaintainableImpl.java

示例5: initiateSearchableAttributes

import org.kuali.rice.krad.bo.DocumentHeader; //导入方法依赖的package包/类
private void initiateSearchableAttributes(LeaveRequestDocument leaveRequestDocument) {
    DocumentHeader dh = leaveRequestDocument.getDocumentHeader();
    WorkflowDocument workflowDocument = dh.getWorkflowDocument();
    if (!DocumentStatus.FINAL.equals(workflowDocument.getStatus())) {
        try {
            workflowDocument.setApplicationContent(createSearchableAttributeXml(leaveRequestDocument, leaveRequestDocument.getLeaveBlock()));
            workflowDocument.saveDocument("");
            if (!"I".equals(workflowDocument.getStatus().getCode())) {
                if (GlobalVariables.getUserSession() != null && workflowDocument.getInitiatorPrincipalId().equals(GlobalVariables.getUserSession().getPrincipalId())) {
                    workflowDocument.saveDocument("");
                } else{
                    workflowDocument.saveDocumentData();
                }
            } else{
                workflowDocument.saveDocument("");
            }


        } catch (Exception e) {
            LOG.warn("Exception during searchable attribute update.");
            throw new RuntimeException(e);
        }
    }
}
 
开发者ID:kuali-mirror,项目名称:kpme,代码行数:25,代码来源:LeaveRequestDocumentServiceImpl.java

示例6: saveDocumentHeader

import org.kuali.rice.krad.bo.DocumentHeader; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public DocumentHeader saveDocumentHeader(DocumentHeader documentHeader) {
    WorkflowDocument workflowDocument = documentHeader.getWorkflowDocument();
    DocumentHeader savedDocumentHeader = dataObjectService.save(documentHeader, PersistenceOption.FLUSH);
    savedDocumentHeader.setWorkflowDocument( workflowDocument );
    return savedDocumentHeader;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:11,代码来源:DocumentHeaderServiceImpl.java

示例7: getFinalDocumentTypeResult

import org.kuali.rice.krad.bo.DocumentHeader; //导入方法依赖的package包/类
private List<OLEInvoiceSearchDocument> getFinalDocumentTypeResult(List<DocumentSearchResult> componentResults) {
    List<OLEInvoiceSearchDocument> docResult = new ArrayList<OLEInvoiceSearchDocument>();
    OLEInvoiceSearchDocument oleInvoiceDocument;
    if (!componentResults.isEmpty()) {
        for (DocumentSearchResult searchResult : componentResults) {
            if (!searchResult.getDocument().getApplicationDocumentStatus().equalsIgnoreCase("exception")) {
                oleInvoiceDocument = convertToOleInvoiceDocument(searchResult);
                oleInvoiceDocument.setDocumentNumber(searchResult.getDocument().getDocumentId());
                oleInvoiceDocument.setDocumentStatus(searchResult.getDocument().getApplicationDocumentStatus());
                Person principalPerson = SpringContext.getBean(PersonService.class).getPerson(GlobalVariables.getUserSession().getPerson().getPrincipalId());
                DocumentHeader documentHeader = SpringContext.getBean(DocumentHeaderService.class).getDocumentHeaderById(searchResult.getDocument().getDocumentId());
                try {
                    if (documentHeader != null) {
                        documentHeader.setWorkflowDocument(KRADServiceLocatorWeb.getWorkflowDocumentService().loadWorkflowDocument(searchResult.getDocument().getDocumentId(),
                                principalPerson));
                        if (documentHeader.getWorkflowDocument() != null) {
                            oleInvoiceDocument.setWorkFlowDocumentStatus(documentHeader.getWorkflowDocument().getDocument().getStatus().getLabel());
                        }
                    }

                }
                catch (WorkflowException e) {
                   throw new RuntimeException(e);
                }


                if (oleInvoiceDocument != null) {
                    docResult.add(oleInvoiceDocument);
                }
            }
        }
    }
    return docResult;

}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:36,代码来源:OLEInvoiceSearchService.java

示例8: doRouteStatusChange

import org.kuali.rice.krad.bo.DocumentHeader; //导入方法依赖的package包/类
/**
 * Checks if there's any active receiving address set to default other than this one;
 * if so, set them to non-default.
 *
 * @see org.kuali.rice.kns.maintenance.KualiMaintainableImpl#doRouteStatusChange(org.kuali.rice.krad.bo.DocumentHeader)
 */
@Override
public void doRouteStatusChange(DocumentHeader header) {
    super.doRouteStatusChange(header);

    ReceivingAddress ra = (ReceivingAddress) getBusinessObject();
    // proceed only if this bo is active and default.
    if (!ra.isActive() || !ra.isDefaultIndicator())
        return;

    WorkflowDocument workflowDoc = header.getWorkflowDocument();
    // this code is only executed when the final approval occurs
    if (workflowDoc.isProcessed()) {
        /*
        Map criteria = new HashMap();
        criteria.put(OLEPropertyConstants.CHART_OF_ACCOUNTS_CODE, ra.getChartOfAccountsCode());
        criteria.put(OLEPropertyConstants.ORGANIZATION_CODE, ra.getOrganizationCode());
        criteria.put(PurapPropertyConstants.RCVNG_ADDR_DFLT_IND, true);        
        criteria.put(PurapPropertyConstants.RCVNG_ADDR_ACTIVE, true);        
        List<ReceivingAddress> addresses = (List)SpringContext.getBean(BusinessObjectService.class).findMatching(ReceivingAddress.class, criteria);
        */
        Collection<ReceivingAddress> addresses = SpringContext.getBean(ReceivingAddressService.class).findDefaultByChartOrg(ra.getChartOfAccountsCode(), ra.getOrganizationCode());
        for (ReceivingAddress rai : addresses) {
            if (!rai.getReceivingAddressIdentifier().equals(ra.getReceivingAddressIdentifier())) {
                rai.setDefaultIndicator(false);
                SpringContext.getBean(BusinessObjectService.class).save(rai);
            }
        }
    }
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:36,代码来源:ReceivingAddressMaintainableImpl.java

示例9: doRouteStatusChange

import org.kuali.rice.krad.bo.DocumentHeader; //导入方法依赖的package包/类
/**
 * Checks if there's any active receiving address set to default other than this one; 
 * if so, set them to non-default. 
 * 
 * @see org.kuali.rice.kns.maintenance.KualiMaintainableImpl#doRouteStatusChange(org.kuali.rice.krad.bo.DocumentHeader)
 */
@Override
public void doRouteStatusChange(DocumentHeader header) {
    super.doRouteStatusChange(header);

    ReceivingAddress ra = (ReceivingAddress) getBusinessObject();
    // proceed only if this bo is active and default.
    if ( !ra.isActive() || !ra.isDefaultIndicator() )
        return;
    
    WorkflowDocument workflowDoc = header.getWorkflowDocument();
    // this code is only executed when the final approval occurs
    if (workflowDoc.isProcessed()) {
        /*
        Map criteria = new HashMap();
        criteria.put(KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE, ra.getChartOfAccountsCode());
        criteria.put(KFSPropertyConstants.ORGANIZATION_CODE, ra.getOrganizationCode());
        criteria.put(PurapPropertyConstants.RCVNG_ADDR_DFLT_IND, true);        
        criteria.put(PurapPropertyConstants.RCVNG_ADDR_ACTIVE, true);        
        List<ReceivingAddress> addresses = (List)SpringContext.getBean(BusinessObjectService.class).findMatching(ReceivingAddress.class, criteria);
        */            
        Collection<ReceivingAddress> addresses  = SpringContext.getBean(ReceivingAddressService.class).findDefaultByChartOrg(ra.getChartOfAccountsCode(),ra.getOrganizationCode());                  
        for ( ReceivingAddress rai : addresses ) {
            if ( !rai.getReceivingAddressIdentifier().equals(ra.getReceivingAddressIdentifier()) ) {
                rai.setDefaultIndicator(false);
                SpringContext.getBean(BusinessObjectService.class).save(rai);
            }
        }
    }
}
 
开发者ID:kuali,项目名称:kfs,代码行数:36,代码来源:ReceivingAddressMaintainableImpl.java

示例10: doRouteStatusChange

import org.kuali.rice.krad.bo.DocumentHeader; //导入方法依赖的package包/类
/**
 * @see org.kuali.rice.kns.maintenance.KualiMaintainableImpl#doRouteStatusChange(org.kuali.rice.krad.bo.DocumentHeader)
 */
@Override
public void doRouteStatusChange(DocumentHeader documentHeader) {
    super.doRouteStatusChange(documentHeader);
    WorkflowDocument workflowDoc = documentHeader.getWorkflowDocument();
    // release lock for asset edit...
    if ((this.getBusinessObject() instanceof Asset && !(this.getBusinessObject() instanceof AssetFabrication)) && (workflowDoc.isCanceled() || workflowDoc.isDisapproved() || workflowDoc.isProcessed() || workflowDoc.isFinal())) {
        this.getCapitalAssetManagementModuleService().deleteAssetLocks(getDocumentNumber(), null);
    }
}
 
开发者ID:kuali,项目名称:kfs,代码行数:13,代码来源:AssetMaintainableImpl.java

示例11: doRouteStatusChange

import org.kuali.rice.krad.bo.DocumentHeader; //导入方法依赖的package包/类
/**
 * @see org.kuali.rice.kns.maintenance.KualiMaintainableImpl#doRouteStatusChange(org.kuali.rice.krad.bo.DocumentHeader)
 */
@Override
public void doRouteStatusChange(DocumentHeader documentHeader) {
    super.doRouteStatusChange(documentHeader);
    WorkflowDocument workflowDoc = documentHeader.getWorkflowDocument();
    // release the lock when document status changed as following...
    if (workflowDoc.isCanceled() || workflowDoc.isDisapproved() || workflowDoc.isProcessed() || workflowDoc.isFinal()) {
        this.getCapitalAssetManagementModuleService().deleteAssetLocks(getDocumentNumber(), null);
    }
}
 
开发者ID:kuali,项目名称:kfs,代码行数:13,代码来源:AssetLocationGlobalMaintainableImpl.java

示例12: doRouteStatusChange

import org.kuali.rice.krad.bo.DocumentHeader; //导入方法依赖的package包/类
/**
 * @see org.kuali.rice.kns.maintenance.KualiMaintainableImpl#doRouteStatusChange(org.kuali.rice.kns.bo.DocumentHeader)
 */
@Override
public void doRouteStatusChange(DocumentHeader documentHeader) {
    super.doRouteStatusChange(documentHeader);
    AssetYearEndDepreciation assetYearEndDepreciation = (AssetYearEndDepreciation) getBusinessObject();
    if (documentHeader.getWorkflowDocument().isEnroute()) {
        // display a message for asset not generating ledger entries when it is federally owned
        boolean allPaymentsFederalOwned = true;
        List<AssetYearEndDepreciationDetail> assetYearEndDepreciationDetails = assetYearEndDepreciation.getAssetYearEndDepreciationDetails();
        for (AssetYearEndDepreciationDetail assetYearEndDepreciationDetail : assetYearEndDepreciationDetails) {
            for (AssetPayment assetPayment : assetYearEndDepreciationDetail.getAsset().getAssetPayments()) {
                if (!getAssetPaymentService().isPaymentFederalOwned(assetPayment)) {
                    allPaymentsFederalOwned = false;
                }
            }
        }
        // if (allPaymentsFederalOwned) {
        // GlobalVariables.getMessageList().add(CamsKeyConstants.Retirement.MESSAGE_NO_LEDGER_ENTRY_REQUIRED_RETIREMENT);
        // }
    }
    // all approvals have been processed, the retirement date is set to the approval date
    if (documentHeader.getWorkflowDocument().isProcessed()) {
        SpringContext.getBean(BusinessObjectService.class).save(assetYearEndDepreciation);
    }
    new AssetRetirementGeneralLedgerPendingEntrySource((FinancialSystemDocumentHeader) documentHeader).doRouteStatusChange(assetYearEndDepreciation.getGeneralLedgerPendingEntries());

    // release the lock when document status changed as following...
    WorkflowDocument workflowDoc = documentHeader.getWorkflowDocument();
    if (workflowDoc.isCanceled() || workflowDoc.isDisapproved() || workflowDoc.isProcessed() || workflowDoc.isFinal()) {
        this.getCapitalAssetManagementModuleService().deleteAssetLocks(documentHeader.getDocumentNumber(), null);
    }
}
 
开发者ID:kuali,项目名称:kfs,代码行数:35,代码来源:AssetYearEndDepreciationMaintainableImpl.java

示例13: doRouteStatusChange

import org.kuali.rice.krad.bo.DocumentHeader; //导入方法依赖的package包/类
/**
 * @see org.kuali.rice.kns.maintenance.KualiMaintainableImpl#doRouteStatusChange(org.kuali.rice.kns.bo.DocumentHeader)
 */
@Override
public void doRouteStatusChange(DocumentHeader documentHeader) {
    super.doRouteStatusChange(documentHeader);
    AssetGlobal assetGlobal = (AssetGlobal) getBusinessObject();
    List<GeneralLedgerPendingEntry> generalLedgerPendingEntries = assetGlobal.getGeneralLedgerPendingEntries();
    new AssetGlobalGeneralLedgerPendingEntrySource((FinancialSystemDocumentHeader) documentHeader).doRouteStatusChange(generalLedgerPendingEntries);

    WorkflowDocument workflowDoc = documentHeader.getWorkflowDocument();

    // force pretagDetail active indicators back to true
    if (workflowDoc.isCanceled()) {
        if (ObjectUtils.isNotNull(assetGlobal)) {
            List<AssetGlobalDetail> assetGlobalDetailsList = assetGlobal.getAssetGlobalDetails();
            for (AssetGlobalDetail assetGlobalDetails : assetGlobalDetailsList) {
                SpringContext.getBean(CapitalAssetBuilderModuleService.class).reactivatePretagDetails(assetGlobalDetails.getCampusTagNumber());
            }
        }
    }

    // release lock for separate source asset...We don't include stateIsFinal since document always go to 'processed' first.
    AssetGlobalService assetGlobalService = SpringContext.getBean(AssetGlobalService.class);
    if (assetGlobalService.isAssetSeparate(assetGlobal) && (workflowDoc.isCanceled() || workflowDoc.isDisapproved() || workflowDoc.isProcessed())) {
        this.getCapitalAssetManagementModuleService().deleteAssetLocks(getDocumentNumber(), null);
    }

    // notify CAB of document status change
    if (((AssetGlobal) getBusinessObject()).isCapitalAssetBuilderOriginIndicator()) {
        SpringContext.getBean(CapitalAssetBuilderModuleService.class).notifyRouteStatusChange(documentHeader);
    }
}
 
开发者ID:kuali,项目名称:kfs,代码行数:34,代码来源:AssetGlobalMaintainableImpl.java

示例14: notifyRouteStatusChange

import org.kuali.rice.krad.bo.DocumentHeader; //导入方法依赖的package包/类
/**
 * @see org.kuali.kfs.integration.cab.CapitalAssetBuilderModuleService#notifyRouteStatusChange(java.lang.String,
 * java.lang.String)
 */
@Override
public void notifyRouteStatusChange(DocumentHeader documentHeader) {

    WorkflowDocument workflowDocument = documentHeader.getWorkflowDocument();
    String documentNumber = documentHeader.getDocumentNumber();

    String documentType = workflowDocument.getDocumentTypeName();

    if (workflowDocument.isCanceled() || workflowDocument.isDisapproved()) {
        // release CAB line items
        activateCabPOLines(documentNumber);
        activateCabGlLines(documentNumber);
    }
    if (workflowDocument.isProcessed()) {
        // update CAB GL lines if fully processed
        updatePOLinesStatusAsProcessed(documentNumber);
        updateGlLinesStatusAsProcessed(documentNumber);
        // report asset numbers to PO
        Integer poId = getPurchaseOrderIdentifier(documentNumber);
        if (poId != null) {
            List<Long> assetNumbers = null;
            if (DocumentTypeName.ASSET_ADD_GLOBAL.equalsIgnoreCase(documentType)) {
                assetNumbers = getAssetNumbersFromAssetGlobal(documentNumber);
            } else if (DocumentTypeName.ASSET_PAYMENT.equalsIgnoreCase(documentType)) {
                assetNumbers = getAssetNumbersFromAssetPayment(documentNumber);
            }

            if (!assetNumbers.isEmpty()) {
                String noteText = buildNoteTextForPurApDoc(documentType, assetNumbers);
                purchasingAccountsPayableModuleService.addAssignedAssetNumbers(poId, workflowDocument.getInitiatorPrincipalId(), noteText);
            }
        }
    }

}
 
开发者ID:kuali,项目名称:kfs,代码行数:40,代码来源:CapitalAssetBuilderModuleServiceImpl.java

示例15: doRouteStatusChange

import org.kuali.rice.krad.bo.DocumentHeader; //导入方法依赖的package包/类
@Override
public void doRouteStatusChange(DocumentHeader header) {
    super.doRouteStatusChange(header);
    VendorDetail vendorDetail = (VendorDetail) getBusinessObject();
    WorkflowDocument workflowDoc = header.getWorkflowDocument();

    // This code is only executed when the final approval occurs
    if (workflowDoc.isProcessed()) {
        // This id and versionNumber null check is needed here since those fields are always null for a fresh maintenance doc.
        if (vendorDetail.isVendorParentIndicator() && vendorDetail.getVendorHeaderGeneratedIdentifier() != null) { 
            VendorDetail previousParent = SpringContext.getBean(VendorService.class).getParentVendor(vendorDetail.getVendorHeaderGeneratedIdentifier());
            // We'll only need to do the following if the previousParent is not the same as the current vendorDetail, because
            // the following lines are for vendor parent indicator changes.
            if (vendorDetail.getVendorDetailAssignedIdentifier() == null || 
                    previousParent.getVendorHeaderGeneratedIdentifier().intValue() != vendorDetail.getVendorHeaderGeneratedIdentifier().intValue() || 
                    previousParent.getVendorDetailAssignedIdentifier().intValue() != vendorDetail.getVendorDetailAssignedIdentifier().intValue()) {
                previousParent.setVendorParentIndicator(false);
                addNoteForParentIndicatorChange(vendorDetail, previousParent, header.getDocumentNumber());
                SpringContext.getBean(BusinessObjectService.class).save(previousParent);
            }
        }

        // If this is a pre-existing parent vendor, and if the Tax Number or the Tax Type Code will change, log the change in the
        // Tax Change table.
        if (vendorDetail.isVendorParentIndicator()) {
            VendorDetail oldVendorDetail = SpringContext.getBean(VendorService.class).getVendorDetail(vendorDetail.getVendorHeaderGeneratedIdentifier(), vendorDetail.getVendorDetailAssignedIdentifier());
            if (ObjectUtils.isNotNull(oldVendorDetail)) {
                VendorHeader oldVendorHeader = oldVendorDetail.getVendorHeader();
                VendorHeader newVendorHeader = vendorDetail.getVendorHeader();

                if (ObjectUtils.isNotNull(oldVendorHeader)) { // Does not apply if this is a new parent vendor.
                    String oldVendorTaxNumber = oldVendorHeader.getVendorTaxNumber();
                    String oldVendorTaxTypeCode = oldVendorHeader.getVendorTaxTypeCode();

                    String vendorTaxNumber = newVendorHeader.getVendorTaxNumber();
                    String vendorTaxTypeCode = newVendorHeader.getVendorTaxTypeCode();

                    if ((!StringUtils.equals(vendorTaxNumber, oldVendorTaxNumber)) || (!StringUtils.equals(vendorTaxTypeCode, oldVendorTaxTypeCode))) {
                        VendorTaxChange taxChange = new VendorTaxChange(vendorDetail.getVendorHeaderGeneratedIdentifier(), SpringContext.getBean(DateTimeService.class).getCurrentTimestamp(), oldVendorTaxNumber, oldVendorTaxTypeCode, GlobalVariables.getUserSession().getPerson().getPrincipalId());
                        SpringContext.getBean(BusinessObjectService.class).save(taxChange);
                    }
                }
            }
        }

    }//endif isProcessed()
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:48,代码来源:VendorMaintainableImpl.java


注:本文中的org.kuali.rice.krad.bo.DocumentHeader.getWorkflowDocument方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。