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

项目:AvoinApotti    文件:NursingAdmissionImpl.java   
public void saveSupportNetworkFamily(SupportNetworkFamilyCollection voSupportNetworkFamily) throws StaleObjectException 
{
    //Ensure the value object has been validated
    if (!voSupportNetworkFamily.isValidated())
        throw new DomainRuntimeException("Problems on Admission has not been validated");

    DomainFactory factory = getDomainFactory();
    for(int i=0; i<voSupportNetworkFamily.size(); i++)
    {
        ims.core.clinical.domain.objects.SupportNetworkFamily doSupportNetworkFamily = SupportNetworkFamilyAssembler.extractSupportNetworkFamily(factory, voSupportNetworkFamily.get(i));
        factory.save(doSupportNetworkFamily);
    }

    return;

}
项目:openMAXIMS    文件:NursingAdmissionImpl.java   
public void saveSupportNetworkFamily(SupportNetworkFamilyCollection voSupportNetworkFamily) throws StaleObjectException 
{
    //Ensure the value object has been validated
    if (!voSupportNetworkFamily.isValidated())
        throw new DomainRuntimeException("Problems on Admission has not been validated");

    DomainFactory factory = getDomainFactory();
    for(int i=0; i<voSupportNetworkFamily.size(); i++)
    {
        ims.core.clinical.domain.objects.SupportNetworkFamily doSupportNetworkFamily = SupportNetworkFamilyAssembler.extractSupportNetworkFamily(factory, voSupportNetworkFamily.get(i));
        factory.save(doSupportNetworkFamily);
    }

    return;

}
项目:openMAXIMS    文件:NursingAdmissionImpl.java   
public void saveSupportNetworkFamily(SupportNetworkFamilyCollection voSupportNetworkFamily) throws StaleObjectException 
{
    //Ensure the value object has been validated
    if (!voSupportNetworkFamily.isValidated())
        throw new DomainRuntimeException("Problems on Admission has not been validated");

    DomainFactory factory = getDomainFactory();
    for(int i=0; i<voSupportNetworkFamily.size(); i++)
    {
        ims.core.clinical.domain.objects.SupportNetworkFamily doSupportNetworkFamily = SupportNetworkFamilyAssembler.extractSupportNetworkFamily(factory, voSupportNetworkFamily.get(i));
        factory.save(doSupportNetworkFamily);
    }

    return;

}
项目:openmaxims-linux    文件:NursingAdmissionImpl.java   
public void saveSupportNetworkFamily(SupportNetworkFamilyCollection voSupportNetworkFamily) throws StaleObjectException 
{
    //Ensure the value object has been validated
    if (!voSupportNetworkFamily.isValidated())
        throw new DomainRuntimeException("Problems on Admission has not been validated");

    DomainFactory factory = getDomainFactory();
    for(int i=0; i<voSupportNetworkFamily.size(); i++)
    {
        ims.core.clinical.domain.objects.SupportNetworkFamily doSupportNetworkFamily = SupportNetworkFamilyAssembler.extractSupportNetworkFamily(factory, voSupportNetworkFamily.get(i));
        factory.save(doSupportNetworkFamily);
    }

    return;

}
项目:AvoinApotti    文件:Logic.java   
private void populateFamilySupportGrid()
{
    SupportNetworkFamilyCollection voCollFamily = domain.listSupportNetworkFamily(Boolean.TRUE, form.getGlobalContext().Core.getPatientShort());
    form.getLocalContext().setvoFamilySupportColl(voCollFamily);
    form.getLocalContext().setvoFamilySupportRemovedColl(new SupportNetworkFamilyCollection());

    SupportNetworkFamily voFamily = null;

    GenForm.grdFamilyRow row = null;
    if (voCollFamily == null)
        return;

    for (int i = 0; i < voCollFamily.size(); i++)
    {
        voFamily = voCollFamily.get(i);
        row = form.grdFamily().getRows().newRow();
        row.setColName(voFamily.getCarerName());
        row.setColContact(voFamily.getCarerHomePhone());

        if (voFamily.getCarerRelationship() != null)
            row.setColRelationship(voFamily.getCarerRelationship());


        if (voFamily.getDiscussProgress() == null)
            row.setColProgress(YesNo.NO);               
        else if (voFamily.getDiscussProgress().equals(Boolean.FALSE))
            row.setColProgress(YesNo.NO);
        else if (voFamily.getDiscussProgress().equals(Boolean.TRUE))
            row.setColProgress(YesNo.YES);

        row.setValue(voFamily);
    }
}
项目:AvoinApotti    文件:SupportNetworkFamilyImpl.java   
public ims.core.vo.SupportNetworkFamilyCollection listSupportNetworkFamily(Boolean activeOnly, ims.core.vo.PatientShort patient, Boolean isRieMode)
{

    if(patient == null)
        throw new CodingRuntimeException("Mandatory parameter - Patient not supplied");
    ArrayList<String> names = new ArrayList<String>();
    ArrayList<Comparable> values = new ArrayList<Comparable>();

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from SupportNetworkFamily suppNet ");
    hql.append(" where suppNet.patient.id = :patient");
    names.add("patient");
    values.add(patient.getID_Patient());

    if (activeOnly.equals(Boolean.TRUE))
    {
        if (isRieMode == null || isRieMode) //WDEV-15479
        {
            hql.append(" and suppNet.isCurrentlyActiveFamilySupport = :isActive");
            names.add("isActive");
            values.add(Boolean.TRUE);
        }
        else
        {
            hql.append(" and ((suppNet.isCurrentlyActiveFamilySupport = :isActive and suppNet.isRIE is null ) or (suppNet.isRIE = 1))");
            names.add("isActive");
            values.add(Boolean.TRUE);
        }
    }

    List list = factory.find(hql.toString(), names,values);
    return(SupportNetworkFamilyAssembler.createSupportNetworkFamilyCollectionFromSupportNetworkFamily(list).sort());

}
项目:openMAXIMS    文件:Logic.java   
private void populateFamilySupportGrid()
{
    SupportNetworkFamilyCollection voCollFamily = domain.listSupportNetworkFamily(Boolean.TRUE, form.getGlobalContext().Core.getPatientShort());
    form.getLocalContext().setvoFamilySupportColl(voCollFamily);
    form.getLocalContext().setvoFamilySupportRemovedColl(new SupportNetworkFamilyCollection());

    SupportNetworkFamily voFamily = null;

    GenForm.grdFamilyRow row = null;
    if (voCollFamily == null)
        return;

    for (int i = 0; i < voCollFamily.size(); i++)
    {
        voFamily = voCollFamily.get(i);
        row = form.grdFamily().getRows().newRow();
        row.setColName(voFamily.getCarerName());
        row.setColContact(voFamily.getCarerHomePhone());

        if (voFamily.getCarerRelationship() != null)
            row.setColRelationship(voFamily.getCarerRelationship());


        if (voFamily.getDiscussProgress() == null)
            row.setColProgress(YesNo.NO);               
        else if (voFamily.getDiscussProgress().equals(Boolean.FALSE))
            row.setColProgress(YesNo.NO);
        else if (voFamily.getDiscussProgress().equals(Boolean.TRUE))
            row.setColProgress(YesNo.YES);

        row.setValue(voFamily);
    }
}
项目:openMAXIMS    文件:SupportNetworkFamilyImpl.java   
public ims.core.vo.SupportNetworkFamilyCollection listSupportNetworkFamily(Boolean activeOnly, ims.core.vo.PatientShort patient, Boolean isRieMode)
{

    if(patient == null)
        throw new CodingRuntimeException("Mandatory parameter - Patient not supplied");
    ArrayList<String> names = new ArrayList<String>();
    ArrayList<Comparable> values = new ArrayList<Comparable>();

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from SupportNetworkFamily suppNet ");
    hql.append(" where suppNet.patient.id = :patient");
    names.add("patient");
    values.add(patient.getID_Patient());

    if (activeOnly.equals(Boolean.TRUE))
    {
        if (isRieMode == null || isRieMode) //WDEV-15479
        {
            hql.append(" and suppNet.isCurrentlyActiveFamilySupport = :isActive");
            names.add("isActive");
            values.add(Boolean.TRUE);
        }
        else
        {
            hql.append(" and ((suppNet.isCurrentlyActiveFamilySupport = :isActive and suppNet.isRIE is null ) or (suppNet.isRIE = 1))");
            names.add("isActive");
            values.add(Boolean.TRUE);
        }
    }

    List list = factory.find(hql.toString(), names,values);
    return(SupportNetworkFamilyAssembler.createSupportNetworkFamilyCollectionFromSupportNetworkFamily(list).sort());

}
项目:openMAXIMS    文件:Logic.java   
private void populateFamilySupportGrid()
{
    SupportNetworkFamilyCollection voCollFamily = domain.listSupportNetworkFamily(Boolean.TRUE, form.getGlobalContext().Core.getPatientShort());
    form.getLocalContext().setvoFamilySupportColl(voCollFamily);
    form.getLocalContext().setvoFamilySupportRemovedColl(new SupportNetworkFamilyCollection());

    SupportNetworkFamily voFamily = null;

    GenForm.grdFamilyRow row = null;
    if (voCollFamily == null)
        return;

    for (int i = 0; i < voCollFamily.size(); i++)
    {
        voFamily = voCollFamily.get(i);
        row = form.grdFamily().getRows().newRow();
        row.setColName(voFamily.getCarerName());
        row.setColContact(voFamily.getCarerHomePhone());

        if (voFamily.getCarerRelationship() != null)
            row.setColRelationship(voFamily.getCarerRelationship());


        if (voFamily.getDiscussProgress() == null)
            row.setColProgress(YesNo.NO);               
        else if (voFamily.getDiscussProgress().equals(Boolean.FALSE))
            row.setColProgress(YesNo.NO);
        else if (voFamily.getDiscussProgress().equals(Boolean.TRUE))
            row.setColProgress(YesNo.YES);

        row.setValue(voFamily);
    }
}
项目:openMAXIMS    文件:SupportNetworkFamilyImpl.java   
public ims.core.vo.SupportNetworkFamilyCollection listSupportNetworkFamily(Boolean activeOnly, ims.core.vo.PatientShort patient, Boolean isRieMode)
{

    if(patient == null)
        throw new CodingRuntimeException("Mandatory parameter - Patient not supplied");
    ArrayList<String> names = new ArrayList<String>();
    ArrayList<Comparable> values = new ArrayList<Comparable>();

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from SupportNetworkFamily suppNet ");
    hql.append(" where suppNet.patient.id = :patient");
    names.add("patient");
    values.add(patient.getID_Patient());

    if (activeOnly.equals(Boolean.TRUE))
    {
        if (isRieMode == null || isRieMode) //WDEV-15479
        {
            hql.append(" and suppNet.isCurrentlyActiveFamilySupport = :isActive");
            names.add("isActive");
            values.add(Boolean.TRUE);
        }
        else
        {
            hql.append(" and ((suppNet.isCurrentlyActiveFamilySupport = :isActive and suppNet.isRIE is null ) or (suppNet.isRIE = 1))");
            names.add("isActive");
            values.add(Boolean.TRUE);
        }
    }

    List list = factory.find(hql.toString(), names,values);
    return(SupportNetworkFamilyAssembler.createSupportNetworkFamilyCollectionFromSupportNetworkFamily(list).sort());

}
项目:openmaxims-linux    文件:Logic.java   
private void populateFamilySupportGrid()
{
    SupportNetworkFamilyCollection voCollFamily = domain.listSupportNetworkFamily(Boolean.TRUE, form.getGlobalContext().Core.getPatientShort());
    form.getLocalContext().setvoFamilySupportColl(voCollFamily);
    form.getLocalContext().setvoFamilySupportRemovedColl(new SupportNetworkFamilyCollection());

    SupportNetworkFamily voFamily = null;

    GenForm.grdFamilyRow row = null;
    if (voCollFamily == null)
        return;

    for (int i = 0; i < voCollFamily.size(); i++)
    {
        voFamily = voCollFamily.get(i);
        row = form.grdFamily().getRows().newRow();
        row.setColName(voFamily.getCarerName());
        row.setColContact(voFamily.getCarerHomePhone());

        if (voFamily.getCarerRelationship() != null)
            row.setColRelationship(voFamily.getCarerRelationship());


        if (voFamily.getDiscussProgress() == null)
            row.setColProgress(YesNo.NO);               
        else if (voFamily.getDiscussProgress().equals(Boolean.FALSE))
            row.setColProgress(YesNo.NO);
        else if (voFamily.getDiscussProgress().equals(Boolean.TRUE))
            row.setColProgress(YesNo.YES);

        row.setValue(voFamily);
    }
}
项目:openmaxims-linux    文件:SupportNetworkFamilyImpl.java   
public ims.core.vo.SupportNetworkFamilyCollection listSupportNetworkFamily(Boolean activeOnly, ims.core.vo.PatientShort patient, Boolean isRieMode)
{

    if(patient == null)
        throw new CodingRuntimeException("Mandatory parameter - Patient not supplied");
    ArrayList<String> names = new ArrayList<String>();
    ArrayList<Comparable> values = new ArrayList<Comparable>();

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from SupportNetworkFamily suppNet ");
    hql.append(" where suppNet.patient.id = :patient");
    names.add("patient");
    values.add(patient.getID_Patient());

    if (activeOnly.equals(Boolean.TRUE))
    {
        if (isRieMode == null || isRieMode) //WDEV-15479
        {
            hql.append(" and suppNet.isCurrentlyActiveFamilySupport = :isActive");
            names.add("isActive");
            values.add(Boolean.TRUE);
        }
        else
        {
            hql.append(" and ((suppNet.isCurrentlyActiveFamilySupport = :isActive and suppNet.isRIE is null ) or (suppNet.isRIE = 1))");
            names.add("isActive");
            values.add(Boolean.TRUE);
        }
    }

    List list = factory.find(hql.toString(), names,values);
    return(SupportNetworkFamilyAssembler.createSupportNetworkFamilyCollectionFromSupportNetworkFamily(list).sort());

}
项目:AvoinApotti    文件:NursingAdmissionImpl.java   
public SupportNetworkFamilyCollection listSupportNetworkFamily(Boolean active, PatientShort voPatient) 
{
    ims.core.domain.SupportNetworkFamily famNetwork = (ims.core.domain.SupportNetworkFamily) getDomainImpl(SupportNetworkFamilyImpl.class);
    return famNetwork.listSupportNetworkFamily(active, voPatient, null); //WDEV-15479
}
项目:AvoinApotti    文件:SupportNetworkFamilyImpl.java   
public SupportNetworkFamilyCollection listSupportNetworkFamily(Boolean active, PatientShort patient)
{
    return listSupportNetworkFamily(active, patient, false);
}
项目:AvoinApotti    文件:Logic.java   
public boolean saveFamily(SupportNetworkFamily supportNetworkFamily) throws PresentationLogicException 
{
    if (form.getLocalContext().getSelectedRecord() == null)
        populateBaseDischargeServices();

    SupportNetworkFamily voSupportFamily = null;
    if (supportNetworkFamily == null)
        voSupportFamily = populateFamilyInstanceData();
    else
        voSupportFamily = supportNetworkFamily;

    //WDEV-14594
    String[] errorsFamily = voSupportFamily.validate();
    if(errorsFamily != null)
    {
        engine.showErrors(errorsFamily);
        return false;
    }

    if(isEmergencyContactUsed())
    {
        engine.showMessage("This Emergency contact is already in use.");
        return false;
    }

    if (isMainCarerSavedPreviously(voSupportFamily))
    {
        engine.showMessage("A " + MAIN_CARER + " has already been saved");
        return false;
    }



    if (form.getLocalContext().getSelectedRecord().getSupportNetworkFamily() == null)
        form.getLocalContext().getSelectedRecord().setSupportNetworkFamily(new SupportNetworkFamilyCollection());

    if (form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().indexOf(voSupportFamily) >= 0)
        form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().set(form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().indexOf(voSupportFamily), voSupportFamily);
    else
        form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().add(voSupportFamily);

    String[] arrErrors = form.getLocalContext().getSelectedRecord().validate();
    if(arrErrors != null)
    {
        engine.showErrors(arrErrors);
        return false;
    }
    try 
    {
        form.getLocalContext().setSelectedRecord(domain.saveSupportServices(form.getLocalContext().getSelectedRecord()));
    } 
    catch (StaleObjectException e) 
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        openSupportServices();
        return false;
    }
    return true;
}
项目:openMAXIMS    文件:NursingAdmissionImpl.java   
public SupportNetworkFamilyCollection listSupportNetworkFamily(Boolean active, PatientShort voPatient) 
{
    ims.core.domain.SupportNetworkFamily famNetwork = (ims.core.domain.SupportNetworkFamily) getDomainImpl(SupportNetworkFamilyImpl.class);
    return famNetwork.listSupportNetworkFamily(active, voPatient, null); //WDEV-15479
}
项目:openMAXIMS    文件:SupportNetworkFamilyImpl.java   
public SupportNetworkFamilyCollection listSupportNetworkFamily(Boolean active, PatientShort patient)
{
    return listSupportNetworkFamily(active, patient, false);
}
项目:openMAXIMS    文件:Logic.java   
public boolean saveFamily(SupportNetworkFamily supportNetworkFamily) throws PresentationLogicException 
{
    if (form.getLocalContext().getSelectedRecord() == null)
        populateBaseDischargeServices();

    SupportNetworkFamily voSupportFamily = null;
    if (supportNetworkFamily == null)
        voSupportFamily = populateFamilyInstanceData();
    else
        voSupportFamily = supportNetworkFamily;

    //WDEV-14594
    String[] errorsFamily = voSupportFamily.validate();
    if(errorsFamily != null)
    {
        engine.showErrors(errorsFamily);
        return false;
    }

    if(isEmergencyContactUsed())
    {
        engine.showMessage("This Emergency contact is already in use.");
        return false;
    }

    if (isMainCarerSavedPreviously(voSupportFamily))
    {
        engine.showMessage("A " + MAIN_CARER + " has already been saved");
        return false;
    }



    if (form.getLocalContext().getSelectedRecord().getSupportNetworkFamily() == null)
        form.getLocalContext().getSelectedRecord().setSupportNetworkFamily(new SupportNetworkFamilyCollection());

    if (form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().indexOf(voSupportFamily) >= 0)
        form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().set(form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().indexOf(voSupportFamily), voSupportFamily);
    else
        form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().add(voSupportFamily);

    String[] arrErrors = form.getLocalContext().getSelectedRecord().validate();
    if(arrErrors != null)
    {
        engine.showErrors(arrErrors);
        return false;
    }
    try 
    {
        form.getLocalContext().setSelectedRecord(domain.saveSupportServices(form.getLocalContext().getSelectedRecord()));
    } 
    catch (StaleObjectException e) 
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        openSupportServices();
        return false;
    }
    return true;
}
项目:openMAXIMS    文件:NursingAdmissionImpl.java   
public SupportNetworkFamilyCollection listSupportNetworkFamily(Boolean active, PatientShort voPatient) 
{
    ims.core.domain.SupportNetworkFamily famNetwork = (ims.core.domain.SupportNetworkFamily) getDomainImpl(SupportNetworkFamilyImpl.class);
    return famNetwork.listSupportNetworkFamily(active, voPatient, null); //WDEV-15479
}
项目:openMAXIMS    文件:SupportNetworkFamilyImpl.java   
public SupportNetworkFamilyCollection listSupportNetworkFamily(Boolean active, PatientShort patient)
{
    return listSupportNetworkFamily(active, patient, false);
}
项目:openMAXIMS    文件:Logic.java   
public boolean saveFamily(SupportNetworkFamily supportNetworkFamily) throws PresentationLogicException 
{
    if (form.getLocalContext().getSelectedRecord() == null)
        populateBaseDischargeServices();

    SupportNetworkFamily voSupportFamily = null;
    if (supportNetworkFamily == null)
        voSupportFamily = populateFamilyInstanceData();
    else
        voSupportFamily = supportNetworkFamily;

    //WDEV-14594
    String[] errorsFamily = voSupportFamily.validate();
    if(errorsFamily != null)
    {
        engine.showErrors(errorsFamily);
        return false;
    }

    if(isEmergencyContactUsed())
    {
        engine.showMessage("This Emergency contact is already in use.");
        return false;
    }

    if (isMainCarerSavedPreviously(voSupportFamily))
    {
        engine.showMessage("A " + MAIN_CARER + " has already been saved");
        return false;
    }



    if (form.getLocalContext().getSelectedRecord().getSupportNetworkFamily() == null)
        form.getLocalContext().getSelectedRecord().setSupportNetworkFamily(new SupportNetworkFamilyCollection());

    if (form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().indexOf(voSupportFamily) >= 0)
        form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().set(form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().indexOf(voSupportFamily), voSupportFamily);
    else
        form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().add(voSupportFamily);

    String[] arrErrors = form.getLocalContext().getSelectedRecord().validate();
    if(arrErrors != null)
    {
        engine.showErrors(arrErrors);
        return false;
    }
    try 
    {
        form.getLocalContext().setSelectedRecord(domain.saveSupportServices(form.getLocalContext().getSelectedRecord()));
    } 
    catch (StaleObjectException e) 
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        openSupportServices();
        return false;
    }
    return true;
}
项目:openmaxims-linux    文件:NursingAdmissionImpl.java   
public SupportNetworkFamilyCollection listSupportNetworkFamily(Boolean active, PatientShort voPatient) 
{
    ims.core.domain.SupportNetworkFamily famNetwork = (ims.core.domain.SupportNetworkFamily) getDomainImpl(SupportNetworkFamilyImpl.class);
    return famNetwork.listSupportNetworkFamily(active, voPatient, null); //WDEV-15479
}
项目:openmaxims-linux    文件:SupportNetworkFamilyImpl.java   
public SupportNetworkFamilyCollection listSupportNetworkFamily(Boolean active, PatientShort patient)
{
    return listSupportNetworkFamily(active, patient, false);
}
项目:openmaxims-linux    文件:Logic.java   
public boolean saveFamily(SupportNetworkFamily supportNetworkFamily) throws PresentationLogicException 
{
    if (form.getLocalContext().getSelectedRecord() == null)
        populateBaseDischargeServices();

    SupportNetworkFamily voSupportFamily = null;
    if (supportNetworkFamily == null)
        voSupportFamily = populateFamilyInstanceData();
    else
        voSupportFamily = supportNetworkFamily;

    //WDEV-14594
    String[] errorsFamily = voSupportFamily.validate();
    if(errorsFamily != null)
    {
        engine.showErrors(errorsFamily);
        return false;
    }

    if(isEmergencyContactUsed())
    {
        engine.showMessage("This Emergency contact is already in use.");
        return false;
    }

    if (isMainCarerSavedPreviously(voSupportFamily))
    {
        engine.showMessage("A " + MAIN_CARER + " has already been saved");
        return false;
    }



    if (form.getLocalContext().getSelectedRecord().getSupportNetworkFamily() == null)
        form.getLocalContext().getSelectedRecord().setSupportNetworkFamily(new SupportNetworkFamilyCollection());

    if (form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().indexOf(voSupportFamily) >= 0)
        form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().set(form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().indexOf(voSupportFamily), voSupportFamily);
    else
        form.getLocalContext().getSelectedRecord().getSupportNetworkFamily().add(voSupportFamily);

    String[] arrErrors = form.getLocalContext().getSelectedRecord().validate();
    if(arrErrors != null)
    {
        engine.showErrors(arrErrors);
        return false;
    }
    try 
    {
        form.getLocalContext().setSelectedRecord(domain.saveSupportServices(form.getLocalContext().getSelectedRecord()));
    } 
    catch (StaleObjectException e) 
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        openSupportServices();
        return false;
    }
    return true;
}