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

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

    ElectrotherapyUltrasoundShortVo voParentShort = new ElectrotherapyUltrasoundShortVo();
    voParentShort.setAuthoringCP(voNewParent.getAuthoringCP());
    voParentShort.setAuthoringDateTime(voNewParent.getAuthoringDateTime());
    voParentShort.setClinicalContact(voNewParent.getClinicalContact());

    GenForm.grdHierarchyRow parentRow = form.grdHierarchy().getRows().newRow();         
    parentRow.setColTarget(voParentShort.getAuthoringDateTime().toString()+ " - " + 
                           voParentShort.getAuthoringCP().toString());          
    parentRow.setValue(voParentShort);
    parentRow.setBackColor(Color.Beige);
    form.getLocalContext().setGoldenInstanceSelected(Boolean.TRUE);
    parentRow.setExpanded(true);
    form.grdHierarchy().setValue(voParentShort);        
}
项目:AvoinApotti    文件:Logic.java   
private void populateChildCollectionFromGrid(ElectrotherapyUltrasoundVo voElectrotherapyUltrasound) 
{
    if (form.grdHierarchy().getValue() == null) return;

    if (voElectrotherapyUltrasound.getUltrasoundTreatments() == null)
        voElectrotherapyUltrasound.setUltrasoundTreatments(new ElectrotherapyUltrasoundTreatmentVoCollection());

    GenForm.grdHierarchyRow parentRow = form.grdHierarchy().getValue() instanceof ElectrotherapyUltrasoundShortVo ? 
                                        form.grdHierarchy().getSelectedRow() : form.grdHierarchy().getSelectedRow().getParentRow();     

       if (parentRow.getRows().size() > 0 )
        voElectrotherapyUltrasound.getUltrasoundTreatments().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        voElectrotherapyUltrasound.getUltrasoundTreatments().add((ElectrotherapyUltrasoundTreatmentVo) parentRow.getRows().get(i).getValue());
       }
}
项目:AvoinApotti    文件:UltrasoundImpl.java   
public ElectrotherapyUltrasoundVo save(ElectrotherapyUltrasoundVo voElectroUltrasound) throws StaleObjectException, UniqueKeyViolationException 
{
    if(!voElectroUltrasound.isValidated())
        throw new DomainRuntimeException("This Ultrasound has not been validated");

    DomainFactory factory = getDomainFactory();

    if (voElectroUltrasound.getID_ElectrotherapyUltrasound() == null)//Inserting a record
    {
        ElectrotherapyUltrasoundVo vo = getUltrasoundByClinicalContact(voElectroUltrasound.getClinicalContact());
        if(vo != null)
            throw new UniqueKeyViolationException("The screen will be refreshed");
    }

    ElectrotherapyUltrasound doUltrasound = ElectrotherapyUltrasoundVoAssembler.extractElectrotherapyUltrasound(factory, voElectroUltrasound);
    factory.save(doUltrasound);

    return ElectrotherapyUltrasoundVoAssembler.create(doUltrasound);
}
项目:openMAXIMS    文件:Logic.java   
private void newParentNode(ElectrotherapyUltrasoundVo voNewParent) 
{
    if (voNewParent == null) return;

    ElectrotherapyUltrasoundShortVo voParentShort = new ElectrotherapyUltrasoundShortVo();
    voParentShort.setAuthoringCP(voNewParent.getAuthoringCP());
    voParentShort.setAuthoringDateTime(voNewParent.getAuthoringDateTime());
    voParentShort.setClinicalContact(voNewParent.getClinicalContact());

    GenForm.grdHierarchyRow parentRow = form.grdHierarchy().getRows().newRow();         
    parentRow.setColTarget(voParentShort.getAuthoringDateTime().toString()+ " - " + 
                           voParentShort.getAuthoringCP().toString());          
    parentRow.setValue(voParentShort);
    parentRow.setBackColor(Color.Beige);
    form.getLocalContext().setGoldenInstanceSelected(Boolean.TRUE);
    parentRow.setExpanded(true);
    form.grdHierarchy().setValue(voParentShort);        
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildCollectionFromGrid(ElectrotherapyUltrasoundVo voElectrotherapyUltrasound) 
{
    if (form.grdHierarchy().getValue() == null) return;

    if (voElectrotherapyUltrasound.getUltrasoundTreatments() == null)
        voElectrotherapyUltrasound.setUltrasoundTreatments(new ElectrotherapyUltrasoundTreatmentVoCollection());

    GenForm.grdHierarchyRow parentRow = form.grdHierarchy().getValue() instanceof ElectrotherapyUltrasoundShortVo ? 
                                        form.grdHierarchy().getSelectedRow() : form.grdHierarchy().getSelectedRow().getParentRow();     

       if (parentRow.getRows().size() > 0 )
        voElectrotherapyUltrasound.getUltrasoundTreatments().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        voElectrotherapyUltrasound.getUltrasoundTreatments().add((ElectrotherapyUltrasoundTreatmentVo) parentRow.getRows().get(i).getValue());
       }
}
项目:openMAXIMS    文件:UltrasoundImpl.java   
public ElectrotherapyUltrasoundVo save(ElectrotherapyUltrasoundVo voElectroUltrasound) throws StaleObjectException, UniqueKeyViolationException 
{
    if(!voElectroUltrasound.isValidated())
        throw new DomainRuntimeException("This Ultrasound has not been validated");

    DomainFactory factory = getDomainFactory();

    if (voElectroUltrasound.getID_ElectrotherapyUltrasound() == null)//Inserting a record
    {
        ElectrotherapyUltrasoundVo vo = getUltrasoundByClinicalContact(voElectroUltrasound.getClinicalContact());
        if(vo != null)
            throw new UniqueKeyViolationException("The screen will be refreshed");
    }

    ElectrotherapyUltrasound doUltrasound = ElectrotherapyUltrasoundVoAssembler.extractElectrotherapyUltrasound(factory, voElectroUltrasound);
    factory.save(doUltrasound);

    return ElectrotherapyUltrasoundVoAssembler.create(doUltrasound);
}
项目:openMAXIMS    文件:Logic.java   
private void newParentNode(ElectrotherapyUltrasoundVo voNewParent) 
{
    if (voNewParent == null) return;

    ElectrotherapyUltrasoundShortVo voParentShort = new ElectrotherapyUltrasoundShortVo();
    voParentShort.setAuthoringCP(voNewParent.getAuthoringCP());
    voParentShort.setAuthoringDateTime(voNewParent.getAuthoringDateTime());
    voParentShort.setClinicalContact(voNewParent.getClinicalContact());

    GenForm.grdHierarchyRow parentRow = form.grdHierarchy().getRows().newRow();         
    parentRow.setColTarget(voParentShort.getAuthoringDateTime().toString()+ " - " + 
                           voParentShort.getAuthoringCP().toString());          
    parentRow.setValue(voParentShort);
    parentRow.setBackColor(Color.Beige);
    form.getLocalContext().setGoldenInstanceSelected(Boolean.TRUE);
    parentRow.setExpanded(true);
    form.grdHierarchy().setValue(voParentShort);        
}
项目:openMAXIMS    文件:Logic.java   
private void populateChildCollectionFromGrid(ElectrotherapyUltrasoundVo voElectrotherapyUltrasound) 
{
    if (form.grdHierarchy().getValue() == null) return;

    if (voElectrotherapyUltrasound.getUltrasoundTreatments() == null)
        voElectrotherapyUltrasound.setUltrasoundTreatments(new ElectrotherapyUltrasoundTreatmentVoCollection());

    GenForm.grdHierarchyRow parentRow = form.grdHierarchy().getValue() instanceof ElectrotherapyUltrasoundShortVo ? 
                                        form.grdHierarchy().getSelectedRow() : form.grdHierarchy().getSelectedRow().getParentRow();     

       if (parentRow.getRows().size() > 0 )
        voElectrotherapyUltrasound.getUltrasoundTreatments().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        voElectrotherapyUltrasound.getUltrasoundTreatments().add((ElectrotherapyUltrasoundTreatmentVo) parentRow.getRows().get(i).getValue());
       }
}
项目:openMAXIMS    文件:UltrasoundImpl.java   
public ElectrotherapyUltrasoundVo save(ElectrotherapyUltrasoundVo voElectroUltrasound) throws StaleObjectException, UniqueKeyViolationException 
{
    if(!voElectroUltrasound.isValidated())
        throw new DomainRuntimeException("This Ultrasound has not been validated");

    DomainFactory factory = getDomainFactory();

    if (voElectroUltrasound.getID_ElectrotherapyUltrasound() == null)//Inserting a record
    {
        ElectrotherapyUltrasoundVo vo = getUltrasoundByClinicalContact(voElectroUltrasound.getClinicalContact());
        if(vo != null)
            throw new UniqueKeyViolationException("The screen will be refreshed");
    }

    ElectrotherapyUltrasound doUltrasound = ElectrotherapyUltrasoundVoAssembler.extractElectrotherapyUltrasound(factory, voElectroUltrasound);
    factory.save(doUltrasound);

    return ElectrotherapyUltrasoundVoAssembler.create(doUltrasound);
}
项目:openmaxims-linux    文件:Logic.java   
private void newParentNode(ElectrotherapyUltrasoundVo voNewParent) 
{
    if (voNewParent == null) return;

    ElectrotherapyUltrasoundShortVo voParentShort = new ElectrotherapyUltrasoundShortVo();
    voParentShort.setAuthoringCP(voNewParent.getAuthoringCP());
    voParentShort.setAuthoringDateTime(voNewParent.getAuthoringDateTime());
    voParentShort.setClinicalContact(voNewParent.getClinicalContact());

    GenForm.grdHierarchyRow parentRow = form.grdHierarchy().getRows().newRow();         
    parentRow.setColTarget(voParentShort.getAuthoringDateTime().toString()+ " - " + 
                           voParentShort.getAuthoringCP().toString());          
    parentRow.setValue(voParentShort);
    parentRow.setBackColor(Color.Beige);
    form.getLocalContext().setGoldenInstanceSelected(Boolean.TRUE);
    parentRow.setExpanded(true);
    form.grdHierarchy().setValue(voParentShort);        
}
项目:openmaxims-linux    文件:Logic.java   
private void populateChildCollectionFromGrid(ElectrotherapyUltrasoundVo voElectrotherapyUltrasound) 
{
    if (form.grdHierarchy().getValue() == null) return;

    if (voElectrotherapyUltrasound.getUltrasoundTreatments() == null)
        voElectrotherapyUltrasound.setUltrasoundTreatments(new ElectrotherapyUltrasoundTreatmentVoCollection());

    GenForm.grdHierarchyRow parentRow = form.grdHierarchy().getValue() instanceof ElectrotherapyUltrasoundShortVo ? 
                                        form.grdHierarchy().getSelectedRow() : form.grdHierarchy().getSelectedRow().getParentRow();     

       if (parentRow.getRows().size() > 0 )
        voElectrotherapyUltrasound.getUltrasoundTreatments().clear();

    for (int i=0; i < parentRow.getRows().size(); i++)
       {
        voElectrotherapyUltrasound.getUltrasoundTreatments().add((ElectrotherapyUltrasoundTreatmentVo) parentRow.getRows().get(i).getValue());
       }
}
项目:openmaxims-linux    文件:UltrasoundImpl.java   
public ElectrotherapyUltrasoundVo save(ElectrotherapyUltrasoundVo voElectroUltrasound) throws StaleObjectException, UniqueKeyViolationException 
{
    if(!voElectroUltrasound.isValidated())
        throw new DomainRuntimeException("This Ultrasound has not been validated");

    DomainFactory factory = getDomainFactory();

    if (voElectroUltrasound.getID_ElectrotherapyUltrasound() == null)//Inserting a record
    {
        ElectrotherapyUltrasoundVo vo = getUltrasoundByClinicalContact(voElectroUltrasound.getClinicalContact());
        if(vo != null)
            throw new UniqueKeyViolationException("The screen will be refreshed");
    }

    ElectrotherapyUltrasound doUltrasound = ElectrotherapyUltrasoundVoAssembler.extractElectrotherapyUltrasound(factory, voElectroUltrasound);
    factory.save(doUltrasound);

    return ElectrotherapyUltrasoundVoAssembler.create(doUltrasound);
}
项目:AvoinApotti    文件:Logic.java   
private void newParentInstance() 
{
    ElectrotherapyUltrasoundVo voNewParent = new ElectrotherapyUltrasoundVo();      
    voNewParent.setAuthoringCP(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare().getResponsibleHCP());
    voNewParent.setAuthoringDateTime(new DateTime());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setUltrasoundTreatments(new ElectrotherapyUltrasoundTreatmentVoCollection());
    populateParentInstanceControls(voNewParent);        
    form.getLocalContext().setSelectedParentInstance(voNewParent);                  
}
项目:AvoinApotti    文件:Logic.java   
/**
* @calls the Domain Get for the selected node..
* 
*/  
private void expandParentNode(GenForm.grdHierarchyRow selectedRow)
{
    if (selectedRow.getValue() instanceof ElectrotherapyUltrasoundShortVo == false ) return;

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

    ElectrotherapyUltrasoundVo voParentInstance = form.getLocalContext().getSelectedParentInstance();               
    if(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(Boolean.TRUE);
        form.getLocalContext().setGoldenInstanceSelected(Boolean.TRUE);
        selectedRow.setBackColor(Color.Beige);          
    }

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

    populateParentInstanceControls(voParentInstance);       

}
项目:AvoinApotti    文件:Logic.java   
private void populateParentInstanceControls(ElectrotherapyUltrasoundVo voUltraParent)
{
    if(voUltraParent != null)
    {
        form.ctnUltra().lyrUltra().tabHeader().dtimAuthoringDateTime().setValue(voUltraParent.getAuthoringDateTime());
        form.ctnUltra().lyrUltra().tabHeader().qmbAuthoringCP().newRow(voUltraParent.getAuthoringCP(), voUltraParent.getAuthoringCP().toString());
        form.ctnUltra().lyrUltra().tabHeader().qmbAuthoringCP().setValue(voUltraParent.getAuthoringCP());
        form.ansWarning().setValue(voUltraParent.getWarningGiven());
    }
}
项目:AvoinApotti    文件:UltrasoundImpl.java   
/**
 * WDEV-13648
 * Get ElectrotherapyUltrasoundVo record by id
 */
