using JNPF.Common.Contracts; using JNPF.Common.Security; using SqlSugar; using Tnb.WarehouseMgr.Entities.Entity.Constraints; namespace Tnb.WarehouseMgr.Entities; /// /// 销售发货主表 /// [SugarTable("wms_sale_h")] public partial class WmsSaleH : BaseEntity, IPurchaseAndSaleAuitEntity { public WmsSaleH() { id = SnowflakeIdHelper.NextId(); } /// /// 租户ID /// public string? tenant_id { get; set; } /// /// 所属组织ID /// public string? org_id { get; set; } /// /// 销售发货单号 /// public string bill_code { get; set; } = string.Empty; /// /// 单据类型 /// public string bill_type { get; set; } = string.Empty; /// /// 单据状态 /// public string status { get; set; } = string.Empty; /// /// 业务类型 /// public string biz_type { get; set; } = string.Empty; /// /// 出库仓库ID /// public string? warehouse_id { get; set; } /// /// 客户ID /// public string? customer_id { get; set; } /// /// 客户代码 /// public string? customer_code { get; set; } /// /// 客户名称 /// public string? customer_name { get; set; } /// /// 生成类型 /// public string generate_type { get; set; } = string.Empty; /// /// 备注 /// public string? remark { get; set; } /// /// 扩展字段 /// public string? extras { get; set; } /// /// 时间戳 /// public DateTime? time_stamp { get; set; } /// /// 创建用户 /// public string create_id { get; set; } = string.Empty; /// /// 创建时间 /// public DateTime create_time { get; set; } = DateTime.Now; /// /// 修改用户 /// public string? modify_id { get; set; } /// /// 修改时间 /// public DateTime? modify_time { get; set; } /// /// 来源单据ID /// public string? source_id { get; set; } /// /// 来源单据代码 /// public string? source_code { get; set; } /// /// 流程任务Id /// public string? f_flowtaskid { get; set; } /// /// 流程引擎Id /// public string? f_flowid { get; set; } /// /// 供货日期 /// public DateTime ship_date { get; set; } = DateTime.Now; /// /// 审核员 /// public string? auditor_id { get; set; } /// /// 运输方式 /// public string? shipping_method { get; set; } /// /// 审核状态 /// public int? audit_status { get; set; } /// /// erp_pk /// public string? erp_pk { get; set; } /// /// erp_bill_code /// public string? erp_bill_code { get; set; } /// /// erp仓库类型 /// public string? erp_wh_type { get; set; } }