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

项目:AvoinApotti    文件:Logic.java   
private void populateAdviceLeafletsDetails(AdviceLeafletsVo vo) 
{
    if(vo != null)
    {
        //form.getLocalContext().setVoAdviceLeaflets(vo);    WDEV-7044

        Hcp authoringHCP = vo.getAuthoringHCP();
        if (authoringHCP != null)
        {
            form.qmbRecordingHCP().newRow(authoringHCP, authoringHCP.toString());
            form.qmbRecordingHCP().setValue(authoringHCP);
        }
        form.cmbLeaflet().setValue(vo.getAdviceLeaflet());
        form.txtVersionNo().setValue(vo.getLeafletVersion());
        form.dteGiven().setValue(vo.getDateGiven());
        if (vo.getAuthoringDateTime() != null)
        {
            form.dteRecorded().setValue(vo.getAuthoringDateTime().getDate());
            form.tmeRecorded().setValue(vo.getAuthoringDateTime().getTime());
        }
        form.cmbGivenTo().setValue(vo.getGivenTo());
        form.txtGivenToName().setValue(vo.getGivenToName());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateAdviceLeafletsDetails(AdviceLeafletsVo vo) 
{
    if(vo != null)
    {
        //form.getLocalContext().setVoAdviceLeaflets(vo);    WDEV-7044

        Hcp authoringHCP = vo.getAuthoringHCP();
        if (authoringHCP != null)
        {
            form.qmbRecordingHCP().newRow(authoringHCP, authoringHCP.toString());
            form.qmbRecordingHCP().setValue(authoringHCP);
        }
        form.cmbLeaflet().setValue(vo.getAdviceLeaflet());
        form.txtVersionNo().setValue(vo.getLeafletVersion());
        form.dteGiven().setValue(vo.getDateGiven());
        if (vo.getAuthoringDateTime() != null)
        {
            form.dteRecorded().setValue(vo.getAuthoringDateTime().getDate());
            form.tmeRecorded().setValue(vo.getAuthoringDateTime().getTime());
        }
        form.cmbGivenTo().setValue(vo.getGivenTo());
        form.txtGivenToName().setValue(vo.getGivenToName());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateAdviceLeafletsDetails(AdviceLeafletsVo vo) 
{
    if(vo != null)
    {
        //form.getLocalContext().setVoAdviceLeaflets(vo);    WDEV-7044

        Hcp authoringHCP = vo.getAuthoringHCP();
        if (authoringHCP != null)
        {
            form.qmbRecordingHCP().newRow(authoringHCP, authoringHCP.toString());
            form.qmbRecordingHCP().setValue(authoringHCP);
        }
        form.cmbLeaflet().setValue(vo.getAdviceLeaflet());
        form.txtVersionNo().setValue(vo.getLeafletVersion());
        form.dteGiven().setValue(vo.getDateGiven());
        if (vo.getAuthoringDateTime() != null)
        {
            form.dteRecorded().setValue(vo.getAuthoringDateTime().getDate());
            form.tmeRecorded().setValue(vo.getAuthoringDateTime().getTime());
        }
        form.cmbGivenTo().setValue(vo.getGivenTo());
        form.txtGivenToName().setValue(vo.getGivenToName());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateAdviceLeafletsDetails(AdviceLeafletsVo vo) 
{
    if(vo != null)
    {
        //form.getLocalContext().setVoAdviceLeaflets(vo);    WDEV-7044

        Hcp authoringHCP = vo.getAuthoringHCP();
        if (authoringHCP != null)
        {
            form.qmbRecordingHCP().newRow(authoringHCP, authoringHCP.toString());
            form.qmbRecordingHCP().setValue(authoringHCP);
        }
        form.cmbLeaflet().setValue(vo.getAdviceLeaflet());
        form.txtVersionNo().setValue(vo.getLeafletVersion());
        form.dteGiven().setValue(vo.getDateGiven());
        if (vo.getAuthoringDateTime() != null)
        {
            form.dteRecorded().setValue(vo.getAuthoringDateTime().getDate());
            form.tmeRecorded().setValue(vo.getAuthoringDateTime().getTime());
        }
        form.cmbGivenTo().setValue(vo.getGivenTo());
        form.txtGivenToName().setValue(vo.getGivenToName());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateAdviceLeafletsGrid() 
{
    AdviceLeafletsVoCollection voColl = domain.listAdviceLeaflets(form.getGlobalContext().Core.getCurrentCareContext());

    if(form.getLocalContext().getVoAdviceLeafletsIsNotNull())
        form.getLocalContext().setVoAdviceLeaflets(domain.getAdviceLeaflets(form.getLocalContext().getVoAdviceLeaflets()));//WDEV-7044

    if (voColl != null)
    {
        GenForm.grdLeafletsRow row = null;
        for(int i=0;i<voColl.size();i++)
        {
            row = form.grdLeaflets().getRows().newRow();
            AdviceLeafletsVo voAdviceLeaflets = voColl.get(i);
            row.setValue(voAdviceLeaflets);
            if(voAdviceLeaflets.getAdviceLeaflet() != null)
                row.setcolAdvLeaflet(voAdviceLeaflets.getAdviceLeaflet().toString());
            if(voAdviceLeaflets.getLeafletVersion() != null)
                row.setcolVersionNo(voAdviceLeaflets.getLeafletVersion().toString());
            if(voAdviceLeaflets.getDateGiven() != null)
                row.setcolDateGiven(voAdviceLeaflets.getDateGiven().toString());
            if(voAdviceLeaflets.getGivenTo() != null)
                row.setcolGivenTo(voAdviceLeaflets.getGivenTo().toString());

            if(voAdviceLeaflets.equals(form.getLocalContext().getVoAdviceLeaflets()))   //WDEV-7044
            {
                form.grdLeaflets().setValue(voAdviceLeaflets);
            }
        }
        if(form.grdLeaflets().getValue() != null)
            refreshDetails();
    }
}
项目:AvoinApotti    文件:AdviceLeafletsImpl.java   
public AdviceLeafletsVo getAdviceLeaflets(AdviceLeafletsRefVo record)
{
    if(record == null || record.getID_AdviceLeaflets() == null)
        throw new CodingRuntimeException("Can not get AdviceLeaflet on null Id.");

    DomainFactory factory = getDomainFactory();
    AdviceLeaflets doLeaflet = (AdviceLeaflets) factory.getDomainObject(AdviceLeaflets.class, record.getID_AdviceLeaflets());

    return AdviceLeafletsVoAssembler.create(doLeaflet);
}
项目:openMAXIMS    文件:Logic.java   
private void populateAdviceLeafletsGrid() 
{
    AdviceLeafletsVoCollection voColl = domain.listAdviceLeaflets(form.getGlobalContext().Core.getCurrentCareContext());

    if(form.getLocalContext().getVoAdviceLeafletsIsNotNull())
        form.getLocalContext().setVoAdviceLeaflets(domain.getAdviceLeaflets(form.getLocalContext().getVoAdviceLeaflets()));//WDEV-7044

    if (voColl != null)
    {
        GenForm.grdLeafletsRow row = null;
        for(int i=0;i<voColl.size();i++)
        {
            row = form.grdLeaflets().getRows().newRow();
            AdviceLeafletsVo voAdviceLeaflets = voColl.get(i);
            row.setValue(voAdviceLeaflets);
            if(voAdviceLeaflets.getAdviceLeaflet() != null)
                row.setcolAdvLeaflet(voAdviceLeaflets.getAdviceLeaflet().toString());
            if(voAdviceLeaflets.getLeafletVersion() != null)
                row.setcolVersionNo(voAdviceLeaflets.getLeafletVersion().toString());
            if(voAdviceLeaflets.getDateGiven() != null)
                row.setcolDateGiven(voAdviceLeaflets.getDateGiven().toString());
            if(voAdviceLeaflets.getGivenTo() != null)
                row.setcolGivenTo(voAdviceLeaflets.getGivenTo().toString());

            if(voAdviceLeaflets.equals(form.getLocalContext().getVoAdviceLeaflets()))   //WDEV-7044
            {
                form.grdLeaflets().setValue(voAdviceLeaflets);
            }
        }
        if(form.grdLeaflets().getValue() != null)
            refreshDetails();
    }
}
项目:openMAXIMS    文件:AdviceLeafletsImpl.java   
public AdviceLeafletsVo getAdviceLeaflets(AdviceLeafletsRefVo record)
{
    if(record == null || record.getID_AdviceLeaflets() == null)
        throw new CodingRuntimeException("Can not get AdviceLeaflet on null Id.");

    DomainFactory factory = getDomainFactory();
    AdviceLeaflets doLeaflet = (AdviceLeaflets) factory.getDomainObject(AdviceLeaflets.class, record.getID_AdviceLeaflets());

    return AdviceLeafletsVoAssembler.create(doLeaflet);
}
项目:openMAXIMS    文件:Logic.java   
private void populateAdviceLeafletsGrid() 
{
    AdviceLeafletsVoCollection voColl = domain.listAdviceLeaflets(form.getGlobalContext().Core.getCurrentCareContext());

    if(form.getLocalContext().getVoAdviceLeafletsIsNotNull())
        form.getLocalContext().setVoAdviceLeaflets(domain.getAdviceLeaflets(form.getLocalContext().getVoAdviceLeaflets()));//WDEV-7044

    if (voColl != null)
    {
        GenForm.grdLeafletsRow row = null;
        for(int i=0;i<voColl.size();i++)
        {
            row = form.grdLeaflets().getRows().newRow();
            AdviceLeafletsVo voAdviceLeaflets = voColl.get(i);
            row.setValue(voAdviceLeaflets);
            if(voAdviceLeaflets.getAdviceLeaflet() != null)
                row.setcolAdvLeaflet(voAdviceLeaflets.getAdviceLeaflet().toString());
            if(voAdviceLeaflets.getLeafletVersion() != null)
                row.setcolVersionNo(voAdviceLeaflets.getLeafletVersion().toString());
            if(voAdviceLeaflets.getDateGiven() != null)
                row.setcolDateGiven(voAdviceLeaflets.getDateGiven().toString());
            if(voAdviceLeaflets.getGivenTo() != null)
                row.setcolGivenTo(voAdviceLeaflets.getGivenTo().toString());

            if(voAdviceLeaflets.equals(form.getLocalContext().getVoAdviceLeaflets()))   //WDEV-7044
            {
                form.grdLeaflets().setValue(voAdviceLeaflets);
            }
        }
        if(form.grdLeaflets().getValue() != null)
            refreshDetails();
    }
}
项目:openMAXIMS    文件:AdviceLeafletsImpl.java   
public AdviceLeafletsVo getAdviceLeaflets(AdviceLeafletsRefVo record)
{
    if(record == null || record.getID_AdviceLeaflets() == null)
        throw new CodingRuntimeException("Can not get AdviceLeaflet on null Id.");

    DomainFactory factory = getDomainFactory();
    AdviceLeaflets doLeaflet = (AdviceLeaflets) factory.getDomainObject(AdviceLeaflets.class, record.getID_AdviceLeaflets());

    return AdviceLeafletsVoAssembler.create(doLeaflet);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateAdviceLeafletsGrid() 
{
    AdviceLeafletsVoCollection voColl = domain.listAdviceLeaflets(form.getGlobalContext().Core.getCurrentCareContext());

    if(form.getLocalContext().getVoAdviceLeafletsIsNotNull())
        form.getLocalContext().setVoAdviceLeaflets(domain.getAdviceLeaflets(form.getLocalContext().getVoAdviceLeaflets()));//WDEV-7044

    if (voColl != null)
    {
        GenForm.grdLeafletsRow row = null;
        for(int i=0;i<voColl.size();i++)
        {
            row = form.grdLeaflets().getRows().newRow();
            AdviceLeafletsVo voAdviceLeaflets = voColl.get(i);
            row.setValue(voAdviceLeaflets);
            if(voAdviceLeaflets.getAdviceLeaflet() != null)
                row.setcolAdvLeaflet(voAdviceLeaflets.getAdviceLeaflet().toString());
            if(voAdviceLeaflets.getLeafletVersion() != null)
                row.setcolVersionNo(voAdviceLeaflets.getLeafletVersion().toString());
            if(voAdviceLeaflets.getDateGiven() != null)
                row.setcolDateGiven(voAdviceLeaflets.getDateGiven().toString());
            if(voAdviceLeaflets.getGivenTo() != null)
                row.setcolGivenTo(voAdviceLeaflets.getGivenTo().toString());

            if(voAdviceLeaflets.equals(form.getLocalContext().getVoAdviceLeaflets()))   //WDEV-7044
            {
                form.grdLeaflets().setValue(voAdviceLeaflets);
            }
        }
        if(form.grdLeaflets().getValue() != null)
            refreshDetails();
    }
}
项目:openmaxims-linux    文件:AdviceLeafletsImpl.java   
public AdviceLeafletsVo getAdviceLeaflets(AdviceLeafletsRefVo record)
{
    if(record == null || record.getID_AdviceLeaflets() == null)
        throw new CodingRuntimeException("Can not get AdviceLeaflet on null Id.");

    DomainFactory factory = getDomainFactory();
    AdviceLeaflets doLeaflet = (AdviceLeaflets) factory.getDomainObject(AdviceLeaflets.class, record.getID_AdviceLeaflets());

    return AdviceLeafletsVoAssembler.create(doLeaflet);
}
项目:AvoinApotti    文件:AdviceLeafletsImpl.java   
public AdviceLeafletsVo saveAdviceLeafletsDetails(AdviceLeafletsVo adviceleaflets) throws StaleObjectException
{
    if(adviceleaflets == null)
        throw new RuntimeException("Cannot save null value for AdviceLeafletsVo ");

    if (!adviceleaflets.isValidated())
        throw new DomainRuntimeException("Advice leaflets has not been validated");

    DomainFactory factory = getDomainFactory();

    ims.core.clinical.domain.objects.AdviceLeaflets doAdviceLeaflets = AdviceLeafletsVoAssembler.extractAdviceLeaflets(factory, adviceleaflets);

    factory.save(doAdviceLeaflets);

    return AdviceLeafletsVoAssembler.create(doAdviceLeaflets);
}
项目:openMAXIMS    文件:AdviceLeafletsImpl.java   
public AdviceLeafletsVo saveAdviceLeafletsDetails(AdviceLeafletsVo adviceleaflets) throws StaleObjectException
{
    if(adviceleaflets == null)
        throw new RuntimeException("Cannot save null value for AdviceLeafletsVo ");

    if (!adviceleaflets.isValidated())
        throw new DomainRuntimeException("Advice leaflets has not been validated");

    DomainFactory factory = getDomainFactory();

    ims.core.clinical.domain.objects.AdviceLeaflets doAdviceLeaflets = AdviceLeafletsVoAssembler.extractAdviceLeaflets(factory, adviceleaflets);

    factory.save(doAdviceLeaflets);

    return AdviceLeafletsVoAssembler.create(doAdviceLeaflets);
}
项目:openMAXIMS    文件:AdviceLeafletsImpl.java   
public AdviceLeafletsVo saveAdviceLeafletsDetails(AdviceLeafletsVo adviceleaflets) throws StaleObjectException
{
    if(adviceleaflets == null)
        throw new RuntimeException("Cannot save null value for AdviceLeafletsVo ");

    if (!adviceleaflets.isValidated())
        throw new DomainRuntimeException("Advice leaflets has not been validated");

    DomainFactory factory = getDomainFactory();

    ims.core.clinical.domain.objects.AdviceLeaflets doAdviceLeaflets = AdviceLeafletsVoAssembler.extractAdviceLeaflets(factory, adviceleaflets);

    factory.save(doAdviceLeaflets);

    return AdviceLeafletsVoAssembler.create(doAdviceLeaflets);
}
项目:openmaxims-linux    文件:AdviceLeafletsImpl.java   
public AdviceLeafletsVo saveAdviceLeafletsDetails(AdviceLeafletsVo adviceleaflets) throws StaleObjectException
{
    if(adviceleaflets == null)
        throw new RuntimeException("Cannot save null value for AdviceLeafletsVo ");

    if (!adviceleaflets.isValidated())
        throw new DomainRuntimeException("Advice leaflets has not been validated");

    DomainFactory factory = getDomainFactory();

    ims.core.clinical.domain.objects.AdviceLeaflets doAdviceLeaflets = AdviceLeafletsVoAssembler.extractAdviceLeaflets(factory, adviceleaflets);

    factory.save(doAdviceLeaflets);

    return AdviceLeafletsVoAssembler.create(doAdviceLeaflets);
}