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


Java PatientAssessmentQuestionVo.getIsPocIsNotNull方法代码示例

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


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

示例1: populateDetailsGrid

import ims.assessment.vo.PatientAssessmentQuestionVo; //导入方法依赖的package包/类
private void populateDetailsGrid(PatientAssessmentVo voPatAss, Integer score)
{
	super.populateScreenFromData(voPatAss);
	form.dynGridDetails().getRows().clear();
	
	if(voPatAss == null)
		return;

	populateAuthoringInfoControls(voPatAss);

	int questionIndex = 1;
	for (int i = 0; i < voPatAss.getAssessmentData().getAnswerGroups().size(); i++)
	{
		PatientAssessmentGroupVo voPatAssessGroup = voPatAss.getAssessmentData().getAnswerGroups().get(i);
		if(voPatAssessGroup.getAssessmentAnswers() != null)
			voPatAssessGroup.getAssessmentAnswers().sort();
		for (int j = 0; j < voPatAssessGroup.getAssessmentAnswers().size(); j++)
		{
			PatientAssessmentQuestionVo voPatAssQuestion = voPatAssessGroup.getAssessmentAnswers().get(j);
			if(isStatusAnswered(voPatAssQuestion) && hasAnswers(voPatAssQuestion))
			{
				ScoreAndImage scoreImage = getHelper().getScoreImage(voPatAssQuestion);
				if(!isNotTheSameScoreRecord(score, scoreImage))
					continue;
				
				DynamicGridRow row = form.dynGridDetails().getRows().newRow();
				
				DynamicGridCell imageCell = row.getCells().newCell(getCellByIdentifier(IMAGE_COLUMN), DynamicCellType.IMAGE);
				if(scoreImage != null)
				{
					imageCell.setValue(scoreImage.getImage());
				}
				String text = getQuestionText(voPatAssQuestion, questionIndex);
				questionIndex++;
				
				DynamicGridCell assessmentCell = row.getCells().newCell(getCellByIdentifier(ASSESSMENT_COLUMN), DynamicCellType.WRAPTEXT);
				assessmentCell.setValue(text);
				assessmentCell.setTooltip(text);
				assessmentCell.setReadOnly(true);
				//TODO - try to set it bold
				//assessmentCell.setBold
				
				DynamicGridCell protocolCell = row.getCells().newCell(getCellByIdentifier(PROTOCOL_COLUMN), DynamicCellType.STRING);
				protocolCell.setValue(voPatAssQuestion.getAssessmentQuestion().getProtocol());
				protocolCell.setTooltip(voPatAssQuestion.getAssessmentQuestion().getProtocol());
				protocolCell.setReadOnly(true);
				
				DynamicGridCell initialsCell = row.getCells().newCell(getCellByIdentifier(INITIALS_COLUMN), DynamicCellType.STRING);
				initialsCell.setValue(getInitials(voPatAssQuestion));
				initialsCell.setTooltip(getInitialsTooltip(voPatAssQuestion));
				initialsCell.setReadOnly(true);
				
				String urlText = getUrlText(voPatAssQuestion);
				if(urlText != null && urlText.length() > 0)
				{
					DynamicGridCell urlCell = row.getCells().newCell(getCellByIdentifier(URL_COLUMN), DynamicCellType.IMAGEBUTTON);
					urlCell.setValue(form.getImages().Core.Information);
					urlCell.setTooltip(getUrlText(voPatAssQuestion));
					urlCell.setReadOnly(false);
				}
		
				if(voPatAssQuestion.getIsPocIsNotNull() && voPatAssQuestion.getIsPoc().booleanValue())
					row.setBackColor(Color.Beige);
				
				row.setValue(voPatAssQuestion);
			}
		}
	}
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:70,代码来源:Logic.java


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