Esempio n. 1
0
        public void FilterData(StringBuilder res = null)
        {
            if (DisableBaseFilterData)
            {
                return;
            }
            if (res == null)
            {
                res = GetAutoPropertyFilterString();
            }
            if (res.Length == 0 && vloader.NavigationExpression.Count != 0)
            {
                res.Append("&& All");
            }
            if (res.Length > 0)
            {
                vloader.FilterExpression = res.ToString().Trim().Substring(2).Trim();
            }
            else
            {
                if (vloader.FilterExpression != "All")
                {
                    vloader.FilterExpression = null;
                }
            }

            TariffCodes.Refresh();
            NotifyPropertyChanged(x => this.TariffCodes);
        }
Esempio n. 2
0
 /// <summary>
 ///     Clears all the global
 /// </summary>
 public static void ClearValues()
 {
     AccountingGroups.Clear();
     CostProfileGroups.Clear();
     CountriesOfOrigin.Clear();
     CustomerIdConversions.Clear();
     ExternalIdTypes.Clear();
     ItemCategories.Clear();
     ItemGroups.Clear();
     ItemIds.Clear();
     ItemIdSuffixes.Clear();
     ItemRecords.Clear();
     Languages.Clear();
     Licenses.Clear();
     LocalItemIds.Clear();
     MetaDescriptions.Clear();
     PricingGroups.Clear();
     ProductCategories.Clear();
     ProductFormats.Clear();
     ProductGoups.Clear();
     ProductLines.Clear();
     Properties.Clear();
     PsStatuses.Clear();
     RequestStatus.Clear();
     SpecialCharacters.Clear();
     TariffCodes.Clear();
     Territories.Clear();
     ToolTips.Clear();
     UpcProductFormatExceptions.Clear();
     Upcs.Clear();
     UserNames.Clear();
     UserRoles.Clear();
     WebCategoryList.Clear();
 }
Esempio n. 3
0
 public async Task SaveTariffCodes(TariffCodes i)
 {
     if (i == null)
     {
         return;
     }
     using (var ctx = new TariffCodesService())
     {
         await ctx.UpdateTariffCodes(i).ConfigureAwait(false);
     }
 }
Esempio n. 4
0
        internal void OnCurrentTariffCategoryChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <TariffCategory> e)
        {
            if (ViewCurrentTariffCategory == false)
            {
                return;
            }
            if (e.Data == null || e.Data.TariffCategoryCode == null)
            {
                vloader.FilterExpression = "None";
            }
            else
            {
                vloader.FilterExpression = string.Format("TariffCategoryCode == \"{0}\"", e.Data.TariffCategoryCode.ToString());
            }

            TariffCodes.Refresh();
            NotifyPropertyChanged(x => this.TariffCodes);
            // SendMessage(MessageToken.TariffCodesChanged, new NotificationEventArgs(MessageToken.TariffCodesChanged));

            BaseViewModel.Instance.CurrentTariffCodes = null;
        }
 public async Task <TariffCodes> CreateTariffCodes(TariffCodes entity)
 {
     return(await Channel.CreateTariffCodes(entity).ConfigureAwait(false));
 }