private void defaultIntendedManagement() { if (form.intAnticipatedStay().getValue() != null && (ElectiveAdmissionType.BOOKED_TYPE12.equals(form.getLocalContext().getAdmissionType()) || ElectiveAdmissionType.ELECTIVE_TYPE11.equals(form.getLocalContext().getAdmissionType()))) { if (form.intAnticipatedStay().getValue() > 1) { form.cmbIntendedManagement().setValue(ManagementIntention.TYPE1_STAYATLEASTONENIGHT); } else if (form.intAnticipatedStay().getValue() == 1) { form.cmbIntendedManagement().setValue(ManagementIntention.TYPE2_NOTOTSTAY); } } else form.cmbIntendedManagement().setValue(null); }
private void initialiseIntendedManagement() { //WDEV-18388 //WDEV-19428 - removed duplicate lookup references if (ElectiveAdmissionType.PLANNED_TYPE13.equals(form.getLocalContext().getAdmissionType())) { form.cmbIntendedManagement().removeRow(ManagementIntention.DAY_CASE); form.cmbIntendedManagement().removeRow(ManagementIntention.OVERNIGHT); } else if (ElectiveAdmissionType.BOOKED_TYPE12.equals(form.getLocalContext().getAdmissionType())) { form.cmbIntendedManagement().removeRow(ManagementIntention.TYPE3_SEQUENCEATLEASTONENIGHT); form.cmbIntendedManagement().removeRow(ManagementIntention.TYPE4_SEQUENCENOOVERNIGHSTAY); form.cmbIntendedManagement().removeRow(ManagementIntention.TYPE5_SEQUENCEOVERNIGHTANDHOME); } else if (ElectiveAdmissionType.ELECTIVE_TYPE11.equals(form.getLocalContext().getAdmissionType())) { form.cmbIntendedManagement().removeRow(ManagementIntention.TYPE3_SEQUENCEATLEASTONENIGHT); form.cmbIntendedManagement().removeRow(ManagementIntention.TYPE4_SEQUENCENOOVERNIGHSTAY); form.cmbIntendedManagement().removeRow(ManagementIntention.TYPE5_SEQUENCEOVERNIGHTANDHOME); } defaultIntendedManagement(); }
private void defaultIntendedManagement() { if (form.intAnticipatedStay().getValue() != null && (ElectiveAdmissionType.BOOKED_TYPE12.equals(form.getLocalContext().getAdmissionType()) || ElectiveAdmissionType.ELECTIVE_TYPE11.equals(form.getLocalContext().getAdmissionType()))) { if (form.intAnticipatedStay().getValue() > 1) { form.cmbIntendedManagement().setValue(ManagementIntention.OVERNIGHT); //WDEV-19428 - removed duplicate lookup references } else if (form.intAnticipatedStay().getValue() == 1) { form.cmbIntendedManagement().setValue(ManagementIntention.DAY_CASE); //WDEV-19428 - removed duplicate lookup references } } else form.cmbIntendedManagement().setValue(null); }
private void initialiseIntendedManagement() { //WDEV-18388 if (ElectiveAdmissionType.PLANNED_TYPE13.equals(form.getLocalContext().getAdmissionType())) { form.cmbIntendedManagement().removeRow(ManagementIntention.DAY_CASE); form.cmbIntendedManagement().removeRow(ManagementIntention.OVERNIGHT); form.cmbIntendedManagement().removeRow(ManagementIntention.TYPE1_STAYATLEASTONENIGHT); form.cmbIntendedManagement().removeRow(ManagementIntention.TYPE2_NOTOTSTAY); } else if (ElectiveAdmissionType.BOOKED_TYPE12.equals(form.getLocalContext().getAdmissionType())) { form.cmbIntendedManagement().removeRow(ManagementIntention.DAY_CASE); form.cmbIntendedManagement().removeRow(ManagementIntention.OVERNIGHT); form.cmbIntendedManagement().removeRow(ManagementIntention.TYPE3_SEQUENCEATLEASTONENIGHT); form.cmbIntendedManagement().removeRow(ManagementIntention.TYPE4_SEQUENCENOOVERNIGHSTAY); form.cmbIntendedManagement().removeRow(ManagementIntention.TYPE5_SEQUENCEOVERNIGHTANDHOME); } else if (ElectiveAdmissionType.ELECTIVE_TYPE11.equals(form.getLocalContext().getAdmissionType())) { form.cmbIntendedManagement().removeRow(ManagementIntention.DAY_CASE); form.cmbIntendedManagement().removeRow(ManagementIntention.OVERNIGHT); form.cmbIntendedManagement().removeRow(ManagementIntention.TYPE3_SEQUENCEATLEASTONENIGHT); form.cmbIntendedManagement().removeRow(ManagementIntention.TYPE4_SEQUENCENOOVERNIGHSTAY); form.cmbIntendedManagement().removeRow(ManagementIntention.TYPE5_SEQUENCEOVERNIGHTANDHOME); } defaultIntendedManagement(); }
@Override protected void onCmbIntendedManagementValueChanged() throws PresentationLogicException { if (ManagementIntention.TYPE1_STAYATLEASTONENIGHT.equals(form.cmbIntendedManagement().getValue())) { form.intAnticipatedStay().setValue(1); } }
@Override protected void onCmbIntendedManagementValueChanged() throws PresentationLogicException { if (ManagementIntention.DAY_CASE.equals(form.cmbIntendedManagement().getValue())) { form.intAnticipatedStay().setValue(1); } }