Java 类ims.emergency.vo.TrackingAreaVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void addOverallView()
{
    TrackingAreaVo overallView = new TrackingAreaVo();
    overallView.setEDLocation(form.getGlobalContext().Emergency.getEDLocation());
    overallView.setIsOverallView(true);
    overallView.setIsRegistrationArea(false);
    overallView.setAreaDisplayName("Overall");
    overallView.setAreaNameDescription("Overall View");
    overallView.setPatientRefreshRate(50);
    overallView.setStatus(PreActiveActiveInactiveStatus.ACTIVE);

    grdAreaDefinitionRow row = form.grdAreaDefinition().getRows().newRow();
    row.setArea(overallView.getAreaDisplayName());
    //row.setPatRefreshRate(overallView.getPatientRefreshRate().toString());
    row.setStatus(overallView.getStatus().toString());
    row.setBackColor(Color.Beige);
    row.setValue(overallView);

}
项目:AvoinApotti    文件:Logic.java   
private void addRegistrationArea()
{
    TrackingAreaVo registrationArea = new TrackingAreaVo();
    registrationArea.setEDLocation(form.getGlobalContext().Emergency.getEDLocation());
    registrationArea.setIsOverallView(false);
    registrationArea.setIsRegistrationArea(true);
    registrationArea.setAreaDisplayName("Registration");
    registrationArea.setAreaNameDescription("Registration Area");
    registrationArea.setPatientRefreshRate(50);
    registrationArea.setStatus(PreActiveActiveInactiveStatus.ACTIVE);

    grdAreaDefinitionRow row = form.grdAreaDefinition().getRows().newRow();
    row.setArea(registrationArea.getAreaDisplayName());
    //row.setPatRefreshRate(registrationArea.getPatientRefreshRate().toString());
    row.setStatus(registrationArea.getStatus().toString());
    row.setBackColor(Color.Beige);
    row.setValue(registrationArea);

    form.getLocalContext().setRegistrationArea(registrationArea);

}
项目:AvoinApotti    文件:TrackingConfigurationImpl.java   
public TrackingAreaVo saveTrackingArea(TrackingAreaVo trackingAreaToSave) throws StaleObjectException, UniqueKeyViolationException
{
    if (trackingAreaToSave == null )

    throw new CodingRuntimeException("Cannot save TrackingArea if null or get TrackingArea on null ID . ");

    if (!trackingAreaToSave.isValidated())
        throw new CodingRuntimeException("TrackingAreaVo not Validated");
    try
    {
        DomainFactory factory = getDomainFactory();
        TrackingArea trackingArea = TrackingAreaVoAssembler.extractTrackingArea(factory,trackingAreaToSave);

        factory.save(trackingArea);

        return TrackingAreaVoAssembler.create(trackingArea);
    }
    catch (UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("This Tracking Area Configuration Already Exist!", e);
    }

}
项目:AvoinApotti    文件:TrackingConfigurationImpl.java   
public Boolean isStaleTrackingArea(TrackingAreaVo trackingArea)
{
    if (trackingArea == null || trackingArea.getID_TrackingArea() == null)
    {
        throw new CodingRuntimeException("Cannot get TrackingConfigurationVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();
    TrackingArea domainTrackingConfig = (TrackingArea) factory.getDomainObject(TrackingArea.class, trackingArea.getID_TrackingArea());

    if(domainTrackingConfig==null)
    {
        return true;
    }

    if (domainTrackingConfig.getVersion() > trackingArea.getVersion_TrackingArea())
    {
        return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void addOverallView()
{
    TrackingAreaVo overallView = new TrackingAreaVo();
    overallView.setEDLocation(form.getGlobalContext().Emergency.getEDLocation());
    overallView.setIsOverallView(true);
    overallView.setIsRegistrationArea(false);
    overallView.setAreaDisplayName("Overall");
    overallView.setAreaNameDescription("Overall View");
    overallView.setPatientRefreshRate(50);
    overallView.setStatus(PreActiveActiveInactiveStatus.ACTIVE);

    grdAreaDefinitionRow row = form.grdAreaDefinition().getRows().newRow();
    row.setArea(overallView.getAreaDisplayName());
    //row.setPatRefreshRate(overallView.getPatientRefreshRate().toString());
    row.setStatus(overallView.getStatus().toString());
    row.setBackColor(Color.Beige);
    row.setValue(overallView);

}
项目:openMAXIMS    文件:Logic.java   
private void addRegistrationArea()
{
    TrackingAreaVo registrationArea = new TrackingAreaVo();
    registrationArea.setEDLocation(form.getGlobalContext().Emergency.getEDLocation());
    registrationArea.setIsOverallView(false);
    registrationArea.setIsRegistrationArea(true);
    registrationArea.setAreaDisplayName("Registration");
    registrationArea.setAreaNameDescription("Registration Area");
    registrationArea.setPatientRefreshRate(50);
    registrationArea.setStatus(PreActiveActiveInactiveStatus.ACTIVE);

    grdAreaDefinitionRow row = form.grdAreaDefinition().getRows().newRow();
    row.setArea(registrationArea.getAreaDisplayName());
    //row.setPatRefreshRate(registrationArea.getPatientRefreshRate().toString());
    row.setStatus(registrationArea.getStatus().toString());
    row.setBackColor(Color.Beige);
    row.setValue(registrationArea);

    form.getLocalContext().setRegistrationArea(registrationArea);

}
项目:openMAXIMS    文件:TrackingConfigurationImpl.java   
public TrackingAreaVo saveTrackingArea(TrackingAreaVo trackingAreaToSave) throws StaleObjectException, UniqueKeyViolationException
{
    if (trackingAreaToSave == null )

    throw new CodingRuntimeException("Cannot save TrackingArea if null or get TrackingArea on null ID . ");

    if (!trackingAreaToSave.isValidated())
        throw new CodingRuntimeException("TrackingAreaVo not Validated");
    try
    {
        DomainFactory factory = getDomainFactory();
        TrackingArea trackingArea = TrackingAreaVoAssembler.extractTrackingArea(factory,trackingAreaToSave);

        factory.save(trackingArea);

        return TrackingAreaVoAssembler.create(trackingArea);
    }
    catch (UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("This Tracking Area Configuration Already Exist!", e);
    }

}
项目:openMAXIMS    文件:TrackingConfigurationImpl.java   
public Boolean isStaleTrackingArea(TrackingAreaVo trackingArea)
{
    if (trackingArea == null || trackingArea.getID_TrackingArea() == null)
    {
        throw new CodingRuntimeException("Cannot get TrackingConfigurationVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();
    TrackingArea domainTrackingConfig = (TrackingArea) factory.getDomainObject(TrackingArea.class, trackingArea.getID_TrackingArea());

    if(domainTrackingConfig==null)
    {
        return true;
    }

    if (domainTrackingConfig.getVersion() > trackingArea.getVersion_TrackingArea())
    {
        return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void addOverallView()
{
    TrackingAreaVo overallView = new TrackingAreaVo();
    overallView.setEDLocation(form.getGlobalContext().Emergency.getEDLocation());
    overallView.setIsOverallView(true);
    overallView.setIsRegistrationArea(false);
    overallView.setAreaDisplayName("Overall");
    overallView.setAreaNameDescription("Overall View");
    overallView.setPatientRefreshRate(50);
    overallView.setStatus(PreActiveActiveInactiveStatus.ACTIVE);

    grdAreaDefinitionRow row = form.grdAreaDefinition().getRows().newRow();
    row.setArea(overallView.getAreaDisplayName());
    //row.setPatRefreshRate(overallView.getPatientRefreshRate().toString());
    row.setStatus(overallView.getStatus().toString());
    row.setBackColor(Color.Beige);
    row.setValue(overallView);

}
项目:openMAXIMS    文件:Logic.java   
private void addRegistrationArea()
{
    TrackingAreaVo registrationArea = new TrackingAreaVo();
    registrationArea.setEDLocation(form.getGlobalContext().Emergency.getEDLocation());
    registrationArea.setIsOverallView(false);
    registrationArea.setIsRegistrationArea(true);
    registrationArea.setAreaDisplayName("Registration");
    registrationArea.setAreaNameDescription("Registration Area");
    registrationArea.setPatientRefreshRate(50);
    registrationArea.setStatus(PreActiveActiveInactiveStatus.ACTIVE);

    grdAreaDefinitionRow row = form.grdAreaDefinition().getRows().newRow();
    row.setArea(registrationArea.getAreaDisplayName());
    //row.setPatRefreshRate(registrationArea.getPatientRefreshRate().toString());
    row.setStatus(registrationArea.getStatus().toString());
    row.setBackColor(Color.Beige);
    row.setValue(registrationArea);

    form.getLocalContext().setRegistrationArea(registrationArea);

}
项目:openMAXIMS    文件:TrackingConfigurationImpl.java   
public TrackingAreaVo saveTrackingArea(TrackingAreaVo trackingAreaToSave) throws StaleObjectException, UniqueKeyViolationException
{
    if (trackingAreaToSave == null )

    throw new CodingRuntimeException("Cannot save TrackingArea if null or get TrackingArea on null ID . ");

    if (!trackingAreaToSave.isValidated())
        throw new CodingRuntimeException("TrackingAreaVo not Validated");
    try
    {
        DomainFactory factory = getDomainFactory();
        TrackingArea trackingArea = TrackingAreaVoAssembler.extractTrackingArea(factory,trackingAreaToSave);

        factory.save(trackingArea);

        return TrackingAreaVoAssembler.create(trackingArea);
    }
    catch (UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("This Tracking Area Configuration Already Exist!", e);
    }

}
项目:openMAXIMS    文件:TrackingConfigurationImpl.java   
public Boolean isStaleTrackingArea(TrackingAreaVo trackingArea)
{
    if (trackingArea == null || trackingArea.getID_TrackingArea() == null)
    {
        throw new CodingRuntimeException("Cannot get TrackingConfigurationVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();
    TrackingArea domainTrackingConfig = (TrackingArea) factory.getDomainObject(TrackingArea.class, trackingArea.getID_TrackingArea());

    if(domainTrackingConfig==null)
    {
        return true;
    }

    if (domainTrackingConfig.getVersion() > trackingArea.getVersion_TrackingArea())
    {
        return true;
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void addOverallView()
{
    TrackingAreaVo overallView = new TrackingAreaVo();
    overallView.setEDLocation(form.getGlobalContext().Emergency.getEDLocation());
    overallView.setIsOverallView(true);
    overallView.setIsRegistrationArea(false);
    overallView.setAreaDisplayName("Overall");
    overallView.setAreaNameDescription("Overall View");
    overallView.setPatientRefreshRate(50);
    overallView.setStatus(PreActiveActiveInactiveStatus.ACTIVE);

    grdAreaDefinitionRow row = form.grdAreaDefinition().getRows().newRow();
    row.setArea(overallView.getAreaDisplayName());
    //row.setPatRefreshRate(overallView.getPatientRefreshRate().toString());
    row.setStatus(overallView.getStatus().toString());
    row.setBackColor(Color.Beige);
    row.setValue(overallView);

}
项目:openmaxims-linux    文件:Logic.java   
private void addRegistrationArea()
{
    TrackingAreaVo registrationArea = new TrackingAreaVo();
    registrationArea.setEDLocation(form.getGlobalContext().Emergency.getEDLocation());
    registrationArea.setIsOverallView(false);
    registrationArea.setIsRegistrationArea(true);
    registrationArea.setAreaDisplayName("Registration");
    registrationArea.setAreaNameDescription("Registration Area");
    registrationArea.setPatientRefreshRate(50);
    registrationArea.setStatus(PreActiveActiveInactiveStatus.ACTIVE);

    grdAreaDefinitionRow row = form.grdAreaDefinition().getRows().newRow();
    row.setArea(registrationArea.getAreaDisplayName());
    //row.setPatRefreshRate(registrationArea.getPatientRefreshRate().toString());
    row.setStatus(registrationArea.getStatus().toString());
    row.setBackColor(Color.Beige);
    row.setValue(registrationArea);

    form.getLocalContext().setRegistrationArea(registrationArea);

}
项目:openmaxims-linux    文件:TrackingConfigurationImpl.java   
public TrackingAreaVo saveTrackingArea(TrackingAreaVo trackingAreaToSave) throws StaleObjectException, UniqueKeyViolationException
{
    if (trackingAreaToSave == null )

    throw new CodingRuntimeException("Cannot save TrackingArea if null or get TrackingArea on null ID . ");

    if (!trackingAreaToSave.isValidated())
        throw new CodingRuntimeException("TrackingAreaVo not Validated");
    try
    {
        DomainFactory factory = getDomainFactory();
        TrackingArea trackingArea = TrackingAreaVoAssembler.extractTrackingArea(factory,trackingAreaToSave);

        factory.save(trackingArea);

        return TrackingAreaVoAssembler.create(trackingArea);
    }
    catch (UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("This Tracking Area Configuration Already Exist!", e);
    }

}
项目:openmaxims-linux    文件:TrackingConfigurationImpl.java   
public Boolean isStaleTrackingArea(TrackingAreaVo trackingArea)
{
    if (trackingArea == null || trackingArea.getID_TrackingArea() == null)
    {
        throw new CodingRuntimeException("Cannot get TrackingConfigurationVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();
    TrackingArea domainTrackingConfig = (TrackingArea) factory.getDomainObject(TrackingArea.class, trackingArea.getID_TrackingArea());

    if(domainTrackingConfig==null)
    {
        return true;
    }

    if (domainTrackingConfig.getVersion() > trackingArea.getVersion_TrackingArea())
    {
        return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
public void setValue(TrackingAreaVo columnDetails)
{
    if (columnDetails == null)
        return;

    form.getGlobalContext().Emergency.setTrackingAreaWorkspace(domain.getTrackingArea(columnDetails));
    open();
}
项目:AvoinApotti    文件:Logic.java   
private TrackingAreaVo populateDataFromScreen(TrackingAreaVo trackingArea)// latest changes 06.04.2012
{
    ColumnDetailVoCollection collectionToSave = new ColumnDetailVoCollection();
    for (int i = 0; i < form.grdAreaWorkspace().getRows().size(); i++)
    {
        collectionToSave.add(form.grdAreaWorkspace().getRows().get(i).getValue());
    }
    trackingArea.setColumns(collectionToSave);
    return trackingArea;
}
项目:AvoinApotti    文件:Logic.java   
private ColumnDetailVoCollection populateColumnsToBeCopied(TrackingAreaVo trackingArea)
{
    ColumnDetailVoCollection collColumns = trackingArea.getColumns();
    for (int i = 0; i < collColumns.size(); i++)
    {
        collColumns.get(i).setID_ColumnDetail(null);
    }
    return collColumns;
}
项目:AvoinApotti    文件:Logic.java   
private TrackingAreaVo populateTrackingArea(TrackingAreaVo areaToAdd)
{
    TrackingConfigurationVo tracking = form.getLocalContext().getcurrentTrackingConfig();
    TrackingAreaVo areaToSave = new TrackingAreaVo();

    TrackingAreaVoCollection collAreas = tracking.getAreas();
    for (int i = 0; i < collAreas.size(); i++)
    {
        if (collAreas.get(i).getIsOverallView() && areaToAdd.getIsOverallView())
        {
            areaToSave = collAreas.get(i);
            break;
        }
        else if (collAreas.get(i).getIsRegistrationArea() && areaToAdd.getIsRegistrationArea())
        {
            areaToSave = collAreas.get(i);
            break;
        }
    }

    ColumnDetailVoCollection collColumnsToAdd = areaToAdd.getColumns();

    for (int i = 0; i < collColumnsToAdd.size(); i++)
    {
        collColumnsToAdd.get(i).setID_ColumnDetail(null);
        areaToSave.getColumns().add(collColumnsToAdd.get(i));
    }

    return areaToSave;
}
项目:AvoinApotti    文件:Logic.java   
private void addRow(TrackingAreaVo trackArea)
{
    grdToAreaRow row = form.grdToArea().getRows().newRow();
    row.setcolToArea(trackArea.getAreaDisplayName());
    row.setcolSelect(isSendToArea(trackArea));
    row.setValue(trackArea);

}
项目:AvoinApotti    文件:Logic.java   
private boolean isSendToArea(TrackingAreaVo trackArea)
{
    TrackingAreaVoCollection sendToAreas = form.cmbFromArea().getValue().getSendToAreas();
    for (int i=0;i<sendToAreas.size();i++)
    {
        if (sendToAreas.get(i).equals(trackArea))
            return true;
    }
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void populateSendToAreaGrid(TrackingAreaVoCollection tempCollVo)
{
    //form.grdSendToArea().setEnabled(true);
    form.grdSendToArea().getRows().clear();

    if(tempCollVo == null)
        return;

    for(int i = 0; i < tempCollVo.size(); i++)
    {
        TrackingAreaVo tempVo = tempCollVo.get(i);

        //WDEV-15815 //WDEV-17249
        if(tempVo != null && ((tempVo.getAreaType() == null) || form.getGlobalContext().Core.getPatientShort() == null || (form.getGlobalContext().Core.getPatientShort() != null && form.getGlobalContext().Core.getPatientShort().calculateAge() == null) || ( tempVo.getAreaTypeIsNotNull() && (isAdultPatient() && tempVo.getAreaType().equals(ims.emergency.vo.lookups.AreaType.ADULT_ONLY)) || 
                                                                                                    ( ( ! isAdultPatient()) && tempVo.getAreaType().equals(ims.emergency.vo.lookups.AreaType.PAEDIATRIC_ONLY)))))
        {
            grdSendToAreaRow row = form.grdSendToArea().getRows().newRow();
            row.setColumnArea(tempVo.getAreaDisplayName());

            if (tempCollVo.size() == 1) //WDEV-16557
            {
                row.setColumnSelect(Boolean.TRUE);
            }
            else
                row.setColumnSelect(Boolean.FALSE);

            row.setValue(tempVo);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private TrackingAreaVo gettrackingArea()
{
    for(int i = 0;i < form.grdSendToArea().getRows().size();i++)
    {
        GenForm.grdSendToAreaRow row1 = form.grdSendToArea().getRows().get(i); 
        if(row1.getColumnSelect() == true)
            return row1.getValue();
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void populateAreaCombo(ims.emergency.vo.TrackingAreaVoCollection areaDefCollection)
{
    form.cmbArea().clear();
    if( areaDefCollection == null )
        return;
    for( int i = 0; i < areaDefCollection.size();i++ )
    {
        TrackingAreaVo temp = areaDefCollection.get(i);
        if( temp != null && !Boolean.TRUE.equals(temp.getIsRegistrationArea()) && !Boolean.TRUE.equals(temp.getIsOverallView()))
        {
            form.cmbArea().newRow(temp, temp.getAreaDisplayName());
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(TrackingAreaVo trackingAreaToSave)
{
    //FB
    if (trackingAreaToSave==null)
    {  
        return;
    }

    form.txtAreaName().setValue(trackingAreaToSave.getAreaDisplayName());
    form.txtAreaDescription().setValue(trackingAreaToSave.getAreaNameDescription());
    //form.intRefreshRate().setValue(trackingAreaToSave.getPatientRefreshRate());

    if (trackingAreaToSave.getStatus().equals(PreActiveActiveInactiveStatus.ACTIVE))
    {
        form.cmbStatus().removeRow(PreActiveActiveInactiveStatus.PREACTIVE);
    }
    else if (trackingAreaToSave.getStatus().equals(PreActiveActiveInactiveStatus.INACTIVE))
    {
        form.cmbStatus().removeRow(PreActiveActiveInactiveStatus.PREACTIVE);
        form.cmbStatus().removeRow(PreActiveActiveInactiveStatus.ACTIVE);
    }

    form.cmbStatus().setValue(trackingAreaToSave.getStatus());
    form.cmbAreaType().setValue(trackingAreaToSave.getAreaType());

    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
public void setValue(TrackingAreaVo areaSendToConfig)
{
    if (areaSendToConfig == null)
        return;

    form.getGlobalContext().Emergency.setTrackingArea(domain.getTrackingArea(areaSendToConfig));
    open();
}
项目:AvoinApotti    文件:SendToConfigImpl.java   
public TrackingAreaVo getTrackingArea(TrackingAreaRefVo trackingAreaID)
{

    if (trackingAreaID == null || trackingAreaID.getID_TrackingArea() == null)
    {
        throw new CodingRuntimeException("Cannot get TrackingAreaRefVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    TrackingArea domainTrackingArea = (TrackingArea) factory.getDomainObject(TrackingArea.class, trackingAreaID.getID_TrackingArea());

    return TrackingAreaVoAssembler.create(domainTrackingArea);
}
项目:AvoinApotti    文件:TrackingConfigurationImpl.java   
public TrackingAreaVo getTrackingArea(TrackingAreaRefVo trackingArea)
{
    if (trackingArea == null || trackingArea.getID_TrackingArea() == null)
    {
        throw new CodingRuntimeException("Cannot get TrackingAreaRefVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    TrackingArea domainTrackingArea = (TrackingArea) factory.getDomainObject(TrackingArea.class, trackingArea.getID_TrackingArea());

    return TrackingAreaVoAssembler.create(domainTrackingArea);
}
项目:AvoinApotti    文件:CopyAreaWorkspaceConfigImpl.java   
public TrackingConfigurationVo saveTrackinConfig(TrackingConfigurationVo trackingConfigToSave, TrackingAreaVo trackingAreaToSave) throws StaleObjectException
{
    if (trackingConfigToSave == null && trackingAreaToSave==null)

        throw new CodingRuntimeException("Cannot save TrackingConfiguration/TrackingArea if null or get TrackingConfiguration/TrackingArea on null ID . ");

    DomainFactory factory = getDomainFactory();
    if (trackingConfigToSave!=null)
    {
        if (!trackingConfigToSave.isValidated())
            throw new CodingRuntimeException("TrackingConfigurationVo not Validated");


        TrackingConfiguration trackingConfig = TrackingConfigurationVoAssembler.extractTrackingConfiguration(factory,trackingConfigToSave);

        factory.save(trackingConfig);
        return TrackingConfigurationVoAssembler.create(trackingConfig);
    }   
    else if (trackingAreaToSave!=null)
    {   
        if (!trackingAreaToSave.isValidated())
            throw new CodingRuntimeException("TrackingAreaVo not Validated");

        TrackingArea trackingArea = TrackingAreaVoAssembler.extractTrackingArea(factory,trackingAreaToSave);

        factory.save(trackingArea);

        return null;        
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
public void setValue(TrackingAreaVo columnDetails)
{
    if (columnDetails == null)
        return;

    form.getGlobalContext().Emergency.setTrackingAreaWorkspace(domain.getTrackingArea(columnDetails));
    open();
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAreaVo populateDataFromScreen(TrackingAreaVo trackingArea)// latest changes 06.04.2012
{
    ColumnDetailVoCollection collectionToSave = new ColumnDetailVoCollection();
    for (int i = 0; i < form.grdAreaWorkspace().getRows().size(); i++)
    {
        collectionToSave.add(form.grdAreaWorkspace().getRows().get(i).getValue());
    }
    trackingArea.setColumns(collectionToSave);
    return trackingArea;
}
项目:openMAXIMS    文件:Logic.java   
private ColumnDetailVoCollection populateColumnsToBeCopied(TrackingAreaVo trackingArea)
{
    ColumnDetailVoCollection collColumns = trackingArea.getColumns();
    for (int i = 0; i < collColumns.size(); i++)
    {
        collColumns.get(i).setID_ColumnDetail(null);
    }
    return collColumns;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAreaVo populateTrackingArea(TrackingAreaVo areaToAdd)
{
    TrackingConfigurationVo tracking = form.getLocalContext().getcurrentTrackingConfig();
    TrackingAreaVo areaToSave = new TrackingAreaVo();

    TrackingAreaVoCollection collAreas = tracking.getAreas();
    for (int i = 0; i < collAreas.size(); i++)
    {
        if (collAreas.get(i).getIsOverallView() && areaToAdd.getIsOverallView())
        {
            areaToSave = collAreas.get(i);
            break;
        }
        else if (collAreas.get(i).getIsRegistrationArea() && areaToAdd.getIsRegistrationArea())
        {
            areaToSave = collAreas.get(i);
            break;
        }
    }

    ColumnDetailVoCollection collColumnsToAdd = areaToAdd.getColumns();

    for (int i = 0; i < collColumnsToAdd.size(); i++)
    {
        collColumnsToAdd.get(i).setID_ColumnDetail(null);
        areaToSave.getColumns().add(collColumnsToAdd.get(i));
    }

    return areaToSave;
}
项目:openMAXIMS    文件:Logic.java   
private void addRow(TrackingAreaVo trackArea)
{
    grdToAreaRow row = form.grdToArea().getRows().newRow();
    row.setcolToArea(trackArea.getAreaDisplayName());
    row.setcolSelect(isSendToArea(trackArea));
    row.setValue(trackArea);

}
项目:openMAXIMS    文件:Logic.java   
private boolean isSendToArea(TrackingAreaVo trackArea)
{
    TrackingAreaVoCollection sendToAreas = form.cmbFromArea().getValue().getSendToAreas();
    for (int i=0;i<sendToAreas.size();i++)
    {
        if (sendToAreas.get(i).equals(trackArea))
            return true;
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private String createWorkflowConfirmationMessage()
{
    TrackingAreaVo trackingArea = getTrackingAreaWithCubicle();
    String trackingStatus = trackingArea.getWorkflowConfig().getTrackingStatus().getText();
    String trackingAreaName = trackingArea.getAreaDisplayName();

    String confirmationMessage = "Do you wish to apply the '" + trackingStatus + "' workflow for this patient on move to '" + trackingAreaName + "'?";

    return confirmationMessage;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isAssociatedTrackingWorkflowStatusMandatory(TrackingAreaVo trackingArea)
{
    if (trackingArea != null && Boolean.TRUE.equals(trackingArea.getAssociatedWorkflowMandatory()))
        return true;

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean hasAssociatedTrackingWorkflowStatus(TrackingAreaVo trackingArea)
{
    if (trackingArea != null && trackingArea.getWorkflowConfigIsNotNull())
        return true;

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void populateSendToAreaGrid(TrackingAreaVoCollection tempCollVo)
{       
    form.grdSendToArea().getRows().clear();

    if(tempCollVo == null)
        return;

    for(int i = 0; i < tempCollVo.size(); i++)
    {
        TrackingAreaVo tempVo = tempCollVo.get(i);

        //WDEV-15815 //WDEV-17249 //WDEV-22811
        if(tempVo != null && ((tempVo.getAreaType() == null) || form.getGlobalContext().Core.getPatientShort() == null || (form.getGlobalContext().Core.getPatientShort() != null && form.getGlobalContext().Core.getPatientShort().calculateAge() == null) || ( tempVo.getAreaTypeIsNotNull() && (isAdultPatient() && tempVo.getAreaType().equals(ims.emergency.vo.lookups.AreaType.ADULT_ONLY)) || 
                                                                                                    ( ( ! isAdultPatient()) && tempVo.getAreaType().equals(ims.emergency.vo.lookups.AreaType.PAEDIATRIC_ONLY)))))
        {
            grdSendToAreaRow row = form.grdSendToArea().getRows().newRow();
            row.setColumnArea(tempVo.getAreaDisplayName());
            row.setValue(tempVo);

            if (tempCollVo.size() == 1) //WDEV-16557
            {
                form.grdSendToArea().setValue(tempVo);
                setAreaLabel(tempVo);
                populateCubicleRooms(); //WDEV-20005
            }
            else
                form.grdSendToArea().setValue(null);


        }
    }
}