Java 类ims.core.vo.lookups.AuscultationFindingCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void setSelectedAuscultations() {
    AuscultationFindingCollection collFindings = form.getLocalContext().getRACPPastMedicalHistoryVo().getExamFindings();
    if(collFindings != null){
        boolean bFindingsFound = false; 
        for (int i = 0; i < collFindings.size(); i++)
        {
            bFindingsFound = false;
            for (int j = 0; j < form.grdAuscultation().getRows().size(); j++)
            {
                grdAuscultationRow rowParent = form.grdAuscultation().getRows().get(j);
                bFindingsFound = searchTreeHierarchy(rowParent, collFindings.get(i));
                if(bFindingsFound)
                    j = form.grdAuscultation().getRows().size();
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void setSelectedAuscultations() {
    AuscultationFindingCollection collFindings = form.getLocalContext().getRACPPastMedicalHistoryVo().getExamFindings();
    if(collFindings != null){
        boolean bFindingsFound = false; 
        for (int i = 0; i < collFindings.size(); i++)
        {
            bFindingsFound = false;
            for (int j = 0; j < form.grdAuscultation().getRows().size(); j++)
            {
                grdAuscultationRow rowParent = form.grdAuscultation().getRows().get(j);
                bFindingsFound = searchTreeHierarchy(rowParent, collFindings.get(i));
                if(bFindingsFound)
                    j = form.grdAuscultation().getRows().size();
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void setSelectedAuscultations() {
    AuscultationFindingCollection collFindings = form.getLocalContext().getRACPPastMedicalHistoryVo().getExamFindings();
    if(collFindings != null){
        boolean bFindingsFound = false; 
        for (int i = 0; i < collFindings.size(); i++)
        {
            bFindingsFound = false;
            for (int j = 0; j < form.grdAuscultation().getRows().size(); j++)
            {
                grdAuscultationRow rowParent = form.grdAuscultation().getRows().get(j);
                bFindingsFound = searchTreeHierarchy(rowParent, collFindings.get(i));
                if(bFindingsFound)
                    j = form.grdAuscultation().getRows().size();
            }
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void setSelectedAuscultations() {
    AuscultationFindingCollection collFindings = form.getLocalContext().getRACPPastMedicalHistoryVo().getExamFindings();
    if(collFindings != null){
        boolean bFindingsFound = false; 
        for (int i = 0; i < collFindings.size(); i++)
        {
            bFindingsFound = false;
            for (int j = 0; j < form.grdAuscultation().getRows().size(); j++)
            {
                grdAuscultationRow rowParent = form.grdAuscultation().getRows().get(j);
                bFindingsFound = searchTreeHierarchy(rowParent, collFindings.get(i));
                if(bFindingsFound)
                    j = form.grdAuscultation().getRows().size();
            }
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
private boolean hasSelectedItem(AuscultationFinding finding, AuscultationFindingCollection findings) {
    form.getLocalContext().setHasSelectedItem(false);

    if(!form.getLocalContext().getHasSelectedItem())
        for (int i = 0; i < findings.size(); i++)
            searchHierarchyForFinding( finding, findings.get(i));

    return form.getLocalContext().getHasSelectedItem();
}
项目:AvoinApotti    文件:Logic.java   
private void loadAuscultationGrid(boolean bOnUpdate) {
    AuscultationFindingCollection collAuscultationFinding = LookupHelper.getAuscultationFinding(domain.getLookupService());
    form.getLocalContext().setAuscultationFindingCollection(collAuscultationFinding);
    form.grdAuscultation().populateTree(collAuscultationFinding);
    form.grdAuscultation().expandAll();
    if(form.getLocalContext().getRACPPastMedicalHistoryVoIsNotNull()
            && form.getLocalContext().getRACPPastMedicalHistoryVo().getExamFindingsIsNotNull()
            && bOnUpdate){
        setSelectedAuscultations(form.getLocalContext().getRACPPastMedicalHistoryVo().getExamFindings());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void setSelectedAuscultations(AuscultationFindingCollection examFindings) {
    for (int i = 0; i < form.grdAuscultation().getRows().size(); i++){
        grdAuscultationRow row = form.grdAuscultation().getRows().get(i);
        AuscultationFinding value = row.getcolFinding();
        for (int j = 0; j < examFindings.size(); j++){
            if(value.equals(examFindings.get(j)))                           
                        row.setcolSelect(true);
            else if(value.equals(examFindings.get(j)))                      
                    row.setcolSelect(true);
        }
        setSelectedChildAuscultations(row, examFindings);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void setSelectedChildAuscultations(grdAuscultationRow row, AuscultationFindingCollection examFindings) {
    for (int i = 0; i < row.getRows().size(); i++){
        grdAuscultationRow childRow = row.getRows().get(i);
        AuscultationFinding value = childRow.getcolFinding();
        for (int j = 0; j < examFindings.size(); j++){
            if(value.equals(examFindings.get(j)))                           
                    childRow.setcolSelect(true);
            else if(value.equals(examFindings.get(j)))                      
                childRow.setcolSelect(true);
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
private AuscultationFindingCollection populateAuscultationFindingsFromGrd(grdAuscultationRowCollection collRows, AuscultationFindingCollection collRACPExamFindings) {

    if(collRows==null)
        collRows = form.grdAuscultation().getRows();

    for (int i = 0; i < collRows.size(); i++)
    {
        grdAuscultationRow rowParent = collRows.get(i);
        if(rowParent.getRows().size()==0){
            if(rowParent.getcolSelect()){
                collRACPExamFindings.add(rowParent.getcolFinding());
            }
        }
        else{
            for (int j = 0; j < rowParent.getRows().size(); j++)
            {
                grdAuscultationRow rowChild = rowParent.getRows().get(j);
                if(rowChild.getcolSelect()){
                    collRACPExamFindings.add(rowChild.getcolFinding());
                }
                if(rowChild.getRows().size()>0)
                    populateAuscultationFindingsFromGrd(rowChild.getRows(), collRACPExamFindings);
            }
        }
    }
    return collRACPExamFindings;
}
项目:openMAXIMS    文件:Logic.java   
private boolean hasSelectedItem(AuscultationFinding finding, AuscultationFindingCollection findings) {
    form.getLocalContext().setHasSelectedItem(false);

    if(!form.getLocalContext().getHasSelectedItem())
        for (int i = 0; i < findings.size(); i++)
            searchHierarchyForFinding( finding, findings.get(i));

    return form.getLocalContext().getHasSelectedItem();
}
项目:openMAXIMS    文件:Logic.java   
private void loadAuscultationGrid(boolean bOnUpdate) {
    AuscultationFindingCollection collAuscultationFinding = LookupHelper.getAuscultationFinding(domain.getLookupService());
    form.getLocalContext().setAuscultationFindingCollection(collAuscultationFinding);
    form.grdAuscultation().populateTree(collAuscultationFinding);
    form.grdAuscultation().expandAll();
    if(form.getLocalContext().getRACPPastMedicalHistoryVoIsNotNull()
            && form.getLocalContext().getRACPPastMedicalHistoryVo().getExamFindingsIsNotNull()
            && bOnUpdate){
        setSelectedAuscultations(form.getLocalContext().getRACPPastMedicalHistoryVo().getExamFindings());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setSelectedAuscultations(AuscultationFindingCollection examFindings) {
    for (int i = 0; i < form.grdAuscultation().getRows().size(); i++){
        grdAuscultationRow row = form.grdAuscultation().getRows().get(i);
        AuscultationFinding value = row.getcolFinding();
        for (int j = 0; j < examFindings.size(); j++){
            if(value.equals(examFindings.get(j)))                           
                        row.setcolSelect(true);
            else if(value.equals(examFindings.get(j)))                      
                    row.setcolSelect(true);
        }
        setSelectedChildAuscultations(row, examFindings);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setSelectedChildAuscultations(grdAuscultationRow row, AuscultationFindingCollection examFindings) {
    for (int i = 0; i < row.getRows().size(); i++){
        grdAuscultationRow childRow = row.getRows().get(i);
        AuscultationFinding value = childRow.getcolFinding();
        for (int j = 0; j < examFindings.size(); j++){
            if(value.equals(examFindings.get(j)))                           
                    childRow.setcolSelect(true);
            else if(value.equals(examFindings.get(j)))                      
                childRow.setcolSelect(true);
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private AuscultationFindingCollection populateAuscultationFindingsFromGrd(grdAuscultationRowCollection collRows, AuscultationFindingCollection collRACPExamFindings) {

    if(collRows==null)
        collRows = form.grdAuscultation().getRows();

    for (int i = 0; i < collRows.size(); i++)
    {
        grdAuscultationRow rowParent = collRows.get(i);
        if(rowParent.getRows().size()==0){
            if(rowParent.getcolSelect()){
                collRACPExamFindings.add(rowParent.getcolFinding());
            }
        }
        else{
            for (int j = 0; j < rowParent.getRows().size(); j++)
            {
                grdAuscultationRow rowChild = rowParent.getRows().get(j);
                if(rowChild.getcolSelect()){
                    collRACPExamFindings.add(rowChild.getcolFinding());
                }
                if(rowChild.getRows().size()>0)
                    populateAuscultationFindingsFromGrd(rowChild.getRows(), collRACPExamFindings);
            }
        }
    }
    return collRACPExamFindings;
}
项目:openMAXIMS    文件:Logic.java   
private boolean hasSelectedItem(AuscultationFinding finding, AuscultationFindingCollection findings) {
    form.getLocalContext().setHasSelectedItem(false);

    if(!form.getLocalContext().getHasSelectedItem())
        for (int i = 0; i < findings.size(); i++)
            searchHierarchyForFinding( finding, findings.get(i));

    return form.getLocalContext().getHasSelectedItem();
}
项目:openMAXIMS    文件:Logic.java   
private void loadAuscultationGrid(boolean bOnUpdate) {
    AuscultationFindingCollection collAuscultationFinding = LookupHelper.getAuscultationFinding(domain.getLookupService());
    form.getLocalContext().setAuscultationFindingCollection(collAuscultationFinding);
    form.grdAuscultation().populateTree(collAuscultationFinding);
    form.grdAuscultation().expandAll();
    if(form.getLocalContext().getRACPPastMedicalHistoryVoIsNotNull()
            && form.getLocalContext().getRACPPastMedicalHistoryVo().getExamFindingsIsNotNull()
            && bOnUpdate){
        setSelectedAuscultations(form.getLocalContext().getRACPPastMedicalHistoryVo().getExamFindings());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setSelectedAuscultations(AuscultationFindingCollection examFindings) {
    for (int i = 0; i < form.grdAuscultation().getRows().size(); i++){
        grdAuscultationRow row = form.grdAuscultation().getRows().get(i);
        AuscultationFinding value = row.getcolFinding();
        for (int j = 0; j < examFindings.size(); j++){
            if(value.equals(examFindings.get(j)))                           
                        row.setcolSelect(true);
            else if(value.equals(examFindings.get(j)))                      
                    row.setcolSelect(true);
        }
        setSelectedChildAuscultations(row, examFindings);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setSelectedChildAuscultations(grdAuscultationRow row, AuscultationFindingCollection examFindings) {
    for (int i = 0; i < row.getRows().size(); i++){
        grdAuscultationRow childRow = row.getRows().get(i);
        AuscultationFinding value = childRow.getcolFinding();
        for (int j = 0; j < examFindings.size(); j++){
            if(value.equals(examFindings.get(j)))                           
                    childRow.setcolSelect(true);
            else if(value.equals(examFindings.get(j)))                      
                childRow.setcolSelect(true);
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private AuscultationFindingCollection populateAuscultationFindingsFromGrd(grdAuscultationRowCollection collRows, AuscultationFindingCollection collRACPExamFindings) {

    if(collRows==null)
        collRows = form.grdAuscultation().getRows();

    for (int i = 0; i < collRows.size(); i++)
    {
        grdAuscultationRow rowParent = collRows.get(i);
        if(rowParent.getRows().size()==0){
            if(rowParent.getcolSelect()){
                collRACPExamFindings.add(rowParent.getcolFinding());
            }
        }
        else{
            for (int j = 0; j < rowParent.getRows().size(); j++)
            {
                grdAuscultationRow rowChild = rowParent.getRows().get(j);
                if(rowChild.getcolSelect()){
                    collRACPExamFindings.add(rowChild.getcolFinding());
                }
                if(rowChild.getRows().size()>0)
                    populateAuscultationFindingsFromGrd(rowChild.getRows(), collRACPExamFindings);
            }
        }
    }
    return collRACPExamFindings;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean hasSelectedItem(AuscultationFinding finding, AuscultationFindingCollection findings) {
    form.getLocalContext().setHasSelectedItem(false);

    if(!form.getLocalContext().getHasSelectedItem())
        for (int i = 0; i < findings.size(); i++)
            searchHierarchyForFinding( finding, findings.get(i));

    return form.getLocalContext().getHasSelectedItem();
}
项目:openmaxims-linux    文件:Logic.java   
private void loadAuscultationGrid(boolean bOnUpdate) {
    AuscultationFindingCollection collAuscultationFinding = LookupHelper.getAuscultationFinding(domain.getLookupService());
    form.getLocalContext().setAuscultationFindingCollection(collAuscultationFinding);
    form.grdAuscultation().populateTree(collAuscultationFinding);
    form.grdAuscultation().expandAll();
    if(form.getLocalContext().getRACPPastMedicalHistoryVoIsNotNull()
            && form.getLocalContext().getRACPPastMedicalHistoryVo().getExamFindingsIsNotNull()
            && bOnUpdate){
        setSelectedAuscultations(form.getLocalContext().getRACPPastMedicalHistoryVo().getExamFindings());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void setSelectedAuscultations(AuscultationFindingCollection examFindings) {
    for (int i = 0; i < form.grdAuscultation().getRows().size(); i++){
        grdAuscultationRow row = form.grdAuscultation().getRows().get(i);
        AuscultationFinding value = row.getcolFinding();
        for (int j = 0; j < examFindings.size(); j++){
            if(value.equals(examFindings.get(j)))                           
                        row.setcolSelect(true);
            else if(value.equals(examFindings.get(j)))                      
                    row.setcolSelect(true);
        }
        setSelectedChildAuscultations(row, examFindings);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void setSelectedChildAuscultations(grdAuscultationRow row, AuscultationFindingCollection examFindings) {
    for (int i = 0; i < row.getRows().size(); i++){
        grdAuscultationRow childRow = row.getRows().get(i);
        AuscultationFinding value = childRow.getcolFinding();
        for (int j = 0; j < examFindings.size(); j++){
            if(value.equals(examFindings.get(j)))                           
                    childRow.setcolSelect(true);
            else if(value.equals(examFindings.get(j)))                      
                childRow.setcolSelect(true);
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
private AuscultationFindingCollection populateAuscultationFindingsFromGrd(grdAuscultationRowCollection collRows, AuscultationFindingCollection collRACPExamFindings) {

    if(collRows==null)
        collRows = form.grdAuscultation().getRows();

    for (int i = 0; i < collRows.size(); i++)
    {
        grdAuscultationRow rowParent = collRows.get(i);
        if(rowParent.getRows().size()==0){
            if(rowParent.getcolSelect()){
                collRACPExamFindings.add(rowParent.getcolFinding());
            }
        }
        else{
            for (int j = 0; j < rowParent.getRows().size(); j++)
            {
                grdAuscultationRow rowChild = rowParent.getRows().get(j);
                if(rowChild.getcolSelect()){
                    collRACPExamFindings.add(rowChild.getcolFinding());
                }
                if(rowChild.getRows().size()>0)
                    populateAuscultationFindingsFromGrd(rowChild.getRows(), collRACPExamFindings);
            }
        }
    }
    return collRACPExamFindings;
}
项目:AvoinApotti    文件:Logic.java   
private void populateAuscultationsGrid(AuscultationFindingCollection findings) {

    form.grdAuscultation().getRows().clear();

    AuscultationFindingCollection collAuscultationFinding = form.getLocalContext().getAuscultationFindingCollection();

    for (int i = 0; i < collAuscultationFinding.size(); i++)
    {
        if(collAuscultationFinding.get(i).getParent()==null && hasSelectedItem(collAuscultationFinding.get(i), findings))
                putItemHierarchyOnGrid(collAuscultationFinding.get(i), form.grdAuscultation().getRows().newRow());
    }

    setSelectedAuscultations();

    form.grdAuscultation().expandAll();
}
项目:openMAXIMS    文件:Logic.java   
private void populateAuscultationsGrid(AuscultationFindingCollection findings) {

    form.grdAuscultation().getRows().clear();

    AuscultationFindingCollection collAuscultationFinding = form.getLocalContext().getAuscultationFindingCollection();

    for (int i = 0; i < collAuscultationFinding.size(); i++)
    {
        if(collAuscultationFinding.get(i).getParent()==null && hasSelectedItem(collAuscultationFinding.get(i), findings))
                putItemHierarchyOnGrid(collAuscultationFinding.get(i), form.grdAuscultation().getRows().newRow());
    }

    setSelectedAuscultations();

    form.grdAuscultation().expandAll();
}
项目:openMAXIMS    文件:Logic.java   
private void populateAuscultationsGrid(AuscultationFindingCollection findings) {

    form.grdAuscultation().getRows().clear();

    AuscultationFindingCollection collAuscultationFinding = form.getLocalContext().getAuscultationFindingCollection();

    for (int i = 0; i < collAuscultationFinding.size(); i++)
    {
        if(collAuscultationFinding.get(i).getParent()==null && hasSelectedItem(collAuscultationFinding.get(i), findings))
                putItemHierarchyOnGrid(collAuscultationFinding.get(i), form.grdAuscultation().getRows().newRow());
    }

    setSelectedAuscultations();

    form.grdAuscultation().expandAll();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateAuscultationsGrid(AuscultationFindingCollection findings) {

    form.grdAuscultation().getRows().clear();

    AuscultationFindingCollection collAuscultationFinding = form.getLocalContext().getAuscultationFindingCollection();

    for (int i = 0; i < collAuscultationFinding.size(); i++)
    {
        if(collAuscultationFinding.get(i).getParent()==null && hasSelectedItem(collAuscultationFinding.get(i), findings))
                putItemHierarchyOnGrid(collAuscultationFinding.get(i), form.grdAuscultation().getRows().newRow());
    }

    setSelectedAuscultations();

    form.grdAuscultation().expandAll();
}