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

项目:AvoinApotti    文件:Logic.java   
private void populateRecordBrowser()
{
    if( form.getLocalContext().getEDAssessmentWoundImagesIsNotNull() && form.getLocalContext().getEDAssessmentWoundImages().getWoundImagesIsNotNull() && form.getLocalContext().getEDAssessmentWoundImages().getWoundImages().size() > 0)
    {
        WoundImagesVo tempVo = null;
        WoundImagesVoCollection tempColl =  form.getLocalContext().getEDAssessmentWoundImages().getWoundImages();
        tempColl.sort(new WoundImageComparator(SortOrder.DESCENDING));

        for(int i = 0; i < tempColl.size();i++)
        {
            tempVo = tempColl.get(i);
            if( tempVo != null)
            {
                form.recbrwoundImages().newRow(tempVo, tempVo.getAuthoringInformation().getAuthoringHcp().getIHcpName() + " - " +tempVo.getAuthoringInformation().getAuthoringDateTime().toString() );
            }
        }
        if( !form.getLocalContext().getCurrentWoundImageIsNotNull())
            form.getLocalContext().setCurrentWoundImage(tempColl.get(0));

        form.recbrwoundImages().setValue(form.getLocalContext().getCurrentWoundImage());
    }
}
项目:AvoinApotti    文件:Logic.java   
public int compare(Object ob1, Object ob2) 
{
    DateTime pdate1 = null;
    DateTime pdate2 = null;
    if(ob1 instanceof WoundImagesVo )
    {
        WoundImagesVo ps1 = (WoundImagesVo)ob1;
        pdate1 = ps1.getSystemInformationIsNotNull() && ps1.getSystemInformation().getCreationDateTime() != null ? ps1.getSystemInformation().getCreationDateTime():null;
    }
    if(ob2 instanceof WoundImagesVo)
    {
        WoundImagesVo ps2 = (WoundImagesVo)ob2;
        pdate2 = ps2.getSystemInformationIsNotNull() && ps2.getSystemInformation().getCreationDateTime() != null ? ps2.getSystemInformation().getCreationDateTime():null;
    }
    if(pdate1 != null )
        return  pdate1.compareTo(pdate2)*direction;
    if(pdate2 != null)
        return (-1)*direction;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser()
{
    if( form.getLocalContext().getEDAssessmentWoundImagesIsNotNull() && form.getLocalContext().getEDAssessmentWoundImages().getWoundImagesIsNotNull() && form.getLocalContext().getEDAssessmentWoundImages().getWoundImages().size() > 0)
    {
        WoundImagesVo tempVo = null;
        WoundImagesVoCollection tempColl =  form.getLocalContext().getEDAssessmentWoundImages().getWoundImages();
        tempColl.sort(new WoundImageComparator(SortOrder.DESCENDING));

        for(int i = 0; i < tempColl.size();i++)
        {
            tempVo = tempColl.get(i);
            if( tempVo != null)
            {
                form.recbrwoundImages().newRow(tempVo, tempVo.getAuthoringInformation().getAuthoringHcp().getIHcpName() + " - " +tempVo.getAuthoringInformation().getAuthoringDateTime().toString() );
            }
        }
        if( !form.getLocalContext().getCurrentWoundImageIsNotNull())
            form.getLocalContext().setCurrentWoundImage(tempColl.get(0));

        form.recbrwoundImages().setValue(form.getLocalContext().getCurrentWoundImage());
    }
}
项目:openMAXIMS    文件:Logic.java   
public int compare(Object ob1, Object ob2) 
{
    DateTime pdate1 = null;
    DateTime pdate2 = null;
    if(ob1 instanceof WoundImagesVo )
    {
        WoundImagesVo ps1 = (WoundImagesVo)ob1;
        pdate1 = ps1.getSystemInformationIsNotNull() && ps1.getSystemInformation().getCreationDateTime() != null ? ps1.getSystemInformation().getCreationDateTime():null;
    }
    if(ob2 instanceof WoundImagesVo)
    {
        WoundImagesVo ps2 = (WoundImagesVo)ob2;
        pdate2 = ps2.getSystemInformationIsNotNull() && ps2.getSystemInformation().getCreationDateTime() != null ? ps2.getSystemInformation().getCreationDateTime():null;
    }
    if(pdate1 != null )
        return  pdate1.compareTo(pdate2)*direction;
    if(pdate2 != null)
        return (-1)*direction;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser()
{
    if( form.getLocalContext().getEDAssessmentWoundImagesIsNotNull() && form.getLocalContext().getEDAssessmentWoundImages().getWoundImagesIsNotNull() && form.getLocalContext().getEDAssessmentWoundImages().getWoundImages().size() > 0)
    {
        WoundImagesVo tempVo = null;
        WoundImagesVoCollection tempColl =  form.getLocalContext().getEDAssessmentWoundImages().getWoundImages();
        tempColl.sort(new WoundImageComparator(SortOrder.DESCENDING));

        for(int i = 0; i < tempColl.size();i++)
        {
            tempVo = tempColl.get(i);
            if( tempVo != null)
            {
                form.recbrwoundImages().newRow(tempVo, tempVo.getAuthoringInformation().getAuthoringHcp().getIHcpName() + " - " +tempVo.getAuthoringInformation().getAuthoringDateTime().toString() );
            }
        }
        if( !form.getLocalContext().getCurrentWoundImageIsNotNull())
            form.getLocalContext().setCurrentWoundImage(tempColl.get(0));

        form.recbrwoundImages().setValue(form.getLocalContext().getCurrentWoundImage());
    }
}
项目:openMAXIMS    文件:Logic.java   
public int compare(Object ob1, Object ob2) 
{
    DateTime pdate1 = null;
    DateTime pdate2 = null;
    if(ob1 instanceof WoundImagesVo )
    {
        WoundImagesVo ps1 = (WoundImagesVo)ob1;
        pdate1 = ps1.getSystemInformationIsNotNull() && ps1.getSystemInformation().getCreationDateTime() != null ? ps1.getSystemInformation().getCreationDateTime():null;
    }
    if(ob2 instanceof WoundImagesVo)
    {
        WoundImagesVo ps2 = (WoundImagesVo)ob2;
        pdate2 = ps2.getSystemInformationIsNotNull() && ps2.getSystemInformation().getCreationDateTime() != null ? ps2.getSystemInformation().getCreationDateTime():null;
    }
    if(pdate1 != null )
        return  pdate1.compareTo(pdate2)*direction;
    if(pdate2 != null)
        return (-1)*direction;

    return 0;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateRecordBrowser()
{
    if( form.getLocalContext().getEDAssessmentWoundImagesIsNotNull() && form.getLocalContext().getEDAssessmentWoundImages().getWoundImagesIsNotNull() && form.getLocalContext().getEDAssessmentWoundImages().getWoundImages().size() > 0)
    {
        WoundImagesVo tempVo = null;
        WoundImagesVoCollection tempColl =  form.getLocalContext().getEDAssessmentWoundImages().getWoundImages();
        tempColl.sort(new WoundImageComparator(SortOrder.DESCENDING));

        for(int i = 0; i < tempColl.size();i++)
        {
            tempVo = tempColl.get(i);
            if( tempVo != null)
            {
                form.recbrwoundImages().newRow(tempVo, tempVo.getAuthoringInformation().getAuthoringHcp().getIHcpName() + " - " +tempVo.getAuthoringInformation().getAuthoringDateTime().toString() );
            }
        }
        if( !form.getLocalContext().getCurrentWoundImageIsNotNull())
            form.getLocalContext().setCurrentWoundImage(tempColl.get(0));

        form.recbrwoundImages().setValue(form.getLocalContext().getCurrentWoundImage());
    }
}
项目:openmaxims-linux    文件:Logic.java   
public int compare(Object ob1, Object ob2) 
{
    DateTime pdate1 = null;
    DateTime pdate2 = null;
    if(ob1 instanceof WoundImagesVo )
    {
        WoundImagesVo ps1 = (WoundImagesVo)ob1;
        pdate1 = ps1.getSystemInformationIsNotNull() && ps1.getSystemInformation().getCreationDateTime() != null ? ps1.getSystemInformation().getCreationDateTime():null;
    }
    if(ob2 instanceof WoundImagesVo)
    {
        WoundImagesVo ps2 = (WoundImagesVo)ob2;
        pdate2 = ps2.getSystemInformationIsNotNull() && ps2.getSystemInformation().getCreationDateTime() != null ? ps2.getSystemInformation().getCreationDateTime():null;
    }
    if(pdate1 != null )
        return  pdate1.compareTo(pdate2)*direction;
    if(pdate2 != null)
        return (-1)*direction;

    return 0;
}
项目:AvoinApotti    文件:Logic.java   
private void recbrwoundImagesValueChanged()
{
    if( form.recbrwoundImages().getValue() != null)
    {
        WoundImagesVo tempVo = domain.getWoundImagesVo(form.recbrwoundImages().getValue());
        form.getLocalContext().setCurrentWoundImage(tempVo);
        populateScreenFromData(tempVo);
        if( tempVo != null)
            form.getLocalContext().setWoundImageDB(tempVo.getPhoto());

    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(WoundImagesVo woundimg)
{
    if( woundimg != null)
    {
        populateWoundImageControl(woundimg.getPhoto());
        form.ccWoundAuthoring().setValue(woundimg.getAuthoringInformation());
        form.txtComment().setValue(woundimg.getComment());
    }
}
项目:AvoinApotti    文件:WoundImagesCCImpl.java   
public WoundImagesVo getWoundImagesVo(WoundImageRefVo woundImageRef)
{
    if (woundImageRef == null || woundImageRef.getID_WoundImage()== null)
    {
        throw new CodingRuntimeException("Cannot get EDWoundImagesRefVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    WoundImage domainEDWoundImages = (WoundImage) factory.getDomainObject(WoundImage.class, woundImageRef.getID_WoundImage());

    return WoundImagesVoAssembler.create(domainEDWoundImages);
}
项目:openMAXIMS    文件:Logic.java   
private void recbrwoundImagesValueChanged()
{
    if( form.recbrwoundImages().getValue() != null)
    {
        WoundImagesVo tempVo = domain.getWoundImagesVo(form.recbrwoundImages().getValue());
        form.getLocalContext().setCurrentWoundImage(tempVo);
        populateScreenFromData(tempVo);
        if( tempVo != null)
            form.getLocalContext().setWoundImageDB(tempVo.getPhoto());

    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(WoundImagesVo woundimg)
{
    if( woundimg != null)
    {
        populateWoundImageControl(woundimg.getPhoto());
        form.ccWoundAuthoring().setValue(woundimg.getAuthoringInformation());
        form.txtComment().setValue(woundimg.getComment());
    }
}
项目:openMAXIMS    文件:WoundImagesCCImpl.java   
public WoundImagesVo getWoundImagesVo(WoundImageRefVo woundImageRef)
{
    if (woundImageRef == null || woundImageRef.getID_WoundImage()== null)
    {
        throw new CodingRuntimeException("Cannot get EDWoundImagesRefVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    WoundImage domainEDWoundImages = (WoundImage) factory.getDomainObject(WoundImage.class, woundImageRef.getID_WoundImage());

    return WoundImagesVoAssembler.create(domainEDWoundImages);
}
项目:openMAXIMS    文件:Logic.java   
private void recbrwoundImagesValueChanged()
{
    if( form.recbrwoundImages().getValue() != null)
    {
        WoundImagesVo tempVo = domain.getWoundImagesVo(form.recbrwoundImages().getValue());
        form.getLocalContext().setCurrentWoundImage(tempVo);
        populateScreenFromData(tempVo);
        if( tempVo != null)
            form.getLocalContext().setWoundImageDB(tempVo.getPhoto());

    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(WoundImagesVo woundimg)
{
    if( woundimg != null)
    {
        populateWoundImageControl(woundimg.getPhoto());
        form.ccWoundAuthoring().setValue(woundimg.getAuthoringInformation());
        form.txtComment().setValue(woundimg.getComment());
    }
}
项目:openMAXIMS    文件:WoundImagesCCImpl.java   
public WoundImagesVo getWoundImagesVo(WoundImageRefVo woundImageRef)
{
    if (woundImageRef == null || woundImageRef.getID_WoundImage()== null)
    {
        throw new CodingRuntimeException("Cannot get EDWoundImagesRefVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    WoundImage domainEDWoundImages = (WoundImage) factory.getDomainObject(WoundImage.class, woundImageRef.getID_WoundImage());

    return WoundImagesVoAssembler.create(domainEDWoundImages);
}
项目:openmaxims-linux    文件:Logic.java   
private void recbrwoundImagesValueChanged()
{
    if( form.recbrwoundImages().getValue() != null)
    {
        WoundImagesVo tempVo = domain.getWoundImagesVo(form.recbrwoundImages().getValue());
        form.getLocalContext().setCurrentWoundImage(tempVo);
        populateScreenFromData(tempVo);
        if( tempVo != null)
            form.getLocalContext().setWoundImageDB(tempVo.getPhoto());

    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(WoundImagesVo woundimg)
{
    if( woundimg != null)
    {
        populateWoundImageControl(woundimg.getPhoto());
        form.ccWoundAuthoring().setValue(woundimg.getAuthoringInformation());
        form.txtComment().setValue(woundimg.getComment());
    }
}
项目:openmaxims-linux    文件:WoundImagesCCImpl.java   
public WoundImagesVo getWoundImagesVo(WoundImageRefVo woundImageRef)
{
    if (woundImageRef == null || woundImageRef.getID_WoundImage()== null)
    {
        throw new CodingRuntimeException("Cannot get EDWoundImagesRefVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    WoundImage domainEDWoundImages = (WoundImage) factory.getDomainObject(WoundImage.class, woundImageRef.getID_WoundImage());

    return WoundImagesVoAssembler.create(domainEDWoundImages);
}