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

项目:AvoinApotti    文件:Logic.java   
private void doSearch()
{

    if (form.txtIDNum().getValue() != null && form.cmbIDType().getValue() == null)
    {
        engine.showErrors(new String[] { "Please enter both an Identifier type as well as its value." });
        updateControlsState();
        return;
    }

    //populate the search filter
    PendingElectiveAdmissionListFilterVo voFilter = new PendingElectiveAdmissionListFilterVo();

    voFilter.setHospNum(form.txtIDNum().getValue());
    voFilter.setIDType(form.cmbIDType().getValue());
    voFilter.setSurname(form.txtSurname().getValue());
    voFilter.setForename(form.txtForename().getValue());
    voFilter.setHospital(form.cmbHospital().getValue());
    voFilter.setWard(form.qmbWard().getValue());
    voFilter.setTCI(form.dteTCI().getValue());
    voFilter.setConsultant(form.qmbCons().getValue());
    voFilter.setAlert(form.cmbAlert().getValue());
    voFilter.setSpecialty(form.cmbSpecialty().getValue());
    voFilter.setTCIDateOnly(form.chkTCIOnly().getValue());

    form.getGlobalContext().STHK.setPendingElectiveAdmissionListFilter(voFilter);

    PatientElectiveListForPendingAdmissionVoCollection electiveListsColl;

    if (voFilter.countFieldsWithValue() == 2 && (voFilter.getTCIDateOnlyIsNotNull() && voFilter.getIDTypeIsNotNull()) )
    {
        engine.showMessage("Please enter some valid search criteria.", "Invalid search cirteria", MessageButtons.OK, MessageIcon.ERROR);
        updateControlsState();
        return;
    }

    if (voFilter.countFieldsWithValue() > 1)
    {
        electiveListsColl = domain.getElectiveLists(voFilter);
    }
    else
    {
        engine.showErrors(new String[]{"Please enter some search criteria."});
        updateControlsState();
        return;
    }

    if (electiveListsColl == null || electiveListsColl.size() == 0)
    {
        engine.showMessage("No matching records found");
        form.dyngrdPatients().getRows().clear();
        updateControlsState();
        return;
    }

    if (electiveListsColl != null)
    {
        form.lblTotal().setValue("Total : " + String.valueOf(electiveListsColl.size()));
    }

    populateDinamicGrid(electiveListsColl);
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void doSearch()
{

    if (form.txtIDNum().getValue() != null && form.cmbIDType().getValue() == null)
    {
        engine.showErrors(new String[] { "Please enter both an Identifier type as well as its value." });
        updateControlsState();
        return;
    }

    //populate the search filter
    PendingElectiveAdmissionListFilterVo voFilter = new PendingElectiveAdmissionListFilterVo();

    voFilter.setHospNum(form.txtIDNum().getValue());
    voFilter.setIDType(form.cmbIDType().getValue());
    voFilter.setSurname(form.txtSurname().getValue());
    voFilter.setForename(form.txtForename().getValue());
    voFilter.setHospital(form.cmbHospital().getValue());
    voFilter.setWard(form.qmbWard().getValue());
    voFilter.setTCI(form.dteTCI().getValue());
    voFilter.setConsultant(form.qmbCons().getValue());
    voFilter.setAlert(form.cmbAlert().getValue());
    voFilter.setSpecialty(form.cmbSpecialty().getValue());
    voFilter.setTCIDateOnly(form.chkTCIOnly().getValue());
    voFilter.setElectiveAdmissionType(form.cmbElectiveAdmType().getValue());

    form.getGlobalContext().STHK.setPendingElectiveAdmissionListFilter(voFilter);

    PatientElectiveListForPendingAdmissionVoCollection electiveListsColl;

    if (voFilter.countFieldsWithValue() == 2 && (voFilter.getTCIDateOnlyIsNotNull() && voFilter.getIDTypeIsNotNull()) )
    {
        engine.showErrors("Invalid Search Criteria", new String[]{"Please enter some valid search criteria."});
        updateControlsState();
        return;
    }

    if (voFilter.countFieldsWithValue() > 1)
    {
        electiveListsColl = domain.getElectiveLists(voFilter);
    }
    else
    {
        engine.showErrors(new String[]{"Please enter some search criteria."});
        updateControlsState();
        return;
    }

    if (electiveListsColl == null || electiveListsColl.size() == 0)
    {
        engine.showMessage("No matching records found.");
        form.dyngrdPatients().getRows().clear();
        form.lblTotal().setValue("Total: 0");//WDEV-20272 - 2
        updateControlsState();
        return;
    }

    populateDinamicGrid(electiveListsColl);
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void doSearch()
{

    if (form.txtIDNum().getValue() != null && form.cmbIDType().getValue() == null)
    {
        engine.showErrors(new String[] { "Please enter both an Identifier type as well as its value." });
        updateControlsState();
        return;
    }

    //populate the search filter
    PendingElectiveAdmissionListFilterVo voFilter = new PendingElectiveAdmissionListFilterVo();

    voFilter.setHospNum(form.txtIDNum().getValue());
    voFilter.setIDType(form.cmbIDType().getValue());
    voFilter.setSurname(form.txtSurname().getValue());
    voFilter.setForename(form.txtForename().getValue());
    voFilter.setHospital(form.cmbHospital().getValue());
    voFilter.setWard(form.qmbWard().getValue());
    voFilter.setTCI(form.dteTCI().getValue());
    voFilter.setConsultant(form.qmbCons().getValue());
    voFilter.setAlert(form.cmbAlert().getValue());
    voFilter.setSpecialty(form.cmbSpecialty().getValue());
    voFilter.setTCIDateOnly(form.chkTCIOnly().getValue());

    form.getGlobalContext().STHK.setPendingElectiveAdmissionListFilter(voFilter);

    PatientElectiveListForPendingAdmissionVoCollection electiveListsColl;

    if (voFilter.countFieldsWithValue() == 2 && (voFilter.getTCIDateOnlyIsNotNull() && voFilter.getIDTypeIsNotNull()) )
    {
        engine.showMessage("Please enter some valid search criteria.", "Invalid search cirteria", MessageButtons.OK, MessageIcon.ERROR);
        updateControlsState();
        return;
    }

    if (voFilter.countFieldsWithValue() > 1)
    {
        electiveListsColl = domain.getElectiveLists(voFilter);
    }
    else
    {
        engine.showErrors(new String[]{"Please enter some search criteria."});
        updateControlsState();
        return;
    }

    if (electiveListsColl == null || electiveListsColl.size() == 0)
    {
        engine.showMessage("No matching records found");
        form.dyngrdPatients().getRows().clear();
        updateControlsState();
        return;
    }

    if (electiveListsColl != null)
    {
        form.lblTotal().setValue("Total : " + String.valueOf(electiveListsColl.size()));
    }

    populateDinamicGrid(electiveListsColl);
    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
private void doSearch()
{

    if (form.txtIDNum().getValue() != null && form.cmbIDType().getValue() == null)
    {
        engine.showErrors(new String[] { "Please enter both an Identifier type as well as its value." });
        updateControlsState();
        return;
    }

    //populate the search filter
    PendingElectiveAdmissionListFilterVo voFilter = new PendingElectiveAdmissionListFilterVo();

    voFilter.setHospNum(form.txtIDNum().getValue());
    voFilter.setIDType(form.cmbIDType().getValue());
    voFilter.setSurname(form.txtSurname().getValue());
    voFilter.setForename(form.txtForename().getValue());
    voFilter.setHospital(form.cmbHospital().getValue());
    voFilter.setWard(form.qmbWard().getValue());
    voFilter.setTCI(form.dteTCI().getValue());
    voFilter.setConsultant(form.qmbCons().getValue());
    voFilter.setAlert(form.cmbAlert().getValue());
    voFilter.setSpecialty(form.cmbSpecialty().getValue());
    voFilter.setTCIDateOnly(form.chkTCIOnly().getValue());

    form.getGlobalContext().STHK.setPendingElectiveAdmissionListFilter(voFilter);

    PatientElectiveListForPendingAdmissionVoCollection electiveListsColl;

    if (voFilter.countFieldsWithValue() == 2 && (voFilter.getTCIDateOnlyIsNotNull() && voFilter.getIDTypeIsNotNull()) )
    {
        engine.showMessage("Please enter some valid search criteria.", "Invalid search cirteria", MessageButtons.OK, MessageIcon.ERROR);
        updateControlsState();
        return;
    }

    if (voFilter.countFieldsWithValue() > 1)
    {
        electiveListsColl = domain.getElectiveLists(voFilter);
    }
    else
    {
        engine.showErrors(new String[]{"Please enter some search criteria."});
        updateControlsState();
        return;
    }

    if (electiveListsColl == null || electiveListsColl.size() == 0)
    {
        engine.showMessage("No matching records found");
        form.dyngrdPatients().getRows().clear();
        updateControlsState();
        return;
    }

    if (electiveListsColl != null)
    {
        form.lblTotal().setValue("Total : " + String.valueOf(electiveListsColl.size()));
    }

    populateDinamicGrid(electiveListsColl);
    updateControlsState();
}