本文整理汇总了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;
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:19,代码来源:Logic.java
示例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;
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:26,代码来源:Logic.java
示例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);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:8,代码来源:Logic.java
示例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());
}
}
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:16,代码来源:Logic.java
示例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;
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:30,代码来源:Logic.java
示例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);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:8,代码来源:UserAssessmentsImpl.java
示例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);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:30,代码来源:DPPGroupingsConfigImpl.java
示例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();
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:44,代码来源:Logic.java
示例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);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:54,代码来源:GraphicAssessmentsImpl.java
示例10: listAssessments
import ims.core.vo.lookups.UserDefinedAssessmentTypeCollection; //导入依赖的package包/类
public GraphicAssessmentShortVoCollection listAssessments(String name, PreActiveActiveInactiveStatus status, UserDefinedAssessmentTypeCollection types)
{
return listGraphicAssesssments(name, status, types);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:5,代码来源:GraphicAssessmentsImpl.java
示例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);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:9,代码来源:UserDefinedFormSearchImpl.java
示例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);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:6,代码来源:UserDefinedFormSearchImpl.java
示例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);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:6,代码来源:ClinicalNoteDrawingImpl.java
注:本文中的ims.core.vo.lookups.UserDefinedAssessmentTypeCollection类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论