Java 类ims.core.vo.lookups.ManagementIntention 实例源码

项目:AvoinApotti    文件:Logic.java   
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);
}
项目:openMAXIMS    文件:Logic.java   
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();

}
项目:openMAXIMS    文件:Logic.java   
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);
}
项目:openMAXIMS    文件:Logic.java   
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);
}
项目:AvoinApotti    文件:Logic.java   
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();

}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onCmbIntendedManagementValueChanged() throws PresentationLogicException
{
    if (ManagementIntention.TYPE1_STAYATLEASTONENIGHT.equals(form.cmbIntendedManagement().getValue()))
    {
        form.intAnticipatedStay().setValue(1);
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCmbIntendedManagementValueChanged() throws PresentationLogicException
{
    if (ManagementIntention.DAY_CASE.equals(form.cmbIntendedManagement().getValue())) 
    {
        form.intAnticipatedStay().setValue(1);
    }
}
项目:openMAXIMS    文件:Logic.java   
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();

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCmbIntendedManagementValueChanged() throws PresentationLogicException
{
    if (ManagementIntention.TYPE1_STAYATLEASTONENIGHT.equals(form.cmbIntendedManagement().getValue()))
    {
        form.intAnticipatedStay().setValue(1);
    }
}