• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java BusinessObjectDictionaryService类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.kuali.rice.kns.service.BusinessObjectDictionaryService的典型用法代码示例。如果您正苦于以下问题:Java BusinessObjectDictionaryService类的具体用法?Java BusinessObjectDictionaryService怎么用?Java BusinessObjectDictionaryService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

BusinessObjectDictionaryService类属于org.kuali.rice.kns.service包,在下文中一共展示了BusinessObjectDictionaryService类的31个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: prepareDataForStorage

点赞 3

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
/**
 * Uppercases the appropriate fields in the batch, if told to do so by the data dictionary
 */
public void prepareDataForStorage() {
    BusinessObjectDictionaryService businessObjectDictionaryService = SpringContext.getBean(BusinessObjectDictionaryService.class);
    DataDictionaryService dataDictionaryService = SpringContext.getBean(DataDictionaryService.class);

    // uppercase the data used to generate the collector header
    if (dataDictionaryService.getAttributeForceUppercase(Chart.class, OLEPropertyConstants.CHART_OF_ACCOUNTS_CODE)) {
        setChartOfAccountsCode(getChartOfAccountsCode().toUpperCase());
    }
    if (dataDictionaryService.getAttributeForceUppercase(Organization.class, OLEPropertyConstants.ORGANIZATION_CODE)) {
        setOrganizationCode(getOrganizationCode().toUpperCase());
    }

    // now uppercase all of the origin entry data
    for (OriginEntryFull entry : originEntries) {
        businessObjectDictionaryService.performForceUppercase(entry);
    }

    // uppercase the id billing entries
    for (CollectorDetail collectorDetail : collectorDetails) {
        businessObjectDictionaryService.performForceUppercase(collectorDetail);
    }
}
 

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

示例2: prepareDataForStorage

点赞 3

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
/**
 * Uppercases the appropriate fields in the batch, if told to do so by the data dictionary
 */
public void prepareDataForStorage() {
    BusinessObjectDictionaryService businessObjectDictionaryService = SpringContext.getBean(BusinessObjectDictionaryService.class);
    DataDictionaryService dataDictionaryService = SpringContext.getBean(DataDictionaryService.class);

    // uppercase the data used to generate the collector header
    if (dataDictionaryService.getAttributeForceUppercase(Chart.class, KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE)) {
        setChartOfAccountsCode(getChartOfAccountsCode().toUpperCase());
    }
    if (dataDictionaryService.getAttributeForceUppercase(Organization.class, KFSPropertyConstants.ORGANIZATION_CODE)) {
        setOrganizationCode(getOrganizationCode().toUpperCase());
    }

    // now uppercase all of the origin entry data
    for (OriginEntryFull entry : originEntries) {
        businessObjectDictionaryService.performForceUppercase(entry);
    }

    // uppercase the id billing entries
    for (CollectorDetail collectorDetail : collectorDetails) {
        businessObjectDictionaryService.performForceUppercase(collectorDetail);
    }
}
 

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

示例3: populate

点赞 3

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
/**
 * @see org.kuali.rice.kns.web.struts.form.LookupForm#populate(javax.servlet.http.HttpServletRequest)
 */
@Override
public void populate(HttpServletRequest request) {
    String refreshCaller = getParameter(request, KRADConstants.REFRESH_CALLER);
    if (StringUtils.isNotBlank(refreshCaller) && KRADConstants.QUESTION_REFRESH.equals(refreshCaller) ) {
        setMethodToCall(WebUtils.parseMethodToCall(this, request));
        if (BCConstants.TEMP_LIST_UNLOCK_METHOD.equals(getMethodToCall())) {
            String lookupImplID = SpringContext.getBean(BusinessObjectDictionaryService.class).getLookupableID(BudgetConstructionLockSummary.class);
            if (lookupImplID == null) {
                lookupImplID = "kualiLookupable";
            }

            setLookupableImplServiceName(lookupImplID);
        }
    }

    // don't try to populate if no BO - the case when we lose session
    String localBusinessObjectClassName = getParameter(request, KRADConstants.BUSINESS_OBJECT_CLASS_ATTRIBUTE);
    if (ObjectUtils.isNotNull(localBusinessObjectClassName)) {
        super.populate(request);
    }
}
 

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

