Java 类ims.nursing.vo.MRSAAssessmentVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateInstance(CareContextShortVo voCareContext)
{
    clearDetails();
    MRSAAssessmentVoCollection voCollMRSA =  domain.listMRSA(voCareContext);    
    populateParentGrid(voCollMRSA);
    for(int i=0;i<form.grdMRSAAssChild().getRows().size(); i++)
        form.grdMRSAAssChild().getRows().get(i).setSelectable(false);       
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreeningCombo(MRSAAssessmentVoCollection voCollMRSA)
{
    if (voCollMRSA == null)
    {
        form.btnUpdate().setVisible(false);
        return;
    }

    for (int i = 0; i < voCollMRSA.size(); i++)
    {
        String strDisplay = voCollMRSA.get(i).getDateScreening().toString();
        if (voCollMRSA.get(i).getHcpInitiated() != null)
        {
            strDisplay += " - ";
            strDisplay += voCollMRSA.get(i).getHcpInitiated().toString();
        }
        form.cmbScreeningRecords().newRow(voCollMRSA.get(i), strDisplay);
    }
    //set the combo to hold the latest record.
    if(voCollMRSA.size()>0 && form.cmbScreeningRecords().getValues() != null)
    {
        form.cmbScreeningRecords().setValue((MRSAAssessmentVo) form.cmbScreeningRecords().getValues().get(0));
    }

    try
    {
        onCmbScreeningRecordsValueChanged();
    }
    catch (PresentationLogicException e)
    {
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateInstance(CareContextShortVo voCareContext)
{       
    form.cmbScreeningRecords().clear();
    clearScreen();

    MRSAAssessmentVoCollection voCollMRSA = domain.listMRSA(voCareContext);
    populateScreeningCombo(voCollMRSA);
}
项目:AvoinApotti    文件:MRSAAssessmentImpl.java   
public MRSAAssessmentVoCollection listMRSA(CareContextRefVo careContext)
{
    if (careContext == null || careContext.getID_CareContext() == null)
        return null;

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    String query = "from MRSAAssessment mrsa where mrsa.class = MRSAAssessment and mrsa.careContext.id = :RCC";

    paramNames.add("RCC");
    paramValues.add(careContext.getID_CareContext());

    return MRSAAssessmentVoAssembler.createMRSAAssessmentVoCollectionFromMRSAAssessment(getDomainFactory().find(query, paramNames, paramValues)).sort(SortOrder.DESCENDING);
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstance(CareContextShortVo voCareContext)
{
    clearDetails();
    MRSAAssessmentVoCollection voCollMRSA =  domain.listMRSA(voCareContext);    
    populateParentGrid(voCollMRSA);
    for(int i=0;i<form.grdMRSAAssChild().getRows().size(); i++)
        form.grdMRSAAssChild().getRows().get(i).setSelectable(false);       
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreeningCombo(MRSAAssessmentVoCollection voCollMRSA)
{
    if (voCollMRSA == null)
    {
        form.btnUpdate().setVisible(false);
        return;
    }

    for (int i = 0; i < voCollMRSA.size(); i++)
    {
        String strDisplay = voCollMRSA.get(i).getDateScreening().toString();
        if (voCollMRSA.get(i).getHcpInitiated() != null)
        {
            strDisplay += " - ";
            strDisplay += voCollMRSA.get(i).getHcpInitiated().toString();
        }
        form.cmbScreeningRecords().newRow(voCollMRSA.get(i), strDisplay);
    }
    //set the combo to hold the latest record.
    if(voCollMRSA.size()>0 && form.cmbScreeningRecords().getValues() != null)
    {
        form.cmbScreeningRecords().setValue((MRSAAssessmentVo) form.cmbScreeningRecords().getValues().get(0));
    }

    try
    {
        onCmbScreeningRecordsValueChanged();
    }
    catch (PresentationLogicException e)
    {
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstance(CareContextShortVo voCareContext)
{       
    form.cmbScreeningRecords().clear();
    clearScreen();

    MRSAAssessmentVoCollection voCollMRSA = domain.listMRSA(voCareContext);
    populateScreeningCombo(voCollMRSA);
}
项目:openMAXIMS    文件:MRSAAssessmentImpl.java   
public MRSAAssessmentVoCollection listMRSA(CareContextRefVo careContext)
{
    if (careContext == null || careContext.getID_CareContext() == null)
        return null;

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    String query = "from MRSAAssessment mrsa where mrsa.class = MRSAAssessment and mrsa.careContext.id = :RCC";

    paramNames.add("RCC");
    paramValues.add(careContext.getID_CareContext());

    return MRSAAssessmentVoAssembler.createMRSAAssessmentVoCollectionFromMRSAAssessment(getDomainFactory().find(query, paramNames, paramValues)).sort(SortOrder.DESCENDING);
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstance(CareContextShortVo voCareContext)
{
    clearDetails();
    MRSAAssessmentVoCollection voCollMRSA =  domain.listMRSA(voCareContext);    
    populateParentGrid(voCollMRSA);
    for(int i=0;i<form.grdMRSAAssChild().getRows().size(); i++)
        form.grdMRSAAssChild().getRows().get(i).setSelectable(false);       
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreeningCombo(MRSAAssessmentVoCollection voCollMRSA)
{
    if (voCollMRSA == null)
    {
        form.btnUpdate().setVisible(false);
        return;
    }

    for (int i = 0; i < voCollMRSA.size(); i++)
    {
        String strDisplay = voCollMRSA.get(i).getDateScreening().toString();
        if (voCollMRSA.get(i).getHcpInitiated() != null)
        {
            strDisplay += " - ";
            strDisplay += voCollMRSA.get(i).getHcpInitiated().toString();
        }
        form.cmbScreeningRecords().newRow(voCollMRSA.get(i), strDisplay);
    }
    //set the combo to hold the latest record.
    if(voCollMRSA.size()>0 && form.cmbScreeningRecords().getValues() != null)
    {
        form.cmbScreeningRecords().setValue((MRSAAssessmentVo) form.cmbScreeningRecords().getValues().get(0));
    }

    try
    {
        onCmbScreeningRecordsValueChanged();
    }
    catch (PresentationLogicException e)
    {
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstance(CareContextShortVo voCareContext)
{       
    form.cmbScreeningRecords().clear();
    clearScreen();

    MRSAAssessmentVoCollection voCollMRSA = domain.listMRSA(voCareContext);
    populateScreeningCombo(voCollMRSA);
}
项目:openMAXIMS    文件:MRSAAssessmentImpl.java   
public MRSAAssessmentVoCollection listMRSA(CareContextRefVo careContext)
{
    if (careContext == null || careContext.getID_CareContext() == null)
        return null;

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    String query = "from MRSAAssessment mrsa where mrsa.class = MRSAAssessment and mrsa.careContext.id = :RCC";

    paramNames.add("RCC");
    paramValues.add(careContext.getID_CareContext());

    return MRSAAssessmentVoAssembler.createMRSAAssessmentVoCollectionFromMRSAAssessment(getDomainFactory().find(query, paramNames, paramValues)).sort(SortOrder.DESCENDING);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateInstance(CareContextShortVo voCareContext)
{
    clearDetails();
    MRSAAssessmentVoCollection voCollMRSA =  domain.listMRSA(voCareContext);    
    populateParentGrid(voCollMRSA);
    for(int i=0;i<form.grdMRSAAssChild().getRows().size(); i++)
        form.grdMRSAAssChild().getRows().get(i).setSelectable(false);       
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreeningCombo(MRSAAssessmentVoCollection voCollMRSA)
{
    if (voCollMRSA == null)
    {
        form.btnUpdate().setVisible(false);
        return;
    }

    for (int i = 0; i < voCollMRSA.size(); i++)
    {
        String strDisplay = voCollMRSA.get(i).getDateScreening().toString();
        if (voCollMRSA.get(i).getHcpInitiated() != null)
        {
            strDisplay += " - ";
            strDisplay += voCollMRSA.get(i).getHcpInitiated().toString();
        }
        form.cmbScreeningRecords().newRow(voCollMRSA.get(i), strDisplay);
    }
    //set the combo to hold the latest record.
    if(voCollMRSA.size()>0 && form.cmbScreeningRecords().getValues() != null)
    {
        form.cmbScreeningRecords().setValue((MRSAAssessmentVo) form.cmbScreeningRecords().getValues().get(0));
    }

    try
    {
        onCmbScreeningRecordsValueChanged();
    }
    catch (PresentationLogicException e)
    {
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateInstance(CareContextShortVo voCareContext)
{       
    form.cmbScreeningRecords().clear();
    clearScreen();

    MRSAAssessmentVoCollection voCollMRSA = domain.listMRSA(voCareContext);
    populateScreeningCombo(voCollMRSA);
}
项目:openmaxims-linux    文件:MRSAAssessmentImpl.java   
public MRSAAssessmentVoCollection listMRSA(CareContextRefVo careContext)
{
    if (careContext == null || careContext.getID_CareContext() == null)
        return null;

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    String query = "from MRSAAssessment mrsa where mrsa.class = MRSAAssessment and mrsa.careContext.id = :RCC";

    paramNames.add("RCC");
    paramValues.add(careContext.getID_CareContext());

    return MRSAAssessmentVoAssembler.createMRSAAssessmentVoCollectionFromMRSAAssessment(getDomainFactory().find(query, paramNames, paramValues)).sort(SortOrder.DESCENDING);
}
项目:AvoinApotti    文件:Logic.java   
private void populateInstance(CareContextShortVo voCareContext)
{
    MRSAAssessmentVoCollection voCollMRSA = domain.listMRSA(voCareContext);
    populateGrid(voCollMRSA);
    form.grdAssessment().expandAll();       
}
项目:AvoinApotti    文件:MRSATreatmentImpl.java   
public MRSAAssessmentVoCollection listMRSA(CareContextRefVo voCurrentCareContext)
{
    MRSAAssessment impl = (MRSAAssessment)getDomainImpl(MRSAAssessmentImpl.class);
    return impl.listMRSA(voCurrentCareContext);
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstance(CareContextShortVo voCareContext)
{
    MRSAAssessmentVoCollection voCollMRSA = domain.listMRSA(voCareContext);
    populateGrid(voCollMRSA);
    form.grdAssessment().expandAll();       
}
项目:openMAXIMS    文件:MRSATreatmentImpl.java   
public MRSAAssessmentVoCollection listMRSA(CareContextRefVo voCurrentCareContext)
{
    MRSAAssessment impl = (MRSAAssessment)getDomainImpl(MRSAAssessmentImpl.class);
    return impl.listMRSA(voCurrentCareContext);
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstance(CareContextShortVo voCareContext)
{
    MRSAAssessmentVoCollection voCollMRSA = domain.listMRSA(voCareContext);
    populateGrid(voCollMRSA);
    form.grdAssessment().expandAll();       
}
项目:openMAXIMS    文件:MRSATreatmentImpl.java   
public MRSAAssessmentVoCollection listMRSA(CareContextRefVo voCurrentCareContext)
{
    MRSAAssessment impl = (MRSAAssessment)getDomainImpl(MRSAAssessmentImpl.class);
    return impl.listMRSA(voCurrentCareContext);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateInstance(CareContextShortVo voCareContext)
{
    MRSAAssessmentVoCollection voCollMRSA = domain.listMRSA(voCareContext);
    populateGrid(voCollMRSA);
    form.grdAssessment().expandAll();       
}
项目:openmaxims-linux    文件:MRSATreatmentImpl.java   
public MRSAAssessmentVoCollection listMRSA(CareContextRefVo voCurrentCareContext)
{
    MRSAAssessment impl = (MRSAAssessment)getDomainImpl(MRSAAssessmentImpl.class);
    return impl.listMRSA(voCurrentCareContext);
}