Java 类ims.core.vo.lookups.ReasonForBedClosure 实例源码

项目:AvoinApotti    文件:BedInfoDialogImpl.java   
public BedSpaceStateLiteVo saveCloseBed(BedSpaceStateLiteVo bedSpaceState, String user, ReasonForBedClosure reason, DateTime estReOpen) throws StaleObjectException
{
    if(bedSpaceState == null)
        throw new CodingRuntimeException("bedSpaceState is null in method saveCloseBed");

    BedSpaceState doBedSpace = BedSpaceStateLiteVoAssembler.extractBedSpaceState(getDomainFactory(), bedSpaceState);
    doBedSpace.getCurrentBedStatus().setEstReopeningDateTime(estReOpen != null ? estReOpen.getJavaDate() : null);
    doBedSpace.getCurrentBedStatus().setReasonForClosure(getDomLookup(reason));
    doBedSpace.getCurrentBedStatus().getSystemInformation().setCreationUser(user);

    getDomainFactory().save(doBedSpace);
    return BedSpaceStateLiteVoAssembler.create(doBedSpace);
}
项目:openMAXIMS    文件:BedInfoDialogImpl.java   
public BedSpaceStateLiteVo saveCloseBed(BedSpaceStateLiteVo bedSpaceState, String user, ReasonForBedClosure reason, DateTime estReOpen) throws StaleObjectException
{
    if(bedSpaceState == null)
        throw new CodingRuntimeException("bedSpaceState is null in method saveCloseBed");

    BedSpaceState doBedSpace = BedSpaceStateLiteVoAssembler.extractBedSpaceState(getDomainFactory(), bedSpaceState);
    doBedSpace.getCurrentBedStatus().setEstReopeningDateTime(estReOpen != null ? estReOpen.getJavaDate() : null);
    doBedSpace.getCurrentBedStatus().setReasonForClosure(getDomLookup(reason));
    doBedSpace.getCurrentBedStatus().getSystemInformation().setCreationUser(user);

    getDomainFactory().save(doBedSpace);
    return BedSpaceStateLiteVoAssembler.create(doBedSpace);
}
项目:openMAXIMS    文件:BedInfoDialogImpl.java   
public BedSpaceStateLiteVo saveCloseBed(BedSpaceStateLiteVo bedSpaceState, String user, ReasonForBedClosure reason, DateTime estReOpen) throws StaleObjectException
{
    if(bedSpaceState == null)
        throw new CodingRuntimeException("bedSpaceState is null in method saveCloseBed");

    BedSpaceState doBedSpace = BedSpaceStateLiteVoAssembler.extractBedSpaceState(getDomainFactory(), bedSpaceState);
    doBedSpace.getCurrentBedStatus().setEstReopeningDateTime(estReOpen != null ? estReOpen.getJavaDate() : null);
    doBedSpace.getCurrentBedStatus().setReasonForClosure(getDomLookup(reason));
    doBedSpace.getCurrentBedStatus().getSystemInformation().setCreationUser(user);

    getDomainFactory().save(doBedSpace);
    return BedSpaceStateLiteVoAssembler.create(doBedSpace);
}
项目:openmaxims-linux    文件:BedInfoDialogImpl.java   
public BedSpaceStateLiteVo saveCloseBed(BedSpaceStateLiteVo bedSpaceState, String user, ReasonForBedClosure reason, DateTime estReOpen) throws StaleObjectException
{
    if(bedSpaceState == null)
        throw new CodingRuntimeException("bedSpaceState is null in method saveCloseBed");

    BedSpaceState doBedSpace = BedSpaceStateLiteVoAssembler.extractBedSpaceState(getDomainFactory(), bedSpaceState);
    doBedSpace.getCurrentBedStatus().setEstReopeningDateTime(estReOpen != null ? estReOpen.getJavaDate() : null);
    doBedSpace.getCurrentBedStatus().setReasonForClosure(getDomLookup(reason));
    doBedSpace.getCurrentBedStatus().getSystemInformation().setCreationUser(user);

    getDomainFactory().save(doBedSpace);
    return BedSpaceStateLiteVoAssembler.create(doBedSpace);
}