示例4: getBusinessObjectDictionaryService

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
/**
 * Gets the businessObjectDictionaryService attribute.
 *
 * @return Returns the businessObjectDictionaryService.
 */
protected BusinessObjectDictionaryService getBusinessObjectDictionaryService() {
    if (businessObjectDictionaryService == null) {
        businessObjectDictionaryService = KNSServiceLocator.getBusinessObjectDictionaryService();
    }

    return businessObjectDictionaryService;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:13,
代码来源:BusinessObjectMetaDataServiceImpl.java

示例5: getBusinessObjectDictionaryService

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
private BusinessObjectDictionaryService getBusinessObjectDictionaryService() {
	if (businessObjectDictionaryService == null) {
		businessObjectDictionaryService = KNSServiceLocator
				.getBusinessObjectDictionaryService();
	}
	return businessObjectDictionaryService;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:8,
代码来源:BusinessObjectAuthorizationServiceImpl.java

示例6: populate

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
/**
 * @see org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase#populate(javax.servlet.http.HttpServletRequest)
 */
@Override
public void populate(HttpServletRequest request) {
    super.populate(request);
    OleDisbursementVoucherPayeeDetail payeeDetail = getDisbursementVoucherDocument().getDvPayeeDetail();
    SpringContext.getBean(BusinessObjectDictionaryService.class).performForceUppercase(payeeDetail);

}
 

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

示例7: populateAccountingLine

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
/**
 * Populates the dependent fields of objects contained within the given accountingLine
 * 
 * @param line
 * @param accountingLinePropertyName the property path from the form to the accounting line
 * @param parameterMap the map of parameters that were sent in with the request
 */
@SuppressWarnings("deprecation")
protected void populateAccountingLine(AccountingLine line, String accountingLinePropertyName, Map parameterMap) {
    SpringContext.getBean(BusinessObjectDictionaryService.class).performForceUppercase(line);

    line.setDocumentNumber(getDocument().getDocumentNumber());

    if (ObjectUtils.isNull(line.getAccount())) {
        line.setAccount(new Account());
    }
    line.getAccount().setChartOfAccountsCode(line.getChartOfAccountsCode());

    if (ObjectUtils.isNull(line.getObjectCode())) {
        line.setObjectCode(new ObjectCode());
    }
    line.getObjectCode().setUniversityFiscalYear(getFinancialDocument().getPostingYear());
    line.getObjectCode().setChartOfAccountsCode(line.getChartOfAccountsCode());

    if (ObjectUtils.isNull(line.getSubAccount())) {
        line.setSubAccount(new SubAccount());
    }
    line.getSubAccount().setChartOfAccountsCode(line.getChartOfAccountsCode());
    line.getSubAccount().setAccountNumber(line.getAccountNumber());

    if (ObjectUtils.isNull(line.getSubObjectCode())) {
        line.setSubObjectCode(new SubObjectCode());
    }
    line.getSubObjectCode().setChartOfAccountsCode(line.getChartOfAccountsCode());
    line.getSubObjectCode().setAccountNumber(line.getAccountNumber());
    line.getSubObjectCode().setFinancialObjectCode(line.getFinancialObjectCode());
    line.getSubObjectCode().setUniversityFiscalYear(getFinancialDocument().getPostingYear());
    
    repopulateOverrides(line, accountingLinePropertyName, parameterMap);

    AccountingLineOverride.populateFromInput(line);
}
 

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

示例8: getReturnKeys

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
public List getReturnKeys() {
    List returnKeys;

    if (fieldConversions != null && !fieldConversions.isEmpty()) {
        returnKeys = new ArrayList(fieldConversions.keySet());
    }
    else {
        returnKeys = SpringContext.getBean(BusinessObjectDictionaryService.class).getLookupFieldNames(org.kuali.ole.sys.businessobject.KualiModuleBO.class);
    }

    return returnKeys;
}
 

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

示例9: populate

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
/**
 * Overrides the parent to call super.populate and then tells each line to check the associated data dictionary and modify the
 * values entered to follow all the attributes set for the values of the accounting line.
 * 
 * @see org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase#populate(javax.servlet.http.HttpServletRequest)
 */
@Override
public void populate(HttpServletRequest request) {
    super.populate(request);

    //
    // now run through all of the accounting lines and make sure they've been uppercased and populated appropriately
    SpringContext.getBean(BusinessObjectDictionaryService.class).performForceUppercase(getNewCreditCardReceipt());

    List<CreditCardDetail> creditCardReceipts = getCreditCardReceiptDocument().getCreditCardReceipts();
    for (CreditCardDetail detail : creditCardReceipts) {
        SpringContext.getBean(BusinessObjectDictionaryService.class).performForceUppercase(detail);
    }

}
 

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

示例10: populate

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
/**
 * Overrides the parent to call super.populate and then tells each line to check the associated data dictionary and modify the
 * values entered to follow all the attributes set for the values of the accounting line.
 * 
 * @see org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase#populate(javax.servlet.http.HttpServletRequest)
 */
@Override
public void populate(HttpServletRequest request) {
    super.populate(request);

    // now run through all of the accounting lines and make sure they've been uppercased and populated appropriately
    SpringContext.getBean(BusinessObjectDictionaryService.class).performForceUppercase(getNewAdvanceDeposit());

    List<AdvanceDepositDetail> advancedDeposits = getAdvanceDepositDocument().getAdvanceDeposits();
    for (AdvanceDepositDetail detail : advancedDeposits) {
        SpringContext.getBean(BusinessObjectDictionaryService.class).performForceUppercase(detail);
    }
}
 

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

示例11: populate

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
/** 
 * @see org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase#populate(javax.servlet.http.HttpServletRequest)
 */
@Override
public void populate(HttpServletRequest request) {
    super.populate(request);
    DisbursementVoucherPayeeDetail payeeDetail = getDisbursementVoucherDocument().getDvPayeeDetail();
    SpringContext.getBean(BusinessObjectDictionaryService.class).performForceUppercase(payeeDetail);
    }
 

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

示例12: populateAccountingLine

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
/**
 * Populates the dependent fields of objects contained within the given accountingLine
 *
 * @param line
 * @param accountingLinePropertyName the property path from the form to the accounting line
 * @param parameterMap the map of parameters that were sent in with the request
 */
@SuppressWarnings("deprecation")
protected void populateAccountingLine(AccountingLine line, String accountingLinePropertyName, Map parameterMap) {
    SpringContext.getBean(BusinessObjectDictionaryService.class).performForceUppercase(line);

    line.setDocumentNumber(getDocument().getDocumentNumber());

    if (ObjectUtils.isNull(line.getAccount())) {
        line.setAccount(new Account());
    }
    line.getAccount().setChartOfAccountsCode(line.getChartOfAccountsCode());

    if (ObjectUtils.isNull(line.getObjectCode())) {
        line.setObjectCode(new ObjectCode());
    }
    line.getObjectCode().setUniversityFiscalYear(getFinancialDocument().getPostingYear());
    line.getObjectCode().setChartOfAccountsCode(line.getChartOfAccountsCode());

    if (ObjectUtils.isNull(line.getSubAccount())) {
        line.setSubAccount(new SubAccount());
    }
    line.getSubAccount().setChartOfAccountsCode(line.getChartOfAccountsCode());
    line.getSubAccount().setAccountNumber(line.getAccountNumber());

    if (ObjectUtils.isNull(line.getSubObjectCode())) {
        line.setSubObjectCode(new SubObjectCode());
    }
    line.getSubObjectCode().setChartOfAccountsCode(line.getChartOfAccountsCode());
    line.getSubObjectCode().setAccountNumber(line.getAccountNumber());
    line.getSubObjectCode().setFinancialObjectCode(line.getFinancialObjectCode());
    line.getSubObjectCode().setUniversityFiscalYear(getFinancialDocument().getPostingYear());

    repopulateOverrides(line, accountingLinePropertyName, parameterMap);

    AccountingLineOverride.populateFromInput(line);
}
 

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

示例13: getReturnKeys

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
public List getReturnKeys() {
    List returnKeys;

    if (fieldConversions != null && !fieldConversions.isEmpty()) {
        returnKeys = new ArrayList(fieldConversions.keySet());
    }
    else {
        returnKeys = SpringContext.getBean(BusinessObjectDictionaryService.class).getLookupFieldNames(org.kuali.kfs.sys.businessobject.KualiModuleBO.class);
    }

    return returnKeys;
}
 

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

示例14: populate

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
/**
 * @see org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase#populate(javax.servlet.http.HttpServletRequest)
 */
@Override
public void populate(HttpServletRequest request) {
    super.populate(request);
    DisbursementVoucherPayeeDetail payeeDetail = getDisbursementVoucherDocument().getDvPayeeDetail();
    SpringContext.getBean(BusinessObjectDictionaryService.class).performForceUppercase(payeeDetail);
    }
 

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

示例15: populate

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
/**
 * @see org.kuali.rice.kns.web.struts.form.KualiForm#populate(javax.servlet.http.HttpServletRequest)
 */
@Override
public void populate(HttpServletRequest request) {

    super.populate(request);

    final List REFRESH_FIELDS = Collections.unmodifiableList(Arrays.asList(new String[] { "chartOfAccounts", "account", "subAccount", "budgetConstructionAccountReports" }));
    SpringContext.getBean(PersistenceService.class).retrieveReferenceObjects(this.getBudgetConstructionHeader(), REFRESH_FIELDS);

    SpringContext.getBean(BusinessObjectDictionaryService.class).performForceUppercase(this.getBudgetConstructionHeader());
}
 

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

示例16: getBusinessObjectDictionaryService

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
public static BusinessObjectDictionaryService getBusinessObjectDictionaryService() {
   	if (businessObjectDictionaryService == null) {
   		businessObjectDictionaryService = KNSServiceLocator.getBusinessObjectDictionaryService();
   	}
	return businessObjectDictionaryService; 
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:7,
代码来源:FieldBridge.java

示例17: getBusinessObjectDictionaryService

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
protected BusinessObjectDictionaryService getBusinessObjectDictionaryService() {
	if (businessObjectDictionaryService == null) {
		businessObjectDictionaryService = KNSServiceLocator.getBusinessObjectDictionaryService();
	}
	return businessObjectDictionaryService;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:7,
代码来源:KualiInquirableImpl.java

示例18: setBusinessObjectDictionaryService

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
public void setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService) {
	this.businessObjectDictionaryService = businessObjectDictionaryService;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:4,
代码来源:KualiInquirableImpl.java

示例19: setBoDictionaryService

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
public void setBoDictionaryService(BusinessObjectDictionaryService boDictionaryService) {
    this.boDictionaryService = boDictionaryService;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:4,
代码来源:MaintenanceDocumentRuleBase.java

示例20: getBusinessObjectDictionaryService

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
/**
 * @return Returns the businessObjectDictionaryService.
 */
protected BusinessObjectDictionaryService getBusinessObjectDictionaryService() {
    return getLookupableHelperService().getBusinessObjectDictionaryService();
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:7,
代码来源:KualiLookupableImpl.java

示例21: getBusinessObjectDictionaryService

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
public static BusinessObjectDictionaryService getBusinessObjectDictionaryService() {
    return KNSServiceLocator.getBusinessObjectDictionaryService();
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:4,
代码来源:LookupUtils.java

示例22: getBusinessObjectDictionaryService

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
private static BusinessObjectDictionaryService getBusinessObjectDictionaryService() {
	if (businessObjectDictionaryService == null) {
		businessObjectDictionaryService = KNSServiceLocator.getBusinessObjectDictionaryService();
	}
	return businessObjectDictionaryService;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:7,
代码来源:FieldUtils.java

示例23: getBusinessObjectDictionaryService

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
@Override
public BusinessObjectDictionaryService getBusinessObjectDictionaryService() {
    return lookupableHelperService.getBusinessObjectDictionaryService();
}
 

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

示例24: getBusinessObjectDictionaryService

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
public BusinessObjectDictionaryService getBusinessObjectDictionaryService() {
    return businessObjectDictionaryService != null ? businessObjectDictionaryService : KNSServiceLocator
            .getBusinessObjectDictionaryService();
}
 

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

示例25: checkForSystemParametersExistence

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
protected boolean checkForSystemParametersExistence() {
    LOG.info("checkForSystemParametersExistence called");
    boolean success = true;
    Collection<String> cmAdditionalCharges = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(VendorCreditMemoDocument.class, PurapConstants.BELOW_THE_LINES_PARAMETER));
    Collection<String> preqAdditionalCharges = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PaymentRequestDocument.class, PurapConstants.BELOW_THE_LINES_PARAMETER));
    Collection<String> poAdditionalCharges = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PurchaseOrderDocument.class, PurapConstants.BELOW_THE_LINES_PARAMETER));
    Collection<String> reqAdditionalCharges = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(RequisitionDocument.class, PurapConstants.BELOW_THE_LINES_PARAMETER));
    Collection<String> defaultNonQuantityItemTypes = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(OleParameterConstants.PURCHASING_DOCUMENT.class, PurapParameterConstants.DEFAULT_NON_QUANTITY_ITEM_TYPE));
    Collection<String> defaultQuantityItemTypes = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(OleParameterConstants.PURCHASING_DOCUMENT.class, PurapParameterConstants.DEFAULT_QUANTITY_ITEM_TYPE));
    Collection<String> cmAllowNegative = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(VendorCreditMemoDocument.class, PurapConstants.ITEM_ALLOWS_NEGATIVE));
    Collection<String> preqAllowNegative = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PaymentRequestDocument.class, PurapConstants.ITEM_ALLOWS_NEGATIVE));
    Collection<String> poAllowNegative = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PurchaseOrderDocument.class, PurapConstants.ITEM_ALLOWS_NEGATIVE));
    Collection<String> reqAllowNegative = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(RequisitionDocument.class, PurapConstants.ITEM_ALLOWS_NEGATIVE));
    Collection<String> cmAllowPositive = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(VendorCreditMemoDocument.class, PurapConstants.ITEM_ALLOWS_POSITIVE));
    Collection<String> preqAllowPositive = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PaymentRequestDocument.class, PurapConstants.ITEM_ALLOWS_POSITIVE));
    Collection<String> poAllowPositive = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PurchaseOrderDocument.class, PurapConstants.ITEM_ALLOWS_POSITIVE));
    Collection<String> reqAllowPositive = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(RequisitionDocument.class, PurapConstants.ITEM_ALLOWS_POSITIVE));
    Collection<String> cmAllowZero = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(VendorCreditMemoDocument.class, PurapConstants.ITEM_ALLOWS_ZERO));
    Collection<String> preqAllowZero = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PaymentRequestDocument.class, PurapConstants.ITEM_ALLOWS_ZERO));
    Collection<String> poAllowZero = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PurchaseOrderDocument.class, PurapConstants.ITEM_ALLOWS_ZERO));
    Collection<String> reqAllowZero = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(RequisitionDocument.class, PurapConstants.ITEM_ALLOWS_ZERO));
    Collection<String> cmRequireDescription = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(VendorCreditMemoDocument.class, PurapConstants.ITEM_REQUIRES_USER_ENTERED_DESCRIPTION));
    Collection<String> preqRequireDescription = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PaymentRequestDocument.class, PurapConstants.ITEM_REQUIRES_USER_ENTERED_DESCRIPTION));
    Collection<String> poRequireDescription = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PurchaseOrderDocument.class, PurapConstants.ITEM_REQUIRES_USER_ENTERED_DESCRIPTION));
    Collection<String> reqRequireDescription = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(RequisitionDocument.class, PurapConstants.ITEM_REQUIRES_USER_ENTERED_DESCRIPTION));
    Collection<String> preqRestrictingAccountEdit = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PaymentRequestDocument.class, PurapParameterConstants.PURAP_ITEM_TYPES_RESTRICTING_ACCOUNT_EDIT));
    Collection<String> poRestrictingAccountEdit = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PurchaseOrderDocument.class, PurapParameterConstants.PURAP_ITEM_TYPES_RESTRICTING_ACCOUNT_EDIT));
    Collection<String> reqRestrictingAccountEdit = new ArrayList<String>(SpringContext.getBean(ParameterService.class).getParameterValuesAsString(RequisitionDocument.class, PurapParameterConstants.PURAP_ITEM_TYPES_RESTRICTING_ACCOUNT_EDIT));

    ItemType newBo = (ItemType) getNewBo();
    ItemType oldBo = (ItemType) getOldBo();

    if ((!newBo.isActive() && oldBo.isActive()) &&
            (cmAdditionalCharges.contains(newBo.getItemTypeCode()) ||
                    preqAdditionalCharges.contains(newBo.getItemTypeCode()) ||
                    poAdditionalCharges.contains(newBo.getItemTypeCode()) ||
                    reqAdditionalCharges.contains(newBo.getItemTypeCode()) ||
                    defaultNonQuantityItemTypes.contains(newBo.getItemTypeCode()) ||
                    defaultQuantityItemTypes.contains(newBo.getItemTypeCode()) ||
                    cmAllowNegative.contains(newBo.getItemTypeCode()) ||
                    preqAllowNegative.contains(newBo.getItemTypeCode()) ||
                    poAllowNegative.contains(newBo.getItemTypeCode()) ||
                    reqAllowNegative.contains(newBo.getItemTypeCode()) ||
                    cmAllowPositive.contains(newBo.getItemTypeCode()) ||
                    preqAllowPositive.contains(newBo.getItemTypeCode()) ||
                    poAllowPositive.contains(newBo.getItemTypeCode()) ||
                    reqAllowPositive.contains(newBo.getItemTypeCode()) ||
                    cmAllowZero.contains(newBo.getItemTypeCode()) ||
                    preqAllowZero.contains(newBo.getItemTypeCode()) ||
                    poAllowZero.contains(newBo.getItemTypeCode()) ||
                    reqAllowZero.contains(newBo.getItemTypeCode()) ||
                    cmRequireDescription.contains(newBo.getItemTypeCode()) ||
                    preqRequireDescription.contains(newBo.getItemTypeCode()) ||
                    poRequireDescription.contains(newBo.getItemTypeCode()) ||
                    reqRequireDescription.contains(newBo.getItemTypeCode()) ||
                    preqRestrictingAccountEdit.contains(newBo.getItemTypeCode()) ||
                    poRestrictingAccountEdit.contains(newBo.getItemTypeCode()) ||
                    reqRestrictingAccountEdit.contains(newBo.getItemTypeCode()))
            ) {
        success = false;
        String documentLabel = SpringContext.getBean(BusinessObjectDictionaryService.class).getMaintainableLabel(newBo.getClass());
        putGlobalError(OLEKeyConstants.ERROR_CANNOT_INACTIVATE_USED_IN_SYSTEM_PARAMETERS, documentLabel);
    }

    return success;
}
 

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

