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

项目:AvoinApotti    文件:Logic.java   
public void newInstance() throws PresentationLogicException 
{
    if (allowNew())
    {
        // initalise the screen for a new record
        form.getLocalContext().setSelectedRecord(new ExternalPersonVo());
        form.grdDetails().setValue(null);
        clearInstanceControls();
        form.chkIsActive().setValue(true);

        //set the form mode
        form.setMode(FormMode.EDIT);
        //set any control status specific this form
    }   


}
项目:AvoinApotti    文件:ExternalPersonAdminImpl.java   
public ims.core.vo.ExternalPersonVo saveExternalPerson(ims.core.vo.ExternalPersonVo externalPersonVo) throws ims.domain.exceptions.StaleObjectException
{
    if (!externalPersonVo.isValidated())
    {
        throw new DomainRuntimeException("externalPersonVo VO has not been validated.");
    }
    DomainFactory factory = getDomainFactory();

    externalPersonVo.getName().setUppers();
    ExternalPerson doexternalPersonVo = null;

    doexternalPersonVo = ExternalPersonVoAssembler.extractExternalPerson(factory, externalPersonVo);

    factory.save(doexternalPersonVo);

    return ExternalPersonVoAssembler.create(doexternalPersonVo);
}
项目:openMAXIMS    文件:Logic.java   
public void newInstance() throws PresentationLogicException 
{
    if (allowNew())
    {
        // initalise the screen for a new record
        form.getLocalContext().setSelectedRecord(new ExternalPersonVo());
        form.grdDetails().setValue(null);
        clearInstanceControls();
        form.chkIsActive().setValue(true);

        //set the form mode
        form.setMode(FormMode.EDIT);
        //set any control status specific this form
    }   


}
项目:openMAXIMS    文件:ExternalPersonAdminImpl.java   
public ims.core.vo.ExternalPersonVo saveExternalPerson(ims.core.vo.ExternalPersonVo externalPersonVo) throws ims.domain.exceptions.StaleObjectException
{
    if (!externalPersonVo.isValidated())
    {
        throw new DomainRuntimeException("externalPersonVo VO has not been validated.");
    }
    DomainFactory factory = getDomainFactory();

    externalPersonVo.getName().setUppers();
    ExternalPerson doexternalPersonVo = null;

    doexternalPersonVo = ExternalPersonVoAssembler.extractExternalPerson(factory, externalPersonVo);

    factory.save(doexternalPersonVo);

    return ExternalPersonVoAssembler.create(doexternalPersonVo);
}
项目:openMAXIMS    文件:Logic.java   
public void newInstance() throws PresentationLogicException 
{
    if (allowNew())
    {
        // initalise the screen for a new record
        form.getLocalContext().setSelectedRecord(new ExternalPersonVo());
        form.grdDetails().setValue(null);
        clearInstanceControls();
        form.chkIsActive().setValue(true);

        //set the form mode
        form.setMode(FormMode.EDIT);
        //set any control status specific this form
    }   


}
项目:openMAXIMS    文件:ExternalPersonAdminImpl.java   
public ims.core.vo.ExternalPersonVo saveExternalPerson(ims.core.vo.ExternalPersonVo externalPersonVo) throws ims.domain.exceptions.StaleObjectException
{
    if (!externalPersonVo.isValidated())
    {
        throw new DomainRuntimeException("externalPersonVo VO has not been validated.");
    }
    DomainFactory factory = getDomainFactory();

    externalPersonVo.getName().setUppers();
    ExternalPerson doexternalPersonVo = null;

    doexternalPersonVo = ExternalPersonVoAssembler.extractExternalPerson(factory, externalPersonVo);

    factory.save(doexternalPersonVo);

    return ExternalPersonVoAssembler.create(doexternalPersonVo);
}
项目:openmaxims-linux    文件:Logic.java   
public void newInstance() throws PresentationLogicException 
{
    if (allowNew())
    {
        // initalise the screen for a new record
        form.getLocalContext().setSelectedRecord(new ExternalPersonVo());
        form.grdDetails().setValue(null);
        clearInstanceControls();
        form.chkIsActive().setValue(true);

        //set the form mode
        form.setMode(FormMode.EDIT);
        //set any control status specific this form
    }   


}
项目:openmaxims-linux    文件:ExternalPersonAdminImpl.java   
public ims.core.vo.ExternalPersonVo saveExternalPerson(ims.core.vo.ExternalPersonVo externalPersonVo) throws ims.domain.exceptions.StaleObjectException
{
    if (!externalPersonVo.isValidated())
    {
        throw new DomainRuntimeException("externalPersonVo VO has not been validated.");
    }
    DomainFactory factory = getDomainFactory();

    externalPersonVo.getName().setUppers();
    ExternalPerson doexternalPersonVo = null;

    doexternalPersonVo = ExternalPersonVoAssembler.extractExternalPerson(factory, externalPersonVo);

    factory.save(doexternalPersonVo);

    return ExternalPersonVoAssembler.create(doexternalPersonVo);
}
项目:AvoinApotti    文件:Logic.java   
public boolean save() throws PresentationLogicException 
{
    ExternalPersonVo voExtPer = populateInstanceData();

    //validate Vo
    String[] arrErrors =  voExtPer.validate(validateUIRules()); 

    if(arrErrors != null)
    {
        engine.showErrors(arrErrors);
        return false;
    }

    try
    {
        form.getLocalContext().setSelectedRecord(domain.saveExternalPerson(voExtPer));
        if (voExtPer.getID_ExternalPerson() == null && voExtPer.getNameIsNotNull())
        {
            form.txtSName().setValue(voExtPer.getName().getSurname());
            searchPerson();
        }
    }
    catch(StaleObjectException e)
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        return false;
    }

    return true;
}
项目:openMAXIMS    文件:Logic.java   
public boolean save() throws PresentationLogicException 
{
    ExternalPersonVo voExtPer = populateInstanceData();

    //validate Vo
    String[] arrErrors =  voExtPer.validate(validateUIRules()); 

    if(arrErrors != null)
    {
        engine.showErrors(arrErrors);
        return false;
    }

    try
    {
        form.getLocalContext().setSelectedRecord(domain.saveExternalPerson(voExtPer));
        if (voExtPer.getID_ExternalPerson() == null && voExtPer.getNameIsNotNull())
        {
            form.txtSName().setValue(voExtPer.getName().getSurname());
            searchPerson();
        }
    }
    catch(StaleObjectException e)
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        return false;
    }

    return true;
}
项目:openMAXIMS    文件:Logic.java   
public boolean save() throws PresentationLogicException 
{
    ExternalPersonVo voExtPer = populateInstanceData();

    //validate Vo
    String[] arrErrors =  voExtPer.validate(validateUIRules()); 

    if(arrErrors != null)
    {
        engine.showErrors(arrErrors);
        return false;
    }

    try
    {
        form.getLocalContext().setSelectedRecord(domain.saveExternalPerson(voExtPer));
        if (voExtPer.getID_ExternalPerson() == null && voExtPer.getNameIsNotNull())
        {
            form.txtSName().setValue(voExtPer.getName().getSurname());
            searchPerson();
        }
    }
    catch(StaleObjectException e)
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        return false;
    }

    return true;
}
项目:openmaxims-linux    文件:Logic.java   
public boolean save() throws PresentationLogicException 
{
    ExternalPersonVo voExtPer = populateInstanceData();

    //validate Vo
    String[] arrErrors =  voExtPer.validate(validateUIRules()); 

    if(arrErrors != null)
    {
        engine.showErrors(arrErrors);
        return false;
    }

    try
    {
        form.getLocalContext().setSelectedRecord(domain.saveExternalPerson(voExtPer));
        if (voExtPer.getID_ExternalPerson() == null && voExtPer.getNameIsNotNull())
        {
            form.txtSName().setValue(voExtPer.getName().getSurname());
            searchPerson();
        }
    }
    catch(StaleObjectException e)
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        open();
        return false;
    }

    return true;
}
项目:AvoinApotti    文件:Logic.java   
/**
 * displays the Family History record specified by FamilyHistoryVo
 * @param voFamHist
 */
