private void Fixupshop_info(shop_info previousValue)
        {
            if (previousValue != null && previousValue.product_purchase_history_master.Contains(this))
            {
                previousValue.product_purchase_history_master.Remove(this);
            }

            if (shop_info != null)
            {
                if (!shop_info.product_purchase_history_master.Contains(this))
                {
                    shop_info.product_purchase_history_master.Add(this);
                }
                if (shop_code != shop_info.code)
                {
                    shop_code = shop_info.code;
                }
            }
        }
Example #2
0
        private void Fixupshop_info(shop_info previousValue)
        {
            if (previousValue != null && previousValue.ordermasters.Contains(this))
            {
                previousValue.ordermasters.Remove(this);
            }

            if (shop_info != null)
            {
                if (!shop_info.ordermasters.Contains(this))
                {
                    shop_info.ordermasters.Add(this);
                }
                if (shop_code != shop_info.code)
                {
                    shop_code = shop_info.code;
                }
            }
            else if (!_settingFK)
            {
                shop_code = null;
            }
        }
        private void Fixupshop_info(shop_info previousValue)
        {
            if (previousValue != null && previousValue.product_purchase_history_master.Contains(this))
            {
                previousValue.product_purchase_history_master.Remove(this);
            }

            if (shop_info != null)
            {
                if (!shop_info.product_purchase_history_master.Contains(this))
                {
                    shop_info.product_purchase_history_master.Add(this);
                }
                if (shop_code != shop_info.code)
                {
                    shop_code = shop_info.code;
                }
            }
        }
Example #4
0
        private void Fixupshop_info(shop_info previousValue)
        {
            if (previousValue != null && previousValue.ordermasters.Contains(this))
            {
                previousValue.ordermasters.Remove(this);
            }

            if (shop_info != null)
            {
                if (!shop_info.ordermasters.Contains(this))
                {
                    shop_info.ordermasters.Add(this);
                }
                if (shop_code != shop_info.code)
                {
                    shop_code = shop_info.code;
                }
            }
            else if (!_settingFK)
            {
                shop_code = null;
            }
        }
 /// <summary>
 /// Save Shop setting details in database
 /// </summary>
 /// <param name="shopSettingDetails">Shopsetting object to be saved</param>
 /// <returns>returns boolean value indicating if the records are saved in database</returns>
 bool ISettingService.SaveShopSetting(ShopSettingDTO shopSettingDetails)
 {
     shop_info shopSettingEntity = new shop_info();
     ObjectMapper.Map(shopSettingDetails, shopSettingEntity);
     return ShopSettingRepository.Save(shopSettingEntity);
 }