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

项目:AvoinApotti    文件:Logic.java   
private void populateInvestigationDetails(InvestigationsVo vo) 
{
    if(vo != null)
    {
        form.getLocalContext().setvoInvestigation(vo);
        form.btnUpdate().setEnabled(true);
        form.btnUpdate().isEnabled();
        form.btnUpdate().isVisible();


        if (vo.getAuthoringInformationIsNotNull())
            form.customControlAuthoringInfo().setValue(vo.getAuthoringInformation());

        if (vo.getInvestigation() != null)
            form.cmbInvestigationName().setValue(vo.getInvestigation());
        if (vo.getDateComplete() != null)
            form.dteComplete().setValue(vo.getDateComplete());
        if (vo.getDateResult() != null)
            form.dteResult().setValue(vo.getDateResult());
        if (vo.getResultDetails() != null)
            form.textBoxResult().setValue(vo.getResultDetails());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateInvestigationDetails(InvestigationsVo vo) 
{
    if(vo != null)
    {
        form.getLocalContext().setvoInvestigation(vo);
        form.btnUpdate().setEnabled(true);
        form.btnUpdate().isEnabled();
        form.btnUpdate().isVisible();


        if (vo.getAuthoringInformationIsNotNull())
            form.customControlAuthoringInfo().setValue(vo.getAuthoringInformation());

        if (vo.getInvestigation() != null)
            form.cmbInvestigationName().setValue(vo.getInvestigation());
        if (vo.getDateComplete() != null)
            form.dteComplete().setValue(vo.getDateComplete());
        if (vo.getDateResult() != null)
            form.dteResult().setValue(vo.getDateResult());
        if (vo.getResultDetails() != null)
            form.textBoxResult().setValue(vo.getResultDetails());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateInvestigationDetails(InvestigationsVo vo) 
{
    if(vo != null)
    {
        form.getLocalContext().setvoInvestigation(vo);
        form.btnUpdate().setEnabled(true);
        form.btnUpdate().isEnabled();
        form.btnUpdate().isVisible();


        if (vo.getAuthoringInformationIsNotNull())
            form.customControlAuthoringInfo().setValue(vo.getAuthoringInformation());

        if (vo.getInvestigation() != null)
            form.cmbInvestigationName().setValue(vo.getInvestigation());
        if (vo.getDateComplete() != null)
            form.dteComplete().setValue(vo.getDateComplete());
        if (vo.getDateResult() != null)
            form.dteResult().setValue(vo.getDateResult());
        if (vo.getResultDetails() != null)
            form.textBoxResult().setValue(vo.getResultDetails());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateInvestigationDetails(InvestigationsVo vo) 
{
    if(vo != null)
    {
        form.getLocalContext().setvoInvestigation(vo);
        form.btnUpdate().setEnabled(true);
        form.btnUpdate().isEnabled();
        form.btnUpdate().isVisible();


        if (vo.getAuthoringInformationIsNotNull())
            form.customControlAuthoringInfo().setValue(vo.getAuthoringInformation());

        if (vo.getInvestigation() != null)
            form.cmbInvestigationName().setValue(vo.getInvestigation());
        if (vo.getDateComplete() != null)
            form.dteComplete().setValue(vo.getDateComplete());
        if (vo.getDateResult() != null)
            form.dteResult().setValue(vo.getDateResult());
        if (vo.getResultDetails() != null)
            form.textBoxResult().setValue(vo.getResultDetails());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData() 
{
    InvestigationsVoCollection voColl = new InvestigationsVoCollection();
    form.grdInvestigations().getRows().clear();
    clearScreen();

    voColl = domain.listInvestigation((CareContextRefVo) form.recbrOPDInvestigations().getValue());

    if (voColl == null || voColl.size() <= 0)
        return;

    GenForm.grdInvestigationsRow row = null;
    for(int i=0;i<voColl.size();i++)
    {
        InvestigationsVo voInvestigation = voColl.get(i);
        row = form.grdInvestigations().getRows().newRow();

        row.setValue(voColl.get(i));
        if(voInvestigation.getInvestigation() != null)
            row.setColInvestigation(voInvestigation.getInvestigation().toString());
        if(voInvestigation.getDateComplete() != null)
            row.setColDateComplete(voInvestigation.getDateComplete());
        if(voInvestigation.getDateResult() != null)
            row.setColDateResult(voInvestigation.getDateResult());
        if(voInvestigation.getResultDetails() != null)
            row.setColResult(voInvestigation.getResultDetails().toString());
    }
}
项目:AvoinApotti    文件:InvestigationsImpl.java   
public InvestigationsVo saveInvestigationDetails(InvestigationsVo investigations) throws StaleObjectException
{
    if (!investigations.isValidated())
    {
        throw new DomainRuntimeException("Investigation has not been validated");
    }
    DomainFactory factory = getDomainFactory();

    Investigations doInvestigation = InvestigationsVoAssembler.extractInvestigations(factory, investigations);

    factory.save(doInvestigation);

    return InvestigationsVoAssembler.create(doInvestigation);
}
项目:AvoinApotti    文件:InvestigationsImpl.java   
public InvestigationsVo getInvestigation(InvestigationsRefVo investigationId) 
{
    if(investigationId == null || !investigationId.getID_InvestigationsIsNotNull())
        throw new CodingRuntimeException("Can not get Investigation on null Id.");

    return InvestigationsVoAssembler.create((Investigations) getDomainFactory().getDomainObject(Investigations.class, investigationId.getID_Investigations()));
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData() 
{
    InvestigationsVoCollection voColl = new InvestigationsVoCollection();
    form.grdInvestigations().getRows().clear();
    clearScreen();

    voColl = domain.listInvestigation((CareContextRefVo) form.recbrOPDInvestigations().getValue());

    if (voColl == null || voColl.size() <= 0)
        return;

    GenForm.grdInvestigationsRow row = null;
    for(int i=0;i<voColl.size();i++)
    {
        InvestigationsVo voInvestigation = voColl.get(i);
        row = form.grdInvestigations().getRows().newRow();

        row.setValue(voColl.get(i));
        if(voInvestigation.getInvestigation() != null)
            row.setColInvestigation(voInvestigation.getInvestigation().toString());
        if(voInvestigation.getDateComplete() != null)
            row.setColDateComplete(voInvestigation.getDateComplete());
        if(voInvestigation.getDateResult() != null)
            row.setColDateResult(voInvestigation.getDateResult());
        if(voInvestigation.getResultDetails() != null)
            row.setColResult(voInvestigation.getResultDetails().toString());
    }
}
项目:openMAXIMS    文件:InvestigationsImpl.java   
public InvestigationsVo saveInvestigationDetails(InvestigationsVo investigations) throws StaleObjectException
{
    if (!investigations.isValidated())
    {
        throw new DomainRuntimeException("Investigation has not been validated");
    }
    DomainFactory factory = getDomainFactory();

    Investigations doInvestigation = InvestigationsVoAssembler.extractInvestigations(factory, investigations);

    factory.save(doInvestigation);

    return InvestigationsVoAssembler.create(doInvestigation);
}
项目:openMAXIMS    文件:InvestigationsImpl.java   
public InvestigationsVo getInvestigation(InvestigationsRefVo investigationId) 
{
    if(investigationId == null || !investigationId.getID_InvestigationsIsNotNull())
        throw new CodingRuntimeException("Can not get Investigation on null Id.");

    return InvestigationsVoAssembler.create((Investigations) getDomainFactory().getDomainObject(Investigations.class, investigationId.getID_Investigations()));
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData() 
{
    InvestigationsVoCollection voColl = new InvestigationsVoCollection();
    form.grdInvestigations().getRows().clear();
    clearScreen();

    voColl = domain.listInvestigation((CareContextRefVo) form.recbrOPDInvestigations().getValue());

    if (voColl == null || voColl.size() <= 0)
        return;

    GenForm.grdInvestigationsRow row = null;
    for(int i=0;i<voColl.size();i++)
    {
        InvestigationsVo voInvestigation = voColl.get(i);
        row = form.grdInvestigations().getRows().newRow();

        row.setValue(voColl.get(i));
        if(voInvestigation.getInvestigation() != null)
            row.setColInvestigation(voInvestigation.getInvestigation().toString());
        if(voInvestigation.getDateComplete() != null)
            row.setColDateComplete(voInvestigation.getDateComplete());
        if(voInvestigation.getDateResult() != null)
            row.setColDateResult(voInvestigation.getDateResult());
        if(voInvestigation.getResultDetails() != null)
            row.setColResult(voInvestigation.getResultDetails().toString());
    }
}
项目:openMAXIMS    文件:InvestigationsImpl.java   
public InvestigationsVo saveInvestigationDetails(InvestigationsVo investigations) throws StaleObjectException
{
    if (!investigations.isValidated())
    {
        throw new DomainRuntimeException("Investigation has not been validated");
    }
    DomainFactory factory = getDomainFactory();

    Investigations doInvestigation = InvestigationsVoAssembler.extractInvestigations(factory, investigations);

    factory.save(doInvestigation);

    return InvestigationsVoAssembler.create(doInvestigation);
}
项目:openMAXIMS    文件:InvestigationsImpl.java   
public InvestigationsVo getInvestigation(InvestigationsRefVo investigationId) 
{
    if(investigationId == null || !investigationId.getID_InvestigationsIsNotNull())
        throw new CodingRuntimeException("Can not get Investigation on null Id.");

    return InvestigationsVoAssembler.create((Investigations) getDomainFactory().getDomainObject(Investigations.class, investigationId.getID_Investigations()));
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData() 
{
    InvestigationsVoCollection voColl = new InvestigationsVoCollection();
    form.grdInvestigations().getRows().clear();
    clearScreen();

    voColl = domain.listInvestigation((CareContextRefVo) form.recbrOPDInvestigations().getValue());

    if (voColl == null || voColl.size() <= 0)
        return;

    GenForm.grdInvestigationsRow row = null;
    for(int i=0;i<voColl.size();i++)
    {
        InvestigationsVo voInvestigation = voColl.get(i);
        row = form.grdInvestigations().getRows().newRow();

        row.setValue(voColl.get(i));
        if(voInvestigation.getInvestigation() != null)
            row.setColInvestigation(voInvestigation.getInvestigation().toString());
        if(voInvestigation.getDateComplete() != null)
            row.setColDateComplete(voInvestigation.getDateComplete());
        if(voInvestigation.getDateResult() != null)
            row.setColDateResult(voInvestigation.getDateResult());
        if(voInvestigation.getResultDetails() != null)
            row.setColResult(voInvestigation.getResultDetails().toString());
    }
}
项目:openmaxims-linux    文件:InvestigationsImpl.java   
public InvestigationsVo saveInvestigationDetails(InvestigationsVo investigations) throws StaleObjectException
{
    if (!investigations.isValidated())
    {
        throw new DomainRuntimeException("Investigation has not been validated");
    }
    DomainFactory factory = getDomainFactory();

    Investigations doInvestigation = InvestigationsVoAssembler.extractInvestigations(factory, investigations);

    factory.save(doInvestigation);

    return InvestigationsVoAssembler.create(doInvestigation);
}
项目:openmaxims-linux    文件:InvestigationsImpl.java   
public InvestigationsVo getInvestigation(InvestigationsRefVo investigationId) 
{
    if(investigationId == null || !investigationId.getID_InvestigationsIsNotNull())
        throw new CodingRuntimeException("Can not get Investigation on null Id.");

    return InvestigationsVoAssembler.create((Investigations) getDomainFactory().getDomainObject(Investigations.class, investigationId.getID_Investigations()));
}