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

项目:AvoinApotti    文件:CorrespondenceDetailsImpl.java   
private String savePasDocumentStatus(CorrespondenceDetailsVo voDocDetail,LookupInstVo pasEventType) 
{
    if (voDocDetail != null && voDocDetail.getCurrentStatusIsNotNull())
    {
        DomainFactory factory = getDomainFactory();
        PASEvent domPas = (PASEvent) factory.getDomainObject(PASEvent.class, voDocDetail.getPasEvent().getID_PASEvent());
        PasEventLiteVo voPasEvent = PasEventLiteVoAssembler.create(domPas);
        Result dtoResult;
        String strStatus = "";

        if (pasEventType != null)
        {
            if (pasEventType.equals(PasEventType.INPATIENT))
            {
                Inpatientlist inpat = (Inpatientlist)getDTOInstance(Inpatientlist.class);
                inpat.Filter.clear();

                strStatus = "" + voDocDetail.getCurrentStatus().getId();

                // Update impatient list
                inpat.Filter.Contactno = voPasEvent.getPasEventId();
                dtoResult = inpat.get();
                if (null  != dtoResult)
                    return new String(dtoResult.toString());

                inpat.DataCollection.get(0).Documentstatus = strStatus;
                dtoResult = inpat.update();
                if (null != dtoResult)
                    return new String(dtoResult.toString());
            }
            else if (pasEventType.equals(PasEventType.OUTPATIENT))
            {
                Outpatientlist outpat = (Outpatientlist)getDTOInstance(Outpatientlist.class);
                outpat.Filter.clear();

                strStatus = "" + voDocDetail.getCurrentStatus().getId();

                // Update outpatient list
                outpat.Filter.Contactno = voPasEvent.getPasEventId();                   
                dtoResult = outpat.get();
                if (null  != dtoResult)
                    return new String(dtoResult.toString());

                outpat.DataCollection.get(0).Documentstatus = strStatus;                    

                dtoResult = outpat.update();
                if (null != dtoResult)
                    return new String(dtoResult.toString());                
            }
        }
        else
            return ("No PAS event type found");

        Patientcontacts patientContacts = (Patientcontacts)getDTOInstance(Patientcontacts.class);
        patientContacts.Filter.clear();         

        PatientcontactsRecord patientContactsRecord = patientContacts.new PatientcontactsRecord();
        patientContactsRecord.Contactno = voPasEvent.getPasEventId();
        patientContactsRecord.Documentstatus = strStatus;

        patientContacts.Filter.Contactno = voPasEvent.getPasEventId();
        dtoResult = patientContacts.get();

        if (null != dtoResult)
            return new String (dtoResult.toString());

        patientContacts.DataCollection.get(0).Documentstatus = strStatus;
        dtoResult = patientContacts.update();
        if (null != dtoResult)
            return new String(dtoResult.toString());

    }

    return new String();        
}
项目:openMAXIMS    文件:CorrespondenceDetailsImpl.java   
private String savePasDocumentStatus(CorrespondenceDetailsVo voDocDetail,LookupInstVo pasEventType) 
{
    if (voDocDetail != null && voDocDetail.getCurrentStatusIsNotNull())
    {
        DomainFactory factory = getDomainFactory();
        PASEvent domPas = (PASEvent) factory.getDomainObject(PASEvent.class, voDocDetail.getPasEvent().getID_PASEvent());
        PasEventLiteVo voPasEvent = PasEventLiteVoAssembler.create(domPas);
        Result dtoResult;
        String strStatus = "";

        if (pasEventType != null)
        {
            if (pasEventType.equals(PasEventType.INPATIENT))
            {
                Inpatientlist inpat = (Inpatientlist)getDTOInstance(Inpatientlist.class);
                inpat.Filter.clear();

                strStatus = "" + voDocDetail.getCurrentStatus().getId();

                // Update impatient list
                inpat.Filter.Contactno = voPasEvent.getPasEventId();
                dtoResult = inpat.get();
                if (null  != dtoResult)
                    return new String(dtoResult.toString());

                inpat.DataCollection.get(0).Documentstatus = strStatus;
                dtoResult = inpat.update();
                if (null != dtoResult)
                    return new String(dtoResult.toString());
            }
            else if (pasEventType.equals(PasEventType.OUTPATIENT))
            {
                Outpatientlist outpat = (Outpatientlist)getDTOInstance(Outpatientlist.class);
                outpat.Filter.clear();

                strStatus = "" + voDocDetail.getCurrentStatus().getId();

                // Update outpatient list
                outpat.Filter.Contactno = voPasEvent.getPasEventId();                   
                dtoResult = outpat.get();
                if (null  != dtoResult)
                    return new String(dtoResult.toString());

                outpat.DataCollection.get(0).Documentstatus = strStatus;                    

                dtoResult = outpat.update();
                if (null != dtoResult)
                    return new String(dtoResult.toString());                
            }
        }
        else
            return ("No PAS event type found");

        Patientcontacts patientContacts = (Patientcontacts)getDTOInstance(Patientcontacts.class);
        patientContacts.Filter.clear();         

        PatientcontactsRecord patientContactsRecord = patientContacts.new PatientcontactsRecord();
        patientContactsRecord.Contactno = voPasEvent.getPasEventId();
        patientContactsRecord.Documentstatus = strStatus;

        patientContacts.Filter.Contactno = voPasEvent.getPasEventId();
        dtoResult = patientContacts.get();

        if (null != dtoResult)
            return new String (dtoResult.toString());

        patientContacts.DataCollection.get(0).Documentstatus = strStatus;
        dtoResult = patientContacts.update();
        if (null != dtoResult)
            return new String(dtoResult.toString());

    }

    return new String();        
}
项目:openMAXIMS    文件:CorrespondenceDetailsImpl.java   
private String savePasDocumentStatus(CorrespondenceDetailsVo voDocDetail,LookupInstVo pasEventType) 
{
    if (voDocDetail != null && voDocDetail.getCurrentStatusIsNotNull())
    {
        DomainFactory factory = getDomainFactory();
        PASEvent domPas = (PASEvent) factory.getDomainObject(PASEvent.class, voDocDetail.getPasEvent().getID_PASEvent());
        PasEventLiteVo voPasEvent = PasEventLiteVoAssembler.create(domPas);
        Result dtoResult;
        String strStatus = "";

        if (pasEventType != null)
        {
            if (pasEventType.equals(PasEventType.INPATIENT))
            {
                Inpatientlist inpat = (Inpatientlist)getDTOInstance(Inpatientlist.class);
                inpat.Filter.clear();

                strStatus = "" + voDocDetail.getCurrentStatus().getId();

                // Update impatient list
                inpat.Filter.Contactno = voPasEvent.getPasEventId();
                dtoResult = inpat.get();
                if (null  != dtoResult)
                    return new String(dtoResult.toString());

                inpat.DataCollection.get(0).Documentstatus = strStatus;
                dtoResult = inpat.update();
                if (null != dtoResult)
                    return new String(dtoResult.toString());
            }
            else if (pasEventType.equals(PasEventType.OUTPATIENT))
            {
                Outpatientlist outpat = (Outpatientlist)getDTOInstance(Outpatientlist.class);
                outpat.Filter.clear();

                strStatus = "" + voDocDetail.getCurrentStatus().getId();

                // Update outpatient list
                outpat.Filter.Contactno = voPasEvent.getPasEventId();                   
                dtoResult = outpat.get();
                if (null  != dtoResult)
                    return new String(dtoResult.toString());

                outpat.DataCollection.get(0).Documentstatus = strStatus;                    

                dtoResult = outpat.update();
                if (null != dtoResult)
                    return new String(dtoResult.toString());                
            }
        }
        else
            return ("No PAS event type found");

        Patientcontacts patientContacts = (Patientcontacts)getDTOInstance(Patientcontacts.class);
        patientContacts.Filter.clear();         

        PatientcontactsRecord patientContactsRecord = patientContacts.new PatientcontactsRecord();
        patientContactsRecord.Contactno = voPasEvent.getPasEventId();
        patientContactsRecord.Documentstatus = strStatus;

        patientContacts.Filter.Contactno = voPasEvent.getPasEventId();
        dtoResult = patientContacts.get();

        if (null != dtoResult)
            return new String (dtoResult.toString());

        patientContacts.DataCollection.get(0).Documentstatus = strStatus;
        dtoResult = patientContacts.update();
        if (null != dtoResult)
            return new String(dtoResult.toString());

    }

    return new String();        
}
项目:openmaxims-linux    文件:CorrespondenceDetailsImpl.java   
private String savePasDocumentStatus(CorrespondenceDetailsVo voDocDetail,LookupInstVo pasEventType) 
{
    if (voDocDetail != null && voDocDetail.getCurrentStatusIsNotNull())
    {
        DomainFactory factory = getDomainFactory();
        PASEvent domPas = (PASEvent) factory.getDomainObject(PASEvent.class, voDocDetail.getPasEvent().getID_PASEvent());
        PasEventLiteVo voPasEvent = PasEventLiteVoAssembler.create(domPas);
        Result dtoResult;
        String strStatus = "";

        if (pasEventType != null)
        {
            if (pasEventType.equals(PasEventType.INPATIENT))
            {
                Inpatientlist inpat = (Inpatientlist)getDTOInstance(Inpatientlist.class);
                inpat.Filter.clear();

                strStatus = "" + voDocDetail.getCurrentStatus().getId();

                // Update impatient list
                inpat.Filter.Contactno = voPasEvent.getPasEventId();
                dtoResult = inpat.get();
                if (null  != dtoResult)
                    return new String(dtoResult.toString());

                inpat.DataCollection.get(0).Documentstatus = strStatus;
                dtoResult = inpat.update();
                if (null != dtoResult)
                    return new String(dtoResult.toString());
            }
            else if (pasEventType.equals(PasEventType.OUTPATIENT))
            {
                Outpatientlist outpat = (Outpatientlist)getDTOInstance(Outpatientlist.class);
                outpat.Filter.clear();

                strStatus = "" + voDocDetail.getCurrentStatus().getId();

                // Update outpatient list
                outpat.Filter.Contactno = voPasEvent.getPasEventId();                   
                dtoResult = outpat.get();
                if (null  != dtoResult)
                    return new String(dtoResult.toString());

                outpat.DataCollection.get(0).Documentstatus = strStatus;                    

                dtoResult = outpat.update();
                if (null != dtoResult)
                    return new String(dtoResult.toString());                
            }
        }
        else
            return ("No PAS event type found");

        Patientcontacts patientContacts = (Patientcontacts)getDTOInstance(Patientcontacts.class);
        patientContacts.Filter.clear();         

        PatientcontactsRecord patientContactsRecord = patientContacts.new PatientcontactsRecord();
        patientContactsRecord.Contactno = voPasEvent.getPasEventId();
        patientContactsRecord.Documentstatus = strStatus;

        patientContacts.Filter.Contactno = voPasEvent.getPasEventId();
        dtoResult = patientContacts.get();

        if (null != dtoResult)
            return new String (dtoResult.toString());

        patientContacts.DataCollection.get(0).Documentstatus = strStatus;
        dtoResult = patientContacts.update();
        if (null != dtoResult)
            return new String(dtoResult.toString());

    }

    return new String();        
}