use of org.kuali.kfs.kns.lookup.HtmlData.AnchorHtmlData in project cu-kfs by CU-CommunityApps.
the class CurrentFundsLookupableHelperServiceImpl method getInquiryUrl.
/**
* @see org.kuali.kfs.kns.lookup.Lookupable#getInquiryUrl(org.kuali.kfs.kns.bo.BusinessObject, java.lang.String)
*/
@Override
public HtmlData getInquiryUrl(BusinessObject bo, String propertyName) {
if (KFSPropertyConstants.POSITION_NUMBER.equals(propertyName)) {
LedgerBalance balance = (LedgerBalance) bo;
AbstractPositionDataDetailsInquirableImpl positionDataDetailsInquirable = new PositionDataDetailsInquirableImpl();
Map<String, String> fieldValues = new HashMap<String, String>();
fieldValues.put(propertyName, balance.getPositionNumber());
BusinessObject positionData = positionDataDetailsInquirable.getBusinessObject(fieldValues);
return positionData == null ? new AnchorHtmlData(KFSConstants.EMPTY_STRING, KFSConstants.EMPTY_STRING) : positionDataDetailsInquirable.getInquiryUrl(positionData, propertyName);
}
return (new CurrentFundsInquirableImpl()).getInquiryUrl(bo, propertyName);
}
use of org.kuali.kfs.kns.lookup.HtmlData.AnchorHtmlData in project cu-kfs by CU-CommunityApps.
the class EmployeeFundingLookupableHelperServiceImpl method getInquiryUrl.
/**
* @see org.kuali.kfs.kns.lookup.Lookupable#getInquiryUrl(org.kuali.kfs.kns.bo.BusinessObject, java.lang.String)
*/
@Override
public HtmlData getInquiryUrl(BusinessObject bo, String propertyName) {
if (KFSPropertyConstants.POSITION_NUMBER.equals(propertyName)) {
EmployeeFunding employeeFunding = (EmployeeFunding) bo;
AbstractPositionDataDetailsInquirableImpl positionDataDetailsInquirable = new PositionDataDetailsInquirableImpl();
Map<String, String> fieldValues = new HashMap<String, String>();
fieldValues.put(propertyName, employeeFunding.getPositionNumber());
BusinessObject positionData = positionDataDetailsInquirable.getBusinessObject(fieldValues);
return positionData == null ? new AnchorHtmlData(KFSConstants.EMPTY_STRING, KFSConstants.EMPTY_STRING) : positionDataDetailsInquirable.getInquiryUrl(positionData, propertyName);
}
return (new EmployeeFundingInquirableImpl()).getInquiryUrl(bo, propertyName);
}
use of org.kuali.kfs.kns.lookup.HtmlData.AnchorHtmlData in project cu-kfs by CU-CommunityApps.
the class CreateDoneBatchFileLookupableHelperServiceImpl method getCreateDoneUrl.
protected HtmlData getCreateDoneUrl(BatchFile batchFile) {
Properties parameters = new Properties();
parameters.put("filePath", BatchFileUtils.pathRelativeToRootDirectory(batchFile.retrieveFile().getAbsolutePath()));
parameters.put(KRADConstants.DISPATCH_REQUEST_PARAMETER, "createDone");
String href = UrlFactory.parameterizeUrl("../createDoneBatchFileAdmin.do", parameters);
return new AnchorHtmlData(href, "createDone", "Create Done");
}
Aggregations