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

项目:AvoinApotti    文件:Logic.java   
private void populateChildNodes(grdThermalRow parRow, ThermalActivityVoCollection voThermalActivityColl)
{
    parRow.getRows().clear();
    //  reselect parent
    parRow.setValue(form.getLocalContext().getSelectedParentInstance());
    form.grdThermal().setValue(parRow.getValue());
    if (voThermalActivityColl == null || voThermalActivityColl.size()<=0) return;       

    voThermalActivityColl.sort();
    for(int i=0; i<voThermalActivityColl.size(); i++)
    {
        if (parRow != null)
        {
            GenForm.grdThermalRow childRow = parRow.getRows().newRow();
            populateChildNode(childRow, voThermalActivityColl.get(i));              
        }
    }

    parRow.setExpanded(true);
}
项目:AvoinApotti    文件:Logic.java   
private void populateChildCollectionFromGrid(ThermalVo voThermal)
{
    if (form.grdThermal().getValue() == null) return;

    if (voThermal.getThermalActivity() == null)
        voThermal.setThermalActivity(new ThermalActivityVoCollection());

    GenForm.grdThermalRow parentRow = form.grdThermal().getValue() instanceof ThermalShortVo || form.grdThermal().getValue() instanceof ThermalVo ? 
                                        form.grdThermal().getSelectedRow() : form.grdThermal().getSelectedRow().getParentRow();     

       if (parentRow.getRows().size() > 0 )
        voThermal.getThermalActivity().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        voThermal.getThermalActivity().add((ThermalActivityVo) parentRow.getRows().get(i).getValue());
       }
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildNodes(grdThermalRow parRow, ThermalActivityVoCollection voThermalActivityColl)
{
    parRow.getRows().clear();
    //  reselect parent
    parRow.setValue(form.getLocalContext().getSelectedParentInstance());
    form.grdThermal().setValue(parRow.getValue());
    if (voThermalActivityColl == null || voThermalActivityColl.size()<=0) return;       

    voThermalActivityColl.sort();
    for(int i=0; i<voThermalActivityColl.size(); i++)
    {
        if (parRow != null)
        {
            GenForm.grdThermalRow childRow = parRow.getRows().newRow();
            populateChildNode(childRow, voThermalActivityColl.get(i));              
        }
    }

    parRow.setExpanded(true);
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildCollectionFromGrid(ThermalVo voThermal)
{
    if (form.grdThermal().getValue() == null) return;

    if (voThermal.getThermalActivity() == null)
        voThermal.setThermalActivity(new ThermalActivityVoCollection());

    GenForm.grdThermalRow parentRow = form.grdThermal().getValue() instanceof ThermalShortVo || form.grdThermal().getValue() instanceof ThermalVo ? 
                                        form.grdThermal().getSelectedRow() : form.grdThermal().getSelectedRow().getParentRow();     

       if (parentRow.getRows().size() > 0 )
        voThermal.getThermalActivity().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        voThermal.getThermalActivity().add((ThermalActivityVo) parentRow.getRows().get(i).getValue());
       }
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildNodes(grdThermalRow parRow, ThermalActivityVoCollection voThermalActivityColl)
{
    parRow.getRows().clear();
    //  reselect parent
    parRow.setValue(form.getLocalContext().getSelectedParentInstance());
    form.grdThermal().setValue(parRow.getValue());
    if (voThermalActivityColl == null || voThermalActivityColl.size()<=0) return;       

    voThermalActivityColl.sort();
    for(int i=0; i<voThermalActivityColl.size(); i++)
    {
        if (parRow != null)
        {
            GenForm.grdThermalRow childRow = parRow.getRows().newRow();
            populateChildNode(childRow, voThermalActivityColl.get(i));              
        }
    }

    parRow.setExpanded(true);
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildCollectionFromGrid(ThermalVo voThermal)
{
    if (form.grdThermal().getValue() == null) return;

    if (voThermal.getThermalActivity() == null)
        voThermal.setThermalActivity(new ThermalActivityVoCollection());

    GenForm.grdThermalRow parentRow = form.grdThermal().getValue() instanceof ThermalShortVo || form.grdThermal().getValue() instanceof ThermalVo ? 
                                        form.grdThermal().getSelectedRow() : form.grdThermal().getSelectedRow().getParentRow();     

       if (parentRow.getRows().size() > 0 )
        voThermal.getThermalActivity().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        voThermal.getThermalActivity().add((ThermalActivityVo) parentRow.getRows().get(i).getValue());
       }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateChildNodes(grdThermalRow parRow, ThermalActivityVoCollection voThermalActivityColl)
{
    parRow.getRows().clear();
    //  reselect parent
    parRow.setValue(form.getLocalContext().getSelectedParentInstance());
    form.grdThermal().setValue(parRow.getValue());
    if (voThermalActivityColl == null || voThermalActivityColl.size()<=0) return;       

    voThermalActivityColl.sort();
    for(int i=0; i<voThermalActivityColl.size(); i++)
    {
        if (parRow != null)
        {
            GenForm.grdThermalRow childRow = parRow.getRows().newRow();
            populateChildNode(childRow, voThermalActivityColl.get(i));              
        }
    }

    parRow.setExpanded(true);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateChildCollectionFromGrid(ThermalVo voThermal)
{
    if (form.grdThermal().getValue() == null) return;

    if (voThermal.getThermalActivity() == null)
        voThermal.setThermalActivity(new ThermalActivityVoCollection());

    GenForm.grdThermalRow parentRow = form.grdThermal().getValue() instanceof ThermalShortVo || form.grdThermal().getValue() instanceof ThermalVo ? 
                                        form.grdThermal().getSelectedRow() : form.grdThermal().getSelectedRow().getParentRow();     

       if (parentRow.getRows().size() > 0 )
        voThermal.getThermalActivity().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        voThermal.getThermalActivity().add((ThermalActivityVo) parentRow.getRows().get(i).getValue());
       }
}
项目:AvoinApotti    文件:Logic.java   
private void newParentInstance()
{
    ThermalVo voNewParent = new ThermalVo(); 
    Hcp voHcp = (Hcp) domain.getHcpUser();
    if(voHcp != null)
        voNewParent.setAuthoringCP(voHcp);

    voNewParent.setAuthoringDateTime(new DateTime());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setThermalActivity(new ThermalActivityVoCollection());
    populateParentInstanceControls(voNewParent);        
    form.getLocalContext().setSelectedParentInstance(voNewParent);
}
项目:openMAXIMS    文件:Logic.java   
private void newParentInstance()
{
    ThermalVo voNewParent = new ThermalVo(); 
    Hcp voHcp = (Hcp) domain.getHcpUser();
    if(voHcp != null)
        voNewParent.setAuthoringCP(voHcp);

    voNewParent.setAuthoringDateTime(new DateTime());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setThermalActivity(new ThermalActivityVoCollection());
    populateParentInstanceControls(voNewParent);        
    form.getLocalContext().setSelectedParentInstance(voNewParent);
}
项目:openMAXIMS    文件:Logic.java   
private void newParentInstance()
{
    ThermalVo voNewParent = new ThermalVo(); 
    Hcp voHcp = (Hcp) domain.getHcpUser();
    if(voHcp != null)
        voNewParent.setAuthoringCP(voHcp);

    voNewParent.setAuthoringDateTime(new DateTime());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setThermalActivity(new ThermalActivityVoCollection());
    populateParentInstanceControls(voNewParent);        
    form.getLocalContext().setSelectedParentInstance(voNewParent);
}
项目:openmaxims-linux    文件:Logic.java   
private void newParentInstance()
{
    ThermalVo voNewParent = new ThermalVo(); 
    Hcp voHcp = (Hcp) domain.getHcpUser();
    if(voHcp != null)
        voNewParent.setAuthoringCP(voHcp);

    voNewParent.setAuthoringDateTime(new DateTime());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setThermalActivity(new ThermalActivityVoCollection());
    populateParentInstanceControls(voNewParent);        
    form.getLocalContext().setSelectedParentInstance(voNewParent);
}