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

项目:AvoinApotti    文件:Logic.java   
private void populateOperationsGrid() 
{
    form.grdOperations().getRows().clear();

    PatientSurgicalOperationVoCollection voCollOperations = domain.listCareContextSurgicalOperations(form.getGlobalContext().Core.getCurrentCareContext(),engine.isRIEMode());
    if(voCollOperations != null)
    {
        GenForm.grdOperationsRow row = null;
        for(int i=0;i<voCollOperations.size();i++)
        {
            row = form.grdOperations().getRows().newRow();
            if(voCollOperations.get(i).getProcDateIsNotNull())
                row.setcolDate(voCollOperations.get(i).getProcDate().toString());
            if(voCollOperations.get(i).getProcedure() != null)
                row.setcolProcedure(voCollOperations.get(i).getProcedure().getProcedureName());

            //28/10/2005 - Bug reported - Location not saved
            if(voCollOperations.get(i).getLocationIsNotNull())
                row.setcolLocation(voCollOperations.get(i).getLocation());

            row.setValue(voCollOperations.get(i));
        }
    }       

}
项目:openMAXIMS    文件:Logic.java   
private void populateOperationsGrid() 
{
    form.grdOperations().getRows().clear();

    PatientSurgicalOperationVoCollection voCollOperations = domain.listCareContextSurgicalOperations(form.getGlobalContext().Core.getCurrentCareContext(),engine.isRIEMode());
    if(voCollOperations != null)
    {
        GenForm.grdOperationsRow row = null;
        for(int i=0;i<voCollOperations.size();i++)
        {
            row = form.grdOperations().getRows().newRow();
            if(voCollOperations.get(i).getProcDateIsNotNull())
                row.setcolDate(voCollOperations.get(i).getProcDate().toString());
            if(voCollOperations.get(i).getProcedure() != null)
                row.setcolProcedure(voCollOperations.get(i).getProcedure().getProcedureName());

            //28/10/2005 - Bug reported - Location not saved
            if(voCollOperations.get(i).getLocationIsNotNull())
                row.setcolLocation(voCollOperations.get(i).getLocation());

            row.setValue(voCollOperations.get(i));
        }
    }       

}
项目:openMAXIMS    文件:Logic.java   
private void populateOperationsGrid() 
{
    form.grdOperations().getRows().clear();

    PatientSurgicalOperationVoCollection voCollOperations = domain.listCareContextSurgicalOperations(form.getGlobalContext().Core.getCurrentCareContext(),engine.isRIEMode());
    if(voCollOperations != null)
    {
        GenForm.grdOperationsRow row = null;
        for(int i=0;i<voCollOperations.size();i++)
        {
            row = form.grdOperations().getRows().newRow();
            if(voCollOperations.get(i).getProcDateIsNotNull())
                row.setcolDate(voCollOperations.get(i).getProcDate().toString());
            if(voCollOperations.get(i).getProcedure() != null)
                row.setcolProcedure(voCollOperations.get(i).getProcedure().getProcedureName());

            //28/10/2005 - Bug reported - Location not saved
            if(voCollOperations.get(i).getLocationIsNotNull())
                row.setcolLocation(voCollOperations.get(i).getLocation());

            row.setValue(voCollOperations.get(i));
        }
    }       

}
项目:openmaxims-linux    文件:Logic.java   
private void populateOperationsGrid() 
{
    form.grdOperations().getRows().clear();

    PatientSurgicalOperationVoCollection voCollOperations = domain.listCareContextSurgicalOperations(form.getGlobalContext().Core.getCurrentCareContext(),engine.isRIEMode());
    if(voCollOperations != null)
    {
        GenForm.grdOperationsRow row = null;
        for(int i=0;i<voCollOperations.size();i++)
        {
            row = form.grdOperations().getRows().newRow();
            if(voCollOperations.get(i).getProcDateIsNotNull())
                row.setcolDate(voCollOperations.get(i).getProcDate().toString());
            if(voCollOperations.get(i).getProcedure() != null)
                row.setcolProcedure(voCollOperations.get(i).getProcedure().getProcedureName());

            //28/10/2005 - Bug reported - Location not saved
            if(voCollOperations.get(i).getLocationIsNotNull())
                row.setcolLocation(voCollOperations.get(i).getLocation());

            row.setValue(voCollOperations.get(i));
        }
    }       

}
项目:AvoinApotti    文件:SurgicalOperationsImpl.java   
private PatientSurgicalOperationVoCollection listSurgicalOperations(CareContextRefVo refCareContext, ClinicalContactShortVo voClinicalContactShort, Boolean bRIE) {

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from PatientSurgicalOperation t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (voClinicalContactShort != null)
    {
        hql.append(andStr + " t.clinicalContact.id =:rcc");
        markers.add("rcc");
        values.add(voClinicalContactShort.getID_ClinicalContact());
        andStr = " and ";
    }

    if (refCareContext != null)
    {
        hql.append(andStr + " t.careContext.id =:cc");
        markers.add("cc");
        values.add(refCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0)
        query += " where ";
    query += hql.toString();
    List patientProcedures = factory.find(query, markers, values);

    return PatientSurgicalOperationVoAssembler.createPatientSurgicalOperationVoCollectionFromPatientSurgicalOperation(patientProcedures);
}
项目:openMAXIMS    文件:SurgicalOperationsImpl.java   
private PatientSurgicalOperationVoCollection listSurgicalOperations(CareContextRefVo refCareContext, ClinicalContactShortVo voClinicalContactShort, Boolean bRIE) {

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from PatientSurgicalOperation t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (voClinicalContactShort != null)
    {
        hql.append(andStr + " t.clinicalContact.id =:rcc");
        markers.add("rcc");
        values.add(voClinicalContactShort.getID_ClinicalContact());
        andStr = " and ";
    }

    if (refCareContext != null)
    {
        hql.append(andStr + " t.careContext.id =:cc");
        markers.add("cc");
        values.add(refCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0)
        query += " where ";
    query += hql.toString();
    List patientProcedures = factory.find(query, markers, values);

    return PatientSurgicalOperationVoAssembler.createPatientSurgicalOperationVoCollectionFromPatientSurgicalOperation(patientProcedures);
}
项目:openMAXIMS    文件:SurgicalOperationsImpl.java   
private PatientSurgicalOperationVoCollection listSurgicalOperations(CareContextRefVo refCareContext, ClinicalContactShortVo voClinicalContactShort, Boolean bRIE) {

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from PatientSurgicalOperation t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (voClinicalContactShort != null)
    {
        hql.append(andStr + " t.clinicalContact.id =:rcc");
        markers.add("rcc");
        values.add(voClinicalContactShort.getID_ClinicalContact());
        andStr = " and ";
    }

    if (refCareContext != null)
    {
        hql.append(andStr + " t.careContext.id =:cc");
        markers.add("cc");
        values.add(refCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0)
        query += " where ";
    query += hql.toString();
    List patientProcedures = factory.find(query, markers, values);

    return PatientSurgicalOperationVoAssembler.createPatientSurgicalOperationVoCollectionFromPatientSurgicalOperation(patientProcedures);
}
项目:openmaxims-linux    文件:SurgicalOperationsImpl.java   
private PatientSurgicalOperationVoCollection listSurgicalOperations(CareContextRefVo refCareContext, ClinicalContactShortVo voClinicalContactShort, Boolean bRIE) {

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from PatientSurgicalOperation t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (voClinicalContactShort != null)
    {
        hql.append(andStr + " t.clinicalContact.id =:rcc");
        markers.add("rcc");
        values.add(voClinicalContactShort.getID_ClinicalContact());
        andStr = " and ";
    }

    if (refCareContext != null)
    {
        hql.append(andStr + " t.careContext.id =:cc");
        markers.add("cc");
        values.add(refCareContext.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0)
        query += " where ";
    query += hql.toString();
    List patientProcedures = factory.find(query, markers, values);

    return PatientSurgicalOperationVoAssembler.createPatientSurgicalOperationVoCollectionFromPatientSurgicalOperation(patientProcedures);
}
项目:AvoinApotti    文件:SurgicalOperationsImpl.java   
public PatientSurgicalOperationVoCollection listClinicalContactSurgicalOperations(ClinicalContactShortVo voClinicalContactShort)
{
    return listSurgicalOperations(null, voClinicalContactShort, false);
}
项目:AvoinApotti    文件:SurgicalOperationsImpl.java   
public PatientSurgicalOperationVoCollection listCareContextSurgicalOperations(CareContextRefVo refCareContext, Boolean bRIE) 
{
    return listSurgicalOperations(refCareContext, null, bRIE);
}
项目:openMAXIMS    文件:SurgicalOperationsImpl.java   
public PatientSurgicalOperationVoCollection listClinicalContactSurgicalOperations(ClinicalContactShortVo voClinicalContactShort)
{
    return listSurgicalOperations(null, voClinicalContactShort, false);
}
项目:openMAXIMS    文件:SurgicalOperationsImpl.java   
public PatientSurgicalOperationVoCollection listCareContextSurgicalOperations(CareContextRefVo refCareContext, Boolean bRIE) 
{
    return listSurgicalOperations(refCareContext, null, bRIE);
}
项目:openMAXIMS    文件:SurgicalOperationsImpl.java   
public PatientSurgicalOperationVoCollection listClinicalContactSurgicalOperations(ClinicalContactShortVo voClinicalContactShort)
{
    return listSurgicalOperations(null, voClinicalContactShort, false);
}
项目:openMAXIMS    文件:SurgicalOperationsImpl.java   
public PatientSurgicalOperationVoCollection listCareContextSurgicalOperations(CareContextRefVo refCareContext, Boolean bRIE) 
{
    return listSurgicalOperations(refCareContext, null, bRIE);
}
项目:openmaxims-linux    文件:SurgicalOperationsImpl.java   
public PatientSurgicalOperationVoCollection listClinicalContactSurgicalOperations(ClinicalContactShortVo voClinicalContactShort)
{
    return listSurgicalOperations(null, voClinicalContactShort, false);
}
项目:openmaxims-linux    文件:SurgicalOperationsImpl.java   
public PatientSurgicalOperationVoCollection listCareContextSurgicalOperations(CareContextRefVo refCareContext, Boolean bRIE) 
{
    return listSurgicalOperations(refCareContext, null, bRIE);
}