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

项目:AvoinApotti    文件:Logic.java   
private void populateScreenWithLookups()
{
    form.grdTrackingStatus().getRows().clear();
    TrackingStatusCollection trackingStatusCollection = LookupHelper.getTrackingStatus(domain.getLookupService());

    if (trackingStatusCollection == null)
        return;

    for (int i = 0; i < trackingStatusCollection.size(); i++)
    {
        //WDEV-16987
        if (TrackingStatus.DISCHARGED.equals(trackingStatusCollection.get(i)))
            continue;

        grdTrackingStatusRow newAreaColumn = form.grdTrackingStatus().getRows().newRow();
        newAreaColumn.setcolStatus(trackingStatusCollection.get(i).getIItemText());
        newAreaColumn.setcolSelect(false);
        newAreaColumn.setValue(trackingStatusCollection.get(i));
    }
}
项目: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 String findMapping(TrackingAreaColumn trackingAreaColumn)
{
    LookupInstVo inst = LookupHelper.getTrackingAreaColumnInstance(domain.getLookupService(), trackingAreaColumn.getID());
    LookupInstVo areaColumn = domain.getMappings(inst);
    if (areaColumn != null)
    {
        for (int i = 0; i < areaColumn.getMappings().size(); i++)
        {
            if (areaColumn.getMappings().get(i).getExtSystem().equals("Maxims Internal"))
            {
                return areaColumn.getMappings().get(i).getExtCode();
            }
        }
    }
    return null;
}
项目: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.grdTrackingStatus().getRows().clear();
    TrackingStatusCollection trackingStatusCollection = LookupHelper.getTrackingStatus(domain.getLookupService());

    if (trackingStatusCollection == null)
        return;

    for (int i = 0; i < trackingStatusCollection.size(); i++)
    {
        //WDEV-16987
        if (TrackingStatus.DISCHARGED.equals(trackingStatusCollection.get(i)))
            continue;

        grdTrackingStatusRow newAreaColumn = form.grdTrackingStatus().getRows().newRow();
        newAreaColumn.setcolStatus(trackingStatusCollection.get(i).getIItemText());
        newAreaColumn.setcolSelect(false);
        newAreaColumn.setValue(trackingStatusCollection.get(i));
    }
}
项目: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 String findMapping(TrackingAreaColumn trackingAreaColumn)
{
    LookupInstVo inst = LookupHelper.getTrackingAreaColumnInstance(domain.getLookupService(), trackingAreaColumn.getID());
    LookupInstVo areaColumn = domain.getMappings(inst);
    if (areaColumn != null)
    {
        for (int i = 0; i < areaColumn.getMappings().size(); i++)
        {
            if (areaColumn.getMappings().get(i).getExtSystem().equals("Maxims Internal"))
            {
                return areaColumn.getMappings().get(i).getExtCode();
            }
        }
    }
    return null;
}
项目: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 populateGridWithLookups()
{

    TriageTabsCollection lkpTriageTabsCollection = LookupHelper.getTriageTabs(domain.getLookupService());

    if (lkpTriageTabsCollection == null)
        return;

    for (int i = 0; i < lkpTriageTabsCollection.size(); i++)
    {
        //WDEV-20424 - hide pmh tab
        if (TriageTabs.ED_PMH_TAB.equals(lkpTriageTabsCollection.get(i)))
            continue;

        grdTabsRow row = form.lyrED().tabTriageTabConfig().grdTabs().getRows().newRow();

        row.setColName(lkpTriageTabsCollection.get(i).getText());
        row.setColHideTab(Boolean.FALSE);

        row.setValue(lkpTriageTabsCollection.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void initializeOutcomeMandatoryCoding()
{
    form.lyrED().tabOutcomeMandatoryCoding().grdMandatoryCoding().getRows().clear();

    ims.emergency.vo.lookups.AttendanceOutcomeCollection lookupCollection = ims.emergency.vo.lookups.LookupHelper.getAttendanceOutcome(this.domain.getLookupService());

    for(int x = 0; x < lookupCollection.size(); x++)
    {
        if (AttendanceOutcome.DID_NOT_WAIT.equals(lookupCollection.get(x)))
                continue;

        grdMandatoryCodingRow row = form.lyrED().tabOutcomeMandatoryCoding().grdMandatoryCoding().getRows().newRow();

        row.setColName(lookupCollection.get(x).getText());
        row.setValue(lookupCollection.get(x));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenWithLookups()
{
    form.grdTrackingStatus().getRows().clear();
    TrackingStatusCollection trackingStatusCollection = LookupHelper.getTrackingStatus(domain.getLookupService());

    if (trackingStatusCollection == null)
        return;

    for (int i = 0; i < trackingStatusCollection.size(); i++)
    {
        //WDEV-16987
        if (TrackingStatus.DISCHARGED.equals(trackingStatusCollection.get(i)))
            continue;

        grdTrackingStatusRow newAreaColumn = form.grdTrackingStatus().getRows().newRow();
        newAreaColumn.setcolStatus(trackingStatusCollection.get(i).getIItemText());
        newAreaColumn.setcolSelect(false);
        newAreaColumn.setValue(trackingStatusCollection.get(i));
    }
}
项目: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 String findMapping(TrackingAreaColumn trackingAreaColumn)
{
    LookupInstVo inst = LookupHelper.getTrackingAreaColumnInstance(domain.getLookupService(), trackingAreaColumn.getID());
    LookupInstVo areaColumn = domain.getMappings(inst);
    if (areaColumn != null)
    {
        for (int i = 0; i < areaColumn.getMappings().size(); i++)
        {
            if (areaColumn.getMappings().get(i).getExtSystem().equals("Maxims Internal"))
            {
                return areaColumn.getMappings().get(i).getExtCode();
            }
        }
    }
    return null;
}
项目: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.grdTrackingStatus().getRows().clear();
    TrackingStatusCollection trackingStatusCollection = LookupHelper.getTrackingStatus(domain.getLookupService());

    if (trackingStatusCollection == null)
        return;

    for (int i = 0; i < trackingStatusCollection.size(); i++)
    {
        //WDEV-16987
        if (TrackingStatus.DISCHARGED.equals(trackingStatusCollection.get(i)))
            continue;

        grdTrackingStatusRow newAreaColumn = form.grdTrackingStatus().getRows().newRow();
        newAreaColumn.setcolStatus(trackingStatusCollection.get(i).getIItemText());
        newAreaColumn.setcolSelect(false);
        newAreaColumn.setValue(trackingStatusCollection.get(i));
    }
}
项目: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 String findMapping(TrackingAreaColumn trackingAreaColumn)
{
    LookupInstVo inst = LookupHelper.getTrackingAreaColumnInstance(domain.getLookupService(), trackingAreaColumn.getID());
    LookupInstVo areaColumn = domain.getMappings(inst);
    if (areaColumn != null)
    {
        for (int i = 0; i < areaColumn.getMappings().size(); i++)
        {
            if (areaColumn.getMappings().get(i).getExtSystem().equals("Maxims Internal"))
            {
                return areaColumn.getMappings().get(i).getExtCode();
            }
        }
    }
    return null;
}
项目: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   
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));
    }
}
项目:AvoinApotti    文件:Logic.java   
public void initialize()
{
    form.getLocalContext().setTIIG(null);
    form.getLocalContext().setRTA(null);

    UrgencyLevelCollection collLookup = LookupHelper.getUrgencyLevel(domain.getLookupService());
    if (collLookup != null)
    {
        for (int i = 0; i < collLookup.size(); i++)
        {
            form.cmbUrgencyLevel().newRow(collLookup.get(i), collLookup.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   
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   
public void initialize()
{
    form.getLocalContext().setTIIG(null);
    form.getLocalContext().setRTA(null);

    UrgencyLevelCollection collLookup = LookupHelper.getUrgencyLevel(domain.getLookupService());
    if (collLookup != null)
    {
        for (int i = 0; i < collLookup.size(); i++)
        {
            form.cmbUrgencyLevel().newRow(collLookup.get(i), collLookup.get(i).getIItemText());
        }
    }

}
项目: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   
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   
public void initialize()
{
    form.getLocalContext().setTIIG(null);
    form.getLocalContext().setRTA(null);

    UrgencyLevelCollection collLookup = LookupHelper.getUrgencyLevel(domain.getLookupService());
    if (collLookup != null)
    {
        for (int i = 0; i < collLookup.size(); i++)
        {
            form.cmbUrgencyLevel().newRow(collLookup.get(i), collLookup.get(i).getIItemText());
        }
    }

}
项目: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   
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   
public void initialize()
{
    form.getLocalContext().setTIIG(null);
    form.getLocalContext().setRTA(null);

    UrgencyLevelCollection collLookup = LookupHelper.getUrgencyLevel(domain.getLookupService());
    if (collLookup != null)
    {
        for (int i = 0; i < collLookup.size(); i++)
        {
            form.cmbUrgencyLevel().newRow(collLookup.get(i), collLookup.get(i).getIItemText());
        }
    }

}
项目: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
}
项目:AvoinApotti    文件:Logic.java   
private EmergencyDeptTypeCollection getDefaultDeptType()
{
    EmergencyDeptTypeCollection lkpEmergencyDeptTypeCollection = LookupHelper.getEmergencyDeptType(domain.getLookupService());
       return lkpEmergencyDeptTypeCollection;
}
项目:openMAXIMS    文件:Logic.java   
private EmergencyDeptTypeCollection getDefaultDeptType()
{
    EmergencyDeptTypeCollection lkpEmergencyDeptTypeCollection = LookupHelper.getEmergencyDeptType(domain.getLookupService());
       return lkpEmergencyDeptTypeCollection;
}
项目:openMAXIMS    文件:Logic.java   
private EmergencyDeptTypeCollection getDefaultDeptType()
{
    EmergencyDeptTypeCollection lkpEmergencyDeptTypeCollection = LookupHelper.getEmergencyDeptType(domain.getLookupService());
       return lkpEmergencyDeptTypeCollection;
}
项目:openmaxims-linux    文件:Logic.java   
private EmergencyDeptTypeCollection getDefaultDeptType()
{
    EmergencyDeptTypeCollection lkpEmergencyDeptTypeCollection = LookupHelper.getEmergencyDeptType(domain.getLookupService());
       return lkpEmergencyDeptTypeCollection;
}