using SqlSugar; namespace HONORCSData { /// /// 商品主表 /// [SugarTable("goods")] public class EGoods { /// /// 商品 /// public EGoods() { } private int _GoodsId; /// /// 商品id /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "goods_id")] public int GoodsId { get => _GoodsId; set => _GoodsId = value; } private string _GoodsNo; /// /// 商品编号 /// [SugarColumn( ColumnName = "goods_no")] public string GoodsNo { get => _GoodsNo; set => _GoodsNo = value?.Trim(); } private string _BarCode; /// /// 条码 /// [SugarColumn(ColumnName = "bar_code")] public string BarCode { get => _BarCode; set => _BarCode = value?.Trim(); } private string _Description; /// /// 描述 /// [SugarColumn(ColumnName = "description")] public string Description { get => _Description; set => _Description = value?.Trim(); } private decimal _RetailPrice; /// /// 零售价 /// [SugarColumn(ColumnName = "retail_price")] public decimal RetailPrice { get => _RetailPrice; set => _RetailPrice = value; } private decimal _DeliveryPrice; /// /// 送货价 /// [SugarColumn(ColumnName = "delivery_price")] public decimal DeliveryPrice { get => _DeliveryPrice; set => _DeliveryPrice = value; } private decimal _MemberPrice; /// /// 会员价 /// [SugarColumn(ColumnName = "member_price")] public decimal MemberPrice { get => _MemberPrice; set => _MemberPrice = value; } private decimal _WholesalePrice; /// /// 批发价 /// [SugarColumn(ColumnName = "wholesale_price")] public decimal WholesalePrice { get => _WholesalePrice; set => _WholesalePrice = value; } private decimal _ReceiptPrice; /// /// 发票价 /// [SugarColumn(ColumnName = "receipt_price")] public decimal ReceiptPrice { get => _ReceiptPrice; set => _ReceiptPrice = value; } private decimal _InternetPrice; /// /// 网络价 /// [SugarColumn(ColumnName = "internet_price")] public decimal InternetPrice { get => _InternetPrice; set => _InternetPrice = value; } private decimal _FriendshipPrice; /// /// 友情价 /// [SugarColumn(ColumnName = "friendship_price")] public decimal FriendshipPrice { get => _FriendshipPrice; set => _FriendshipPrice = value; } private decimal _SpecialPrice; /// /// 特别价 /// [SugarColumn(ColumnName = "special_price")] public decimal SpecialPrice { get => _SpecialPrice; set => _SpecialPrice = value; } private decimal _PromotionPrice; /// /// 促销价 /// [SugarColumn(ColumnName = "promotion_price")] public decimal PromotionPrice { get => _PromotionPrice; set => _PromotionPrice = value; } private decimal _PurchasePrice; /// /// 进货价 /// [SugarColumn(ColumnName = "purchase_price")] public decimal PurchasePrice { get => _PurchasePrice; set => _PurchasePrice = value; } private string _SpanishName; /// /// 西文名称 /// [SugarColumn(ColumnName = "spanish_name")] public string SpanishName { get => _SpanishName; set => _SpanishName = value?.Trim(); } private string _Initials; /// /// 首字母 /// [SugarColumn(ColumnName = "initials")] public string Initials { get => _Initials; set => _Initials = value?.Trim(); } private string _ChineseName; /// /// 中文名称 /// [SugarColumn(ColumnName = "chinese_name")] public string ChineseName { get => _ChineseName; set => _ChineseName = value?.Trim(); } /// /// 商品名称 西文中文组合 /// [SugarColumn(IsIgnore = true)] public string GoodsName { get => string.Format("{0}[{1}]", _SpanishName, _ChineseName); } private string _ChinesePinyin; /// /// 拼音 /// [SugarColumn(ColumnName = "chinese_pinyin")] public string ChinesePinyin { get => _ChinesePinyin; set => _ChinesePinyin = value?.Trim(); } private decimal _PackageNumber; /// /// 整包数量 /// [SugarColumn(ColumnName = "package_number")] public decimal PackageNumber { get => _PackageNumber; set => _PackageNumber = value; } private decimal _BoxNumber; /// /// 整箱数量 /// [SugarColumn(ColumnName = "box_number")] public decimal BoxNumber { get => _BoxNumber; set => _BoxNumber = value; } private double _WeightCapacity; /// /// 重量容量 /// [SugarColumn(ColumnName = "weight_capacity")] public double WeightCapacity { get => _WeightCapacity; set => _WeightCapacity = value; } private bool _IsOnlyPerUnit; /// /// 是否只按单位 /// [SugarColumn(ColumnName = "is_only_per_unit")] public bool IsOnlyPerUnit { get => _IsOnlyPerUnit; set => _IsOnlyPerUnit = value; } private int _GoodsClassId; /// /// 商品类别编号 /// [SugarColumn(ColumnName = "goods_class_id")] public int GoodsClassId { get => _GoodsClassId; set => _GoodsClassId = value; } /// /// 商品类别名称 /// [SugarColumn(IsIgnore = true)] public string GoodsClass { get; set; } private string _UnitName; /// /// 单位名称 /// [SugarColumn(ColumnName = "unit_name")] public string UnitName { get => _UnitName; set => _UnitName = value?.Trim(); } private System.DateTime? _GoodsAddDate; /// /// 商品添加日期 /// [SugarColumn(ColumnName = "goods_add_date")] public System.DateTime? GoodsAddDate { get => _GoodsAddDate; set => _GoodsAddDate = value ?? default(System.DateTime); } private decimal _Discount; /// /// 折扣 /// [SugarColumn(ColumnName = "discount")] public decimal Discount { get => _Discount; set => _Discount = value; } private decimal _DiscountPrice; /// /// 折扣价 /// [SugarColumn(ColumnName = "discount_price")] public decimal DiscountPrice { get => _DiscountPrice; set => _DiscountPrice = value; } private decimal _ReceiptPercentage; /// /// 发票百分比 /// [SugarColumn(ColumnName = "receipt_percentage")] public decimal ReceiptPercentage { get => _ReceiptPercentage; set => _ReceiptPercentage = value; } private System.DateTime? _ExpiryDate; /// /// 到期日期 /// [SugarColumn(ColumnName = "expiry_date")] public System.DateTime? ExpiryDate { get => _ExpiryDate; set => _ExpiryDate = value ?? default(System.DateTime); } private string _SupplierId; /// /// 供应商编号 /// [SugarColumn(ColumnName = "supplier_id")] public string SupplierId { get => _SupplierId; set => _SupplierId = value?.Trim(); } private int _IsGift; /// /// 是否有赠品 /// [SugarColumn(ColumnName = "is_gift")] public int IsGift { get => _IsGift; set => _IsGift = value; } private int _IsPrivate; /// /// 是否私营 /// [SugarColumn(ColumnName = "is_private")] public int IsPrivate { get => _IsPrivate; set => _IsPrivate = value; } private System.Boolean? _IsPriceByVolume; /// /// 是否以量定价 /// [SugarColumn(ColumnName = "is_price_by_volume")] public System.Boolean? IsPriceByVolume { get { return this._IsPriceByVolume; } set { this._IsPriceByVolume = value ?? default(System.Boolean); } } private System.Boolean? _IsDiscountByQuantity; /// /// 是否以量定折扣 /// [SugarColumn(ColumnName = "is_discount_by_quantity")] public System.Boolean? IsDiscountByQuantity { get { return this._IsDiscountByQuantity; } set { this._IsDiscountByQuantity = value ?? default(System.Boolean); } } private decimal _Price1; /// /// 价格1 /// [SugarColumn(ColumnName = "price1")] public decimal Price1 { get => _Price1; set => _Price1 = value; } private decimal _Discount1; /// /// 折扣1 /// [SugarColumn(ColumnName = "discount1")] public decimal Discount1 { get => _Discount1; set => _Discount1 = value; } private decimal _Number1; /// /// 数量1 /// [SugarColumn(ColumnName = "number1")] public decimal Number1 { get => _Number1; set => _Number1 = value; } private decimal _Price2; /// /// 价格2 /// [SugarColumn(ColumnName = "price2")] public decimal Price2 { get => _Price2; set => _Price2 = value; } private decimal _Discount2; /// /// 折扣2 /// [SugarColumn(ColumnName = "discount2")] public decimal Discount2 { get => _Discount2; set => _Discount2 = value; } private decimal _Number2; /// /// 数量2 /// [SugarColumn(ColumnName = "number2")] public decimal Number2 { get => _Number2; set => _Number2 = value; } private decimal _Price3; /// /// 价格3 /// [SugarColumn(ColumnName = "price3")] public decimal Price3 { get => _Price3; set => _Price3 = value; } private decimal _Discount3; /// /// 折扣3 /// [SugarColumn(ColumnName = "discount3")] public decimal Discount3 { get => _Discount3; set => _Discount3 = value; } private decimal _Number3; /// /// 数量3 /// [SugarColumn(ColumnName = "number3")] public decimal Number3 { get => _Number3; set => _Number3 = value; } private decimal _Price4; /// /// 价格4 /// [SugarColumn(ColumnName = "price4")] public decimal Price4 { get => _Price4; set => _Price4 = value; } private decimal _Discount4; /// /// 折扣4 /// [SugarColumn(ColumnName = "discount4")] public decimal Discount4 { get => _Discount4; set => _Discount4 = value; } private decimal _Number4; /// /// 数量4 /// [SugarColumn(ColumnName = "number4")] public decimal Number4 { get => _Number4; set => _Number4 = value; } private decimal _Price5; /// /// 价格5 /// [SugarColumn(ColumnName = "price5")] public decimal Price5 { get => _Price5; set => _Price5 = value; } private decimal _Discount5; /// /// 折扣5 /// [SugarColumn(ColumnName = "discount5")] public decimal Discount5 { get => _Discount5; set => _Discount5 = value; } private decimal _Number5; /// /// 数量5 /// [SugarColumn(ColumnName = "number5")] public decimal Number5 { get => _Number5; set => _Number5 = value; } private decimal _Price6; /// /// 价格6 /// [SugarColumn(ColumnName = "price6")] public decimal Price6 { get => _Price6; set => _Price6 = value; } private decimal _Discount6; /// /// 折扣6 /// [SugarColumn(ColumnName = "discount6")] public decimal Discount6 { get => _Discount6; set => _Discount6 = value; } private string _WarehouseSite; /// /// 仓库位置 /// [SugarColumn(ColumnName = "warehouse_site")] public string WarehouseSite { get => _WarehouseSite; set => _WarehouseSite = value?.Trim(); } private string _GoodsGrade; /// /// 商品等级 /// [SugarColumn(ColumnName = "goods_grade")] public string GoodsGrade { get => _GoodsGrade; set => _GoodsGrade = value?.Trim(); } private decimal _MinStock; /// /// 库存下限 /// [SugarColumn(ColumnName = "min_stock")] public decimal MinStock { get => _MinStock; set => _MinStock = value; } private decimal _MaxStock; /// /// 库存上限 /// [SugarColumn(ColumnName = "max_stock")] public decimal MaxStock { get => _MaxStock; set => _MaxStock = value; } private bool _IsContainImage; /// /// 有图案 /// [SugarColumn(ColumnName = "is_contain_image")] public bool IsContainImage { get => _IsContainImage; set => _IsContainImage = value; } private string _GoodsImageMd5; /// /// 图案的消息摘要 /// [SugarColumn(ColumnName = "goods_image_md5")] public string GoodsImageMd5 { get => _GoodsImageMd5; set => _GoodsImageMd5 = value?.Trim(); } private System.DateTime? _ImageUpdateTime; /// /// 修改绘图时间 /// [SugarColumn(ColumnName = "image_update_time")] public System.DateTime? ImageUpdateTime { get => _ImageUpdateTime; set => _ImageUpdateTime = value ?? default(System.DateTime); } //private Goods.EGoodsImage _GoodsImage = new Goods.EGoodsImage(); ///// ///// 图片 ///// //[SugarColumn(IsIgnore = true)] //public Goods.EGoodsImage GoodsImage { get=>_GoodsImage; set => _GoodsImage = value; } private bool _IsProhibitedChangeDiscount; /// /// 是否禁止更改折扣 /// [SugarColumn(ColumnName = "is_prohibited_change_discount")] public bool IsProhibitedChangeDiscount { get => _IsProhibitedChangeDiscount; set => _IsProhibitedChangeDiscount = value; } private bool _PrintSign; /// /// 打印标记 /// [SugarColumn(ColumnName = "print_sign")] public bool PrintSign { get => _PrintSign; set => _PrintSign = value; } private System.DateTime? _PrintSignTime; /// /// 打印标记时间 /// [SugarColumn(ColumnName = "print_sign_time")] public System.DateTime? PrintSignTime { get => _PrintSignTime; set => _PrintSignTime = value ?? default(System.DateTime); } private bool _IsAddByAttachment; /// /// 是否添加为附件 /// [SugarColumn(ColumnName = "is_add_by_attachment")] public bool IsAddByAttachment { get => _IsAddByAttachment; set => _IsAddByAttachment = value; } private string _MultipleBarcode; /// /// 多条码 /// [SugarColumn(ColumnName = "multiple_barcode")] public string MultipleBarcode { get => _MultipleBarcode; set => _MultipleBarcode = value?.Trim(); } private string _PartialConsultation; /// /// 部分查询 /// [SugarColumn(ColumnName = "partial_consultation")] public string PartialConsultation { get => _PartialConsultation; set => _PartialConsultation = value?.Trim(); } private System.DateTime? _StartDate; /// /// 起始日期 /// [SugarColumn(ColumnName = "start_date")] public System.DateTime? StartDate { get => _StartDate; set => _StartDate = value ?? default(System.DateTime); } private int _IsLock; /// /// 是否锁定:1 锁定(下架) 0 未锁定(在售) /// [SugarColumn(ColumnName = "is_lock")] public int IsLock { get => _IsLock; set => _IsLock = value; } private int _SpecialSign; /// /// 特殊标识 /// [SugarColumn(ColumnName = "special_sign")] public int SpecialSign { get => _SpecialSign; set => _SpecialSign = value; } private string _Remark; /// /// 备注 /// [SugarColumn(ColumnName = "remark")] public string Remark { get => _Remark; set => _Remark = value?.Trim(); } private string _DelFlag = "0"; /// /// 删除标记:1 删除 0 非删除 /// [SugarColumn(ColumnName = "del_flag")] public string DelFlag { get => _DelFlag; set => _DelFlag = value?.Trim(); } private int? _BrandId; /// /// 商品品牌id /// [SugarColumn(ColumnName = "brand_id")] public int? BrandId { get => _BrandId; set => _BrandId = value ?? default(int); } /// /// 商品品牌名称 /// [SugarColumn(IsIgnore = true)] public string Brand { get; set; } private string _Origin; /// /// 产地 /// [SugarColumn(ColumnName = "origin")] public string Origin { get => _Origin; set => _Origin = value?.Trim(); } private string _ValuationMethod; /// /// 计价方式:1 包装 2 称重 /// [SugarColumn(ColumnName = "valuation_method")] public string ValuationMethod { get => _ValuationMethod; set => _ValuationMethod = value?.Trim(); } private string _SyncOnlineShop; /// /// 是否同步网店:1 同步 0 不同步 /// [SugarColumn(ColumnName = "sync_online_shop")] public string SyncOnlineShop { get => _SyncOnlineShop; set => _SyncOnlineShop = value?.Trim(); } private string _PackageSale; /// /// 是否整包销售:1 是 0 否 /// [SugarColumn(ColumnName = "package_sale")] public string PackageSale { get => _PackageSale; set => _PackageSale = value?.Trim(); } private string _IsEnablePoints; /// /// 是否启用积分:1 启用 0 不启用 /// [SugarColumn(ColumnName = "is_enable_points")] public string IsEnablePoints { get => _IsEnablePoints; set => _IsEnablePoints = value?.Trim(); } private string _PointsRule; /// /// 积分规则 /// [SugarColumn(ColumnName = "points_rule")] public string PointsRule { get => _PointsRule; set => _PointsRule = value?.Trim(); } private string _PurchaseSpec; /// /// 进货规格 /// [SugarColumn(ColumnName = "purchase_spec")] public string PurchaseSpec { get => _PurchaseSpec; set => _PurchaseSpec = value?.Trim(); } private System.Boolean? _IsIntervalPrice; /// /// 是否启用区间价格:1 启用 0 不启用 /// [SugarColumn(ColumnName = "is_interval_price")] public System.Boolean? IsIntervalPrice { get { return this._IsIntervalPrice; } set { this._IsIntervalPrice = value ?? default(System.Boolean); } } private System.Boolean? _IsCountEarning; /// /// 是否计算利润(毛利润):1 启用 0 不启用 /// [SugarColumn(ColumnName = "is_count_earning")] public System.Boolean? IsCountEarning { get { return this._IsCountEarning; } set { this._IsCountEarning = value ?? default(System.Boolean); } } private int _TenantId; /// /// 所属租户 /// [SugarColumn(ColumnName = "tenant_id")] public int TenantId { get => _TenantId; set => _TenantId = value; } [SugarColumn(IsIgnore = true)] public decimal StockNum { get; set; } } }