public void populateInstanceControl(ExternalPersonVo extPerVo)
{
    clearInstanceControls();

    if (null == extPerVo)
        return;

    populateScreenFromData(extPerVo.getName());

    //active
    form.chkIsActive().setValue(extPerVo.getIsActiveIsNotNull()?extPerVo.getIsActive().booleanValue():false);

    //address
    if (extPerVo.getAddressIsNotNull())
    {
        form.txtAddressLine1().setValue(extPerVo.getAddress().getLine1());
        form.txtAddressLine2().setValue(extPerVo.getAddress().getLine2());
        form.txtAddressLine3().setValue(extPerVo.getAddress().getLine3());
        form.txtAddressLine4().setValue(extPerVo.getAddress().getLine4());
        form.txtAddressLine5().setValue(extPerVo.getAddress().getLine5());
        form.txtPostCode().setValue(extPerVo.getAddress().getPostCode());
        form.cmbCounty().setValue(extPerVo.getAddress().getCounty());
    }

    //contacts
    form.grdContacts().getRows().clear();
    if (extPerVo.getCommChannelsIsNotNull())
    {
        if (extPerVo.getCommChannels().size() > 0)
        {
            for (int i = 0; i < extPerVo.getCommChannels().size(); i++)
            {
                GenForm.grdContactsRow row = form.grdContacts().getRows().newRow();
                row.setValue(extPerVo.getCommChannels().get(i));
                row.setcolContactValue(extPerVo.getCommChannels().get(i).getCommValue());
                row.setcolType(extPerVo.getCommChannels().get(i).getChannelType());
            }
        }
    }


}
项目:AvoinApotti    文件:ExternalPersonAdminImpl.java   
public ExternalPersonVo getExternalPerson(ExternalPersonRefVo voRefExternalPerson) 
{
    DomainFactory factory = getDomainFactory();
    return ExternalPersonVoAssembler.create((ExternalPerson)factory.getDomainObject(ExternalPerson.class, voRefExternalPerson.getID_ExternalPerson()));
}
项目:openMAXIMS    文件:Logic.java   
/**
 * displays the Family History record specified by FamilyHistoryVo
 * @param voFamHist
 */
