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

项目:AvoinApotti    文件:Logic.java   
private AdmissionChecklistVo iterateAdmissionChecklisColl(AdmissionQuestion itemLookup, ClinicalAdmissionVo clinAdmVo)
{
    AdmissionChecklistVoCollection admColl = clinAdmVo.getAdmissionChecklist();
    for(int j = 0; j< admColl.size();j++)
    {
        if(itemLookup.equals(admColl.get(j).getChecklistItem()))
        {
            return admColl.get(j);
        }

    }
    return null;
}
项目: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 AdmissionDetailsQuestionsVo questionRecorded(AdmissionDetailsQuestionsVoCollection voCol,AdmissionQuestion voLkup)
{
    if (voCol == null)
        return null;

    for(int i=0;i<voCol.size();i++)
    {           
        if ((voCol.get(i).getQuestionIsNotNull() && voCol.get(i).getQuestion().equals(voLkup)))
            return voCol.get(i);
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private int questionRecordedIndex(AdmissionDetailsQuestionsVoCollection voCol,AdmissionQuestion voLkup)
{
    for(int i=0;i<voCol.size();i++)
    {
        if (voCol.get(i).getQuestion().equals(voLkup))
            return i;
    }       
    return -1;
}
项目:openMAXIMS    文件:Logic.java   
private AdmissionChecklistVo iterateAdmissionChecklisColl(AdmissionQuestion itemLookup, ClinicalAdmissionVo clinAdmVo)
{
    AdmissionChecklistVoCollection admColl = clinAdmVo.getAdmissionChecklist();
    for(int j = 0; j< admColl.size();j++)
    {
        if(itemLookup.equals(admColl.get(j).getChecklistItem()))
        {
            return admColl.get(j);
        }

    }
    return null;
}
项目: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 AdmissionDetailsQuestionsVo questionRecorded(AdmissionDetailsQuestionsVoCollection voCol,AdmissionQuestion voLkup)
{
    if (voCol == null)
        return null;

    for(int i=0;i<voCol.size();i++)
    {           
        if ((voCol.get(i).getQuestionIsNotNull() && voCol.get(i).getQuestion().equals(voLkup)))
            return voCol.get(i);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private int questionRecordedIndex(AdmissionDetailsQuestionsVoCollection voCol,AdmissionQuestion voLkup)
{
    for(int i=0;i<voCol.size();i++)
    {
        if (voCol.get(i).getQuestion().equals(voLkup))
            return i;
    }       
    return -1;
}
项目:openMAXIMS    文件:Logic.java   
private AdmissionChecklistVo iterateAdmissionChecklisColl(AdmissionQuestion itemLookup, ClinicalAdmissionVo clinAdmVo)
{
    AdmissionChecklistVoCollection admColl = clinAdmVo.getAdmissionChecklist();
    for(int j = 0; j< admColl.size();j++)
    {
        if(itemLookup.equals(admColl.get(j).getChecklistItem()))
        {
            return admColl.get(j);
        }

    }
    return null;
}
项目: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 AdmissionDetailsQuestionsVo questionRecorded(AdmissionDetailsQuestionsVoCollection voCol,AdmissionQuestion voLkup)
{
    if (voCol == null)
        return null;

    for(int i=0;i<voCol.size();i++)
    {           
        if ((voCol.get(i).getQuestionIsNotNull() && voCol.get(i).getQuestion().equals(voLkup)))
            return voCol.get(i);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private int questionRecordedIndex(AdmissionDetailsQuestionsVoCollection voCol,AdmissionQuestion voLkup)
{
    for(int i=0;i<voCol.size();i++)
    {
        if (voCol.get(i).getQuestion().equals(voLkup))
            return i;
    }       
    return -1;
}
项目:openmaxims-linux    文件:Logic.java   
private AdmissionChecklistVo iterateAdmissionChecklisColl(AdmissionQuestion itemLookup, ClinicalAdmissionVo clinAdmVo)
{
    AdmissionChecklistVoCollection admColl = clinAdmVo.getAdmissionChecklist();
    for(int j = 0; j< admColl.size();j++)
    {
        if(itemLookup.equals(admColl.get(j).getChecklistItem()))
        {
            return admColl.get(j);
        }

    }
    return null;
}
项目:openmaxims-linux    文件: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-linux    文件:Logic.java   
private AdmissionDetailsQuestionsVo questionRecorded(AdmissionDetailsQuestionsVoCollection voCol,AdmissionQuestion voLkup)
{
    if (voCol == null)
        return null;

    for(int i=0;i<voCol.size();i++)
    {           
        if ((voCol.get(i).getQuestionIsNotNull() && voCol.get(i).getQuestion().equals(voLkup)))
            return voCol.get(i);
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private int questionRecordedIndex(AdmissionDetailsQuestionsVoCollection voCol,AdmissionQuestion voLkup)
{
    for(int i=0;i<voCol.size();i++)
    {
        if (voCol.get(i).getQuestion().equals(voLkup))
            return i;
    }       
    return -1;
}