Java 类ims.emergency.vo.ColumnDetailVoCollection 实例源码

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

    if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace() == null)
        return;
    else if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns() == null)
        return;

    ColumnDetailVoCollection collColumnDetails = form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns();

    for (int i = 0; i < collColumnDetails.size(); i++)
    {
        addRow(collColumnDetails.get(i));   // latest changes 06.04.2012
    }

}
项目:AvoinApotti    文件:Logic.java   
private boolean maskInPublicArea(DynamicGridColumn column)
{
    if (form.getLocalContext().getSelectedTrackingArea()==null || form.getLocalContext().getSelectedTrackingArea().getColumns()==null)
        return false;

    ColumnDetailVoCollection collColumns = form.getLocalContext().getSelectedTrackingArea().getColumns();

    for (int i=0;i<collColumns.size();i++)
    {
        ColumnDetailVo columnDetail = collColumns.get(i);
        if (columnDetail.getColumn().equals(column.getIdentifier()) && Boolean.TRUE.equals(columnDetail.getMaskInPublicArea()))
        {
            return true;
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid()
{
    form.grdAreaWorkspace().getRows().clear();

    if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace() == null)
        return;
    else if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns() == null)
        return;

    ColumnDetailVoCollection collColumnDetails = form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns();

    for (int i = 0; i < collColumnDetails.size(); i++)
    {
        addRow(collColumnDetails.get(i));   // latest changes 06.04.2012
    }

}
项目:openMAXIMS    文件:Logic.java   
private boolean maskInPublicArea(DynamicGridColumn column)
{
    if (form.getLocalContext().getSelectedTrackingArea()==null || form.getLocalContext().getSelectedTrackingArea().getColumns()==null)
        return false;

    ColumnDetailVoCollection collColumns = form.getLocalContext().getSelectedTrackingArea().getColumns();

    for (int i=0;i<collColumns.size();i++)
    {
        ColumnDetailVo columnDetail = collColumns.get(i);
        if (columnDetail.getColumn().equals(column.getIdentifier()) && Boolean.TRUE.equals(columnDetail.getMaskInPublicArea()))
        {
            return true;
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid()
{
    form.grdAreaWorkspace().getRows().clear();

    if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace() == null)
        return;
    else if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns() == null)
        return;

    ColumnDetailVoCollection collColumnDetails = form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns();

    for (int i = 0; i < collColumnDetails.size(); i++)
    {
        addRow(collColumnDetails.get(i));   // latest changes 06.04.2012
    }

}
项目:openMAXIMS    文件:Logic.java   
private boolean maskInPublicArea(DynamicGridColumn column)
{
    if (form.getLocalContext().getSelectedTrackingArea()==null || form.getLocalContext().getSelectedTrackingArea().getColumns()==null)
        return false;

    ColumnDetailVoCollection collColumns = form.getLocalContext().getSelectedTrackingArea().getColumns();

    for (int i=0;i<collColumns.size();i++)
    {
        ColumnDetailVo columnDetail = collColumns.get(i);
        if (columnDetail.getColumn().equals(column.getIdentifier()) && Boolean.TRUE.equals(columnDetail.getMaskInPublicArea()))
        {
            return true;
        }
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateGrid()
{
    form.grdAreaWorkspace().getRows().clear();

    if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace() == null)
        return;
    else if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns() == null)
        return;

    ColumnDetailVoCollection collColumnDetails = form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns();

    for (int i = 0; i < collColumnDetails.size(); i++)
    {
        addRow(collColumnDetails.get(i));   // latest changes 06.04.2012
    }

}
项目:openmaxims-linux    文件:Logic.java   
private boolean maskInPublicArea(DynamicGridColumn column)
{
    if (form.getLocalContext().getSelectedTrackingArea()==null || form.getLocalContext().getSelectedTrackingArea().getColumns()==null)
        return false;

    ColumnDetailVoCollection collColumns = form.getLocalContext().getSelectedTrackingArea().getColumns();

    for (int i=0;i<collColumns.size();i++)
    {
        ColumnDetailVo columnDetail = collColumns.get(i);
        if (columnDetail.getColumn().equals(column.getIdentifier()) && Boolean.TRUE.equals(columnDetail.getMaskInPublicArea()))
        {
            return true;
        }
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private TrackingAreaVo populateDataFromScreen(TrackingAreaVo trackingArea)// latest changes 06.04.2012
{
    ColumnDetailVoCollection collectionToSave = new ColumnDetailVoCollection();
    for (int i = 0; i < form.grdAreaWorkspace().getRows().size(); i++)
    {
        collectionToSave.add(form.grdAreaWorkspace().getRows().get(i).getValue());
    }
    trackingArea.setColumns(collectionToSave);
    return trackingArea;
}
项目:AvoinApotti    文件:Logic.java   
private ColumnDetailVoCollection populateColumnsToBeCopied(TrackingAreaVo trackingArea)
{
    ColumnDetailVoCollection collColumns = trackingArea.getColumns();
    for (int i = 0; i < collColumns.size(); i++)
    {
        collColumns.get(i).setID_ColumnDetail(null);
    }
    return collColumns;
}
项目:AvoinApotti    文件:Logic.java   
private TrackingAreaVo populateTrackingArea(TrackingAreaVo areaToAdd)
{
    TrackingConfigurationVo tracking = form.getLocalContext().getcurrentTrackingConfig();
    TrackingAreaVo areaToSave = new TrackingAreaVo();

    TrackingAreaVoCollection collAreas = tracking.getAreas();
    for (int i = 0; i < collAreas.size(); i++)
    {
        if (collAreas.get(i).getIsOverallView() && areaToAdd.getIsOverallView())
        {
            areaToSave = collAreas.get(i);
            break;
        }
        else if (collAreas.get(i).getIsRegistrationArea() && areaToAdd.getIsRegistrationArea())
        {
            areaToSave = collAreas.get(i);
            break;
        }
    }

    ColumnDetailVoCollection collColumnsToAdd = areaToAdd.getColumns();

    for (int i = 0; i < collColumnsToAdd.size(); i++)
    {
        collColumnsToAdd.get(i).setID_ColumnDetail(null);
        areaToSave.getColumns().add(collColumnsToAdd.get(i));
    }

    return areaToSave;
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData()
{

    if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace() == null)
        return;

    form.txtForArea().setValue(form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getAreaDisplayName());

    ColumnDetailVoCollection trackingColumsCollection = form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns();

    if (trackingColumsCollection == null)
        return;

    for (int i = 0; i < trackingColumsCollection.size(); i++)
        for (int j = 0; j < form.grdTrackingAreaColum().getRows().size(); j++)
        {
            if (trackingColumsCollection.get(i).getColumn().equals(form.grdTrackingAreaColum().getRows().get(j).getValue()))
            {
                form.grdTrackingAreaColum().getRows().get(j).setcolSelect(true);
                form.grdTrackingAreaColum().getRows().get(j).setcolMaskInPublicArea(trackingColumsCollection.get(i).getMaskInPublicArea()!=null ? trackingColumsCollection.get(i).getMaskInPublicArea(): false);//WDEV-17966
                form.grdTrackingAreaColum().getRows().get(j).setcolImage(trackingColumsCollection.get(i).getColumn().getImage());
                if (trackingColumsCollection.get(i).getColWidthIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnWidth(trackingColumsCollection.get(i).getColWidth());
                    usedSpace = usedSpace + trackingColumsCollection.get(i).getColWidth();
                }
                if (trackingColumsCollection.get(i).getColHeaderIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnHeader(trackingColumsCollection.get(i).getColHeader());
                }
                break;
            }
        }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnPreviewClick() throws ims.framework.exceptions.PresentationLogicException
{
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());

    if (!form.getGlobalContext().Emergency.getTrackingAreaColumnsIsNotNull())
    {
        form.getGlobalContext().Emergency.setTrackingAreaColumns(new ColumnDetailVoCollection());
    }

    form.getGlobalContext().Emergency.getTrackingAreaColumns().clear();

    for (int i = 0; i < form.grdTrackingAreaColum().getRows().size(); i++)
    {
        grdTrackingAreaColumRow selectedRow = form.grdTrackingAreaColum().getRows().get(i);

        if (selectedRow.getcolSelect() == true)
        {
            ColumnDetailVo AreaColumn = new ColumnDetailVo();
            AreaColumn.setColHeader(selectedRow.getcolColumnHeader());
            AreaColumn.setMaskInPublicArea(selectedRow.getcolMaskInPublicArea());//WDEV-17966
            AreaColumn.setColWidth(selectedRow.getcolColumnWidth());
            AreaColumn.setColumn(lkpAreaCollection.get(i));

            form.getGlobalContext().Emergency.getTrackingAreaColumns().add(AreaColumn);
        }
    }

    engine.open(form.getForms().Emergency.TrackingAreaColumnPreview);
}
项目:AvoinApotti    文件:Logic.java   
private void repopulateGridWithNewValues(ColumnDetailVoCollection trackingColumsCollection)
{
    if (trackingColumsCollection == null)
        return;

    //for (int i=0;i<form.grdTrackingAreaColum().getRows().size();i++)
    //{
    //  form.grdTrackingAreaColum().getRows().get(i).setcolSelect(false);
    //}

    for (int i = 0; i < trackingColumsCollection.size(); i++)
        for (int j = 0; j < form.grdTrackingAreaColum().getRows().size(); j++)
        {
            if (trackingColumsCollection.get(i).getColumn().equals(form.grdTrackingAreaColum().getRows().get(j).getValue()))
            {
                form.grdTrackingAreaColum().getRows().get(j).setcolSelect(true);
                form.grdTrackingAreaColum().getRows().get(j).setcolImage(trackingColumsCollection.get(i).getColumn().getImage());
                form.grdTrackingAreaColum().getRows().get(j).setcolMaskInPublicArea(trackingColumsCollection.get(i).getMaskInPublicArea()!=null ? trackingColumsCollection.get(i).getMaskInPublicArea() : false);//WDEV-17966
                if (trackingColumsCollection.get(i).getColWidthIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnWidth(trackingColumsCollection.get(i).getColWidth());
                    usedSpace = usedSpace + trackingColumsCollection.get(i).getColWidth();
                }
                if (trackingColumsCollection.get(i).getColHeaderIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnHeader(trackingColumsCollection.get(i).getColHeader());
                }
                break;
            }
        }

}
项目:openMAXIMS    文件:Logic.java   
private TrackingAreaVo populateDataFromScreen(TrackingAreaVo trackingArea)// latest changes 06.04.2012
{
    ColumnDetailVoCollection collectionToSave = new ColumnDetailVoCollection();
    for (int i = 0; i < form.grdAreaWorkspace().getRows().size(); i++)
    {
        collectionToSave.add(form.grdAreaWorkspace().getRows().get(i).getValue());
    }
    trackingArea.setColumns(collectionToSave);
    return trackingArea;
}
项目:openMAXIMS    文件:Logic.java   
private ColumnDetailVoCollection populateColumnsToBeCopied(TrackingAreaVo trackingArea)
{
    ColumnDetailVoCollection collColumns = trackingArea.getColumns();
    for (int i = 0; i < collColumns.size(); i++)
    {
        collColumns.get(i).setID_ColumnDetail(null);
    }
    return collColumns;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAreaVo populateTrackingArea(TrackingAreaVo areaToAdd)
{
    TrackingConfigurationVo tracking = form.getLocalContext().getcurrentTrackingConfig();
    TrackingAreaVo areaToSave = new TrackingAreaVo();

    TrackingAreaVoCollection collAreas = tracking.getAreas();
    for (int i = 0; i < collAreas.size(); i++)
    {
        if (collAreas.get(i).getIsOverallView() && areaToAdd.getIsOverallView())
        {
            areaToSave = collAreas.get(i);
            break;
        }
        else if (collAreas.get(i).getIsRegistrationArea() && areaToAdd.getIsRegistrationArea())
        {
            areaToSave = collAreas.get(i);
            break;
        }
    }

    ColumnDetailVoCollection collColumnsToAdd = areaToAdd.getColumns();

    for (int i = 0; i < collColumnsToAdd.size(); i++)
    {
        collColumnsToAdd.get(i).setID_ColumnDetail(null);
        areaToSave.getColumns().add(collColumnsToAdd.get(i));
    }

    return areaToSave;
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData()
{

    if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace() == null)
        return;

    form.txtForArea().setValue(form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getAreaDisplayName());

    ColumnDetailVoCollection trackingColumsCollection = form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns();

    if (trackingColumsCollection == null)
        return;

    for (int i = 0; i < trackingColumsCollection.size(); i++)
        for (int j = 0; j < form.grdTrackingAreaColum().getRows().size(); j++)
        {
            if (trackingColumsCollection.get(i).getColumn().equals(form.grdTrackingAreaColum().getRows().get(j).getValue()))
            {
                form.grdTrackingAreaColum().getRows().get(j).setcolSelect(true);
                form.grdTrackingAreaColum().getRows().get(j).setcolMaskInPublicArea(trackingColumsCollection.get(i).getMaskInPublicArea()!=null ? trackingColumsCollection.get(i).getMaskInPublicArea(): false);//WDEV-17966
                form.grdTrackingAreaColum().getRows().get(j).setcolImage(trackingColumsCollection.get(i).getColumn().getImage());
                if (trackingColumsCollection.get(i).getColWidthIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnWidth(trackingColumsCollection.get(i).getColWidth());
                    usedSpace = usedSpace + trackingColumsCollection.get(i).getColWidth();
                }
                if (trackingColumsCollection.get(i).getColHeaderIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnHeader(trackingColumsCollection.get(i).getColHeader());
                }
                break;
            }
        }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnPreviewClick() throws ims.framework.exceptions.PresentationLogicException
{
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());

    if (!form.getGlobalContext().Emergency.getTrackingAreaColumnsIsNotNull())
    {
        form.getGlobalContext().Emergency.setTrackingAreaColumns(new ColumnDetailVoCollection());
    }

    form.getGlobalContext().Emergency.getTrackingAreaColumns().clear();

    for (int i = 0; i < form.grdTrackingAreaColum().getRows().size(); i++)
    {
        grdTrackingAreaColumRow selectedRow = form.grdTrackingAreaColum().getRows().get(i);

        if (selectedRow.getcolSelect() == true)
        {
            ColumnDetailVo AreaColumn = new ColumnDetailVo();
            AreaColumn.setColHeader(selectedRow.getcolColumnHeader());
            AreaColumn.setMaskInPublicArea(selectedRow.getcolMaskInPublicArea());//WDEV-17966
            AreaColumn.setColWidth(selectedRow.getcolColumnWidth());
            AreaColumn.setColumn(lkpAreaCollection.get(i));

            form.getGlobalContext().Emergency.getTrackingAreaColumns().add(AreaColumn);
        }
    }

    engine.open(form.getForms().Emergency.TrackingAreaColumnPreview);
}
项目:openMAXIMS    文件:Logic.java   
private void repopulateGridWithNewValues(ColumnDetailVoCollection trackingColumsCollection)
{
    if (trackingColumsCollection == null)
        return;

    //for (int i=0;i<form.grdTrackingAreaColum().getRows().size();i++)
    //{
    //  form.grdTrackingAreaColum().getRows().get(i).setcolSelect(false);
    //}

    for (int i = 0; i < trackingColumsCollection.size(); i++)
        for (int j = 0; j < form.grdTrackingAreaColum().getRows().size(); j++)
        {
            if (trackingColumsCollection.get(i).getColumn().equals(form.grdTrackingAreaColum().getRows().get(j).getValue()))
            {
                form.grdTrackingAreaColum().getRows().get(j).setcolSelect(true);
                form.grdTrackingAreaColum().getRows().get(j).setcolImage(trackingColumsCollection.get(i).getColumn().getImage());
                form.grdTrackingAreaColum().getRows().get(j).setcolMaskInPublicArea(trackingColumsCollection.get(i).getMaskInPublicArea()!=null ? trackingColumsCollection.get(i).getMaskInPublicArea() : false);//WDEV-17966
                if (trackingColumsCollection.get(i).getColWidthIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnWidth(trackingColumsCollection.get(i).getColWidth());
                    usedSpace = usedSpace + trackingColumsCollection.get(i).getColWidth();
                }
                if (trackingColumsCollection.get(i).getColHeaderIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnHeader(trackingColumsCollection.get(i).getColHeader());
                }
                break;
            }
        }

}
项目:openMAXIMS    文件:TrackingImpl.java   
private boolean isColumnAddedInConfig(TrackingAreaColumn column, ColumnDetailVoCollection columns)
{
    if (column==null || columns==null || columns.size()==0)
        return false;

    for (int i=0;i<columns.size();i++)
    {
        if (columns.get(i)!=null && column.equals(columns.get(i).getColumn()))
        {
            return true;
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAreaVo populateDataFromScreen(TrackingAreaVo trackingArea)// latest changes 06.04.2012
{
    ColumnDetailVoCollection collectionToSave = new ColumnDetailVoCollection();
    for (int i = 0; i < form.grdAreaWorkspace().getRows().size(); i++)
    {
        collectionToSave.add(form.grdAreaWorkspace().getRows().get(i).getValue());
    }
    trackingArea.setColumns(collectionToSave);
    return trackingArea;
}
项目:openMAXIMS    文件:Logic.java   
private ColumnDetailVoCollection populateColumnsToBeCopied(TrackingAreaVo trackingArea)
{
    ColumnDetailVoCollection collColumns = trackingArea.getColumns();
    for (int i = 0; i < collColumns.size(); i++)
    {
        collColumns.get(i).setID_ColumnDetail(null);
    }
    return collColumns;
}
项目:openMAXIMS    文件:Logic.java   
private TrackingAreaVo populateTrackingArea(TrackingAreaVo areaToAdd)
{
    TrackingConfigurationVo tracking = form.getLocalContext().getcurrentTrackingConfig();
    TrackingAreaVo areaToSave = new TrackingAreaVo();

    TrackingAreaVoCollection collAreas = tracking.getAreas();
    for (int i = 0; i < collAreas.size(); i++)
    {
        if (collAreas.get(i).getIsOverallView() && areaToAdd.getIsOverallView())
        {
            areaToSave = collAreas.get(i);
            break;
        }
        else if (collAreas.get(i).getIsRegistrationArea() && areaToAdd.getIsRegistrationArea())
        {
            areaToSave = collAreas.get(i);
            break;
        }
    }

    ColumnDetailVoCollection collColumnsToAdd = areaToAdd.getColumns();

    for (int i = 0; i < collColumnsToAdd.size(); i++)
    {
        collColumnsToAdd.get(i).setID_ColumnDetail(null);
        areaToSave.getColumns().add(collColumnsToAdd.get(i));
    }

    return areaToSave;
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData()
{

    if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace() == null)
        return;

    form.txtForArea().setValue(form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getAreaDisplayName());

    ColumnDetailVoCollection trackingColumsCollection = form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns();

    if (trackingColumsCollection == null)
        return;

    for (int i = 0; i < trackingColumsCollection.size(); i++)
        for (int j = 0; j < form.grdTrackingAreaColum().getRows().size(); j++)
        {
            if (trackingColumsCollection.get(i).getColumn().equals(form.grdTrackingAreaColum().getRows().get(j).getValue()))
            {
                form.grdTrackingAreaColum().getRows().get(j).setcolSelect(true);
                form.grdTrackingAreaColum().getRows().get(j).setcolMaskInPublicArea(trackingColumsCollection.get(i).getMaskInPublicArea()!=null ? trackingColumsCollection.get(i).getMaskInPublicArea(): false);//WDEV-17966
                form.grdTrackingAreaColum().getRows().get(j).setcolImage(trackingColumsCollection.get(i).getColumn().getImage());
                if (trackingColumsCollection.get(i).getColWidthIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnWidth(trackingColumsCollection.get(i).getColWidth());
                    usedSpace = usedSpace + trackingColumsCollection.get(i).getColWidth();
                }
                if (trackingColumsCollection.get(i).getColHeaderIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnHeader(trackingColumsCollection.get(i).getColHeader());
                }
                break;
            }
        }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnPreviewClick() throws ims.framework.exceptions.PresentationLogicException
{
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());

    if (!form.getGlobalContext().Emergency.getTrackingAreaColumnsIsNotNull())
    {
        form.getGlobalContext().Emergency.setTrackingAreaColumns(new ColumnDetailVoCollection());
    }

    form.getGlobalContext().Emergency.getTrackingAreaColumns().clear();

    for (int i = 0; i < form.grdTrackingAreaColum().getRows().size(); i++)
    {
        grdTrackingAreaColumRow selectedRow = form.grdTrackingAreaColum().getRows().get(i);

        if (selectedRow.getcolSelect() == true)
        {
            ColumnDetailVo AreaColumn = new ColumnDetailVo();
            AreaColumn.setColHeader(selectedRow.getcolColumnHeader());
            AreaColumn.setMaskInPublicArea(selectedRow.getcolMaskInPublicArea());//WDEV-17966
            AreaColumn.setColWidth(selectedRow.getcolColumnWidth());
            AreaColumn.setColumn(lkpAreaCollection.get(i));

            form.getGlobalContext().Emergency.getTrackingAreaColumns().add(AreaColumn);
        }
    }

    engine.open(form.getForms().Emergency.TrackingAreaColumnPreview);
}
项目:openMAXIMS    文件:Logic.java   
private void repopulateGridWithNewValues(ColumnDetailVoCollection trackingColumsCollection)
{
    if (trackingColumsCollection == null)
        return;

    //for (int i=0;i<form.grdTrackingAreaColum().getRows().size();i++)
    //{
    //  form.grdTrackingAreaColum().getRows().get(i).setcolSelect(false);
    //}

    for (int i = 0; i < trackingColumsCollection.size(); i++)
        for (int j = 0; j < form.grdTrackingAreaColum().getRows().size(); j++)
        {
            if (trackingColumsCollection.get(i).getColumn().equals(form.grdTrackingAreaColum().getRows().get(j).getValue()))
            {
                form.grdTrackingAreaColum().getRows().get(j).setcolSelect(true);
                form.grdTrackingAreaColum().getRows().get(j).setcolImage(trackingColumsCollection.get(i).getColumn().getImage());
                form.grdTrackingAreaColum().getRows().get(j).setcolMaskInPublicArea(trackingColumsCollection.get(i).getMaskInPublicArea()!=null ? trackingColumsCollection.get(i).getMaskInPublicArea() : false);//WDEV-17966
                if (trackingColumsCollection.get(i).getColWidthIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnWidth(trackingColumsCollection.get(i).getColWidth());
                    usedSpace = usedSpace + trackingColumsCollection.get(i).getColWidth();
                }
                if (trackingColumsCollection.get(i).getColHeaderIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnHeader(trackingColumsCollection.get(i).getColHeader());
                }
                break;
            }
        }

}
项目:openmaxims-linux    文件:Logic.java   
private TrackingAreaVo populateDataFromScreen(TrackingAreaVo trackingArea)// latest changes 06.04.2012
{
    ColumnDetailVoCollection collectionToSave = new ColumnDetailVoCollection();
    for (int i = 0; i < form.grdAreaWorkspace().getRows().size(); i++)
    {
        collectionToSave.add(form.grdAreaWorkspace().getRows().get(i).getValue());
    }
    trackingArea.setColumns(collectionToSave);
    return trackingArea;
}
项目:openmaxims-linux    文件:Logic.java   
private ColumnDetailVoCollection populateColumnsToBeCopied(TrackingAreaVo trackingArea)
{
    ColumnDetailVoCollection collColumns = trackingArea.getColumns();
    for (int i = 0; i < collColumns.size(); i++)
    {
        collColumns.get(i).setID_ColumnDetail(null);
    }
    return collColumns;
}
项目:openmaxims-linux    文件:Logic.java   
private TrackingAreaVo populateTrackingArea(TrackingAreaVo areaToAdd)
{
    TrackingConfigurationVo tracking = form.getLocalContext().getcurrentTrackingConfig();
    TrackingAreaVo areaToSave = new TrackingAreaVo();

    TrackingAreaVoCollection collAreas = tracking.getAreas();
    for (int i = 0; i < collAreas.size(); i++)
    {
        if (collAreas.get(i).getIsOverallView() && areaToAdd.getIsOverallView())
        {
            areaToSave = collAreas.get(i);
            break;
        }
        else if (collAreas.get(i).getIsRegistrationArea() && areaToAdd.getIsRegistrationArea())
        {
            areaToSave = collAreas.get(i);
            break;
        }
    }

    ColumnDetailVoCollection collColumnsToAdd = areaToAdd.getColumns();

    for (int i = 0; i < collColumnsToAdd.size(); i++)
    {
        collColumnsToAdd.get(i).setID_ColumnDetail(null);
        areaToSave.getColumns().add(collColumnsToAdd.get(i));
    }

    return areaToSave;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData()
{

    if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace() == null)
        return;

    form.txtForArea().setValue(form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getAreaDisplayName());

    ColumnDetailVoCollection trackingColumsCollection = form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns();

    if (trackingColumsCollection == null)
        return;

    for (int i = 0; i < trackingColumsCollection.size(); i++)
        for (int j = 0; j < form.grdTrackingAreaColum().getRows().size(); j++)
        {
            if (trackingColumsCollection.get(i).getColumn().equals(form.grdTrackingAreaColum().getRows().get(j).getValue()))
            {
                form.grdTrackingAreaColum().getRows().get(j).setcolSelect(true);
                form.grdTrackingAreaColum().getRows().get(j).setcolMaskInPublicArea(trackingColumsCollection.get(i).getMaskInPublicArea()!=null ? trackingColumsCollection.get(i).getMaskInPublicArea(): false);//WDEV-17966
                form.grdTrackingAreaColum().getRows().get(j).setcolImage(trackingColumsCollection.get(i).getColumn().getImage());
                if (trackingColumsCollection.get(i).getColWidthIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnWidth(trackingColumsCollection.get(i).getColWidth());
                    usedSpace = usedSpace + trackingColumsCollection.get(i).getColWidth();
                }
                if (trackingColumsCollection.get(i).getColHeaderIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnHeader(trackingColumsCollection.get(i).getColHeader());
                }
                break;
            }
        }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnPreviewClick() throws ims.framework.exceptions.PresentationLogicException
{
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());

    if (!form.getGlobalContext().Emergency.getTrackingAreaColumnsIsNotNull())
    {
        form.getGlobalContext().Emergency.setTrackingAreaColumns(new ColumnDetailVoCollection());
    }

    form.getGlobalContext().Emergency.getTrackingAreaColumns().clear();

    for (int i = 0; i < form.grdTrackingAreaColum().getRows().size(); i++)
    {
        grdTrackingAreaColumRow selectedRow = form.grdTrackingAreaColum().getRows().get(i);

        if (selectedRow.getcolSelect() == true)
        {
            ColumnDetailVo AreaColumn = new ColumnDetailVo();
            AreaColumn.setColHeader(selectedRow.getcolColumnHeader());
            AreaColumn.setMaskInPublicArea(selectedRow.getcolMaskInPublicArea());//WDEV-17966
            AreaColumn.setColWidth(selectedRow.getcolColumnWidth());
            AreaColumn.setColumn(lkpAreaCollection.get(i));

            form.getGlobalContext().Emergency.getTrackingAreaColumns().add(AreaColumn);
        }
    }

    engine.open(form.getForms().Emergency.TrackingAreaColumnPreview);
}
项目:openmaxims-linux    文件:Logic.java   
private void repopulateGridWithNewValues(ColumnDetailVoCollection trackingColumsCollection)
{
    if (trackingColumsCollection == null)
        return;

    //for (int i=0;i<form.grdTrackingAreaColum().getRows().size();i++)
    //{
    //  form.grdTrackingAreaColum().getRows().get(i).setcolSelect(false);
    //}

    for (int i = 0; i < trackingColumsCollection.size(); i++)
        for (int j = 0; j < form.grdTrackingAreaColum().getRows().size(); j++)
        {
            if (trackingColumsCollection.get(i).getColumn().equals(form.grdTrackingAreaColum().getRows().get(j).getValue()))
            {
                form.grdTrackingAreaColum().getRows().get(j).setcolSelect(true);
                form.grdTrackingAreaColum().getRows().get(j).setcolImage(trackingColumsCollection.get(i).getColumn().getImage());
                form.grdTrackingAreaColum().getRows().get(j).setcolMaskInPublicArea(trackingColumsCollection.get(i).getMaskInPublicArea()!=null ? trackingColumsCollection.get(i).getMaskInPublicArea() : false);//WDEV-17966
                if (trackingColumsCollection.get(i).getColWidthIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnWidth(trackingColumsCollection.get(i).getColWidth());
                    usedSpace = usedSpace + trackingColumsCollection.get(i).getColWidth();
                }
                if (trackingColumsCollection.get(i).getColHeaderIsNotNull())
                {
                    form.grdTrackingAreaColum().getRows().get(j).setcolColumnHeader(trackingColumsCollection.get(i).getColHeader());
                }
                break;
            }
        }

}
项目:AvoinApotti    文件:Logic.java   
private void populateGridWithOrder() //used only when closing the Dialog
{
    if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace() == null)
        return;
    else if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns() == null)
        return;

    ColumnDetailVoCollection collColumnDetails = form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns();

    ColumnDetailVoCollection tempColl=new ColumnDetailVoCollection();

    int rowsNumber = form.grdAreaWorkspace().getRows().size();

    //remove rows
    for (int i=form.grdAreaWorkspace().getRows().size()-1;i>=0;i--) 
    { 
        boolean isInCollection = false;
        for (int j=collColumnDetails.size()-1;j>=0;j--)
        {
            if (collColumnDetails.get(j).getColumn().equals(form.grdAreaWorkspace().getRows().get(i).getValue().getColumn()))
            {
                isInCollection=true;
            }   
        }
        if (!isInCollection)
            form.grdAreaWorkspace().getRows().remove(i);
    }

    //add or update rows
    for (int i = 0; i < collColumnDetails.size(); i++)
    {
        ColumnDetailVo columnDetail = collColumnDetails.get(i);

        boolean isInGrid = false;

        if (rowsNumber==0)
        {
            addRow(collColumnDetails.get(i));
            continue;
        }

        for (int j = 0; j <form.grdAreaWorkspace().getRows().size() ; j++)
        {
            ColumnDetailVo gridRecord = form.grdAreaWorkspace().getRows().get(j).getValue();
            if (columnDetail.getColumn().equals(gridRecord.getColumn()) )
            {   
                if (!gridRecord.getColHeader().equals(columnDetail.getColHeader()) || !gridRecord.getColWidth().equals(columnDetail.getColWidth()) || !maskInPublicAreaValuesAreEquals(gridRecord.getMaskInPublicArea(),columnDetail.getMaskInPublicArea())) //WDEV-17966
                {
                    updateRow(form.grdAreaWorkspace().getRows().get(j), columnDetail);
                }           

                isInGrid=true;              
                break;  
                }       
        }

        if (!isInGrid)
        {
            tempColl.add(columnDetail);
        }
    }

    for (int i=0;i<tempColl.size();i++)
    {
        addRow(tempColl.get(i));
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateGridWithOrder() //used only when closing the Dialog
{
    if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace() == null)
        return;
    else if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns() == null)
        return;

    ColumnDetailVoCollection collColumnDetails = form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns();

    ColumnDetailVoCollection tempColl=new ColumnDetailVoCollection();

    int rowsNumber = form.grdAreaWorkspace().getRows().size();

    //remove rows
    for (int i=form.grdAreaWorkspace().getRows().size()-1;i>=0;i--) 
    { 
        boolean isInCollection = false;
        for (int j=collColumnDetails.size()-1;j>=0;j--)
        {
            if (collColumnDetails.get(j).getColumn().equals(form.grdAreaWorkspace().getRows().get(i).getValue().getColumn()))
            {
                isInCollection=true;
            }   
        }
        if (!isInCollection)
            form.grdAreaWorkspace().getRows().remove(i);
    }

    //add or update rows
    for (int i = 0; i < collColumnDetails.size(); i++)
    {
        ColumnDetailVo columnDetail = collColumnDetails.get(i);

        boolean isInGrid = false;

        if (rowsNumber==0)
        {
            addRow(collColumnDetails.get(i));
            continue;
        }

        for (int j = 0; j <form.grdAreaWorkspace().getRows().size() ; j++)
        {
            ColumnDetailVo gridRecord = form.grdAreaWorkspace().getRows().get(j).getValue();
            if (columnDetail.getColumn().equals(gridRecord.getColumn()) )
            {   
                if (!gridRecord.getColHeader().equals(columnDetail.getColHeader()) || !gridRecord.getColWidth().equals(columnDetail.getColWidth()) || !maskInPublicAreaValuesAreEquals(gridRecord.getMaskInPublicArea(),columnDetail.getMaskInPublicArea())) //WDEV-17966
                {
                    updateRow(form.grdAreaWorkspace().getRows().get(j), columnDetail);
                }           

                isInGrid=true;              
                break;  
                }       
        }

        if (!isInGrid)
        {
            tempColl.add(columnDetail);
        }
    }

    for (int i=0;i<tempColl.size();i++)
    {
        addRow(tempColl.get(i));
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateGridWithOrder() //used only when closing the Dialog
{
    if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace() == null)
        return;
    else if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns() == null)
        return;

    ColumnDetailVoCollection collColumnDetails = form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns();

    ColumnDetailVoCollection tempColl=new ColumnDetailVoCollection();

    int rowsNumber = form.grdAreaWorkspace().getRows().size();

    //remove rows
    for (int i=form.grdAreaWorkspace().getRows().size()-1;i>=0;i--) 
    { 
        boolean isInCollection = false;
        for (int j=collColumnDetails.size()-1;j>=0;j--)
        {
            if (collColumnDetails.get(j).getColumn().equals(form.grdAreaWorkspace().getRows().get(i).getValue().getColumn()))
            {
                isInCollection=true;
            }   
        }
        if (!isInCollection)
            form.grdAreaWorkspace().getRows().remove(i);
    }

    //add or update rows
    for (int i = 0; i < collColumnDetails.size(); i++)
    {
        ColumnDetailVo columnDetail = collColumnDetails.get(i);

        boolean isInGrid = false;

        if (rowsNumber==0)
        {
            addRow(collColumnDetails.get(i));
            continue;
        }

        for (int j = 0; j <form.grdAreaWorkspace().getRows().size() ; j++)
        {
            ColumnDetailVo gridRecord = form.grdAreaWorkspace().getRows().get(j).getValue();
            if (columnDetail.getColumn().equals(gridRecord.getColumn()) )
            {   
                if (!gridRecord.getColHeader().equals(columnDetail.getColHeader()) || !gridRecord.getColWidth().equals(columnDetail.getColWidth()) || !maskInPublicAreaValuesAreEquals(gridRecord.getMaskInPublicArea(),columnDetail.getMaskInPublicArea())) //WDEV-17966
                {
                    updateRow(form.grdAreaWorkspace().getRows().get(j), columnDetail);
                }           

                isInGrid=true;              
                break;  
                }       
        }

        if (!isInGrid)
        {
            tempColl.add(columnDetail);
        }
    }

    for (int i=0;i<tempColl.size();i++)
    {
        addRow(tempColl.get(i));
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populateGridWithOrder() //used only when closing the Dialog
{
    if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace() == null)
        return;
    else if (form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns() == null)
        return;

    ColumnDetailVoCollection collColumnDetails = form.getGlobalContext().Emergency.getTrackingAreaWorkspace().getColumns();

    ColumnDetailVoCollection tempColl=new ColumnDetailVoCollection();

    int rowsNumber = form.grdAreaWorkspace().getRows().size();

    //remove rows
    for (int i=form.grdAreaWorkspace().getRows().size()-1;i>=0;i--) 
    { 
        boolean isInCollection = false;
        for (int j=collColumnDetails.size()-1;j>=0;j--)
        {
            if (collColumnDetails.get(j).getColumn().equals(form.grdAreaWorkspace().getRows().get(i).getValue().getColumn()))
            {
                isInCollection=true;
            }   
        }
        if (!isInCollection)
            form.grdAreaWorkspace().getRows().remove(i);
    }

    //add or update rows
    for (int i = 0; i < collColumnDetails.size(); i++)
    {
        ColumnDetailVo columnDetail = collColumnDetails.get(i);

        boolean isInGrid = false;

        if (rowsNumber==0)
        {
            addRow(collColumnDetails.get(i));
            continue;
        }

        for (int j = 0; j <form.grdAreaWorkspace().getRows().size() ; j++)
        {
            ColumnDetailVo gridRecord = form.grdAreaWorkspace().getRows().get(j).getValue();
            if (columnDetail.getColumn().equals(gridRecord.getColumn()) )
            {   
                if (!gridRecord.getColHeader().equals(columnDetail.getColHeader()) || !gridRecord.getColWidth().equals(columnDetail.getColWidth()) || !maskInPublicAreaValuesAreEquals(gridRecord.getMaskInPublicArea(),columnDetail.getMaskInPublicArea())) //WDEV-17966
                {
                    updateRow(form.grdAreaWorkspace().getRows().get(j), columnDetail);
                }           

                isInGrid=true;              
                break;  
                }       
        }

        if (!isInGrid)
        {
            tempColl.add(columnDetail);
        }
    }

    for (int i=0;i<tempColl.size();i++)
    {
        addRow(tempColl.get(i));
    }

}