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

项目: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);           
        }       

}
项目: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 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 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);           
        }       

}