Java 类ims.nursing.vo.lookups.LookupHelper 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateTreatmentGrid()
{
    //add lookups to treatment grid
    form.grdEdit().getRows().clear();
    MRSATreatmentCollection collTreatment = LookupHelper.getMRSATreatment(domain.getLookupService());
    GenForm.grdEditRow row = null;
    for (int i = 0; i < collTreatment.size(); i++)
    {
        row = form.grdEdit().getRows().newRow();
        row.setColTreatment(collTreatment.get(i));
        row.setColDay1_Value(null);
        row.setColDay2_Value(null);
        row.setColDay3_Value(null);
        row.setColDay4_Value(null);  
        row.setColDay5_Value(null);
        row.setColDay6("No Tx");
        row.setColDay7("No Tx");
        row.setColDay8("No Tx - Rescreen");
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateMoveTypeCombo()
{
    form.ctnDetails().cmbMoveType().clear();
    MovementTypeCollection lookupCollection = LookupHelper.getMovementType(domain.getLookupService());

    if (lookupCollection != null)
    {
        for(int x = 0; x < lookupCollection.size(); x++)
        {    
            if(!isMoveTypeConfigured(lookupCollection.get(x))) 
            {
                form.ctnDetails().cmbMoveType().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), 
                    lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void prepopuateGrdItems()
{
    form.ctnDetails().grdItems().getRows().clear();

    PropertyItemCollection coll = LookupHelper.getPropertyItem(domain.getLookupService());

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++) 
        {
            grdItemsRow row = form.ctnDetails().grdItems().getRows().newRow();
            row.setColItem(coll.get(i));
            bindColSelect(row);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateTreatmentGrid()
{
    //add lookups to treatment grid
    form.grdEdit().getRows().clear();
    MRSATreatmentCollection collTreatment = LookupHelper.getMRSATreatment(domain.getLookupService());
    GenForm.grdEditRow row = null;
    for (int i = 0; i < collTreatment.size(); i++)
    {
        row = form.grdEdit().getRows().newRow();
        row.setColTreatment(collTreatment.get(i));
        row.setColDay1_Value(null);
        row.setColDay2_Value(null);
        row.setColDay3_Value(null);
        row.setColDay4_Value(null);  
        row.setColDay5_Value(null);
        row.setColDay6("No Tx");
        row.setColDay7("No Tx");
        row.setColDay8("No Tx - Rescreen");
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateMoveTypeCombo()
{
    form.ctnDetails().cmbMoveType().clear();
    MovementTypeCollection lookupCollection = LookupHelper.getMovementType(domain.getLookupService());

    if (lookupCollection != null)
    {
        for(int x = 0; x < lookupCollection.size(); x++)
        {    
            if(!isMoveTypeConfigured(lookupCollection.get(x))) 
            {
                form.ctnDetails().cmbMoveType().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), 
                    lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void prepopuateGrdItems()
{
    form.ctnDetails().grdItems().getRows().clear();

    PropertyItemCollection coll = LookupHelper.getPropertyItem(domain.getLookupService());

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++) 
        {
            grdItemsRow row = form.ctnDetails().grdItems().getRows().newRow();
            row.setColItem(coll.get(i));
            bindColSelect(row);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateTreatmentGrid()
{
    //add lookups to treatment grid
    form.grdEdit().getRows().clear();
    MRSATreatmentCollection collTreatment = LookupHelper.getMRSATreatment(domain.getLookupService());
    GenForm.grdEditRow row = null;
    for (int i = 0; i < collTreatment.size(); i++)
    {
        row = form.grdEdit().getRows().newRow();
        row.setColTreatment(collTreatment.get(i));
        row.setColDay1_Value(null);
        row.setColDay2_Value(null);
        row.setColDay3_Value(null);
        row.setColDay4_Value(null);  
        row.setColDay5_Value(null);
        row.setColDay6("No Tx");
        row.setColDay7("No Tx");
        row.setColDay8("No Tx - Rescreen");
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateMoveTypeCombo()
{
    form.ctnDetails().cmbMoveType().clear();
    MovementTypeCollection lookupCollection = LookupHelper.getMovementType(domain.getLookupService());

    if (lookupCollection != null)
    {
        for(int x = 0; x < lookupCollection.size(); x++)
        {    
            if(!isMoveTypeConfigured(lookupCollection.get(x))) 
            {
                form.ctnDetails().cmbMoveType().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), 
                    lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void prepopuateGrdItems()
{
    form.ctnDetails().grdItems().getRows().clear();

    PropertyItemCollection coll = LookupHelper.getPropertyItem(domain.getLookupService());

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++) 
        {
            grdItemsRow row = form.ctnDetails().grdItems().getRows().newRow();
            row.setColItem(coll.get(i));
            bindColSelect(row);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadDyspnoeaGrd() 
{
    GenForm.gridDyspnoeaRow row;
    form.gridDyspnoea().getRows().clear();
    BreathingDyspnoeaCollection sColl = LookupHelper.getBreathingDyspnoea(domain.getLookupService());
    for (int i = 0; i < sColl.size(); i++)
    {
        BreathingDyspnoea bDyspnoea = sColl.get(i);
        row = this.form.gridDyspnoea().getRows().newRow();
        row.setValue(bDyspnoea);
        row.setColDyspnoea(bDyspnoea.getText());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateTreatmentGrid()
{
    //add lookups to treatment grid
    form.grdEdit().getRows().clear();
    MRSATreatmentCollection collTreatment = LookupHelper.getMRSATreatment(domain.getLookupService());
    GenForm.grdEditRow row = null;
    for (int i = 0; i < collTreatment.size(); i++)
    {
        row = form.grdEdit().getRows().newRow();
        row.setColTreatment(collTreatment.get(i));
        row.setColDay1_Value(null);
        row.setColDay2_Value(null);
        row.setColDay3_Value(null);
        row.setColDay4_Value(null);  
        row.setColDay5_Value(null);
        row.setColDay6("No Tx");
        row.setColDay7("No Tx");
        row.setColDay8("No Tx - Rescreen");
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateMoveTypeCombo()
{
    form.ctnDetails().cmbMoveType().clear();
    MovementTypeCollection lookupCollection = LookupHelper.getMovementType(domain.getLookupService());

    if (lookupCollection != null)
    {
        for(int x = 0; x < lookupCollection.size(); x++)
        {    
            if(!isMoveTypeConfigured(lookupCollection.get(x))) 
            {
                form.ctnDetails().cmbMoveType().newRow(lookupCollection.get(x), lookupCollection.get(x).getText(), 
                    lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void prepopuateGrdItems()
{
    form.ctnDetails().grdItems().getRows().clear();

    PropertyItemCollection coll = LookupHelper.getPropertyItem(domain.getLookupService());

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++) 
        {
            grdItemsRow row = form.ctnDetails().grdItems().getRows().newRow();
            row.setColItem(coll.get(i));
            bindColSelect(row);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
public void initialize() throws PresentationLogicException
{
    StringBuffer exceptions = new StringBuffer();   
    if (ims.core.vo.lookups.LookupHelper.getResuscitationStatus(domain.getLookupService()).size() == 0)
    {
        exceptions.append("Please configure ResuscitationStatus lookup");
        exceptions.append("\n");
    }

    if(exceptions.length() > 0)
        throw new PresentationLogicException(exceptions.toString());
    //WDEV-7356
    form.customControlAuthoringInfo().setIsRequiredPropertyToControls(true);
}
项目:AvoinApotti    文件:Logic.java   
private void initializeDynamicGrdMotor()
{
    form.dynQuestions().clear();

    DynamicGridColumn column = form.dynQuestions().getColumns().newColumn("Questions", QUESTIONS_COLUMN);
    column.setWidth(350);
    column.setReadOnly(true);

    DynamicGridColumn column2 = form.dynQuestions().getColumns().newColumn("Answers", ANSWERS_COLUMN);
    column2.setWidth(-1);
    column2.setReadOnly(false);

    AdmissionQuestionCollection admQuestions = new AdmissionQuestionCollection();
    admQuestions = LookupHelper.getAdmissionQuestion(domain.getLookupService());

    for (int i = 0; i < admQuestions.size(); i++)
    {
        AdmissionQuestion ar = admQuestions.get(i);
        DynamicGridRow row = form.dynQuestions().getRows().newRow();
        row.setValue(ar);
        row.setSelectable(false);

        DynamicGridCell cell = row.getCells().newCell(getColumn(QUESTIONS_COLUMN), DynamicCellType.WRAPTEXT);
        cell.setValue(ar.getText());
        cell.setTooltip(ar.getText());
        cell.setAutoPostBack(false);
        cell.setReadOnly(true);

        DynamicGridCell cell2 = row.getCells().newCell(getColumn(ANSWERS_COLUMN), DynamicCellType.ANSWER);
        cell2.getItems().newItem(YesNo.NO,YesNo.NO.getImage());
        cell2.getItems().newItem(YesNo.YES,YesNo.YES.getImage());
        cell2.setValue(null);
        cell2.setAutoPostBack(false);           
        }       

}
项目:AvoinApotti    文件:Logic.java   
private boolean allowNew()
{
    StringBuffer exceptions = new StringBuffer();   
    if (ims.nursing.vo.lookups.LookupHelper.getPropertyItem(domain.getLookupService()).size() == 0)
    {
        exceptions.append("Please configure PropertyItem lookup");
        exceptions.append("\n");
    }
    if (ims.nursing.vo.lookups.LookupHelper.getPropertyItemStatus(domain.getLookupService()).size() == 0)
    {
        exceptions.append("Please configure PropertyItemStatus lookup");
        exceptions.append("\n");
    }

    if (ims.nursing.vo.lookups.LookupHelper.getValuable(domain.getLookupService()).size() == 0)
    {
        exceptions.append("Please configure Valuable lookup");
        exceptions.append("\n");
    }

    if(exceptions.length() > 0)
    {
        engine.showMessage(exceptions.toString());
        return false;
    }
    return true;
}
项目:AvoinApotti    文件:Logic.java   
private void prepopuateGrdValuables()
{
    form.ctnDetails().grdValuables().getRows().clear();

    ValuableCollection coll = LookupHelper.getValuable(domain.getLookupService());

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++) 
        {
            grdValuablesRow row = form.ctnDetails().grdValuables().getRows().newRow();
            row.setcolValuable(coll.get(i));
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void bindColSelect(grdItemsRow row)
{
    row.getColSelect().clear();

    PropertyItemStatusCollection collStatus = LookupHelper.getPropertyItemStatus(domain.getLookupService());
    if (collStatus != null)
    {
        for (int i = 0; i < collStatus.size(); i++) 
        {
            row.getColSelect().newRow(collStatus.get(i), collStatus.get(i).getText());
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void loadChecklistGridFromLookup() {
    form.grdChecklist().getRows().clear();
    EnvironmentalChecklistCollection coll = LookupHelper.getEnvironmentalChecklist(domain.getLookupService());
    for(int i=0;i<coll.size();i++)
    {
        GenForm.grdChecklistRow row = form.grdChecklist().getRows().newRow();
        row.setcolChecklistItem(coll.get(i));       
        row.setValue(new EnvironmentalChecklistDetailVo()); 
    }

}
项目:AvoinApotti    文件:Logic.java   
private void loadSputumGrd() 
{
    GenForm.gridSputumRow sputumRow;
    form.gridSputum().getRows().clear();
    SputumTypeCollection sputumColl = ims.coe.vo.lookups.LookupHelper.getSputumType(domain.getLookupService());
    for (int i = 0; i < sputumColl.size(); i++)
    {
        SputumType sputumType = sputumColl.get(i);
        sputumRow = this.form.gridSputum().getRows().newRow();
        sputumRow.setValue(sputumType);
        sputumRow.setColType(sputumType.getText());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void loadDyspnoeaGrd() 
{
    GenForm.gridDyspnoeaRow row;
    form.gridDyspnoea().getRows().clear();
    BreathingDyspnoeaCollection sColl = LookupHelper.getBreathingDyspnoea(domain.getLookupService());
    for (int i = 0; i < sColl.size(); i++)
    {
        BreathingDyspnoea bDyspnoea = sColl.get(i);
        row = this.form.gridDyspnoea().getRows().newRow();
        row.setValue(bDyspnoea);
        row.setColDyspnoea(bDyspnoea.getText());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void prePopulateFootGrd()
{
    GenForm.container1Container.gridFootRow fRow;
    form.container1().gridFoot().getRows().clear();
    FeetFindingsCollection feetColl = ims.coe.vo.lookups.LookupHelper.getFeetFindings(domain.getLookupService());
    for (int i=0; i<feetColl.size(); i++)
    {
        FeetFindings finding = feetColl.get(i);
        fRow = form.container1().gridFoot().getRows().newRow();
        fRow.setcolFindings(finding);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void prePopulateHygieneGrd() 
{
    GenForm.container1Container.gridHygieneRow row;
    form.container1().gridHygiene().getRows().clear();
    HygieneActivitiesCollection activityColl = LookupHelper.getHygieneActivities(domain.getLookupService());
    for (int i=0; i<activityColl.size(); i++)
    {
        String activiyToolTip = new String();
        HygieneActivities act = activityColl.get(i);
        activiyToolTip = "" + act.getText();
        row = form.container1().gridHygiene().getRows().newRow();
        row.setcolActivities(act);
        row.setTooltipForcolActivities(activiyToolTip);
    }       
}
项目:openMAXIMS    文件:Logic.java   
public void initialize() throws PresentationLogicException
{
    StringBuffer exceptions = new StringBuffer();   
    if (ims.core.vo.lookups.LookupHelper.getResuscitationStatus(domain.getLookupService()).size() == 0)
    {
        exceptions.append("Please configure ResuscitationStatus lookup");
        exceptions.append("\n");
    }

    if(exceptions.length() > 0)
        throw new PresentationLogicException(exceptions.toString());
    //WDEV-7356
    form.customControlAuthoringInfo().setIsRequiredPropertyToControls(true);
}
项目:openMAXIMS    文件:Logic.java   
private void initializeDynamicGrdMotor()
{
    form.dynQuestions().clear();

    DynamicGridColumn column = form.dynQuestions().getColumns().newColumn("Questions", QUESTIONS_COLUMN);
    column.setWidth(350);
    column.setReadOnly(true);

    DynamicGridColumn column2 = form.dynQuestions().getColumns().newColumn("Answers", ANSWERS_COLUMN);
    column2.setWidth(-1);
    column2.setReadOnly(false);

    AdmissionQuestionCollection admQuestions = new AdmissionQuestionCollection();
    admQuestions = LookupHelper.getAdmissionQuestion(domain.getLookupService());

    for (int i = 0; i < admQuestions.size(); i++)
    {
        AdmissionQuestion ar = admQuestions.get(i);
        DynamicGridRow row = form.dynQuestions().getRows().newRow();
        row.setValue(ar);
        row.setSelectable(false);

        DynamicGridCell cell = row.getCells().newCell(getColumn(QUESTIONS_COLUMN), DynamicCellType.WRAPTEXT);
        cell.setValue(ar.getText());
        cell.setTooltip(ar.getText());
        cell.setAutoPostBack(false);
        cell.setReadOnly(true);

        DynamicGridCell cell2 = row.getCells().newCell(getColumn(ANSWERS_COLUMN), DynamicCellType.ANSWER);
        cell2.getItems().newItem(YesNo.NO,YesNo.NO.getImage());
        cell2.getItems().newItem(YesNo.YES,YesNo.YES.getImage());
        cell2.setValue(null);
        cell2.setAutoPostBack(false);           
        }       

}
项目:openMAXIMS    文件:Logic.java   
private boolean allowNew()
{
    StringBuffer exceptions = new StringBuffer();   
    if (ims.nursing.vo.lookups.LookupHelper.getPropertyItem(domain.getLookupService()).size() == 0)
    {
        exceptions.append("Please configure PropertyItem lookup");
        exceptions.append("\n");
    }
    if (ims.nursing.vo.lookups.LookupHelper.getPropertyItemStatus(domain.getLookupService()).size() == 0)
    {
        exceptions.append("Please configure PropertyItemStatus lookup");
        exceptions.append("\n");
    }

    if (ims.nursing.vo.lookups.LookupHelper.getValuable(domain.getLookupService()).size() == 0)
    {
        exceptions.append("Please configure Valuable lookup");
        exceptions.append("\n");
    }

    if(exceptions.length() > 0)
    {
        engine.showMessage(exceptions.toString());
        return false;
    }
    return true;
}
项目:openMAXIMS    文件:Logic.java   
private void prepopuateGrdValuables()
{
    form.ctnDetails().grdValuables().getRows().clear();

    ValuableCollection coll = LookupHelper.getValuable(domain.getLookupService());

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++) 
        {
            grdValuablesRow row = form.ctnDetails().grdValuables().getRows().newRow();
            row.setcolValuable(coll.get(i));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void bindColSelect(grdItemsRow row)
{
    row.getColSelect().clear();

    PropertyItemStatusCollection collStatus = LookupHelper.getPropertyItemStatus(domain.getLookupService());
    if (collStatus != null)
    {
        for (int i = 0; i < collStatus.size(); i++) 
        {
            row.getColSelect().newRow(collStatus.get(i), collStatus.get(i).getText());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadChecklistGridFromLookup() {
    form.grdChecklist().getRows().clear();
    EnvironmentalChecklistCollection coll = LookupHelper.getEnvironmentalChecklist(domain.getLookupService());
    for(int i=0;i<coll.size();i++)
    {
        GenForm.grdChecklistRow row = form.grdChecklist().getRows().newRow();
        row.setcolChecklistItem(coll.get(i));       
        row.setValue(new EnvironmentalChecklistDetailVo()); 
    }

}
项目:openMAXIMS    文件:Logic.java   
private void loadSputumGrd() 
{
    GenForm.gridSputumRow sputumRow;
    form.gridSputum().getRows().clear();
    SputumTypeCollection sputumColl = ims.coe.vo.lookups.LookupHelper.getSputumType(domain.getLookupService());
    for (int i = 0; i < sputumColl.size(); i++)
    {
        SputumType sputumType = sputumColl.get(i);
        sputumRow = this.form.gridSputum().getRows().newRow();
        sputumRow.setValue(sputumType);
        sputumRow.setColType(sputumType.getText());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadDyspnoeaGrd() 
{
    GenForm.gridDyspnoeaRow row;
    form.gridDyspnoea().getRows().clear();
    BreathingDyspnoeaCollection sColl = LookupHelper.getBreathingDyspnoea(domain.getLookupService());
    for (int i = 0; i < sColl.size(); i++)
    {
        BreathingDyspnoea bDyspnoea = sColl.get(i);
        row = this.form.gridDyspnoea().getRows().newRow();
        row.setValue(bDyspnoea);
        row.setColDyspnoea(bDyspnoea.getText());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void prePopulateFootGrd()
{
    GenForm.container1Container.gridFootRow fRow;
    form.container1().gridFoot().getRows().clear();
    FeetFindingsCollection feetColl = ims.coe.vo.lookups.LookupHelper.getFeetFindings(domain.getLookupService());
    for (int i=0; i<feetColl.size(); i++)
    {
        FeetFindings finding = feetColl.get(i);
        fRow = form.container1().gridFoot().getRows().newRow();
        fRow.setcolFindings(finding);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void prePopulateHygieneGrd() 
{
    GenForm.container1Container.gridHygieneRow row;
    form.container1().gridHygiene().getRows().clear();
    HygieneActivitiesCollection activityColl = LookupHelper.getHygieneActivities(domain.getLookupService());
    for (int i=0; i<activityColl.size(); i++)
    {
        String activiyToolTip = new String();
        HygieneActivities act = activityColl.get(i);
        activiyToolTip = "" + act.getText();
        row = form.container1().gridHygiene().getRows().newRow();
        row.setcolActivities(act);
        row.setTooltipForcolActivities(activiyToolTip);
    }       
}
项目:openMAXIMS    文件:Logic.java   
public void initialize() throws PresentationLogicException
{
    StringBuffer exceptions = new StringBuffer();   
    if (ims.core.vo.lookups.LookupHelper.getResuscitationStatus(domain.getLookupService()).size() == 0)
    {
        exceptions.append("Please configure ResuscitationStatus lookup");
        exceptions.append("\n");
    }

    if(exceptions.length() > 0)
        throw new PresentationLogicException(exceptions.toString());
    //WDEV-7356
    form.customControlAuthoringInfo().setIsRequiredPropertyToControls(true);
}
项目:openMAXIMS    文件:Logic.java   
private void initializeDynamicGrdMotor()
{
    form.dynQuestions().clear();

    DynamicGridColumn column = form.dynQuestions().getColumns().newColumn("Questions", QUESTIONS_COLUMN);
    column.setWidth(350);
    column.setReadOnly(true);

    DynamicGridColumn column2 = form.dynQuestions().getColumns().newColumn("Answers", ANSWERS_COLUMN);
    column2.setWidth(-1);
    column2.setReadOnly(false);

    AdmissionQuestionCollection admQuestions = new AdmissionQuestionCollection();
    admQuestions = LookupHelper.getAdmissionQuestion(domain.getLookupService());

    for (int i = 0; i < admQuestions.size(); i++)
    {
        AdmissionQuestion ar = admQuestions.get(i);
        DynamicGridRow row = form.dynQuestions().getRows().newRow();
        row.setValue(ar);
        row.setSelectable(false);

        DynamicGridCell cell = row.getCells().newCell(getColumn(QUESTIONS_COLUMN), DynamicCellType.WRAPTEXT);
        cell.setValue(ar.getText());
        cell.setTooltip(ar.getText());
        cell.setAutoPostBack(false);
        cell.setReadOnly(true);

        DynamicGridCell cell2 = row.getCells().newCell(getColumn(ANSWERS_COLUMN), DynamicCellType.ANSWER);
        cell2.getItems().newItem(YesNo.NO,YesNo.NO.getImage());
        cell2.getItems().newItem(YesNo.YES,YesNo.YES.getImage());
        cell2.setValue(null);
        cell2.setAutoPostBack(false);           
        }       

}
项目:openMAXIMS    文件:Logic.java   
private boolean allowNew()
{
    StringBuffer exceptions = new StringBuffer();   
    if (ims.nursing.vo.lookups.LookupHelper.getPropertyItem(domain.getLookupService()).size() == 0)
    {
        exceptions.append("Please configure PropertyItem lookup");
        exceptions.append("\n");
    }
    if (ims.nursing.vo.lookups.LookupHelper.getPropertyItemStatus(domain.getLookupService()).size() == 0)
    {
        exceptions.append("Please configure PropertyItemStatus lookup");
        exceptions.append("\n");
    }

    if (ims.nursing.vo.lookups.LookupHelper.getValuable(domain.getLookupService()).size() == 0)
    {
        exceptions.append("Please configure Valuable lookup");
        exceptions.append("\n");
    }

    if(exceptions.length() > 0)
    {
        engine.showMessage(exceptions.toString());
        return false;
    }
    return true;
}
项目:openMAXIMS    文件:Logic.java   
private void prepopuateGrdValuables()
{
    form.ctnDetails().grdValuables().getRows().clear();

    ValuableCollection coll = LookupHelper.getValuable(domain.getLookupService());

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++) 
        {
            grdValuablesRow row = form.ctnDetails().grdValuables().getRows().newRow();
            row.setcolValuable(coll.get(i));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void bindColSelect(grdItemsRow row)
{
    row.getColSelect().clear();

    PropertyItemStatusCollection collStatus = LookupHelper.getPropertyItemStatus(domain.getLookupService());
    if (collStatus != null)
    {
        for (int i = 0; i < collStatus.size(); i++) 
        {
            row.getColSelect().newRow(collStatus.get(i), collStatus.get(i).getText());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadChecklistGridFromLookup() {
    form.grdChecklist().getRows().clear();
    EnvironmentalChecklistCollection coll = LookupHelper.getEnvironmentalChecklist(domain.getLookupService());
    for(int i=0;i<coll.size();i++)
    {
        GenForm.grdChecklistRow row = form.grdChecklist().getRows().newRow();
        row.setcolChecklistItem(coll.get(i));       
        row.setValue(new EnvironmentalChecklistDetailVo()); 
    }

}
项目:openMAXIMS    文件:Logic.java   
private void loadSputumGrd() 
{
    GenForm.gridSputumRow sputumRow;
    form.gridSputum().getRows().clear();
    SputumTypeCollection sputumColl = ims.coe.vo.lookups.LookupHelper.getSputumType(domain.getLookupService());
    for (int i = 0; i < sputumColl.size(); i++)
    {
        SputumType sputumType = sputumColl.get(i);
        sputumRow = this.form.gridSputum().getRows().newRow();
        sputumRow.setValue(sputumType);
        sputumRow.setColType(sputumType.getText());
    }
}