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

项目:AvoinApotti    文件:Logic.java   
protected void listDocuments()
{
    if (form.getGlobalContext().Core.getPatientShortIsNotNull())
    {
         DocumentVoCollection voDocColl = domain.listPatientDocs(form.getGlobalContext().Core.getPatientShort());

        if (voDocColl != null)
        {
            if (voDocColl.size()>0)
            {
                for(int i=0;i<voDocColl.size();i++)
                {
                    DocumentVo voDoc = new DocumentVo();
                    voDoc = voDocColl.get(i);
                    //add new row                               
                    GenForm.grdDocumentsRow row;
                    row = form.grdDocuments().getRows().newRow();
                    row.setValue(voDoc);    

                    if (voDoc.getCreationDateIsNotNull())
                        row.setDate(voDoc.getCreationDate());

                    if (voDoc.getTemplateIsNotNull() && voDoc.getTemplate().getDescriptionIsNotNull())
                        row.setDescription(voDoc.getTemplate().getDescription());

                    if (voDoc.getClinicalContactIsNotNull())                            
                    {
                        if (voDoc.getClinicalContact().getSeenByIsNotNull())
                                row.setConsultant(voDoc.getClinicalContact().getSeenBy().getName().toString());

                        if (voDoc.getClinicalContact().getStartDateTimeIsNotNull())
                            row.setDiscDate(voDoc.getClinicalContact().getStartDateTimeIsNotNull()?voDoc.getClinicalContact().getStartDateTime().getDate():null);                           
                    }

                    if (voDoc.getPasEventIsNotNull())
                        row.setContactNo(voDoc.getPasEvent().getPasEventId());

                    if (voDoc.getRecUserIsNotNull())
                        row.setRecordingUser(voDoc.getRecUser().toString());

                    if (voDoc.getStatusIsNotNull())
                            row.setStatus(voDoc.getStatus().getText());
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void listDocuments()
{
    if (form.getGlobalContext().Core.getPatientShortIsNotNull())
    {
         DocumentVoCollection voDocColl = domain.listPatientDocs(form.getGlobalContext().Core.getPatientShort());

        if (voDocColl != null)
        {
            if (voDocColl.size()>0)
            {
                for(int i=0;i<voDocColl.size();i++)
                {
                    DocumentVo voDoc = new DocumentVo();
                    voDoc = voDocColl.get(i);
                    //add new row                               
                    GenForm.grdDocumentsRow row;
                    row = form.grdDocuments().getRows().newRow();
                    row.setValue(voDoc);    

                    if (voDoc.getCreationDateIsNotNull())
                        row.setDate(voDoc.getCreationDate());

                    if (voDoc.getTemplateIsNotNull() && voDoc.getTemplate().getDescriptionIsNotNull())
                        row.setDescription(voDoc.getTemplate().getDescription());

                    if (voDoc.getClinicalContactIsNotNull())                            
                    {
                        if (voDoc.getClinicalContact().getSeenByIsNotNull())
                                row.setConsultant(voDoc.getClinicalContact().getSeenBy().getName().toString());

                        if (voDoc.getClinicalContact().getStartDateTimeIsNotNull())
                            row.setDiscDate(voDoc.getClinicalContact().getStartDateTimeIsNotNull()?voDoc.getClinicalContact().getStartDateTime().getDate():null);                           
                    }

                    if (voDoc.getPasEventIsNotNull())
                        row.setContactNo(voDoc.getPasEvent().getPasEventId());

                    if (voDoc.getRecUserIsNotNull())
                        row.setRecordingUser(voDoc.getRecUser().toString());

                    if (voDoc.getStatusIsNotNull())
                            row.setStatus(voDoc.getStatus().getText());
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void listDocuments()
{
    if (form.getGlobalContext().Core.getPatientShortIsNotNull())
    {
         DocumentVoCollection voDocColl = domain.listPatientDocs(form.getGlobalContext().Core.getPatientShort());

        if (voDocColl != null)
        {
            if (voDocColl.size()>0)
            {
                for(int i=0;i<voDocColl.size();i++)
                {
                    DocumentVo voDoc = new DocumentVo();
                    voDoc = voDocColl.get(i);
                    //add new row                               
                    GenForm.grdDocumentsRow row;
                    row = form.grdDocuments().getRows().newRow();
                    row.setValue(voDoc);    

                    if (voDoc.getCreationDateIsNotNull())
                        row.setDate(voDoc.getCreationDate());

                    if (voDoc.getTemplateIsNotNull() && voDoc.getTemplate().getDescriptionIsNotNull())
                        row.setDescription(voDoc.getTemplate().getDescription());

                    if (voDoc.getClinicalContactIsNotNull())                            
                    {
                        if (voDoc.getClinicalContact().getSeenByIsNotNull())
                                row.setConsultant(voDoc.getClinicalContact().getSeenBy().getName().toString());

                        if (voDoc.getClinicalContact().getStartDateTimeIsNotNull())
                            row.setDiscDate(voDoc.getClinicalContact().getStartDateTimeIsNotNull()?voDoc.getClinicalContact().getStartDateTime().getDate():null);                           
                    }

                    if (voDoc.getPasEventIsNotNull())
                        row.setContactNo(voDoc.getPasEvent().getPasEventId());

                    if (voDoc.getRecUserIsNotNull())
                        row.setRecordingUser(voDoc.getRecUser().toString());

                    if (voDoc.getStatusIsNotNull())
                            row.setStatus(voDoc.getStatus().getText());
                }
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void listDocuments()
{
    if (form.getGlobalContext().Core.getPatientShortIsNotNull())
    {
         DocumentVoCollection voDocColl = domain.listPatientDocs(form.getGlobalContext().Core.getPatientShort());

        if (voDocColl != null)
        {
            if (voDocColl.size()>0)
            {
                for(int i=0;i<voDocColl.size();i++)
                {
                    DocumentVo voDoc = new DocumentVo();
                    voDoc = voDocColl.get(i);
                    //add new row                               
                    GenForm.grdDocumentsRow row;
                    row = form.grdDocuments().getRows().newRow();
                    row.setValue(voDoc);    

                    if (voDoc.getCreationDateIsNotNull())
                        row.setDate(voDoc.getCreationDate());

                    if (voDoc.getTemplateIsNotNull() && voDoc.getTemplate().getDescriptionIsNotNull())
                        row.setDescription(voDoc.getTemplate().getDescription());

                    if (voDoc.getClinicalContactIsNotNull())                            
                    {
                        if (voDoc.getClinicalContact().getSeenByIsNotNull())
                                row.setConsultant(voDoc.getClinicalContact().getSeenBy().getName().toString());

                        if (voDoc.getClinicalContact().getStartDateTimeIsNotNull())
                            row.setDiscDate(voDoc.getClinicalContact().getStartDateTimeIsNotNull()?voDoc.getClinicalContact().getStartDateTime().getDate():null);                           
                    }

                    if (voDoc.getPasEventIsNotNull())
                        row.setContactNo(voDoc.getPasEvent().getPasEventId());

                    if (voDoc.getRecUserIsNotNull())
                        row.setRecordingUser(voDoc.getRecUser().toString());

                    if (voDoc.getStatusIsNotNull())
                            row.setStatus(voDoc.getStatus().getText());
                }
            }
        }
    }
}