Ejemplo n.º 1
0
        /// <summary>
        /// 填充
        /// </summary>
        /// <returns></returns>
        protected override GoodsEntity FillEntity()
        {
            var info = base.FillEntity();

            if (info != null)
            {
                var values = Edit1.TagCheckBoxList.GetSelectedValues();
                if (values.Length > 0)
                {
                    info.Tag = values;
                }
                info.Category = new CategoryEntity {
                    Id = Edit1.CategoryId
                };
                info.Account = new AccountEntity {
                    Id = 0
                };
                info.Products        = Edit1.GetProducts(info);
                info.GoodsImages     = Edit1.GetGoodsImages(info);
                info.GoodsProperties = Edit1.GetGoodsProperties(info);
                info.GoodsDetails    = Edit1.GetGoodsDetails(info);
                info.PublishTime     = DateTime.Now;
                info.IsSales         = false;
            }
            return(info);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 填充
        /// </summary>
        /// <returns></returns>
        protected override GoodsEntity FillEntity()
        {
            var info = base.FillEntity();

            if (info != null)
            {
                info.IsSales         = false;
                info.Products        = Edit1.GetProducts(info);
                info.GoodsImages     = Edit1.GetGoodsImages(info);
                info.GoodsProperties = Edit1.GetGoodsProperties(info);
                info.GoodsDetails    = Edit1.GetGoodsDetails(info);
                info.PublishTime     = DateTime.Now;
                info.Category        = new CategoryEntity {
                    Id = Edit1.CategoryId
                };
            }
            return(info);
        }