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

项目: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 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 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 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 void addConfiguredTimePeriods()
{
    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);
            form.getLocalContext().setDailyTimePeriods(lookupCollection);
            form.getLocalContext().setSavedDailyPatternConfig(configVo);

            if (lookupCollection != null)
            {
                int nStartHour = configVo.getStartTime().getHour();
                for (int j = 24 - nStartHour; j < lookupCollection.size(); j++)
                    form.cmbTime().newRow(lookupCollection.get(j), lookupCollection.get(j).getText());

                if (nStartHour >= 0)
                {
                    for (int j = 0; j < 24 - nStartHour; j++)
                        form.cmbTime().newRow(lookupCollection.get(j), lookupCollection.get(j).getText());
                }
            }
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
private void populateDataFromScreen() 
{
    ims.clinicaladmin.vo.DailyPatternConfigVo voPattern = form.getLocalContext().getSelectedDailyPatternConfigVo();
    if (voPattern == null)
        voPattern = new ims.clinicaladmin.vo.DailyPatternConfigVo();

    voPattern.setDailyPatternType(form.cmbType().getValue());
    voPattern.setUseSignatoryPeriods(new Boolean(form.chkUsePeriods().getValue()));
    voPattern.setStartTime(form.timStart().getValue());
    voPattern.setIsActive(Boolean.TRUE);

    SignatoryPeriodConfigVoCollection voPeriodColl = new SignatoryPeriodConfigVoCollection();

    if (form.grdShifts().getRows().size() > 0)
    {
        for (int i = 0 ; i < form.grdShifts().getRows().size() ; i++)
        {
            SignatoryPeriodConfigVo voPeriod = new SignatoryPeriodConfigVo();
            voPeriod.setTimePeriods(new DailyTimePeriodsCollection());
            voPeriod.setName(form.grdShifts().getRows().get(i).getDescription());
            fillSignatoryPeriods(voPeriod, form.grdShifts().getRows().get(i));
            voPeriodColl.add(voPeriod);
        }
    }
    voPattern.setSignatoryPeriod(voPeriodColl);
    form.getLocalContext().setSelectedDailyPatternConfigVo(voPattern);
}
项目: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;
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void loadCustomTimePeriodsIntoLocalContext()
{
    if (form.timStart().getValue() != null)
    {
        DailyTimePeriodsCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getDailyTimePeriods(domain.getLookupService());
        DailyPatternAndShiftsHelper helper = new DailyPatternAndShiftsHelper();
        form.getLocalContext().setCustomTimePeriodsCollection(helper.configureCustomTimePeriods(form.timStart().getValue(), lookupCollection));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addConfiguredTimePeriods()
{
    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);
            form.getLocalContext().setDailyTimePeriods(lookupCollection);
            form.getLocalContext().setSavedDailyPatternConfig(configVo);

            if (lookupCollection != null)
            {
                int nStartHour = configVo.getStartTime().getHour();
                for (int j = 24 - nStartHour; j < lookupCollection.size(); j++)
                    form.cmbTime().newRow(lookupCollection.get(j), lookupCollection.get(j).getText());

                if (nStartHour >= 0)
                {
                    for (int j = 0; j < 24 - nStartHour; j++)
                        form.cmbTime().newRow(lookupCollection.get(j), lookupCollection.get(j).getText());
                }
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateDataFromScreen() 
{
    ims.clinicaladmin.vo.DailyPatternConfigVo voPattern = form.getLocalContext().getSelectedDailyPatternConfigVo();
    if (voPattern == null)
        voPattern = new ims.clinicaladmin.vo.DailyPatternConfigVo();

    voPattern.setDailyPatternType(form.cmbType().getValue());
    voPattern.setUseSignatoryPeriods(new Boolean(form.chkUsePeriods().getValue()));
    voPattern.setStartTime(form.timStart().getValue());
    voPattern.setIsActive(Boolean.TRUE);

    SignatoryPeriodConfigVoCollection voPeriodColl = new SignatoryPeriodConfigVoCollection();

    if (form.grdShifts().getRows().size() > 0)
    {
        for (int i = 0 ; i < form.grdShifts().getRows().size() ; i++)
        {
            SignatoryPeriodConfigVo voPeriod = new SignatoryPeriodConfigVo();
            voPeriod.setTimePeriods(new DailyTimePeriodsCollection());
            voPeriod.setName(form.grdShifts().getRows().get(i).getDescription());
            fillSignatoryPeriods(voPeriod, form.grdShifts().getRows().get(i));
            voPeriodColl.add(voPeriod);
        }
    }
    voPattern.setSignatoryPeriod(voPeriodColl);
    form.getLocalContext().setSelectedDailyPatternConfigVo(voPattern);
}
项目: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 void loadCustomTimePeriodsIntoLocalContext()
{
    if (form.timStart().getValue() != null)
    {
        DailyTimePeriodsCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getDailyTimePeriods(domain.getLookupService());
        DailyPatternAndShiftsHelper helper = new DailyPatternAndShiftsHelper();
        form.getLocalContext().setCustomTimePeriodsCollection(helper.configureCustomTimePeriods(form.timStart().getValue(), lookupCollection));
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addConfiguredTimePeriods()
{
    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);
            form.getLocalContext().setDailyTimePeriods(lookupCollection);
            form.getLocalContext().setSavedDailyPatternConfig(configVo);

            if (lookupCollection != null)
            {
                int nStartHour = configVo.getStartTime().getHour();
                for (int j = 24 - nStartHour; j < lookupCollection.size(); j++)
                    form.cmbTime().newRow(lookupCollection.get(j), lookupCollection.get(j).getText());

                if (nStartHour >= 0)
                {
                    for (int j = 0; j < 24 - nStartHour; j++)
                        form.cmbTime().newRow(lookupCollection.get(j), lookupCollection.get(j).getText());
                }
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateDataFromScreen() 
{
    ims.clinicaladmin.vo.DailyPatternConfigVo voPattern = form.getLocalContext().getSelectedDailyPatternConfigVo();
    if (voPattern == null)
        voPattern = new ims.clinicaladmin.vo.DailyPatternConfigVo();

    voPattern.setDailyPatternType(form.cmbType().getValue());
    voPattern.setUseSignatoryPeriods(new Boolean(form.chkUsePeriods().getValue()));
    voPattern.setStartTime(form.timStart().getValue());
    voPattern.setIsActive(Boolean.TRUE);

    SignatoryPeriodConfigVoCollection voPeriodColl = new SignatoryPeriodConfigVoCollection();

    if (form.grdShifts().getRows().size() > 0)
    {
        for (int i = 0 ; i < form.grdShifts().getRows().size() ; i++)
        {
            SignatoryPeriodConfigVo voPeriod = new SignatoryPeriodConfigVo();
            voPeriod.setTimePeriods(new DailyTimePeriodsCollection());
            voPeriod.setName(form.grdShifts().getRows().get(i).getDescription());
            fillSignatoryPeriods(voPeriod, form.grdShifts().getRows().get(i));
            voPeriodColl.add(voPeriod);
        }
    }
    voPattern.setSignatoryPeriod(voPeriodColl);
    form.getLocalContext().setSelectedDailyPatternConfigVo(voPattern);
}
项目: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 void loadCustomTimePeriodsIntoLocalContext()
{
    if (form.timStart().getValue() != null)
    {
        DailyTimePeriodsCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getDailyTimePeriods(domain.getLookupService());
        DailyPatternAndShiftsHelper helper = new DailyPatternAndShiftsHelper();
        form.getLocalContext().setCustomTimePeriodsCollection(helper.configureCustomTimePeriods(form.timStart().getValue(), lookupCollection));
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void addConfiguredTimePeriods()
{
    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);
            form.getLocalContext().setDailyTimePeriods(lookupCollection);
            form.getLocalContext().setSavedDailyPatternConfig(configVo);

            if (lookupCollection != null)
            {
                int nStartHour = configVo.getStartTime().getHour();
                for (int j = 24 - nStartHour; j < lookupCollection.size(); j++)
                    form.cmbTime().newRow(lookupCollection.get(j), lookupCollection.get(j).getText());

                if (nStartHour >= 0)
                {
                    for (int j = 0; j < 24 - nStartHour; j++)
                        form.cmbTime().newRow(lookupCollection.get(j), lookupCollection.get(j).getText());
                }
            }
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populateDataFromScreen() 
{
    ims.clinicaladmin.vo.DailyPatternConfigVo voPattern = form.getLocalContext().getSelectedDailyPatternConfigVo();
    if (voPattern == null)
        voPattern = new ims.clinicaladmin.vo.DailyPatternConfigVo();

    voPattern.setDailyPatternType(form.cmbType().getValue());
    voPattern.setUseSignatoryPeriods(new Boolean(form.chkUsePeriods().getValue()));
    voPattern.setStartTime(form.timStart().getValue());
    voPattern.setIsActive(Boolean.TRUE);

    SignatoryPeriodConfigVoCollection voPeriodColl = new SignatoryPeriodConfigVoCollection();

    if (form.grdShifts().getRows().size() > 0)
    {
        for (int i = 0 ; i < form.grdShifts().getRows().size() ; i++)
        {
            SignatoryPeriodConfigVo voPeriod = new SignatoryPeriodConfigVo();
            voPeriod.setTimePeriods(new DailyTimePeriodsCollection());
            voPeriod.setName(form.grdShifts().getRows().get(i).getDescription());
            fillSignatoryPeriods(voPeriod, form.grdShifts().getRows().get(i));
            voPeriodColl.add(voPeriod);
        }
    }
    voPattern.setSignatoryPeriod(voPeriodColl);
    form.getLocalContext().setSelectedDailyPatternConfigVo(voPattern);
}
项目: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;
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void loadCustomTimePeriodsIntoLocalContext()
{
    if (form.timStart().getValue() != null)
    {
        DailyTimePeriodsCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getDailyTimePeriods(domain.getLookupService());
        DailyPatternAndShiftsHelper helper = new DailyPatternAndShiftsHelper();
        form.getLocalContext().setCustomTimePeriodsCollection(helper.configureCustomTimePeriods(form.timStart().getValue(), lookupCollection));
    }
}