public ElectrotherapyUltrasoundVo getUltrasound(ElectrotherapyUltrasoundRefVo ultrasound)
{
    // Check parameter
    if (ultrasound == null || !ultrasound.getID_ElectrotherapyUltrasoundIsNotNull())
        return null;

    return ElectrotherapyUltrasoundVoAssembler.create((ElectrotherapyUltrasound) getDomainFactory().getDomainObject(ElectrotherapyUltrasound.class, ultrasound.getID_ElectrotherapyUltrasound()));
}
项目:AvoinApotti    文件:UltrasoundImpl.java   
private ElectrotherapyUltrasoundVo getUltrasoundByClinicalContact(ClinicalContactShortVo voClinicalContact)
{
    if(voClinicalContact == null)
        throw new CodingRuntimeException("ElectrotherapyUltrasound Filter not provided for get call. ");

    String hql = "from ElectrotherapyUltrasound e where e.clinicalContact.id = :CLINICAL_CONTACT_ID and e.isRIE is null";

    return ElectrotherapyUltrasoundVoAssembler.create((ElectrotherapyUltrasound) getDomainFactory().findFirst(hql, "CLINICAL_CONTACT_ID", voClinicalContact.getID_ClinicalContact()));
}
项目:openMAXIMS    文件:Logic.java   
private void newParentInstance() 
{
    ElectrotherapyUltrasoundVo voNewParent = new ElectrotherapyUltrasoundVo();      
    voNewParent.setAuthoringCP(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare().getResponsibleHCP());
    voNewParent.setAuthoringDateTime(new DateTime());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setUltrasoundTreatments(new ElectrotherapyUltrasoundTreatmentVoCollection());
    populateParentInstanceControls(voNewParent);        
    form.getLocalContext().setSelectedParentInstance(voNewParent);                  
}
项目:openMAXIMS    文件:Logic.java   
/**
* @calls the Domain Get for the selected node..
* 
*/  
private void expandParentNode(GenForm.grdHierarchyRow selectedRow)
{
    if (selectedRow.getValue() instanceof ElectrotherapyUltrasoundShortVo == false ) return;

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

    ElectrotherapyUltrasoundVo voParentInstance = form.getLocalContext().getSelectedParentInstance();               
    if(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(Boolean.TRUE);
        form.getLocalContext().setGoldenInstanceSelected(Boolean.TRUE);
        selectedRow.setBackColor(Color.Beige);          
    }

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

    populateParentInstanceControls(voParentInstance);       

}
项目:openMAXIMS    文件:Logic.java   
private void populateParentInstanceControls(ElectrotherapyUltrasoundVo voUltraParent)
{
    if(voUltraParent != null)
    {
        form.ctnUltra().lyrUltra().tabHeader().dtimAuthoringDateTime().setValue(voUltraParent.getAuthoringDateTime());
        form.ctnUltra().lyrUltra().tabHeader().qmbAuthoringCP().newRow(voUltraParent.getAuthoringCP(), voUltraParent.getAuthoringCP().toString());
        form.ctnUltra().lyrUltra().tabHeader().qmbAuthoringCP().setValue(voUltraParent.getAuthoringCP());
        form.ansWarning().setValue(voUltraParent.getWarningGiven());
    }
}
项目:openMAXIMS    文件:UltrasoundImpl.java   
/**
 * WDEV-13648
 * Get ElectrotherapyUltrasoundVo record by id
 */
