Java 类ims.therapies.vo.GaitVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void newParentNode(GaitVo voNewParent)
{
    if (voNewParent == null) return;

    GaitShortVo voParentShort = new GaitShortVo();
    voParentShort.setAuthoringHCP(voNewParent.getAuthoringHCP());
    voParentShort.setAuthoringDateTime(voNewParent.getAuthoringDateTime());
    voParentShort.setClinicalContact((ClinicalContactShortVo) voNewParent.getClinicalContact());

    GenForm.grdGaitRow parentRow = form.grdGait().getRows().newRow();           
    if(voParentShort.getAuthoringHCPIsNotNull() && voParentShort.getAuthoringDateTimeIsNotNull())
        parentRow.setColEnvironment(voParentShort.getAuthoringDateTime().toString()+ " - " + voParentShort.getAuthoringHCP().toString());           
    parentRow.setValue(voParentShort);
    parentRow.setBackColor(Color.Beige);
    form.getLocalContext().setGoldenInstanceSelected(new Boolean(true));
    parentRow.setExpanded(true);
    form.grdGait().setValue(voParentShort); 
}
项目:AvoinApotti    文件:Logic.java   
private void populateChildCollectionFromGrid(GaitVo voGait)
{
    if (form.grdGait().getValue() == null) return;

    if (voGait.getGaitTreatment() == null)
        voGait.setGaitTreatment(new GaitTreatmentVoCollection());

    GenForm.grdGaitRow parentRow = form.grdGait().getValue() instanceof GaitShortVo ? 
                                        form.grdGait().getSelectedRow() : form.grdGait().getSelectedRow().getParentRow();       

       if (parentRow.getRows().size() > 0 )
        voGait.getGaitTreatment().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        voGait.getGaitTreatment().add((GaitTreatmentVo) parentRow.getRows().get(i).getValue());
       }
}
项目:openMAXIMS    文件:Logic.java   
private void newParentNode(GaitVo voNewParent)
{
    if (voNewParent == null) return;

    GaitShortVo voParentShort = new GaitShortVo();
    voParentShort.setAuthoringHCP(voNewParent.getAuthoringHCP());
    voParentShort.setAuthoringDateTime(voNewParent.getAuthoringDateTime());
    voParentShort.setClinicalContact((ClinicalContactShortVo) voNewParent.getClinicalContact());

    GenForm.grdGaitRow parentRow = form.grdGait().getRows().newRow();           
    if(voParentShort.getAuthoringHCPIsNotNull() && voParentShort.getAuthoringDateTimeIsNotNull())
        parentRow.setColEnvironment(voParentShort.getAuthoringDateTime().toString()+ " - " + voParentShort.getAuthoringHCP().toString());           
    parentRow.setValue(voParentShort);
    parentRow.setBackColor(Color.Beige);
    form.getLocalContext().setGoldenInstanceSelected(new Boolean(true));
    parentRow.setExpanded(true);
    form.grdGait().setValue(voParentShort); 
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildCollectionFromGrid(GaitVo voGait)
{
    if (form.grdGait().getValue() == null) return;

    if (voGait.getGaitTreatment() == null)
        voGait.setGaitTreatment(new GaitTreatmentVoCollection());

    GenForm.grdGaitRow parentRow = form.grdGait().getValue() instanceof GaitShortVo ? 
                                        form.grdGait().getSelectedRow() : form.grdGait().getSelectedRow().getParentRow();       

       if (parentRow.getRows().size() > 0 )
        voGait.getGaitTreatment().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        voGait.getGaitTreatment().add((GaitTreatmentVo) parentRow.getRows().get(i).getValue());
       }
}
项目:openMAXIMS    文件:Logic.java   
private void newParentNode(GaitVo voNewParent)
{
    if (voNewParent == null) return;

    GaitShortVo voParentShort = new GaitShortVo();
    voParentShort.setAuthoringHCP(voNewParent.getAuthoringHCP());
    voParentShort.setAuthoringDateTime(voNewParent.getAuthoringDateTime());
    voParentShort.setClinicalContact((ClinicalContactShortVo) voNewParent.getClinicalContact());

    GenForm.grdGaitRow parentRow = form.grdGait().getRows().newRow();           
    if(voParentShort.getAuthoringHCPIsNotNull() && voParentShort.getAuthoringDateTimeIsNotNull())
        parentRow.setColEnvironment(voParentShort.getAuthoringDateTime().toString()+ " - " + voParentShort.getAuthoringHCP().toString());           
    parentRow.setValue(voParentShort);
    parentRow.setBackColor(Color.Beige);
    form.getLocalContext().setGoldenInstanceSelected(new Boolean(true));
    parentRow.setExpanded(true);
    form.grdGait().setValue(voParentShort); 
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildCollectionFromGrid(GaitVo voGait)
{
    if (form.grdGait().getValue() == null) return;

    if (voGait.getGaitTreatment() == null)
        voGait.setGaitTreatment(new GaitTreatmentVoCollection());

    GenForm.grdGaitRow parentRow = form.grdGait().getValue() instanceof GaitShortVo ? 
                                        form.grdGait().getSelectedRow() : form.grdGait().getSelectedRow().getParentRow();       

       if (parentRow.getRows().size() > 0 )
        voGait.getGaitTreatment().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        voGait.getGaitTreatment().add((GaitTreatmentVo) parentRow.getRows().get(i).getValue());
       }
}
项目:openmaxims-linux    文件:Logic.java   
private void newParentNode(GaitVo voNewParent)
{
    if (voNewParent == null) return;

    GaitShortVo voParentShort = new GaitShortVo();
    voParentShort.setAuthoringHCP(voNewParent.getAuthoringHCP());
    voParentShort.setAuthoringDateTime(voNewParent.getAuthoringDateTime());
    voParentShort.setClinicalContact((ClinicalContactShortVo) voNewParent.getClinicalContact());

    GenForm.grdGaitRow parentRow = form.grdGait().getRows().newRow();           
    if(voParentShort.getAuthoringHCPIsNotNull() && voParentShort.getAuthoringDateTimeIsNotNull())
        parentRow.setColEnvironment(voParentShort.getAuthoringDateTime().toString()+ " - " + voParentShort.getAuthoringHCP().toString());           
    parentRow.setValue(voParentShort);
    parentRow.setBackColor(Color.Beige);
    form.getLocalContext().setGoldenInstanceSelected(new Boolean(true));
    parentRow.setExpanded(true);
    form.grdGait().setValue(voParentShort); 
}
项目:openmaxims-linux    文件:Logic.java   
private void populateChildCollectionFromGrid(GaitVo voGait)
{
    if (form.grdGait().getValue() == null) return;

    if (voGait.getGaitTreatment() == null)
        voGait.setGaitTreatment(new GaitTreatmentVoCollection());

    GenForm.grdGaitRow parentRow = form.grdGait().getValue() instanceof GaitShortVo ? 
                                        form.grdGait().getSelectedRow() : form.grdGait().getSelectedRow().getParentRow();       

       if (parentRow.getRows().size() > 0 )
        voGait.getGaitTreatment().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        voGait.getGaitTreatment().add((GaitTreatmentVo) parentRow.getRows().get(i).getValue());
       }
}
项目:AvoinApotti    文件:Logic.java   
private void populateParentInstanceControls(GaitVo voGaitParent)
{
    if(voGaitParent != null)
    {
        form.ctnGait().lyrGait().tabHeader().dtimAuthoring().setValue(voGaitParent.getAuthoringDateTime());

        if (voGaitParent.getAuthoringHCP() != null)
        {
            form.ctnGait().lyrGait().tabHeader().qmbAuthoringHCP().newRow(voGaitParent.getAuthoringHCP(), voGaitParent.getAuthoringHCP().toString());
            form.ctnGait().lyrGait().tabHeader().qmbAuthoringHCP().setValue(voGaitParent.getAuthoringHCP());                
        }

    }
}
项目:AvoinApotti    文件:Logic.java   
private void expandParentNode(grdGaitRow selectedRow)
{
    if (selectedRow.getValue() instanceof GaitShortVo == false ) return;

    form.getLocalContext().setSelectedParentInstance(getParentFromDomain((GaitShortVo) selectedRow.getValue()));        
    if (form.getLocalContext().getSelectedParentInstance() == null ) return;                

    GaitVo voParentInstance = form.getLocalContext().getSelectedParentInstance();               

    if (form.getGlobalContext().Core.getCurrentClinicalContact() != null  &&
            voParentInstance.getClinicalContact().getID_ClinicalContact().equals
            (form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact()))
    {
        // If this is the Golden Node then we'll colour it golden (ok then beige).
        form.getLocalContext().setGoldenInstanceFound(new Boolean(true));
        form.getLocalContext().setGoldenInstanceSelected(new Boolean(true));
        selectedRow.setBackColor(Color.Beige);          
    }

    if (voParentInstance.getGaitTreatment() != null)  
    {
        selectedRow.setExpanded(true);
        populateChildNodes(selectedRow, voParentInstance.getGaitTreatment());
    }

    populateParentInstanceControls(voParentInstance);
}
项目:AvoinApotti    文件:Logic.java   
private void newParentInstance()
{
    GaitVo voNewParent = new GaitVo();  
    voNewParent.setAuthoringHCP((Hcp) domain.getHcpUser());
    voNewParent.setAuthoringDateTime(new DateTime());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setGaitTreatment(new GaitTreatmentVoCollection());
    populateParentInstanceControls(voNewParent);        
    form.getLocalContext().setSelectedParentInstance(voNewParent);  
}
项目:openMAXIMS    文件:Logic.java   
private void populateParentInstanceControls(GaitVo voGaitParent)
{
    if(voGaitParent != null)
    {
        form.ctnGait().lyrGait().tabHeader().dtimAuthoring().setValue(voGaitParent.getAuthoringDateTime());

        if (voGaitParent.getAuthoringHCP() != null)
        {
            form.ctnGait().lyrGait().tabHeader().qmbAuthoringHCP().newRow(voGaitParent.getAuthoringHCP(), voGaitParent.getAuthoringHCP().toString());
            form.ctnGait().lyrGait().tabHeader().qmbAuthoringHCP().setValue(voGaitParent.getAuthoringHCP());                
        }

    }
}
项目:openMAXIMS    文件:Logic.java   
private void expandParentNode(grdGaitRow selectedRow)
{
    if (selectedRow.getValue() instanceof GaitShortVo == false ) return;

    form.getLocalContext().setSelectedParentInstance(getParentFromDomain((GaitShortVo) selectedRow.getValue()));        
    if (form.getLocalContext().getSelectedParentInstance() == null ) return;                

    GaitVo voParentInstance = form.getLocalContext().getSelectedParentInstance();               

    if (form.getGlobalContext().Core.getCurrentClinicalContact() != null  &&
            voParentInstance.getClinicalContact().getID_ClinicalContact().equals
            (form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact()))
    {
        // If this is the Golden Node then we'll colour it golden (ok then beige).
        form.getLocalContext().setGoldenInstanceFound(new Boolean(true));
        form.getLocalContext().setGoldenInstanceSelected(new Boolean(true));
        selectedRow.setBackColor(Color.Beige);          
    }

    if (voParentInstance.getGaitTreatment() != null)  
    {
        selectedRow.setExpanded(true);
        populateChildNodes(selectedRow, voParentInstance.getGaitTreatment());
    }

    populateParentInstanceControls(voParentInstance);
}
项目:openMAXIMS    文件:Logic.java   
private void newParentInstance()
{
    GaitVo voNewParent = new GaitVo();  
    voNewParent.setAuthoringHCP((Hcp) domain.getHcpUser());
    voNewParent.setAuthoringDateTime(new DateTime());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setGaitTreatment(new GaitTreatmentVoCollection());
    populateParentInstanceControls(voNewParent);        
    form.getLocalContext().setSelectedParentInstance(voNewParent);  
}
项目:openMAXIMS    文件:Logic.java   
private void populateParentInstanceControls(GaitVo voGaitParent)
{
    if(voGaitParent != null)
    {
        form.ctnGait().lyrGait().tabHeader().dtimAuthoring().setValue(voGaitParent.getAuthoringDateTime());

        if (voGaitParent.getAuthoringHCP() != null)
        {
            form.ctnGait().lyrGait().tabHeader().qmbAuthoringHCP().newRow(voGaitParent.getAuthoringHCP(), voGaitParent.getAuthoringHCP().toString());
            form.ctnGait().lyrGait().tabHeader().qmbAuthoringHCP().setValue(voGaitParent.getAuthoringHCP());                
        }

    }
}
项目:openMAXIMS    文件:Logic.java   
private void expandParentNode(grdGaitRow selectedRow)
{
    if (selectedRow.getValue() instanceof GaitShortVo == false ) return;

    form.getLocalContext().setSelectedParentInstance(getParentFromDomain((GaitShortVo) selectedRow.getValue()));        
    if (form.getLocalContext().getSelectedParentInstance() == null ) return;                

    GaitVo voParentInstance = form.getLocalContext().getSelectedParentInstance();               

    if (form.getGlobalContext().Core.getCurrentClinicalContact() != null  &&
            voParentInstance.getClinicalContact().getID_ClinicalContact().equals
            (form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact()))
    {
        // If this is the Golden Node then we'll colour it golden (ok then beige).
        form.getLocalContext().setGoldenInstanceFound(new Boolean(true));
        form.getLocalContext().setGoldenInstanceSelected(new Boolean(true));
        selectedRow.setBackColor(Color.Beige);          
    }

    if (voParentInstance.getGaitTreatment() != null)  
    {
        selectedRow.setExpanded(true);
        populateChildNodes(selectedRow, voParentInstance.getGaitTreatment());
    }

    populateParentInstanceControls(voParentInstance);
}
项目:openMAXIMS    文件:Logic.java   
private void newParentInstance()
{
    GaitVo voNewParent = new GaitVo();  
    voNewParent.setAuthoringHCP((Hcp) domain.getHcpUser());
    voNewParent.setAuthoringDateTime(new DateTime());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setGaitTreatment(new GaitTreatmentVoCollection());
    populateParentInstanceControls(voNewParent);        
    form.getLocalContext().setSelectedParentInstance(voNewParent);  
}
项目:openmaxims-linux    文件:Logic.java   
private void populateParentInstanceControls(GaitVo voGaitParent)
{
    if(voGaitParent != null)
    {
        form.ctnGait().lyrGait().tabHeader().dtimAuthoring().setValue(voGaitParent.getAuthoringDateTime());

        if (voGaitParent.getAuthoringHCP() != null)
        {
            form.ctnGait().lyrGait().tabHeader().qmbAuthoringHCP().newRow(voGaitParent.getAuthoringHCP(), voGaitParent.getAuthoringHCP().toString());
            form.ctnGait().lyrGait().tabHeader().qmbAuthoringHCP().setValue(voGaitParent.getAuthoringHCP());                
        }

    }
}
项目:openmaxims-linux    文件:Logic.java   
private void expandParentNode(grdGaitRow selectedRow)
{
    if (selectedRow.getValue() instanceof GaitShortVo == false ) return;

    form.getLocalContext().setSelectedParentInstance(getParentFromDomain((GaitShortVo) selectedRow.getValue()));        
    if (form.getLocalContext().getSelectedParentInstance() == null ) return;                

    GaitVo voParentInstance = form.getLocalContext().getSelectedParentInstance();               

    if (form.getGlobalContext().Core.getCurrentClinicalContact() != null  &&
            voParentInstance.getClinicalContact().getID_ClinicalContact().equals
            (form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact()))
    {
        // If this is the Golden Node then we'll colour it golden (ok then beige).
        form.getLocalContext().setGoldenInstanceFound(new Boolean(true));
        form.getLocalContext().setGoldenInstanceSelected(new Boolean(true));
        selectedRow.setBackColor(Color.Beige);          
    }

    if (voParentInstance.getGaitTreatment() != null)  
    {
        selectedRow.setExpanded(true);
        populateChildNodes(selectedRow, voParentInstance.getGaitTreatment());
    }

    populateParentInstanceControls(voParentInstance);
}
项目:openmaxims-linux    文件:Logic.java   
private void newParentInstance()
{
    GaitVo voNewParent = new GaitVo();  
    voNewParent.setAuthoringHCP((Hcp) domain.getHcpUser());
    voNewParent.setAuthoringDateTime(new DateTime());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setGaitTreatment(new GaitTreatmentVoCollection());
    populateParentInstanceControls(voNewParent);        
    form.getLocalContext().setSelectedParentInstance(voNewParent);  
}
项目:AvoinApotti    文件:Logic.java   
private GaitVo getParentFromDomain(GaitShortVo voGaitShort)
{
    return domain.getGait(voGaitShort.getClinicalContact());
}
项目:AvoinApotti    文件:Logic.java   
private void populateParentInstanceData(GaitVo voGait)
{
    voGait.setAuthoringHCP(form.ctnGait().lyrGait().tabHeader().qmbAuthoringHCP().getValue());
    voGait.setAuthoringDateTime(form.ctnGait().lyrGait().tabHeader().dtimAuthoring().getValue());
}
项目:openMAXIMS    文件:Logic.java   
private GaitVo getParentFromDomain(GaitShortVo voGaitShort)
{
    return domain.getGait(voGaitShort.getClinicalContact());
}
项目:openMAXIMS    文件:Logic.java   
private void populateParentInstanceData(GaitVo voGait)
{
    voGait.setAuthoringHCP(form.ctnGait().lyrGait().tabHeader().qmbAuthoringHCP().getValue());
    voGait.setAuthoringDateTime(form.ctnGait().lyrGait().tabHeader().dtimAuthoring().getValue());
}
项目:openMAXIMS    文件:Logic.java   
private GaitVo getParentFromDomain(GaitShortVo voGaitShort)
{
    return domain.getGait(voGaitShort.getClinicalContact());
}
项目:openMAXIMS    文件:Logic.java   
private void populateParentInstanceData(GaitVo voGait)
{
    voGait.setAuthoringHCP(form.ctnGait().lyrGait().tabHeader().qmbAuthoringHCP().getValue());
    voGait.setAuthoringDateTime(form.ctnGait().lyrGait().tabHeader().dtimAuthoring().getValue());
}
项目:openmaxims-linux    文件:Logic.java   
private GaitVo getParentFromDomain(GaitShortVo voGaitShort)
{
    return domain.getGait(voGaitShort.getClinicalContact());
}
项目:openmaxims-linux    文件:Logic.java   
private void populateParentInstanceData(GaitVo voGait)
{
    voGait.setAuthoringHCP(form.ctnGait().lyrGait().tabHeader().qmbAuthoringHCP().getValue());
    voGait.setAuthoringDateTime(form.ctnGait().lyrGait().tabHeader().dtimAuthoring().getValue());
}