本文整理汇总了Java中ims.core.vo.lookups.UserDefinedAssessmentTypeCollection类的典型用法代码示例。如果您正苦于以下问题:Java UserDefinedAssessmentTypeCollection类的具体用法?Java UserDefinedAssessmentTypeCollection怎么用?Java UserDefinedAssessmentTypeCollection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UserDefinedAssessmentTypeCollection类属于ims.core.vo.lookups包,在下文中一共展示了UserDefinedAssessmentTypeCollection类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAssessmentTypes
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入依赖的package包/类
private UserDefinedAssessmentTypeCollection getAssessmentTypes(UserDefinedAssessmentType value)
{
UserDefinedAssessmentTypeCollection lkpColl = new UserDefinedAssessmentTypeCollection();
if(value != null)
{
lkpColl.add(value);
if(value.equals(UserDefinedAssessmentType.USERDEFINEDDATASHEET))
{
lkpColl.add(UserDefinedAssessmentType.DISCHARGECHECKLIST);
}
if(value.equals(UserDefinedAssessmentType.ASSESSMENTTOOL))
{
lkpColl.add(UserDefinedAssessmentType.DPP);
}
}
return lkpColl;
}
示例2: getUserDefinedTypes
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入依赖的package包/类
private UserDefinedAssessmentTypeCollection getUserDefinedTypes(UserDefinedAssessmentType type)
{
UserDefinedAssessmentTypeCollection assTypeColl = new UserDefinedAssessmentTypeCollection();
if(type != null)
{
assTypeColl.add(type);
UserDefinedAssessmentTypeCollection udfColl = LookupHelper.getUserDefinedAssessmentType(domain.getLookupService());
for (int i = 0; i < udfColl.size(); i++)
{
UserDefinedAssessmentType lkpType = udfColl.get(i);
if(type.equals(lkpType))
{
//Add the children (if any) to the collection
for (int j = 0; lkpType.getChildInstances() != null && j < lkpType.getChildInstances().size(); j++)
{
assTypeColl.add((UserDefinedAssessmentType)lkpType.getChildInstances().get(j));
}
}
}
}
return assTypeColl;
}
示例3: listUserAssessments
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入依赖的package包/类
private UserAssessmentLiteVoCollection listUserAssessments()
{
UserDefinedAssessmentTypeCollection coll = new UserDefinedAssessmentTypeCollection();
coll.add(UserDefinedAssessmentType.DPP);
//coll.add(UserDefinedAssessmentType.ADDITIONALDPP);
return domain.listUserAssessments(coll);
}
示例4: populateLookups
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入依赖的package包/类
private void populateLookups()
{
form.cmbComponent().clear();
//WDEV-1692 - Display first level one lookups
UserDefinedAssessmentTypeCollection lookupColl = LookupHelper.getUserDefinedAssessmentType(domain.getLookupService());
LookupInstVo[] lookupParents = lookupColl.getRoots();
for (int i = 0; lookupColl != null && i < lookupColl.size(); i++)
{
UserDefinedAssessmentType assessmentType = lookupColl.get(i);
if (lookupHasARootParent(lookupParents, assessmentType))
{
form.cmbComponent().newRow(lookupColl.get(i), lookupColl.get(i).toString(), lookupColl.get(i).getImage(), lookupColl.get(i).getColor());
}
}
}
示例5: getUserDefinedTypes
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入依赖的package包/类
private UserDefinedAssessmentTypeCollection getUserDefinedTypes(UserDefinedAssessmentType type, UserDefinedAssessmentType excludedType)
{
UserDefinedAssessmentTypeCollection assTypeColl = new UserDefinedAssessmentTypeCollection();
if(type != null)
{
assTypeColl.add(type);
UserDefinedAssessmentTypeCollection udfColl = LookupHelper.getUserDefinedAssessmentType(domain.getLookupService());
for (int i = 0; i < udfColl.size(); i++)
{
UserDefinedAssessmentType lkpType = udfColl.get(i);
if(type.equals(lkpType))
{
//Add the children (if any) to the collection
for (int j = 0; lkpType.getChildInstances() != null && j < lkpType.getChildInstances().size(); j++)
{
UserDefinedAssessmentType userDefinedAssessmentType = (UserDefinedAssessmentType)lkpType.getChildInstances().get(j);
if(excludedType != null && excludedType.equals(userDefinedAssessmentType))
continue;
assTypeColl.add(userDefinedAssessmentType);
}
}
}
}
return assTypeColl;
}
示例6: listAssessments
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入依赖的package包/类
public UserAssessmentShortVoCollection listAssessments(String name, UserAssessmentCategory category, UserDefinedAssessmentType assessmentType)
{
UserDefinedAssessmentTypeCollection lkpColl = new UserDefinedAssessmentTypeCollection();
if (assessmentType != null)
lkpColl.add(assessmentType);
return listAssessments(name, category, lkpColl, null);
}
示例7: listUserAssessments
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入依赖的package包/类
public ims.assessment.vo.UserAssessmentLiteVoCollection listUserAssessments(UserDefinedAssessmentTypeCollection assessmentTypes)
{
if (assessmentTypes == null || assessmentTypes.size() == 0)
throw new CodingRuntimeException("Cannot list UserAssessment for null assessmentTypes");
DomainFactory factory = getDomainFactory();
StringBuffer hql = new StringBuffer("from UserAssessment u ");
ArrayList markers = new ArrayList();
ArrayList values = new ArrayList();
String orStr = " where ";
// AssessmentType
for (int i = 0; i < assessmentTypes.size(); i++)
{
UserDefinedAssessmentType type = assessmentTypes.get(i);
if (type != null)
{
String marker = "assType" + i;
hql.append(orStr + " u.assessmentType =:" + marker);
markers.add(marker);
values.add(getDomLookup(type));
orStr = " or ";
}
}
List list = factory.find(hql.toString(), markers, values);
return UserAssessmentLiteVoAssembler.createUserAssessmentLiteVoCollectionFromUserAssessment(list).sort(SortOrder.DESCENDING);
}
示例8: search
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入依赖的package包/类
private void search(boolean checkMandatory)
{
UserAssessmentShortVoCollection assessments;
String name = form.txtName().getValue();
if(name != null && name.length() > 0)
{
if(form.GroupCriteria().getValue().equals(GenForm.GroupCriteriaEnumeration.rdoBegins))
{
name += '%';
}
else if(form.GroupCriteria().getValue().equals(GenForm.GroupCriteriaEnumeration.rdoContains))
{
name = '%' + name + '%';
}
}
else
{
if(checkMandatory)
{
engine.showMessage("Please enter a name");
form.txtName().setFocus();
form.grdDetails().getRows().clear();
refreshContextMenu();
return;
}
}
UserDefinedAssessmentTypeCollection assessmentTypes = getAssessmentTypes(form.cmbAssType().getValue());
assessments = domain.listAssessments(name, form.cmbCategory().getValue(), assessmentTypes, form.cmbStatus().getValue());
populateScreenFromData(assessments);
if(assessments == null || assessments.size() == 0)
{
engine.showMessage("No Assessments found for the Search Criteria Provided");
}
if(form.getGlobalContext().Core.getSelectedUserAssessmentIsNotNull() && form.getGlobalContext().Core.getSelectedUserAssessment().getID_UserAssessmentIsNotNull())
form.grdDetails().setValue(form.getGlobalContext().Core.getSelectedUserAssessment());
refreshContextMenu();
}
示例9: listGraphicAssesssments
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入依赖的package包/类
private GraphicAssessmentShortVoCollection listGraphicAssesssments(String name, ims.core.vo.lookups.PreActiveActiveInactiveStatus status, UserDefinedAssessmentTypeCollection types)
{
DomainFactory factory = getDomainFactory();
StringBuffer hql = new StringBuffer("from GraphicAssessment ga ");
ArrayList names = new ArrayList();
ArrayList values = new ArrayList();
String clause = " where ";
if (name != null)
{
hql.append(clause);
hql.append(" upper(ga.name) like :name");
names.add("name");
values.add(name.toUpperCase());
clause = " and ";
}
if (status != null)
{
hql.append(clause);
hql.append(" ga.activeStatus = :status");
names.add("status");
values.add(getDomLookup(status));
clause = " and ";
}
if (types != null)
{
int size = types.size();
for (int i = 0; i < size; i++)
{
UserDefinedAssessmentType assType = types.get(i);
// Check if " where " clause was added previously
hql.append(clause);
if (i == 0)
hql.append(" (");
hql.append("ga.assessmentType.id =:assessmentType" + Integer.toString(i));
names.add("assessmentType" + i);
values.add(new Integer(assType.getId()));
if (i == (size - 1))
hql.append(")");
clause = " or ";
}
clause = " and ";
}
List list = factory.find(hql.toString(), names, values);
return GraphicAssessmentShortVoAssembler.createGraphicAssessmentShortVoCollectionFromGraphicAssessment(list);
}
示例10: listAssessments
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入依赖的package包/类
public GraphicAssessmentShortVoCollection listAssessments(String name, PreActiveActiveInactiveStatus status, UserDefinedAssessmentTypeCollection types)
{
return listGraphicAssesssments(name, status, types);
}
示例11: listAssessments
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入依赖的package包/类
/**
* listAssessments
*/
public UserAssessmentShortVoCollection listAssessments(String name, ims.core.vo.lookups.PreActiveActiveInactiveStatus status, UserDefinedAssessmentTypeCollection types)
{
UserAssessments domainImpl = (UserAssessments) getDomainImpl(UserAssessmentsImpl.class);
return domainImpl.listAssessments(name, null, types, status);
}
示例12: listGraphicAssessments
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入依赖的package包/类
public GraphicAssessmentShortVoCollection listGraphicAssessments(String name, PreActiveActiveInactiveStatus status, UserDefinedAssessmentTypeCollection types)
{
GraphicAssessments domainImpl = (GraphicAssessments) getDomainImpl(GraphicAssessmentsImpl.class);
return domainImpl.listAssessments(name, status, types);
}
示例13: listAssessments
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入依赖的package包/类
public UserAssessmentShortVoCollection listAssessments(String name, UserAssessmentCategory category, UserDefinedAssessmentTypeCollection assessmentType, PreActiveActiveInactiveStatus status)
{
UserAssessments impl = (UserAssessments)getDomainImpl(UserAssessmentsImpl.class);
return impl.listAssessments(name,category,assessmentType,status);
}