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

项目:AvoinApotti    文件:Logic.java   
private void searchMergeHistory()
{
    PatientId sourcePatient = new PatientId();
    sourcePatient.setType(form.lyrPatMerge().tabRequests().cmbSourceIdType().getValue());
    sourcePatient.setValue(form.lyrPatMerge().tabRequests().txtSourceValue().getValue());

    PatientId destinationPatient = new PatientId();
    destinationPatient.setType(form.lyrPatMerge().tabRequests().cmbDestIdType().getValue());
    destinationPatient.setValue(form.lyrPatMerge().tabRequests().txtDestValue().getValue());

    PatientMergeHistoryVoCollection historyColl = domain.listHistoryRequests(form.lyrPatMerge().tabRequests().dteFrom().getValue(),
            form.lyrPatMerge().tabRequests().dteTo().getValue(),
            form.lyrPatMerge().tabRequests().ccRequesteBy().getValue() instanceof MemberOfStaffLiteVo ? 
                (MemberOfStaffLiteVo)form.lyrPatMerge().tabRequests().ccRequesteBy().getValue() : null, sourcePatient, destinationPatient);

    form.lyrPatMerge().tabRequests().grdMerge().getRows().clear();
    if (historyColl != null && historyColl.size() > 0)
    {
        GenForm.lyrPatMergeLayer.tabRequestsContainer.grdMergeRow row;
        for (int i=0; i<historyColl.size(); i++)
        {
            PatientMergeHistoryVo history = historyColl.get(i);

            row = form.lyrPatMerge().tabRequests().grdMerge().getRows().newRow();
            row.setValue(history);
            row.setcolComment(history.getComment());
            row.setTooltipForcolComment(history.getComment());
            row.setcolDestinationPatient(history.getDestinationPatId().toString());
            row.setcolSourcePatient(history.getSourcePatId().toString());
            row.setcolOccurred(history.getCreationDateTime().getDate());
            row.setcolRequestedBy(history.getRequestedByIsNotNull()? history.getRequestedBy().getIMosName() : "");
            row.setcolDB(history.getDatabaseName());
        }
    }
    form.lyrPatMerge().tabRequests().grdAffectedItems().setVisible(true);
    form.lyrPatMerge().tabRequests().grdType().setVisible(true);
}
项目:openMAXIMS    文件:Logic.java   
private void searchMergeHistory()
{
    PatientId sourcePatient = new PatientId();
    sourcePatient.setType(form.lyrPatMerge().tabRequests().cmbSourceIdType().getValue());
    sourcePatient.setValue(form.lyrPatMerge().tabRequests().txtSourceValue().getValue());

    PatientId destinationPatient = new PatientId();
    destinationPatient.setType(form.lyrPatMerge().tabRequests().cmbDestIdType().getValue());
    destinationPatient.setValue(form.lyrPatMerge().tabRequests().txtDestValue().getValue());

    PatientMergeHistoryVoCollection historyColl = domain.listHistoryRequests(form.lyrPatMerge().tabRequests().dteFrom().getValue(),
            form.lyrPatMerge().tabRequests().dteTo().getValue(),
            form.lyrPatMerge().tabRequests().ccRequesteBy().getValue() instanceof MemberOfStaffLiteVo ? 
                (MemberOfStaffLiteVo)form.lyrPatMerge().tabRequests().ccRequesteBy().getValue() : null, sourcePatient, destinationPatient);

    form.lyrPatMerge().tabRequests().grdMerge().getRows().clear();
    if (historyColl != null && historyColl.size() > 0)
    {
        GenForm.lyrPatMergeLayer.tabRequestsContainer.grdMergeRow row;
        for (int i=0; i<historyColl.size(); i++)
        {
            PatientMergeHistoryVo history = historyColl.get(i);

            row = form.lyrPatMerge().tabRequests().grdMerge().getRows().newRow();
            row.setValue(history);
            row.setcolComment(history.getComment());
            row.setTooltipForcolComment(history.getComment());
            row.setcolDestinationPatient(history.getDestinationPatId().toString());
            row.setcolSourcePatient(history.getSourcePatId().toString());
            row.setcolOccurred(history.getCreationDateTime().getDate());
            row.setcolRequestedBy(history.getRequestedByIsNotNull()? history.getRequestedBy().getIMosName() : "");
            row.setcolDB(history.getDatabaseName());
        }
    }
    form.lyrPatMerge().tabRequests().grdAffectedItems().setVisible(true);
    form.lyrPatMerge().tabRequests().grdType().setVisible(true);
}
项目:openmaxims-linux    文件:Logic.java   
private void searchMergeHistory()
{
    PatientId sourcePatient = new PatientId();
    sourcePatient.setType(form.lyrPatMerge().tabRequests().cmbSourceIdType().getValue());
    sourcePatient.setValue(form.lyrPatMerge().tabRequests().txtSourceValue().getValue());

    PatientId destinationPatient = new PatientId();
    destinationPatient.setType(form.lyrPatMerge().tabRequests().cmbDestIdType().getValue());
    destinationPatient.setValue(form.lyrPatMerge().tabRequests().txtDestValue().getValue());

    PatientMergeHistoryVoCollection historyColl = domain.listHistoryRequests(form.lyrPatMerge().tabRequests().dteFrom().getValue(),
            form.lyrPatMerge().tabRequests().dteTo().getValue(),
            form.lyrPatMerge().tabRequests().ccRequesteBy().getValue() instanceof MemberOfStaffLiteVo ? 
                (MemberOfStaffLiteVo)form.lyrPatMerge().tabRequests().ccRequesteBy().getValue() : null, sourcePatient, destinationPatient);

    form.lyrPatMerge().tabRequests().grdMerge().getRows().clear();
    if (historyColl != null && historyColl.size() > 0)
    {
        GenForm.lyrPatMergeLayer.tabRequestsContainer.grdMergeRow row;
        for (int i=0; i<historyColl.size(); i++)
        {
            PatientMergeHistoryVo history = historyColl.get(i);

            row = form.lyrPatMerge().tabRequests().grdMerge().getRows().newRow();
            row.setValue(history);
            row.setcolComment(history.getComment());
            row.setTooltipForcolComment(history.getComment());
            row.setcolDestinationPatient(history.getDestinationPatId().toString());
            row.setcolSourcePatient(history.getSourcePatId().toString());
            row.setcolOccurred(history.getCreationDateTime().getDate());
            row.setcolRequestedBy(history.getRequestedByIsNotNull()? history.getRequestedBy().getIMosName() : "");
            row.setcolDB(history.getDatabaseName());
        }
    }
    form.lyrPatMerge().tabRequests().grdAffectedItems().setVisible(true);
    form.lyrPatMerge().tabRequests().grdType().setVisible(true);
}
项目:openMAXIMS    文件:Logic.java   
private void searchMergeHistory()
{
    form.lyrPatMerge().tabRequests().grdType().getRows().clear();
    form.lyrPatMerge().tabRequests().grdAffectedItems().getRows().clear();

    PatientId sourcePatient = new PatientId();
    sourcePatient.setType(form.lyrPatMerge().tabRequests().cmbSourceIdType().getValue());
    sourcePatient.setValue(form.lyrPatMerge().tabRequests().txtSourceValue().getValue());

    PatientId destinationPatient = new PatientId();
    destinationPatient.setType(form.lyrPatMerge().tabRequests().cmbDestIdType().getValue());
    destinationPatient.setValue(form.lyrPatMerge().tabRequests().txtDestValue().getValue());

    PatientMergeHistoryVoCollection historyColl = domain.listHistoryRequests(form.lyrPatMerge().tabRequests().dteFrom().getValue(),
            form.lyrPatMerge().tabRequests().dteTo().getValue(),
            form.lyrPatMerge().tabRequests().ccRequesteBy().getValue() instanceof MemberOfStaffLiteVo ? 
                (MemberOfStaffLiteVo)form.lyrPatMerge().tabRequests().ccRequesteBy().getValue() : null, sourcePatient, destinationPatient);

    form.lyrPatMerge().tabRequests().grdMerge().getRows().clear();

    // WDEV-18871 - starts here
    if (historyColl == null || historyColl.size() == 0)
    {
        engine.showMessage("No records matching your search criteria were found!", "No results",MessageButtons.OK, MessageIcon.INFORMATION);
    }
    // WDEV-18871 - ends 

    if (historyColl != null && historyColl.size() > 0)
    {
        GenForm.lyrPatMergeLayer.tabRequestsContainer.grdMergeRow row;
        for (int i=0; i<historyColl.size(); i++)
        {
            PatientMergeHistoryVo history = historyColl.get(i);

            row = form.lyrPatMerge().tabRequests().grdMerge().getRows().newRow();
            row.setValue(history);
            row.setcolComment(history.getComment());
            row.setTooltipForcolComment(history.getComment());
            row.setcolDestinationPatient(history.getDestinationPatId().toString());
            row.setcolSourcePatient(history.getSourcePatId().toString());
            row.setcolOccurred(history.getCreationDateTime().getDate());
            row.setcolRequestedBy(history.getRequestedByIsNotNull()? history.getRequestedBy().getIMosName() : "");
            row.setcolDB(history.getDatabaseName());
        }
    }
    form.lyrPatMerge().tabRequests().grdAffectedItems().setVisible(true);
    form.lyrPatMerge().tabRequests().grdType().setVisible(true);
}