本文整理汇总了Java中ims.coe.vo.Discharge.getAssessmentIsNotNull方法的典型用法代码示例。如果您正苦于以下问题:Java Discharge.getAssessmentIsNotNull方法的具体用法?Java Discharge.getAssessmentIsNotNull怎么用?Java Discharge.getAssessmentIsNotNull使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ims.coe.vo.Discharge
的用法示例。
在下文中一共展示了Discharge.getAssessmentIsNotNull方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: populateFunctionalVO
import ims.coe.vo.Discharge; //导入方法依赖的package包/类
private boolean populateFunctionalVO(Discharge dischargeVO)
{
// Populate Discharge Assessment VO
if (!dischargeVO.getAssessmentIsNotNull())
dischargeVO.setAssessment(new DischargeAssessment());
DateTime dt = new DateTime(form.layerControl1().tab2().dteFuncAssess().getValue(), form.layerControl1().tab2().timFuncAssess().getValue());
dischargeVO.getAssessment().setDateTime(dt);
Object hcpLite = domain.getHcpLiteUser();
dischargeVO.getAssessment().setHCP(hcpLite != null ? (HcpLiteVo) hcpLite : null);
if (dischargeVO.getCareContext() == null)
dischargeVO.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
dischargeVO.setNotes(form.layerControl1().tab2().textBoxNotes().getValue());
// Clear the Functional and Support Collection
dischargeVO.getAssessment().setFunctionalAndSupport(new DischargeFunctionalCollection());
for (int i = 0; i < form.layerControl1().tab2().gridFunctional().getRows().size(); i++)
{
populateVo(form.layerControl1().tab2().gridFunctional().getRows().get(i), dischargeVO);
}
return true;
}
示例2: populateFunctionalDetails
import ims.coe.vo.Discharge; //导入方法依赖的package包/类
private void populateFunctionalDetails(Discharge dischargeVO)
{
// Notes
form.layerControl1().tab2().textBoxNotes().setValue(dischargeVO.getNotes());
// Functional Assessment Grid
if (dischargeVO.getAssessmentIsNotNull() && dischargeVO.getAssessment().getFunctionalAndSupportIsNotNull())
{
for (int i = 0; i < dischargeVO.getAssessment().getFunctionalAndSupport().size(); i++)
{
for (int j = 0; j < form.layerControl1().tab2().gridFunctional().getRows().size(); j++)
{
populateFunctionalRow(dischargeVO.getAssessment().getFunctionalAndSupport().get(i), form.layerControl1().tab2().gridFunctional().getRows().get(j));
}
}
}
// Functional Assessment
if (dischargeVO.getAssessmentIsNotNull())
{
if (dischargeVO.getAssessment().getDateTimeIsNotNull())
{
form.layerControl1().tab2().dteFuncAssess().setValue(dischargeVO.getAssessment().getDateTime().getDate());
form.layerControl1().tab2().timFuncAssess().setValue(dischargeVO.getAssessment().getDateTime().getTime());
}
if (dischargeVO.getAssessment().getHCPIsNotNull())
form.layerControl1().tab2().txtHCP().setValue(dischargeVO.getAssessment().getHCP().toString());
}
}
示例3: open
import ims.coe.vo.Discharge; //导入方法依赖的package包/类
private void open()
{
// Clear local context
if (form.getLocalContext().getDischargeToUpdate() != null)
form.getLocalContext().setDischargeToUpdate(null);
form.layerControl1().tab1().gridActions().setReadOnly(true);
form.layerControl1().tab2().gridFunctional().setReadOnly(true);
form.layerControl1().settab1Enabled(true);
form.layerControl1().settab2Enabled(true);
form.layerControl1().tab2().bPrint().setEnabled(false);
enableNewUpdateFuncAssButtons(true);
enableNewUpdateActionButtons(true);
clearControls();
populateGrids();
if (getDischargeRecord())
{
if (form.getLocalContext().getDischargeToUpdate().getDateTimeDischarged() != null)
{
form.layerControl1().tab1().btnNewAction().setVisible(false);
form.layerControl1().tab1().btnUpdateAction().setVisible(false);
form.layerControl1().tab1().btnDischarge().setVisible(false);
}
else
{
// We have a record but it's of functional type
if (form.getLocalContext().getDischargeToUpdate().getDateCommencedIsNotNull())
{
form.layerControl1().tab1().btnNewAction().setVisible(false);
form.layerControl1().tab1().btnUpdateAction().setVisible(true);
form.layerControl1().tab1().btnDischarge().setVisible(true);
}
else
{
form.layerControl1().tab1().btnNewAction().setVisible(true);
form.layerControl1().tab1().btnUpdateAction().setVisible(false);
form.layerControl1().tab1().btnDischarge().setVisible(false);
}
}
Discharge dischargeVO = domain.getDischarge(form.getGlobalContext().Core.getCurrentCareContext());
if (dischargeVO != null && dischargeVO.getAssessmentIsNotNull())
{
// Discharge Assessment Record Exists
form.layerControl1().tab2().btnNewFuncAss().setVisible(false);
form.layerControl1().tab2().btnUpdateFuncAss().setVisible(true);
}
else
{
form.layerControl1().tab2().btnNewFuncAss().setVisible(true);
form.layerControl1().tab2().btnUpdateFuncAss().setVisible(false);
}
}
else
{
// Action
form.layerControl1().tab1().btnNewAction().setVisible(true);
form.layerControl1().tab1().btnUpdateAction().setVisible(false);
form.layerControl1().tab1().btnDischarge().setVisible(false);
// Assessment
form.layerControl1().tab2().btnNewFuncAss().setVisible(true);
form.layerControl1().tab2().btnUpdateFuncAss().setVisible(false);
}
}