示例26: checkForSystemParametersExistence

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
protected boolean checkForSystemParametersExistence() {
    LOG.info("checkForSystemParametersExistence called");
    boolean success = true;
    Collection<String> cmAdditionalCharges = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(VendorCreditMemoDocument.class, PurapConstants.BELOW_THE_LINES_PARAMETER) );
    Collection<String> preqAdditionalCharges = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PaymentRequestDocument.class, PurapConstants.BELOW_THE_LINES_PARAMETER) );
    Collection<String> poAdditionalCharges = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PurchaseOrderDocument.class, PurapConstants.BELOW_THE_LINES_PARAMETER) );
    Collection<String> reqAdditionalCharges = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(RequisitionDocument.class, PurapConstants.BELOW_THE_LINES_PARAMETER) );
    Collection<String> defaultNonQuantityItemTypes = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString( KfsParameterConstants.PURCHASING_DOCUMENT.class, PurapParameterConstants.DEFAULT_NON_QUANTITY_ITEM_TYPE) );
    Collection<String> defaultQuantityItemTypes = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(KfsParameterConstants.PURCHASING_DOCUMENT.class, PurapParameterConstants.DEFAULT_QUANTITY_ITEM_TYPE) );
    Collection<String> cmAllowNegative = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(VendorCreditMemoDocument.class, PurapConstants.ITEM_ALLOWS_NEGATIVE) );
    Collection<String> preqAllowNegative = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PaymentRequestDocument.class, PurapConstants.ITEM_ALLOWS_NEGATIVE) );
    Collection<String> poAllowNegative = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PurchaseOrderDocument.class, PurapConstants.ITEM_ALLOWS_NEGATIVE) );
    Collection<String> reqAllowNegative = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(RequisitionDocument.class, PurapConstants.ITEM_ALLOWS_NEGATIVE) );
    Collection<String> cmAllowPositive = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(VendorCreditMemoDocument.class, PurapConstants.ITEM_ALLOWS_POSITIVE) );
    Collection<String> preqAllowPositive = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PaymentRequestDocument.class, PurapConstants.ITEM_ALLOWS_POSITIVE) );
    Collection<String> poAllowPositive = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PurchaseOrderDocument.class, PurapConstants.ITEM_ALLOWS_POSITIVE) );
    Collection<String> reqAllowPositive = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(RequisitionDocument.class, PurapConstants.ITEM_ALLOWS_POSITIVE) );
    Collection<String> cmAllowZero = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(VendorCreditMemoDocument.class, PurapConstants.ITEM_ALLOWS_ZERO) );
    Collection<String> preqAllowZero = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PaymentRequestDocument.class, PurapConstants.ITEM_ALLOWS_ZERO) );
    Collection<String> poAllowZero = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PurchaseOrderDocument.class, PurapConstants.ITEM_ALLOWS_ZERO) );
    Collection<String> reqAllowZero = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(RequisitionDocument.class, PurapConstants.ITEM_ALLOWS_ZERO) );
    Collection<String> cmRequireDescription = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(VendorCreditMemoDocument.class, PurapConstants.ITEM_REQUIRES_USER_ENTERED_DESCRIPTION) );
    Collection<String> preqRequireDescription = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PaymentRequestDocument.class, PurapConstants.ITEM_REQUIRES_USER_ENTERED_DESCRIPTION) );
    Collection<String> poRequireDescription = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PurchaseOrderDocument.class, PurapConstants.ITEM_REQUIRES_USER_ENTERED_DESCRIPTION) );
    Collection<String> reqRequireDescription = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(RequisitionDocument.class, PurapConstants.ITEM_REQUIRES_USER_ENTERED_DESCRIPTION) );
    Collection<String> preqRestrictingAccountEdit = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PaymentRequestDocument.class, PurapParameterConstants.PURAP_ITEM_TYPES_RESTRICTING_ACCOUNT_EDIT) );
    Collection<String> poRestrictingAccountEdit = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(PurchaseOrderDocument.class, PurapParameterConstants.PURAP_ITEM_TYPES_RESTRICTING_ACCOUNT_EDIT) );
    Collection<String> reqRestrictingAccountEdit = new ArrayList<String>( SpringContext.getBean(ParameterService.class).getParameterValuesAsString(RequisitionDocument.class, PurapParameterConstants.PURAP_ITEM_TYPES_RESTRICTING_ACCOUNT_EDIT) );
    
    ItemType newBo = (ItemType)getNewBo();
    ItemType oldBo= (ItemType)getOldBo();
   
    if ((!newBo.isActive() && oldBo.isActive()) &&
         (cmAdditionalCharges.contains(newBo.getItemTypeCode()) || 
          preqAdditionalCharges.contains(newBo.getItemTypeCode()) ||
          poAdditionalCharges.contains(newBo.getItemTypeCode()) ||
          reqAdditionalCharges.contains(newBo.getItemTypeCode()) ||
          defaultNonQuantityItemTypes.contains(newBo.getItemTypeCode()) ||
          defaultQuantityItemTypes.contains(newBo.getItemTypeCode()) ||
          cmAllowNegative.contains(newBo.getItemTypeCode()) ||
          preqAllowNegative.contains(newBo.getItemTypeCode()) ||
          poAllowNegative.contains(newBo.getItemTypeCode()) ||
          reqAllowNegative.contains(newBo.getItemTypeCode()) ||
          cmAllowPositive.contains(newBo.getItemTypeCode()) ||
          preqAllowPositive.contains(newBo.getItemTypeCode()) ||
          poAllowPositive.contains(newBo.getItemTypeCode()) ||
          reqAllowPositive.contains(newBo.getItemTypeCode()) ||
          cmAllowZero.contains(newBo.getItemTypeCode()) ||
          preqAllowZero.contains(newBo.getItemTypeCode()) ||
          poAllowZero.contains(newBo.getItemTypeCode()) ||
          reqAllowZero.contains(newBo.getItemTypeCode()) ||
          cmRequireDescription.contains(newBo.getItemTypeCode()) ||
          preqRequireDescription.contains(newBo.getItemTypeCode()) ||
          poRequireDescription.contains(newBo.getItemTypeCode()) ||
          reqRequireDescription.contains(newBo.getItemTypeCode()) ||
          preqRestrictingAccountEdit.contains(newBo.getItemTypeCode()) ||
          poRestrictingAccountEdit.contains(newBo.getItemTypeCode()) ||
          reqRestrictingAccountEdit.contains(newBo.getItemTypeCode()) )
        ) {
        success = false;
        String documentLabel = SpringContext.getBean(BusinessObjectDictionaryService.class).getMaintainableLabel(newBo.getClass()); 
        putFieldError(KFSPropertyConstants.ACTIVE, KFSKeyConstants.ERROR_CANNOT_INACTIVATE_USED_IN_SYSTEM_PARAMETERS, documentLabel);
    }
    
    return success;
}
 

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