public void populateInstanceControl(ExternalPersonVo extPerVo)
{
    clearInstanceControls();

    if (null == extPerVo)
        return;

    populateScreenFromData(extPerVo.getName());

    //active
    form.chkIsActive().setValue(extPerVo.getIsActiveIsNotNull()?extPerVo.getIsActive().booleanValue():false);

    //address
    if (extPerVo.getAddressIsNotNull())
    {
        form.txtAddressLine1().setValue(extPerVo.getAddress().getLine1());
        form.txtAddressLine2().setValue(extPerVo.getAddress().getLine2());
        form.txtAddressLine3().setValue(extPerVo.getAddress().getLine3());
        form.txtAddressLine4().setValue(extPerVo.getAddress().getLine4());
        form.txtAddressLine5().setValue(extPerVo.getAddress().getLine5());
        form.txtPostCode().setValue(extPerVo.getAddress().getPostCode());
        form.cmbCounty().setValue(extPerVo.getAddress().getCounty());
    }

    //contacts
    form.grdContacts().getRows().clear();
    if (extPerVo.getCommChannelsIsNotNull())
    {
        if (extPerVo.getCommChannels().size() > 0)
        {
            for (int i = 0; i < extPerVo.getCommChannels().size(); i++)
            {
                GenForm.grdContactsRow row = form.grdContacts().getRows().newRow();
                row.setValue(extPerVo.getCommChannels().get(i));
                row.setcolContactValue(extPerVo.getCommChannels().get(i).getCommValue());
                row.setcolType(extPerVo.getCommChannels().get(i).getChannelType());
            }
        }
    }


}
项目:openMAXIMS    文件:ExternalPersonAdminImpl.java   
public ExternalPersonVo getExternalPerson(ExternalPersonRefVo voRefExternalPerson) 
{
    DomainFactory factory = getDomainFactory();
    return ExternalPersonVoAssembler.create((ExternalPerson)factory.getDomainObject(ExternalPerson.class, voRefExternalPerson.getID_ExternalPerson()));
}
项目:openMAXIMS    文件:Logic.java   
/**
 * displays the Family History record specified by FamilyHistoryVo
 * @param voFamHist
 */
