Java 类ims.emergency.vo.lookups.DepartmentTypeCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateDepartmentsGridWithDefault() 
{
    form.dyngrdDepartments().getRows().clear();

    DepartmentTypeCollection departments = LookupHelper.getDepartmentType(domain.getLookupService());
    if(departments == null)
        return;

    for(int i=0; i<departments.size(); i++)
    {
        if(departments.get(i) == null)
            continue;

        DynamicGridRow row = form.dyngrdDepartments().getRows().newRow();
        DynamicGridCell cell = row.getCells().newCell(getSelectedColumn(COLDEPARTMENT), DynamicCellType.LABEL);
        cell.setValue(departments.get(i).getText());
        cell.setTooltip(departments.get(i).getText());
        cell.setReadOnly(true);

        cell = row.getCells().newCell(getSelectedColumn(COLSELECTED), DynamicCellType.BOOL);
        cell.setAutoPostBack(true);

        cell = row.getCells().newCell(getSelectedColumn(COLDEFAULT), DynamicCellType.BOOL);
        cell.setAutoPostBack(true);

        row.setValue(departments.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateDepartmentsGridWithDefault() 
{
    form.dyngrdDepartments().getRows().clear();

    DepartmentTypeCollection departments = LookupHelper.getDepartmentType(domain.getLookupService());
    if(departments == null)
        return;

    for(int i=0; i<departments.size(); i++)
    {
        if(departments.get(i) == null)
            continue;

        DynamicGridRow row = form.dyngrdDepartments().getRows().newRow();
        DynamicGridCell cell = row.getCells().newCell(getSelectedColumn(COLDEPARTMENT), DynamicCellType.LABEL);
        cell.setValue(departments.get(i).getText());
        cell.setTooltip(departments.get(i).getText());
        cell.setReadOnly(true);

        cell = row.getCells().newCell(getSelectedColumn(COLSELECTED), DynamicCellType.BOOL);
        cell.setAutoPostBack(true);

        cell = row.getCells().newCell(getSelectedColumn(COLDEFAULT), DynamicCellType.BOOL);
        cell.setAutoPostBack(true);

        row.setValue(departments.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateDepartmentsGridWithDefault() 
{
    form.dyngrdDepartments().getRows().clear();

    DepartmentTypeCollection departments = LookupHelper.getDepartmentType(domain.getLookupService());
    if(departments == null)
        return;

    for(int i=0; i<departments.size(); i++)
    {
        if(departments.get(i) == null)
            continue;

        DynamicGridRow row = form.dyngrdDepartments().getRows().newRow();
        DynamicGridCell cell = row.getCells().newCell(getSelectedColumn(COLDEPARTMENT), DynamicCellType.LABEL);
        cell.setValue(departments.get(i).getText());
        cell.setTooltip(departments.get(i).getText());
        cell.setReadOnly(true);

        cell = row.getCells().newCell(getSelectedColumn(COLSELECTED), DynamicCellType.BOOL);
        cell.setAutoPostBack(true);

        cell = row.getCells().newCell(getSelectedColumn(COLDEFAULT), DynamicCellType.BOOL);
        cell.setAutoPostBack(true);

        row.setValue(departments.get(i));
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateDepartmentsGridWithDefault() 
{
    form.dyngrdDepartments().getRows().clear();

    DepartmentTypeCollection departments = LookupHelper.getDepartmentType(domain.getLookupService());
    if(departments == null)
        return;

    for(int i=0; i<departments.size(); i++)
    {
        if(departments.get(i) == null)
            continue;

        DynamicGridRow row = form.dyngrdDepartments().getRows().newRow();
        DynamicGridCell cell = row.getCells().newCell(getSelectedColumn(COLDEPARTMENT), DynamicCellType.LABEL);
        cell.setValue(departments.get(i).getText());
        cell.setTooltip(departments.get(i).getText());
        cell.setReadOnly(true);

        cell = row.getCells().newCell(getSelectedColumn(COLSELECTED), DynamicCellType.BOOL);
        cell.setAutoPostBack(true);

        cell = row.getCells().newCell(getSelectedColumn(COLDEFAULT), DynamicCellType.BOOL);
        cell.setAutoPostBack(true);

        row.setValue(departments.get(i));
    }
}