Java 类ims.ocrr.vo.lookups.OutPatientDuration 实例源码

项目:AvoinApotti    文件:PhlebotomyHelper.java   
public Date calculateDateToCollect(Integer num, OutPatientDuration duration) 
{
    //can't perform calculation
    if(num == null || duration == null)
        return null;

    Date result = null;
    Date today = new Date();
    if(duration.equals(OutPatientDuration.DAYS))
    {
        result = today.addDay(num.intValue());
    }
    else if(duration.equals(OutPatientDuration.WEEKS))
    {
        result = today.addDay(num.intValue() * 7);
    }
    else if(duration.equals(OutPatientDuration.MONTHS))
    {
        result = today.addMonth(num.intValue());
    }
    else if(duration.equals(OutPatientDuration.YEARS))
    {
        result = today.addYear(num.intValue());
    }

    return result;
}
项目:openMAXIMS    文件:PhlebotomyHelper.java   
public Date calculateDateToCollect(Integer num, OutPatientDuration duration) 
{
    //can't perform calculation
    if(num == null || duration == null)
        return null;

    Date result = null;
    Date today = new Date();
    if(duration.equals(OutPatientDuration.DAYS))
    {
        result = today.addDay(num.intValue());
    }
    else if(duration.equals(OutPatientDuration.WEEKS))
    {
        result = today.addDay(num.intValue() * 7);
    }
    else if(duration.equals(OutPatientDuration.MONTHS))
    {
        result = today.addMonth(num.intValue());
    }
    else if(duration.equals(OutPatientDuration.YEARS))
    {
        result = today.addYear(num.intValue());
    }

    return result;
}
项目:openMAXIMS    文件:PhlebotomyHelper.java   
public Date calculateDateToCollect(Integer num, OutPatientDuration duration) 
{
    //can't perform calculation
    if(num == null || duration == null)
        return null;

    Date result = null;
    Date today = new Date();
    if(duration.equals(OutPatientDuration.DAYS))
    {
        result = today.addDay(num.intValue());
    }
    else if(duration.equals(OutPatientDuration.WEEKS))
    {
        result = today.addDay(num.intValue() * 7);
    }
    else if(duration.equals(OutPatientDuration.MONTHS))
    {
        result = today.addMonth(num.intValue());
    }
    else if(duration.equals(OutPatientDuration.YEARS))
    {
        result = today.addYear(num.intValue());
    }

    return result;
}
项目:openmaxims-linux    文件:PhlebotomyHelper.java   
public Date calculateDateToCollect(Integer num, OutPatientDuration duration) 
{
    //can't perform calculation
    if(num == null || duration == null)
        return null;

    Date result = null;
    Date today = new Date();
    if(duration.equals(OutPatientDuration.DAYS))
    {
        result = today.addDay(num.intValue());
    }
    else if(duration.equals(OutPatientDuration.WEEKS))
    {
        result = today.addDay(num.intValue() * 7);
    }
    else if(duration.equals(OutPatientDuration.MONTHS))
    {
        result = today.addMonth(num.intValue());
    }
    else if(duration.equals(OutPatientDuration.YEARS))
    {
        result = today.addYear(num.intValue());
    }

    return result;
}
项目:AvoinApotti    文件:Logic.java   
protected final OutPatientDuration getDuration()
{
    return duration;
}
项目:AvoinApotti    文件:Logic.java   
protected final void setDuration(OutPatientDuration duration)
{
    this.duration = duration;
}
项目:openMAXIMS    文件:Logic.java   
protected final OutPatientDuration getDuration()
{
    return duration;
}
项目:openMAXIMS    文件:Logic.java   
protected final void setDuration(OutPatientDuration duration)
{
    this.duration = duration;
}
项目:openMAXIMS    文件:Logic.java   
protected final OutPatientDuration getDuration()
{
    return duration;
}
项目:openMAXIMS    文件:Logic.java   
protected final void setDuration(OutPatientDuration duration)
{
    this.duration = duration;
}
项目:openmaxims-linux    文件:Logic.java   
protected final OutPatientDuration getDuration()
{
    return duration;
}
项目:openmaxims-linux    文件:Logic.java   
protected final void setDuration(OutPatientDuration duration)
{
    this.duration = duration;
}