Java 类ims.ocrr.vo.domain.SpecimenCollectionListConfigDetailsVoAssembler 实例源码

项目:AvoinApotti    文件:SpecimenCollectionConfigImpl.java   
public SpecimenCollectionListConfigDetailsVoCollection listSpecimenCollectionDetails(SpecimenCollectionMethod type, Date date)
{
    if(type == null || date == null)
        throw new CodingRuntimeException("Coding Error = type or date is null (listSpecimenCollectionDetails) ");

    DayOfWeek dayInst = getDayOfWeek(date);

    DomainFactory factory = getDomainFactory();
    List cfgSpecs =  factory.find("from SpecimenCollectionListConfigDetails detail where detail.dayOfWeek = :dayOfWeekInst and id in (select header.detail.id from SpecimenCollectionListConfig header where header.listType = :listType)", new String[]{"dayOfWeekInst","listType"}, new Object[] { getDomLookup(dayInst),getDomLookup(type)});
    SpecimenCollectionListConfigDetailsVoCollection voCollSpecimenListConfigDetail = null;
    if(cfgSpecs != null && cfgSpecs.size() > 0)
        voCollSpecimenListConfigDetail = SpecimenCollectionListConfigDetailsVoAssembler.createSpecimenCollectionListConfigDetailsVoCollectionFromSpecimenCollectionListConfigDetails(cfgSpecs);

    return voCollSpecimenListConfigDetail;  
}
项目:openMAXIMS    文件:SpecimenCollectionConfigImpl.java   
public SpecimenCollectionListConfigDetailsVoCollection listSpecimenCollectionDetails(SpecimenCollectionMethod type, Date date)
{
    if(type == null || date == null)
        throw new CodingRuntimeException("Coding Error = type or date is null (listSpecimenCollectionDetails) ");

    DayOfWeek dayInst = getDayOfWeek(date);

    DomainFactory factory = getDomainFactory();
    List cfgSpecs =  factory.find("from SpecimenCollectionListConfigDetails detail where detail.dayOfWeek = :dayOfWeekInst and id in (select header.detail.id from SpecimenCollectionListConfig header where header.listType = :listType)", new String[]{"dayOfWeekInst","listType"}, new Object[] { getDomLookup(dayInst),getDomLookup(type)});
    SpecimenCollectionListConfigDetailsVoCollection voCollSpecimenListConfigDetail = null;
    if(cfgSpecs != null && cfgSpecs.size() > 0)
        voCollSpecimenListConfigDetail = SpecimenCollectionListConfigDetailsVoAssembler.createSpecimenCollectionListConfigDetailsVoCollectionFromSpecimenCollectionListConfigDetails(cfgSpecs);

    return voCollSpecimenListConfigDetail;  
}
项目:openMAXIMS    文件:SpecimenCollectionConfigImpl.java   
public SpecimenCollectionListConfigDetailsVoCollection listSpecimenCollectionDetails(SpecimenCollectionMethod type, Date date)
{
    if(type == null || date == null)
        throw new CodingRuntimeException("Coding Error = type or date is null (listSpecimenCollectionDetails) ");

    DayOfWeek dayInst = getDayOfWeek(date);

    DomainFactory factory = getDomainFactory();
    List cfgSpecs =  factory.find("from SpecimenCollectionListConfigDetails detail where detail.dayOfWeek = :dayOfWeekInst and id in (select header.detail.id from SpecimenCollectionListConfig header where header.listType = :listType)", new String[]{"dayOfWeekInst","listType"}, new Object[] { getDomLookup(dayInst),getDomLookup(type)});
    SpecimenCollectionListConfigDetailsVoCollection voCollSpecimenListConfigDetail = null;
    if(cfgSpecs != null && cfgSpecs.size() > 0)
        voCollSpecimenListConfigDetail = SpecimenCollectionListConfigDetailsVoAssembler.createSpecimenCollectionListConfigDetailsVoCollectionFromSpecimenCollectionListConfigDetails(cfgSpecs);

    return voCollSpecimenListConfigDetail;  
}
项目:openmaxims-linux    文件:SpecimenCollectionConfigImpl.java   
public SpecimenCollectionListConfigDetailsVoCollection listSpecimenCollectionDetails(SpecimenCollectionMethod type, Date date)
{
    if(type == null || date == null)
        throw new CodingRuntimeException("Coding Error = type or date is null (listSpecimenCollectionDetails) ");

    DayOfWeek dayInst = getDayOfWeek(date);

    DomainFactory factory = getDomainFactory();
    List cfgSpecs =  factory.find("from SpecimenCollectionListConfigDetails detail where detail.dayOfWeek = :dayOfWeekInst and id in (select header.detail.id from SpecimenCollectionListConfig header where header.listType = :listType)", new String[]{"dayOfWeekInst","listType"}, new Object[] { getDomLookup(dayInst),getDomLookup(type)});
    SpecimenCollectionListConfigDetailsVoCollection voCollSpecimenListConfigDetail = null;
    if(cfgSpecs != null && cfgSpecs.size() > 0)
        voCollSpecimenListConfigDetail = SpecimenCollectionListConfigDetailsVoAssembler.createSpecimenCollectionListConfigDetailsVoCollectionFromSpecimenCollectionListConfigDetails(cfgSpecs);

    return voCollSpecimenListConfigDetail;  
}