示例27: populate

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
@Override
public void populate(HttpServletRequest request) {
    super.populate(request);
    SpringContext.getBean(BusinessObjectDictionaryService.class).performForceUppercase(getAssetTransferDocument());
}
 

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

示例28: populate

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
/**
 * @see org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase#populate(javax.servlet.http.HttpServletRequest)
 */
@Override
public void populate(HttpServletRequest request) {
    super.populate(request);
    SpringContext.getBean(BusinessObjectDictionaryService.class).performForceUppercase(getEquipmentLoanOrReturnDocument());
}
 

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

示例29: populate

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
@Override
public void populate(HttpServletRequest request) {
    super.populate(request);
    SpringContext.getBean(BusinessObjectDictionaryService.class).performForceUppercase(this.getBarcodeInventoryErrorDocument());
}
 

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

示例30: setBusinessObjectDictionaryService

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
public void setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService) {
    this.businessObjectDictionaryService = businessObjectDictionaryService;
}
 

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

示例31: populate

点赞 2

import org.kuali.rice.kns.service.BusinessObjectDictionaryService; //导入依赖的package包/类
/**
 * calls super.populate, then populates revenue and expenditure lines
 * 
 * @see org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase#populate(javax.servlet.http.HttpServletRequest)
 */
@Override
public void populate(HttpServletRequest request) {

    super.populate(request);
    String methodToCall = this.getMethodToCall();

    // now run through PBGL rev and exp lines
    BudgetConstructionDocument bcDoc = this.getBudgetConstructionDocument();
    if (StringUtils.isNotBlank(methodToCall)) {
        if (methodToCall.equals(BCConstants.INSERT_REVENUE_LINE_METHOD)) {
            PendingBudgetConstructionGeneralLedger revLine = getNewRevenueLine();

            // do uppercase on added lines only, since users can only update amounts on existing lines
            // this should only affect the line since the DD has auto-update=false on refs and collections
            // and only affect fields where xml attribute has forceUppercase="true"
            SpringContext.getBean(BusinessObjectDictionaryService.class).performForceUppercase(revLine);

            populateRevenueLine(bcDoc, this.getNewRevenueLine());

        }
        else {
            this.populatePBGLLine(this.getNewRevenueLine());
        }

        if (methodToCall.equals(BCConstants.INSERT_EXPENDITURE_LINE_METHOD)) {
            PendingBudgetConstructionGeneralLedger expLine = getNewExpenditureLine();

            // do uppercase on added lines only, since users can only update amounts on existing lines
            // this should only affect the line since the DD has auto-update=false on refs and collections
            // and only affect fields where xml attribute has forceUppercase="true"
            SpringContext.getBean(BusinessObjectDictionaryService.class).performForceUppercase(expLine);

            populateExpenditureLine(bcDoc, this.getNewExpenditureLine());

        }
        else {
            this.populatePBGLLine(this.getNewExpenditureLine());
        }

        // this is needed to retrieve ref objects, esp budgetConstructionMonthly
        populatePBGLLines();

        setDocTypeName(discoverDocumentTypeName());

    }

}
 

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


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)