using Chuanyin.Attribute;
using CoreCms.Net.Model.Entities.baifenbingfa.jon;
using CoreCms.Net.Model.Entities.baseModel;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CoreCms.Net.Model.Entities.baifenbingfa.puhuo
{
///
/// 铺货
///
[SqlCodeFirst]
public class Puhuo : BFBaseModel
{
///
/// 主键ID,自增长
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键ID")]
public int id { get; set; }
///
/// 经销商id
///
public int distributionId { get; set; }
///
/// 经销商
///
public string distributionName { get; set; }
///
/// 区域
///
public string areaCode { get; set; }
///
/// 区域名称
///
public string areaCodeName { get; set; }
///
/// 商品分类id
///
public int CategoryId { get; set; }
///
/// 商品分类
///
public string CategoryName { get; set; }
///
/// 商品id
///
public int goodsId { get; set; }
///
/// 商品名称
///
public string goodsName { get; set; }
///
/// 货品id
///
public int productsId { get; set; }
///
/// 货品编号
///
public string productsName { get; set; }
///
/// 货品规格
///
public string spesDesc { get; set; }
///
/// 货品价格
///
[Display(Name = "货品价格")]
[Required(ErrorMessage = "请输入{0}")]
public System.Decimal price { get; set; }
///
/// 数量
///
[Display(Name = "数量")]
[SugarColumn(ColumnDescription = "数量")]
[Required(ErrorMessage = "请输入{0}")]
public System.Int32 nums { get; set; }
///
/// 金额
///
[Display(Name = "金额")]
[SugarColumn(ColumnDescription = "金额")]
[Required(ErrorMessage = "请输入{0}")]
public System.Decimal amount { get; set; }
///
/// 铺货退货
///
[Display(Name = "铺货退货")]
[SugarColumn(IsIgnore = true)]
public System.Int32 jintui { get; set; }
///
/// 调整数量
///
[Display(Name = "调整数量")]
[SugarColumn(IsIgnore = true)]
public System.Int32 tiaozhengnums { get; set; }
///
/// 学校名称
///
[Display(Name = "学校名称")]
[SugarColumn(IsIgnore = true)]
public string schoolName { get; set; }
///
/// 收款数量
///
[Display(Name = "收款数量")]
[SugarColumn(ColumnDescription = "收款数量", IsNullable = true, DefaultValue = "0")]
public System.Int32? shoukuannums { get; set; } = 0;
///
/// 金额
///
[Display(Name = "收款金额")]
[SugarColumn(ColumnDescription = "收款金额", IsNullable = true,DefaultValue = "0", Length = 18, DecimalDigits = 4)]
public System.Decimal? shoukuanamount { get; set; } = new decimal(0);
}
}