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

项目:AvoinApotti    文件:Logic.java   
private void setAreaColumnGlobalContext()
{
    if (form.getGlobalContext().Emergency.getAreaColumn() == null)
    {
        form.getGlobalContext().Emergency.setAreaColumn(new ColumnDetailVo());
    }

    form.getGlobalContext().Emergency.getAreaColumn().setColHeader(form.grdTrackingAreaColum().getSelectedRow().getcolColumnHeader());
    form.getGlobalContext().Emergency.getAreaColumn().setMaskInPublicArea(form.grdTrackingAreaColum().getSelectedRow().getcolMaskInPublicArea());//WDEV-17966
    form.getGlobalContext().Emergency.getAreaColumn().setIsChecked(form.grdTrackingAreaColum().getSelectedRow().getcolSelect());
    form.getGlobalContext().Emergency.getAreaColumn().setColumn(form.getLocalContext().getSelectedRow().getColumn());

    if (form.grdTrackingAreaColum().getSelectedRow().getcolColumnWidth() != null)
    {
        form.getGlobalContext().Emergency.getAreaColumn().setColWidth(form.grdTrackingAreaColum().getSelectedRow().getcolColumnWidth());
    }
    else
    {
        form.getGlobalContext().Emergency.getAreaColumn().setColWidth(1000 - usedSpace);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addTrackingColumn(ColumnDetailVo column) 
{
    if(column == null || column.getColHeader() == null)
        return;

    DynamicGridColumn gridColumn = form.dyngrdTrack().getColumns().newColumn(column.getColHeader());
    gridColumn.setIdentifier(column.getColumn());
    gridColumn.setWidth(column.getColWidth());

    //WDEV-15819
    if (! isImageColumn(gridColumn)) //image columns will not have the sort option
    {
        gridColumn.setSortMode(SortMode.MANUAL);
    }


}
项目: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;
}
项目:AvoinApotti    文件:Logic.java   
private void initialise()
{
    if (form.getGlobalContext().Emergency.getAreaColumnIsNotNull())
    {
        ColumnDetailVo areaColum = form.getGlobalContext().Emergency.getAreaColumn();
        form.txtColumnHeader().setValue(areaColum.getColHeader());
        form.txtForColumn().setValue(areaColum.getColHeader());
        form.chkSelect().setValue(areaColum.getIsChecked());
        form.chkMaskInPublicArea().setValue(areaColum.getMaskInPublicArea());//WDEV-17966
        form.intColWidth().setValue(areaColum.getColWidth());
        if (areaColum.getColumn() != null && areaColum.getColumn().getImage() != null)
        {
            form.imgImage().setValue(areaColum.getColumn().getIItemImage());
        }
        else
        {
            form.imgImage().setVisible(false);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setAreaColumnGlobalContext()
{
    if (form.getGlobalContext().Emergency.getAreaColumn() == null)
    {
        form.getGlobalContext().Emergency.setAreaColumn(new ColumnDetailVo());
    }

    form.getGlobalContext().Emergency.getAreaColumn().setColHeader(form.grdTrackingAreaColum().getSelectedRow().getcolColumnHeader());
    form.getGlobalContext().Emergency.getAreaColumn().setMaskInPublicArea(form.grdTrackingAreaColum().getSelectedRow().getcolMaskInPublicArea());//WDEV-17966
    form.getGlobalContext().Emergency.getAreaColumn().setIsChecked(form.grdTrackingAreaColum().getSelectedRow().getcolSelect());
    form.getGlobalContext().Emergency.getAreaColumn().setColumn(form.getLocalContext().getSelectedRow().getColumn());

    if (form.grdTrackingAreaColum().getSelectedRow().getcolColumnWidth() != null)
    {
        form.getGlobalContext().Emergency.getAreaColumn().setColWidth(form.grdTrackingAreaColum().getSelectedRow().getcolColumnWidth());
    }
    else
    {
        form.getGlobalContext().Emergency.getAreaColumn().setColWidth(1000 - usedSpace);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addTrackingColumn(ColumnDetailVo column) 
{
    if(column == null || column.getColHeader() == null)
        return;

    DynamicGridColumn gridColumn = form.dyngrdTrack().getColumns().newColumn(column.getColHeader());
    gridColumn.setIdentifier(column.getColumn());
    gridColumn.setHeaderTooltip(column.getColHeader()); //WDEV-20227
    gridColumn.setWidth(column.getColWidth());

    //WDEV-15819
    if (! isImageColumn(gridColumn)) //image columns will not have the sort option
    {
        gridColumn.setSortMode(SortMode.MANUAL);
    }

    if (TrackingAreaColumn.ATTENDANCE_NOTES_PRESENT.equals(gridColumn.getIdentifier()) || isImageColumn(gridColumn)) //WDEV-19275
    {
        gridColumn.setAlignment(Alignment.CENTER);
    }

}
项目: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 initialise()
{
    if (form.getGlobalContext().Emergency.getAreaColumnIsNotNull())
    {
        ColumnDetailVo areaColum = form.getGlobalContext().Emergency.getAreaColumn();
        form.txtColumnHeader().setValue(areaColum.getColHeader());
        form.txtForColumn().setValue(areaColum.getColHeader());
        form.chkSelect().setValue(areaColum.getIsChecked());
        form.chkMaskInPublicArea().setValue(areaColum.getMaskInPublicArea());//WDEV-17966
        form.intColWidth().setValue(areaColum.getColWidth());
        if (areaColum.getColumn() != null && areaColum.getColumn().getImage() != null)
        {
            form.imgImage().setValue(areaColum.getColumn().getIItemImage());
        }
        else
        {
            form.imgImage().setVisible(false);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setAreaColumnGlobalContext()
{
    if (form.getGlobalContext().Emergency.getAreaColumn() == null)
    {
        form.getGlobalContext().Emergency.setAreaColumn(new ColumnDetailVo());
    }

    form.getGlobalContext().Emergency.getAreaColumn().setColHeader(form.grdTrackingAreaColum().getSelectedRow().getcolColumnHeader());
    form.getGlobalContext().Emergency.getAreaColumn().setMaskInPublicArea(form.grdTrackingAreaColum().getSelectedRow().getcolMaskInPublicArea());//WDEV-17966
    form.getGlobalContext().Emergency.getAreaColumn().setIsChecked(form.grdTrackingAreaColum().getSelectedRow().getcolSelect());
    form.getGlobalContext().Emergency.getAreaColumn().setColumn(form.getLocalContext().getSelectedRow().getColumn());

    if (form.grdTrackingAreaColum().getSelectedRow().getcolColumnWidth() != null)
    {
        form.getGlobalContext().Emergency.getAreaColumn().setColWidth(form.grdTrackingAreaColum().getSelectedRow().getcolColumnWidth());
    }
    else
    {
        form.getGlobalContext().Emergency.getAreaColumn().setColWidth(1000 - usedSpace);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addTrackingColumn(ColumnDetailVo column) 
{
    if(column == null || column.getColHeader() == null)
        return;

    DynamicGridColumn gridColumn = form.dyngrdTrack().getColumns().newColumn(column.getColHeader());
    gridColumn.setIdentifier(column.getColumn());
    gridColumn.setWidth(column.getColWidth());

    //WDEV-15819
    if (! isImageColumn(gridColumn)) //image columns will not have the sort option
    {
        gridColumn.setSortMode(SortMode.MANUAL);
    }


}
项目: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 initialise()
{
    if (form.getGlobalContext().Emergency.getAreaColumnIsNotNull())
    {
        ColumnDetailVo areaColum = form.getGlobalContext().Emergency.getAreaColumn();
        form.txtColumnHeader().setValue(areaColum.getColHeader());
        form.txtForColumn().setValue(areaColum.getColHeader());
        form.chkSelect().setValue(areaColum.getIsChecked());
        form.chkMaskInPublicArea().setValue(areaColum.getMaskInPublicArea());//WDEV-17966
        form.intColWidth().setValue(areaColum.getColWidth());
        if (areaColum.getColumn() != null && areaColum.getColumn().getImage() != null)
        {
            form.imgImage().setValue(areaColum.getColumn().getIItemImage());
        }
        else
        {
            form.imgImage().setVisible(false);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void setAreaColumnGlobalContext()
{
    if (form.getGlobalContext().Emergency.getAreaColumn() == null)
    {
        form.getGlobalContext().Emergency.setAreaColumn(new ColumnDetailVo());
    }

    form.getGlobalContext().Emergency.getAreaColumn().setColHeader(form.grdTrackingAreaColum().getSelectedRow().getcolColumnHeader());
    form.getGlobalContext().Emergency.getAreaColumn().setMaskInPublicArea(form.grdTrackingAreaColum().getSelectedRow().getcolMaskInPublicArea());//WDEV-17966
    form.getGlobalContext().Emergency.getAreaColumn().setIsChecked(form.grdTrackingAreaColum().getSelectedRow().getcolSelect());
    form.getGlobalContext().Emergency.getAreaColumn().setColumn(form.getLocalContext().getSelectedRow().getColumn());

    if (form.grdTrackingAreaColum().getSelectedRow().getcolColumnWidth() != null)
    {
        form.getGlobalContext().Emergency.getAreaColumn().setColWidth(form.grdTrackingAreaColum().getSelectedRow().getcolColumnWidth());
    }
    else
    {
        form.getGlobalContext().Emergency.getAreaColumn().setColWidth(1000 - usedSpace);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void addTrackingColumn(ColumnDetailVo column) 
{
    if(column == null || column.getColHeader() == null)
        return;

    DynamicGridColumn gridColumn = form.dyngrdTrack().getColumns().newColumn(column.getColHeader());
    gridColumn.setIdentifier(column.getColumn());
    gridColumn.setWidth(column.getColWidth());

    //WDEV-15819
    if (! isImageColumn(gridColumn)) //image columns will not have the sort option
    {
        gridColumn.setSortMode(SortMode.MANUAL);
    }


}
项目: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;
}
项目:openmaxims-linux    文件:Logic.java   
private void initialise()
{
    if (form.getGlobalContext().Emergency.getAreaColumnIsNotNull())
    {
        ColumnDetailVo areaColum = form.getGlobalContext().Emergency.getAreaColumn();
        form.txtColumnHeader().setValue(areaColum.getColHeader());
        form.txtForColumn().setValue(areaColum.getColHeader());
        form.chkSelect().setValue(areaColum.getIsChecked());
        form.chkMaskInPublicArea().setValue(areaColum.getMaskInPublicArea());//WDEV-17966
        form.intColWidth().setValue(areaColum.getColWidth());
        if (areaColum.getColumn() != null && areaColum.getColumn().getImage() != null)
        {
            form.imgImage().setValue(areaColum.getColumn().getIItemImage());
        }
        else
        {
            form.imgImage().setVisible(false);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void updateRow(grdAreaWorkspaceRow row, ColumnDetailVo columnDetail)
{
    row.setcolHeader(columnDetail.getColHeader());
    row.setcolWidth(columnDetail.getColWidth().toString());
    row.setcolImage(columnDetail.getColumn().getImage());
    row.setcolMaskInPublicArea(columnDetail.getMaskInPublicArea()!=null ? columnDetail.getMaskInPublicArea(): false);//WDEV-17966
    row.setValue(columnDetail);

}
项目:AvoinApotti    文件:Logic.java   
private void addRow(ColumnDetailVo columnDetail)// latest changes 06.04.2012
{
    grdAreaWorkspaceRow row = form.grdAreaWorkspace().getRows().newRow();
    row.setcolHeader(columnDetail.getColHeader());
    row.setcolWidth(columnDetail.getColWidth().toString());
    row.setcolImage(columnDetail.getColumn().getImage());
    row.setcolMaskInPublicArea(columnDetail.getMaskInPublicArea()!=null ? columnDetail.getMaskInPublicArea(): false);//WDEV-17966
    row.setValue(columnDetail);
}
项目: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   
protected void onGrdTrackingAreaColumGridCheckBoxClicked(int column, grdTrackingAreaColumRow row, boolean isChecked) throws PresentationLogicException
{
    if (!form.getLocalContext().getSelectedRowIsNotNull())
    {
        form.getLocalContext().setSelectedRow(new ColumnDetailVo());
    }

    form.getLocalContext().getSelectedRow().setColumn((TrackingAreaColumn) row.getValue());

    if (form.getGlobalContext().Emergency.getAreaColumn() == null)
    {
        form.getGlobalContext().Emergency.setAreaColumn(new ColumnDetailVo());
    }

    if (isChecked)
    {
        form.getLocalContext().setSelectedEvent(TrackingAreaColumnConfigEvent.AREACOLUMNGRIDCHECKED);
        getColumnDetails();
        engine.open(form.getForms().Emergency.ColumnConfigDialog);
    }
    else
    {
        form.getLocalContext().setSelectedEvent(null);
        form.grdTrackingAreaColum().setValue(row.getValue());

        if (form.grdTrackingAreaColum().getSelectedRow().getcolColumnWidth() != null)
        {
            usedSpace = usedSpace - form.grdTrackingAreaColum().getSelectedRow().getcolColumnWidth();
        }
        resetColumnConfig();
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onGrdTrackingAreaColumSelectionChanged() throws PresentationLogicException
{
    if (form.getLocalContext().getSelectedRow() == null)
    {
        form.getLocalContext().setSelectedRow(new ColumnDetailVo());
    }
    form.getLocalContext().getSelectedRow().setColumn((TrackingAreaColumn) form.grdTrackingAreaColum().getValue());
    updateContextMenuState();
    setAreaColumnGlobalContext();
}
项目:AvoinApotti    文件:Logic.java   
private void initializeTrackingGrid() 
{
    form.dyngrdTrack().clear();
    form.dyngrdTrack().setSelectable(true);

    if(!(form.grdTrackingCount().getValue() instanceof TrackingAreaForTrackingVo) || ((TrackingAreaForTrackingVo) form.grdTrackingCount().getValue()).getColumns() == null)
        return;

    for(ColumnDetailVo column : ((TrackingAreaForTrackingVo)form.grdTrackingCount().getValue()).getColumns())
    {
        addTrackingColumn(column);
    }
}
项目:AvoinApotti    文件:Logic.java   
private ColumnDetailVo getAreaValues()
{
    ColumnDetailVo columnDetail = form.getGlobalContext().Emergency.getAreaColumn();
    columnDetail.setColHeader(form.txtColumnHeader().getValue());
    columnDetail.setIsChecked(form.chkSelect().getValue());
    columnDetail.setColWidth(form.intColWidth().getValue());
    columnDetail.setMaskInPublicArea(form.chkMaskInPublicArea().getValue());//WDEV-17966

    return columnDetail;
}
项目:openMAXIMS    文件:Logic.java   
private void updateRow(grdAreaWorkspaceRow row, ColumnDetailVo columnDetail)
{
    row.setcolHeader(columnDetail.getColHeader());
    row.setcolWidth(columnDetail.getColWidth().toString());
    row.setcolImage(columnDetail.getColumn().getImage());
    row.setcolMaskInPublicArea(columnDetail.getMaskInPublicArea()!=null ? columnDetail.getMaskInPublicArea(): false);//WDEV-17966
    row.setValue(columnDetail);

}
项目:openMAXIMS    文件:Logic.java   
private void addRow(ColumnDetailVo columnDetail)// latest changes 06.04.2012
{
    grdAreaWorkspaceRow row = form.grdAreaWorkspace().getRows().newRow();
    row.setcolHeader(columnDetail.getColHeader());
    row.setcolWidth(columnDetail.getColWidth().toString());
    row.setcolImage(columnDetail.getColumn().getImage());
    row.setcolMaskInPublicArea(columnDetail.getMaskInPublicArea()!=null ? columnDetail.getMaskInPublicArea(): false);//WDEV-17966
    row.setValue(columnDetail);
}
项目: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   
protected void onGrdTrackingAreaColumGridCheckBoxClicked(int column, grdTrackingAreaColumRow row, boolean isChecked) throws PresentationLogicException
{
    if (!form.getLocalContext().getSelectedRowIsNotNull())
    {
        form.getLocalContext().setSelectedRow(new ColumnDetailVo());
    }

    form.getLocalContext().getSelectedRow().setColumn((TrackingAreaColumn) row.getValue());

    if (form.getGlobalContext().Emergency.getAreaColumn() == null)
    {
        form.getGlobalContext().Emergency.setAreaColumn(new ColumnDetailVo());
    }

    if (isChecked)
    {
        form.getLocalContext().setSelectedEvent(TrackingAreaColumnConfigEvent.AREACOLUMNGRIDCHECKED);
        getColumnDetails();
        engine.open(form.getForms().Emergency.ColumnConfigDialog);
    }
    else
    {
        form.getLocalContext().setSelectedEvent(null);
        form.grdTrackingAreaColum().setValue(row.getValue());

        if (form.grdTrackingAreaColum().getSelectedRow().getcolColumnWidth() != null)
        {
            usedSpace = usedSpace - form.grdTrackingAreaColum().getSelectedRow().getcolColumnWidth();
        }
        resetColumnConfig();
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdTrackingAreaColumSelectionChanged() throws PresentationLogicException
{
    if (form.getLocalContext().getSelectedRow() == null)
    {
        form.getLocalContext().setSelectedRow(new ColumnDetailVo());
    }
    form.getLocalContext().getSelectedRow().setColumn((TrackingAreaColumn) form.grdTrackingAreaColum().getValue());
    updateContextMenuState();
    setAreaColumnGlobalContext();
}
项目:openMAXIMS    文件:Logic.java   
private void initializeTrackingGrid() 
{
    form.dyngrdTrack().clear();
    form.dyngrdTrack().setSelectable(true);

    if(!(form.grdTrackingCount().getValue() instanceof TrackingAreaForTrackingVo) || ((TrackingAreaForTrackingVo) form.grdTrackingCount().getValue()).getColumns() == null)
        return;

    for(ColumnDetailVo column : ((TrackingAreaForTrackingVo)form.grdTrackingCount().getValue()).getColumns())
    {
        addTrackingColumn(column);
    }
}
项目:openMAXIMS    文件:Logic.java   
private ColumnDetailVo getAreaValues()
{
    ColumnDetailVo columnDetail = form.getGlobalContext().Emergency.getAreaColumn();
    columnDetail.setColHeader(form.txtColumnHeader().getValue());
    columnDetail.setIsChecked(form.chkSelect().getValue());
    columnDetail.setColWidth(form.intColWidth().getValue());
    columnDetail.setMaskInPublicArea(form.chkMaskInPublicArea().getValue());//WDEV-17966

    return columnDetail;
}
项目:openMAXIMS    文件:Logic.java   
private void updateRow(grdAreaWorkspaceRow row, ColumnDetailVo columnDetail)
{
    row.setcolHeader(columnDetail.getColHeader());
    row.setcolWidth(columnDetail.getColWidth().toString());
    row.setcolImage(columnDetail.getColumn().getImage());
    row.setcolMaskInPublicArea(columnDetail.getMaskInPublicArea()!=null ? columnDetail.getMaskInPublicArea(): false);//WDEV-17966
    row.setValue(columnDetail);

}
项目:openMAXIMS    文件:Logic.java   
private void addRow(ColumnDetailVo columnDetail)// latest changes 06.04.2012
{
    grdAreaWorkspaceRow row = form.grdAreaWorkspace().getRows().newRow();
    row.setcolHeader(columnDetail.getColHeader());
    row.setcolWidth(columnDetail.getColWidth().toString());
    row.setcolImage(columnDetail.getColumn().getImage());
    row.setcolMaskInPublicArea(columnDetail.getMaskInPublicArea()!=null ? columnDetail.getMaskInPublicArea(): false);//WDEV-17966
    row.setValue(columnDetail);
}
项目: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   
protected void onGrdTrackingAreaColumGridCheckBoxClicked(int column, grdTrackingAreaColumRow row, boolean isChecked) throws PresentationLogicException
{
    if (!form.getLocalContext().getSelectedRowIsNotNull())
    {
        form.getLocalContext().setSelectedRow(new ColumnDetailVo());
    }

    form.getLocalContext().getSelectedRow().setColumn((TrackingAreaColumn) row.getValue());

    if (form.getGlobalContext().Emergency.getAreaColumn() == null)
    {
        form.getGlobalContext().Emergency.setAreaColumn(new ColumnDetailVo());
    }

    if (isChecked)
    {
        form.getLocalContext().setSelectedEvent(TrackingAreaColumnConfigEvent.AREACOLUMNGRIDCHECKED);
        getColumnDetails();
        engine.open(form.getForms().Emergency.ColumnConfigDialog);
    }
    else
    {
        form.getLocalContext().setSelectedEvent(null);
        form.grdTrackingAreaColum().setValue(row.getValue());

        if (form.grdTrackingAreaColum().getSelectedRow().getcolColumnWidth() != null)
        {
            usedSpace = usedSpace - form.grdTrackingAreaColum().getSelectedRow().getcolColumnWidth();
        }
        resetColumnConfig();
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdTrackingAreaColumSelectionChanged() throws PresentationLogicException
{
    if (form.getLocalContext().getSelectedRow() == null)
    {
        form.getLocalContext().setSelectedRow(new ColumnDetailVo());
    }
    form.getLocalContext().getSelectedRow().setColumn((TrackingAreaColumn) form.grdTrackingAreaColum().getValue());
    updateContextMenuState();
    setAreaColumnGlobalContext();
}
项目:openMAXIMS    文件:Logic.java   
private void initializeTrackingGrid() 
{
    form.dyngrdTrack().clear();
    form.dyngrdTrack().setSelectable(true);

    if(!(form.grdTrackingCount().getValue() instanceof TrackingAreaForTrackingVo) || ((TrackingAreaForTrackingVo) form.grdTrackingCount().getValue()).getColumns() == null)
        return;

    for(ColumnDetailVo column : ((TrackingAreaForTrackingVo)form.grdTrackingCount().getValue()).getColumns())
    {
        addTrackingColumn(column);
    }
}
项目:openMAXIMS    文件:Logic.java   
private ColumnDetailVo getAreaValues()
{
    ColumnDetailVo columnDetail = form.getGlobalContext().Emergency.getAreaColumn();
    columnDetail.setColHeader(form.txtColumnHeader().getValue());
    columnDetail.setIsChecked(form.chkSelect().getValue());
    columnDetail.setColWidth(form.intColWidth().getValue());
    columnDetail.setMaskInPublicArea(form.chkMaskInPublicArea().getValue());//WDEV-17966

    return columnDetail;
}
项目:openmaxims-linux    文件:Logic.java   
private void updateRow(grdAreaWorkspaceRow row, ColumnDetailVo columnDetail)
{
    row.setcolHeader(columnDetail.getColHeader());
    row.setcolWidth(columnDetail.getColWidth().toString());
    row.setcolImage(columnDetail.getColumn().getImage());
    row.setcolMaskInPublicArea(columnDetail.getMaskInPublicArea()!=null ? columnDetail.getMaskInPublicArea(): false);//WDEV-17966
    row.setValue(columnDetail);

}
项目:openmaxims-linux    文件:Logic.java   
private void addRow(ColumnDetailVo columnDetail)// latest changes 06.04.2012
{
    grdAreaWorkspaceRow row = form.grdAreaWorkspace().getRows().newRow();
    row.setcolHeader(columnDetail.getColHeader());
    row.setcolWidth(columnDetail.getColWidth().toString());
    row.setcolImage(columnDetail.getColumn().getImage());
    row.setcolMaskInPublicArea(columnDetail.getMaskInPublicArea()!=null ? columnDetail.getMaskInPublicArea(): false);//WDEV-17966
    row.setValue(columnDetail);
}
项目: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);
}