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

项目:AvoinApotti    文件:Logic.java   
private DailyTimePeriods getDailyTimePeriodEndTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    // Correct time found in shift, return the EndTime of
                    // shift
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                        return voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() - 1);
                }
            }
        }
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private DailyTimePeriods getDailyTimePeriodStartTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                    {
                        // Correct time found in shift, return the EndTime
                        // of shift
                        return voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(0);
                    }
                }
            }
        }
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private SignatoryShiftDetailsVo findIfShiftDetailsAlreadyRecorded(DailyTimePeriods value, SignatoryShiftDetailsVoCollection signatoryShifts)
{
    // See if this time period is in a configured shift which has already
    // been instansiated......
    DailyTimePeriods timStartTimeTofind = getDailyTimePeriodStartTime(value, form.getLocalContext().getSavedDailyPatternConfig());

    if (signatoryShifts != null && signatoryShifts.size() > 0)
    {
        for (int i = 0; i < signatoryShifts.size(); i++)
        {
            if (signatoryShifts.get(i).getStartTimeIsNotNull() && signatoryShifts.get(i).getStartTime().equals(timStartTimeTofind))
                return signatoryShifts.get(i);
        }
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private String getConfiguredTime(DailyTimePeriods timePeriod) 
{
    DailyPatternConfigVo configVo = form.getGlobalContext().Core.getCurrentDailyPatternConfigVo();

    if (configVo != null)
    {
        DailyTimePeriodsCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getDailyTimePeriods(domain.getLookupService());
        DailyPatternAndShiftsHelper helper = new DailyPatternAndShiftsHelper();
        if (configVo.getStartTime() != null)
        {
            lookupCollection = helper.configureCustomTimePeriods(configVo.getStartTime(), lookupCollection);

            if (lookupCollection != null)
            {
                for (int j = 0 ; j < lookupCollection.size() ; j ++)
                {
                    if (timePeriod.equals(lookupCollection.get(j)) )
                        return lookupCollection.get(j).getText();
                }
            }
        }
    }
    return "";
}
项目:AvoinApotti    文件:Logic.java   
private String getConfiguredTime(DailyTimePeriods timePeriod) 
{
    DailyPatternConfigVo configVo = form.getGlobalContext().Core.getCurrentDailyPatternConfigVo();

    if (configVo != null)
    {
        DailyTimePeriodsCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getDailyTimePeriods(domain.getLookupService());
        DailyPatternAndShiftsHelper helper = new DailyPatternAndShiftsHelper();
        if (configVo.getStartTime() != null)
        {
            lookupCollection = helper.configureCustomTimePeriods(configVo.getStartTime(), lookupCollection);

            if (lookupCollection != null)
            {
                for (int j = 0 ; j < lookupCollection.size() ; j ++)
                {
                    if (timePeriod.equals(lookupCollection.get(j)) )
                        return lookupCollection.get(j).getText();
                }
            }
        }
    }
    return "";
}
项目:openMAXIMS    文件:Logic.java   
private DailyTimePeriods getDailyTimePeriodEndTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    // Correct time found in shift, return the EndTime of
                    // shift
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                        return voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() - 1);
                }
            }
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private DailyTimePeriods getDailyTimePeriodStartTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                    {
                        // Correct time found in shift, return the EndTime
                        // of shift
                        return voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(0);
                    }
                }
            }
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private SignatoryShiftDetailsVo findIfShiftDetailsAlreadyRecorded(DailyTimePeriods value, SignatoryShiftDetailsVoCollection signatoryShifts)
{
    // See if this time period is in a configured shift which has already
    // been instansiated......
    DailyTimePeriods timStartTimeTofind = getDailyTimePeriodStartTime(value, form.getLocalContext().getSavedDailyPatternConfig());

    if (signatoryShifts != null && signatoryShifts.size() > 0)
    {
        for (int i = 0; i < signatoryShifts.size(); i++)
        {
            if (signatoryShifts.get(i).getStartTimeIsNotNull() && signatoryShifts.get(i).getStartTime().equals(timStartTimeTofind))
                return signatoryShifts.get(i);
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private String getConfiguredTime(DailyTimePeriods timePeriod) 
{
    DailyPatternConfigVo configVo = form.getGlobalContext().Core.getCurrentDailyPatternConfigVo();

    if (configVo != null)
    {
        DailyTimePeriodsCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getDailyTimePeriods(domain.getLookupService());
        DailyPatternAndShiftsHelper helper = new DailyPatternAndShiftsHelper();
        if (configVo.getStartTime() != null)
        {
            lookupCollection = helper.configureCustomTimePeriods(configVo.getStartTime(), lookupCollection);

            if (lookupCollection != null)
            {
                for (int j = 0 ; j < lookupCollection.size() ; j ++)
                {
                    if (timePeriod.equals(lookupCollection.get(j)) )
                        return lookupCollection.get(j).getText();
                }
            }
        }
    }
    return "";
}
项目:openMAXIMS    文件:Logic.java   
private String getConfiguredTime(DailyTimePeriods timePeriod) 
{
    DailyPatternConfigVo configVo = form.getGlobalContext().Core.getCurrentDailyPatternConfigVo();

    if (configVo != null)
    {
        DailyTimePeriodsCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getDailyTimePeriods(domain.getLookupService());
        DailyPatternAndShiftsHelper helper = new DailyPatternAndShiftsHelper();
        if (configVo.getStartTime() != null)
        {
            lookupCollection = helper.configureCustomTimePeriods(configVo.getStartTime(), lookupCollection);

            if (lookupCollection != null)
            {
                for (int j = 0 ; j < lookupCollection.size() ; j ++)
                {
                    if (timePeriod.equals(lookupCollection.get(j)) )
                        return lookupCollection.get(j).getText();
                }
            }
        }
    }
    return "";
}
项目:openMAXIMS    文件:Logic.java   
private DailyTimePeriods getDailyTimePeriodEndTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    // Correct time found in shift, return the EndTime of
                    // shift
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                        return voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() - 1);
                }
            }
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private DailyTimePeriods getDailyTimePeriodStartTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                    {
                        // Correct time found in shift, return the EndTime
                        // of shift
                        return voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(0);
                    }
                }
            }
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private SignatoryShiftDetailsVo findIfShiftDetailsAlreadyRecorded(DailyTimePeriods value, SignatoryShiftDetailsVoCollection signatoryShifts)
{
    // See if this time period is in a configured shift which has already
    // been instansiated......
    DailyTimePeriods timStartTimeTofind = getDailyTimePeriodStartTime(value, form.getLocalContext().getSavedDailyPatternConfig());

    if (signatoryShifts != null && signatoryShifts.size() > 0)
    {
        for (int i = 0; i < signatoryShifts.size(); i++)
        {
            if (signatoryShifts.get(i).getStartTimeIsNotNull() && signatoryShifts.get(i).getStartTime().equals(timStartTimeTofind))
                return signatoryShifts.get(i);
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private String getConfiguredTime(DailyTimePeriods timePeriod) 
{
    DailyPatternConfigVo configVo = form.getGlobalContext().Core.getCurrentDailyPatternConfigVo();

    if (configVo != null)
    {
        DailyTimePeriodsCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getDailyTimePeriods(domain.getLookupService());
        DailyPatternAndShiftsHelper helper = new DailyPatternAndShiftsHelper();
        if (configVo.getStartTime() != null)
        {
            lookupCollection = helper.configureCustomTimePeriods(configVo.getStartTime(), lookupCollection);

            if (lookupCollection != null)
            {
                for (int j = 0 ; j < lookupCollection.size() ; j ++)
                {
                    if (timePeriod.equals(lookupCollection.get(j)) )
                        return lookupCollection.get(j).getText();
                }
            }
        }
    }
    return "";
}
项目:openMAXIMS    文件:Logic.java   
private String getConfiguredTime(DailyTimePeriods timePeriod) 
{
    DailyPatternConfigVo configVo = form.getGlobalContext().Core.getCurrentDailyPatternConfigVo();

    if (configVo != null)
    {
        DailyTimePeriodsCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getDailyTimePeriods(domain.getLookupService());
        DailyPatternAndShiftsHelper helper = new DailyPatternAndShiftsHelper();
        if (configVo.getStartTime() != null)
        {
            lookupCollection = helper.configureCustomTimePeriods(configVo.getStartTime(), lookupCollection);

            if (lookupCollection != null)
            {
                for (int j = 0 ; j < lookupCollection.size() ; j ++)
                {
                    if (timePeriod.equals(lookupCollection.get(j)) )
                        return lookupCollection.get(j).getText();
                }
            }
        }
    }
    return "";
}
项目:openmaxims-linux    文件:Logic.java   
private DailyTimePeriods getDailyTimePeriodEndTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    // Correct time found in shift, return the EndTime of
                    // shift
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                        return voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() - 1);
                }
            }
        }
    }
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private DailyTimePeriods getDailyTimePeriodStartTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                    {
                        // Correct time found in shift, return the EndTime
                        // of shift
                        return voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(0);
                    }
                }
            }
        }
    }
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private SignatoryShiftDetailsVo findIfShiftDetailsAlreadyRecorded(DailyTimePeriods value, SignatoryShiftDetailsVoCollection signatoryShifts)
{
    // See if this time period is in a configured shift which has already
    // been instansiated......
    DailyTimePeriods timStartTimeTofind = getDailyTimePeriodStartTime(value, form.getLocalContext().getSavedDailyPatternConfig());

    if (signatoryShifts != null && signatoryShifts.size() > 0)
    {
        for (int i = 0; i < signatoryShifts.size(); i++)
        {
            if (signatoryShifts.get(i).getStartTimeIsNotNull() && signatoryShifts.get(i).getStartTime().equals(timStartTimeTofind))
                return signatoryShifts.get(i);
        }
    }
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private String getConfiguredTime(DailyTimePeriods timePeriod) 
{
    DailyPatternConfigVo configVo = form.getGlobalContext().Core.getCurrentDailyPatternConfigVo();

    if (configVo != null)
    {
        DailyTimePeriodsCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getDailyTimePeriods(domain.getLookupService());
        DailyPatternAndShiftsHelper helper = new DailyPatternAndShiftsHelper();
        if (configVo.getStartTime() != null)
        {
            lookupCollection = helper.configureCustomTimePeriods(configVo.getStartTime(), lookupCollection);

            if (lookupCollection != null)
            {
                for (int j = 0 ; j < lookupCollection.size() ; j ++)
                {
                    if (timePeriod.equals(lookupCollection.get(j)) )
                        return lookupCollection.get(j).getText();
                }
            }
        }
    }
    return "";
}
项目:openmaxims-linux    文件:Logic.java   
private String getConfiguredTime(DailyTimePeriods timePeriod) 
{
    DailyPatternConfigVo configVo = form.getGlobalContext().Core.getCurrentDailyPatternConfigVo();

    if (configVo != null)
    {
        DailyTimePeriodsCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getDailyTimePeriods(domain.getLookupService());
        DailyPatternAndShiftsHelper helper = new DailyPatternAndShiftsHelper();
        if (configVo.getStartTime() != null)
        {
            lookupCollection = helper.configureCustomTimePeriods(configVo.getStartTime(), lookupCollection);

            if (lookupCollection != null)
            {
                for (int j = 0 ; j < lookupCollection.size() ; j ++)
                {
                    if (timePeriod.equals(lookupCollection.get(j)) )
                        return lookupCollection.get(j).getText();
                }
            }
        }
    }
    return "";
}
项目:AvoinApotti    文件:Logic.java   
private Time getShiftEndTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    // Correct time found in shift, return the EndTime of
                    // shift
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                    {
                        if (form.getLocalContext().getDailyTimePeriods().size() > 0)
                        {
                            for (int k = 0; k < form.getLocalContext().getDailyTimePeriods().size(); k++)
                            {
                                if (form.getLocalContext().getDailyTimePeriods().get(k).equals(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() - 1)))
                                    return new Time(form.getLocalContext().getDailyTimePeriods().get(k).toString().substring(0, 2) + ":00:00");
                            }
                        }
                    }
                }
            }
        }
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private Time getShiftStartTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                    {
                        if (form.getLocalContext().getDailyTimePeriods().size() > 0)
                        {
                            for (int k = 0; k < form.getLocalContext().getDailyTimePeriods().size(); k++)
                            {
                                if (form.getLocalContext().getDailyTimePeriods().get(k).equals(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(0)))
                                    return new Time(form.getLocalContext().getDailyTimePeriods().get(k).toString().substring(0, 2) + ":00:00");
                            }
                        }
                    }
                }
            }
        }
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void fillSignatoryPeriods(SignatoryPeriodConfigVo voPeriod, grdShiftsRow row) 
{
    DailyTimePeriodsCollection lookupCollection = form.getLocalContext().getCustomTimePeriodsCollection();

    boolean bFinished = false;
    for (int i = 0 ; i < lookupCollection.size() ; i++)
    {
        if (lookupCollection.get(i).equals(row.getStartTime().getValue()))
        {
            DailyTimePeriods voLookup = (DailyTimePeriods)row.getStartTime().getValue();
            voLookup.setText(row.getStartTime().getEditedText());
            voPeriod.getTimePeriods().add(voLookup);

            for (int j = i + 1 ; j < lookupCollection.size() ; j++)
            {
                voPeriod.getTimePeriods().add(lookupCollection.get(j));
                if (lookupCollection.get(j).equals(row.getEndTime().getValue()))
                {
                    bFinished = true;
                    break;
                }
            }
            if (bFinished)
                break;
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private Time getShiftEndTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    // Correct time found in shift, return the EndTime of
                    // shift
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                    {
                        if (form.getLocalContext().getDailyTimePeriods().size() > 0)
                        {
                            for (int k = 0; k < form.getLocalContext().getDailyTimePeriods().size(); k++)
                            {
                                if (form.getLocalContext().getDailyTimePeriods().get(k).equals(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() - 1)))
                                    return new Time(form.getLocalContext().getDailyTimePeriods().get(k).toString().substring(0, 2) + ":00:00");
                            }
                        }
                    }
                }
            }
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private Time getShiftStartTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                    {
                        if (form.getLocalContext().getDailyTimePeriods().size() > 0)
                        {
                            for (int k = 0; k < form.getLocalContext().getDailyTimePeriods().size(); k++)
                            {
                                if (form.getLocalContext().getDailyTimePeriods().get(k).equals(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(0)))
                                    return new Time(form.getLocalContext().getDailyTimePeriods().get(k).toString().substring(0, 2) + ":00:00");
                            }
                        }
                    }
                }
            }
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void fillSignatoryPeriods(SignatoryPeriodConfigVo voPeriod, grdShiftsRow row) 
{
    DailyTimePeriodsCollection lookupCollection = form.getLocalContext().getCustomTimePeriodsCollection();

    boolean bFinished = false;
    for (int i = 0 ; i < lookupCollection.size() ; i++)
    {
        if (lookupCollection.get(i).equals(row.getStartTime().getValue()))
        {
            DailyTimePeriods voLookup = (DailyTimePeriods)row.getStartTime().getValue();
            voLookup.setText(row.getStartTime().getEditedText());
            voPeriod.getTimePeriods().add(voLookup);

            for (int j = i + 1 ; j < lookupCollection.size() ; j++)
            {
                voPeriod.getTimePeriods().add(lookupCollection.get(j));
                if (lookupCollection.get(j).equals(row.getEndTime().getValue()))
                {
                    bFinished = true;
                    break;
                }
            }
            if (bFinished)
                break;
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private Time getShiftEndTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    // Correct time found in shift, return the EndTime of
                    // shift
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                    {
                        if (form.getLocalContext().getDailyTimePeriods().size() > 0)
                        {
                            for (int k = 0; k < form.getLocalContext().getDailyTimePeriods().size(); k++)
                            {
                                if (form.getLocalContext().getDailyTimePeriods().get(k).equals(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() - 1)))
                                    return new Time(form.getLocalContext().getDailyTimePeriods().get(k).toString().substring(0, 2) + ":00:00");
                            }
                        }
                    }
                }
            }
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private Time getShiftStartTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                    {
                        if (form.getLocalContext().getDailyTimePeriods().size() > 0)
                        {
                            for (int k = 0; k < form.getLocalContext().getDailyTimePeriods().size(); k++)
                            {
                                if (form.getLocalContext().getDailyTimePeriods().get(k).equals(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(0)))
                                    return new Time(form.getLocalContext().getDailyTimePeriods().get(k).toString().substring(0, 2) + ":00:00");
                            }
                        }
                    }
                }
            }
        }
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void fillSignatoryPeriods(SignatoryPeriodConfigVo voPeriod, grdShiftsRow row) 
{
    DailyTimePeriodsCollection lookupCollection = form.getLocalContext().getCustomTimePeriodsCollection();

    boolean bFinished = false;
    for (int i = 0 ; i < lookupCollection.size() ; i++)
    {
        if (lookupCollection.get(i).equals(row.getStartTime().getValue()))
        {
            DailyTimePeriods voLookup = (DailyTimePeriods)row.getStartTime().getValue();
            voLookup.setText(row.getStartTime().getEditedText());
            voPeriod.getTimePeriods().add(voLookup);

            for (int j = i + 1 ; j < lookupCollection.size() ; j++)
            {
                voPeriod.getTimePeriods().add(lookupCollection.get(j));
                if (lookupCollection.get(j).equals(row.getEndTime().getValue()))
                {
                    bFinished = true;
                    break;
                }
            }
            if (bFinished)
                break;
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private Time getShiftEndTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    // Correct time found in shift, return the EndTime of
                    // shift
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                    {
                        if (form.getLocalContext().getDailyTimePeriods().size() > 0)
                        {
                            for (int k = 0; k < form.getLocalContext().getDailyTimePeriods().size(); k++)
                            {
                                if (form.getLocalContext().getDailyTimePeriods().get(k).equals(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() - 1)))
                                    return new Time(form.getLocalContext().getDailyTimePeriods().get(k).toString().substring(0, 2) + ":00:00");
                            }
                        }
                    }
                }
            }
        }
    }
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private Time getShiftStartTime(DailyTimePeriods value, DailyPatternConfigVo voConfiguredPattern)
{
    if (voConfiguredPattern.getSignatoryPeriodIsNotNull() && voConfiguredPattern.getSignatoryPeriod().size() > 0)
    {
        for (int i = 0; i < voConfiguredPattern.getSignatoryPeriod().size(); i++)
        {
            if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriodsIsNotNull() && voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size() > 0)
            {
                for (int j = 0; j < voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().size(); j++)
                {
                    if (voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(j).equals(value))
                    {
                        if (form.getLocalContext().getDailyTimePeriods().size() > 0)
                        {
                            for (int k = 0; k < form.getLocalContext().getDailyTimePeriods().size(); k++)
                            {
                                if (form.getLocalContext().getDailyTimePeriods().get(k).equals(voConfiguredPattern.getSignatoryPeriod().get(i).getTimePeriods().get(0)))
                                    return new Time(form.getLocalContext().getDailyTimePeriods().get(k).toString().substring(0, 2) + ":00:00");
                            }
                        }
                    }
                }
            }
        }
    }
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void fillSignatoryPeriods(SignatoryPeriodConfigVo voPeriod, grdShiftsRow row) 
{
    DailyTimePeriodsCollection lookupCollection = form.getLocalContext().getCustomTimePeriodsCollection();

    boolean bFinished = false;
    for (int i = 0 ; i < lookupCollection.size() ; i++)
    {
        if (lookupCollection.get(i).equals(row.getStartTime().getValue()))
        {
            DailyTimePeriods voLookup = (DailyTimePeriods)row.getStartTime().getValue();
            voLookup.setText(row.getStartTime().getEditedText());
            voPeriod.getTimePeriods().add(voLookup);

            for (int j = i + 1 ; j < lookupCollection.size() ; j++)
            {
                voPeriod.getTimePeriods().add(lookupCollection.get(j));
                if (lookupCollection.get(j).equals(row.getEndTime().getValue()))
                {
                    bFinished = true;
                    break;
                }
            }
            if (bFinished)
                break;
        }
    }
}