Java 类ims.core.vo.VaccineLiteVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void displaySelectedVaccines(VaccineLiteVoCollection coll) 
{
    if(coll == null)
        return;

    form.grdSelectedItems().getRows().clear();
    for (int i = 0; i < coll.size(); i++)
    {
        if(coll.get(i) != null)
        {
            grdSelectedItemsRow selRow = form.grdSelectedItems().getRows().newRow();
            selRow.setcolItems(coll.get(i).getVaccineName());
            selRow.setValue(coll.get(i));
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private VaccineLiteVoCollection filterExistingVaccines(VaccineLiteVoCollection coll) 
{
    VaccineLiteVoCollection newVaccinesColl = new VaccineLiteVoCollection();

    if(form.grdSelectedItems().getRows().size() == 0)
        return coll;

    coll.sort(SortOrder.ASCENDING);
    for(int j=0; j<coll.size(); j++)
    {
        boolean vaccineFound = false;
        for(int i=0; i<form.grdSelectedItems().getRows().size(); i++)
        {
            if(coll.get(j).equals((VaccineLiteVo) form.grdSelectedItems().getRows().get(i).getValue()))
            {
                vaccineFound = true;
                break;
            }
        }
        if(!vaccineFound)
        {
            newVaccinesColl.add(coll.get(j));
        }
    }
    return newVaccinesColl;
}
项目:AvoinApotti    文件:DiagnosisProceduresSearchImpl.java   
public VaccineLiteVoCollection listVaccine(String filter) throws DomainInterfaceException 
{
    VaccineLiteVoCollection coll = new VaccineLiteVoCollection();
    IGenericItem[] items = listIGenericItems(filter, CciType.VACCINE, true);

    if (items != null)
    {
        for ( int i = 0; i < items.length; i++)
        {
            coll.add((VaccineLiteVo)items[i]);
        }

        return coll;
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void displaySelectedVaccines(VaccineLiteVoCollection coll) 
{
    if(coll == null)
        return;

    form.grdSelectedItems().getRows().clear();
    for (int i = 0; i < coll.size(); i++)
    {
        if(coll.get(i) != null)
        {
            grdSelectedItemsRow selRow = form.grdSelectedItems().getRows().newRow();
            selRow.setcolItems(coll.get(i).getVaccineName());
            selRow.setValue(coll.get(i));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private VaccineLiteVoCollection filterExistingVaccines(VaccineLiteVoCollection coll) 
{
    VaccineLiteVoCollection newVaccinesColl = new VaccineLiteVoCollection();

    if(form.grdSelectedItems().getRows().size() == 0)
        return coll;

    coll.sort(SortOrder.ASCENDING);
    for(int j=0; j<coll.size(); j++)
    {
        boolean vaccineFound = false;
        for(int i=0; i<form.grdSelectedItems().getRows().size(); i++)
        {
            if(coll.get(j).equals((VaccineLiteVo) form.grdSelectedItems().getRows().get(i).getValue()))
            {
                vaccineFound = true;
                break;
            }
        }
        if(!vaccineFound)
        {
            newVaccinesColl.add(coll.get(j));
        }
    }
    return newVaccinesColl;
}
项目:openMAXIMS    文件:DiagnosisProceduresSearchImpl.java   
public VaccineLiteVoCollection listVaccine(String filter) throws DomainInterfaceException 
{
    VaccineLiteVoCollection coll = new VaccineLiteVoCollection();
    IGenericItem[] items = listIGenericItems(filter, CciType.VACCINE, true);

    if (items != null)
    {
        for ( int i = 0; i < items.length; i++)
        {
            coll.add((VaccineLiteVo)items[i]);
        }

        return coll;
    }
    return null;
}
项目:openMAXIMS    文件:BatchMaintenanceImpl.java   
public VaccineLiteVoCollection listVaccineByName(String vaccineName) throws ims.domain.exceptions.DomainInterfaceException
{
    if(vaccineName == null)
        throw new CodingRuntimeException("Cannot search on null Vaccine Name!");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from Vaccine x");
    hql.append(" join x.keywords as kw");

    ArrayList<String> names = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    hql.append(" where x.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    List result = Keywords.searchByKeywords(factory, vaccineName, hql.toString(), names, values);       
    return VaccineLiteVoAssembler.createVaccineLiteVoCollectionFromVaccine(result);     
}
项目:openMAXIMS    文件:Logic.java   
private void displaySelectedVaccines(VaccineLiteVoCollection coll) 
{
    if(coll == null)
        return;

    form.grdSelectedItems().getRows().clear();
    for (int i = 0; i < coll.size(); i++)
    {
        if(coll.get(i) != null)
        {
            grdSelectedItemsRow selRow = form.grdSelectedItems().getRows().newRow();
            selRow.setcolItems(coll.get(i).getVaccineName());
            selRow.setValue(coll.get(i));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private VaccineLiteVoCollection filterExistingVaccines(VaccineLiteVoCollection coll) 
{
    VaccineLiteVoCollection newVaccinesColl = new VaccineLiteVoCollection();

    if(form.grdSelectedItems().getRows().size() == 0)
        return coll;

    coll.sort(SortOrder.ASCENDING);
    for(int j=0; j<coll.size(); j++)
    {
        boolean vaccineFound = false;
        for(int i=0; i<form.grdSelectedItems().getRows().size(); i++)
        {
            if(coll.get(j).equals((VaccineLiteVo) form.grdSelectedItems().getRows().get(i).getValue()))
            {
                vaccineFound = true;
                break;
            }
        }
        if(!vaccineFound)
        {
            newVaccinesColl.add(coll.get(j));
        }
    }
    return newVaccinesColl;
}
项目:openMAXIMS    文件:DiagnosisProceduresSearchImpl.java   
public VaccineLiteVoCollection listVaccine(String filter) throws DomainInterfaceException 
{
    VaccineLiteVoCollection coll = new VaccineLiteVoCollection();
    IGenericItem[] items = listIGenericItems(filter, CciType.VACCINE, true);

    if (items != null)
    {
        for ( int i = 0; i < items.length; i++)
        {
            coll.add((VaccineLiteVo)items[i]);
        }

        return coll;
    }
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void displaySelectedVaccines(VaccineLiteVoCollection coll) 
{
    if(coll == null)
        return;

    form.grdSelectedItems().getRows().clear();
    for (int i = 0; i < coll.size(); i++)
    {
        if(coll.get(i) != null)
        {
            grdSelectedItemsRow selRow = form.grdSelectedItems().getRows().newRow();
            selRow.setcolItems(coll.get(i).getVaccineName());
            selRow.setValue(coll.get(i));
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private VaccineLiteVoCollection filterExistingVaccines(VaccineLiteVoCollection coll) 
{
    VaccineLiteVoCollection newVaccinesColl = new VaccineLiteVoCollection();

    if(form.grdSelectedItems().getRows().size() == 0)
        return coll;

    coll.sort(SortOrder.ASCENDING);
    for(int j=0; j<coll.size(); j++)
    {
        boolean vaccineFound = false;
        for(int i=0; i<form.grdSelectedItems().getRows().size(); i++)
        {
            if(coll.get(j).equals((VaccineLiteVo) form.grdSelectedItems().getRows().get(i).getValue()))
            {
                vaccineFound = true;
                break;
            }
        }
        if(!vaccineFound)
        {
            newVaccinesColl.add(coll.get(j));
        }
    }
    return newVaccinesColl;
}
项目:openmaxims-linux    文件:DiagnosisProceduresSearchImpl.java   
public VaccineLiteVoCollection listVaccine(String filter) throws DomainInterfaceException 
{
    VaccineLiteVoCollection coll = new VaccineLiteVoCollection();
    IGenericItem[] items = listIGenericItems(filter, CciType.VACCINE, true);

    if (items != null)
    {
        for ( int i = 0; i < items.length; i++)
        {
            coll.add((VaccineLiteVo)items[i]);
        }

        return coll;
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{
    if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("P"))
    {
        form.grdItems().setcolItemsCaption("Procedures");
        form.grdSelectedItems().setcolItemsCaption("Selected Procedures");
    }
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("D"))
    {
        form.grdItems().setcolItemsCaption("Diagnosis");
        form.grdSelectedItems().setcolItemsCaption("Selected Diagnosis");
    }
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("PR"))
    {
        form.grdItems().setcolItemsCaption("Problem");
        form.grdSelectedItems().setcolItemsCaption("Selected Problem");
    }
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("VACCINE"))
    {
        form.grdItems().setcolItemsCaption("Vaccines");
        form.grdSelectedItems().setcolItemsCaption("Selected Vaccines");
        engine.setCaption("Vaccine");

        if(form.getGlobalContext().Clinical.CCISearch.getSelectedVaccinesIsNotNull())
        {
            VaccineLiteVoCollection coll = form.getGlobalContext().Clinical.CCISearch.getSelectedVaccines();

            displaySelectedVaccines(coll);
        }
    }

    form.txtSearch().setFocus();
    form.grdItems().setEnabled(true);
    form.grdItems().setReadOnly(false);
    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnOKClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(form.grdSelectedItems().getRows().size() == 0)
    {
        engine.showMessage("No items were selected.");
        return;
    }

    ProcedureLiteVoCollection procColl = new ProcedureLiteVoCollection();
    DiagLiteVoCollection diagColl = new DiagLiteVoCollection();
    ClinicalProblemShortVoCollection probColl = new ClinicalProblemShortVoCollection();
    VaccineLiteVoCollection vaccColl = new VaccineLiteVoCollection();

    for (int j = 0; j < form.grdSelectedItems().getRows().size(); j++)
    {
        grdSelectedItemsRow selRow = form.grdSelectedItems().getRows().get(j);

        if(selRow.getValue() instanceof ProcedureLiteVo)
            procColl.add((ProcedureLiteVo)selRow.getValue());
        else if(selRow.getValue() instanceof DiagLiteVo)
            diagColl.add((DiagLiteVo)selRow.getValue());
        else if(selRow.getValue() instanceof ClinicalProblemShortVo)
            probColl.add((ClinicalProblemShortVo)selRow.getValue());
        else if(selRow.getValue() instanceof VaccineLiteVo)
            vaccColl.add((VaccineLiteVo) selRow.getValue());
    }

    if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("P"))
        form.getGlobalContext().Clinical.setSelectedProcedures(procColl);
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("D"))
        form.getGlobalContext().Clinical.setSelectedDiagnosis(diagColl);
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("PR"))
        form.getGlobalContext().Clinical.setSelectedProblems(probColl);
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("VACCINE"))
        form.getGlobalContext().Clinical.CCISearch.setSelectedVaccines(vaccColl);

    engine.close(DialogResult.OK);
}
项目:AvoinApotti    文件:Logic.java   
private void displayVaccinesCollection(VaccineLiteVoCollection coll) 
{
    for(int i = 0; i < coll.size(); i++)
    {
        grdItemsRow row = form.grdItems().getRows().newRow();

        row.setValue(coll.get(i));
        row.setcolItems(coll.get(i).getVaccineName());
        row.setColumnSelect(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{
    if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("P"))
    {
        form.grdItems().setcolItemsCaption("Procedures");
        form.grdSelectedItems().setcolItemsCaption("Selected Procedures");
    }
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("D"))
    {
        form.grdItems().setcolItemsCaption("Diagnosis");
        form.grdSelectedItems().setcolItemsCaption("Selected Diagnosis");
    }
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("PR"))
    {
        form.grdItems().setcolItemsCaption("Problem");
        form.grdSelectedItems().setcolItemsCaption("Selected Problem");
    }
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("VACCINE"))
    {
        form.grdItems().setcolItemsCaption("Vaccines");
        form.grdSelectedItems().setcolItemsCaption("Selected Vaccines");
        engine.setCaption("Vaccine");

        if(form.getGlobalContext().Clinical.CCISearch.getSelectedVaccinesIsNotNull())
        {
            VaccineLiteVoCollection coll = form.getGlobalContext().Clinical.CCISearch.getSelectedVaccines();

            displaySelectedVaccines(coll);
        }
    }

    form.txtSearch().setFocus();
    form.grdItems().setEnabled(true);
    form.grdItems().setReadOnly(false);
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnOKClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(form.grdSelectedItems().getRows().size() == 0)
    {
        engine.showMessage("No items were selected.");
        return;
    }

    ProcedureLiteVoCollection procColl = new ProcedureLiteVoCollection();
    DiagLiteVoCollection diagColl = new DiagLiteVoCollection();
    ClinicalProblemShortVoCollection probColl = new ClinicalProblemShortVoCollection();
    VaccineLiteVoCollection vaccColl = new VaccineLiteVoCollection();

    for (int j = 0; j < form.grdSelectedItems().getRows().size(); j++)
    {
        grdSelectedItemsRow selRow = form.grdSelectedItems().getRows().get(j);

        if(selRow.getValue() instanceof ProcedureLiteVo)
            procColl.add((ProcedureLiteVo)selRow.getValue());
        else if(selRow.getValue() instanceof DiagLiteVo)
            diagColl.add((DiagLiteVo)selRow.getValue());
        else if(selRow.getValue() instanceof ClinicalProblemShortVo)
            probColl.add((ClinicalProblemShortVo)selRow.getValue());
        else if(selRow.getValue() instanceof VaccineLiteVo)
            vaccColl.add((VaccineLiteVo) selRow.getValue());
    }

    if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("P"))
        form.getGlobalContext().Clinical.setSelectedProcedures(procColl);
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("D"))
        form.getGlobalContext().Clinical.setSelectedDiagnosis(diagColl);
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("PR"))
        form.getGlobalContext().Clinical.setSelectedProblems(probColl);
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("VACCINE"))
        form.getGlobalContext().Clinical.CCISearch.setSelectedVaccines(vaccColl);

    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private void displayVaccinesCollection(VaccineLiteVoCollection coll) 
{
    for(int i = 0; i < coll.size(); i++)
    {
        grdItemsRow row = form.grdItems().getRows().newRow();

        row.setValue(coll.get(i));
        row.setcolItems(coll.get(i).getVaccineName());
        row.setColumnSelect(false);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addVaccineToStageConfigurationRow(DynamicGridRow row)
{
    if (row == null)
        throw new CodingRuntimeException("Major Logical Error - Can not add vaccine collection to a null row");

    // Build the vaccine collection 
    VaccineLiteVoCollection vaccines = new VaccineLiteVoCollection();

    if (row.getValue() != null && row.getValue() instanceof StageConfigurationVo)
    {
        StageVaccineVoCollection stageVaccines = getDynamicGridRowsStageVaccineCollection(row, null);

        for (int i = 0; i < stageVaccines.size(); i++)
        {
            StageVaccineVo stageVacine = stageVaccines.get(i);

            if (stageVacine != null && stageVacine.getVaccineIsNotNull())
            {
                vaccines.add(stageVacine.getVaccine());
            }
        }
    }

    // Set up the global context
    form.getGlobalContext().Clinical.setPMHConfigSearchType("VACCINE");
    form.getGlobalContext().Clinical.CCISearch.setSelectedVaccines(vaccines);

    engine.open(form.getForms().Core.DiagnosisProcedureProblemSearch);
}
项目:openMAXIMS    文件:Logic.java   
private void updateVaccinesToSelectedStageConfiguration()
{
    VaccineLiteVoCollection vaccineVoCollection = form.getGlobalContext().Clinical.CCISearch.getSelectedVaccines();

    // If the collection is null or empty - set the current vaccines to null
    if (vaccineVoCollection == null || vaccineVoCollection.size() == 0)
    {
        if (form.ctnScheduleConfiguration().dyngrdStageConfiguration().getValue() instanceof StageConfigurationVo)
            if (form.ctnScheduleConfiguration().dyngrdStageConfiguration().getSelectedRow() != null)
                setDynamicGridRowsStageVaccineCollection(form.ctnScheduleConfiguration().dyngrdStageConfiguration().getSelectedRow(), null);

        return;
    }


    StageVaccineVoCollection stageVaccineVoCollection = new StageVaccineVoCollection();

    for (int i = 0; i < vaccineVoCollection.size(); i++)
    {
        VaccineLiteVo vaccineVo = vaccineVoCollection.get(i);

        if (vaccineVo != null)
        {
            StageVaccineVo stageVaccineVo = new StageVaccineVo();
            stageVaccineVo.setVaccine(vaccineVo);
            stageVaccineVoCollection.add(stageVaccineVo);
        }
    }


    if (form.ctnScheduleConfiguration().dyngrdStageConfiguration().getValue() != null)
    {
        if (form.ctnScheduleConfiguration().dyngrdStageConfiguration().getValue() instanceof StageConfigurationVo)
        {
            ((StageConfigurationVo) form.ctnScheduleConfiguration().dyngrdStageConfiguration().getValue()).setStageVaccines(stageVaccineVoCollection);
            setDynamicGridRowsStageVaccineCollection(form.ctnScheduleConfiguration().dyngrdStageConfiguration().getSelectedRow(), stageVaccineVoCollection);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void seachVaccine(String value) {
    if (value == null || value.length() < 3)
    {
        engine.showMessage("Please enter at least 3 characters for search criteria");
        return;
    }

    VaccineLiteVoCollection coll = null;
    try 
    {
        coll = domain.listVaccineByName(value);
    } catch (DomainInterfaceException e) 
    {
        e.printStackTrace();
    }

    form.ctnBatchDetails().qmbName().setValue(null);
    form.ctnBatchDetails().qmbName().clear();
    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            VaccineLiteVo vo = coll.get(i);
            form.ctnBatchDetails().qmbName().newRow(vo, vo.getVaccineName());
        }
    }

    if (coll.size() == 1)
    {
        form.ctnBatchDetails().qmbName().setValue(coll.get(0));
    }
    else if (coll.size() > 1)
    {
        form.ctnBatchDetails().qmbName().showOpened();
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{
    if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("P"))
    {
        form.grdItems().setcolItemsCaption("Procedures");
        form.grdSelectedItems().setcolItemsCaption("Selected Procedures");
    }
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("D"))
    {
        form.grdItems().setcolItemsCaption("Diagnosis");
        form.grdSelectedItems().setcolItemsCaption("Selected Diagnosis");
    }
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("PR"))
    {
        form.grdItems().setcolItemsCaption("Problem");
        form.grdSelectedItems().setcolItemsCaption("Selected Problem");
    }
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("VACCINE"))
    {
        form.grdItems().setcolItemsCaption("Vaccines");
        form.grdSelectedItems().setcolItemsCaption("Selected Vaccines");
        engine.setCaption("Vaccine");

        if(form.getGlobalContext().Clinical.CCISearch.getSelectedVaccinesIsNotNull())
        {
            VaccineLiteVoCollection coll = form.getGlobalContext().Clinical.CCISearch.getSelectedVaccines();

            displaySelectedVaccines(coll);
        }
    }

    form.txtSearch().setFocus();
    form.grdItems().setEnabled(true);
    form.grdItems().setReadOnly(false);
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnOKClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(form.grdSelectedItems().getRows().size() == 0)
    {
        engine.showMessage("No items were selected.");
        return;
    }

    ProcedureLiteVoCollection procColl = new ProcedureLiteVoCollection();
    DiagLiteVoCollection diagColl = new DiagLiteVoCollection();
    ClinicalProblemShortVoCollection probColl = new ClinicalProblemShortVoCollection();
    VaccineLiteVoCollection vaccColl = new VaccineLiteVoCollection();

    for (int j = 0; j < form.grdSelectedItems().getRows().size(); j++)
    {
        grdSelectedItemsRow selRow = form.grdSelectedItems().getRows().get(j);

        if(selRow.getValue() instanceof ProcedureLiteVo)
            procColl.add((ProcedureLiteVo)selRow.getValue());
        else if(selRow.getValue() instanceof DiagLiteVo)
            diagColl.add((DiagLiteVo)selRow.getValue());
        else if(selRow.getValue() instanceof ClinicalProblemShortVo)
            probColl.add((ClinicalProblemShortVo)selRow.getValue());
        else if(selRow.getValue() instanceof VaccineLiteVo)
            vaccColl.add((VaccineLiteVo) selRow.getValue());
    }

    if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("P"))
        form.getGlobalContext().Clinical.setSelectedProcedures(procColl);
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("D"))
        form.getGlobalContext().Clinical.setSelectedDiagnosis(diagColl);
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("PR"))
        form.getGlobalContext().Clinical.setSelectedProblems(probColl);
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("VACCINE"))
        form.getGlobalContext().Clinical.CCISearch.setSelectedVaccines(vaccColl);

    engine.close(DialogResult.OK);
}
项目:openMAXIMS    文件:Logic.java   
private void displayVaccinesCollection(VaccineLiteVoCollection coll) 
{
    for(int i = 0; i < coll.size(); i++)
    {
        grdItemsRow row = form.grdItems().getRows().newRow();

        row.setValue(coll.get(i));
        row.setcolItems(coll.get(i).getVaccineName());
        row.setColumnSelect(false);
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.FormOpenException
{
    if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("P"))
    {
        form.grdItems().setcolItemsCaption("Procedures");
        form.grdSelectedItems().setcolItemsCaption("Selected Procedures");
    }
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("D"))
    {
        form.grdItems().setcolItemsCaption("Diagnosis");
        form.grdSelectedItems().setcolItemsCaption("Selected Diagnosis");
    }
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("PR"))
    {
        form.grdItems().setcolItemsCaption("Problem");
        form.grdSelectedItems().setcolItemsCaption("Selected Problem");
    }
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("VACCINE"))
    {
        form.grdItems().setcolItemsCaption("Vaccines");
        form.grdSelectedItems().setcolItemsCaption("Selected Vaccines");
        engine.setCaption("Vaccine");

        if(form.getGlobalContext().Clinical.CCISearch.getSelectedVaccinesIsNotNull())
        {
            VaccineLiteVoCollection coll = form.getGlobalContext().Clinical.CCISearch.getSelectedVaccines();

            displaySelectedVaccines(coll);
        }
    }

    form.txtSearch().setFocus();
    form.grdItems().setEnabled(true);
    form.grdItems().setReadOnly(false);
    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnOKClick() throws ims.framework.exceptions.PresentationLogicException
{
    if(form.grdSelectedItems().getRows().size() == 0)
    {
        engine.showMessage("No items were selected.");
        return;
    }

    ProcedureLiteVoCollection procColl = new ProcedureLiteVoCollection();
    DiagLiteVoCollection diagColl = new DiagLiteVoCollection();
    ClinicalProblemShortVoCollection probColl = new ClinicalProblemShortVoCollection();
    VaccineLiteVoCollection vaccColl = new VaccineLiteVoCollection();

    for (int j = 0; j < form.grdSelectedItems().getRows().size(); j++)
    {
        grdSelectedItemsRow selRow = form.grdSelectedItems().getRows().get(j);

        if(selRow.getValue() instanceof ProcedureLiteVo)
            procColl.add((ProcedureLiteVo)selRow.getValue());
        else if(selRow.getValue() instanceof DiagLiteVo)
            diagColl.add((DiagLiteVo)selRow.getValue());
        else if(selRow.getValue() instanceof ClinicalProblemShortVo)
            probColl.add((ClinicalProblemShortVo)selRow.getValue());
        else if(selRow.getValue() instanceof VaccineLiteVo)
            vaccColl.add((VaccineLiteVo) selRow.getValue());
    }

    if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("P"))
        form.getGlobalContext().Clinical.setSelectedProcedures(procColl);
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("D"))
        form.getGlobalContext().Clinical.setSelectedDiagnosis(diagColl);
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("PR"))
        form.getGlobalContext().Clinical.setSelectedProblems(probColl);
    else if(form.getGlobalContext().Clinical.getPMHConfigSearchTypeIsNotNull() && form.getGlobalContext().Clinical.getPMHConfigSearchType().equalsIgnoreCase("VACCINE"))
        form.getGlobalContext().Clinical.CCISearch.setSelectedVaccines(vaccColl);

    engine.close(DialogResult.OK);
}
项目:openmaxims-linux    文件:Logic.java   
private void displayVaccinesCollection(VaccineLiteVoCollection coll) 
{
    for(int i = 0; i < coll.size(); i++)
    {
        grdItemsRow row = form.grdItems().getRows().newRow();

        row.setValue(coll.get(i));
        row.setcolItems(coll.get(i).getVaccineName());
        row.setColumnSelect(false);
    }
}