Java 类ims.admin.vo.domain.PrintLocationConfigVoAssembler 实例源码

项目:AvoinApotti    文件:ResultsPrintingConfigImpl.java   
/**
 * savePrintLocationConfigCollection
 */
public void savePrintLocationConfigCollection(PrintLocationConfigVoCollection voCollPrintLocConfig) throws StaleObjectException
{
    if (voCollPrintLocConfig == null)
        throw new CodingRuntimeException("voCollPrintLocConfig is null in method savePrintLocationConfigCollection");

    for(PrintLocationConfigVo voPrintLocConf : voCollPrintLocConfig)
        getDomainFactory().save(PrintLocationConfigVoAssembler.extractPrintLocationConfig(getDomainFactory(), voPrintLocConf)); 
}
项目:AvoinApotti    文件:ResultsPrintingConfigImpl.java   
/**
 * 
 */
public PrintLocationConfigVo getPrintLocationConfigByLocation(LocationRefVo location)
{
    if (location == null || location.getID_Location() == null)
        throw new CodingRuntimeException("location is null or id not provided in method getPrintLocationConfigByLocation");

    ims.core.admin.domain.objects.PrintLocationConfig doPrintLocConf = ims.core.admin.domain.objects.PrintLocationConfig.getPrintLocationConfigFromSite(getDomainFactory(), location.getBoId());
    if(doPrintLocConf != null)
        return PrintLocationConfigVoAssembler.create(doPrintLocConf);

    return null;
}
项目:openMAXIMS    文件:ResultsPrintingConfigImpl.java   
/**
 * savePrintLocationConfigCollection
 */
public void savePrintLocationConfigCollection(PrintLocationConfigVoCollection voCollPrintLocConfig) throws StaleObjectException
{
    if (voCollPrintLocConfig == null)
        throw new CodingRuntimeException("voCollPrintLocConfig is null in method savePrintLocationConfigCollection");

    for(PrintLocationConfigVo voPrintLocConf : voCollPrintLocConfig)
        getDomainFactory().save(PrintLocationConfigVoAssembler.extractPrintLocationConfig(getDomainFactory(), voPrintLocConf)); 
}
项目:openMAXIMS    文件:ResultsPrintingConfigImpl.java   
/**
 * 
 */
public PrintLocationConfigVo getPrintLocationConfigByLocation(LocationRefVo location)
{
    if (location == null || location.getID_Location() == null)
        throw new CodingRuntimeException("location is null or id not provided in method getPrintLocationConfigByLocation");

    ims.core.admin.domain.objects.PrintLocationConfig doPrintLocConf = ims.core.admin.domain.objects.PrintLocationConfig.getPrintLocationConfigFromSite(getDomainFactory(), location.getBoId());
    if(doPrintLocConf != null)
        return PrintLocationConfigVoAssembler.create(doPrintLocConf);

    return null;
}
项目:openMAXIMS    文件:ResultsPrintingConfigImpl.java   
/**
 * savePrintLocationConfigCollection
 */
public void savePrintLocationConfigCollection(PrintLocationConfigVoCollection voCollPrintLocConfig) throws StaleObjectException
{
    if (voCollPrintLocConfig == null)
        throw new CodingRuntimeException("voCollPrintLocConfig is null in method savePrintLocationConfigCollection");

    for(PrintLocationConfigVo voPrintLocConf : voCollPrintLocConfig)
        getDomainFactory().save(PrintLocationConfigVoAssembler.extractPrintLocationConfig(getDomainFactory(), voPrintLocConf)); 
}
项目:openMAXIMS    文件:ResultsPrintingConfigImpl.java   
/**
 * 
 */
