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

项目:AvoinApotti    文件:Logic.java   
private void populateScreenWithLookups()
{
    form.grdTrackingAreaColum().getRows().clear();
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());

    if (lkpAreaCollection == null)
        return;

    for (int i = 0; i < lkpAreaCollection.size(); i++)
    {
        if (lkpAreaCollection.get(i).getID() == TrackingAreaColumn.PATHOLOGY_RESULTS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.CLINICAL_IMAGING_RESULTS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.RISKS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.OUTSTANDING_ORDERS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.PATIENT_PREVIOUS_STATUS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.LODGED_TYPE.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.LODGED_DATE_AND_TIME.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.ROOM.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.BED.getID()) //WDEV-17454, wdev-17573
            continue;

        grdTrackingAreaColumRow newAreaColumn = form.grdTrackingAreaColum().getRows().newRow();

        newAreaColumn.setcolColumnHeader(lkpAreaCollection.get(i).getIItemText());


        newAreaColumn.setcolSelect(false);
        newAreaColumn.setValue(lkpAreaCollection.get(i));
    }
}
项目:AvoinApotti    文件:Logic.java   
private void resetColumnConfig()
{
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());

    form.grdTrackingAreaColum().getSelectedRow().setcolColumnWidth(null);
    form.grdTrackingAreaColum().getSelectedRow().setcolSelect(false);
    form.grdTrackingAreaColum().getSelectedRow().setcolImage(null);
    form.grdTrackingAreaColum().getSelectedRow().setcolMaskInPublicArea(false);//WDEV-17966

    for (int i = 0; i < lkpAreaCollection.size(); i++)
    {
        if (lkpAreaCollection.get(i).equals(form.grdTrackingAreaColum().getSelectedRow().getValue()))
        {
            form.grdTrackingAreaColum().getSelectedRow().setcolColumnHeader(lkpAreaCollection.get(i).getIItemText());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenWithLookups()
{
    form.grdTrackingAreaColum().getRows().clear();
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());

    if (lkpAreaCollection == null)
        return;

    for (int i = 0; i < lkpAreaCollection.size(); i++)
    {
        if (lkpAreaCollection.get(i).getID() == TrackingAreaColumn.PATHOLOGY_RESULTS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.CLINICAL_IMAGING_RESULTS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.RISKS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.OUTSTANDING_ORDERS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.PATIENT_PREVIOUS_STATUS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.LODGED_TYPE.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.LODGED_DATE_AND_TIME.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.ROOM.getID()) //WDEV-17454, wdev-17573 //WDEV-17661
            continue;

        grdTrackingAreaColumRow newAreaColumn = form.grdTrackingAreaColum().getRows().newRow();

        newAreaColumn.setcolColumnHeader(lkpAreaCollection.get(i).getIItemText());


        newAreaColumn.setcolSelect(false);
        newAreaColumn.setValue(lkpAreaCollection.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void resetColumnConfig()
{
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());

    form.grdTrackingAreaColum().getSelectedRow().setcolColumnWidth(null);
    form.grdTrackingAreaColum().getSelectedRow().setcolSelect(false);
    form.grdTrackingAreaColum().getSelectedRow().setcolImage(null);
    form.grdTrackingAreaColum().getSelectedRow().setcolMaskInPublicArea(false);//WDEV-17966

    for (int i = 0; i < lkpAreaCollection.size(); i++)
    {
        if (lkpAreaCollection.get(i).equals(form.grdTrackingAreaColum().getSelectedRow().getValue()))
        {
            form.grdTrackingAreaColum().getSelectedRow().setcolColumnHeader(lkpAreaCollection.get(i).getIItemText());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenWithLookups()
{
    form.grdTrackingAreaColum().getRows().clear();
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());

    if (lkpAreaCollection == null)
        return;

    for (int i = 0; i < lkpAreaCollection.size(); i++)
    {
        if (lkpAreaCollection.get(i).getID() == TrackingAreaColumn.PATHOLOGY_RESULTS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.CLINICAL_IMAGING_RESULTS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.RISKS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.OUTSTANDING_ORDERS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.PATIENT_PREVIOUS_STATUS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.LODGED_TYPE.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.LODGED_DATE_AND_TIME.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.ROOM.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.BED.getID()) //WDEV-17454, wdev-17573
            continue;

        grdTrackingAreaColumRow newAreaColumn = form.grdTrackingAreaColum().getRows().newRow();

        newAreaColumn.setcolColumnHeader(lkpAreaCollection.get(i).getIItemText());


        newAreaColumn.setcolSelect(false);
        newAreaColumn.setValue(lkpAreaCollection.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void resetColumnConfig()
{
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());

    form.grdTrackingAreaColum().getSelectedRow().setcolColumnWidth(null);
    form.grdTrackingAreaColum().getSelectedRow().setcolSelect(false);
    form.grdTrackingAreaColum().getSelectedRow().setcolImage(null);
    form.grdTrackingAreaColum().getSelectedRow().setcolMaskInPublicArea(false);//WDEV-17966

    for (int i = 0; i < lkpAreaCollection.size(); i++)
    {
        if (lkpAreaCollection.get(i).equals(form.grdTrackingAreaColum().getSelectedRow().getValue()))
        {
            form.grdTrackingAreaColum().getSelectedRow().setcolColumnHeader(lkpAreaCollection.get(i).getIItemText());
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenWithLookups()
{
    form.grdTrackingAreaColum().getRows().clear();
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());

    if (lkpAreaCollection == null)
        return;

    for (int i = 0; i < lkpAreaCollection.size(); i++)
    {
        if (lkpAreaCollection.get(i).getID() == TrackingAreaColumn.PATHOLOGY_RESULTS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.CLINICAL_IMAGING_RESULTS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.RISKS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.OUTSTANDING_ORDERS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.PATIENT_PREVIOUS_STATUS.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.LODGED_TYPE.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.LODGED_DATE_AND_TIME.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.ROOM.getID() || lkpAreaCollection.get(i).getID() == TrackingAreaColumn.BED.getID()) //WDEV-17454, wdev-17573
            continue;

        grdTrackingAreaColumRow newAreaColumn = form.grdTrackingAreaColum().getRows().newRow();

        newAreaColumn.setcolColumnHeader(lkpAreaCollection.get(i).getIItemText());


        newAreaColumn.setcolSelect(false);
        newAreaColumn.setValue(lkpAreaCollection.get(i));
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void resetColumnConfig()
{
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());

    form.grdTrackingAreaColum().getSelectedRow().setcolColumnWidth(null);
    form.grdTrackingAreaColum().getSelectedRow().setcolSelect(false);
    form.grdTrackingAreaColum().getSelectedRow().setcolImage(null);
    form.grdTrackingAreaColum().getSelectedRow().setcolMaskInPublicArea(false);//WDEV-17966

    for (int i = 0; i < lkpAreaCollection.size(); i++)
    {
        if (lkpAreaCollection.get(i).equals(form.grdTrackingAreaColum().getSelectedRow().getValue()))
        {
            form.grdTrackingAreaColum().getSelectedRow().setcolColumnHeader(lkpAreaCollection.get(i).getIItemText());
        }
    }
}
项目: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 getColumnDetails()
{

    String maximsInternalCode = findMapping(form.getLocalContext().getSelectedRow().getColumn());
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());
    int selectedRowIndex = lkpAreaCollection.indexOf(form.getLocalContext().getSelectedRow().getColumn());

    form.getGlobalContext().Emergency.getAreaColumn().setColumn(lkpAreaCollection.get(selectedRowIndex));

    if (maximsInternalCode != "" && maximsInternalCode != null)
    {
        try
        {
            form.getGlobalContext().Emergency.getAreaColumn().setColWidth(Integer.parseInt(maximsInternalCode));
        }
        catch (NumberFormatException e)
        {
            engine.showMessage("Maxims Internal mapping '" + (maximsInternalCode) + "' is not a number ! Column width will default to remaining space. ");
            form.getGlobalContext().Emergency.getAreaColumn().setColWidth(1000 - usedSpace);
        }
    }
    else
    {
        form.getGlobalContext().Emergency.getAreaColumn().setColWidth(1000 - usedSpace);
    }

    form.getGlobalContext().Emergency.getAreaColumn().setColHeader(form.getLocalContext().getSelectedRow().getColumn().getIItemText());
    form.getGlobalContext().Emergency.getAreaColumn().setIsChecked(true);
    form.getGlobalContext().Emergency.getAreaColumn().setMaskInPublicArea(form.getLocalContext().getSelectedRow().getMaskInPublicArea());//WDEV-17966
}
项目: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 getColumnDetails()
{

    String maximsInternalCode = findMapping(form.getLocalContext().getSelectedRow().getColumn());
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());
    int selectedRowIndex = lkpAreaCollection.indexOf(form.getLocalContext().getSelectedRow().getColumn());

    form.getGlobalContext().Emergency.getAreaColumn().setColumn(lkpAreaCollection.get(selectedRowIndex));

    if (maximsInternalCode != "" && maximsInternalCode != null)
    {
        try
        {
            form.getGlobalContext().Emergency.getAreaColumn().setColWidth(Integer.parseInt(maximsInternalCode));
        }
        catch (NumberFormatException e)
        {
            engine.showMessage("Maxims Internal mapping '" + (maximsInternalCode) + "' is not a number ! Column width will default to remaining space. ");
            form.getGlobalContext().Emergency.getAreaColumn().setColWidth(1000 - usedSpace);
        }
    }
    else
    {
        form.getGlobalContext().Emergency.getAreaColumn().setColWidth(1000 - usedSpace);
    }

    form.getGlobalContext().Emergency.getAreaColumn().setColHeader(form.getLocalContext().getSelectedRow().getColumn().getIItemText());
    form.getGlobalContext().Emergency.getAreaColumn().setIsChecked(true);
    form.getGlobalContext().Emergency.getAreaColumn().setMaskInPublicArea(form.getLocalContext().getSelectedRow().getMaskInPublicArea());//WDEV-17966
}
项目: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 getColumnDetails()
{

    String maximsInternalCode = findMapping(form.getLocalContext().getSelectedRow().getColumn());
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());
    int selectedRowIndex = lkpAreaCollection.indexOf(form.getLocalContext().getSelectedRow().getColumn());

    form.getGlobalContext().Emergency.getAreaColumn().setColumn(lkpAreaCollection.get(selectedRowIndex));

    if (maximsInternalCode != "" && maximsInternalCode != null)
    {
        try
        {
            form.getGlobalContext().Emergency.getAreaColumn().setColWidth(Integer.parseInt(maximsInternalCode));
        }
        catch (NumberFormatException e)
        {
            engine.showMessage("Maxims Internal mapping '" + (maximsInternalCode) + "' is not a number ! Column width will default to remaining space. ");
            form.getGlobalContext().Emergency.getAreaColumn().setColWidth(1000 - usedSpace);
        }
    }
    else
    {
        form.getGlobalContext().Emergency.getAreaColumn().setColWidth(1000 - usedSpace);
    }

    form.getGlobalContext().Emergency.getAreaColumn().setColHeader(form.getLocalContext().getSelectedRow().getColumn().getIItemText());
    form.getGlobalContext().Emergency.getAreaColumn().setIsChecked(true);
    form.getGlobalContext().Emergency.getAreaColumn().setMaskInPublicArea(form.getLocalContext().getSelectedRow().getMaskInPublicArea());//WDEV-17966
}
项目: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 getColumnDetails()
{

    String maximsInternalCode = findMapping(form.getLocalContext().getSelectedRow().getColumn());
    TrackingAreaColumnCollection lkpAreaCollection = LookupHelper.getTrackingAreaColumn(domain.getLookupService());
    int selectedRowIndex = lkpAreaCollection.indexOf(form.getLocalContext().getSelectedRow().getColumn());

    form.getGlobalContext().Emergency.getAreaColumn().setColumn(lkpAreaCollection.get(selectedRowIndex));

    if (maximsInternalCode != "" && maximsInternalCode != null)
    {
        try
        {
            form.getGlobalContext().Emergency.getAreaColumn().setColWidth(Integer.parseInt(maximsInternalCode));
        }
        catch (NumberFormatException e)
        {
            engine.showMessage("Maxims Internal mapping '" + (maximsInternalCode) + "' is not a number ! Column width will default to remaining space. ");
            form.getGlobalContext().Emergency.getAreaColumn().setColWidth(1000 - usedSpace);
        }
    }
    else
    {
        form.getGlobalContext().Emergency.getAreaColumn().setColWidth(1000 - usedSpace);
    }

    form.getGlobalContext().Emergency.getAreaColumn().setColHeader(form.getLocalContext().getSelectedRow().getColumn().getIItemText());
    form.getGlobalContext().Emergency.getAreaColumn().setIsChecked(true);
    form.getGlobalContext().Emergency.getAreaColumn().setMaskInPublicArea(form.getLocalContext().getSelectedRow().getMaskInPublicArea());//WDEV-17966
}