Exemple #1
0
        ///// <summary>
        ///// 是否是更新数量了,主要是针对商城道具添加
        ///// </summary>
        //public bool IsUpdateCount { get; set; }

        #region Clone
        public ItemInfoEntity Clone()
        {
            ItemInfoEntity entity = new ItemInfoEntity();

            entity.ItemId       = this.ItemId;
            entity.ItemCode     = this.ItemCode;
            entity.ItemType     = this.ItemType;
            entity.ItemCount    = this.ItemCount;
            entity.IsBinding    = this.IsBinding;
            entity.IsDeal       = this.IsDeal;
            entity.ItemProperty = this.ItemProperty.Clone();
            entity.GridIndex    = this.GridIndex;
            entity.Status       = this.Status;
            return(entity);
        }
Exemple #2
0
 /// <summary>
 /// 判断物品是否是包裹内的物品
 /// </summary>
 /// <param name="item">物品</param>
 /// <returns>相同返回true</returns>
 public bool Equals(ItemInfoEntity item)
 {
     return((this.GridIndex == item.GridIndex) && (this.ItemCode == item.ItemCode) && (this.ItemId == item.ItemId));
 }