From 497f8cfd1f4852fd760f6296fdf2cbe5e651c5b5 Mon Sep 17 00:00:00 2001 From: chenchun <454313500@qq.com> Date: Mon, 2 Jan 2023 15:08:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0erp=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yi-sqlsugar-dev.db | Bin 282624 -> 307200 bytes .../ERP/Entitys/PurchaseDetailsEntity.cs | 58 +++++++++++++++ .../ERP/Entitys/PurchaseEntity.cs | 68 ++++++++++++++++++ .../ERP/Entitys/SupplierEntity.cs | 58 +++++++++++++++ .../Yi.Framework.Model.csproj | 4 ++ 5 files changed, 188 insertions(+) create mode 100644 Yi.Framework.Net6/Yi.Framework.Model/ERP/Entitys/PurchaseDetailsEntity.cs create mode 100644 Yi.Framework.Net6/Yi.Framework.Model/ERP/Entitys/PurchaseEntity.cs create mode 100644 Yi.Framework.Net6/Yi.Framework.Model/ERP/Entitys/SupplierEntity.cs diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db index 24c8ecac083402dc46b60b17098cda4a6559be72..ccd667bb1fd1ab2b8c760873cf74e795d59f2584 100644 GIT binary patch delta 853 zcmZozAlUFgXo9q$5d#B*HxR>s@6=VA869IIJBarUsPaE3A;<`iHmKNjx5aQ_M1_9z#lbB3fQ5(Pj15Cy+bA0Gt;kWRP63b002 z*WAR+91v5IRY5^h-)izhUKtOVZSjUMmUokvImEf?VCM#u7A0pS7N^2!4^-zug{M!{ zW7NXpTs6Pc)Rd6ST%hYx5=&A`fGjlkIh9tX7J-~4SD#;!nBxodNhJ=i1SDpr;FX6u zHMj(5m68H5EK<``i;(OC`nxI4lwDj?ld+{7#dj{LC5gJ3IWSLxxS2U_SiPDGk%Y$& z4=9vj8YfTW5#a@gyD!iUMVW~?Adz~oNN8SWNkCC%GSF#hIr)j`5fuXRzF%o>Qfd(n z|2yaB7UZOsq~cW+l$x7ZlwGW(P?iXaxFQWB1B2=Nt}^p51AV_;3uhuWwsaJWbQ3nWZ6=VA869IIJBarUsPaE5Lc6kuZAu5y)mGc#ukL%q1TIAgQ%^tIQSOPO>{ QruW@smf2o>lexDH0I~fbn*aa+ diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ERP/Entitys/PurchaseDetailsEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ERP/Entitys/PurchaseDetailsEntity.cs new file mode 100644 index 00000000..7be7da5d --- /dev/null +++ b/Yi.Framework.Net6/Yi.Framework.Model/ERP/Entitys/PurchaseDetailsEntity.cs @@ -0,0 +1,58 @@ +using Newtonsoft.Json; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Yi.Framework.Model.Base; + +namespace Yi.Framework.Model.ERP.Entitys +{ + /// + /// 采购订单字表 + /// + [SugarTable("PurchaseDetail")] + public class PurchaseDetailsEntity : IEntity, IMultiTenant + { + /// + /// 主键 + /// + [JsonConverter(typeof(ValueToStringConverter))] + [SugarColumn(IsPrimaryKey = true)] + public long Id { get; set; } + + /// + /// 租户id + /// + public Guid? TenantId { get; set; } + + /// + /// 采购单id + /// + public long PurchaseId { get; set; } + + /// + /// 物料id + /// + public long MaterialId { get; set; } + + /// + /// 单价 + /// + + public float UnitPrice { get; set; } + /// + /// 总数量 + /// + public long TotalNumber { get; set; } + /// + /// 已完成数量 + /// + public long CompleteNumber { get; set; } + /// + /// 备注 + /// + public string Remarks { get; set; } + } +} diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ERP/Entitys/PurchaseEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ERP/Entitys/PurchaseEntity.cs new file mode 100644 index 00000000..b511c5a9 --- /dev/null +++ b/Yi.Framework.Net6/Yi.Framework.Model/ERP/Entitys/PurchaseEntity.cs @@ -0,0 +1,68 @@ +using Newtonsoft.Json; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Yi.Framework.Model.Base; + +namespace Yi.Framework.Model.ERP.Entitys +{ + /// + /// 采购订单 + /// + [SugarTable("Purchase")] + public class PurchaseEntity : IEntity, IMultiTenant + { + /// + /// 主键 + /// + [JsonConverter(typeof(ValueToStringConverter))] + [SugarColumn(IsPrimaryKey = true)] + public long Id { get; set; } + + /// + /// 租户id + /// + public Guid? TenantId { get; set; } + + /// + /// 采购单号 + /// + public string Code { get; set; } + + /// + /// 需求时间 + /// + public DateTime NeedTime { get; set; } + + /// + /// 采购员 + /// + public string Buyer { get; set; } + + /// + /// 总共金额 + /// + public long TotalMoney { get; set; } + + /// + /// 已支付金额 + /// + public long PaidMoney { get; set; } + + /// + /// 采购状态 + /// + public PurchaseStateEnum PurchaseState { get; set; } + } + + public enum PurchaseStateEnum + { + Build=0,//新建 + Run=1,//进行中 + Complete=2,//已完成 + End=3//已结束 + } +} diff --git a/Yi.Framework.Net6/Yi.Framework.Model/ERP/Entitys/SupplierEntity.cs b/Yi.Framework.Net6/Yi.Framework.Model/ERP/Entitys/SupplierEntity.cs new file mode 100644 index 00000000..11217e4b --- /dev/null +++ b/Yi.Framework.Net6/Yi.Framework.Model/ERP/Entitys/SupplierEntity.cs @@ -0,0 +1,58 @@ +using Newtonsoft.Json; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Yi.Framework.Model.Base; + +namespace Yi.Framework.Model.ERP.Entitys +{ + /// + /// 供应商 + /// + [SugarTable("Supplier")] + public class SupplierEntity : IEntity, IMultiTenant + { + /// + /// 主键 + /// + [JsonConverter(typeof(ValueToStringConverter))] + [SugarColumn(IsPrimaryKey = true)] + public long Id { get; set; } + + /// + /// 租户id + /// + public Guid? TenantId { get; set; } + + /// + /// 供应商编码 + /// + public string Code { get; set; } + + /// + /// 供应商名称 + /// + public string Name { get; set; } + + /// + /// 供应商地址 + /// + public string Address { get; set; } + + /// + /// 电话 + /// + public long Phone { get; set; } + /// + /// 传真 + /// + public string Fax { get; set; } + /// + /// 邮箱 + /// + public string Email { get; set; } + } +} diff --git a/Yi.Framework.Net6/Yi.Framework.Model/Yi.Framework.Model.csproj b/Yi.Framework.Net6/Yi.Framework.Model/Yi.Framework.Model.csproj index 38505875..bc576f7a 100644 --- a/Yi.Framework.Net6/Yi.Framework.Model/Yi.Framework.Model.csproj +++ b/Yi.Framework.Net6/Yi.Framework.Model/Yi.Framework.Model.csproj @@ -50,4 +50,8 @@ + + + +