Java 类ims.clinical.vo.ReferralsRecordingListVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    String[] errors = getUiErrors(null);
    if (errors != null)
    {
        engine.showErrors(errors);
        return;
    }

    ReferralsRecordingListVoCollection voColl = search(createFilter(new ReferralsRecordingListVo()));
    if (voColl == null ||
            (voColl != null &&
                    voColl.size() == 0))
    {
        String[] err = getUiErrors("No record(s) found!");
        engine.showErrors(err);
        return;
    }
    else
    {
        populateGridDetails(voColl);
    }
    form.grdDetails().setFooterValue(form.grdDetails().getRows() != null ? "Total : " + form.grdDetails().getRows().size() : "Total : 0" );
}
项目:openMAXIMS    文件:Logic.java   
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    String[] errors = getUiErrors(null);
    if (errors != null)
    {
        engine.showErrors(errors);
        return;
    }

    ReferralsRecordingListVoCollection voColl = search(createFilter(new ReferralsRecordingListVo()));
    if (voColl == null ||
            (voColl != null &&
                    voColl.size() == 0))
    {
        String[] err = getUiErrors("No record(s) found!");
        engine.showErrors(err);
        return;
    }
    else
    {
        populateGridDetails(voColl);
    }
    form.grdDetails().setFooterValue(form.grdDetails().getRows() != null ? "Total : " + form.grdDetails().getRows().size() : "Total : 0" );
}
项目:openMAXIMS    文件:Logic.java   
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    String[] errors = getUiErrors(null);
    if (errors != null)
    {
        engine.showErrors(errors);
        return;
    }

    ReferralsRecordingListVoCollection voColl = search(createFilter(new ReferralsRecordingListVo()));
    if (voColl == null ||
            (voColl != null &&
                    voColl.size() == 0))
    {
        String[] err = getUiErrors("No record(s) found!");
        engine.showErrors(err);
        return;
    }
    else
    {
        populateGridDetails(voColl);
    }
    form.grdDetails().setFooterValue(form.grdDetails().getRows() != null ? "Total : " + form.grdDetails().getRows().size() : "Total : 0" );
}
项目:openmaxims-linux    文件:Logic.java   
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    String[] errors = getUiErrors(null);
    if (errors != null)
    {
        engine.showErrors(errors);
        return;
    }

    ReferralsRecordingListVoCollection voColl = search(createFilter(new ReferralsRecordingListVo()));
    if (voColl == null ||
            (voColl != null &&
                    voColl.size() == 0))
    {
        String[] err = getUiErrors("No record(s) found!");
        engine.showErrors(err);
        return;
    }
    else
    {
        populateGridDetails(voColl);
    }
    form.grdDetails().setFooterValue(form.grdDetails().getRows() != null ? "Total : " + form.grdDetails().getRows().size() : "Total : 0" );
}
项目:AvoinApotti    文件:Logic.java   
private void populateGridDetails(ReferralsRecordingListVoCollection voColl)
{
    form.grdDetails().getRows().clear();
    for (int i = 0; i < voColl.size(); i++)
    {
        grdDetailsRow row = form.grdDetails().getRows().newRow();
        if (voColl.get(i).getCareContextIsNotNull() &&
                voColl.get(i).getCareContext().getEpisodeOfCareIsNotNull() &&
                    voColl.get(i).getCareContext().getEpisodeOfCare().getCareSpellIsNotNull() &&
                        voColl.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatientIsNotNull())
        {
            PatientShort patient = voColl.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatient();
            if (patient.getNameIsNotNull())
            {
                row.setColSurname(patient.getName().getSurname());
                row.setTooltipForColSurname(patient.getName().getSurname());
                row.setColForename(patient.getName().getForename());
                row.setTooltipForColForename(patient.getName().getForename());
            }
            row.setColSex(patient.getSex() != null? patient.getSex().getText() : "Unknown");
            row.setTooltipForColSex(patient.getSex() != null ? patient.getSex().getText() : "Unknown");
            row.setColDOB(patient.getDob());
            row.setTooltipForColDOB(patient.getDobIsNotNull() ? patient.getDob().toString() : null);
            row.setColHospNo(patient.getHospnum() != null ? patient.getHospnum().getValue() : null);
            row.setTooltipForColHospNo(patient.getHospnum() != null ? patient.getHospnum().getValue() : null);
        }

        row.setColDiscipline(voColl.get(i).getDisciplineIsNotNull() ? voColl.get(i).getDiscipline().toString() : null);
        row.setTooltipForColDiscipline(voColl.get(i).getDisciplineIsNotNull() ? voColl.get(i).getDiscipline().toString() : null);
        row.setColStatus(voColl.get(i).getReferralStatusIsNotNull() ?   voColl.get(i).getReferralStatus().toString() : null);
        row.setTooltipForColStatus(voColl.get(i).getReferralStatusIsNotNull() ? voColl.get(i).getReferralStatus().toString() : null);           
        row.setColSourceOfReferral(voColl.get(i).getReferralSourceIsNotNull() ? voColl.get(i).getReferralSource().toString() : null);
        row.setTooltipForColSourceOfReferral(voColl.get(i).getReferralSourceIsNotNull() ? voColl.get(i).getReferralSource().toString() : null);         
        row.setColReferredTo(voColl.get(i).getReferralHCPIsNotNull() ? (voColl.get(i).getReferralHCP().getNameIsNotNull() ? voColl.get(i).getReferralHCP().getName().toString() : null) : null);
        row.setTooltipForColSourceOfReferral(voColl.get(i).getReferralHCPIsNotNull() ? (voColl.get(i).getReferralHCP().getNameIsNotNull() ? voColl.get(i).getReferralHCP().getName().toString() : null) : null);
        row.setColDateSent(voColl.get(i).getDateSent());
        row.setTooltipForColDateSent(voColl.get(i).getDateSentIsNotNull() ? voColl.get(i).getDateSent().toString() : null);
        row.setValue(voColl.get(i));
    }
}
项目:AvoinApotti    文件:DemoReferralListImpl.java   
public ReferralsRecordingListVoCollection listByCriteria(ReferralsRecordingListVo filter, Date dateFrom, Date dateTo)
{
    DomainFactory factory = getDomainFactory();

    IMSCriteria criteria = new IMSCriteria(ReferralsRecording.class, factory);

    /*if (filter.getSpecialtyFunctionCodeIsNotNull())
    {
        criteria.equal("specialtyFunctionCode.id", filter.getSpecialtyFunctionCode().getID());
    }*/
    if (filter.getDisciplineIsNotNull())
    {
        criteria.equal("discipline.id", filter.getDiscipline().getID());
    }
    if (filter.getReferralStatusIsNotNull())
    {
        criteria.equal("referralStatus.id", filter.getReferralStatus().getID());
    }
    if (filter.getReferralSourceIsNotNull())
    {
        criteria.equal("referralSource.id", filter.getReferralSource().getID());
    }
    if (filter.getReferralHCPIsNotNull())
    {
        criteria.equal("referralHCP.id", filter.getReferralHCP().getID_MemberOfStaff());
    }
    /*if (dateFrom != null && dateTo != null)
    {
        criteria.between("dateSent", dateFrom.getDate(), dateTo.getDate());
    }*/
    List lst = criteria.find();
    return (ReferralsRecordingListVoAssembler.createReferralsRecordingListVoCollectionFromReferralsRecording(lst)).sort();
}
项目:openMAXIMS    文件:Logic.java   
private void populateGridDetails(ReferralsRecordingListVoCollection voColl)
{
    form.grdDetails().getRows().clear();
    for (int i = 0; i < voColl.size(); i++)
    {
        grdDetailsRow row = form.grdDetails().getRows().newRow();
        if (voColl.get(i).getCareContextIsNotNull() &&
                voColl.get(i).getCareContext().getEpisodeOfCareIsNotNull() &&
                    voColl.get(i).getCareContext().getEpisodeOfCare().getCareSpellIsNotNull() &&
                        voColl.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatientIsNotNull())
        {
            PatientShort patient = voColl.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatient();
            if (patient.getNameIsNotNull())
            {
                row.setColSurname(patient.getName().getSurname());
                row.setTooltipForColSurname(patient.getName().getSurname());
                row.setColForename(patient.getName().getForename());
                row.setTooltipForColForename(patient.getName().getForename());
            }
            row.setColSex(patient.getSex() != null? patient.getSex().getText() : "Unknown");
            row.setTooltipForColSex(patient.getSex() != null ? patient.getSex().getText() : "Unknown");
            row.setColDOB(patient.getDob());
            row.setTooltipForColDOB(patient.getDobIsNotNull() ? patient.getDob().toString() : null);
            row.setColHospNo(patient.getHospnum() != null ? patient.getHospnum().getValue() : null);
            row.setTooltipForColHospNo(patient.getHospnum() != null ? patient.getHospnum().getValue() : null);
        }

        row.setColDiscipline(voColl.get(i).getDisciplineIsNotNull() ? voColl.get(i).getDiscipline().toString() : null);
        row.setTooltipForColDiscipline(voColl.get(i).getDisciplineIsNotNull() ? voColl.get(i).getDiscipline().toString() : null);
        row.setColStatus(voColl.get(i).getReferralStatusIsNotNull() ?   voColl.get(i).getReferralStatus().toString() : null);
        row.setTooltipForColStatus(voColl.get(i).getReferralStatusIsNotNull() ? voColl.get(i).getReferralStatus().toString() : null);           
        row.setColSourceOfReferral(voColl.get(i).getReferralSourceIsNotNull() ? voColl.get(i).getReferralSource().toString() : null);
        row.setTooltipForColSourceOfReferral(voColl.get(i).getReferralSourceIsNotNull() ? voColl.get(i).getReferralSource().toString() : null);         
        row.setColReferredTo(voColl.get(i).getReferralHCPIsNotNull() ? (voColl.get(i).getReferralHCP().getNameIsNotNull() ? voColl.get(i).getReferralHCP().getName().toString() : null) : null);
        row.setTooltipForColSourceOfReferral(voColl.get(i).getReferralHCPIsNotNull() ? (voColl.get(i).getReferralHCP().getNameIsNotNull() ? voColl.get(i).getReferralHCP().getName().toString() : null) : null);
        row.setColDateSent(voColl.get(i).getDateSent());
        row.setTooltipForColDateSent(voColl.get(i).getDateSentIsNotNull() ? voColl.get(i).getDateSent().toString() : null);
        row.setValue(voColl.get(i));
    }
}
项目:openMAXIMS    文件:DemoReferralListImpl.java   
public ReferralsRecordingListVoCollection listByCriteria(ReferralsRecordingListVo filter, Date dateFrom, Date dateTo)
{
    DomainFactory factory = getDomainFactory();

    IMSCriteria criteria = new IMSCriteria(ReferralsRecording.class, factory);

    /*if (filter.getSpecialtyFunctionCodeIsNotNull())
    {
        criteria.equal("specialtyFunctionCode.id", filter.getSpecialtyFunctionCode().getID());
    }*/
    if (filter.getDisciplineIsNotNull())
    {
        criteria.equal("discipline.id", filter.getDiscipline().getID());
    }
    if (filter.getReferralStatusIsNotNull())
    {
        criteria.equal("referralStatus.id", filter.getReferralStatus().getID());
    }
    if (filter.getReferralSourceIsNotNull())
    {
        criteria.equal("referralSource.id", filter.getReferralSource().getID());
    }
    if (filter.getReferralHCPIsNotNull())
    {
        criteria.equal("referralHCP.id", filter.getReferralHCP().getID_MemberOfStaff());
    }
    /*if (dateFrom != null && dateTo != null)
    {
        criteria.between("dateSent", dateFrom.getDate(), dateTo.getDate());
    }*/
    List lst = criteria.find();
    return (ReferralsRecordingListVoAssembler.createReferralsRecordingListVoCollectionFromReferralsRecording(lst)).sort();
}
项目:openMAXIMS    文件:Logic.java   
private void populateGridDetails(ReferralsRecordingListVoCollection voColl)
{
    form.grdDetails().getRows().clear();
    for (int i = 0; i < voColl.size(); i++)
    {
        grdDetailsRow row = form.grdDetails().getRows().newRow();
        if (voColl.get(i).getCareContextIsNotNull() &&
                voColl.get(i).getCareContext().getEpisodeOfCareIsNotNull() &&
                    voColl.get(i).getCareContext().getEpisodeOfCare().getCareSpellIsNotNull() &&
                        voColl.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatientIsNotNull())
        {
            PatientShort patient = voColl.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatient();
            if (patient.getNameIsNotNull())
            {
                row.setColSurname(patient.getName().getSurname());
                row.setTooltipForColSurname(patient.getName().getSurname());
                row.setColForename(patient.getName().getForename());
                row.setTooltipForColForename(patient.getName().getForename());
            }
            row.setColSex(patient.getSex() != null? patient.getSex().getText() : "Unknown");
            row.setTooltipForColSex(patient.getSex() != null ? patient.getSex().getText() : "Unknown");
            row.setColDOB(patient.getDob());
            row.setTooltipForColDOB(patient.getDobIsNotNull() ? patient.getDob().toString() : null);
            row.setColHospNo(patient.getHospnum() != null ? patient.getHospnum().getValue() : null);
            row.setTooltipForColHospNo(patient.getHospnum() != null ? patient.getHospnum().getValue() : null);
        }

        row.setColDiscipline(voColl.get(i).getDisciplineIsNotNull() ? voColl.get(i).getDiscipline().toString() : null);
        row.setTooltipForColDiscipline(voColl.get(i).getDisciplineIsNotNull() ? voColl.get(i).getDiscipline().toString() : null);
        row.setColStatus(voColl.get(i).getReferralStatusIsNotNull() ?   voColl.get(i).getReferralStatus().toString() : null);
        row.setTooltipForColStatus(voColl.get(i).getReferralStatusIsNotNull() ? voColl.get(i).getReferralStatus().toString() : null);           
        row.setColSourceOfReferral(voColl.get(i).getReferralSourceIsNotNull() ? voColl.get(i).getReferralSource().toString() : null);
        row.setTooltipForColSourceOfReferral(voColl.get(i).getReferralSourceIsNotNull() ? voColl.get(i).getReferralSource().toString() : null);         
        row.setColReferredTo(voColl.get(i).getReferralHCPIsNotNull() ? (voColl.get(i).getReferralHCP().getNameIsNotNull() ? voColl.get(i).getReferralHCP().getName().toString() : null) : null);
        row.setTooltipForColSourceOfReferral(voColl.get(i).getReferralHCPIsNotNull() ? (voColl.get(i).getReferralHCP().getNameIsNotNull() ? voColl.get(i).getReferralHCP().getName().toString() : null) : null);
        row.setColDateSent(voColl.get(i).getDateSent());
        row.setTooltipForColDateSent(voColl.get(i).getDateSentIsNotNull() ? voColl.get(i).getDateSent().toString() : null);
        row.setValue(voColl.get(i));
    }
}
项目:openMAXIMS    文件:DemoReferralListImpl.java   
public ReferralsRecordingListVoCollection listByCriteria(ReferralsRecordingListVo filter, Date dateFrom, Date dateTo)
{
    DomainFactory factory = getDomainFactory();

    IMSCriteria criteria = new IMSCriteria(ReferralsRecording.class, factory);

    /*if (filter.getSpecialtyFunctionCodeIsNotNull())
    {
        criteria.equal("specialtyFunctionCode.id", filter.getSpecialtyFunctionCode().getID());
    }*/
    if (filter.getDisciplineIsNotNull())
    {
        criteria.equal("discipline.id", filter.getDiscipline().getID());
    }
    if (filter.getReferralStatusIsNotNull())
    {
        criteria.equal("referralStatus.id", filter.getReferralStatus().getID());
    }
    if (filter.getReferralSourceIsNotNull())
    {
        criteria.equal("referralSource.id", filter.getReferralSource().getID());
    }
    if (filter.getReferralHCPIsNotNull())
    {
        criteria.equal("referralHCP.id", filter.getReferralHCP().getID_MemberOfStaff());
    }
    /*if (dateFrom != null && dateTo != null)
    {
        criteria.between("dateSent", dateFrom.getDate(), dateTo.getDate());
    }*/
    List lst = criteria.find();
    return (ReferralsRecordingListVoAssembler.createReferralsRecordingListVoCollectionFromReferralsRecording(lst)).sort();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateGridDetails(ReferralsRecordingListVoCollection voColl)
{
    form.grdDetails().getRows().clear();
    for (int i = 0; i < voColl.size(); i++)
    {
        grdDetailsRow row = form.grdDetails().getRows().newRow();
        if (voColl.get(i).getCareContextIsNotNull() &&
                voColl.get(i).getCareContext().getEpisodeOfCareIsNotNull() &&
                    voColl.get(i).getCareContext().getEpisodeOfCare().getCareSpellIsNotNull() &&
                        voColl.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatientIsNotNull())
        {
            PatientShort patient = voColl.get(i).getCareContext().getEpisodeOfCare().getCareSpell().getPatient();
            if (patient.getNameIsNotNull())
            {
                row.setColSurname(patient.getName().getSurname());
                row.setTooltipForColSurname(patient.getName().getSurname());
                row.setColForename(patient.getName().getForename());
                row.setTooltipForColForename(patient.getName().getForename());
            }
            row.setColSex(patient.getSex() != null? patient.getSex().getText() : "Unknown");
            row.setTooltipForColSex(patient.getSex() != null ? patient.getSex().getText() : "Unknown");
            row.setColDOB(patient.getDob());
            row.setTooltipForColDOB(patient.getDobIsNotNull() ? patient.getDob().toString() : null);
            row.setColHospNo(patient.getHospnum() != null ? patient.getHospnum().getValue() : null);
            row.setTooltipForColHospNo(patient.getHospnum() != null ? patient.getHospnum().getValue() : null);
        }

        row.setColDiscipline(voColl.get(i).getDisciplineIsNotNull() ? voColl.get(i).getDiscipline().toString() : null);
        row.setTooltipForColDiscipline(voColl.get(i).getDisciplineIsNotNull() ? voColl.get(i).getDiscipline().toString() : null);
        row.setColStatus(voColl.get(i).getReferralStatusIsNotNull() ?   voColl.get(i).getReferralStatus().toString() : null);
        row.setTooltipForColStatus(voColl.get(i).getReferralStatusIsNotNull() ? voColl.get(i).getReferralStatus().toString() : null);           
        row.setColSourceOfReferral(voColl.get(i).getReferralSourceIsNotNull() ? voColl.get(i).getReferralSource().toString() : null);
        row.setTooltipForColSourceOfReferral(voColl.get(i).getReferralSourceIsNotNull() ? voColl.get(i).getReferralSource().toString() : null);         
        row.setColReferredTo(voColl.get(i).getReferralHCPIsNotNull() ? (voColl.get(i).getReferralHCP().getNameIsNotNull() ? voColl.get(i).getReferralHCP().getName().toString() : null) : null);
        row.setTooltipForColSourceOfReferral(voColl.get(i).getReferralHCPIsNotNull() ? (voColl.get(i).getReferralHCP().getNameIsNotNull() ? voColl.get(i).getReferralHCP().getName().toString() : null) : null);
        row.setColDateSent(voColl.get(i).getDateSent());
        row.setTooltipForColDateSent(voColl.get(i).getDateSentIsNotNull() ? voColl.get(i).getDateSent().toString() : null);
        row.setValue(voColl.get(i));
    }
}
项目:openmaxims-linux    文件:DemoReferralListImpl.java   
public ReferralsRecordingListVoCollection listByCriteria(ReferralsRecordingListVo filter, Date dateFrom, Date dateTo)
{
    DomainFactory factory = getDomainFactory();

    IMSCriteria criteria = new IMSCriteria(ReferralsRecording.class, factory);

    /*if (filter.getSpecialtyFunctionCodeIsNotNull())
    {
        criteria.equal("specialtyFunctionCode.id", filter.getSpecialtyFunctionCode().getID());
    }*/
    if (filter.getDisciplineIsNotNull())
    {
        criteria.equal("discipline.id", filter.getDiscipline().getID());
    }
    if (filter.getReferralStatusIsNotNull())
    {
        criteria.equal("referralStatus.id", filter.getReferralStatus().getID());
    }
    if (filter.getReferralSourceIsNotNull())
    {
        criteria.equal("referralSource.id", filter.getReferralSource().getID());
    }
    if (filter.getReferralHCPIsNotNull())
    {
        criteria.equal("referralHCP.id", filter.getReferralHCP().getID_MemberOfStaff());
    }
    /*if (dateFrom != null && dateTo != null)
    {
        criteria.between("dateSent", dateFrom.getDate(), dateTo.getDate());
    }*/
    List lst = criteria.find();
    return (ReferralsRecordingListVoAssembler.createReferralsRecordingListVoCollectionFromReferralsRecording(lst)).sort();
}
项目:AvoinApotti    文件:Logic.java   
private ReferralsRecordingListVoCollection search(ReferralsRecordingListVo filter)
{
    Date dateFrom = form.dteFrom().getValue();
    Date dateTo = form.dteTo().getValue();
    return domain.listByCriteria(filter, dateFrom, dateTo);
}
项目:openMAXIMS    文件:Logic.java   
private ReferralsRecordingListVoCollection search(ReferralsRecordingListVo filter)
{
    Date dateFrom = form.dteFrom().getValue();
    Date dateTo = form.dteTo().getValue();
    return domain.listByCriteria(filter, dateFrom, dateTo);
}
项目:openMAXIMS    文件:Logic.java   
private ReferralsRecordingListVoCollection search(ReferralsRecordingListVo filter)
{
    Date dateFrom = form.dteFrom().getValue();
    Date dateTo = form.dteTo().getValue();
    return domain.listByCriteria(filter, dateFrom, dateTo);
}
项目:openmaxims-linux    文件:Logic.java   
private ReferralsRecordingListVoCollection search(ReferralsRecordingListVo filter)
{
    Date dateFrom = form.dteFrom().getValue();
    Date dateTo = form.dteTo().getValue();
    return domain.listByCriteria(filter, dateFrom, dateTo);
}