public PrintLocationConfigVo getPrintLocationConfigByLocation(LocationRefVo location)
{
    if (location == null || location.getID_Location() == null)
        throw new CodingRuntimeException("location is null or id not provided in method getPrintLocationConfigByLocation");

    ims.core.admin.domain.objects.PrintLocationConfig doPrintLocConf = ims.core.admin.domain.objects.PrintLocationConfig.getPrintLocationConfigFromSite(getDomainFactory(), location.getBoId());
    if(doPrintLocConf != null)
        return PrintLocationConfigVoAssembler.create(doPrintLocConf);

    return null;
}
项目:openmaxims-linux    文件:ResultsPrintingConfigImpl.java   
/**
 * savePrintLocationConfigCollection
 */
public void savePrintLocationConfigCollection(PrintLocationConfigVoCollection voCollPrintLocConfig) throws StaleObjectException
{
    if (voCollPrintLocConfig == null)
        throw new CodingRuntimeException("voCollPrintLocConfig is null in method savePrintLocationConfigCollection");

    for(PrintLocationConfigVo voPrintLocConf : voCollPrintLocConfig)
        getDomainFactory().save(PrintLocationConfigVoAssembler.extractPrintLocationConfig(getDomainFactory(), voPrintLocConf)); 
}
项目:openmaxims-linux    文件:ResultsPrintingConfigImpl.java   
/**
 * 
 */
