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

项目:AvoinApotti    文件:Logic.java   
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
    form.grdCareContextHistory().getRows().clear();
    CareContextSmallVo tempVo = form.getGlobalContext().Clinical.getCareContextWithHistory();
    if(tempVo != null && tempVo.getCareContextHistoryIsNotNull() && tempVo.getCareContextHistory().size() > 0)
    {
        CareContextHistVoCollection tempColl = tempVo.getCareContextHistory();

        tempColl.sort(new CreationDateComparator(SortOrder.ASCENDING));
        for(int i = 0;i < tempColl.size();i++)
        {
            CareContextHistVo voHist = tempColl.get(i);
            if(voHist != null)
                populateChildGrid(voHist);
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
protected void populateChildGrid(CareContextHistVo voHist)
{
    if(voHist == null)
        return;
    grdCareContextHistoryRow careContextRow = form.grdCareContextHistory().getRows().newRow();
    careContextRow.setColumnContextType(voHist.getContextIsNotNull() ? voHist.getContext().getIItemText():"");
    careContextRow.setTooltipForColumnContextType(voHist.getContextIsNotNull() ? voHist.getContext().getIItemText():"");
    careContextRow.setColumnStartDateTime(voHist.getStartDateTimeIsNotNull() ? voHist.getStartDateTime().toString():"");
    careContextRow.setTooltipForColumnStartDateTime(voHist.getStartDateTimeIsNotNull() ? voHist.getStartDateTime().toString():"");
    careContextRow.setColumnEndDateTime(voHist.getEndDateTimeIsNotNull() ? voHist.getEndDateTime().toString():"");
    careContextRow.setTooltipForColumnEndDateTime(voHist.getEndDateTimeIsNotNull() ? voHist.getEndDateTime().toString():"");
    careContextRow.setColumnResponsibleHCP(voHist.getResponsibleHCPIsNotNull() ? voHist.getResponsibleHCP().getMos().toString():"");
    careContextRow.setTooltipForColumnResponsibleHCP(voHist.getResponsibleHCPIsNotNull() ? voHist.getResponsibleHCP().getMos().toString():"");
    careContextRow.setColumnChangedDateTime(voHist.getSystemInformationIsNotNull() && voHist.getSystemInformation().getCreationDateTime() != null ? voHist.getSystemInformation().getCreationDateTime().toString():"");
    careContextRow.setTooltipForColumnChangedDateTime(voHist.getSystemInformationIsNotNull() && voHist.getSystemInformation().getCreationDateTime() != null ? voHist.getSystemInformation().getCreationDateTime().toString():"");



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

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
    form.grdCareContextHistory().getRows().clear();
    CareContextSmallVo tempVo = form.getGlobalContext().Clinical.getCareContextWithHistory();
    if(tempVo != null && tempVo.getCareContextHistoryIsNotNull() && tempVo.getCareContextHistory().size() > 0)
    {
        CareContextHistVoCollection tempColl = tempVo.getCareContextHistory();

        tempColl.sort(new CreationDateComparator(SortOrder.ASCENDING));
        for(int i = 0;i < tempColl.size();i++)
        {
            CareContextHistVo voHist = tempColl.get(i);
            if(voHist != null)
                populateChildGrid(voHist);
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
protected void populateChildGrid(CareContextHistVo voHist)
{
    if(voHist == null)
        return;
    grdCareContextHistoryRow careContextRow = form.grdCareContextHistory().getRows().newRow();
    careContextRow.setColumnContextType(voHist.getContextIsNotNull() ? voHist.getContext().getIItemText():"");
    careContextRow.setTooltipForColumnContextType(voHist.getContextIsNotNull() ? voHist.getContext().getIItemText():"");
    careContextRow.setColumnStartDateTime(voHist.getStartDateTimeIsNotNull() ? voHist.getStartDateTime().toString():"");
    careContextRow.setTooltipForColumnStartDateTime(voHist.getStartDateTimeIsNotNull() ? voHist.getStartDateTime().toString():"");
    careContextRow.setColumnEndDateTime(voHist.getEndDateTimeIsNotNull() ? voHist.getEndDateTime().toString():"");
    careContextRow.setTooltipForColumnEndDateTime(voHist.getEndDateTimeIsNotNull() ? voHist.getEndDateTime().toString():"");
    careContextRow.setColumnResponsibleHCP(voHist.getResponsibleHCPIsNotNull() ? voHist.getResponsibleHCP().getMos().toString():"");
    careContextRow.setTooltipForColumnResponsibleHCP(voHist.getResponsibleHCPIsNotNull() ? voHist.getResponsibleHCP().getMos().toString():"");
    careContextRow.setColumnChangedDateTime(voHist.getSystemInformationIsNotNull() && voHist.getSystemInformation().getCreationDateTime() != null ? voHist.getSystemInformation().getCreationDateTime().toString():"");
    careContextRow.setTooltipForColumnChangedDateTime(voHist.getSystemInformationIsNotNull() && voHist.getSystemInformation().getCreationDateTime() != null ? voHist.getSystemInformation().getCreationDateTime().toString():"");



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

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
    form.grdCareContextHistory().getRows().clear();
    CareContextSmallVo tempVo = form.getGlobalContext().Clinical.getCareContextWithHistory();
    if(tempVo != null && tempVo.getCareContextHistoryIsNotNull() && tempVo.getCareContextHistory().size() > 0)
    {
        CareContextHistVoCollection tempColl = tempVo.getCareContextHistory();

        tempColl.sort(new CreationDateComparator(SortOrder.ASCENDING));
        for(int i = 0;i < tempColl.size();i++)
        {
            CareContextHistVo voHist = tempColl.get(i);
            if(voHist != null)
                populateChildGrid(voHist);
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
protected void populateChildGrid(CareContextHistVo voHist)
{
    if(voHist == null)
        return;
    grdCareContextHistoryRow careContextRow = form.grdCareContextHistory().getRows().newRow();
    careContextRow.setColumnContextType(voHist.getContextIsNotNull() ? voHist.getContext().getIItemText():"");
    careContextRow.setTooltipForColumnContextType(voHist.getContextIsNotNull() ? voHist.getContext().getIItemText():"");
    careContextRow.setColumnStartDateTime(voHist.getStartDateTimeIsNotNull() ? voHist.getStartDateTime().toString():"");
    careContextRow.setTooltipForColumnStartDateTime(voHist.getStartDateTimeIsNotNull() ? voHist.getStartDateTime().toString():"");
    careContextRow.setColumnEndDateTime(voHist.getEndDateTimeIsNotNull() ? voHist.getEndDateTime().toString():"");
    careContextRow.setTooltipForColumnEndDateTime(voHist.getEndDateTimeIsNotNull() ? voHist.getEndDateTime().toString():"");
    careContextRow.setColumnResponsibleHCP(voHist.getResponsibleHCPIsNotNull() ? voHist.getResponsibleHCP().getMos().toString():"");
    careContextRow.setTooltipForColumnResponsibleHCP(voHist.getResponsibleHCPIsNotNull() ? voHist.getResponsibleHCP().getMos().toString():"");
    careContextRow.setColumnChangedDateTime(voHist.getSystemInformationIsNotNull() && voHist.getSystemInformation().getCreationDateTime() != null ? voHist.getSystemInformation().getCreationDateTime().toString():"");
    careContextRow.setTooltipForColumnChangedDateTime(voHist.getSystemInformationIsNotNull() && voHist.getSystemInformation().getCreationDateTime() != null ? voHist.getSystemInformation().getCreationDateTime().toString():"");



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

    return 0;
}
项目:openmaxims-linux    文件:Logic.java   
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
    form.grdCareContextHistory().getRows().clear();
    CareContextSmallVo tempVo = form.getGlobalContext().Clinical.getCareContextWithHistory();
    if(tempVo != null && tempVo.getCareContextHistoryIsNotNull() && tempVo.getCareContextHistory().size() > 0)
    {
        CareContextHistVoCollection tempColl = tempVo.getCareContextHistory();

        tempColl.sort(new CreationDateComparator(SortOrder.ASCENDING));
        for(int i = 0;i < tempColl.size();i++)
        {
            CareContextHistVo voHist = tempColl.get(i);
            if(voHist != null)
                populateChildGrid(voHist);
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
protected void populateChildGrid(CareContextHistVo voHist)
{
    if(voHist == null)
        return;
    grdCareContextHistoryRow careContextRow = form.grdCareContextHistory().getRows().newRow();
    careContextRow.setColumnContextType(voHist.getContextIsNotNull() ? voHist.getContext().getIItemText():"");
    careContextRow.setTooltipForColumnContextType(voHist.getContextIsNotNull() ? voHist.getContext().getIItemText():"");
    careContextRow.setColumnStartDateTime(voHist.getStartDateTimeIsNotNull() ? voHist.getStartDateTime().toString():"");
    careContextRow.setTooltipForColumnStartDateTime(voHist.getStartDateTimeIsNotNull() ? voHist.getStartDateTime().toString():"");
    careContextRow.setColumnEndDateTime(voHist.getEndDateTimeIsNotNull() ? voHist.getEndDateTime().toString():"");
    careContextRow.setTooltipForColumnEndDateTime(voHist.getEndDateTimeIsNotNull() ? voHist.getEndDateTime().toString():"");
    careContextRow.setColumnResponsibleHCP(voHist.getResponsibleHCPIsNotNull() ? voHist.getResponsibleHCP().getMos().toString():"");
    careContextRow.setTooltipForColumnResponsibleHCP(voHist.getResponsibleHCPIsNotNull() ? voHist.getResponsibleHCP().getMos().toString():"");
    careContextRow.setColumnChangedDateTime(voHist.getSystemInformationIsNotNull() && voHist.getSystemInformation().getCreationDateTime() != null ? voHist.getSystemInformation().getCreationDateTime().toString():"");
    careContextRow.setTooltipForColumnChangedDateTime(voHist.getSystemInformationIsNotNull() && voHist.getSystemInformation().getCreationDateTime() != null ? voHist.getSystemInformation().getCreationDateTime().toString():"");



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

    return 0;
}