Java 类ims.core.vo.PendingDischargesVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void refreshSearchCriteria() 
{
    PendingDischargesVo pendingDischarge = form.getGlobalContext().STHK.getPendingDischargesListFilter();
    //We fill all the criteria search elements
    if (pendingDischarge!=null)
    {
        if (pendingDischarge.getTimeUnitsIsNotNull())
            form.cmbTime().setValue(pendingDischarge.getTimeUnits());
        if (pendingDischarge.getNumberOfTimeUnitsIsNotNull())
            form.int1().setValue(pendingDischarge.getNumberOfTimeUnits());
        if (pendingDischarge.getForenameIsNotNull())
            form.txtForeName().setValue(pendingDischarge.getForename());
        if (pendingDischarge.getSurnameIsNotNull())
            form.txtSurname().setValue(pendingDischarge.getSurname());
        if (pendingDischarge.getHospitalNumberIsNotNull())
            form.txtIDNum().setValue(pendingDischarge.getHospitalNumber());
        if (pendingDischarge.getIDTypeIsNotNull())
            form.cmbIDType().setValue(pendingDischarge.getIDType());
        form.cmbCurrentHospital().setValue(null);
        form.cmbCurrentWard().setValue(null);
        if (pendingDischarge.getCurrentHospitalIsNotNull())
            form.cmbCurrentHospital().setValue(pendingDischarge.getCurrentHospital());      
        loadWards();
        if (pendingDischarge.getWardIsNotNull())
            form.cmbCurrentWard().setValue(pendingDischarge.getWard());

    }
}
项目:openMAXIMS    文件:Logic.java   
private void refreshSearchCriteria() 
{
    PendingDischargesVo pendingDischarge = form.getGlobalContext().STHK.getPendingDischargesListFilter();
    //We fill all the criteria search elements
    if (pendingDischarge != null)
    {
        if (pendingDischarge.getTimeUnitsIsNotNull())
            form.cmbTime().setValue(pendingDischarge.getTimeUnits());
        if (pendingDischarge.getNumberOfTimeUnitsIsNotNull())
            form.int1().setValue(pendingDischarge.getNumberOfTimeUnits());
        if (pendingDischarge.getForenameIsNotNull())
            form.txtForeName().setValue(pendingDischarge.getForename());
        if (pendingDischarge.getSurnameIsNotNull())
            form.txtSurname().setValue(pendingDischarge.getSurname());
        if (pendingDischarge.getHospitalNumberIsNotNull())
            form.txtIDNum().setValue(pendingDischarge.getHospitalNumber());
        if (pendingDischarge.getIDTypeIsNotNull())
            form.cmbIDType().setValue(pendingDischarge.getIDType());
        form.cmbCurrentHospital().setValue(null);
        form.cmbCurrentWard().setValue(null);
        if (pendingDischarge.getCurrentHospitalIsNotNull())
            form.cmbCurrentHospital().setValue(pendingDischarge.getCurrentHospital());      
        loadWards();
        if (pendingDischarge.getWardIsNotNull())
            form.cmbCurrentWard().setValue(pendingDischarge.getWard());
        form.chkConfirmed().setValue(Boolean.TRUE.equals(pendingDischarge.getConfirmedDischarge()));
        form.chkEstDischarge().setValue(Boolean.TRUE.equals(pendingDischarge.getPotentialDischarge()));
        form.chkReadytoLeave().setValue(Boolean.TRUE.equals(pendingDischarge.getReadyToLeave()));

    }
}
项目:openMAXIMS    文件:Logic.java   
private void refreshSearchCriteria() 
{
    PendingDischargesVo pendingDischarge = form.getGlobalContext().STHK.getPendingDischargesListFilter();
    //We fill all the criteria search elements
    if (pendingDischarge!=null)
    {
        if (pendingDischarge.getTimeUnitsIsNotNull())
            form.cmbTime().setValue(pendingDischarge.getTimeUnits());
        if (pendingDischarge.getNumberOfTimeUnitsIsNotNull())
            form.int1().setValue(pendingDischarge.getNumberOfTimeUnits());
        if (pendingDischarge.getForenameIsNotNull())
            form.txtForeName().setValue(pendingDischarge.getForename());
        if (pendingDischarge.getSurnameIsNotNull())
            form.txtSurname().setValue(pendingDischarge.getSurname());
        if (pendingDischarge.getHospitalNumberIsNotNull())
            form.txtIDNum().setValue(pendingDischarge.getHospitalNumber());
        if (pendingDischarge.getIDTypeIsNotNull())
            form.cmbIDType().setValue(pendingDischarge.getIDType());
        form.cmbCurrentHospital().setValue(null);
        form.cmbCurrentWard().setValue(null);
        if (pendingDischarge.getCurrentHospitalIsNotNull())
            form.cmbCurrentHospital().setValue(pendingDischarge.getCurrentHospital());      
        loadWards();
        if (pendingDischarge.getWardIsNotNull())
            form.cmbCurrentWard().setValue(pendingDischarge.getWard());

    }
}
项目:openmaxims-linux    文件:Logic.java   
private void refreshSearchCriteria() 
{
    PendingDischargesVo pendingDischarge = form.getGlobalContext().STHK.getPendingDischargesListFilter();
    //We fill all the criteria search elements
    if (pendingDischarge!=null)
    {
        if (pendingDischarge.getTimeUnitsIsNotNull())
            form.cmbTime().setValue(pendingDischarge.getTimeUnits());
        if (pendingDischarge.getNumberOfTimeUnitsIsNotNull())
            form.int1().setValue(pendingDischarge.getNumberOfTimeUnits());
        if (pendingDischarge.getForenameIsNotNull())
            form.txtForeName().setValue(pendingDischarge.getForename());
        if (pendingDischarge.getSurnameIsNotNull())
            form.txtSurname().setValue(pendingDischarge.getSurname());
        if (pendingDischarge.getHospitalNumberIsNotNull())
            form.txtIDNum().setValue(pendingDischarge.getHospitalNumber());
        if (pendingDischarge.getIDTypeIsNotNull())
            form.cmbIDType().setValue(pendingDischarge.getIDType());
        form.cmbCurrentHospital().setValue(null);
        form.cmbCurrentWard().setValue(null);
        if (pendingDischarge.getCurrentHospitalIsNotNull())
            form.cmbCurrentHospital().setValue(pendingDischarge.getCurrentHospital());      
        loadWards();
        if (pendingDischarge.getWardIsNotNull())
            form.cmbCurrentWard().setValue(pendingDischarge.getWard());

    }
}
项目:openMAXIMS    文件:PendingDischargesImpl.java   
private boolean atLeastTwoPendingDischargesTypeTicked(PendingDischargesVo dischargeData)
{
    return ((Boolean.TRUE.equals(dischargeData.getPotentialDischarge()) && Boolean.TRUE.equals(dischargeData.getConfirmedDischarge())) || (Boolean.TRUE.equals(dischargeData.getPotentialDischarge()) && Boolean.TRUE.equals(dischargeData.getReadyToLeave())) || (Boolean.TRUE.equals(dischargeData.getConfirmedDischarge()) && Boolean.TRUE.equals(dischargeData.getReadyToLeave())));
}