Exemple #1
0
        protected void ItemIds()
        {
            List <ItemId> l = NC.App.DB.ItemIds.GetList();

            foreach (ItemId f in NOPItemIds)
            {
                if (string.IsNullOrEmpty(f.item))
                {
                    continue;
                }
                if (NC.App.DB.ItemIds.Has(f.item))
                {
                    // update the existing item id with the new info
                    ItemId Id = NC.App.DB.ItemIds.Get(f.item);
                    Id.Copy(f); Id.modified = true;
                    NC.App.DB.ItemIds.Set(Id);
                }
                else
                {
                    l.Add(f); f.modified = true;
                    NC.App.DB.ItemIds.Set(f);
                }
            }
        }