Example #1
0
        private void CheckWorkingDaysFeasts()
        {
            // ACPRO 119082
            // Wether the working days (opening days) and feast have been entered (consider it entered as soon as at least one day is entered)

            if (!IsAdminOrCountryManager())
            {
                return;
            }

            long[] countryIds = ClientEnvironment.CountryService.GetCountryNoWorkingFeastDaysIDList();
            if (countryIds != null && countryIds.Length > 0)
            {
                List <Country> countries = ClientEnvironment.CountryService.FindByIDList(new List <long>(countryIds));
                if (countries != null && countries.Count > 0)
                {
                    UCCountriesListNotification displayUC = new UCCountriesListNotification();
                    displayUC.DataSource = countries;
                    _notificationForm.AddResultItem(Localizer.GetLocalized("WarnNoWorkingDaysFeasts"), displayUC);
                }
            }
        }
        private void CheckWorkingDaysFeasts()
        {
            // ACPRO 119082
            // Wether the working days (opening days) and feast have been entered (consider it entered as soon as at least one day is entered)

            if(!IsAdminOrCountryManager())
            {
                return;
            }

            long[] countryIds = ClientEnvironment.CountryService.GetCountryNoWorkingFeastDaysIDList();
            if(countryIds != null && countryIds.Length > 0)
            {
                List<Country> countries = ClientEnvironment.CountryService.FindByIDList(new List<long>(countryIds));
                if(countries != null && countries.Count > 0)
                {
                    UCCountriesListNotification displayUC = new UCCountriesListNotification();
                    displayUC.DataSource = countries;
                                            _notificationForm.AddResultItem(Localizer.GetLocalized("WarnNoWorkingDaysFeasts"), displayUC);
                }
            }
        }