public ElectrotherapyUltrasoundVo getUltrasound(ElectrotherapyUltrasoundRefVo ultrasound)
{
    // Check parameter
    if (ultrasound == null || !ultrasound.getID_ElectrotherapyUltrasoundIsNotNull())
        return null;

    return ElectrotherapyUltrasoundVoAssembler.create((ElectrotherapyUltrasound) getDomainFactory().getDomainObject(ElectrotherapyUltrasound.class, ultrasound.getID_ElectrotherapyUltrasound()));
}
项目:openMAXIMS    文件:UltrasoundImpl.java   
private ElectrotherapyUltrasoundVo getUltrasoundByClinicalContact(ClinicalContactShortVo voClinicalContact)
{
    if(voClinicalContact == null)
        throw new CodingRuntimeException("ElectrotherapyUltrasound Filter not provided for get call. ");

    String hql = "from ElectrotherapyUltrasound e where e.clinicalContact.id = :CLINICAL_CONTACT_ID and e.isRIE is null";

    return ElectrotherapyUltrasoundVoAssembler.create((ElectrotherapyUltrasound) getDomainFactory().findFirst(hql, "CLINICAL_CONTACT_ID", voClinicalContact.getID_ClinicalContact()));
}
项目:openMAXIMS    文件:Logic.java   
private void newParentInstance() 
{
    ElectrotherapyUltrasoundVo voNewParent = new ElectrotherapyUltrasoundVo();      
    voNewParent.setAuthoringCP(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare().getResponsibleHCP());
    voNewParent.setAuthoringDateTime(new DateTime());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setUltrasoundTreatments(new ElectrotherapyUltrasoundTreatmentVoCollection());
    populateParentInstanceControls(voNewParent);        
    form.getLocalContext().setSelectedParentInstance(voNewParent);                  
}
项目:openMAXIMS    文件:Logic.java   
/**
* @calls the Domain Get for the selected node..
* 
*/  
private void expandParentNode(GenForm.grdHierarchyRow selectedRow)
{
    if (selectedRow.getValue() instanceof ElectrotherapyUltrasoundShortVo == false ) return;

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

    ElectrotherapyUltrasoundVo voParentInstance = form.getLocalContext().getSelectedParentInstance();               
    if(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(Boolean.TRUE);
        form.getLocalContext().setGoldenInstanceSelected(Boolean.TRUE);
        selectedRow.setBackColor(Color.Beige);          
    }

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

    populateParentInstanceControls(voParentInstance);       

}
项目:openMAXIMS    文件:Logic.java   
private void populateParentInstanceControls(ElectrotherapyUltrasoundVo voUltraParent)
{
    if(voUltraParent != null)
    {
        form.ctnUltra().lyrUltra().tabHeader().dtimAuthoringDateTime().setValue(voUltraParent.getAuthoringDateTime());
        form.ctnUltra().lyrUltra().tabHeader().qmbAuthoringCP().newRow(voUltraParent.getAuthoringCP(), voUltraParent.getAuthoringCP().toString());
        form.ctnUltra().lyrUltra().tabHeader().qmbAuthoringCP().setValue(voUltraParent.getAuthoringCP());
        form.ansWarning().setValue(voUltraParent.getWarningGiven());
    }
}
项目:openMAXIMS    文件:UltrasoundImpl.java   
/**
 * WDEV-13648
 * Get ElectrotherapyUltrasoundVo record by id
 */
