public FieldHelpVo getHintByLookupID(EDischargeHINT voLookup) { if(voLookup == null) throw new CodingRuntimeException("EDischargeHINT is null"); DomainFactory factory = getDomainFactory(); String hql = " from FieldHelpText fht " + " where fht.field = :fld "; List list = factory.find(hql,new String[]{"fld"}, new Object[]{getDomLookup(voLookup)}); if (list != null && list.size() > 0) { FieldHelpText doFHT = (FieldHelpText)list.get(0); return FieldHelpVoAssembler.create(doFHT); } return null; }
private void setTooltips() { EDischargeHINT lkpHint = new EDischargeHINT(); lkpHint.setId(-1722); //TTO Required FieldHelpVo voHint = domain.getHintByLookupID(lkpHint); if (voHint != null) form.imbTTOHINT().setTooltip(voHint.getHelpText()); lkpHint.setId(-1723); //Meds On Discharge voHint = domain.getHintByLookupID(lkpHint); if (voHint != null) form.imbMedsOnDisch().setTooltip(voHint.getHelpText()); lkpHint.setId(-1724); //Meds Recommendations voHint = domain.getHintByLookupID(lkpHint); if (voHint != null) form.imbMedRecommends().setTooltip(voHint.getHelpText()); }
private void setTooltips() { EDischargeHINT lkpHint = new EDischargeHINT(); lkpHint.setId(-1711); // Hospital Plan FieldHelpVo voHint = domain.getHintByLookupID(lkpHint); if (voHint != null) form.imbHospitalPlanHINT().setTooltip(voHint.getHelpText()); lkpHint.setId(-1712); // Actions for GP and Community voHint = domain.getHintByLookupID(lkpHint); if (voHint != null) form.imbActionsHINT().setTooltip(voHint.getHelpText()); lkpHint.setId(-1713); // Other Result Awaited voHint = domain.getHintByLookupID(lkpHint); if (voHint != null) form.imbResultsHINT().setTooltip(voHint.getHelpText()); lkpHint.setId(-1714); // Future Plan Comments voHint = domain.getHintByLookupID(lkpHint); if (voHint != null) form.imbCommentsHINT().setTooltip(voHint.getHelpText()); }
private void setTooltips() { EDischargeHINT lkpHint = new EDischargeHINT(); lkpHint.setId(-1712); // Actions for GP and Community FieldHelpVo voHint = domain.getHintByLookupID(lkpHint); if (voHint != null) form.imbActionsHINT().setTooltip(voHint.getHelpText()); // WDEV-18620 // lkpHint.setId(-1711); // Hospital Plan // voHint = domain.getHintByLookupID(lkpHint); // if (voHint != null) // form.imbHospitalPlanHINT().setTooltip(voHint.getHelpText()); // // lkpHint.setId(-1713); // Other Result Awaited // voHint = domain.getHintByLookupID(lkpHint); // if (voHint != null) // form.imbResultsHINT().setTooltip(voHint.getHelpText()); // // lkpHint.setId(-1714); // Future Plan Comments // voHint = domain.getHintByLookupID(lkpHint); // if (voHint != null) // form.imbCommentsHINT().setTooltip(voHint.getHelpText()); }
private grdDetailsRow findHINTRow(FieldHelpVo voHelp) { for(int i = 0 ; i < form.grdDetails().getRows().size() ; i++) { if (voHelp.getField().getID() == form.grdDetails().getRows().get(i).getColLookupValue().getID()) return form.grdDetails().getRows().get(i); } return null; }
public FieldHelpVo getHINT(FieldHelpTextRefVo voHistRef) { if(voHistRef == null) throw new CodingRuntimeException("FieldHelpVo is null"); DomainFactory factory = getDomainFactory(); return FieldHelpVoAssembler.create((FieldHelpText)factory.getDomainObject(FieldHelpText.class, voHistRef.getID_FieldHelpText())); }
public FieldHelpVo saveHINT(FieldHelpVo voHelpText) throws DomainInterfaceException, StaleObjectException { if(voHelpText == null) throw new CodingRuntimeException("FieldHelpVo is null"); if(!voHelpText.isValidated()) throw new CodingRuntimeException("FieldHelpVo Value Object has not been validated"); DomainFactory factory = getDomainFactory(); FieldHelpText doHelp = FieldHelpVoAssembler.extractFieldHelpText(factory, voHelpText); factory.save(doHelp); return FieldHelpVoAssembler.create(doHelp); }
private void setTooltips() { EDischargeHINT lkpHint = new EDischargeHINT(); lkpHint.setId(-1743); // Date of Discharge (Ready to Leave) FieldHelpVo voHint = domain.getHintByLookupID(lkpHint); if (voHint != null) form.imbDODisch().setTooltip(voHint.getHelpText()); lkpHint.setId(-1745); // Print Discharge (Ready to Leave) voHint = domain.getHintByLookupID(lkpHint); if (voHint != null) form.imbPrintDisch().setTooltip(voHint.getHelpText()); }
private void setTooltips() { EDischargeHINT lkpHint = new EDischargeHINT(); lkpHint.setId(-1709); // Investigations FieldHelpVo voHint = domain.getHintByLookupID(lkpHint); if (voHint != null) form.imbInvestigationCommentsHINT().setTooltip(voHint.getHelpText()); lkpHint.setId(-1710); //Additional voHint = domain.getHintByLookupID(lkpHint); if (voHint != null) form.imbAdditionalCommnetsHINT().setTooltip(voHint.getHelpText()); }
public FieldHelpVo getHintByLookupID(EDischargeHINT voLookup) { EDischargeHINTConfig impl = (EDischargeHINTConfig) getDomainImpl(EDischargeHINTConfigImpl.class); return impl.getHintByLookupID(voLookup); }