mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Update demo
This commit is contained in:
parent
4cd25576fa
commit
1d91c5e3d4
604
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/EGoods.cs
Normal file
604
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/EGoods.cs
Normal file
@ -0,0 +1,604 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace HONORCSData
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 商品主表
|
||||
/// </summary>
|
||||
[SugarTable("goods")]
|
||||
public class EGoods
|
||||
{
|
||||
/// <summary>
|
||||
/// 商品
|
||||
/// </summary>
|
||||
public EGoods()
|
||||
{
|
||||
}
|
||||
private int _GoodsId;
|
||||
/// <summary>
|
||||
/// 商品id
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "goods_id")]
|
||||
public int GoodsId { get => _GoodsId; set => _GoodsId = value; }
|
||||
private string _GoodsNo;
|
||||
/// <summary>
|
||||
/// 商品编号
|
||||
/// </summary>
|
||||
[SugarColumn( ColumnName = "goods_no")]
|
||||
public string GoodsNo { get => _GoodsNo; set => _GoodsNo = value?.Trim(); }
|
||||
|
||||
private string _BarCode;
|
||||
/// <summary>
|
||||
/// 条码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "bar_code")]
|
||||
public string BarCode { get => _BarCode; set => _BarCode = value?.Trim(); }
|
||||
|
||||
private string _Description;
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "description")]
|
||||
public string Description { get => _Description; set => _Description = value?.Trim(); }
|
||||
|
||||
private decimal _RetailPrice;
|
||||
/// <summary>
|
||||
/// 零售价
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "retail_price")]
|
||||
public decimal RetailPrice { get => _RetailPrice; set => _RetailPrice = value; }
|
||||
|
||||
private decimal _DeliveryPrice;
|
||||
/// <summary>
|
||||
/// 送货价
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "delivery_price")]
|
||||
public decimal DeliveryPrice { get => _DeliveryPrice; set => _DeliveryPrice = value; }
|
||||
|
||||
private decimal _MemberPrice;
|
||||
/// <summary>
|
||||
/// 会员价
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "member_price")]
|
||||
public decimal MemberPrice { get => _MemberPrice; set => _MemberPrice = value; }
|
||||
|
||||
private decimal _WholesalePrice;
|
||||
/// <summary>
|
||||
/// 批发价
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "wholesale_price")]
|
||||
public decimal WholesalePrice { get => _WholesalePrice; set => _WholesalePrice = value; }
|
||||
|
||||
private decimal _ReceiptPrice;
|
||||
/// <summary>
|
||||
/// 发票价
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "receipt_price")]
|
||||
public decimal ReceiptPrice { get => _ReceiptPrice; set => _ReceiptPrice = value; }
|
||||
|
||||
private decimal _InternetPrice;
|
||||
/// <summary>
|
||||
/// 网络价
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "internet_price")]
|
||||
public decimal InternetPrice { get => _InternetPrice; set => _InternetPrice = value; }
|
||||
|
||||
private decimal _FriendshipPrice;
|
||||
/// <summary>
|
||||
/// 友情价
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "friendship_price")]
|
||||
public decimal FriendshipPrice { get => _FriendshipPrice; set => _FriendshipPrice = value; }
|
||||
|
||||
private decimal _SpecialPrice;
|
||||
/// <summary>
|
||||
/// 特别价
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "special_price")]
|
||||
public decimal SpecialPrice { get => _SpecialPrice; set => _SpecialPrice = value; }
|
||||
|
||||
private decimal _PromotionPrice;
|
||||
/// <summary>
|
||||
/// 促销价
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "promotion_price")]
|
||||
public decimal PromotionPrice { get => _PromotionPrice; set => _PromotionPrice = value; }
|
||||
|
||||
private decimal _PurchasePrice;
|
||||
/// <summary>
|
||||
/// 进货价
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "purchase_price")]
|
||||
public decimal PurchasePrice { get => _PurchasePrice; set => _PurchasePrice = value; }
|
||||
|
||||
private string _SpanishName;
|
||||
/// <summary>
|
||||
/// 西文名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "spanish_name")]
|
||||
public string SpanishName { get => _SpanishName; set => _SpanishName = value?.Trim(); }
|
||||
|
||||
private string _Initials;
|
||||
/// <summary>
|
||||
/// 首字母
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "initials")]
|
||||
public string Initials { get => _Initials; set => _Initials = value?.Trim(); }
|
||||
|
||||
private string _ChineseName;
|
||||
/// <summary>
|
||||
/// 中文名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "chinese_name")]
|
||||
public string ChineseName { get => _ChineseName; set => _ChineseName = value?.Trim(); }
|
||||
|
||||
/// <summary>
|
||||
/// 商品名称 西文中文组合
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string GoodsName { get => string.Format("{0}[{1}]", _SpanishName, _ChineseName); }
|
||||
|
||||
private string _ChinesePinyin;
|
||||
/// <summary>
|
||||
/// 拼音
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "chinese_pinyin")]
|
||||
public string ChinesePinyin { get => _ChinesePinyin; set => _ChinesePinyin = value?.Trim(); }
|
||||
|
||||
private decimal _PackageNumber;
|
||||
/// <summary>
|
||||
/// 整包数量
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "package_number")]
|
||||
public decimal PackageNumber { get => _PackageNumber; set => _PackageNumber = value; }
|
||||
|
||||
private decimal _BoxNumber;
|
||||
/// <summary>
|
||||
/// 整箱数量
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "box_number")]
|
||||
public decimal BoxNumber { get => _BoxNumber; set => _BoxNumber = value; }
|
||||
|
||||
private double _WeightCapacity;
|
||||
/// <summary>
|
||||
/// 重量容量
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "weight_capacity")]
|
||||
public double WeightCapacity { get => _WeightCapacity; set => _WeightCapacity = value; }
|
||||
|
||||
private bool _IsOnlyPerUnit;
|
||||
/// <summary>
|
||||
/// 是否只按单位
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_only_per_unit")]
|
||||
public bool IsOnlyPerUnit { get => _IsOnlyPerUnit; set => _IsOnlyPerUnit = value; }
|
||||
|
||||
private int _GoodsClassId;
|
||||
/// <summary>
|
||||
/// 商品类别编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "goods_class_id")]
|
||||
public int GoodsClassId { get => _GoodsClassId; set => _GoodsClassId = value; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品类别名称
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string GoodsClass { get; set; }
|
||||
|
||||
private string _UnitName;
|
||||
/// <summary>
|
||||
/// 单位名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "unit_name")]
|
||||
public string UnitName { get => _UnitName; set => _UnitName = value?.Trim(); }
|
||||
|
||||
private System.DateTime? _GoodsAddDate;
|
||||
/// <summary>
|
||||
/// 商品添加日期
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "goods_add_date")]
|
||||
public System.DateTime? GoodsAddDate { get => _GoodsAddDate; set => _GoodsAddDate = value ?? default(System.DateTime); }
|
||||
|
||||
private decimal _Discount;
|
||||
/// <summary>
|
||||
/// 折扣
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "discount")]
|
||||
public decimal Discount { get => _Discount; set => _Discount = value; }
|
||||
|
||||
private decimal _DiscountPrice;
|
||||
/// <summary>
|
||||
/// 折扣价
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "discount_price")]
|
||||
public decimal DiscountPrice { get => _DiscountPrice; set => _DiscountPrice = value; }
|
||||
|
||||
private decimal _ReceiptPercentage;
|
||||
/// <summary>
|
||||
/// 发票百分比
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "receipt_percentage")]
|
||||
public decimal ReceiptPercentage { get => _ReceiptPercentage; set => _ReceiptPercentage = value; }
|
||||
|
||||
private System.DateTime? _ExpiryDate;
|
||||
/// <summary>
|
||||
/// 到期日期
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "expiry_date")]
|
||||
public System.DateTime? ExpiryDate { get => _ExpiryDate; set => _ExpiryDate = value ?? default(System.DateTime); }
|
||||
|
||||
private string _SupplierId;
|
||||
/// <summary>
|
||||
/// 供应商编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "supplier_id")]
|
||||
public string SupplierId { get => _SupplierId; set => _SupplierId = value?.Trim(); }
|
||||
|
||||
private int _IsGift;
|
||||
/// <summary>
|
||||
/// 是否有赠品
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_gift")]
|
||||
public int IsGift { get => _IsGift; set => _IsGift = value; }
|
||||
|
||||
private int _IsPrivate;
|
||||
/// <summary>
|
||||
/// 是否私营
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_private")]
|
||||
public int IsPrivate { get => _IsPrivate; set => _IsPrivate = value; }
|
||||
|
||||
private System.Boolean? _IsPriceByVolume;
|
||||
/// <summary>
|
||||
/// 是否以量定价
|
||||
/// </summary>
|
||||
[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;
|
||||
/// <summary>
|
||||
/// 是否以量定折扣
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_discount_by_quantity")]
|
||||
public System.Boolean? IsDiscountByQuantity { get { return this._IsDiscountByQuantity; } set { this._IsDiscountByQuantity = value ?? default(System.Boolean); } }
|
||||
|
||||
private decimal _Price1;
|
||||
/// <summary>
|
||||
/// 价格1
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "price1")]
|
||||
public decimal Price1 { get => _Price1; set => _Price1 = value; }
|
||||
|
||||
private decimal _Discount1;
|
||||
/// <summary>
|
||||
/// 折扣1
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "discount1")]
|
||||
public decimal Discount1 { get => _Discount1; set => _Discount1 = value; }
|
||||
|
||||
private decimal _Number1;
|
||||
/// <summary>
|
||||
/// 数量1
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "number1")]
|
||||
public decimal Number1 { get => _Number1; set => _Number1 = value; }
|
||||
|
||||
private decimal _Price2;
|
||||
/// <summary>
|
||||
/// 价格2
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "price2")]
|
||||
public decimal Price2 { get => _Price2; set => _Price2 = value; }
|
||||
|
||||
private decimal _Discount2;
|
||||
/// <summary>
|
||||
/// 折扣2
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "discount2")]
|
||||
public decimal Discount2 { get => _Discount2; set => _Discount2 = value; }
|
||||
|
||||
private decimal _Number2;
|
||||
/// <summary>
|
||||
/// 数量2
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "number2")]
|
||||
public decimal Number2 { get => _Number2; set => _Number2 = value; }
|
||||
|
||||
private decimal _Price3;
|
||||
/// <summary>
|
||||
/// 价格3
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "price3")]
|
||||
public decimal Price3 { get => _Price3; set => _Price3 = value; }
|
||||
|
||||
private decimal _Discount3;
|
||||
/// <summary>
|
||||
/// 折扣3
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "discount3")]
|
||||
public decimal Discount3 { get => _Discount3; set => _Discount3 = value; }
|
||||
|
||||
private decimal _Number3;
|
||||
/// <summary>
|
||||
/// 数量3
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "number3")]
|
||||
public decimal Number3 { get => _Number3; set => _Number3 = value; }
|
||||
|
||||
private decimal _Price4;
|
||||
/// <summary>
|
||||
/// 价格4
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "price4")]
|
||||
public decimal Price4 { get => _Price4; set => _Price4 = value; }
|
||||
|
||||
private decimal _Discount4;
|
||||
/// <summary>
|
||||
/// 折扣4
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "discount4")]
|
||||
public decimal Discount4 { get => _Discount4; set => _Discount4 = value; }
|
||||
|
||||
private decimal _Number4;
|
||||
/// <summary>
|
||||
/// 数量4
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "number4")]
|
||||
public decimal Number4 { get => _Number4; set => _Number4 = value; }
|
||||
|
||||
private decimal _Price5;
|
||||
/// <summary>
|
||||
/// 价格5
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "price5")]
|
||||
public decimal Price5 { get => _Price5; set => _Price5 = value; }
|
||||
|
||||
private decimal _Discount5;
|
||||
/// <summary>
|
||||
/// 折扣5
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "discount5")]
|
||||
public decimal Discount5 { get => _Discount5; set => _Discount5 = value; }
|
||||
|
||||
private decimal _Number5;
|
||||
/// <summary>
|
||||
/// 数量5
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "number5")]
|
||||
public decimal Number5 { get => _Number5; set => _Number5 = value; }
|
||||
|
||||
private decimal _Price6;
|
||||
/// <summary>
|
||||
/// 价格6
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "price6")]
|
||||
public decimal Price6 { get => _Price6; set => _Price6 = value; }
|
||||
|
||||
private decimal _Discount6;
|
||||
/// <summary>
|
||||
/// 折扣6
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "discount6")]
|
||||
public decimal Discount6 { get => _Discount6; set => _Discount6 = value; }
|
||||
|
||||
private string _WarehouseSite;
|
||||
/// <summary>
|
||||
/// 仓库位置
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "warehouse_site")]
|
||||
public string WarehouseSite { get => _WarehouseSite; set => _WarehouseSite = value?.Trim(); }
|
||||
|
||||
private string _GoodsGrade;
|
||||
/// <summary>
|
||||
/// 商品等级
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "goods_grade")]
|
||||
public string GoodsGrade { get => _GoodsGrade; set => _GoodsGrade = value?.Trim(); }
|
||||
|
||||
private decimal _MinStock;
|
||||
/// <summary>
|
||||
/// 库存下限
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "min_stock")]
|
||||
public decimal MinStock { get => _MinStock; set => _MinStock = value; }
|
||||
|
||||
private decimal _MaxStock;
|
||||
/// <summary>
|
||||
/// 库存上限
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "max_stock")]
|
||||
public decimal MaxStock { get => _MaxStock; set => _MaxStock = value; }
|
||||
|
||||
private bool _IsContainImage;
|
||||
/// <summary>
|
||||
/// 有图案
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_contain_image")]
|
||||
public bool IsContainImage { get => _IsContainImage; set => _IsContainImage = value; }
|
||||
|
||||
private string _GoodsImageMd5;
|
||||
/// <summary>
|
||||
/// 图案的消息摘要
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "goods_image_md5")]
|
||||
public string GoodsImageMd5 { get => _GoodsImageMd5; set => _GoodsImageMd5 = value?.Trim(); }
|
||||
|
||||
private System.DateTime? _ImageUpdateTime;
|
||||
/// <summary>
|
||||
/// 修改绘图时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "image_update_time")]
|
||||
public System.DateTime? ImageUpdateTime { get => _ImageUpdateTime; set => _ImageUpdateTime = value ?? default(System.DateTime); }
|
||||
//private Goods.EGoodsImage _GoodsImage = new Goods.EGoodsImage();
|
||||
///// <summary>
|
||||
///// 图片
|
||||
///// </summary>
|
||||
//[SugarColumn(IsIgnore = true)]
|
||||
//public Goods.EGoodsImage GoodsImage { get=>_GoodsImage; set => _GoodsImage = value; }
|
||||
|
||||
private bool _IsProhibitedChangeDiscount;
|
||||
/// <summary>
|
||||
/// 是否禁止更改折扣
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_prohibited_change_discount")]
|
||||
public bool IsProhibitedChangeDiscount { get => _IsProhibitedChangeDiscount; set => _IsProhibitedChangeDiscount = value; }
|
||||
|
||||
private bool _PrintSign;
|
||||
/// <summary>
|
||||
/// 打印标记
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "print_sign")]
|
||||
public bool PrintSign { get => _PrintSign; set => _PrintSign = value; }
|
||||
|
||||
private System.DateTime? _PrintSignTime;
|
||||
/// <summary>
|
||||
/// 打印标记时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "print_sign_time")]
|
||||
public System.DateTime? PrintSignTime { get => _PrintSignTime; set => _PrintSignTime = value ?? default(System.DateTime); }
|
||||
|
||||
private bool _IsAddByAttachment;
|
||||
/// <summary>
|
||||
/// 是否添加为附件
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_add_by_attachment")]
|
||||
public bool IsAddByAttachment { get => _IsAddByAttachment; set => _IsAddByAttachment = value; }
|
||||
|
||||
private string _MultipleBarcode;
|
||||
/// <summary>
|
||||
/// 多条码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "multiple_barcode")]
|
||||
public string MultipleBarcode { get => _MultipleBarcode; set => _MultipleBarcode = value?.Trim(); }
|
||||
|
||||
private string _PartialConsultation;
|
||||
/// <summary>
|
||||
/// 部分查询
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "partial_consultation")]
|
||||
public string PartialConsultation { get => _PartialConsultation; set => _PartialConsultation = value?.Trim(); }
|
||||
|
||||
private System.DateTime? _StartDate;
|
||||
/// <summary>
|
||||
/// 起始日期
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "start_date")]
|
||||
public System.DateTime? StartDate { get => _StartDate; set => _StartDate = value ?? default(System.DateTime); }
|
||||
|
||||
private int _IsLock;
|
||||
/// <summary>
|
||||
/// 是否锁定:1 锁定(下架) 0 未锁定(在售)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_lock")]
|
||||
public int IsLock { get => _IsLock; set => _IsLock = value; }
|
||||
|
||||
private int _SpecialSign;
|
||||
/// <summary>
|
||||
/// 特殊标识
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "special_sign")]
|
||||
public int SpecialSign { get => _SpecialSign; set => _SpecialSign = value; }
|
||||
|
||||
private string _Remark;
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "remark")]
|
||||
public string Remark { get => _Remark; set => _Remark = value?.Trim(); }
|
||||
|
||||
private string _DelFlag = "0";
|
||||
/// <summary>
|
||||
/// 删除标记:1 删除 0 非删除
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "del_flag")]
|
||||
public string DelFlag { get => _DelFlag; set => _DelFlag = value?.Trim(); }
|
||||
|
||||
private int? _BrandId;
|
||||
/// <summary>
|
||||
/// 商品品牌id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "brand_id")]
|
||||
public int? BrandId { get => _BrandId; set => _BrandId = value ?? default(int); }
|
||||
|
||||
/// <summary>
|
||||
/// 商品品牌名称
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string Brand { get; set; }
|
||||
|
||||
private string _Origin;
|
||||
/// <summary>
|
||||
/// 产地
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "origin")]
|
||||
public string Origin { get => _Origin; set => _Origin = value?.Trim(); }
|
||||
|
||||
private string _ValuationMethod;
|
||||
/// <summary>
|
||||
/// 计价方式:1 包装 2 称重
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "valuation_method")]
|
||||
public string ValuationMethod { get => _ValuationMethod; set => _ValuationMethod = value?.Trim(); }
|
||||
|
||||
private string _SyncOnlineShop;
|
||||
/// <summary>
|
||||
/// 是否同步网店:1 同步 0 不同步
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "sync_online_shop")]
|
||||
public string SyncOnlineShop { get => _SyncOnlineShop; set => _SyncOnlineShop = value?.Trim(); }
|
||||
|
||||
private string _PackageSale;
|
||||
/// <summary>
|
||||
/// 是否整包销售:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "package_sale")]
|
||||
public string PackageSale { get => _PackageSale; set => _PackageSale = value?.Trim(); }
|
||||
|
||||
private string _IsEnablePoints;
|
||||
/// <summary>
|
||||
/// 是否启用积分:1 启用 0 不启用
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_enable_points")]
|
||||
public string IsEnablePoints { get => _IsEnablePoints; set => _IsEnablePoints = value?.Trim(); }
|
||||
|
||||
private string _PointsRule;
|
||||
/// <summary>
|
||||
/// 积分规则
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "points_rule")]
|
||||
public string PointsRule { get => _PointsRule; set => _PointsRule = value?.Trim(); }
|
||||
|
||||
private string _PurchaseSpec;
|
||||
/// <summary>
|
||||
/// 进货规格
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "purchase_spec")]
|
||||
public string PurchaseSpec { get => _PurchaseSpec; set => _PurchaseSpec = value?.Trim(); }
|
||||
|
||||
private System.Boolean? _IsIntervalPrice;
|
||||
/// <summary>
|
||||
/// 是否启用区间价格:1 启用 0 不启用
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_interval_price")]
|
||||
public System.Boolean? IsIntervalPrice { get { return this._IsIntervalPrice; } set { this._IsIntervalPrice = value ?? default(System.Boolean); } }
|
||||
|
||||
private System.Boolean? _IsCountEarning;
|
||||
/// <summary>
|
||||
/// 是否计算利润(毛利润):1 启用 0 不启用
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_count_earning")]
|
||||
public System.Boolean? IsCountEarning { get { return this._IsCountEarning; } set { this._IsCountEarning = value ?? default(System.Boolean); } }
|
||||
|
||||
private int _TenantId;
|
||||
/// <summary>
|
||||
/// 所属租户
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "tenant_id")]
|
||||
public int TenantId { get => _TenantId; set => _TenantId = value; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public decimal StockNum { get; set; }
|
||||
}
|
||||
}
|
68
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/EGoodsBrand.cs
Normal file
68
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/EGoodsBrand.cs
Normal file
@ -0,0 +1,68 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace HONORCSData
|
||||
{
|
||||
/// <summary>
|
||||
/// 商品品牌
|
||||
/// </summary>
|
||||
[SugarTable("goods_brand")]
|
||||
public class EGoodsBrand
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public EGoodsBrand()
|
||||
{
|
||||
}
|
||||
|
||||
private System.Int32 _BrandId;
|
||||
/// <summary>
|
||||
/// 自增编号
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "brand_id")]
|
||||
public System.Int32 BrandId { get { return this._BrandId; } set { this._BrandId = value; } }
|
||||
|
||||
private System.String _BrandCnName;
|
||||
/// <summary>
|
||||
/// 中文名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "brand_cn_name")]
|
||||
public System.String BrandCnName { get { return this._BrandCnName; } set { this._BrandCnName = value?.Trim(); } }
|
||||
|
||||
private System.String _BranchSpanishName;
|
||||
/// <summary>
|
||||
/// 西文名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "branch_spanish_name")]
|
||||
public System.String BranchSpanishName { get { return this._BranchSpanishName; } set { this._BranchSpanishName = value?.Trim(); } }
|
||||
|
||||
|
||||
private System.String _BrandNo;
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "brand_no")]
|
||||
public System.String BrandNo { get { return this._BrandNo; } set { this._BrandNo = value?.Trim(); } }
|
||||
|
||||
private System.String _BrandStatus = "1";
|
||||
/// <summary>
|
||||
/// 状态:1 正常 0 禁用
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "brand_status")]
|
||||
public System.String BrandStatus { get { return this._BrandStatus; } set { this._BrandStatus = value?.Trim(); } }
|
||||
|
||||
private System.String _DelFlag = "0";
|
||||
/// <summary>
|
||||
/// 是否删除:1 删除 0 未删除
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "del_flag")]
|
||||
public System.String DelFlag { get { return this._DelFlag; } set { this._DelFlag = value?.Trim(); } }
|
||||
|
||||
private int _TenantId;
|
||||
/// <summary>
|
||||
/// 所属租户
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "tenant_id")]
|
||||
public int TenantId { get => _TenantId; set => _TenantId = value; }
|
||||
}
|
||||
}
|
261
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/EGoodsClass.cs
Normal file
261
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/EGoodsClass.cs
Normal file
@ -0,0 +1,261 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HONORCSData.Goods
|
||||
{
|
||||
/// <summary>
|
||||
/// 商品种类
|
||||
/// </summary>
|
||||
[SugarTable("goods_class")]
|
||||
public class EGoodsClass
|
||||
{
|
||||
private System.Int32 _GoodsClassId;
|
||||
/// <summary>
|
||||
/// 商品种类编号
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true,ColumnName = "goods_class_id")]
|
||||
public System.Int32 GoodsClassId { get { return this._GoodsClassId; } set { this._GoodsClassId = value; } }
|
||||
|
||||
private System.String _SpanishName;
|
||||
/// <summary>
|
||||
/// 西文名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "spanish_name")]
|
||||
public System.String SpanishName { get { return this._SpanishName; } set { this._SpanishName = value?.Trim(); } }
|
||||
|
||||
private System.String _ChineseName;
|
||||
/// <summary>
|
||||
/// 中文名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "chinese_name")]
|
||||
public System.String ChineseName { get { return this._ChineseName; } set { this._ChineseName = value?.Trim(); } }
|
||||
|
||||
private System.Int16 _IvaId;
|
||||
/// <summary>
|
||||
/// iva编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "iva_id")]
|
||||
public System.Int16 IvaId { get { return this._IvaId; } set { this._IvaId = value; } }
|
||||
|
||||
|
||||
private System.String _GoodsClassNo;
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "goods_class_no")]
|
||||
public System.String GoodsClassNo { get { return this._GoodsClassNo; } set { this._GoodsClassNo = value?.Trim(); } }
|
||||
|
||||
private System.Decimal _Discount;
|
||||
/// <summary>
|
||||
/// 折扣
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "discount")]
|
||||
public System.Decimal Discount { get { return this._Discount; } set { this._Discount = value; } }
|
||||
|
||||
private System.Decimal _ReceiptPercentage;
|
||||
/// <summary>
|
||||
/// 发票百分比
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "receipt_percentage")]
|
||||
public System.Decimal ReceiptPercentage { get { return this._ReceiptPercentage; } set { this._ReceiptPercentage = value; } }
|
||||
|
||||
private System.Boolean _IsOnlyPerUnit;
|
||||
/// <summary>
|
||||
/// 是否仅每单位
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_only_per_unit")]
|
||||
public System.Boolean IsOnlyPerUnit { get { return this._IsOnlyPerUnit; } set { this._IsOnlyPerUnit = value; } }
|
||||
|
||||
private System.String _UnitName;
|
||||
/// <summary>
|
||||
/// 单位名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "unit_name")]
|
||||
public System.String UnitName { get { return this._UnitName; } set { this._UnitName = value?.Trim(); } }
|
||||
|
||||
private System.Boolean _IsCountEarning;
|
||||
/// <summary>
|
||||
/// 是否计算收益
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_count_earning")]
|
||||
public System.Boolean IsCountEarning { get { return this._IsCountEarning; } set { this._IsCountEarning = value; } }
|
||||
|
||||
private System.Boolean _IsCountStock;
|
||||
/// <summary>
|
||||
/// 是否计算库存
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_count_stock")]
|
||||
public System.Boolean IsCountStock { get { return this._IsCountStock; } set { this._IsCountStock = value; } }
|
||||
|
||||
private System.Boolean _IsProhibitedChangeDiscount;
|
||||
/// <summary>
|
||||
/// 是否禁止更改折扣
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_prohibited_change_discount")]
|
||||
public System.Boolean IsProhibitedChangeDiscount { get { return this._IsProhibitedChangeDiscount; } set { this._IsProhibitedChangeDiscount = value; } }
|
||||
|
||||
private System.Boolean _IsGift;
|
||||
/// <summary>
|
||||
/// 是否为赠品
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_gift")]
|
||||
public System.Boolean IsGift { get { return this._IsGift; } set { this._IsGift = value; } }
|
||||
|
||||
private System.Boolean _IsPrivate;
|
||||
/// <summary>
|
||||
/// 是否私营
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_private")]
|
||||
public System.Boolean IsPrivate { get { return this._IsPrivate; } set { this._IsPrivate = value; } }
|
||||
|
||||
private System.Int16 _GoodsStorehouse;
|
||||
/// <summary>
|
||||
/// 商品仓库
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "goods_storehouse")]
|
||||
public System.Int16 GoodsStorehouse { get { return this._GoodsStorehouse; } set { this._GoodsStorehouse = value; } }
|
||||
|
||||
private System.Decimal _RetailPriceProfitPercentage;
|
||||
/// <summary>
|
||||
/// 零售价利润百分比
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "retail_price_profit_percentage")]
|
||||
public System.Decimal RetailPriceProfitPercentage { get { return this._RetailPriceProfitPercentage; } set { this._RetailPriceProfitPercentage = value; } }
|
||||
|
||||
private System.Decimal _DeliveryPriceProfitPercentage;
|
||||
/// <summary>
|
||||
/// 送货价收益百分比
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "delivery_price_profit_percentage")]
|
||||
public System.Decimal DeliveryPriceProfitPercentage { get { return this._DeliveryPriceProfitPercentage; } set { this._DeliveryPriceProfitPercentage = value; } }
|
||||
|
||||
private System.Decimal _MemberPriceProfitPercentage;
|
||||
/// <summary>
|
||||
/// 会员价百分比
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "member_price_profit_percentage")]
|
||||
public System.Decimal MemberPriceProfitPercentage { get { return this._MemberPriceProfitPercentage; } set { this._MemberPriceProfitPercentage = value; } }
|
||||
|
||||
private System.Decimal _WholesalePriceProfitPercentage;
|
||||
/// <summary>
|
||||
/// 批发价收益百分比
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "wholesale_price_profit_percentage")]
|
||||
public System.Decimal WholesalePriceProfitPercentage { get { return this._WholesalePriceProfitPercentage; } set { this._WholesalePriceProfitPercentage = value; } }
|
||||
|
||||
private System.Decimal _ReceiptPriceProfitPercentage;
|
||||
/// <summary>
|
||||
/// 发票价格收益百分比
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "receipt_price_profit_percentage")]
|
||||
public System.Decimal ReceiptPriceProfitPercentage { get { return this._ReceiptPriceProfitPercentage; } set { this._ReceiptPriceProfitPercentage = value; } }
|
||||
|
||||
private System.Decimal _InternetPriceProfitPercentage;
|
||||
/// <summary>
|
||||
/// 网络价格收益百分比
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "internet_price_profit_percentage")]
|
||||
public System.Decimal InternetPriceProfitPercentage { get { return this._InternetPriceProfitPercentage; } set { this._InternetPriceProfitPercentage = value; } }
|
||||
|
||||
private System.Decimal _FriendshipPriceProfitPercentage;
|
||||
/// <summary>
|
||||
/// 友情价收益百分比
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "friendship_price_profit_percentage")]
|
||||
public System.Decimal FriendshipPriceProfitPercentage { get { return this._FriendshipPriceProfitPercentage; } set { this._FriendshipPriceProfitPercentage = value; } }
|
||||
|
||||
private System.Decimal _SpecialPriceProfitPercentage;
|
||||
/// <summary>
|
||||
/// 特别价格收益百分比
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "special_price_profit_percentage")]
|
||||
public System.Decimal SpecialPriceProfitPercentage { get { return this._SpecialPriceProfitPercentage; } set { this._SpecialPriceProfitPercentage = value; } }
|
||||
|
||||
private System.Decimal _PromotionPriceProfitPercentage;
|
||||
/// <summary>
|
||||
/// 促销价格收益百分比
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "promotion_price_profit_percentage")]
|
||||
public System.Decimal PromotionPriceProfitPercentage { get { return this._PromotionPriceProfitPercentage; } set { this._PromotionPriceProfitPercentage = value; } }
|
||||
|
||||
private System.Boolean _IsLock;
|
||||
/// <summary>
|
||||
/// 是否锁定
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_lock")]
|
||||
public System.Boolean IsLock { get { return this._IsLock; } set { this._IsLock = value; } }
|
||||
|
||||
private System.String _Remark;
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "remark")]
|
||||
public System.String Remark { get { return this._Remark; } set { this._Remark = value?.Trim(); } }
|
||||
|
||||
private System.Int32 _ParentId;
|
||||
/// <summary>
|
||||
/// 上级分类id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "parent_id")]
|
||||
public System.Int32 ParentId { get { return this._ParentId; } set { this._ParentId = value; } }
|
||||
|
||||
private System.String _IsEnablePoints;
|
||||
/// <summary>
|
||||
/// 是否启用积分:1 启用 0 不启用
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_enable_points")]
|
||||
public System.String IsEnablePoints { get { return this._IsEnablePoints; } set { this._IsEnablePoints = value?.Trim(); } }
|
||||
|
||||
private System.String _PointsRule;
|
||||
/// <summary>
|
||||
/// 积分规则
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "points_rule")]
|
||||
public System.String PointsRule { get { return this._PointsRule; } set { this._PointsRule = value?.Trim(); } }
|
||||
|
||||
private System.String _ValuationMethod;
|
||||
/// <summary>
|
||||
/// 计价方式:1 包装 2 称重
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "valuation_method")]
|
||||
public System.String ValuationMethod { get { return this._ValuationMethod; } set { this._ValuationMethod = value?.Trim(); } }
|
||||
|
||||
private System.String _DelFlag;
|
||||
/// <summary>
|
||||
/// 删除标记:1 删除 0 未删除
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "del_flag")]
|
||||
public System.String DelFlag { get { return this._DelFlag; } set { this._DelFlag = value?.Trim(); } }
|
||||
|
||||
private System.String _IsShowOnCshier = "1";
|
||||
/// <summary>
|
||||
/// 收银前台是否显示:1 显示 0 不显示
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_show_on_cashier")]
|
||||
public System.String IsShowOnCshier { get { return this._IsShowOnCshier; } set { this._IsShowOnCshier = value?.Trim(); } }
|
||||
|
||||
private System.Int32 _TenantId;
|
||||
/// <summary>
|
||||
/// 所属租户
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "tenant_id")]
|
||||
public System.Int32 TenantId { get { return this._TenantId; } set { this._TenantId = value; } }
|
||||
}
|
||||
public class EGoodsClassTree : EGoodsClass
|
||||
{
|
||||
/// <summary>
|
||||
/// 子集
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<EGoodsClassTree> Childrens { get; set; }
|
||||
/// <summary>
|
||||
/// 是否选中
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public bool IsSelected { get; set; } = false;
|
||||
}
|
||||
}
|
404
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/EOrderAlbaran.cs
Normal file
404
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/EOrderAlbaran.cs
Normal file
@ -0,0 +1,404 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace HONORCSData.Order
|
||||
{
|
||||
/// <summary>
|
||||
/// 出库单/入库单
|
||||
/// </summary>
|
||||
///
|
||||
[SugarTable("order_albaran")]
|
||||
public class EOrderAlbaran
|
||||
{
|
||||
/// <summary>
|
||||
/// 出库单/入库单
|
||||
/// </summary>
|
||||
public EOrderAlbaran()
|
||||
{
|
||||
}
|
||||
|
||||
private System.Int32 _AlbaranId;
|
||||
/// <summary>
|
||||
/// 主键id
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey =true, ColumnName = "albaran_id")]
|
||||
public System.Int32 AlbaranId { get { return this._AlbaranId; } set { this._AlbaranId = value; } }
|
||||
|
||||
private System.Int32? _ServerAccountId;
|
||||
/// <summary>
|
||||
/// 服务器端账户id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "server_account_id")]
|
||||
public System.Int32? ServerAccountId { get { return this._ServerAccountId; } set { this._ServerAccountId = value; } }
|
||||
|
||||
private System.String _ClientNo;
|
||||
/// <summary>
|
||||
/// 客户/供应商ID
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "client_no")]
|
||||
public System.String ClientNo { get { return this._ClientNo; } set { this._ClientNo = value; } }
|
||||
|
||||
private System.Boolean? _IsClientWithoutIva;
|
||||
/// <summary>
|
||||
/// 客户是否不含iva:1 含 0 不含
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_client_without_iva")]
|
||||
public System.Boolean? IsClientWithoutIva { get { return this._IsClientWithoutIva; } set { this._IsClientWithoutIva = value; } }
|
||||
|
||||
private System.Boolean? _IsClientWithoutIvaAndIvaInclude;
|
||||
/// <summary>
|
||||
/// ClienteSinIVA的IVAIncluido是否勾选:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_client_without_iva_and_iva_include")]
|
||||
public System.Boolean? IsClientWithoutIvaAndIvaInclude { get { return this._IsClientWithoutIvaAndIvaInclude; } set { this._IsClientWithoutIvaAndIvaInclude = value; } }
|
||||
|
||||
private System.Boolean? _IsClientReq;
|
||||
/// <summary>
|
||||
/// 客户是否有REQ:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_client_req")]
|
||||
public System.Boolean? IsClientReq { get { return this._IsClientReq; } set { this._IsClientReq = value; } }
|
||||
|
||||
private System.Boolean? _IsClientReqAndReqInclude;
|
||||
/// <summary>
|
||||
/// ClienteREQ的req_include是否勾选:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_client_req_and_req_include")]
|
||||
public System.Boolean? IsClientReqAndReqInclude { get { return this._IsClientReqAndReqInclude; } set { this._IsClientReqAndReqInclude = value; } }
|
||||
|
||||
private System.Decimal? _Discount;
|
||||
/// <summary>
|
||||
/// 折扣
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "discount")]
|
||||
public System.Decimal? Discount { get { return this._Discount; } set { this._Discount = value; } }
|
||||
|
||||
private System.Decimal? _DirectDiscount;
|
||||
/// <summary>
|
||||
/// 直接折扣
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "direct_discount")]
|
||||
public System.Decimal? DirectDiscount { get { return this._DirectDiscount; } set { this._DirectDiscount = value; } }
|
||||
|
||||
private System.Int16? _IvaRule;
|
||||
/// <summary>
|
||||
/// iva规则(id)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "iva_rule")]
|
||||
public System.Int16? IvaRule { get { return this._IvaRule; } set { this._IvaRule = value; } }
|
||||
|
||||
private System.Int32? _IvaId;
|
||||
/// <summary>
|
||||
/// iva_id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "iva_id")]
|
||||
public System.Int32? IvaId { get { return this._IvaId; } set { this._IvaId = value; } }
|
||||
|
||||
private System.Int16? _UsePrice;
|
||||
/// <summary>
|
||||
/// 使用价格:1 零售价 2 会员价 3 进货价
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "use_price")]
|
||||
public System.Int16? UsePrice { get { return this._UsePrice; } set { this._UsePrice = value; } }
|
||||
|
||||
private System.Decimal? _Total;
|
||||
/// <summary>
|
||||
/// 共计
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "total")]
|
||||
public System.Decimal? Total { get { return this._Total; } set { this._Total = value; } }
|
||||
|
||||
private System.Decimal? _TotalDiscount;
|
||||
/// <summary>
|
||||
/// 折扣总计
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "total_discount")]
|
||||
public System.Decimal? TotalDiscount { get { return this._TotalDiscount; } set { this._TotalDiscount = value; } }
|
||||
|
||||
private System.Decimal? _TotalVale;
|
||||
/// <summary>
|
||||
/// vale代金券总计
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "total_vale")]
|
||||
public System.Decimal? TotalVale { get { return this._TotalVale; } set { this._TotalVale = value; } }
|
||||
|
||||
private System.Decimal? _Profit;
|
||||
/// <summary>
|
||||
/// 利润
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "profit")]
|
||||
public System.Decimal? Profit { get { return this._Profit; } set { this._Profit = value; } }
|
||||
|
||||
private System.Decimal? _TotalNumber;
|
||||
/// <summary>
|
||||
/// 总数量
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "total_number")]
|
||||
public System.Decimal? TotalNumber { get { return this._TotalNumber; } set { this._TotalNumber = value; } }
|
||||
|
||||
private System.Decimal? _TotalCash;
|
||||
/// <summary>
|
||||
/// 总现金
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "total_cash")]
|
||||
public System.Decimal? TotalCash { get { return this._TotalCash; } set { this._TotalCash = value; } }
|
||||
|
||||
private System.DateTime? _AlbaranDate;
|
||||
/// <summary>
|
||||
/// albaran日期
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "albaran_date")]
|
||||
public System.DateTime? AlbaranDate { get { return this._AlbaranDate; } set { this._AlbaranDate = value; } }
|
||||
|
||||
private System.DateTime? _EntryTime;
|
||||
/// <summary>
|
||||
/// 录入时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "entry_time")]
|
||||
public System.DateTime? EntryTime { get { return this._EntryTime; } set { this._EntryTime = value; } }
|
||||
|
||||
private System.String _OriginDocType;
|
||||
/// <summary>
|
||||
/// 原始文件类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "origin_doc_type")]
|
||||
public System.String OriginDocType { get { return this._OriginDocType; } set { this._OriginDocType = value; } }
|
||||
|
||||
private System.Int32? _OriginDocId;
|
||||
/// <summary>
|
||||
/// 原始文件编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "origin_doc_id")]
|
||||
public System.Int32? OriginDocId { get { return this._OriginDocId; } set { this._OriginDocId = value; } }
|
||||
|
||||
private System.String _DestinationDocType;
|
||||
/// <summary>
|
||||
/// 目的文件类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "destination_doc_type")]
|
||||
public System.String DestinationDocType { get { return this._DestinationDocType; } set { this._DestinationDocType = value; } }
|
||||
|
||||
private System.Int32? _DestinationDocId;
|
||||
/// <summary>
|
||||
/// 目的文件编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "destination_doc_id")]
|
||||
public System.Int32? DestinationDocId { get { return this._DestinationDocId; } set { this._DestinationDocId = value; } }
|
||||
|
||||
private System.Int16? _ChargeType;
|
||||
/// <summary>
|
||||
/// 收费类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "charge_type")]
|
||||
public System.Int16? ChargeType { get { return this._ChargeType; } set { this._ChargeType = value; } }
|
||||
|
||||
private System.Decimal? _Cash;
|
||||
/// <summary>
|
||||
/// 收费类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "cash")]
|
||||
public System.Decimal? Cash { get { return this._Cash; } set { this._Cash = value; } }
|
||||
|
||||
private System.Int32? _AgentId;
|
||||
/// <summary>
|
||||
/// 代理商id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "agent_id")]
|
||||
public System.Int32? AgentId { get { return this._AgentId; } set { this._AgentId = value; } }
|
||||
|
||||
private System.Int32? _TransporterId;
|
||||
/// <summary>
|
||||
/// 运输商ID
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "transporter_id")]
|
||||
public System.Int32? TransporterId { get { return this._TransporterId; } set { this._TransporterId = value; } }
|
||||
|
||||
private System.String _CarNo;
|
||||
/// <summary>
|
||||
/// 车牌号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "car_no")]
|
||||
public System.String CarNo { get { return this._CarNo; } set { this._CarNo = value; } }
|
||||
|
||||
private System.Int32? _Operator;
|
||||
/// <summary>
|
||||
/// 操作员编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "operator")]
|
||||
public System.Int32? Operator { get { return this._Operator; } set { this._Operator = value; } }
|
||||
|
||||
private System.Int32? _Verifier;
|
||||
/// <summary>
|
||||
/// 审核员编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "verifier")]
|
||||
public System.Int32? Verifier { get { return this._Verifier; } set { this._Verifier = value; } }
|
||||
|
||||
private System.Int32? _StorehouseId;
|
||||
/// <summary>
|
||||
/// 仓库id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "storehouse_id")]
|
||||
public System.Int32? StorehouseId { get { return this._StorehouseId; } set { this._StorehouseId = value; } }
|
||||
|
||||
private System.String _AttachedDocSymbol;
|
||||
/// <summary>
|
||||
/// 附加文件符号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "attached_doc_symbol")]
|
||||
public System.String AttachedDocSymbol { get { return this._AttachedDocSymbol; } set { this._AttachedDocSymbol = value; } }
|
||||
|
||||
private System.Int32? _PrePaymentMethod;
|
||||
/// <summary>
|
||||
/// 预付款方式
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "pre_payment_method")]
|
||||
public System.Int32? PrePaymentMethod { get { return this._PrePaymentMethod; } set { this._PrePaymentMethod = value; } }
|
||||
|
||||
private System.String _ComputerName;
|
||||
/// <summary>
|
||||
/// 计算机名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "computer_name")]
|
||||
public System.String ComputerName { get { return this._ComputerName; } set { this._ComputerName = value; } }
|
||||
|
||||
private System.String _Hash;
|
||||
/// <summary>
|
||||
/// 哈希
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "hash")]
|
||||
public System.String Hash { get { return this._Hash; } set { this._Hash = value; } }
|
||||
|
||||
private System.Int32? _CifId;
|
||||
/// <summary>
|
||||
/// cif_id(到岸编号)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "cif_id")]
|
||||
public System.Int32? CifId { get { return this._CifId; } set { this._CifId = value; } }
|
||||
|
||||
private System.String _SubStoreId;
|
||||
/// <summary>
|
||||
/// 子商店编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "sub_store_id")]
|
||||
public System.String SubStoreId { get { return this._SubStoreId; } set { this._SubStoreId = value; } }
|
||||
|
||||
private System.Decimal? _AbonoTotal;
|
||||
/// <summary>
|
||||
/// abono总计
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "abono_total")]
|
||||
public System.Decimal? AbonoTotal { get { return this._AbonoTotal; } set { this._AbonoTotal = value; } }
|
||||
|
||||
private System.Decimal? _PaymentTotal;
|
||||
/// <summary>
|
||||
/// 付款总计
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "payment_total")]
|
||||
public System.Decimal? PaymentTotal { get { return this._PaymentTotal; } set { this._PaymentTotal = value; } }
|
||||
|
||||
private System.Boolean? _IsCharged;
|
||||
/// <summary>
|
||||
/// 是否已收款:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_charged")]
|
||||
public System.Boolean? IsCharged { get { return this._IsCharged; } set { this._IsCharged = value; } }
|
||||
|
||||
private System.Boolean? _IsLock;
|
||||
/// <summary>
|
||||
/// 是否锁定:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_lock")]
|
||||
public System.Boolean? IsLock { get { return this._IsLock; } set { this._IsLock = value; } }
|
||||
|
||||
private System.Boolean? _IsCanceled;
|
||||
/// <summary>
|
||||
/// 是否取消:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_canceled")]
|
||||
public System.Boolean? IsCanceled { get { return this._IsCanceled; } set { this._IsCanceled = value; } }
|
||||
|
||||
private System.String _IsModify;
|
||||
/// <summary>
|
||||
/// 是否修改:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_modify")]
|
||||
public System.String IsModify { get { return this._IsModify; } set { this._IsModify = value; } }
|
||||
|
||||
private System.Boolean? _IsSendEmail;
|
||||
/// <summary>
|
||||
/// 是否发送电子邮件:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_send_email")]
|
||||
public System.Boolean? IsSendEmail { get { return this._IsSendEmail; } set { this._IsSendEmail = value; } }
|
||||
|
||||
private System.String _Remark;
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "remark")]
|
||||
public System.String Remark { get { return this._Remark; } set { this._Remark = value; } }
|
||||
|
||||
private System.String _AlbaranNo;
|
||||
/// <summary>
|
||||
/// 订单编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "albaran_no")]
|
||||
public System.String AlbaranNo { get { return this._AlbaranNo; } set { this._AlbaranNo = value; } }
|
||||
|
||||
private System.Int16? _AlbaranType;
|
||||
/// <summary>
|
||||
/// 订单类型:1 入库 2 出库
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "albaran_type")]
|
||||
public System.Int16? AlbaranType { get { return this._AlbaranType; } set { this._AlbaranType = value; } }
|
||||
|
||||
private System.Int32? _CreateTime;
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "create_time")]
|
||||
public System.Int32? CreateTime { get { return this._CreateTime; } set { this._CreateTime = value; } }
|
||||
|
||||
private System.Int32? _UpdateTime;
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "update_time")]
|
||||
public System.Int32? UpdateTime { get { return this._UpdateTime; } set { this._UpdateTime = value; } }
|
||||
|
||||
private System.String _VerifyStatus;
|
||||
/// <summary>
|
||||
/// albaran(入库/出库单)审核状态:1 审核 0 未审核
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "verify_status")]
|
||||
public System.String VerifyStatus { get { return this._VerifyStatus; } set { this._VerifyStatus = value; } }
|
||||
|
||||
private System.Int32? _VerifyTime;
|
||||
/// <summary>
|
||||
/// 审核日期
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "verify_time")]
|
||||
public System.Int32? VerifyTime { get { return this._VerifyTime; } set { this._VerifyTime = value; } }
|
||||
|
||||
private System.Int32? _PurchaseReceiveId;
|
||||
/// <summary>
|
||||
/// 采购收货订单Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "purchase_receive_id")]
|
||||
public System.Int32? PurchaseReceiveId { get { return this._PurchaseReceiveId; } set { this._PurchaseReceiveId = value; } }
|
||||
|
||||
private System.String _DelFlag;
|
||||
/// <summary>
|
||||
/// 删除标记:1 删除 0 未删除
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "del_flag")]
|
||||
public System.String DelFlag { get { return this._DelFlag; } set { this._DelFlag = value; } }
|
||||
|
||||
private System.Int32 _TenantId;
|
||||
/// <summary>
|
||||
/// 所属租户
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "tenant_id")]
|
||||
public System.Int32 TenantId { get { return this._TenantId; } set { this._TenantId = value; } }
|
||||
}
|
||||
}
|
234
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/EOrderAlbaranDetail.cs
Normal file
234
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/EOrderAlbaranDetail.cs
Normal file
@ -0,0 +1,234 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HONORCSData.Order
|
||||
{
|
||||
/// <summary>
|
||||
/// 出库单/入库单详情
|
||||
/// </summary>
|
||||
[SugarTable("order_albaran_detail")]
|
||||
public class EOrderAlbaranDetail
|
||||
{
|
||||
/// <summary>
|
||||
/// 出库单/入库单详情
|
||||
/// </summary>
|
||||
public EOrderAlbaranDetail()
|
||||
{
|
||||
}
|
||||
|
||||
private System.Int32 _AlbaranId;
|
||||
/// <summary>
|
||||
/// albaran_id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "albaran_id")]
|
||||
public System.Int32 AlbaranId { get { return this._AlbaranId; } set { this._AlbaranId = value; } }
|
||||
|
||||
private System.String _GoodsNo;
|
||||
/// <summary>
|
||||
/// 商品编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "goods_no")]
|
||||
public System.String GoodsNo { get { return this._GoodsNo; } set { this._GoodsNo = value; } }
|
||||
|
||||
private System.String _BarCode;
|
||||
/// <summary>
|
||||
/// 条码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "bar_code")]
|
||||
public System.String BarCode { get { return this._BarCode; } set { this._BarCode = value; } }
|
||||
|
||||
private System.Boolean _IsBlanceBarCode;
|
||||
/// <summary>
|
||||
/// 是否对称条码:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_blance_bar_code")]
|
||||
public System.Boolean IsBlanceBarCode { get { return this._IsBlanceBarCode; } set { this._IsBlanceBarCode = value; } }
|
||||
|
||||
private System.String _SpanishName;
|
||||
/// <summary>
|
||||
/// 西文名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "spanish_name")]
|
||||
public System.String SpanishName { get { return this._SpanishName; } set { this._SpanishName = value; } }
|
||||
|
||||
private System.String _ChineseName;
|
||||
/// <summary>
|
||||
/// 中文名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "chinese_name")]
|
||||
public System.String ChineseName { get { return this._ChineseName; } set { this._ChineseName = value; } }
|
||||
|
||||
private System.Decimal? _Price;
|
||||
/// <summary>
|
||||
/// 价格
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "price")]
|
||||
public System.Decimal? Price { get { return this._Price; } set { this._Price = value; } }
|
||||
|
||||
private System.Decimal? _Number;
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "number")]
|
||||
public System.Decimal? Number { get { return this._Number; } set { this._Number = value; } }
|
||||
|
||||
private System.Decimal? _Iva;
|
||||
/// <summary>
|
||||
/// iva
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "iva")]
|
||||
public System.Decimal? Iva { get { return this._Iva; } set { this._Iva = value; } }
|
||||
|
||||
private System.Decimal? _Req;
|
||||
/// <summary>
|
||||
/// req
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "req")]
|
||||
public System.Decimal? Req { get { return this._Req; } set { this._Req = value; } }
|
||||
|
||||
private System.Int32? _IvaId;
|
||||
/// <summary>
|
||||
/// iva_id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "iva_id")]
|
||||
public System.Int32? IvaId { get { return this._IvaId; } set { this._IvaId = value; } }
|
||||
|
||||
private System.Decimal? _Discount;
|
||||
/// <summary>
|
||||
/// 折扣
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "discount")]
|
||||
public System.Decimal? Discount { get { return this._Discount; } set { this._Discount = value; } }
|
||||
|
||||
private System.Boolean? _IsProhibitedChangeDiscount;
|
||||
/// <summary>
|
||||
/// 是否禁止更改折扣:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_prohibited_change_discount")]
|
||||
public System.Boolean? IsProhibitedChangeDiscount { get { return this._IsProhibitedChangeDiscount; } set { this._IsProhibitedChangeDiscount = value; } }
|
||||
|
||||
private System.Decimal? _CostPrice;
|
||||
/// <summary>
|
||||
/// 成本价
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "cost_price")]
|
||||
public System.Decimal? CostPrice { get { return this._CostPrice; } set { this._CostPrice = value; } }
|
||||
|
||||
private System.String _Commentary;
|
||||
/// <summary>
|
||||
/// 批注
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "commentary")]
|
||||
public System.String Commentary { get { return this._Commentary; } set { this._Commentary = value; } }
|
||||
|
||||
private System.Boolean? _IsTemporary;
|
||||
/// <summary>
|
||||
/// 是否是临时的:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_temporary")]
|
||||
public System.Boolean? IsTemporary { get { return this._IsTemporary; } set { this._IsTemporary = value; } }
|
||||
|
||||
private System.Int32? _OrderId;
|
||||
/// <summary>
|
||||
/// 订单id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "order_id")]
|
||||
public System.Int32? OrderId { get { return this._OrderId; } set { this._OrderId = value; } }
|
||||
|
||||
private System.Decimal? _PackageAmount;
|
||||
/// <summary>
|
||||
/// 包装数量(包数)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "package_amount")]
|
||||
public System.Decimal? PackageAmount { get { return this._PackageAmount; } set { this._PackageAmount = value; } }
|
||||
|
||||
private System.Decimal? _Total;
|
||||
/// <summary>
|
||||
/// 合计
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "total")]
|
||||
public System.Decimal? Total { get { return this._Total; } set { this._Total = value; } }
|
||||
|
||||
private System.String _Remark;
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "remark")]
|
||||
public System.String Remark { get { return this._Remark; } set { this._Remark = value; } }
|
||||
|
||||
private System.String _DelFlag;
|
||||
/// <summary>
|
||||
/// 删除标记:1 删除 0 未删除
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "del_flag")]
|
||||
public System.String DelFlag { get { return this._DelFlag; } set { this._DelFlag = value; } }
|
||||
|
||||
private System.String _UnitName;
|
||||
/// <summary>
|
||||
/// 单位名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "unit_name")]
|
||||
public System.String UnitName { get { return this._UnitName; } set { this._UnitName = value; } }
|
||||
|
||||
private System.String _PurchaseSpec;
|
||||
/// <summary>
|
||||
/// 进货规格
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "purchase_spec")]
|
||||
public System.String PurchaseSpec { get { return this._PurchaseSpec; } set { this._PurchaseSpec = value; } }
|
||||
|
||||
private System.Int32? _GoodsClassId;
|
||||
/// <summary>
|
||||
/// 商品类别
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "goods_class_id")]
|
||||
public System.Int32? GoodsClassId { get { return this._GoodsClassId; } set { this._GoodsClassId = value; } }
|
||||
|
||||
private System.String _GoodsClassName;
|
||||
/// <summary>
|
||||
/// 商品类别名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "goods_class_name")]
|
||||
public System.String GoodsClassName { get { return this._GoodsClassName; } set { this._GoodsClassName = value; } }
|
||||
|
||||
private System.Int32? _GoodsBrandId;
|
||||
/// <summary>
|
||||
/// 商品品牌
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "goods_brand_id")]
|
||||
public System.Int32? GoodsBrandId { get { return this._GoodsBrandId; } set { this._GoodsBrandId = value; } }
|
||||
|
||||
private System.String _GoodsBrandName;
|
||||
/// <summary>
|
||||
/// 商品品牌名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "goods_brand_name")]
|
||||
public System.String GoodsBrandName { get { return this._GoodsBrandName; } set { this._GoodsBrandName = value; } }
|
||||
|
||||
private System.Int32 _Id;
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, ColumnName = "id")]
|
||||
public System.Int32 Id { get { return this._Id; } set { this._Id = value; } }
|
||||
|
||||
private System.Int32 _TenantId;
|
||||
/// <summary>
|
||||
/// 所属租户id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "tenant_id")]
|
||||
public System.Int32 TenantId { get { return this._TenantId; } set { this._TenantId = value; } }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public int Index { get; set; }
|
||||
}
|
||||
|
||||
public class ViewModelOrderAlbaranDetail: EOrderAlbaranDetail
|
||||
{
|
||||
|
||||
}
|
||||
}
|
381
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/EOrderReturn.cs
Normal file
381
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/EOrderReturn.cs
Normal file
@ -0,0 +1,381 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HONORCSData.Order
|
||||
{
|
||||
/// <summary>
|
||||
/// 退货单
|
||||
/// </summary>
|
||||
[SugarTable("order_return")]
|
||||
public class EOrderReturn
|
||||
{
|
||||
/// <summary>
|
||||
/// 退货单
|
||||
/// </summary>
|
||||
|
||||
public EOrderReturn()
|
||||
{
|
||||
}
|
||||
|
||||
private System.Int32 _OrderReturnId;
|
||||
/// <summary>
|
||||
/// 主键id
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, ColumnName = "order_return_id")]
|
||||
public System.Int32 OrderReturnId { get { return this._OrderReturnId; } set { this._OrderReturnId = value; } }
|
||||
|
||||
private System.Int32? _ServerAccountId;
|
||||
/// <summary>
|
||||
/// 服务器端账户id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "server_account_id")]
|
||||
public System.Int32? ServerAccountId { get { return this._ServerAccountId; } set { this._ServerAccountId = value; } }
|
||||
|
||||
private System.DateTime? _ReturnTime;
|
||||
/// <summary>
|
||||
/// 退货日期
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "return_time")]
|
||||
public System.DateTime? ReturnTime { get { return this._ReturnTime; } set { this._ReturnTime = value; } }
|
||||
|
||||
private System.DateTime? _EntryTime;
|
||||
/// <summary>
|
||||
/// 录入时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "entry_time")]
|
||||
public System.DateTime? EntryTime { get { return this._EntryTime; } set { this._EntryTime = value; } }
|
||||
|
||||
private System.String _OriginDocType;
|
||||
/// <summary>
|
||||
/// 原始文件类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "origin_doc_type")]
|
||||
public System.String OriginDocType { get { return this._OriginDocType; } set { this._OriginDocType = value; } }
|
||||
|
||||
private System.Int32? _OriginDocId;
|
||||
/// <summary>
|
||||
/// 原始文件编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "origin_doc_id")]
|
||||
public System.Int32? OriginDocId { get { return this._OriginDocId; } set { this._OriginDocId = value; } }
|
||||
|
||||
private System.String _DestinationDocType;
|
||||
/// <summary>
|
||||
/// 目的文件类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "destination_doc_type")]
|
||||
public System.String DestinationDocType { get { return this._DestinationDocType; } set { this._DestinationDocType = value; } }
|
||||
|
||||
private System.Int32? _DestinationDocId;
|
||||
/// <summary>
|
||||
/// 目的文件编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "destination_doc_id")]
|
||||
public System.Int32? DestinationDocId { get { return this._DestinationDocId; } set { this._DestinationDocId = value; } }
|
||||
|
||||
private System.Int16? _ChargeType;
|
||||
/// <summary>
|
||||
/// 收费类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "charge_type")]
|
||||
public System.Int16? ChargeType { get { return this._ChargeType; } set { this._ChargeType = value; } }
|
||||
|
||||
private System.Decimal? _Cash;
|
||||
/// <summary>
|
||||
/// 现金
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "cash")]
|
||||
public System.Decimal? Cash { get { return this._Cash; } set { this._Cash = value; } }
|
||||
|
||||
private System.Decimal? _Discount;
|
||||
/// <summary>
|
||||
/// 折扣
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "discount")]
|
||||
public System.Decimal? Discount { get { return this._Discount; } set { this._Discount = value; } }
|
||||
|
||||
private System.Decimal? _DirectDiscount;
|
||||
/// <summary>
|
||||
/// 直接折扣
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "direct_discount")]
|
||||
public System.Decimal? DirectDiscount { get { return this._DirectDiscount; } set { this._DirectDiscount = value; } }
|
||||
|
||||
private System.Decimal? _Total;
|
||||
/// <summary>
|
||||
/// 共计
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "total")]
|
||||
public System.Decimal? Total { get { return this._Total; } set { this._Total = value; } }
|
||||
|
||||
private System.Decimal? _TotalDiscount;
|
||||
/// <summary>
|
||||
/// 折扣总计
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "total_discount")]
|
||||
public System.Decimal? TotalDiscount { get { return this._TotalDiscount; } set { this._TotalDiscount = value; } }
|
||||
|
||||
private System.Decimal? _TotalVale;
|
||||
/// <summary>
|
||||
/// vale代金券总计
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "total_vale")]
|
||||
public System.Decimal? TotalVale { get { return this._TotalVale; } set { this._TotalVale = value; } }
|
||||
|
||||
private System.Decimal? _Profit;
|
||||
/// <summary>
|
||||
/// 利润
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "profit")]
|
||||
public System.Decimal? Profit { get { return this._Profit; } set { this._Profit = value; } }
|
||||
|
||||
private System.Decimal? _TotalPayment;
|
||||
/// <summary>
|
||||
/// 付款总计
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "total_payment")]
|
||||
public System.Decimal? TotalPayment { get { return this._TotalPayment; } set { this._TotalPayment = value; } }
|
||||
|
||||
private System.Decimal? _TotalNumber;
|
||||
/// <summary>
|
||||
/// 总数量
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "total_number")]
|
||||
public System.Decimal? TotalNumber { get { return this._TotalNumber; } set { this._TotalNumber = value; } }
|
||||
|
||||
private System.Decimal? _TotalCash;
|
||||
/// <summary>
|
||||
/// 总现金
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "total_cash")]
|
||||
public System.Decimal? TotalCash { get { return this._TotalCash; } set { this._TotalCash = value; } }
|
||||
|
||||
private System.Int16? _IvaRule;
|
||||
/// <summary>
|
||||
/// iva规则(id)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "iva_rule")]
|
||||
public System.Int16? IvaRule { get { return this._IvaRule; } set { this._IvaRule = value; } }
|
||||
|
||||
private System.Int32? _IvaId;
|
||||
/// <summary>
|
||||
/// iva_id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "iva_id")]
|
||||
public System.Int32? IvaId { get { return this._IvaId; } set { this._IvaId = value; } }
|
||||
|
||||
private System.Int16? _UsePrice;
|
||||
/// <summary>
|
||||
/// 使用价格:1 零售价 2 会员价 3 进货价
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "use_price")]
|
||||
public System.Int16? UsePrice { get { return this._UsePrice; } set { this._UsePrice = value; } }
|
||||
|
||||
private System.Int16? _CashdrawerId;
|
||||
/// <summary>
|
||||
/// 收银箱编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "cashdrawer_id")]
|
||||
public System.Int16? CashdrawerId { get { return this._CashdrawerId; } set { this._CashdrawerId = value; } }
|
||||
|
||||
private System.String _ClientNo;
|
||||
/// <summary>
|
||||
/// 会员/供应商编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "client_no")]
|
||||
public System.String ClientNo { get { return this._ClientNo; } set { this._ClientNo = value; } }
|
||||
|
||||
private System.Int32? _AgentId;
|
||||
/// <summary>
|
||||
/// 代理商id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "agent_id")]
|
||||
public System.Int32? AgentId { get { return this._AgentId; } set { this._AgentId = value; } }
|
||||
|
||||
private System.Int32? _TransporterId;
|
||||
/// <summary>
|
||||
/// 运输商ID
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "transporter_id")]
|
||||
public System.Int32? TransporterId { get { return this._TransporterId; } set { this._TransporterId = value; } }
|
||||
|
||||
private System.String _CarNo;
|
||||
/// <summary>
|
||||
/// 车辆编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "car_no")]
|
||||
public System.String CarNo { get { return this._CarNo; } set { this._CarNo = value; } }
|
||||
|
||||
private System.Int32? _OperatorId;
|
||||
/// <summary>
|
||||
/// 操作员编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "operator_id")]
|
||||
public System.Int32? OperatorId { get { return this._OperatorId; } set { this._OperatorId = value; } }
|
||||
|
||||
private System.Int32? _VerifierId;
|
||||
/// <summary>
|
||||
/// 审核员编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "verifier_id")]
|
||||
public System.Int32? VerifierId { get { return this._VerifierId; } set { this._VerifierId = value; } }
|
||||
|
||||
private System.Int32? _StorehouseId;
|
||||
/// <summary>
|
||||
/// 仓库id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "storehouse_id")]
|
||||
public System.Int32? StorehouseId { get { return this._StorehouseId; } set { this._StorehouseId = value; } }
|
||||
|
||||
private System.String _AttachedDocSymbol;
|
||||
/// <summary>
|
||||
/// 附加文件符号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "attached_doc_symbol")]
|
||||
public System.String AttachedDocSymbol { get { return this._AttachedDocSymbol; } set { this._AttachedDocSymbol = value; } }
|
||||
|
||||
private System.Int32? _PrePaymentMethod;
|
||||
/// <summary>
|
||||
/// 预付款方式
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "pre_payment_method")]
|
||||
public System.Int32? PrePaymentMethod { get { return this._PrePaymentMethod; } set { this._PrePaymentMethod = value; } }
|
||||
|
||||
private System.String _ReturnComputerName;
|
||||
/// <summary>
|
||||
/// 退款计算机名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "return_computer_name")]
|
||||
public System.String ReturnComputerName { get { return this._ReturnComputerName; } set { this._ReturnComputerName = value; } }
|
||||
|
||||
private System.String _ComputerName;
|
||||
/// <summary>
|
||||
/// 计算机名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "computer_name")]
|
||||
public System.String ComputerName { get { return this._ComputerName; } set { this._ComputerName = value; } }
|
||||
|
||||
private System.String _Hash;
|
||||
/// <summary>
|
||||
/// 哈希
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "hash")]
|
||||
public System.String Hash { get { return this._Hash; } set { this._Hash = value; } }
|
||||
|
||||
private System.Int32? _CifId;
|
||||
/// <summary>
|
||||
/// cif_id(到岸编号)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "cif_id")]
|
||||
public System.Int32? CifId { get { return this._CifId; } set { this._CifId = value; } }
|
||||
|
||||
private System.String _SubStoreId;
|
||||
/// <summary>
|
||||
/// 子商店编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "sub_store_id")]
|
||||
public System.String SubStoreId { get { return this._SubStoreId; } set { this._SubStoreId = value; } }
|
||||
|
||||
private System.Decimal? _AbonoTotal;
|
||||
/// <summary>
|
||||
/// abono总计
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "abono_total")]
|
||||
public System.Decimal? AbonoTotal { get { return this._AbonoTotal; } set { this._AbonoTotal = value; } }
|
||||
|
||||
private System.Boolean? _IsCharged;
|
||||
/// <summary>
|
||||
/// 是否已收款:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_charged")]
|
||||
public System.Boolean? IsCharged { get { return this._IsCharged; } set { this._IsCharged = value; } }
|
||||
|
||||
private System.Boolean? _IsLock;
|
||||
/// <summary>
|
||||
/// 是否锁定:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_lock")]
|
||||
public System.Boolean? IsLock { get { return this._IsLock; } set { this._IsLock = value; } }
|
||||
|
||||
private System.Boolean? _IsCanceled;
|
||||
/// <summary>
|
||||
/// 是否取消:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_canceled")]
|
||||
public System.Boolean? IsCanceled { get { return this._IsCanceled; } set { this._IsCanceled = value; } }
|
||||
|
||||
private System.String _IsModify;
|
||||
/// <summary>
|
||||
/// 是否修改:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_modify")]
|
||||
public System.String IsModify { get { return this._IsModify; } set { this._IsModify = value; } }
|
||||
|
||||
private System.Boolean? _IsSendEmail;
|
||||
/// <summary>
|
||||
/// 是否发送电子邮件:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_send_email")]
|
||||
public System.Boolean? IsSendEmail { get { return this._IsSendEmail; } set { this._IsSendEmail = value; } }
|
||||
|
||||
private System.String _Remark;
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "remark")]
|
||||
public System.String Remark { get { return this._Remark; } set { this._Remark = value; } }
|
||||
|
||||
private System.String _OrderReturnNo;
|
||||
/// <summary>
|
||||
/// 订单编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "order_return_no")]
|
||||
public System.String OrderReturnNo { get { return this._OrderReturnNo; } set { this._OrderReturnNo = value; } }
|
||||
|
||||
private System.Int16? _OrderReturnType;
|
||||
/// <summary>
|
||||
/// 订单类型:1 采购 2 销售
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "order_return_type")]
|
||||
public System.Int16? OrderReturnType { get { return this._OrderReturnType; } set { this._OrderReturnType = value; } }
|
||||
|
||||
private System.Int32? _CreateTime;
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "create_time")]
|
||||
public System.Int32? CreateTime { get { return this._CreateTime; } set { this._CreateTime = value; } }
|
||||
|
||||
private System.Int32? _UpdateTime;
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "update_time")]
|
||||
public System.Int32? UpdateTime { get { return this._UpdateTime; } set { this._UpdateTime = value; } }
|
||||
|
||||
private System.String _DelFlag;
|
||||
/// <summary>
|
||||
/// 删除标记:1 删除 0 未删除
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "del_flag")]
|
||||
public System.String DelFlag { get { return this._DelFlag; } set { this._DelFlag = value; } }
|
||||
|
||||
private System.String _VerifyStatus;
|
||||
/// <summary>
|
||||
/// 审核状态:1 已审核 0 未审核
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "verify_status")]
|
||||
public System.String VerifyStatus { get { return this._VerifyStatus; } set { this._VerifyStatus = value?.Trim(); } }
|
||||
|
||||
private System.Int32 _TenantId;
|
||||
/// <summary>
|
||||
/// 所属租户
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "tenant_id")]
|
||||
public System.Int32 TenantId { get { return this._TenantId; } set { this._TenantId = value; } }
|
||||
}
|
||||
}
|
202
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/EOrderReturnDetail.cs
Normal file
202
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/EOrderReturnDetail.cs
Normal file
@ -0,0 +1,202 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HONORCSData.Order
|
||||
{
|
||||
/// <summary>
|
||||
/// 退货详情
|
||||
/// </summary>
|
||||
[SugarTable("order_return_detail")]
|
||||
public class EOrderReturnDetail
|
||||
{
|
||||
/// <summary>
|
||||
/// 退货详情
|
||||
/// </summary>
|
||||
public EOrderReturnDetail()
|
||||
{
|
||||
}
|
||||
|
||||
private System.Int32 _OrderReturnId;
|
||||
/// <summary>
|
||||
/// 退货单编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "order_return_id")]
|
||||
public System.Int32 OrderReturnId { get { return this._OrderReturnId; } set { this._OrderReturnId = value; } }
|
||||
|
||||
private System.String _GoodsNo;
|
||||
/// <summary>
|
||||
/// 商品编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "goods_no")]
|
||||
public System.String GoodsNo { get { return this._GoodsNo; } set { this._GoodsNo = value; } }
|
||||
|
||||
private System.String _BarCode;
|
||||
/// <summary>
|
||||
/// 条码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "bar_code")]
|
||||
public System.String BarCode { get { return this._BarCode; } set { this._BarCode = value; } }
|
||||
|
||||
private System.Boolean _IsBlanceBarCode;
|
||||
/// <summary>
|
||||
/// 是否对称条码:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_blance_bar_code")]
|
||||
public System.Boolean IsBlanceBarCode { get { return this._IsBlanceBarCode; } set { this._IsBlanceBarCode = value; } }
|
||||
|
||||
private System.String _SpanishName;
|
||||
/// <summary>
|
||||
/// 西文名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "spanish_name")]
|
||||
public System.String SpanishName { get { return this._SpanishName; } set { this._SpanishName = value; } }
|
||||
|
||||
private System.String _ChineseName;
|
||||
/// <summary>
|
||||
/// 中文名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "chinese_name")]
|
||||
public System.String ChineseName { get { return this._ChineseName; } set { this._ChineseName = value; } }
|
||||
|
||||
private System.Decimal? _Price;
|
||||
/// <summary>
|
||||
/// 价格
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "price")]
|
||||
public System.Decimal? Price { get { return this._Price; } set { this._Price = value; } }
|
||||
|
||||
private System.Decimal? _Number;
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "number")]
|
||||
public System.Decimal? Number { get { return this._Number; } set { this._Number = value; } }
|
||||
|
||||
private System.Decimal? _Iva;
|
||||
/// <summary>
|
||||
/// iva
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "iva")]
|
||||
public System.Decimal? Iva { get { return this._Iva; } set { this._Iva = value; } }
|
||||
|
||||
private System.Decimal? _Req;
|
||||
/// <summary>
|
||||
/// req
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "req")]
|
||||
public System.Decimal? Req { get { return this._Req; } set { this._Req = value; } }
|
||||
|
||||
private System.Int32? _IvaId;
|
||||
/// <summary>
|
||||
/// iva_id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "iva_id")]
|
||||
public System.Int32? IvaId { get { return this._IvaId; } set { this._IvaId = value; } }
|
||||
|
||||
private System.Decimal? _Discount;
|
||||
/// <summary>
|
||||
/// 折扣
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "discount")]
|
||||
public System.Decimal? Discount { get { return this._Discount; } set { this._Discount = value; } }
|
||||
|
||||
private System.Boolean? _IsProhibitedChangeDiscount;
|
||||
/// <summary>
|
||||
/// 是否禁止更改折扣:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_prohibited_change_discount")]
|
||||
public System.Boolean? IsProhibitedChangeDiscount { get { return this._IsProhibitedChangeDiscount; } set { this._IsProhibitedChangeDiscount = value; } }
|
||||
|
||||
private System.Decimal? _CostPrice;
|
||||
/// <summary>
|
||||
/// 成本价
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "cost_price")]
|
||||
public System.Decimal? CostPrice { get { return this._CostPrice; } set { this._CostPrice = value; } }
|
||||
|
||||
private System.String _Commentary;
|
||||
/// <summary>
|
||||
/// 批注
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "commentary")]
|
||||
public System.String Commentary { get { return this._Commentary; } set { this._Commentary = value; } }
|
||||
|
||||
private System.Boolean? _IsTemporary;
|
||||
/// <summary>
|
||||
/// 是否是临时的:1 是 0 否
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "is_temporary")]
|
||||
public System.Boolean? IsTemporary { get { return this._IsTemporary; } set { this._IsTemporary = value; } }
|
||||
|
||||
private System.Int32? _OrderId;
|
||||
/// <summary>
|
||||
/// 订单id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "order_id")]
|
||||
public System.Int32? OrderId { get { return this._OrderId; } set { this._OrderId = value; } }
|
||||
|
||||
private System.Decimal? _PackageAmount;
|
||||
/// <summary>
|
||||
/// 包装数量(包数)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "package_amount")]
|
||||
public System.Decimal? PackageAmount { get { return this._PackageAmount; } set { this._PackageAmount = value; } }
|
||||
|
||||
private System.Decimal? _Total;
|
||||
/// <summary>
|
||||
/// 合计
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "total")]
|
||||
public System.Decimal? Total { get { return this._Total; } set { this._Total = value; } }
|
||||
|
||||
private System.String _Remark;
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "remark")]
|
||||
public System.String Remark { get { return this._Remark; } set { this._Remark = value; } }
|
||||
|
||||
private System.String _DelFlag;
|
||||
/// <summary>
|
||||
/// 删除标记:1 删除 0 未删除
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "del_flag")]
|
||||
public System.String DelFlag { get { return this._DelFlag; } set { this._DelFlag = value; } }
|
||||
|
||||
private System.String _UnitName;
|
||||
/// <summary>
|
||||
/// 单位名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "unit_name")]
|
||||
public System.String UnitName { get { return this._UnitName; } set { this._UnitName = value; } }
|
||||
|
||||
private System.String _PurchaseSpec;
|
||||
/// <summary>
|
||||
/// 进货规格
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "purchase_spec")]
|
||||
public System.String PurchaseSpec { get { return this._PurchaseSpec; } set { this._PurchaseSpec = value; } }
|
||||
|
||||
private System.Int32 _Id;
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, ColumnName = "id")]
|
||||
public System.Int32 Id { get { return this._Id; } set { this._Id = value; } }
|
||||
|
||||
private System.Int32 _TenantId;
|
||||
/// <summary>
|
||||
/// 所属租户id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "tenant_id")]
|
||||
public System.Int32 TenantId { get { return this._TenantId; } set { this._TenantId = value; } }
|
||||
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public int Index { get; set; }
|
||||
}
|
||||
}
|
162
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/PurchaseDetailModel.cs
Normal file
162
Src/Asp.Net/MySqlTest/Models/Unit/Custom1/PurchaseDetailModel.cs
Normal file
@ -0,0 +1,162 @@
|
||||
using HONORCSData;
|
||||
using HONORCSData.Goods;
|
||||
using HONORCSData.Order;
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using HONORCSData.Order;
|
||||
namespace OrmTest
|
||||
{
|
||||
/// <summary>
|
||||
/// 采购明细
|
||||
/// </summary>
|
||||
public class PurchaseDetailModel
|
||||
{
|
||||
public int Index { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 录入日期
|
||||
/// </summary>
|
||||
public DateTime? EntryTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// </summary>
|
||||
public string No { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
public int Type { get; set; }
|
||||
|
||||
public string GoodsNo { get; set; }
|
||||
|
||||
public string GoodsName { get; set; }
|
||||
|
||||
|
||||
public string GoodsCategory { get; set; }
|
||||
|
||||
|
||||
public string BrandName { get; set; }
|
||||
|
||||
|
||||
public decimal? Number { get; set; }
|
||||
|
||||
|
||||
public decimal? Price { get; set; }
|
||||
|
||||
public decimal TotalPrice
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Number == null || Price == null) return 0;
|
||||
return Number.Value * Price.Value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public class CustomTest1
|
||||
{
|
||||
/// <summary>
|
||||
/// 采购明细汇总
|
||||
/// </summary>
|
||||
/// <param name="condition"></param>
|
||||
/// <param name="res"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task GetPurchaseDetailPageAsync(SqlSugarClient Db)
|
||||
{
|
||||
Db.CodeFirst.InitTables<EGoods, EGoodsBrand, EGoodsClass>();
|
||||
Db.CodeFirst.InitTables<EOrderAlbaran, EOrderAlbaranDetail, EOrderReturn, EOrderReturnDetail>();
|
||||
//入库单
|
||||
Db.Insertable(new EOrderAlbaranDetail()
|
||||
{
|
||||
AlbaranId = 1,
|
||||
BarCode = "a",
|
||||
ChineseName = "a",
|
||||
Commentary = "a",
|
||||
CostPrice = 1,
|
||||
DelFlag = "a",
|
||||
Discount = 1,
|
||||
GoodsBrandId = 1,
|
||||
GoodsBrandName = "a",
|
||||
GoodsClassId = 1,
|
||||
GoodsClassName = "a",
|
||||
GoodsNo = "a",
|
||||
Id = new Random().Next(0, 99999999),
|
||||
Index = 1,
|
||||
IsBlanceBarCode = true,
|
||||
IsProhibitedChangeDiscount = true,
|
||||
IsTemporary = true,
|
||||
Iva = 1,
|
||||
IvaId = 1,
|
||||
Number = 1,
|
||||
OrderId = 1,
|
||||
PackageAmount = 1,
|
||||
Price = 1,
|
||||
PurchaseSpec = "",
|
||||
Remark = "a",
|
||||
Req = 1,
|
||||
SpanishName = "a",
|
||||
TenantId = 1,
|
||||
Total = 1,
|
||||
UnitName = "a"
|
||||
}).ExecuteCommand();
|
||||
var query1 = Db.Queryable<EOrderAlbaranDetail, EOrderAlbaran, EGoods, EGoodsClass, EGoodsBrand>((d, h, g, c, b) => new JoinQueryInfos(
|
||||
JoinType.Left, h.AlbaranId == d.AlbaranId,
|
||||
JoinType.Left, d.GoodsNo == g.GoodsNo,
|
||||
JoinType.Left, g.GoodsClassId == c.GoodsClassId,
|
||||
JoinType.Left, g.BrandId == b.BrandId
|
||||
))
|
||||
.Where((d, h, g, c, b) => h.AlbaranType == null) //固定入库单
|
||||
.Select((d, h, g, c, b) => new PurchaseDetailModel
|
||||
{
|
||||
EntryTime = h.EntryTime,
|
||||
No = h.AlbaranNo,
|
||||
Type = 1,
|
||||
GoodsNo = d.GoodsNo,
|
||||
GoodsName = g.SpanishName,
|
||||
GoodsCategory = c.SpanishName,
|
||||
BrandName = b.BranchSpanishName,
|
||||
Number = d.Number,
|
||||
Price = d.Price
|
||||
});
|
||||
|
||||
//退货单
|
||||
var query2 = Db.Queryable<EOrderReturnDetail, EOrderReturn, EGoods, EGoodsClass, EGoodsBrand>((d, h, g, c, b) => new JoinQueryInfos(
|
||||
JoinType.Left, h.OrderReturnId == d.OrderReturnId,
|
||||
JoinType.Left, d.GoodsNo == g.GoodsNo,
|
||||
JoinType.Left, g.GoodsClassId == c.GoodsClassId,
|
||||
JoinType.Left, g.BrandId == b.BrandId
|
||||
)).Where((d, h, g, c, b) => h.OrderReturnType == 1) //固定入库单
|
||||
.Select((d, h, g, c, b) => new PurchaseDetailModel
|
||||
{
|
||||
EntryTime = h.EntryTime,
|
||||
No = h.OrderReturnNo,
|
||||
Type = 2,
|
||||
GoodsNo = d.GoodsNo,
|
||||
GoodsName = g.SpanishName,
|
||||
GoodsCategory = c.SpanishName,
|
||||
BrandName = b.BranchSpanishName,
|
||||
Number = d.Number,
|
||||
Price = d.Price
|
||||
});
|
||||
SqlSugar.RefAsync<int> totalNum = 0;
|
||||
|
||||
var res2 = await query2.Clone().ToPageListAsync(1, 2, totalNum);
|
||||
var res = await Db.UnionAll(query1, query2).ToPageListAsync(1, 2, totalNum);
|
||||
|
||||
var q = Db.Queryable<Order>().Where(it => it.Id == 1).Select(it => new { id=1});
|
||||
var q2 = q.Clone();
|
||||
var x = q.ToList();
|
||||
var y = q2.ToList();
|
||||
//var res = await Db.UnionAll<PurchaseDetailModel>(query1.Clone(), query2.Clone()).ToPageListAsync(1, 10, totalNum);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -78,6 +78,14 @@
|
||||
<Compile Include="Models\OrderItem.cs" />
|
||||
<Compile Include="Models\TestTree.cs" />
|
||||
<Compile Include="Models\Tree.cs" />
|
||||
<Compile Include="Models\Unit\Custom1\EGoods.cs" />
|
||||
<Compile Include="Models\Unit\Custom1\EGoodsBrand.cs" />
|
||||
<Compile Include="Models\Unit\Custom1\EGoodsClass.cs" />
|
||||
<Compile Include="Models\Unit\Custom1\EOrderAlbaran.cs" />
|
||||
<Compile Include="Models\Unit\Custom1\EOrderAlbaranDetail.cs" />
|
||||
<Compile Include="Models\Unit\Custom1\EOrderReturn.cs" />
|
||||
<Compile Include="Models\Unit\Custom1\EOrderReturnDetail.cs" />
|
||||
<Compile Include="Models\Unit\Custom1\PurchaseDetailModel.cs" />
|
||||
<Compile Include="Models\ViewOrder.cs" />
|
||||
<Compile Include="UnitTest\UQueue.cs" />
|
||||
<Compile Include="_OldTests\Demos\1_Query.cs" />
|
||||
|
@ -78,6 +78,10 @@ namespace OrmTest
|
||||
CheckMan = saleOrderInfo.CheckMan,
|
||||
CheckTime = DateTime.Now
|
||||
}, o => o.OrderSn == saleOrderInfo.OrderSn && o.OrderStatus != 1);
|
||||
|
||||
|
||||
var task=CustomTest1.GetPurchaseDetailPageAsync(Db);
|
||||
task.Wait();
|
||||
}
|
||||
|
||||
public static class IEnumerbleContains
|
||||
|
@ -1958,7 +1958,27 @@ namespace SqlSugar
|
||||
protected void CopyQueryBuilder(QueryBuilder asyncQueryableBuilder)
|
||||
{
|
||||
var pars = new List<SugarParameter>();
|
||||
pars.AddRange(this.QueryBuilder.Parameters);
|
||||
if (this.QueryBuilder.Parameters != null)
|
||||
{
|
||||
pars=this.QueryBuilder.Parameters.Select(it=>new SugarParameter(it.ParameterName,it.Value) {
|
||||
DbType=it.DbType,
|
||||
Value=it.Value,
|
||||
ParameterName=it.ParameterName,
|
||||
Direction=it.Direction,
|
||||
IsArray=it.IsArray,
|
||||
IsJson=it.IsJson,
|
||||
IsNullable=it.IsNullable,
|
||||
IsRefCursor=it.IsRefCursor,
|
||||
Size=it.Size,
|
||||
SourceColumn=it.SourceColumn,
|
||||
SourceColumnNullMapping=it.SourceColumnNullMapping,
|
||||
SourceVersion=it.SourceVersion,
|
||||
TempDate=it.TempDate,
|
||||
TypeName=it.TypeName,
|
||||
UdtTypeName=it.UdtTypeName,
|
||||
_Size=it._Size
|
||||
}).ToList();
|
||||
}
|
||||
asyncQueryableBuilder.Take = this.QueryBuilder.Take;
|
||||
asyncQueryableBuilder.Skip = this.QueryBuilder.Skip;
|
||||
asyncQueryableBuilder.SelectValue = this.QueryBuilder.SelectValue;
|
||||
|
Loading…
Reference in New Issue
Block a user