public void populateInstanceControl(ExternalPersonVo extPerVo)
{
    clearInstanceControls();

    if (null == extPerVo)
        return;

    populateScreenFromData(extPerVo.getName());

    //active
    form.chkIsActive().setValue(extPerVo.getIsActiveIsNotNull()?extPerVo.getIsActive().booleanValue():false);

    //address
    if (extPerVo.getAddressIsNotNull())
    {
        form.txtAddressLine1().setValue(extPerVo.getAddress().getLine1());
        form.txtAddressLine2().setValue(extPerVo.getAddress().getLine2());
        form.txtAddressLine3().setValue(extPerVo.getAddress().getLine3());
        form.txtAddressLine4().setValue(extPerVo.getAddress().getLine4());
        form.txtAddressLine5().setValue(extPerVo.getAddress().getLine5());
        form.txtPostCode().setValue(extPerVo.getAddress().getPostCode());
        form.cmbCounty().setValue(extPerVo.getAddress().getCounty());
    }

    //contacts
    form.grdContacts().getRows().clear();
    if (extPerVo.getCommChannelsIsNotNull())
    {
        if (extPerVo.getCommChannels().size() > 0)
        {
            for (int i = 0; i < extPerVo.getCommChannels().size(); i++)
            {
                GenForm.grdContactsRow row = form.grdContacts().getRows().newRow();
                row.setValue(extPerVo.getCommChannels().get(i));
                row.setcolContactValue(extPerVo.getCommChannels().get(i).getCommValue());
                row.setcolType(extPerVo.getCommChannels().get(i).getChannelType());
            }
        }
    }


}
项目:openMAXIMS    文件:ExternalPersonAdminImpl.java   
public ExternalPersonVo getExternalPerson(ExternalPersonRefVo voRefExternalPerson) 
{
    DomainFactory factory = getDomainFactory();
    return ExternalPersonVoAssembler.create((ExternalPerson)factory.getDomainObject(ExternalPerson.class, voRefExternalPerson.getID_ExternalPerson()));
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * displays the Family History record specified by FamilyHistoryVo
 * @param voFamHist
 */
public void populateInstanceControl(ExternalPersonVo extPerVo)
{
    clearInstanceControls();

    if (null == extPerVo)
        return;

    populateScreenFromData(extPerVo.getName());

    //active
    form.chkIsActive().setValue(extPerVo.getIsActiveIsNotNull()?extPerVo.getIsActive().booleanValue():false);

    //address
    if (extPerVo.getAddressIsNotNull())
    {
        form.txtAddressLine1().setValue(extPerVo.getAddress().getLine1());
        form.txtAddressLine2().setValue(extPerVo.getAddress().getLine2());
        form.txtAddressLine3().setValue(extPerVo.getAddress().getLine3());
        form.txtAddressLine4().setValue(extPerVo.getAddress().getLine4());
        form.txtAddressLine5().setValue(extPerVo.getAddress().getLine5());
        form.txtPostCode().setValue(extPerVo.getAddress().getPostCode());
        form.cmbCounty().setValue(extPerVo.getAddress().getCounty());
    }

    //contacts
    form.grdContacts().getRows().clear();
    if (extPerVo.getCommChannelsIsNotNull())
    {
        if (extPerVo.getCommChannels().size() > 0)
        {
            for (int i = 0; i < extPerVo.getCommChannels().size(); i++)
            {
                GenForm.grdContactsRow row = form.grdContacts().getRows().newRow();
                row.setValue(extPerVo.getCommChannels().get(i));
                row.setcolContactValue(extPerVo.getCommChannels().get(i).getCommValue());
                row.setcolType(extPerVo.getCommChannels().get(i).getChannelType());
            }
        }
    }


}
项目:openmaxims-linux    文件:ExternalPersonAdminImpl.java   
public ExternalPersonVo getExternalPerson(ExternalPersonRefVo voRefExternalPerson) 
{
    DomainFactory factory = getDomainFactory();
    return ExternalPersonVoAssembler.create((ExternalPerson)factory.getDomainObject(ExternalPerson.class, voRefExternalPerson.getID_ExternalPerson()));
}