public PrintLocationConfigVo getPrintLocationConfigByLocation(LocationRefVo location)
{
    if (location == null || location.getID_Location() == null)
        throw new CodingRuntimeException("location is null or id not provided in method getPrintLocationConfigByLocation");

    ims.core.admin.domain.objects.PrintLocationConfig doPrintLocConf = ims.core.admin.domain.objects.PrintLocationConfig.getPrintLocationConfigFromSite(getDomainFactory(), location.getBoId());
    if(doPrintLocConf != null)
        return PrintLocationConfigVoAssembler.create(doPrintLocConf);

    return null;
}
项目:AvoinApotti    文件:OcsIfInboundImpl.java   
private void processPrintLocationConfiguration(OrderSpecimen ordSpecBo) throws StaleObjectException
{
    if (ordSpecBo == null)
        return;

    //get the ordering location
    Location orderingLoc = getOrderingLocation(ordSpecBo);

    //WDEV-13355
    if(orderingLoc == null)
    {
        if(ordSpecBo.getOrder() != null && ordSpecBo.getOrder().getPatientClinic() != null &&  ordSpecBo.getOrder().getPatientClinic().getClinicLocation() != null)
            orderingLoc = ordSpecBo.getOrder().getPatientClinic().getClinicLocation();
    }

    //get the hospital for the ordering location
    Location hosp = getHospital( orderingLoc );
    //get the configuration for the hospital
    ims.core.admin.domain.objects.PrintLocationConfig doPrintLocConf =  PrintLocationConfigVoAssembler.extractPrintLocationConfig(getDomainFactory() , getPrintLocationConfiguration(hosp)); 

    if(doPrintLocConf != null)
    {
        boolean addToCentralPrint = false;
        boolean addToLocationPrint = false;

        if(doPrintLocConf.getPrintToOrderingLocation() != null)
        {
            if(doPrintLocConf.getPrintToOrderingLocation().equals(getDomLookup(YesNo.YES)))
            {
                   if(orderingLoc != null && orderingLoc.getDesignatedPrinterForNewResults() != null)
                       addToLocationPrint = true;
                 else
                       addToCentralPrint = true;
            }
        }

        if(doPrintLocConf.getPrintCentral() != null)
        {
            if(doPrintLocConf.getPrintCentral().equals(getDomLookup(YesNo.YES)))
            {
                addToCentralPrint = true;
            }
        }

        if(addToLocationPrint)
            checkAndIfNotFoundCreateOrderingLocationBatchPrintEntry(ordSpecBo); 

        if(addToCentralPrint)
            checkAndIfNotFoundCreateCentralBatchPrintEntry(ordSpecBo);  
    }
}
项目:AvoinApotti    文件:ResultsPrintingConfigImpl.java   
/**
* listPrintLocationConfig
*/
public ims.admin.vo.PrintLocationConfigVoCollection listPrintLocationConfig()
{
    List items = getDomainFactory().find("from PrintLocationConfig");
    return PrintLocationConfigVoAssembler.createPrintLocationConfigVoCollectionFromPrintLocationConfig(items);
}
项目:openMAXIMS    文件:OcsIfInboundImpl.java   
private void processPrintLocationConfiguration(OrderSpecimen ordSpecBo) throws StaleObjectException
{
    if (ordSpecBo == null)
        return;

    //get the ordering location
    Location orderingLoc = getOrderingLocation(ordSpecBo);

    //WDEV-13355
    if(orderingLoc == null)
    {
        if(ordSpecBo.getOrder() != null && ordSpecBo.getOrder().getPatientClinic() != null &&  ordSpecBo.getOrder().getPatientClinic().getClinicLocation() != null)
            orderingLoc = ordSpecBo.getOrder().getPatientClinic().getClinicLocation();
    }

    //get the hospital for the ordering location
    Location hosp = getHospital( orderingLoc );
    //get the configuration for the hospital
    ims.core.admin.domain.objects.PrintLocationConfig doPrintLocConf =  PrintLocationConfigVoAssembler.extractPrintLocationConfig(getDomainFactory() , getPrintLocationConfiguration(hosp)); 

    if(doPrintLocConf != null)
    {
        boolean addToCentralPrint = false;
        boolean addToLocationPrint = false;

        if(doPrintLocConf.getPrintToOrderingLocation() != null)
        {
            if(doPrintLocConf.getPrintToOrderingLocation().equals(getDomLookup(YesNo.YES)))
            {
                   if(orderingLoc != null && orderingLoc.getDesignatedPrinterForNewResults() != null)
                       addToLocationPrint = true;
                 else
                       addToCentralPrint = true;
            }
        }

        if(doPrintLocConf.getPrintCentral() != null)
        {
            if(doPrintLocConf.getPrintCentral().equals(getDomLookup(YesNo.YES)))
            {
                addToCentralPrint = true;
            }
        }

        if(addToLocationPrint)
            checkAndIfNotFoundCreateOrderingLocationBatchPrintEntry(ordSpecBo); 

        if(addToCentralPrint)
            checkAndIfNotFoundCreateCentralBatchPrintEntry(ordSpecBo);  
    }
}
项目:openMAXIMS    文件:ResultsPrintingConfigImpl.java   
/**
* listPrintLocationConfig
*/
public ims.admin.vo.PrintLocationConfigVoCollection listPrintLocationConfig()
{
    List items = getDomainFactory().find("from PrintLocationConfig");
    return PrintLocationConfigVoAssembler.createPrintLocationConfigVoCollectionFromPrintLocationConfig(items);
}
项目:openMAXIMS    文件:OcsIfInboundImpl.java   
private void processPrintLocationConfiguration(OrderSpecimen ordSpecBo) throws StaleObjectException
{
    if (ordSpecBo == null)
        return;

    //get the ordering location
    Location orderingLoc = getOrderingLocation(ordSpecBo);

    //WDEV-13355
    if(orderingLoc == null)
    {
        if(ordSpecBo.getOrder() != null && ordSpecBo.getOrder().getPatientClinic() != null &&  ordSpecBo.getOrder().getPatientClinic().getClinicLocation() != null)
            orderingLoc = ordSpecBo.getOrder().getPatientClinic().getClinicLocation();
    }

    //get the hospital for the ordering location
    Location hosp = getHospital( orderingLoc );
    //get the configuration for the hospital
    ims.core.admin.domain.objects.PrintLocationConfig doPrintLocConf =  PrintLocationConfigVoAssembler.extractPrintLocationConfig(getDomainFactory() , getPrintLocationConfiguration(hosp)); 

    if(doPrintLocConf != null)
    {
        boolean addToCentralPrint = false;
        boolean addToLocationPrint = false;

        if(doPrintLocConf.getPrintToOrderingLocation() != null)
        {
            if(doPrintLocConf.getPrintToOrderingLocation().equals(getDomLookup(YesNo.YES)))
            {
                   if(orderingLoc != null && orderingLoc.getDesignatedPrinterForNewResults() != null)
                       addToLocationPrint = true;
                 else
                       addToCentralPrint = true;
            }
        }

        if(doPrintLocConf.getPrintCentral() != null)
        {
            if(doPrintLocConf.getPrintCentral().equals(getDomLookup(YesNo.YES)))
            {
                addToCentralPrint = true;
            }
        }

        if(addToLocationPrint)
            checkAndIfNotFoundCreateOrderingLocationBatchPrintEntry(ordSpecBo); 

        if(addToCentralPrint)
            checkAndIfNotFoundCreateCentralBatchPrintEntry(ordSpecBo);  
    }
}
项目:openMAXIMS    文件:ResultsPrintingConfigImpl.java   
/**
* listPrintLocationConfig
*/
public ims.admin.vo.PrintLocationConfigVoCollection listPrintLocationConfig()
{
    List items = getDomainFactory().find("from PrintLocationConfig");
    return PrintLocationConfigVoAssembler.createPrintLocationConfigVoCollectionFromPrintLocationConfig(items);
}
项目:openmaxims-linux    文件:OcsIfInboundImpl.java   
private void processPrintLocationConfiguration(OrderSpecimen ordSpecBo) throws StaleObjectException
{
    if (ordSpecBo == null)
        return;

    //get the ordering location
    Location orderingLoc = getOrderingLocation(ordSpecBo);

    //WDEV-13355
    if(orderingLoc == null)
    {
        if(ordSpecBo.getOrder() != null && ordSpecBo.getOrder().getPatientClinic() != null &&  ordSpecBo.getOrder().getPatientClinic().getClinicLocation() != null)
            orderingLoc = ordSpecBo.getOrder().getPatientClinic().getClinicLocation();
    }

    //get the hospital for the ordering location
    Location hosp = getHospital( orderingLoc );
    //get the configuration for the hospital
    ims.core.admin.domain.objects.PrintLocationConfig doPrintLocConf =  PrintLocationConfigVoAssembler.extractPrintLocationConfig(getDomainFactory() , getPrintLocationConfiguration(hosp)); 

    if(doPrintLocConf != null)
    {
        boolean addToCentralPrint = false;
        boolean addToLocationPrint = false;

        if(doPrintLocConf.getPrintToOrderingLocation() != null)
        {
            if(doPrintLocConf.getPrintToOrderingLocation().equals(getDomLookup(YesNo.YES)))
            {
                   if(orderingLoc != null && orderingLoc.getDesignatedPrinterForNewResults() != null)
                       addToLocationPrint = true;
                 else
                       addToCentralPrint = true;
            }
        }

        if(doPrintLocConf.getPrintCentral() != null)
        {
            if(doPrintLocConf.getPrintCentral().equals(getDomLookup(YesNo.YES)))
            {
                addToCentralPrint = true;
            }
        }

        if(addToLocationPrint)
            checkAndIfNotFoundCreateOrderingLocationBatchPrintEntry(ordSpecBo); 

        if(addToCentralPrint)
            checkAndIfNotFoundCreateCentralBatchPrintEntry(ordSpecBo);  
    }
}
项目:openmaxims-linux    文件:ResultsPrintingConfigImpl.java   
/**
* listPrintLocationConfig
*/
public ims.admin.vo.PrintLocationConfigVoCollection listPrintLocationConfig()
{
    List items = getDomainFactory().find("from PrintLocationConfig");
    return PrintLocationConfigVoAssembler.createPrintLocationConfigVoCollectionFromPrintLocationConfig(items);
}