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

项目:AvoinApotti    文件:ClinicalAdmissionImpl.java   
public NurseVo getNurse(HcpRefVo id) 
{   
    if(id == null)
        throw new CodingRuntimeException("HCP id must not be null ");

    DomainFactory factory = getDomainFactory();
    String hql = "from Nurse as n1_1 where n1_1.id = :idHCP";
    List list = factory.find(hql, new String[] {"idHCP"}, new Object[] {id.getID_Hcp()});
    if(list != null && list.size() > 0)
    {
        NurseVoCollection voColl =  NurseVoAssembler.createNurseVoCollectionFromNurse(list);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private NurseVoCollection getAllNurses()
{
    NurseVoCollection tempColl = new NurseVoCollection();
    for( int i = 0; i < form.grdScrubNurse().getRows().size();i++)
    {
        tempColl.add( form.grdScrubNurse().getRows().get(i).getValue());
    }
    for( int j = 0; j < form.grdAnaestheticNurse().getRows().size();j++)
    {
        tempColl.add(form.grdAnaestheticNurse().getRows().get(j).getValue());

    }
    for( int k = 0; k < form.grdCirculatingNurse().getRows().size();k++)
    {
        tempColl.add(form.grdCirculatingNurse().getRows().get(k).getValue());
    }

    return tempColl;

}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
public NurseVo getNurse(HcpRefVo id) 
{   
    if(id == null)
        throw new CodingRuntimeException("HCP id must not be null ");

    DomainFactory factory = getDomainFactory();
    String hql = "from Nurse as n1_1 where n1_1.id = :idHCP";
    List list = factory.find(hql, new String[] {"idHCP"}, new Object[] {id.getID_Hcp()});
    if(list != null && list.size() > 0)
    {
        NurseVoCollection voColl =  NurseVoAssembler.createNurseVoCollectionFromNurse(list);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private NurseVoCollection getAllNurses()
{
    NurseVoCollection tempColl = new NurseVoCollection();
    for( int i = 0; i < form.grdScrubNurse().getRows().size();i++)
    {
        tempColl.add( form.grdScrubNurse().getRows().get(i).getValue());
    }
    for( int j = 0; j < form.grdAnaestheticNurse().getRows().size();j++)
    {
        tempColl.add(form.grdAnaestheticNurse().getRows().get(j).getValue());

    }
    for( int k = 0; k < form.grdCirculatingNurse().getRows().size();k++)
    {
        tempColl.add(form.grdCirculatingNurse().getRows().get(k).getValue());
    }

    return tempColl;

}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
public NurseVo getNurse(HcpRefVo id) 
{   
    if(id == null)
        throw new CodingRuntimeException("HCP id must not be null ");

    DomainFactory factory = getDomainFactory();
    String hql = "from Nurse as n1_1 where n1_1.id = :idHCP";
    List list = factory.find(hql, new String[] {"idHCP"}, new Object[] {id.getID_Hcp()});
    if(list != null && list.size() > 0)
    {
        NurseVoCollection voColl =  NurseVoAssembler.createNurseVoCollectionFromNurse(list);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private NurseVoCollection getAllNurses()
{
    NurseVoCollection tempColl = new NurseVoCollection();
    for( int i = 0; i < form.grdScrubNurse().getRows().size();i++)
    {
        tempColl.add( form.grdScrubNurse().getRows().get(i).getValue());
    }
    for( int j = 0; j < form.grdAnaestheticNurse().getRows().size();j++)
    {
        tempColl.add(form.grdAnaestheticNurse().getRows().get(j).getValue());

    }
    for( int k = 0; k < form.grdCirculatingNurse().getRows().size();k++)
    {
        tempColl.add(form.grdCirculatingNurse().getRows().get(k).getValue());
    }

    return tempColl;

}
项目:openmaxims-linux    文件:ClinicalAdmissionImpl.java   
public NurseVo getNurse(HcpRefVo id) 
{   
    if(id == null)
        throw new CodingRuntimeException("HCP id must not be null ");

    DomainFactory factory = getDomainFactory();
    String hql = "from Nurse as n1_1 where n1_1.id = :idHCP";
    List list = factory.find(hql, new String[] {"idHCP"}, new Object[] {id.getID_Hcp()});
    if(list != null && list.size() > 0)
    {
        NurseVoCollection voColl =  NurseVoAssembler.createNurseVoCollectionFromNurse(list);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private NurseVoCollection getAllNurses()
{
    NurseVoCollection tempColl = new NurseVoCollection();
    for( int i = 0; i < form.grdScrubNurse().getRows().size();i++)
    {
        tempColl.add( form.grdScrubNurse().getRows().get(i).getValue());
    }
    for( int j = 0; j < form.grdAnaestheticNurse().getRows().size();j++)
    {
        tempColl.add(form.grdAnaestheticNurse().getRows().get(j).getValue());

    }
    for( int k = 0; k < form.grdCirculatingNurse().getRows().size();k++)
    {
        tempColl.add(form.grdCirculatingNurse().getRows().get(k).getValue());
    }

    return tempColl;

}
项目:AvoinApotti    文件:Logic.java   
private void populategridAnaestheticNurse(NurseVoCollection nurseColl)
{
    if( nurseColl == null || nurseColl.size() == 0)
        return;
    nurseColl.sort(new NurseComparator(SortOrder.ASCENDING));
    for( int i = 0; i < nurseColl.size();i++)
    {
        grdAnaestheticNurseRow row = form.grdAnaestheticNurse().getRows().newRow();
        row.setColumnAnaestheticNurse(nurseColl.get(i).getMosIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() ? nurseColl.get(i).getMos().getName().toString():"" );
        row.setValue(nurseColl.get(i));
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populategridScrubNurse(NurseVoCollection nurseColl)
{
    if( nurseColl == null || nurseColl.size() == 0)
        return;
    nurseColl.sort(new NurseComparator(SortOrder.ASCENDING));
    for( int i = 0; i < nurseColl.size();i++)
    {
        grdScrubNurseRow row = form.grdScrubNurse().getRows().newRow();
        row.setColumnScrubNurse(nurseColl.get(i).getMosIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() ? nurseColl.get(i).getMos().getName().toString():"" );
        row.setValue(nurseColl.get(i));
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populategrdCirculatingNurse(NurseVoCollection nurseColl)
{
    if( nurseColl == null || nurseColl.size() == 0)
        return;
    nurseColl.sort(new NurseComparator(SortOrder.ASCENDING));
    for( int i = 0; i < nurseColl.size();i++)
    {
        grdCirculatingNurseRow row = form.grdCirculatingNurse().getRows().newRow();
        row.setColumnCirculatingNurse(nurseColl.get(i).getMosIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() ? nurseColl.get(i).getMos().getName().toString():"" );
        row.setValue(nurseColl.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populategridAnaestheticNurse(NurseVoCollection nurseColl)
{
    if( nurseColl == null || nurseColl.size() == 0)
        return;
    nurseColl.sort(new NurseComparator(SortOrder.ASCENDING));
    for( int i = 0; i < nurseColl.size();i++)
    {
        grdAnaestheticNurseRow row = form.grdAnaestheticNurse().getRows().newRow();
        row.setColumnAnaestheticNurse(nurseColl.get(i).getMosIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() ? nurseColl.get(i).getMos().getName().toString():"" );
        row.setValue(nurseColl.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populategridScrubNurse(NurseVoCollection nurseColl)
{
    if( nurseColl == null || nurseColl.size() == 0)
        return;
    nurseColl.sort(new NurseComparator(SortOrder.ASCENDING));
    for( int i = 0; i < nurseColl.size();i++)
    {
        grdScrubNurseRow row = form.grdScrubNurse().getRows().newRow();
        row.setColumnScrubNurse(nurseColl.get(i).getMosIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() ? nurseColl.get(i).getMos().getName().toString():"" );
        row.setValue(nurseColl.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populategrdCirculatingNurse(NurseVoCollection nurseColl)
{
    if( nurseColl == null || nurseColl.size() == 0)
        return;
    nurseColl.sort(new NurseComparator(SortOrder.ASCENDING));
    for( int i = 0; i < nurseColl.size();i++)
    {
        grdCirculatingNurseRow row = form.grdCirculatingNurse().getRows().newRow();
        row.setColumnCirculatingNurse(nurseColl.get(i).getMosIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() ? nurseColl.get(i).getMos().getName().toString():"" );
        row.setValue(nurseColl.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populategridAnaestheticNurse(NurseVoCollection nurseColl)
{
    if( nurseColl == null || nurseColl.size() == 0)
        return;
    nurseColl.sort(new NurseComparator(SortOrder.ASCENDING));
    for( int i = 0; i < nurseColl.size();i++)
    {
        grdAnaestheticNurseRow row = form.grdAnaestheticNurse().getRows().newRow();
        row.setColumnAnaestheticNurse(nurseColl.get(i).getMosIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() ? nurseColl.get(i).getMos().getName().toString():"" );
        row.setValue(nurseColl.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populategridScrubNurse(NurseVoCollection nurseColl)
{
    if( nurseColl == null || nurseColl.size() == 0)
        return;
    nurseColl.sort(new NurseComparator(SortOrder.ASCENDING));
    for( int i = 0; i < nurseColl.size();i++)
    {
        grdScrubNurseRow row = form.grdScrubNurse().getRows().newRow();
        row.setColumnScrubNurse(nurseColl.get(i).getMosIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() ? nurseColl.get(i).getMos().getName().toString():"" );
        row.setValue(nurseColl.get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populategrdCirculatingNurse(NurseVoCollection nurseColl)
{
    if( nurseColl == null || nurseColl.size() == 0)
        return;
    nurseColl.sort(new NurseComparator(SortOrder.ASCENDING));
    for( int i = 0; i < nurseColl.size();i++)
    {
        grdCirculatingNurseRow row = form.grdCirculatingNurse().getRows().newRow();
        row.setColumnCirculatingNurse(nurseColl.get(i).getMosIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() ? nurseColl.get(i).getMos().getName().toString():"" );
        row.setValue(nurseColl.get(i));
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populategridAnaestheticNurse(NurseVoCollection nurseColl)
{
    if( nurseColl == null || nurseColl.size() == 0)
        return;
    nurseColl.sort(new NurseComparator(SortOrder.ASCENDING));
    for( int i = 0; i < nurseColl.size();i++)
    {
        grdAnaestheticNurseRow row = form.grdAnaestheticNurse().getRows().newRow();
        row.setColumnAnaestheticNurse(nurseColl.get(i).getMosIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() ? nurseColl.get(i).getMos().getName().toString():"" );
        row.setValue(nurseColl.get(i));
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populategridScrubNurse(NurseVoCollection nurseColl)
{
    if( nurseColl == null || nurseColl.size() == 0)
        return;
    nurseColl.sort(new NurseComparator(SortOrder.ASCENDING));
    for( int i = 0; i < nurseColl.size();i++)
    {
        grdScrubNurseRow row = form.grdScrubNurse().getRows().newRow();
        row.setColumnScrubNurse(nurseColl.get(i).getMosIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() ? nurseColl.get(i).getMos().getName().toString():"" );
        row.setValue(nurseColl.get(i));
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populategrdCirculatingNurse(NurseVoCollection nurseColl)
{
    if( nurseColl == null || nurseColl.size() == 0)
        return;
    nurseColl.sort(new NurseComparator(SortOrder.ASCENDING));
    for( int i = 0; i < nurseColl.size();i++)
    {
        grdCirculatingNurseRow row = form.grdCirculatingNurse().getRows().newRow();
        row.setColumnCirculatingNurse(nurseColl.get(i).getMosIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() && nurseColl.get(i).getMos().getNameIsNotNull() ? nurseColl.get(i).getMos().getName().toString():"" );
        row.setValue(nurseColl.get(i));
    }
}
项目:AvoinApotti    文件:SurgicalAuditProcedureStaffDialogImpl.java   
public NurseVoCollection getNurses(LocationRefVo locRef, HcpDisType hcpType) 
{
    if( (locRef == null || locRef.getID_Location() == null) && hcpType == null)
    return null;

    DomainFactory factory = getDomainFactory();
    List nurses = factory.find("select n1_1 from Nurse as n1_1 left join n1_1.mos as m1_1 left join m1_1.locations as h1_1 left join h1_1.location as l1_1 left join n1_1.hcpType as l2_1 where (h1_1.location.id =:idLoc  and n1_1.hcpType.id =:idHcpType and n1_1.isActive = 1)", new String[] {"idLoc","idHcpType"}, new Object[] {locRef.getID_Location(),getDomLookup(hcpType).getId()});


    if (nurses != null && nurses.size() > 0)
        return NurseVoAssembler.createNurseVoCollectionFromNurse(nurses);


    return null;
}
项目:openMAXIMS    文件:SurgicalAuditProcedureStaffDialogImpl.java   
public NurseVoCollection getNurses(LocationRefVo locRef, HcpDisType hcpType) 
{
    if( (locRef == null || locRef.getID_Location() == null) && hcpType == null)
    return null;

    DomainFactory factory = getDomainFactory();
    List nurses = factory.find("select n1_1 from Nurse as n1_1 left join n1_1.mos as m1_1 left join m1_1.locations as h1_1 left join h1_1.location as l1_1 left join n1_1.hcpType as l2_1 where (h1_1.location.id =:idLoc  and n1_1.hcpType.id =:idHcpType and n1_1.isActive = 1)", new String[] {"idLoc","idHcpType"}, new Object[] {locRef.getID_Location(),getDomLookup(hcpType).getId()});


    if (nurses != null && nurses.size() > 0)
        return NurseVoAssembler.createNurseVoCollectionFromNurse(nurses);


    return null;
}
项目:openMAXIMS    文件:SurgicalAuditProcedureStaffDialogImpl.java   
public NurseVoCollection getNurses(LocationRefVo locRef, HcpDisType hcpType) 
{
    if( (locRef == null || locRef.getID_Location() == null) && hcpType == null)
    return null;

    DomainFactory factory = getDomainFactory();
    List nurses = factory.find("select n1_1 from Nurse as n1_1 left join n1_1.mos as m1_1 left join m1_1.locations as h1_1 left join h1_1.location as l1_1 left join n1_1.hcpType as l2_1 where (h1_1.location.id =:idLoc  and n1_1.hcpType.id =:idHcpType and n1_1.isActive = 1)", new String[] {"idLoc","idHcpType"}, new Object[] {locRef.getID_Location(),getDomLookup(hcpType).getId()});


    if (nurses != null && nurses.size() > 0)
        return NurseVoAssembler.createNurseVoCollectionFromNurse(nurses);


    return null;
}
项目:openmaxims-linux    文件:SurgicalAuditProcedureStaffDialogImpl.java   
public NurseVoCollection getNurses(LocationRefVo locRef, HcpDisType hcpType) 
{
    if( (locRef == null || locRef.getID_Location() == null) && hcpType == null)
    return null;

    DomainFactory factory = getDomainFactory();
    List nurses = factory.find("select n1_1 from Nurse as n1_1 left join n1_1.mos as m1_1 left join m1_1.locations as h1_1 left join h1_1.location as l1_1 left join n1_1.hcpType as l2_1 where (h1_1.location.id =:idLoc  and n1_1.hcpType.id =:idHcpType and n1_1.isActive = 1)", new String[] {"idLoc","idHcpType"}, new Object[] {locRef.getID_Location(),getDomLookup(hcpType).getId()});


    if (nurses != null && nurses.size() > 0)
        return NurseVoAssembler.createNurseVoCollectionFromNurse(nurses);


    return null;
}