public ElectrotherapyUltrasoundVo getUltrasound(ElectrotherapyUltrasoundRefVo ultrasound)
{
    // Check parameter
    if (ultrasound == null || !ultrasound.getID_ElectrotherapyUltrasoundIsNotNull())
        return null;

    return ElectrotherapyUltrasoundVoAssembler.create((ElectrotherapyUltrasound) getDomainFactory().getDomainObject(ElectrotherapyUltrasound.class, ultrasound.getID_ElectrotherapyUltrasound()));
}
项目:openMAXIMS    文件:UltrasoundImpl.java   
private ElectrotherapyUltrasoundVo getUltrasoundByClinicalContact(ClinicalContactShortVo voClinicalContact)
{
    if(voClinicalContact == null)
        throw new CodingRuntimeException("ElectrotherapyUltrasound Filter not provided for get call. ");

    String hql = "from ElectrotherapyUltrasound e where e.clinicalContact.id = :CLINICAL_CONTACT_ID and e.isRIE is null";

    return ElectrotherapyUltrasoundVoAssembler.create((ElectrotherapyUltrasound) getDomainFactory().findFirst(hql, "CLINICAL_CONTACT_ID", voClinicalContact.getID_ClinicalContact()));
}
项目:openmaxims-linux    文件:Logic.java   
private void newParentInstance() 
{
    ElectrotherapyUltrasoundVo voNewParent = new ElectrotherapyUltrasoundVo();      
    voNewParent.setAuthoringCP(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare().getResponsibleHCP());
    voNewParent.setAuthoringDateTime(new DateTime());
    voNewParent.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voNewParent.setUltrasoundTreatments(new ElectrotherapyUltrasoundTreatmentVoCollection());
    populateParentInstanceControls(voNewParent);        
    form.getLocalContext().setSelectedParentInstance(voNewParent);                  
}
项目:openmaxims-linux    文件:Logic.java   
/**
* @calls the Domain Get for the selected node..
* 
*/  
private void expandParentNode(GenForm.grdHierarchyRow selectedRow)
{
    if (selectedRow.getValue() instanceof ElectrotherapyUltrasoundShortVo == false ) return;

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

    ElectrotherapyUltrasoundVo voParentInstance = form.getLocalContext().getSelectedParentInstance();               
    if(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(Boolean.TRUE);
        form.getLocalContext().setGoldenInstanceSelected(Boolean.TRUE);
        selectedRow.setBackColor(Color.Beige);          
    }

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

    populateParentInstanceControls(voParentInstance);       

}
项目:openmaxims-linux    文件:Logic.java   
private void populateParentInstanceControls(ElectrotherapyUltrasoundVo voUltraParent)
{
    if(voUltraParent != null)
    {
        form.ctnUltra().lyrUltra().tabHeader().dtimAuthoringDateTime().setValue(voUltraParent.getAuthoringDateTime());
        form.ctnUltra().lyrUltra().tabHeader().qmbAuthoringCP().newRow(voUltraParent.getAuthoringCP(), voUltraParent.getAuthoringCP().toString());
        form.ctnUltra().lyrUltra().tabHeader().qmbAuthoringCP().setValue(voUltraParent.getAuthoringCP());
        form.ansWarning().setValue(voUltraParent.getWarningGiven());
    }
}
项目:openmaxims-linux    文件:UltrasoundImpl.java   
/**
 * WDEV-13648
 * Get ElectrotherapyUltrasoundVo record by id
 */
public ElectrotherapyUltrasoundVo getUltrasound(ElectrotherapyUltrasoundRefVo ultrasound)
{
    // Check parameter
    if (ultrasound == null || !ultrasound.getID_ElectrotherapyUltrasoundIsNotNull())
        return null;

    return ElectrotherapyUltrasoundVoAssembler.create((ElectrotherapyUltrasound) getDomainFactory().getDomainObject(ElectrotherapyUltrasound.class, ultrasound.getID_ElectrotherapyUltrasound()));
}
项目:openmaxims-linux    文件:UltrasoundImpl.java   
private ElectrotherapyUltrasoundVo getUltrasoundByClinicalContact(ClinicalContactShortVo voClinicalContact)
{
    if(voClinicalContact == null)
        throw new CodingRuntimeException("ElectrotherapyUltrasound Filter not provided for get call. ");

    String hql = "from ElectrotherapyUltrasound e where e.clinicalContact.id = :CLINICAL_CONTACT_ID and e.isRIE is null";

    return ElectrotherapyUltrasoundVoAssembler.create((ElectrotherapyUltrasound) getDomainFactory().findFirst(hql, "CLINICAL_CONTACT_ID", voClinicalContact.getID_ClinicalContact()));
}
项目:AvoinApotti    文件:Logic.java   
private ElectrotherapyUltrasoundVo getParentFromDomain(ElectrotherapyUltrasoundShortVo voEUltraShort)
{               
    return domain.getUltrasound(voEUltraShort);                     
}
项目:AvoinApotti    文件:Logic.java   
private void populateParentInstanceData(ElectrotherapyUltrasoundVo voEUltrasound) 
{
    voEUltrasound.setAuthoringCP(form.ctnUltra().lyrUltra().tabHeader().qmbAuthoringCP().getValue());
    voEUltrasound.setAuthoringDateTime(form.ctnUltra().lyrUltra().tabHeader().dtimAuthoringDateTime().getValue());      
    voEUltrasound.setWarningGiven(form.ansWarning().getValue());
}
项目:openMAXIMS    文件:Logic.java   
private ElectrotherapyUltrasoundVo getParentFromDomain(ElectrotherapyUltrasoundShortVo voEUltraShort)
{               
    return domain.getUltrasound(voEUltraShort);                     
}
项目:openMAXIMS    文件:Logic.java   
private void populateParentInstanceData(ElectrotherapyUltrasoundVo voEUltrasound) 
{
    voEUltrasound.setAuthoringCP(form.ctnUltra().lyrUltra().tabHeader().qmbAuthoringCP().getValue());
    voEUltrasound.setAuthoringDateTime(form.ctnUltra().lyrUltra().tabHeader().dtimAuthoringDateTime().getValue());      
    voEUltrasound.setWarningGiven(form.ansWarning().getValue());
}
项目:openMAXIMS    文件:Logic.java   
private ElectrotherapyUltrasoundVo getParentFromDomain(ElectrotherapyUltrasoundShortVo voEUltraShort)
{               
    return domain.getUltrasound(voEUltraShort);                     
}
项目:openMAXIMS    文件:Logic.java   
private void populateParentInstanceData(ElectrotherapyUltrasoundVo voEUltrasound) 
{
    voEUltrasound.setAuthoringCP(form.ctnUltra().lyrUltra().tabHeader().qmbAuthoringCP().getValue());
    voEUltrasound.setAuthoringDateTime(form.ctnUltra().lyrUltra().tabHeader().dtimAuthoringDateTime().getValue());      
    voEUltrasound.setWarningGiven(form.ansWarning().getValue());
}
项目:openmaxims-linux    文件:Logic.java   
private ElectrotherapyUltrasoundVo getParentFromDomain(ElectrotherapyUltrasoundShortVo voEUltraShort)
{               
    return domain.getUltrasound(voEUltraShort);                     
}
项目:openmaxims-linux    文件:Logic.java   
private void populateParentInstanceData(ElectrotherapyUltrasoundVo voEUltrasound) 
{
    voEUltrasound.setAuthoringCP(form.ctnUltra().lyrUltra().tabHeader().qmbAuthoringCP().getValue());
    voEUltrasound.setAuthoringDateTime(form.ctnUltra().lyrUltra().tabHeader().dtimAuthoringDateTime().getValue());      
    voEUltrasound.setWarningGiven(form.ansWarning().getValue());
}