diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasCustomer.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasCustomer.cs index 698ae11b..5d851bc9 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasCustomer.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasCustomer.cs @@ -1,6 +1,7 @@ -using System; +using System; using System.Linq; using System.Text; +using JNPF.Common.Security; using SqlSugar; namespace Tnb.BasicData.Entities @@ -13,20 +14,6 @@ namespace Tnb.BasicData.Entities { public BasCustomer(){ - this.org_id =Convert.ToString("NULL::character varying"); - this.short_name =Convert.ToString("NULL::character varying"); - this.full_address =Convert.ToString("NULL::character varying"); - this.postal_code =Convert.ToString("NULL::character varying"); - this.country =Convert.ToString("NULL::character varying"); - this.province =Convert.ToString("NULL::character varying"); - this.city =Convert.ToString("NULL::character varying"); - this.district =Convert.ToString("NULL::character varying"); - this.street =Convert.ToString("NULL::character varying"); - this.contact_name =Convert.ToString("NULL::character varying"); - this.contact_phone =Convert.ToString("NULL::character varying"); - this.contact_mobile =Convert.ToString("NULL::character varying"); - this.create_id =Convert.ToString("NULL::character varying"); - this.modify_id =Convert.ToString("NULL::character varying"); } /// @@ -35,21 +22,21 @@ namespace Tnb.BasicData.Entities /// Nullable:False /// [SugarColumn(IsPrimaryKey=true)] - public string id {get;set;} + public string id {get;set;} = SnowflakeIdHelper.NextId(); /// /// Desc:客户代码 /// Default: /// Nullable:False /// - public string customer_code {get;set;} + public string customer_code {get;set;} = string.Empty; /// /// Desc:客户名称 /// Default: /// Nullable:False /// - public string customer_name {get;set;} + public string customer_name {get;set;} = string.Empty; /// /// Desc:所属组织 diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasDefect.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasDefect.cs new file mode 100644 index 00000000..04e79191 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasDefect.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///次品项 + /// + [SugarTable("bas_defect")] + public partial class BasDefect + { + public BasDefect(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:排序 + /// Default: + /// Nullable:True + /// + public long? ordinal {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:次品类型 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? defect_type_id {get;set;} + + /// + /// Desc:缺陷代码 + /// Default: + /// Nullable:True + /// + public string? defect_code {get;set;} + + /// + /// Desc:缺陷名称 + /// Default: + /// Nullable:True + /// + public string? defect_name {get;set;} + + /// + /// Desc:是否启用 + /// Default: + /// Nullable:False + /// + public short enabled {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasDefectType.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasDefectType.cs index d79d2ff6..c37660ab 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasDefectType.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasDefectType.cs @@ -1,6 +1,7 @@ -using System; +using System; using System.Linq; using System.Text; +using JNPF.Common.Security; using SqlSugar; namespace Tnb.BasicData.Entities @@ -15,27 +16,20 @@ namespace Tnb.BasicData.Entities } - /// - /// Desc:次品类名称 - /// Default:NULL::character varying - /// Nullable:True - /// - public string defect_type_name {get;set;} - - /// - /// Desc:次品类代码 - /// Default:NULL::character varying - /// Nullable:True - /// - public string defect_type_code {get;set;} - /// /// Desc:编号 /// Default: /// Nullable:False /// [SugarColumn(IsPrimaryKey=true)] - public string id {get;set;} + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} /// /// Desc:创建时间 @@ -44,6 +38,13 @@ namespace Tnb.BasicData.Entities /// public DateTime? create_time {get;set;} + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + /// /// Desc:修改时间 /// Default: @@ -51,26 +52,26 @@ namespace Tnb.BasicData.Entities /// public DateTime? modify_time {get;set;} - /// - /// Desc:创建用户 - /// Default:NULL::character varying - /// Nullable:True - /// - public string create_id {get;set;} - - /// - /// Desc:修改用户 - /// Default:NULL::character varying - /// Nullable:True - /// - public string modify_id {get;set;} - /// /// Desc:所属组织 /// Default:NULL::character varying /// Nullable:True /// - public string org_id {get;set;} + public string? org_id {get;set;} + + /// + /// Desc:次品类名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? defect_type_name {get;set;} + + /// + /// Desc:次品类代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? defect_type_code {get;set;} /// /// Desc:是否启用 diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasDoc.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasDoc.cs new file mode 100644 index 00000000..b76d4377 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasDoc.cs @@ -0,0 +1,147 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///文档数据表 + /// + [SugarTable("bas_doc")] + public partial class BasDoc + { + public BasDoc(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:文档编号 + /// Default: + /// Nullable:False + /// + public string doc_code {get;set;} = string.Empty; + + /// + /// Desc:文档名称 + /// Default: + /// Nullable:False + /// + public string doc_name {get;set;} = string.Empty; + + /// + /// Desc:文档后缀 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? doc_extension {get;set;} + + /// + /// Desc:文档唯一码 GUID 的文本 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? doc_unique_code {get;set;} + + /// + /// Desc:文档版本 + /// Default: + /// Nullable:False + /// + public decimal doc_version {get;set;} + + /// + /// Desc:文档目录代码 + /// Default: + /// Nullable:False + /// + public string direcrory_code {get;set;} = string.Empty; + + /// + /// Desc:文档类型代码 + /// Default: + /// Nullable:False + /// + public string doc_type_code {get;set;} = string.Empty; + + /// + /// Desc:对应产品,没有实际意义,初次设定 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? item_code {get;set;} + + /// + /// Desc:0-未审核,1-审核中,2-审核通过,3-未通过 + /// Default: + /// Nullable:True + /// + public int? status {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发管理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasDocDirectory.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasDocDirectory.cs new file mode 100644 index 00000000..3ae2e564 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasDocDirectory.cs @@ -0,0 +1,112 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///文档目录 + /// + [SugarTable("bas_doc_directory")] + public partial class BasDocDirectory + { + public BasDocDirectory(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:父级目录ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? parent_id {get;set;} + + /// + /// Desc:文档目录代码 + /// Default: + /// Nullable:False + /// + public string directory_code {get;set;} = string.Empty; + + /// + /// Desc:文档目录名称 + /// Default: + /// Nullable:False + /// + public string directory_name {get;set;} = string.Empty; + + /// + /// Desc:目录下文件是否需要审核 + /// Default: + /// Nullable:False + /// + public string need_review {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasDocType.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasDocType.cs new file mode 100644 index 00000000..d82f83ed --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasDocType.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///文档类型 + /// + [SugarTable("bas_doc_type")] + public partial class BasDocType + { + public BasDocType(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:文档类型代码 + /// Default: + /// Nullable:False + /// + public string doc_type_code {get;set;} = string.Empty; + + /// + /// Desc:文档类型名称 + /// Default: + /// Nullable:False + /// + public string doc_type_name {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasEbomD.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasEbomD.cs index a759581f..367fcc59 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasEbomD.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasEbomD.cs @@ -1,5 +1,8 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; using SqlSugar; -using Tnb.Common.Contracts; namespace Tnb.BasicData.Entities { @@ -7,108 +10,103 @@ namespace Tnb.BasicData.Entities ///物料清单子表 /// [SugarTable("bas_ebom_d")] - public class BasEbomD : BaseEntity + public partial class BasEbomD { - public BasEbomD(){ + public BasEbomD(){ - } + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:父件物料ID - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="ebom_id")] - public string ebom_id {get;set;} - - /// - /// Desc:物料编号/名称 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="material_id")] - public string material_id {get;set;} - - /// - /// Desc:规格描述 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="descrip")] - public string descrip {get;set;} - - /// - /// Desc:单位id - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="unit_id")] - public string unit_id {get;set;} - - /// - /// Desc:数量 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="quantity")] - public string quantity {get;set;} - - /// - /// Desc:损耗率 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="loss_rate")] - public string loss_rate {get;set;} - - /// - /// Desc:替代物料 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="substitute_material_id")] - public string substitute_material_id {get;set;} - - /// - /// Desc:投料管控 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="feeding_control")] - public string feeding_control {get;set;} - - /// - /// Desc:需要称量 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="require_weight")] - public string require_weight {get;set;} - - /// - /// Desc:版本号 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="version")] - public string version {get;set;} - - /// - /// Desc:工艺路线 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="route_id")] - public string route_id {get;set;} - - /// - /// Desc:工艺路线名称 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="route_id")] - public string route_name {get;set;} + /// + /// Desc:父件物料ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? ebom_id {get;set;} + + /// + /// Desc:物料编号/名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_id {get;set;} + + /// + /// Desc:描述 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? descrip {get;set;} + + /// + /// Desc:单位id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? unit_id {get;set;} + + /// + /// Desc:数量 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? quantity {get;set;} + + /// + /// Desc:损耗率 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? loss_rate {get;set;} + + /// + /// Desc:替代物料 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? substitute_material_id {get;set;} + + /// + /// Desc:投料管控 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? feeding_control {get;set;} + + /// + /// Desc:需要称量 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? require_weight {get;set;} + + /// + /// Desc:版本号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? version {get;set;} + + /// + /// Desc:工艺路线 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? route_id {get;set;} + + /// + /// Desc:工艺路线名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? route_name {get;set;} } -} \ No newline at end of file +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasEbomH.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasEbomH.cs index 8ec9980c..28d16f78 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasEbomH.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasEbomH.cs @@ -1,5 +1,8 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; using SqlSugar; -using Tnb.Common.Contracts; namespace Tnb.BasicData.Entities { @@ -7,124 +10,117 @@ namespace Tnb.BasicData.Entities ///物料清单父表 /// [SugarTable("bas_ebom_h")] - public class BasEbomH : BaseEntity + public partial class BasEbomH { - public BasEbomH(){ + public BasEbomH(){ - } + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:创建时间 - /// Default: - /// Nullable:True - /// - [SugarColumn(ColumnName="create_time")] - public DateTime? create_time {get;set;} + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} - /// - /// Desc:修改时间 - /// Default: - /// Nullable:True - /// - [SugarColumn(ColumnName="modify_time")] - public DateTime? modify_time {get;set;} + /// + /// Desc:成品物料编号/名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_id {get;set;} - /// - /// Desc:扩展字段 - /// Default: - /// Nullable:True - /// - [SugarColumn(ColumnName="extras")] - public string extras {get;set;} + /// + /// Desc:描述 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? descrip {get;set;} - /// - /// Desc:所属组织 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="org_id")] - public string org_id {get;set;} + /// + /// Desc:数量 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? quantity {get;set;} - /// - /// Desc:成品物料编号/名称 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="material_id")] - public string material_id {get;set;} + /// + /// Desc:单位id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? unit_id {get;set;} - /// - /// Desc:规格描述 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="descrip")] - public string descrip {get;set;} + /// + /// Desc:状态 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? status {get;set;} - /// - /// Desc:数量 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="quantity")] - public string quantity {get;set;} + /// + /// Desc:版本号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? version {get;set;} - /// - /// Desc:单位id - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="unit_id")] - public string unit_id {get;set;} + /// + /// Desc:工艺路线id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? route_id {get;set;} - /// - /// Desc:状态 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="status")] - public string status {get;set;} + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} - /// - /// Desc:版本号 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="version")] - public string version {get;set;} + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} - /// - /// Desc:工艺路线id - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="route_id")] - public string route_id {get;set;} + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} - /// - /// Desc:创建用户 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="create_id")] - public string create_id {get;set;} + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} - /// - /// Desc:修改用户 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="modify_id")] - public string modify_id {get;set;} - - /// - /// Desc:仅用于关联表字段查询用不存储数据 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="query_info")] - public string query_info {get;set;} + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:仅用于关联表字段查询用不存储数据 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? query_info {get;set;} } -} \ No newline at end of file +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasFactory.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasFactory.cs new file mode 100644 index 00000000..09ae9aa3 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasFactory.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///工厂资料 + /// + [SugarTable("bas_factory")] + public partial class BasFactory + { + public BasFactory(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工厂代码 + /// Default: + /// Nullable:False + /// + public string factory_code {get;set;} = string.Empty; + + /// + /// Desc:工厂名称 + /// Default: + /// Nullable:False + /// + public string factory_name {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasLabelParameter.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasLabelParameter.cs new file mode 100644 index 00000000..ccdc0144 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasLabelParameter.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///标签参数维护 + /// + [SugarTable("bas_label_parameter")] + public partial class BasLabelParameter + { + public BasLabelParameter(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:标签参数代码 + /// Default: + /// Nullable:False + /// + public string parameter_code {get;set;} = string.Empty; + + /// + /// Desc:标签参数名称 + /// Default: + /// Nullable:False + /// + public string parameter_name {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasLabelRule.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasLabelRule.cs new file mode 100644 index 00000000..f7d0f0c2 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasLabelRule.cs @@ -0,0 +1,161 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///条码标签规则 + /// + [SugarTable("bas_label_rule")] + public partial class BasLabelRule + { + public BasLabelRule(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:规则代码 + /// Default: + /// Nullable:False + /// + public string rule_code {get;set;} = string.Empty; + + /// + /// Desc:规则名称 + /// Default: + /// Nullable:False + /// + public string rule_name {get;set;} = string.Empty; + + /// + /// Desc:条码类型(数据字典): MaterialLot:批次物料条码; MaterialKeyparts:单件物料条码; Product:产品条码; Carton:箱号条码; Pallet:栈板条码; + /// Default: + /// Nullable:False + /// + public string sn_type {get;set;} = string.Empty; + + /// + /// Desc:前缀 + /// Default: + /// Nullable:False + /// + public string prefix {get;set;} = string.Empty; + + /// + /// Desc:年度 + /// Default: + /// Nullable:False + /// + public int year {get;set;} + + /// + /// Desc:季度 + /// Default: + /// Nullable:False + /// + public int quarter {get;set;} + + /// + /// Desc:月份 + /// Default: + /// Nullable:False + /// + public int month {get;set;} + + /// + /// Desc:周别 + /// Default: + /// Nullable:False + /// + public int week {get;set;} + + /// + /// Desc:日期 + /// Default: + /// Nullable:False + /// + public int date {get;set;} + + /// + /// Desc:流水码长度 + /// Default: + /// Nullable:False + /// + public int serial_lenth {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:系统类型 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? system_type {get;set;} + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasLabelStyle.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasLabelStyle.cs new file mode 100644 index 00000000..6aa9c8cd --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasLabelStyle.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///标签样式(BS打印) + /// + [SugarTable("bas_label_style")] + public partial class BasLabelStyle + { + public BasLabelStyle(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:标签类型代码 + /// Default: + /// Nullable:False + /// + public string label_type_code {get;set;} = string.Empty; + + /// + /// Desc:标签类型名称 + /// Default: + /// Nullable:False + /// + public string label_type_name {get;set;} = string.Empty; + + /// + /// Desc:标签模板内容 + /// Default: + /// Nullable:False + /// + public string label_content {get;set;} = string.Empty; + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasLabelTemplate.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasLabelTemplate.cs new file mode 100644 index 00000000..2fb4c505 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasLabelTemplate.cs @@ -0,0 +1,112 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///标签模板维护 + /// + [SugarTable("bas_label_template")] + public partial class BasLabelTemplate + { + public BasLabelTemplate(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:模板代码 + /// Default: + /// Nullable:False + /// + public string templat_code {get;set;} = string.Empty; + + /// + /// Desc:模板名称 + /// Default: + /// Nullable:False + /// + public string templat_name {get;set;} = string.Empty; + + /// + /// Desc:条码类型(数据字典): MaterialLot:批次物料条码; MaterialKeyparts:单件物料条码; Product:产品条码; Carton:箱号条码; Pallet:栈板条码; + /// Default: + /// Nullable:False + /// + public string sn_type {get;set;} = string.Empty; + + /// + /// Desc:模板路径(可以不选择路径,Copy粘贴亦可) + /// Default: + /// Nullable:False + /// + public string template_path {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasLabelTemplateParameter.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasLabelTemplateParameter.cs new file mode 100644 index 00000000..b218625b --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasLabelTemplateParameter.cs @@ -0,0 +1,112 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///标签模板与参数的关联信息 + /// + [SugarTable("bas_label_template_parameter")] + public partial class BasLabelTemplateParameter + { + public BasLabelTemplateParameter(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:标签模板ID + /// Default: + /// Nullable:False + /// + public string template_id {get;set;} = string.Empty; + + /// + /// Desc:模板代码 + /// Default: + /// Nullable:False + /// + public string templat_code {get;set;} = string.Empty; + + /// + /// Desc:标签参数ID + /// Default: + /// Nullable:False + /// + public string parameter_id {get;set;} = string.Empty; + + /// + /// Desc:参数代码 + /// Default: + /// Nullable:False + /// + public string parameter_code {get;set;} = string.Empty; + + /// + /// Desc:参数顺序 + /// Default: + /// Nullable:False + /// + public int parameter_seq {get;set;} + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasLocation.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasLocation.cs new file mode 100644 index 00000000..1ecd9be1 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasLocation.cs @@ -0,0 +1,168 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///库位资料 + /// + [SugarTable("bas_location")] + public partial class BasLocation + { + public BasLocation(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:库位代码(库位编号唯一) + /// Default: + /// Nullable:False + /// + public string location_code {get;set;} = string.Empty; + + /// + /// Desc:货架ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? rack_id {get;set;} + + /// + /// Desc:区域ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? region_id {get;set;} + + /// + /// Desc:仓库ID + /// Default: + /// Nullable:False + /// + public string wh_id {get;set;} = string.Empty; + + /// + /// Desc:是否使用 + /// Default: + /// Nullable:False + /// + public string is_use {get;set;} = string.Empty; + + /// + /// Desc:是否最小 + /// Default: + /// Nullable:False + /// + public int is_mix {get;set;} + + /// + /// Desc:层数 + /// Default: + /// Nullable:False + /// + public int layers {get;set;} + + /// + /// Desc:位置序号 + /// Default: + /// Nullable:False + /// + public int seq {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:是否锁定 + /// Default: + /// Nullable:False + /// + public int is_lock {get;set;} + + /// + /// Desc:库位类型 + /// Default: + /// Nullable:False + /// + public string is_type {get;set;} = string.Empty; + + /// + /// Desc:是否签收 + /// Default: + /// Nullable:False + /// + public int is_sign {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:True + /// + public int? timestamp {get;set;} + + /// + /// Desc:楼层 + /// Default: + /// Nullable:False + /// + public int floor {get;set;} + + /// + /// Desc:库位名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? location_name {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasLocationMaterial.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasLocationMaterial.cs new file mode 100644 index 00000000..c0bf92ee --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasLocationMaterial.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///库位物料资料 + /// + [SugarTable("bas_location_material")] + public partial class BasLocationMaterial + { + public BasLocationMaterial(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:库位ID + /// Default: + /// Nullable:False + /// + public string location_id {get;set;} = string.Empty; + + /// + /// Desc:库位代码(库位编号唯一) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? location_code {get;set;} + + /// + /// Desc:物料ID,BAS_MATERIAL.ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物料代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_code {get;set;} + + /// + /// Desc:仓库ID + /// Default: + /// Nullable:False + /// + public string warehouse_id {get;set;} = string.Empty; + + /// + /// Desc:区域ID + /// Default: + /// Nullable:False + /// + public long regioni_d {get;set;} + + /// + /// Desc:货架ID + /// Default: + /// Nullable:False + /// + public long rack_id {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasMaterial.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasMaterial.cs index bee3353f..a169f8b8 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasMaterial.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasMaterial.cs @@ -1,5 +1,8 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; using SqlSugar; -using Tnb.Common.Contracts; namespace Tnb.BasicData.Entities { @@ -7,339 +10,348 @@ namespace Tnb.BasicData.Entities ///物料信息 /// [SugarTable("bas_material")] - public class BasMaterial : BaseEntity + public partial class BasMaterial { - public BasMaterial() - { - } + public BasMaterial(){ - /// - /// Desc:批次管理 - /// Default: - /// Nullable:True - /// - public int? is_batch_enabled { get; set; } - /// - /// Desc:标签管理 - /// Default: - /// Nullable:True - /// - public int? is_label_enabled { get; set; } + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:附件 - /// Default:NULL::character varying - /// Nullable:True - /// - public string attachment { get; set; } + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} - /// - /// Desc:先进先出 0否 1是 - /// Default: - /// Nullable:True - /// - public int? first_in_out { get; set; } + /// + /// Desc:物料代码 + /// Default: + /// Nullable:False + /// + public string code {get;set;} = string.Empty; - /// - /// Desc:存储有效期(天) - /// Default: - /// Nullable:True - /// - public int? storage_valid_day { get; set; } + /// + /// Desc:物料名称 + /// Default: + /// Nullable:False + /// + public string name {get;set;} = string.Empty; - /// - /// Desc:预警提前期(天) - /// Default: - /// Nullable:True - /// - public int? early_warn_day { get; set; } + /// + /// Desc:物料分类ID + /// Default: + /// Nullable:False + /// + public string category_id {get;set;} = string.Empty; - /// - /// Desc:安全库存 - /// Default: - /// Nullable:True - /// - public int? safe_stock { get; set; } + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; - /// - /// Desc:发料仓库id - /// Default: - /// Nullable:True - /// - public string send_warehouse_id { get; set; } + /// + /// Desc:单价 + /// Default: + /// Nullable:True + /// + public decimal? cost {get;set;} - /// - /// Desc:入厂单位id - /// Default: - /// Nullable:True - /// - public string into_factory_unit_id { get; set; } + /// + /// Desc:毛重 + /// Default: + /// Nullable:True + /// + public decimal? grossweight {get;set;} - /// - /// Desc:安全库存包含状态 - /// Default:NULL::character varying - /// Nullable:True - /// - public string safe_stock_stauts { get; set; } + /// + /// Desc:净重 + /// Default: + /// Nullable:True + /// + public decimal? netweight {get;set;} - /// - /// Desc:投料单位 - /// Default: - /// Nullable:True - /// - public string material_in_unit_id { get; set; } + /// + /// Desc:长 + /// Default: + /// Nullable:True + /// + public decimal? length {get;set;} - /// - /// Desc:产出单位 - /// Default: - /// Nullable:True - /// - public string material_out_unit_id { get; set; } + /// + /// Desc:宽 + /// Default: + /// Nullable:True + /// + public decimal? width {get;set;} - /// - /// Desc:请料方式 1按计划排程请料 2自行管控 - /// Default: - /// Nullable:True - /// - public string material_request_method { get; set; } + /// + /// Desc:高 + /// Default: + /// Nullable:True + /// + public decimal? high {get;set;} - /// - /// Desc:物料代码 - /// Default: - /// Nullable:False - /// - public string code { get; set; } + /// + /// Desc:体积 + /// Default: + /// Nullable:True + /// + public decimal? volumn {get;set;} - /// - /// Desc:物料名称 - /// Default: - /// Nullable:False - /// - public string name { get; set; } + /// + /// Desc:是否免检 + /// Default: + /// Nullable:True + /// + public int? isexemption {get;set;} - /// - /// Desc:物料分类ID - /// Default: - /// Nullable:False - /// - public string category_id { get; set; } + /// + /// Desc:安全库存 + /// Default: + /// Nullable:True + /// + public decimal? safeqty {get;set;} - /// - /// Desc:单位ID - /// Default: - /// Nullable:False - /// - public string unit_id { get; set; } + /// + /// Desc:保质期 + /// Default: + /// Nullable:True + /// + public int? qualityperiod {get;set;} - /// - /// Desc:单价 - /// Default: - /// Nullable:True - /// - public decimal? cost { get; set; } + /// + /// Desc:是否过期允许出库 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? expireout {get;set;} - /// - /// Desc:毛重 - /// Default: - /// Nullable:True - /// - public decimal? grossweight { get; set; } + /// + /// Desc:最小包装 + /// Default: + /// Nullable:True + /// + public decimal? minpacking {get;set;} - /// - /// Desc:净重 - /// Default: - /// Nullable:True - /// - public decimal? netweight { get; set; } + /// + /// Desc:是否先进先出管控 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? fifo {get;set;} - /// - /// Desc:长 - /// Default: - /// Nullable:True - /// - public decimal? length { get; set; } + /// + /// Desc:先进先出间隔天数,批次间隔天数 + /// Default: + /// Nullable:True + /// + public int? fifo_interval_days {get;set;} - /// - /// Desc:宽 - /// Default: - /// Nullable:True - /// - public decimal? width { get; set; } + /// + /// Desc:物料规格型号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_standard {get;set;} - /// - /// Desc:高 - /// Default: - /// Nullable:True - /// - public decimal? high { get; set; } + /// + /// Desc:海关编码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? fhscode {get;set;} - /// - /// Desc:体积 - /// Default: - /// Nullable:True - /// - public decimal? volumn { get; set; } + /// + /// Desc:附属性 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? attribute {get;set;} - /// - /// Desc:是否免检 - /// Default: - /// Nullable:True - /// - public int? isexemption { get; set; } + /// + /// Desc:管控类型: 批管控:Lot 单管控:KeyParts 非管控:NoControl + /// Default:NULL::character varying + /// Nullable:True + /// + public string? controltype {get;set;} - /// - /// Desc:安全库存 - /// Default: - /// Nullable:True - /// - public decimal? safeqty { get; set; } + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} - /// - /// Desc:保质期 - /// Default: - /// Nullable:True - /// - public int? qualityperiod { get; set; } + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} - /// - /// Desc:最小包装 - /// Default: - /// Nullable:True - /// - public decimal? minpacking { get; set; } + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} - /// - /// Desc:先进先出间隔天数,批次间隔天数 - /// Default: - /// Nullable:True - /// - public int? fifo_interval_days { get; set; } + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} - /// - /// Desc:创建时间 - /// Default: - /// Nullable:True - /// - public DateTime? create_time { get; set; } + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} - /// - /// Desc:最后修改时间 - /// Default: - /// Nullable:True - /// - public DateTime? modify_time { get; set; } + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} - /// - /// Desc:扩展字段 - /// Default: - /// Nullable:True - /// - public string extras { get; set; } + /// + /// Desc:状态 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? state {get;set;} - /// - /// Desc:所属组织ID - /// Default:NULL::character varying - /// Nullable:True - /// - public string org_id { get; set; } + /// + /// Desc:物料属性 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_property {get;set;} - /// - /// Desc:是否过期允许出库 - /// Default:NULL::character varying - /// Nullable:True - /// - public string expireout { get; set; } + /// + /// Desc:标签 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? label {get;set;} - /// - /// Desc:是否先进先出管控 - /// Default:NULL::character varying - /// Nullable:True - /// - public string fifo { get; set; } + /// + /// Desc:描述 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? descrip {get;set;} - /// - /// Desc:物料规格型号 - /// Default:NULL::character varying - /// Nullable:True - /// - public string material_standard { get; set; } + /// + /// Desc:批次管理 + /// Default: + /// Nullable:True + /// + public int? is_batch_enabled {get;set;} - /// - /// Desc:海关编码 - /// Default:NULL::character varying - /// Nullable:True - /// - public string fhscode { get; set; } + /// + /// Desc:标签管理 + /// Default: + /// Nullable:True + /// + public int? is_label_enabled {get;set;} - /// - /// Desc:附属性 - /// Default:NULL::character varying - /// Nullable:True - /// - public string attribute { get; set; } + /// + /// Desc:附件 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? attachment {get;set;} - /// - /// Desc:管控类型: 批管控:Lot 单管控:KeyParts 非管控:NoControl - /// Default:NULL::character varying - /// Nullable:True - /// - public string controltype { get; set; } + /// + /// Desc:先进先出 0否 1是 + /// Default: + /// Nullable:True + /// + public int? first_in_out {get;set;} - /// - /// Desc:备注 - /// Default:NULL::character varying - /// Nullable:True - /// - public string remark { get; set; } + /// + /// Desc:存储有效期(天) + /// Default: + /// Nullable:True + /// + public int? storage_valid_day {get;set;} - /// - /// Desc:创建人员ID - /// Default:NULL::character varying - /// Nullable:True - /// - public string create_id { get; set; } + /// + /// Desc:预警提前期(天) + /// Default: + /// Nullable:True + /// + public int? early_warn_day {get;set;} - /// - /// Desc:最后修改人员ID - /// Default:NULL::character varying - /// Nullable:True - /// - public string modify_id { get; set; } + /// + /// Desc:安全库存 + /// Default: + /// Nullable:True + /// + public int? safe_stock {get;set;} - /// - /// Desc:状态 - /// Default:NULL::character varying - /// Nullable:True - /// - public string state { get; set; } + /// + /// Desc:安全库存包含状态 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? safe_stock_stauts {get;set;} - /// - /// Desc:物料属性 - /// Default:NULL::character varying - /// Nullable:True - /// - public string material_property { get; set; } + /// + /// Desc:发料仓库id + /// Default: + /// Nullable:True + /// + public string? send_warehouse_id {get;set;} - /// - /// Desc:标签 - /// Default:NULL::character varying - /// Nullable:True - /// - public string label { get; set; } + /// + /// Desc:入厂单位id + /// Default: + /// Nullable:True + /// + public string? into_factory_unit_id {get;set;} + + /// + /// Desc:投料单位 + /// Default: + /// Nullable:True + /// + public string? material_in_unit_id {get;set;} + + /// + /// Desc:产出单位 + /// Default: + /// Nullable:True + /// + public string? material_out_unit_id {get;set;} + + /// + /// Desc:请料方式 1按计划排程请料 2自行管控 + /// Default: + /// Nullable:True + /// + public string? material_request_method {get;set;} + + /// + /// Desc:是否包含入库数 + /// Default: + /// Nullable:True + /// + public int? is_contain_into_num {get;set;} - /// - /// Desc:描述 - /// Default:NULL::character varying - /// Nullable:True - /// - public string descrip { get; set; } - - /// - /// Desc:是否包含入库数 0 包含 1 不包含 - /// Default:NULL::character varying - /// Nullable:True - /// - public int is_contain_into_num {get;set;} } -} \ No newline at end of file +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialCategory.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialCategory.cs new file mode 100644 index 00000000..e993164d --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialCategory.cs @@ -0,0 +1,112 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///物料类别 + /// + [SugarTable("bas_material_category")] + public partial class BasMaterialCategory + { + public BasMaterialCategory(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:分类代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:分类名称 + /// Default: + /// Nullable:False + /// + public string category_name {get;set;} = string.Empty; + + /// + /// Desc:父物料列表ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? parent_id {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:是否生效 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? isactive {get;set;} + + /// + /// Desc:工艺路线 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? route_name {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialIntoFactorySpecifications.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialIntoFactorySpecifications.cs index c3d03adb..44183739 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialIntoFactorySpecifications.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialIntoFactorySpecifications.cs @@ -1,5 +1,8 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; using SqlSugar; -using Tnb.Common.Contracts; namespace Tnb.BasicData.Entities { @@ -7,33 +10,40 @@ namespace Tnb.BasicData.Entities ///物料入场规格 /// [SugarTable("bas_material_into_factory_specifications")] - public class BasMaterialIntoFactorySpecifications : BaseEntity + public partial class BasMaterialIntoFactorySpecifications { - public BasMaterialIntoFactorySpecifications(){ + public BasMaterialIntoFactorySpecifications(){ - } + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:物料id - /// Default: - /// Nullable:False - /// - public string material_id {get;set;} + /// + /// Desc:物料id + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; - /// - /// Desc:单位id - /// Default: - /// Nullable:False - /// - public string unit_id {get;set;} + /// + /// Desc:单位id + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; - /// - /// Desc:数量 - /// Default: - /// Nullable:False - /// - public decimal num {get;set;} + /// + /// Desc:数量 + /// Default: + /// Nullable:False + /// + public decimal num {get;set;} } -} \ No newline at end of file +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialStorage.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialStorage.cs new file mode 100644 index 00000000..c488c453 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialStorage.cs @@ -0,0 +1,119 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///物料库存信息 + /// + [SugarTable("bas_material_storage")] + public partial class BasMaterialStorage + { + public BasMaterialStorage(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:先进先出 0否 1是 + /// Default: + /// Nullable:False + /// + public int first_in_out {get;set;} + + /// + /// Desc:存储有效期(天) + /// Default: + /// Nullable:True + /// + public int? storage_valid_day {get;set;} + + /// + /// Desc:预警提前期(天) + /// Default: + /// Nullable:True + /// + public int? early_warn_day {get;set;} + + /// + /// Desc:安全库存 + /// Default: + /// Nullable:True + /// + public int? safe_stock {get;set;} + + /// + /// Desc:安全库存包含状态 + /// Default: + /// Nullable:True + /// + public int? safe_stock_stauts {get;set;} + + /// + /// Desc:发料仓库id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? warehouse_id {get;set;} + + /// + /// Desc:入厂单位id + /// Default: + /// Nullable:False + /// + public string into_factory_unit_id {get;set;} = string.Empty; + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialUnit.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialUnit.cs index 80ba5b29..33be90a8 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialUnit.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialUnit.cs @@ -1,44 +1,56 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; using SqlSugar; -using Tnb.Common.Contracts; namespace Tnb.BasicData.Entities { /// - ///物料单位 + ///物料转换单位 /// [SugarTable("bas_material_unit")] - public class BasMaterialUnit : BaseEntity + public partial class BasMaterialUnit { - public BasMaterialUnit() - { - } + public BasMaterialUnit(){ - /// - /// Desc:辅助单位 - /// Default: - /// Nullable:False - /// - public string auxiliary_unit_id { get; set; } - /// - /// Desc:关联物料id - /// Default: - /// Nullable:False - /// - public string material_id { get; set; } + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:主单位数量 - /// Default:NULL::character varying - /// Nullable:True - /// - public string number_of_primary_unit { get; set; } + /// + /// Desc:主单位数量 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? number_of_primary_unit {get;set;} + + /// + /// Desc:辅助单位数量 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? number_of_auxiliary_unit {get;set;} + + /// + /// Desc:辅助单位 + /// Default: + /// Nullable:False + /// + public string auxiliary_unit_id {get;set;} = string.Empty; + + /// + /// Desc:关联物料id + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; - /// - /// Desc:辅助单位数量 - /// Default:NULL::character varying - /// Nullable:True - /// - public string number_of_auxiliary_unit { get; set; } } -} \ No newline at end of file +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasMbom.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasMbom.cs index 40f91302..f28099a8 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasMbom.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasMbom.cs @@ -1,5 +1,8 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; using SqlSugar; -using Tnb.Common.Contracts; namespace Tnb.BasicData.Entities { @@ -7,130 +10,138 @@ namespace Tnb.BasicData.Entities ///生产bom /// [SugarTable("bas_mbom")] - public class BasMbom : BaseEntity + public partial class BasMbom { - public BasMbom(){ + public BasMbom(){ - } - /// - /// Desc:扩展字段 - /// Default: - /// Nullable:True - /// - public string extras {get;set;} + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:物料id - /// Default: - /// Nullable:False - /// - public string material_id {get;set;} + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} - /// - /// Desc:数量 - /// Default: - /// Nullable:False - /// - public int num {get;set;} + /// + /// Desc:物料id + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; - /// - /// Desc:有效结束时间 - /// Default: - /// Nullable:True - /// - public DateTime? end_time {get;set;} + /// + /// Desc:数量 + /// Default: + /// Nullable:False + /// + public int num {get;set;} - /// - /// Desc:所属组织id - /// Default:NULL::character varying - /// Nullable:True - /// - public string org_id {get;set;} + /// + /// Desc:单位 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? unit_id {get;set;} - /// - /// Desc:单位 - /// Default:NULL::character varying - /// Nullable:True - /// - public string unit_id {get;set;} + /// + /// Desc:有效结束时间 + /// Default: + /// Nullable:True + /// + public DateTime? end_time {get;set;} - /// - /// Desc:备注 - /// Default:NULL::character varying - /// Nullable:True - /// - public string remark {get;set;} + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} - /// - /// Desc:有效开始时间 - /// Default: - /// Nullable:True - /// - public DateTime? start_time {get;set;} + /// + /// Desc:版本号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? version {get;set;} - /// - /// Desc:工艺路线id - /// Default: - /// Nullable:False - /// - public string route_id {get;set;} + /// + /// Desc:物料清单id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? ebom_id {get;set;} - /// - /// Desc:创建时间 - /// Default: - /// Nullable:True - /// - public DateTime? create_time {get;set;} + /// + /// Desc:有效开始时间 + /// Default: + /// Nullable:True + /// + public DateTime? start_time {get;set;} - /// - /// Desc:修改时间 - /// Default: - /// Nullable:True - /// - public DateTime? modify_time {get;set;} + /// + /// Desc:工艺路线id + /// Default: + /// Nullable:False + /// + public string route_id {get;set;} = string.Empty; - /// - /// Desc:版本号 - /// Default:NULL::character varying - /// Nullable:True - /// - public string version {get;set;} + /// + /// Desc:物料均在首道工序投产 + /// Default: + /// Nullable:True + /// + public int? is_first {get;set;} - /// - /// Desc:物料清单id - /// Default:NULL::character varying - /// Nullable:True - /// - public string ebom_id {get;set;} + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} - /// - /// Desc:物料均在首道工序投产 - /// Default:NULL::character varying - /// Nullable:True - /// - public int is_first {get;set;} + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} - /// - /// Desc:创建用户 - /// Default:NULL::character varying - /// Nullable:True - /// - public string create_id {get;set;} + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} - /// - /// Desc:修改用户 - /// Default:NULL::character varying - /// Nullable:True - /// - public string modify_id {get;set;} + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:仅用于关联表字段查询用不存储数据 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? query_info {get;set;} - /// - /// Desc:仅用于关联表字段查询用不存储数据 - /// Default:NULL::character varying - /// Nullable:True - /// - [SugarColumn(ColumnName="query_info")] - public string query_info {get;set;} } -} \ No newline at end of file +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasMbomInput.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasMbomInput.cs index 64db9c61..5548be66 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasMbomInput.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasMbomInput.cs @@ -1,5 +1,8 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; using SqlSugar; -using Tnb.Common.Contracts; namespace Tnb.BasicData.Entities { @@ -7,52 +10,61 @@ namespace Tnb.BasicData.Entities ///生产bom子表投入物料 /// [SugarTable("bas_mbom_input")] - public class BasMbomInput : BaseEntity + public partial class BasMbomInput { - public BasMbomInput() - { - } + public BasMbomInput(){ - /// - /// Desc:生产bomid - /// Default: - /// Nullable:False - /// - public string mbom_id { get; set; } - /// - /// Desc:生产bom子表id - /// Default: - /// Nullable:False - /// - public string mbom_process_id { get; set; } + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:工序id - /// Default: - /// Nullable:False - /// - public string process_id { get; set; } + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} - /// - /// Desc:物料id - /// Default: - /// Nullable:False - /// - public string material_id { get; set; } + /// + /// Desc:生产bomid + /// Default: + /// Nullable:False + /// + public string mbom_id {get;set;} = string.Empty; - /// - /// Desc:数量 - /// Default: - /// Nullable:False - /// - public decimal? num { get; set; } + /// + /// Desc:生产bom子表id + /// Default: + /// Nullable:False + /// + public string mbom_process_id {get;set;} = string.Empty; + + /// + /// Desc:工序id + /// Default: + /// Nullable:False + /// + public string process_id {get;set;} = string.Empty; + + /// + /// Desc:物料id + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:数量 + /// Default: + /// Nullable:False + /// + public decimal num {get;set;} - /// - /// Desc:所属组织id - /// Default:NULL::character varying - /// Nullable:True - /// - public string org_id { get; set; } } -} \ No newline at end of file +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasMbomOutput.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasMbomOutput.cs index af24c68c..e7a9369b 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasMbomOutput.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasMbomOutput.cs @@ -1,5 +1,8 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; using SqlSugar; -using Tnb.Common.Contracts; namespace Tnb.BasicData.Entities { @@ -7,55 +10,61 @@ namespace Tnb.BasicData.Entities ///生产bom子表产出物料 /// [SugarTable("bas_mbom_output")] - public class BasMbomOutput : BaseEntity + public partial class BasMbomOutput { + public BasMbomOutput(){ - /// - /// 工单Id - /// - [SugarColumn(IsIgnore = true)] - public string mo_id { get; set; } - /// - /// Desc:生产bomid - /// Default: - /// Nullable:False - /// - public string mbom_id { get; set; } + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:工序id - /// Default: - /// Nullable:False - /// - public string process_id { get; set; } + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} - /// - /// Desc:物料id - /// Default: - /// Nullable:False - /// - public string material_id { get; set; } + /// + /// Desc:生产bomid + /// Default: + /// Nullable:False + /// + public string mbom_id {get;set;} = string.Empty; - /// - /// Desc:生产bom子表id - /// Default: - /// Nullable:False - /// - public string mbom_process_id { get; set; } + /// + /// Desc:工序id + /// Default: + /// Nullable:False + /// + public string process_id {get;set;} = string.Empty; - /// - /// Desc:产出数量(可小数分数) - /// Default: - /// Nullable:False - /// - public string num { get; set; } + /// + /// Desc:物料id + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:生产bom子表id + /// Default: + /// Nullable:False + /// + public string mbom_process_id {get;set;} = string.Empty; + + /// + /// Desc:产出数量(可小数分数) + /// Default: + /// Nullable:False + /// + public string num {get;set;} = string.Empty; - /// - /// Desc:所属组织id - /// Default:NULL::character varying - /// Nullable:True - /// - public string org_id { get; set; } } -} \ No newline at end of file +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasMbomOutputExt.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasMbomOutputExt.cs index 9df18795..de257475 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasMbomOutputExt.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasMbomOutputExt.cs @@ -1,5 +1,8 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; using SqlSugar; -using Tnb.Common.Contracts; namespace Tnb.BasicData.Entities { @@ -7,45 +10,54 @@ namespace Tnb.BasicData.Entities ///生产bom子表物料信息 /// [SugarTable("bas_mbom_output_ext")] - public class BasMbomOutputExt : BaseEntity + public partial class BasMbomOutputExt { - public BasMbomOutputExt() - { - } + public BasMbomOutputExt(){ - /// - /// Desc:工序id - /// Default: - /// Nullable:False - /// - public string process_id { get; set; } - /// - /// Desc:生产bomid - /// Default: - /// Nullable:False - /// - public string mbom_id { get; set; } + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:生产bom子表id - /// Default: - /// Nullable:False - /// - public string mbom_process_id { get; set; } + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} - /// - /// Desc:副产出管控 0 不启用 1 启用 - /// Default: - /// Nullable:False - /// - public string byproduct_status { get; set; } + /// + /// Desc:工序id + /// Default: + /// Nullable:False + /// + public string process_id {get;set;} = string.Empty; + + /// + /// Desc:生产bomid + /// Default: + /// Nullable:False + /// + public string mbom_id {get;set;} = string.Empty; + + /// + /// Desc:生产bom子表id + /// Default: + /// Nullable:False + /// + public string mbom_process_id {get;set;} = string.Empty; + + /// + /// Desc:副产出管控 0 不启用 1 启用 + /// Default: + /// Nullable:False + /// + public string byproduct_status {get;set;} = string.Empty; - /// - /// Desc:所属组织id - /// Default:NULL::character varying - /// Nullable:True - /// - public string org_id { get; set; } } -} \ No newline at end of file +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasMbomProcess.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasMbomProcess.cs index 0f6b67dd..2c87382f 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasMbomProcess.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasMbomProcess.cs @@ -1,5 +1,8 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; using SqlSugar; -using Tnb.Common.Contracts; namespace Tnb.BasicData.Entities { @@ -7,59 +10,68 @@ namespace Tnb.BasicData.Entities ///生产bom子表 /// [SugarTable("bas_mbom_process")] - public class BasMbomProcess : BaseEntity + public partial class BasMbomProcess { - public BasMbomProcess() - { - } + public BasMbomProcess(){ - /// - /// Desc:所属组织id - /// Default: - /// Nullable:False - /// - public string org_id { get; set; } - /// - /// Desc:生产bomid - /// Default: - /// Nullable:False - /// - public string mbom_id { get; set; } + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:工序id - /// Default: - /// Nullable:False - /// - public string process_id { get; set; } + /// + /// Desc:所属组织 + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; - /// - /// Desc:准备时间 - /// Default: - /// Nullable:False - /// - public decimal preparation_time { get; set; } + /// + /// Desc:生产bomid + /// Default: + /// Nullable:False + /// + public string mbom_id {get;set;} = string.Empty; + + /// + /// Desc:工序id + /// Default: + /// Nullable:False + /// + public string process_id {get;set;} = string.Empty; + + /// + /// Desc:工位 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? station {get;set;} + + /// + /// Desc:准备时间 + /// Default: + /// Nullable:False + /// + public decimal preparation_time {get;set;} + + /// + /// Desc:副产出管控 + /// Default: + /// Nullable:False + /// + public int byproduct_status {get;set;} + + /// + /// Desc:投产方式 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? production_method {get;set;} - /// - /// Desc:工位 - /// Default:NULL::character varying - /// Nullable:True - /// - public string station { get; set; } - - /// - /// Desc:副产出管控 0 不启用 1 启用 - /// Default: - /// Nullable:False - /// - public int byproduct_status { get; set; } - - /// - /// Desc:投产方式 - /// Default:NULL::character varying - /// Nullable:True - /// - public string production_method {get;set;} } -} \ No newline at end of file +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasPackagingSpecifications.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasPackagingSpecifications.cs new file mode 100644 index 00000000..d7ff1a70 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasPackagingSpecifications.cs @@ -0,0 +1,133 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///嵌套规格 + /// + [SugarTable("bas_packaging_specifications")] + public partial class BasPackagingSpecifications + { + public BasPackagingSpecifications(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? packaging_code {get;set;} + + /// + /// Desc:名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? packaging_name {get;set;} + + /// + /// Desc:状态 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? status {get;set;} + + /// + /// Desc:物料列表 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_list {get;set;} + + /// + /// Desc:标签模板 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? label_templates {get;set;} + + /// + /// Desc:标签规则 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? label_rules {get;set;} + + /// + /// Desc:描述 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? descrip {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:扩展字段2 + /// Default: + /// Nullable:True + /// + public string? extras2 {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasPackagingSpecificationsItems.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasPackagingSpecificationsItems.cs new file mode 100644 index 00000000..f7c22f89 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasPackagingSpecificationsItems.cs @@ -0,0 +1,63 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///嵌套规格子表物料规格 + /// + [SugarTable("bas_packaging_specifications_items")] + public partial class BasPackagingSpecificationsItems + { + public BasPackagingSpecificationsItems(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:嵌套规格 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? packaging_specifications_id {get;set;} + + /// + /// Desc:物料名称/编码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_id {get;set;} + + /// + /// Desc:规格描述 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? specifications_descrip {get;set;} + + /// + /// Desc:嵌套数量 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? packaging_nums {get;set;} + + /// + /// Desc:单位 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? unit {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasPackagingSpecificationsLabel.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasPackagingSpecificationsLabel.cs new file mode 100644 index 00000000..18434ca0 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasPackagingSpecificationsLabel.cs @@ -0,0 +1,49 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///嵌套规格子表标签模板 + /// + [SugarTable("bas_packaging_specifications_label")] + public partial class BasPackagingSpecificationsLabel + { + public BasPackagingSpecificationsLabel(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:嵌套规格 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? packaging_specifications_id {get;set;} + + /// + /// Desc:标签模板 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? label_templates {get;set;} + + /// + /// Desc:是否默认 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? is_default {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasParameter.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasParameter.cs new file mode 100644 index 00000000..8f5ec382 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasParameter.cs @@ -0,0 +1,133 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///参数配置表 + /// + [SugarTable("bas_parameter")] + public partial class BasParameter + { + public BasParameter(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:系统:WMS、MES + /// Default: + /// Nullable:False + /// + public string system_type {get;set;} = string.Empty; + + /// + /// Desc:是否为静态变量,静态不显示 + /// Default: + /// Nullable:False + /// + public int is_static {get;set;} + + /// + /// Desc:参数类型 + /// Default: + /// Nullable:False + /// + public string parameter_type {get;set;} = string.Empty; + + /// + /// Desc:科目(模块) + /// Default: + /// Nullable:False + /// + public string section {get;set;} = string.Empty; + + /// + /// Desc:参数键 + /// Default: + /// Nullable:False + /// + public string key {get;set;} = string.Empty; + + /// + /// Desc:参数值 + /// Default: + /// Nullable:False + /// + public string value {get;set;} = string.Empty; + + /// + /// Desc:默认参数值(参考值,不能修改) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? defaultvalue {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasPbomD.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasPbomD.cs new file mode 100644 index 00000000..6ccf0592 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasPbomD.cs @@ -0,0 +1,140 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///工序BOM明细 + /// + [SugarTable("bas_pbom_d")] + public partial class BasPbomD + { + public BasPbomD(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:标准BOM主档ID,BAS_PROCESS_BOM_H.ID + /// Default: + /// Nullable:False + /// + public string pbom_id {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:物料顺序号 + /// Default: + /// Nullable:False + /// + public int sub_seq {get;set;} + + /// + /// Desc:物料代码 + /// Default: + /// Nullable:False + /// + public string subm_code {get;set;} = string.Empty; + + /// + /// Desc:物料单位 + /// Default: + /// Nullable:False + /// + public string sub_unit {get;set;} = string.Empty; + + /// + /// Desc:单件用量 + /// Default: + /// Nullable:False + /// + public decimal sub_qty {get;set;} + + /// + /// Desc:位号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? sub_location {get;set;} + + /// + /// Desc:物料用途: 1:消耗的物料(主料) 2:消耗用辅料(辅料) + /// Default: + /// Nullable:False + /// + public int usetype {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasPbomH.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasPbomH.cs new file mode 100644 index 00000000..ea01b7a6 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasPbomH.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///工序BOM主档 + /// + [SugarTable("bas_pbom_h")] + public partial class BasPbomH + { + public BasPbomH(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品ID,BAS_ITEM.ID + /// Default: + /// Nullable:False + /// + public string item_id {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线代码 + /// Default: + /// Nullable:False + /// + public string route_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线版本 + /// Default: + /// Nullable:False + /// + public string route_version {get;set;} = string.Empty; + + /// + /// Desc:BOM类型: 生产BOM:Standard 返工BOM:Rework 试制BOM:Trial 返修BOM:RMA 包装BOM:Pack + /// Default: + /// Nullable:False + /// + public string bom_type {get;set;} = string.Empty; + + /// + /// Desc:工序BOM版本 + /// Default: + /// Nullable:False + /// + public string version {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProcess.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProcess.cs index 18f24cd1..2670f0c1 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasProcess.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProcess.cs @@ -1,5 +1,8 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; using SqlSugar; -using Tnb.Common.Contracts; namespace Tnb.BasicData.Entities { @@ -7,206 +10,215 @@ namespace Tnb.BasicData.Entities ///工序资料 /// [SugarTable("bas_process")] - public class BasProcess : BaseEntity + public partial class BasProcess { - public BasProcess() - { - } + public BasProcess(){ - /// - /// Desc:创建时间 - /// Default: - /// Nullable:True - /// - public DateTime? create_time { get; set; } - /// - /// Desc:修改时间 - /// Default: - /// Nullable:True - /// - public DateTime? modify_time { get; set; } + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:所属组织ID - /// Default:NULL::character varying - /// Nullable:True - /// - public string org_id { get; set; } + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} - /// - /// Desc:工序代码 - /// Default:NULL::character varying - /// Nullable:True - /// - public string process_code { get; set; } + /// + /// Desc:工序代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? process_code {get;set;} - /// - /// Desc:工序名称 - /// Default:NULL::character varying - /// Nullable:True - /// - public string process_name { get; set; } + /// + /// Desc:工序名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? process_name {get;set;} - /// - /// Desc:数据收集方式 - /// Default:NULL::character varying - /// Nullable:True - /// - public string process_collection { get; set; } + /// + /// Desc:数据收集方式 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? process_collection {get;set;} - /// - /// Desc:工序类型 - /// Default:NULL::character varying - /// Nullable:True - /// - public string process_type { get; set; } + /// + /// Desc:工序类型 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? process_type {get;set;} - /// - /// Desc:工序属性 - /// Default:NULL::character varying - /// Nullable:True - /// - public string process_attribute { get; set; } + /// + /// Desc:工序属性 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? process_attribute {get;set;} - /// - /// Desc:必过工序 - /// Default:NULL::character varying - /// Nullable:True - /// - public string must_pass { get; set; } + /// + /// Desc:必过工序 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? must_pass {get;set;} - /// - /// Desc:处理时间 - /// Default:NULL::character varying - /// Nullable:True - /// - public string process_time { get; set; } + /// + /// Desc:处理时间 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? process_time {get;set;} - /// - /// Desc:时间单位 - /// Default:NULL::character varying - /// Nullable:True - /// - public string time_unit { get; set; } + /// + /// Desc:时间单位 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_unit {get;set;} - /// - /// Desc:备注 - /// Default:NULL::character varying - /// Nullable:True - /// - public string remark { get; set; } + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} - /// - /// Desc:时间戳(用于并发控制) - /// Default:NULL::character varying - /// Nullable:True - /// - public string timestamp { get; set; } + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} - /// - /// Desc:创建用户 - /// Default:NULL::character varying - /// Nullable:True - /// - public string create_id { get; set; } + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} - /// - /// Desc:修改用户 - /// Default:NULL::character varying - /// Nullable:True - /// - public string modify_id { get; set; } + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} - /// - /// Desc:扩展字段 - /// Default:NULL::character varying - /// Nullable:True - /// - public string extras { get; set; } + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} - /// - /// Desc:状态 - /// Default:NULL::character varying - /// Nullable:True - /// - public string status { get; set; } + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} - /// - /// Desc:单次扫码 - /// Default:NULL::character varying - /// Nullable:True - /// - public string single_scan_type { get; set; } + /// + /// Desc:扩展字段 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? extras {get;set;} - /// - /// Desc:工位 - /// Default:NULL::character varying - /// Nullable:True - /// - public string station { get; set; } + /// + /// Desc:状态 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? status {get;set;} - /// - /// Desc:一码到底 - /// Default:NULL::character varying - /// Nullable:True - /// - public string only_scan_type { get; set; } + /// + /// Desc:单次扫码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? single_scan_type {get;set;} - /// - /// Desc:次品项列表 - /// Default:NULL::character varying - /// Nullable:True - /// - public string defective_items { get; set; } + /// + /// Desc:工位 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? station {get;set;} - /// - /// Desc:用料追溯关系 - /// Default:NULL::character varying - /// Nullable:True - /// - public string material_traced_back_relationship { get; set; } + /// + /// Desc:一码到底 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? only_scan_type {get;set;} - /// - /// Desc:不合格品投产 - /// Default:NULL::character varying - /// Nullable:True - /// - public string defective_products_put_into_production { get; set; } + /// + /// Desc:次品项列表 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? defective_items {get;set;} - /// - /// Desc:报告模板 - /// Default:NULL::character varying - /// Nullable:True - /// - public string report_template { get; set; } + /// + /// Desc:用料追溯关系 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_traced_back_relationship {get;set;} - /// - /// Desc:生产描述 - /// Default:NULL::character varying - /// Nullable:True - /// - public string descrip { get; set; } + /// + /// Desc:不合格品投产 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? defective_products_put_into_production {get;set;} - /// - /// Desc:附件 - /// Default:NULL::character varying - /// Nullable:True - /// - public string attachment { get; set; } + /// + /// Desc:报告模板 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? report_template {get;set;} - /// - /// Desc:扩展字段2 - /// Default:NULL::character varying - /// Nullable:True - /// - public string extras2 { get; set; } + /// + /// Desc:描述 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? descrip {get;set;} + + /// + /// Desc:附件 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? attachment {get;set;} + + /// + /// Desc:扩展字段2 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? extras2 {get;set;} + + /// + /// Desc:扩展字段3 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? extras3 {get;set;} - /// - /// Desc:扩展字段3 - /// Default:NULL::character varying - /// Nullable:True - /// - public string extras3 { get; set; } } -} \ No newline at end of file +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProcessDefective.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProcessDefective.cs new file mode 100644 index 00000000..3e35008d --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProcessDefective.cs @@ -0,0 +1,49 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///工序次品关联表 + /// + [SugarTable("bas_process_defective")] + public partial class BasProcessDefective + { + public BasProcessDefective(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工序id + /// Default: + /// Nullable:False + /// + public string process_id {get;set;} = string.Empty; + + /// + /// Desc:次品id + /// Default: + /// Nullable:False + /// + public string defective_id {get;set;} = string.Empty; + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProcessEsop.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProcessEsop.cs new file mode 100644 index 00000000..f0a11ffd --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProcessEsop.cs @@ -0,0 +1,154 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///工序ESOP文件主档表 + /// + [SugarTable("bas_process_esop")] + public partial class BasProcessEsop + { + public BasProcessEsop(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:文件名 + /// Default: + /// Nullable:False + /// + public string file_name {get;set;} = string.Empty; + + /// + /// Desc:文件类型代码 + /// Default: + /// Nullable:False + /// + public string filetype_code {get;set;} = string.Empty; + + /// + /// Desc:文件类型名称 + /// Default: + /// Nullable:False + /// + public string filetype_name {get;set;} = string.Empty; + + /// + /// Desc:产品ID + /// Default: + /// Nullable:False + /// + public string item_id {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线代码 + /// Default: + /// Nullable:False + /// + public string route_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线版本 + /// Default: + /// Nullable:False + /// + public string route_version {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:同步控制 10-同步并覆盖 20-同步不覆盖 30-不允许同步 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? sync_control {get;set;} + + /// + /// Desc:产品ESOP文件主档id + /// Default: + /// Nullable:True + /// + public long? item_esopid {get;set;} + + /// + /// Desc:是否生效 + /// Default: + /// Nullable:False + /// + public int isactive {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProcessEsopFile.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProcessEsopFile.cs new file mode 100644 index 00000000..5a2a2770 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProcessEsopFile.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///工序ESOP文件明细 + /// + [SugarTable("bas_process_esop_file")] + public partial class BasProcessEsopFile + { + public BasProcessEsopFile(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工序文件主档id + /// Default: + /// Nullable:False + /// + public string process_esopid {get;set;} = string.Empty; + + /// + /// Desc:文件名 + /// Default: + /// Nullable:False + /// + public string filen_ame {get;set;} = string.Empty; + + /// + /// Desc:文件类型: JPG,PDF + /// Default: + /// Nullable:False + /// + public string file_type {get;set;} = string.Empty; + + /// + /// Desc:文件路径 + /// Default: + /// Nullable:False + /// + public string file_path {get;set;} = string.Empty; + + /// + /// Desc:版本 + /// Default: + /// Nullable:False + /// + public string version {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:是否启用 + /// Default: + /// Nullable:False + /// + public short isactive {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProcessStation.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProcessStation.cs index 25d95067..76e6f626 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasProcessStation.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProcessStation.cs @@ -1,6 +1,8 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; using SqlSugar; -using Tnb.Common.Contracts; - namespace Tnb.BasicData.Entities { @@ -8,112 +10,103 @@ namespace Tnb.BasicData.Entities ///工序与工位的关联信息 /// [SugarTable("bas_process_station")] - public class BasProcessStation : BaseEntity + public partial class BasProcessStation { - public BasProcessStation() - { - } - - /// - /// Desc:主键 - /// Default: - /// Nullable:False - /// - [SugarColumn(IsPrimaryKey = true)] - public string id { get; set; } - - /// - /// Desc:工序ID,BAS_PROCESS.ID - /// Default: - /// Nullable:False - /// - public string process_id { get; set; } - /// - /// 工序编码 - /// - public string process_code { get; set; } + public BasProcessStation(){ + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - // /// - // /// Desc:工序代码 - // /// Default: - // /// Nullable:False - // /// - // public string process_code { get; set; } + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} - /// - /// Desc:工位ID,BAS_STATION.ID - /// Default: - /// Nullable:False - /// - public string station_id { get; set; } - /// - /// 工位编码 - /// - public string station_code { get; set; } + /// + /// Desc:工序ID,BAS_PROCESS.ID + /// Default: + /// Nullable:False + /// + public string process_id {get;set;} = string.Empty; - // /// - // /// Desc:工位代码 - // /// Default: - // /// Nullable:False - // /// - // public string station_code { get; set; } + /// + /// Desc:工序代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? process_code {get;set;} - /// - /// Desc:创建时间 - /// Default: - /// Nullable:False - /// - public DateTime create_time { get; set; } + /// + /// Desc:工位ID,BAS_STATION.ID + /// Default: + /// Nullable:False + /// + public string station_id {get;set;} = string.Empty; - /// - /// Desc:修改时间 - /// Default: - /// Nullable:True - /// - public DateTime? modify_time { get; set; } + /// + /// Desc:工位代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? station_code {get;set;} - /// - /// Desc:扩展字段 - /// Default: - /// Nullable:True - /// - public string extras { get; set; } + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} - /// - /// Desc:所属组织ID - /// Default:NULL::character varying - /// Nullable:True - /// - public string org_id { get; set; } + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} - /// - /// Desc:备注 - /// Default:NULL::character varying - /// Nullable:True - /// - public string remark { get; set; } + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} - /// - /// Desc:时间戳(用于并发控制) - /// Default:NULL::character varying - /// Nullable:True - /// - public string timestamp { get; set; } + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} - /// - /// Desc:创建用户 - /// Default:NULL::character varying - /// Nullable:True - /// - public string create_id { get; set; } + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} - /// - /// Desc:修改用户 - /// Default:NULL::character varying - /// Nullable:True - /// - public string modify_id { get; set; } } -} \ No newline at end of file +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProduct.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProduct.cs new file mode 100644 index 00000000..e7aff583 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProduct.cs @@ -0,0 +1,133 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///产品信息 + /// + [SugarTable("bas_product")] + public partial class BasProduct + { + public BasProduct(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string product_code {get;set;} = string.Empty; + + /// + /// Desc:产品名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? product_name {get;set;} + + /// + /// Desc:产品规格型号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? product_standard {get;set;} + + /// + /// Desc:产品分类ID + /// Default: + /// Nullable:False + /// + public string categoryid {get;set;} = string.Empty; + + /// + /// Desc:物料ID,BAS_MATERIAL.ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_id {get;set;} + + /// + /// Desc:产品类型: 半成品:SemiManufacture 成品:FinishedProduct + /// Default:NULL::character varying + /// Nullable:True + /// + public string? product_type {get;set;} + + /// + /// Desc:关联比例 + /// Default: + /// Nullable:True + /// + public decimal? relation_ratio {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductCategory.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductCategory.cs new file mode 100644 index 00000000..ffd86099 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProductCategory.cs @@ -0,0 +1,133 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///产品类别 + /// + [SugarTable("bas_product_category")] + public partial class BasProductCategory + { + public BasProductCategory(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:父产品列表ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? parent_id {get;set;} + + /// + /// Desc:分类代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:分类名称 + /// Default: + /// Nullable:False + /// + public string category_name {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:不良代码组 + /// Default: + /// Nullable:True + /// + public string? errorcode {get;set;} + + /// + /// Desc:不良原因组 + /// Default: + /// Nullable:True + /// + public string? errorcause {get;set;} + + /// + /// Desc:解决方案组 + /// Default: + /// Nullable:True + /// + public string? errorsolution {get;set;} + + /// + /// Desc:包含组件组 + /// Default: + /// Nullable:True + /// + public string? component {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductDoc.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductDoc.cs new file mode 100644 index 00000000..ede8e07e --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProductDoc.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///产品工序关联文档 + /// + [SugarTable("bas_product_doc")] + public partial class BasProductDoc + { + public BasProductDoc(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string product_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? route_code {get;set;} + + /// + /// Desc:工艺路线版本 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? route_verison {get;set;} + + /// + /// Desc:工序代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? process_code {get;set;} + + /// + /// Desc:文档编号 + /// Default: + /// Nullable:False + /// + public string doc_code {get;set;} = string.Empty; + + /// + /// Desc:文档版本 + /// Default: + /// Nullable:False + /// + public decimal doc_version {get;set;} + + /// + /// Desc:文档唯一码 GUID 的文本 + /// Default: + /// Nullable:False + /// + public string doc_unique_code {get;set;} = string.Empty; + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductDocLog.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductDocLog.cs new file mode 100644 index 00000000..7eba6edd --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProductDocLog.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///产品关联文档记录 + /// + [SugarTable("bas_product_doc_log")] + public partial class BasProductDocLog + { + public BasProductDocLog(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string product_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? route_code {get;set;} + + /// + /// Desc:工艺路线版本 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? route_verison {get;set;} + + /// + /// Desc:工序代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? process_code {get;set;} + + /// + /// Desc:文档编号 + /// Default: + /// Nullable:False + /// + public string doc_code {get;set;} = string.Empty; + + /// + /// Desc:文档版本 + /// Default: + /// Nullable:False + /// + public decimal doc_version {get;set;} + + /// + /// Desc:文档唯一码 GUID 的文本 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? doc_unique_code {get;set;} + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductEsop.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductEsop.cs new file mode 100644 index 00000000..081917ce --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProductEsop.cs @@ -0,0 +1,119 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///产品ESOP文件主档表 + /// + [SugarTable("bas_product_esop")] + public partial class BasProductEsop + { + public BasProductEsop(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:文件名 + /// Default: + /// Nullable:False + /// + public string file_name {get;set;} = string.Empty; + + /// + /// Desc:文件类型代码 + /// Default: + /// Nullable:False + /// + public string filetype_code {get;set;} = string.Empty; + + /// + /// Desc:文件类型名称 + /// Default: + /// Nullable:False + /// + public string filetype_name {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string product_id {get;set;} = string.Empty; + + /// + /// Desc:产品名称 + /// Default: + /// Nullable:False + /// + public string product_code {get;set;} = string.Empty; + + /// + /// Desc:是否生效 + /// Default: + /// Nullable:False + /// + public int is_active {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductEsopFile.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductEsopFile.cs new file mode 100644 index 00000000..caac8fae --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProductEsopFile.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///产品ESOP文件明细 + /// + [SugarTable("bas_product_esop_file")] + public partial class BasProductEsopFile + { + public BasProductEsopFile(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品ESOP文件主档id + /// Default: + /// Nullable:False + /// + public string product_esop_id {get;set;} = string.Empty; + + /// + /// Desc:文件类型: JPG,PDF + /// Default: + /// Nullable:False + /// + public string file_type {get;set;} = string.Empty; + + /// + /// Desc:文件名 + /// Default: + /// Nullable:False + /// + public string file_name {get;set;} = string.Empty; + + /// + /// Desc:文件路径 + /// Default: + /// Nullable:False + /// + public string file_path {get;set;} = string.Empty; + + /// + /// Desc:版本 + /// Default: + /// Nullable:False + /// + public string version {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:是否启用 + /// Default: + /// Nullable:False + /// + public int is_active {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeComponent.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeComponent.cs new file mode 100644 index 00000000..5028a9f9 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeComponent.cs @@ -0,0 +1,91 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///产品类别包含组件(用于维修) + /// + [SugarTable("bas_product_type_component")] + public partial class BasProductTypeComponent + { + public BasProductTypeComponent(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品类别ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? product_type_id {get;set;} + + /// + /// Desc:产品类别代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? product_type_code {get;set;} + + /// + /// Desc:组件名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? component_name {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorcause.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorcause.cs new file mode 100644 index 00000000..95d65ff8 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorcause.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///产品类别与不良原因组关系 + /// + [SugarTable("bas_product_type_errorcause")] + public partial class BasProductTypeErrorcause + { + public BasProductTypeErrorcause(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品类别ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? product_type_id {get;set;} + + /// + /// Desc:产品类别代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? product_type_code {get;set;} + + /// + /// Desc:不良原因组ID + /// Default: + /// Nullable:False + /// + public string errorcause_groupid {get;set;} = string.Empty; + + /// + /// Desc:不良原因组代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? errorcode_groupcode {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorcode.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorcode.cs new file mode 100644 index 00000000..8a435025 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorcode.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///产品类别与不良代码组关系 + /// + [SugarTable("bas_product_type_errorcode")] + public partial class BasProductTypeErrorcode + { + public BasProductTypeErrorcode(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品类别ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? product_type_id {get;set;} + + /// + /// Desc:产品类别代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? product_type_code {get;set;} + + /// + /// Desc:不良代码组ID + /// Default: + /// Nullable:False + /// + public string errorcode_groupid {get;set;} = string.Empty; + + /// + /// Desc:不良代码组 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? errorcode_groupcode {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorsolution.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorsolution.cs new file mode 100644 index 00000000..ec8d2ac0 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorsolution.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///产品类别与解决方案关系 + /// + [SugarTable("bas_product_type_errorsolution")] + public partial class BasProductTypeErrorsolution + { + public BasProductTypeErrorsolution(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品类别ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? product_type_id {get;set;} + + /// + /// Desc:产品类别代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? product_type_code {get;set;} + + /// + /// Desc:不良解决方案ID + /// Default: + /// Nullable:False + /// + public string solution_id {get;set;} = string.Empty; + + /// + /// Desc:不良解决方案代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? solution_code {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductionanmaly.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductionanmaly.cs new file mode 100644 index 00000000..d25344c5 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasProductionanmaly.cs @@ -0,0 +1,119 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///生产异常 + /// + [SugarTable("bas_productionanmaly")] + public partial class BasProductionanmaly + { + public BasProductionanmaly(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:排序 + /// Default: + /// Nullable:True + /// + public long? ordinal {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:删除时间 + /// Default: + /// Nullable:True + /// + public DateTime? delete_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:删除用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? delete_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:有效标志 + /// Default: + /// Nullable:True + /// + public int? status {get;set;} + + /// + /// Desc:异常编码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? anomaly_id {get;set;} + + /// + /// Desc:异常名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? anomaly_name {get;set;} + + /// + /// Desc:异常类型 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? anomaly_type {get;set;} + + /// + /// Desc:状态说明 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? anomaly_state {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasRack.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasRack.cs new file mode 100644 index 00000000..c57c79f2 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasRack.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///仓库货架 + /// + [SugarTable("bas_rack")] + public partial class BasRack + { + public BasRack(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:货架Code + /// Default: + /// Nullable:False + /// + public string rack_code {get;set;} = string.Empty; + + /// + /// Desc:区域ID + /// Default: + /// Nullable:False + /// + public string region_id {get;set;} = string.Empty; + + /// + /// Desc:层数 + /// Default: + /// Nullable:False + /// + public int layers {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasRegion.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasRegion.cs new file mode 100644 index 00000000..98d65324 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasRegion.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///仓库区域 + /// + [SugarTable("bas_region")] + public partial class BasRegion + { + public BasRegion(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:仓库ID + /// Default: + /// Nullable:False + /// + public string wh_id {get;set;} = string.Empty; + + /// + /// Desc:区域代码 + /// Default: + /// Nullable:False + /// + public string region_code {get;set;} = string.Empty; + + /// + /// Desc:区域名称 + /// Default: + /// Nullable:False + /// + public string region_name {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasRegionUser.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasRegionUser.cs new file mode 100644 index 00000000..84a96196 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasRegionUser.cs @@ -0,0 +1,119 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///区域人员设定 + /// + [SugarTable("bas_region_user")] + public partial class BasRegionUser + { + public BasRegionUser(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:区域ID + /// Default: + /// Nullable:False + /// + public string region_id {get;set;} = string.Empty; + + /// + /// Desc:区域代码 + /// Default: + /// Nullable:False + /// + public string region_code {get;set;} = string.Empty; + + /// + /// Desc:用户ID + /// Default: + /// Nullable:False + /// + public string user_id {get;set;} = string.Empty; + + /// + /// Desc:用户名 + /// Default: + /// Nullable:False + /// + public string user_name {get;set;} = string.Empty; + + /// + /// Desc:姓名 + /// Default: + /// Nullable:False + /// + public string full_name {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasRouteD.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasRouteD.cs index 77a58e4d..980d5b47 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasRouteD.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasRouteD.cs @@ -1,5 +1,8 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; using SqlSugar; -using Tnb.Common.Contracts; namespace Tnb.BasicData.Entities { @@ -7,150 +10,159 @@ namespace Tnb.BasicData.Entities ///工艺路线子表 /// [SugarTable("bas_route_d")] - public class BasRouteD : BaseEntity + public partial class BasRouteD { - public BasRouteD() - { - } + public BasRouteD(){ - /// - /// Desc:工艺路线ID - /// Default: - /// Nullable:False - /// - public string route_id { get; set; } - /// - /// Desc:工序id - /// Default: - /// Nullable:False - /// - public string process_id { get; set; } + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:处理时间 - /// Default: - /// Nullable:True - /// - public decimal? process_time { get; set; } + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} - /// - /// Desc:排序码 - /// Default: - /// Nullable:True - /// - public long? ordinal { get; set; } + /// + /// Desc:工艺路线ID + /// Default: + /// Nullable:False + /// + public string route_id {get;set;} = string.Empty; - /// - /// Desc:状态 - /// Default: - /// Nullable:True - /// - public int? status { get; set; } + /// + /// Desc:工序id + /// Default: + /// Nullable:False + /// + public string process_id {get;set;} = string.Empty; - /// - /// Desc:准备时间(秒) - /// Default: - /// Nullable:True - /// - public decimal? preparation_time { get; set; } + /// + /// Desc:工序代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? process_code {get;set;} - /// - /// Desc:产出比 - /// Default: - /// Nullable:True - /// - public decimal? output_ratio { get; set; } + /// + /// Desc:工序名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? process_name {get;set;} - /// - /// Desc:所属组织id - /// Default:NULL::character varying - /// Nullable:True - /// - public string org_id { get; set; } + /// + /// Desc:处理时间 + /// Default: + /// Nullable:True + /// + public decimal? process_time {get;set;} - /// - /// Desc:工序代码 - /// Default:NULL::character varying - /// Nullable:True - /// - public string process_code { get; set; } + /// + /// Desc:排序 + /// Default: + /// Nullable:True + /// + public long? ordinal {get;set;} - /// - /// Desc:工序名称 - /// Default:NULL::character varying - /// Nullable:True - /// - public string process_name { get; set; } + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} - /// - /// Desc:备注 - /// Default:NULL::character varying - /// Nullable:True - /// - public string remark { get; set; } + /// + /// Desc:状态 + /// Default: + /// Nullable:True + /// + public int? status {get;set;} - /// - /// Desc:单次扫码 - /// Default:NULL::character varying - /// Nullable:True - /// - public string single_scan_type { get; set; } + /// + /// Desc:单次扫码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? single_scan_type {get;set;} - /// - /// Desc:工位 - /// Default:NULL::character varying - /// Nullable:True - /// - public string station { get; set; } + /// + /// Desc:工位 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? station {get;set;} - /// - /// Desc:一码到底 - /// Default:NULL::character varying - /// Nullable:True - /// - public string only_scan_type { get; set; } + /// + /// Desc:一码到底 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? only_scan_type {get;set;} - /// - /// Desc:用料追溯关系 - /// Default:NULL::character varying - /// Nullable:True - /// - public string material_traced_back_relationship { get; set; } + /// + /// Desc:用料追溯关系 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_traced_back_relationship {get;set;} - /// - /// Desc:不合格产品投产 - /// Default:NULL::character varying - /// Nullable:True - /// - public string defective_products_put_into_production { get; set; } + /// + /// Desc:不合格产品投产 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? defective_products_put_into_production {get;set;} - /// - /// Desc:报告模板 - /// Default:NULL::character varying - /// Nullable:True - /// - public string report_template { get; set; } + /// + /// Desc:报告模板 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? report_template {get;set;} - /// - /// Desc:附件 - /// Default:NULL::character varying - /// Nullable:True - /// - public string attachment { get; set; } + /// + /// Desc:描述 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? descrip {get;set;} - /// - /// Desc:接续方式 1 前序结束之后可以开始 2 前序开始后可以开始 - /// Default:NULL::character varying - /// Nullable:True - /// - public string connection_method { get; set; } + /// + /// Desc:附件 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? attachment {get;set;} + + /// + /// Desc:接续方式 1 前序结束之后可以开始 2 前序开始后可以开始 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? connection_method {get;set;} + + /// + /// Desc:准备时间(秒) + /// Default: + /// Nullable:True + /// + public decimal? preparation_time {get;set;} + + /// + /// Desc:产出比 + /// Default: + /// Nullable:True + /// + public decimal? output_ratio {get;set;} - /// - /// Desc:生产描述 - /// Default:NULL::character varying - /// Nullable:True - /// - public string descrip { get; set; } } -} \ No newline at end of file +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasRouteH.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasRouteH.cs index 366d9577..598a822d 100644 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasRouteH.cs +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasRouteH.cs @@ -1,5 +1,8 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; using SqlSugar; -using Tnb.Common.Contracts; namespace Tnb.BasicData.Entities { @@ -7,101 +10,110 @@ namespace Tnb.BasicData.Entities ///工艺路线 /// [SugarTable("bas_route_h")] - public class BasRouteH : BaseEntity + public partial class BasRouteH { - public BasRouteH() - { - } + public BasRouteH(){ - /// - /// Desc:编号 - /// Default: - /// Nullable:False - /// - public string code { get; set; } - /// - /// Desc:名称 - /// Default: - /// Nullable:False - /// - public string name { get; set; } + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:有效开始时间 - /// Default: - /// Nullable:True - /// - public DateTime? start_time { get; set; } + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} - /// - /// Desc:有效结束时间 - /// Default: - /// Nullable:True - /// - public DateTime? end_time { get; set; } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + public string code {get;set;} = string.Empty; - /// - /// Desc:0 未发布 1 已发布 - /// Default: - /// Nullable:False - /// - public string status { get; set; } + /// + /// Desc:名称 + /// Default: + /// Nullable:False + /// + public string name {get;set;} = string.Empty; - /// - /// Desc:创建时间 - /// Default: - /// Nullable:True - /// - public DateTime? create_time { get; set; } + /// + /// Desc:有效开始时间 + /// Default: + /// Nullable:True + /// + public DateTime? start_time {get;set;} - /// - /// Desc:修改时间 - /// Default: - /// Nullable:True - /// - public DateTime? modify_time { get; set; } + /// + /// Desc:有效结束时间 + /// Default: + /// Nullable:True + /// + public DateTime? end_time {get;set;} - /// - /// Desc:是否永远有效 - /// Default: - /// Nullable:False - /// - public int is_always_valid { get; set; } + /// + /// Desc:0 未发布 1 已发布 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; - /// - /// Desc:扩展字段 - /// Default: - /// Nullable:True - /// - public string extras { get; set; } + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} - /// - /// Desc:所属组织ID - /// Default:NULL::character varying - /// Nullable:True - /// - public string org_id { get; set; } + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} - /// - /// Desc:创建用户 - /// Default:NULL::character varying - /// Nullable:True - /// - public string create_id { get; set; } + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} - /// - /// Desc:修改用户 - /// Default:NULL::character varying - /// Nullable:True - /// - public string modify_id { get; set; } + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:是否永远有效 + /// Default: + /// Nullable:False + /// + public int is_always_valid {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} - /// - /// Desc:备注 - /// Default:NULL::character varying - /// Nullable:True - /// - public string remark { get; set; } } -} \ No newline at end of file +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasSbomD.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasSbomD.cs new file mode 100644 index 00000000..a9c03f31 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasSbomD.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///产品标准BOM明细 + /// + [SugarTable("bas_sbom_d")] + public partial class BasSbomD + { + public BasSbomD(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:标准BOM主档ID,BAS_SBOM_H.ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? sbom_id {get;set;} + + /// + /// Desc:物料代码 + /// Default: + /// Nullable:False + /// + public string subm_code {get;set;} = string.Empty; + + /// + /// Desc:物料单位 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? sub_unit {get;set;} + + /// + /// Desc:单件用量 + /// Default: + /// Nullable:True + /// + public decimal? sub_qty {get;set;} + + /// + /// Desc:位号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? sub_location {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasSbomH.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasSbomH.cs new file mode 100644 index 00000000..423f0428 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasSbomH.cs @@ -0,0 +1,119 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///产品标准BOM主档 + /// + [SugarTable("bas_sbom_h")] + public partial class BasSbomH + { + public BasSbomH(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenanti_d {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品ID,BAS_ITEM.ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? item_id {get;set;} + + /// + /// Desc:产品代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? item_code {get;set;} + + /// + /// Desc:BOM类型: 量产BOM:Standard 返工BOM:Rework 试制BOM:Trial 返修BOM:RMA 包装BOM:Pack + /// Default: + /// Nullable:False + /// + public string bom_type {get;set;} = string.Empty; + + /// + /// Desc:BOM版本 + /// Default: + /// Nullable:False + /// + public string version {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasShift.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasShift.cs new file mode 100644 index 00000000..fc464ae4 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasShift.cs @@ -0,0 +1,140 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///班次资料 + /// + [SugarTable("bas_shift")] + public partial class BasShift + { + public BasShift(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:班次代码 + /// Default: + /// Nullable:False + /// + public string shift_code {get;set;} = string.Empty; + + /// + /// Desc:班次名称 + /// Default: + /// Nullable:False + /// + public string shift_name {get;set;} = string.Empty; + + /// + /// Desc:所属班制ID,BAS_SHIFTTYPE.ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? shifttype_id {get;set;} + + /// + /// Desc:所属班制代码 + /// Default: + /// Nullable:False + /// + public string shifttype_code {get;set;} = string.Empty; + + /// + /// Desc:开始时间 + /// Default: + /// Nullable:False + /// + public string shiftb_time {get;set;} = string.Empty; + + /// + /// Desc:结束时间 + /// Default: + /// Nullable:False + /// + public string shifte_time {get;set;} = string.Empty; + + /// + /// Desc:是否跨天 + /// Default: + /// Nullable:False + /// + public string is_overday {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasShiftType.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasShiftType.cs new file mode 100644 index 00000000..1f9ebe2d --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasShiftType.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///班制资料类型 + /// + [SugarTable("bas_shift_type")] + public partial class BasShiftType + { + public BasShiftType(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:班制代码 + /// Default: + /// Nullable:False + /// + public string shifttype_code {get;set;} = string.Empty; + + /// + /// Desc:班制名称 + /// Default: + /// Nullable:False + /// + public string shifttype_name {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasSkill.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasSkill.cs new file mode 100644 index 00000000..e9c5c1f2 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasSkill.cs @@ -0,0 +1,91 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///技能维护 + /// + [SugarTable("bas_skill")] + public partial class BasSkill + { + public BasSkill(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:技能代码 + /// Default: + /// Nullable:False + /// + public string skill_code {get;set;} = string.Empty; + + /// + /// Desc:技能描述 + /// Default: + /// Nullable:False + /// + public string skill_desc {get;set;} = string.Empty; + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasSkillLevel.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasSkillLevel.cs new file mode 100644 index 00000000..ee4e28ab --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasSkillLevel.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///人员技能等级 + /// + [SugarTable("bas_skill_level")] + public partial class BasSkillLevel + { + public BasSkillLevel(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:技能等级 + /// Default: + /// Nullable:False + /// + public string skill_levle_code {get;set;} = string.Empty; + + /// + /// Desc:技能等级描述 + /// Default: + /// Nullable:False + /// + public string skill_levle_desc {get;set;} = string.Empty; + + /// + /// Desc:是否能上岗 + /// Default: + /// Nullable:False + /// + public int is_work {get;set;} + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasSkillProcess.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasSkillProcess.cs new file mode 100644 index 00000000..0e9aadf4 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasSkillProcess.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///技能与工序的关系 + /// + [SugarTable("bas_skill_process")] + public partial class BasSkillProcess + { + public BasSkillProcess(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:技能ID,PERF_SKILL.ID + /// Default: + /// Nullable:False + /// + public string skill_id {get;set;} = string.Empty; + + /// + /// Desc:工序ID,BAS_PROCESS.ID + /// Default: + /// Nullable:False + /// + public string process_id {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasStaffSkill.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasStaffSkill.cs new file mode 100644 index 00000000..efec1ab8 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasStaffSkill.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///员工技能设置 + /// + [SugarTable("bas_staff_skill")] + public partial class BasStaffSkill + { + public BasStaffSkill(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:用户ID,SYS_USERS.ID + /// Default: + /// Nullable:False + /// + public string user_id {get;set;} = string.Empty; + + /// + /// Desc:用户名,SYS_USERS.USERNAME + /// Default: + /// Nullable:False + /// + public string user_name {get;set;} = string.Empty; + + /// + /// Desc:技能ID,PERF_SKILL.ID + /// Default: + /// Nullable:False + /// + public string skill_id {get;set;} = string.Empty; + + /// + /// Desc:技能等级ID,PERF_SKILLLEVEL.ID + /// Default: + /// Nullable:False + /// + public string skill_level_id {get;set;} = string.Empty; + + /// + /// Desc:生效日期 + /// Default: + /// Nullable:False + /// + public DateTime effective_date {get;set;} + + /// + /// Desc:失效日期 + /// Default: + /// Nullable:False + /// + public DateTime expiry_date {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasStep.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasStep.cs new file mode 100644 index 00000000..ff1e1f47 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasStep.cs @@ -0,0 +1,133 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///工步 + /// + [SugarTable("bas_step")] + public partial class BasStep + { + public BasStep(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工步代码 + /// Default: + /// Nullable:False + /// + public string step_code {get;set;} = string.Empty; + + /// + /// Desc:工步名称 + /// Default: + /// Nullable:False + /// + public string step_name {get;set;} = string.Empty; + + /// + /// Desc:工序ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? process_id {get;set;} + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:强制顺序 + /// Default: + /// Nullable:False + /// + public string must_order {get;set;} = string.Empty; + + /// + /// Desc:处理时间 + /// Default: + /// Nullable:True + /// + public int? steps_time {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasStepBom.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasStepBom.cs new file mode 100644 index 00000000..32dbc679 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasStepBom.cs @@ -0,0 +1,175 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///工步BOM明细 + /// + [SugarTable("bas_step_bom")] + public partial class BasStepBom + { + public BasStepBom(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线代码 + /// Default: + /// Nullable:False + /// + public string route_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线版本 + /// Default: + /// Nullable:False + /// + public string route_version {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:工序BOM版本 + /// Default: + /// Nullable:False + /// + public string version {get;set;} = string.Empty; + + /// + /// Desc:工步代码 + /// Default: + /// Nullable:False + /// + public string step_code {get;set;} = string.Empty; + + /// + /// Desc:物料顺序号 + /// Default: + /// Nullable:False + /// + public int sub_seq {get;set;} + + /// + /// Desc:物料代码 + /// Default: + /// Nullable:False + /// + public string subm_code {get;set;} = string.Empty; + + /// + /// Desc:物料单位 + /// Default: + /// Nullable:False + /// + public string sub_unit {get;set;} = string.Empty; + + /// + /// Desc:单件用量 + /// Default: + /// Nullable:False + /// + public decimal sub_qty {get;set;} + + /// + /// Desc:位号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? sub_location {get;set;} + + /// + /// Desc:物料用途: 1:消耗的物料(主料) 2:消耗用辅料(辅料) + /// Default: + /// Nullable:False + /// + public int usetype {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasSubstitutionMaterial.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasSubstitutionMaterial.cs new file mode 100644 index 00000000..3578f8ca --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasSubstitutionMaterial.cs @@ -0,0 +1,119 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///替代料关系表 + /// + [SugarTable("bas_substitution_material")] + public partial class BasSubstitutionMaterial + { + public BasSubstitutionMaterial(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:物料id + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:替代料id + /// Default: + /// Nullable:False + /// + public string sub_material_id {get;set;} = string.Empty; + + /// + /// Desc:替代比例,如1(一个物料可以用一个替代料代替) + /// Default: + /// Nullable:False + /// + public decimal proportion {get;set;} + + /// + /// Desc:是否相互替代 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? is_mutual {get;set;} + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasSupplier.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasSupplier.cs new file mode 100644 index 00000000..fe5e53e6 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasSupplier.cs @@ -0,0 +1,175 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///供应商信息 + /// + [SugarTable("bas_supplier")] + public partial class BasSupplier + { + public BasSupplier(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:供应商代码 + /// Default: + /// Nullable:False + /// + public string supplier_code {get;set;} = string.Empty; + + /// + /// Desc:供应商名称 + /// Default: + /// Nullable:False + /// + public string supplier_name {get;set;} = string.Empty; + + /// + /// Desc:供应商简称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? shortname {get;set;} + + /// + /// Desc:详细地址 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? fulladdress {get;set;} + + /// + /// Desc:邮编 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? postal_code {get;set;} + + /// + /// Desc:国家 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? country {get;set;} + + /// + /// Desc:省 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? province {get;set;} + + /// + /// Desc:市 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? city {get;set;} + + /// + /// Desc:区 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? district {get;set;} + + /// + /// Desc:街道地址 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? street {get;set;} + + /// + /// Desc:联系人姓名 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? contact_name {get;set;} + + /// + /// Desc:联系人电话 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? contact_phone {get;set;} + + /// + /// Desc:联系人手机 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? contact_mobile {get;set;} + + /// + /// Desc:默认委外仓库 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? default_os_stock {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasSupplierContact.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasSupplierContact.cs new file mode 100644 index 00000000..5560cdc8 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasSupplierContact.cs @@ -0,0 +1,133 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///供应商联系人 + /// + [SugarTable("bas_supplier_contact")] + public partial class BasSupplierContact + { + public BasSupplierContact(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public long id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public int? tenantid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public long supplierid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string name {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? phone {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public short ismaincontact {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute1 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute2 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute3 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public DateTime? lastmodificationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? lastmodifieruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? lastmodifierfullname {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public DateTime creationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? creatoruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? creatorfullname {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasTimeCalendar.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasTimeCalendar.cs new file mode 100644 index 00000000..a83b71f5 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasTimeCalendar.cs @@ -0,0 +1,140 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///时间日历 + /// + [SugarTable("bas_time_calendar")] + public partial class BasTimeCalendar + { + public BasTimeCalendar(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:日期 + /// Default: + /// Nullable:False + /// + public DateTime date {get;set;} + + /// + /// Desc:第几周 + /// Default: + /// Nullable:False + /// + public int dateint {get;set;} + + /// + /// Desc:周 + /// Default: + /// Nullable:False + /// + public int week {get;set;} + + /// + /// Desc:月 + /// Default: + /// Nullable:False + /// + public int month {get;set;} + + /// + /// Desc:季 + /// Default: + /// Nullable:False + /// + public int quarter {get;set;} + + /// + /// Desc:年 + /// Default: + /// Nullable:False + /// + public int year {get;set;} + + /// + /// Desc:是否工作日 + /// Default: + /// Nullable:False + /// + public int is_workday {get;set;} + + /// + /// Desc:周的第几天 + /// Default: + /// Nullable:False + /// + public int dayofweek {get;set;} + + /// + /// Desc:年的第几天 + /// Default: + /// Nullable:False + /// + public int dayofyear {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasTimeCalendarRule.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasTimeCalendarRule.cs new file mode 100644 index 00000000..d72e2228 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasTimeCalendarRule.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///时间日历规则 + /// + [SugarTable("bas_time_calendar_rule")] + public partial class BasTimeCalendarRule + { + public BasTimeCalendarRule(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:年份(1900,9999) + /// Default: + /// Nullable:False + /// + public int year {get;set;} + + /// + /// Desc:周的第一天(1,7) + /// Default: + /// Nullable:False + /// + public string firstdayofweek {get;set;} = string.Empty; + + /// + /// Desc:工作日 + /// Default: + /// Nullable:False + /// + public string workday {get;set;} = string.Empty; + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:周的第一天 + /// Default: + /// Nullable:True + /// + public string? firstdayofweek_name {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasTimeDimension.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasTimeDimension.cs new file mode 100644 index 00000000..b76cbe43 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasTimeDimension.cs @@ -0,0 +1,77 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///系统时间维度 + /// + [SugarTable("bas_time_dimension")] + public partial class BasTimeDimension + { + public BasTimeDimension(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:日期 + /// Default: + /// Nullable:False + /// + public DateTime ddate {get;set;} + + /// + /// Desc:周别 + /// Default: + /// Nullable:False + /// + public int dweek {get;set;} + + /// + /// Desc:周几 + /// Default: + /// Nullable:False + /// + public int dweekday {get;set;} + + /// + /// Desc:月份 + /// Default: + /// Nullable:False + /// + public int dmonth {get;set;} + + /// + /// Desc:季度 + /// Default: + /// Nullable:False + /// + public int quarter {get;set;} + + /// + /// Desc:年份 + /// Default: + /// Nullable:False + /// + public int year {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasTimePeriod.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasTimePeriod.cs new file mode 100644 index 00000000..5f57425a --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasTimePeriod.cs @@ -0,0 +1,161 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///时段维护 + /// + [SugarTable("bas_time_period")] + public partial class BasTimePeriod + { + public BasTimePeriod(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:时段代码 + /// Default: + /// Nullable:False + /// + public string tp_code {get;set;} = string.Empty; + + /// + /// Desc:时段名称 + /// Default: + /// Nullable:False + /// + public string tp_name {get;set;} = string.Empty; + + /// + /// Desc:时段顺序 + /// Default: + /// Nullable:True + /// + public int? tp_seq {get;set;} + + /// + /// Desc:所属班制ID,BAS_SHIFTTYPE.ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? shifttype_id {get;set;} + + /// + /// Desc:所属班制代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? shifttype_code {get;set;} + + /// + /// Desc:所属班制ID,BAS_SHIFT.ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? shift_id {get;set;} + + /// + /// Desc:所属班次代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? shift_code {get;set;} + + /// + /// Desc:开始时间 + /// Default: + /// Nullable:False + /// + public string tpb_time {get;set;} = string.Empty; + + /// + /// Desc:结束时间 + /// Default: + /// Nullable:False + /// + public string tpe_time {get;set;} = string.Empty; + + /// + /// Desc:是否跨天 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? is_overday {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:工作时间 + /// Default: + /// Nullable:True + /// + public DateTime? worktime {get;set;} + + /// + /// Desc:时间戳(用于并发) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasTimePeriodRest.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasTimePeriodRest.cs new file mode 100644 index 00000000..306042f0 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasTimePeriodRest.cs @@ -0,0 +1,154 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///休息时段 + /// + [SugarTable("bas_time_period_rest")] + public partial class BasTimePeriodRest + { + public BasTimePeriodRest(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:时段代码 + /// Default: + /// Nullable:False + /// + public string tp_code {get;set;} = string.Empty; + + /// + /// Desc:时段名称 + /// Default: + /// Nullable:False + /// + public string tp_name {get;set;} = string.Empty; + + /// + /// Desc:所属班制ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? shift_type_id {get;set;} + + /// + /// Desc:所属班制代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? shift_type_code {get;set;} + + /// + /// Desc:所属班次ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? shift_id {get;set;} + + /// + /// Desc:所属班制代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? shif_tcode {get;set;} + + /// + /// Desc:时段ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_period_id {get;set;} + + /// + /// Desc:时段代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_period_code {get;set;} + + /// + /// Desc:开始时间 + /// Default: + /// Nullable:False + /// + public string tp_b_time {get;set;} = string.Empty; + + /// + /// Desc:结束时间 + /// Default: + /// Nullable:False + /// + public string tp_e_time {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasUnit.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasUnit.cs new file mode 100644 index 00000000..e537fc1f --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasUnit.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///单位信息 + /// + [SugarTable("bas_unit")] + public partial class BasUnit + { + public BasUnit(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:单位名称 + /// Default: + /// Nullable:False + /// + public string unit_name {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:状态判断 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? state {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWarehouse.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWarehouse.cs new file mode 100644 index 00000000..8d4d9fd7 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasWarehouse.cs @@ -0,0 +1,119 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///仓库资料 + /// + [SugarTable("bas_warehouse")] + public partial class BasWarehouse + { + public BasWarehouse(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:仓库代码 + /// Default: + /// Nullable:False + /// + public string whcode {get;set;} = string.Empty; + + /// + /// Desc:仓库名称 + /// Default: + /// Nullable:False + /// + public string whname {get;set;} = string.Empty; + + /// + /// Desc:是否委外仓 + /// Default: + /// Nullable:False + /// + public int is_osstock {get;set;} + + /// + /// Desc:是否特殊仓 + /// Default: + /// Nullable:False + /// + public int is_specialstock {get;set;} + + /// + /// Desc:所属部门 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? department_id {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenter.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenter.cs new file mode 100644 index 00000000..2e23c788 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenter.cs @@ -0,0 +1,119 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///工作中心表 + /// + [SugarTable("bas_workcenter")] + public partial class BasWorkcenter + { + public BasWorkcenter(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工作中心代码 + /// Default: + /// Nullable:False + /// + public string workcenter_code {get;set;} = string.Empty; + + /// + /// Desc:工作中心名称 + /// Default: + /// Nullable:False + /// + public string workcenter_name {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:车间(工段)代码,SEGMENT.SEGMENTCODE + /// Default: + /// Nullable:False + /// + public string segment_code {get;set;} = string.Empty; + + /// + /// Desc:车间(工段)ID,SEGMENT.ID + /// Default: + /// Nullable:False + /// + public string segment_id {get;set;} = string.Empty; + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenterLine.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenterLine.cs new file mode 100644 index 00000000..6450f91e --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenterLine.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///工作中心与产线关系表 + /// + [SugarTable("bas_workcenter_line")] + public partial class BasWorkcenterLine + { + public BasWorkcenterLine(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工作中心ID + /// Default: + /// Nullable:False + /// + public string workcenter_id {get;set;} = string.Empty; + + /// + /// Desc:工作中心代码 + /// Default: + /// Nullable:False + /// + public string workcenter_code {get;set;} = string.Empty; + + /// + /// Desc:产线ID,PRODUCTIONLINE.ID + /// Default: + /// Nullable:False + /// + public string productionline_id {get;set;} = string.Empty; + + /// + /// Desc:产线代码,PRODUCTIONLINE.PRODUCTIONLINECODE + /// Default: + /// Nullable:False + /// + public string productionline_code {get;set;} = string.Empty; + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenterStation.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenterStation.cs new file mode 100644 index 00000000..5bc9de34 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenterStation.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///工作中心与工位关系表 + /// + [SugarTable("bas_workcenter_station")] + public partial class BasWorkcenterStation + { + public BasWorkcenterStation(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工作中心ID + /// Default: + /// Nullable:False + /// + public string workcenter_id {get;set;} = string.Empty; + + /// + /// Desc:工作中心代码 + /// Default: + /// Nullable:False + /// + public string workcenter_code {get;set;} = string.Empty; + + /// + /// Desc:工位ID,STATION.ID + /// Default: + /// Nullable:False + /// + public string station_id {get;set;} = string.Empty; + + /// + /// Desc:工位代码,STATION.STATIONCODE + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:时间戳(用于并发处理) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkgroup.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkgroup.cs new file mode 100644 index 00000000..17154ea7 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkgroup.cs @@ -0,0 +1,112 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///班组信息 + /// + [SugarTable("bas_workgroup")] + public partial class BasWorkgroup + { + public BasWorkgroup(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:班组代码 + /// Default: + /// Nullable:False + /// + public string group_code {get;set;} = string.Empty; + + /// + /// Desc:班组名称 + /// Default: + /// Nullable:False + /// + public string group_name {get;set;} = string.Empty; + + /// + /// Desc:车间(工段)代码,SEGMENT.SEGMENTCODE + /// Default: + /// Nullable:False + /// + public string segment_id {get;set;} = string.Empty; + + /// + /// Desc:车间代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? segment_code {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:状态 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? state {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkgroupEmployee.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkgroupEmployee.cs new file mode 100644 index 00000000..c75490da --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkgroupEmployee.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///班组与员工关系 + /// + [SugarTable("bas_workgroup_employee")] + public partial class BasWorkgroupEmployee + { + public BasWorkgroupEmployee(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:班组ID,BAS_GROUP.ID + /// Default: + /// Nullable:False + /// + public string group_id {get;set;} = string.Empty; + + /// + /// Desc:班组代码 + /// Default: + /// Nullable:False + /// + public string group_code {get;set;} = string.Empty; + + /// + /// Desc:人员ID,BAS_EMPLOYEE.ID + /// Default: + /// Nullable:False + /// + public string employee_id {get;set;} = string.Empty; + + /// + /// Desc:人员代码 + /// Default: + /// Nullable:False + /// + public string employee_code {get;set;} = string.Empty; + + /// + /// Desc:是否班组长 + /// Default: + /// Nullable:True + /// + public int? is_leader {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkgroupWorkcenter.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkgroupWorkcenter.cs new file mode 100644 index 00000000..6783668b --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkgroupWorkcenter.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///班组与工作中心关系 + /// + [SugarTable("bas_workgroup_workcenter")] + public partial class BasWorkgroupWorkcenter + { + public BasWorkgroupWorkcenter(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:班组ID,BAS_GROUP.ID + /// Default: + /// Nullable:False + /// + public string group_id {get;set;} = string.Empty; + + /// + /// Desc:班组代码 + /// Default: + /// Nullable:False + /// + public string group_code {get;set;} = string.Empty; + + /// + /// Desc:工作中心ID,BAS_WORKCENTER.ID + /// Default: + /// Nullable:False + /// + public string workcenter_id {get;set;} = string.Empty; + + /// + /// Desc:工作中心代码 + /// Default: + /// Nullable:False + /// + public string workcenter_code {get;set;} = string.Empty; + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkline.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkline.cs new file mode 100644 index 00000000..9e055c38 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkline.cs @@ -0,0 +1,140 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///生产线资料 + /// + [SugarTable("bas_workline")] + public partial class BasWorkline + { + public BasWorkline(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产线代码 + /// Default: + /// Nullable:False + /// + public string workline_code {get;set;} = string.Empty; + + /// + /// Desc:产线名称 + /// Default: + /// Nullable:False + /// + public string workline_name {get;set;} = string.Empty; + + /// + /// Desc:所属工段ID,BAS_SEGMENT.ID + /// Default: + /// Nullable:False + /// + public string segment_id {get;set;} = string.Empty; + + /// + /// Desc:所属工段代码 + /// Default: + /// Nullable:False + /// + public string segment_code {get;set;} = string.Empty; + + /// + /// Desc:班制代码ID,BAS_SHIFTTYPE.ID + /// Default: + /// Nullable:False + /// + public string shifttype_id {get;set;} = string.Empty; + + /// + /// Desc:班制代码 + /// Default: + /// Nullable:False + /// + public string shifttype_code {get;set;} = string.Empty; + + /// + /// Desc:所属工厂ID,BAS_FACTORY.ID + /// Default: + /// Nullable:False + /// + public string factory_id {get;set;} = string.Empty; + + /// + /// Desc:所属工厂代码 + /// Default: + /// Nullable:False + /// + public string factory_code {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWorksegment.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWorksegment.cs new file mode 100644 index 00000000..6a3294de --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasWorksegment.cs @@ -0,0 +1,133 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///工段资料 + /// + [SugarTable("bas_worksegment")] + public partial class BasWorksegment + { + public BasWorksegment(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工段代码 + /// Default: + /// Nullable:False + /// + public string segment_code {get;set;} = string.Empty; + + /// + /// Desc:工段名称 + /// Default: + /// Nullable:False + /// + public string segment_name {get;set;} = string.Empty; + + /// + /// Desc:所属班制ID,BAS_SHIFTTYPE.ID + /// Default: + /// Nullable:False + /// + public string shifttype_id {get;set;} = string.Empty; + + /// + /// Desc:班制代码 + /// Default: + /// Nullable:False + /// + public string shifttype_code {get;set;} = string.Empty; + + /// + /// Desc:所属工厂ID + /// Default: + /// Nullable:False + /// + public string factory_id {get;set;} = string.Empty; + + /// + /// Desc:所属工厂代码 + /// Default: + /// Nullable:False + /// + public string factory_code {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkstation.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkstation.cs new file mode 100644 index 00000000..324cf814 --- /dev/null +++ b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkstation.cs @@ -0,0 +1,140 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.BasicData.Entities +{ + /// + ///工位资料 + /// + [SugarTable("bas_workstation")] + public partial class BasWorkstation + { + public BasWorkstation(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工位代码 + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:工位名称 + /// Default: + /// Nullable:False + /// + public string station_name {get;set;} = string.Empty; + + /// + /// Desc:工位类别 1:人Human, 2:设备Machine + /// Default: + /// Nullable:False + /// + public int station_type {get;set;} + + /// + /// Desc:所属工段ID,BAS_SEGMENT.ID + /// Default: + /// Nullable:False + /// + public string segment_id {get;set;} = string.Empty; + + /// + /// Desc:所属工段代码 + /// Default: + /// Nullable:False + /// + public string segment_code {get;set;} = string.Empty; + + /// + /// Desc:所属产线ID,BAS_PRODUCTIONLINE.ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? productionline_id {get;set;} + + /// + /// Desc:所属产线代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? productionline_code {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolCheckItem.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolCheckItem.cs new file mode 100644 index 00000000..f39a6882 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolCheckItem.cs @@ -0,0 +1,189 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///TODO + /// + [SugarTable("tool_check_item")] + public partial class ToolCheckItem + { + public ToolCheckItem(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public long id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public int? tenantid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? orgid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string qctype {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public int seq {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string itemcode {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string itemname {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? resulttype {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public int judgetype {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? unit {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public decimal? limitlow {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public decimal? limithigh {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public decimal? standard {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute1 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute2 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute3 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public DateTime? lastmodificationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? lastmodifieruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? lastmodifierfullname {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public DateTime creationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? creatoruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? creatorfullname {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolCheckPeriod.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolCheckPeriod.cs new file mode 100644 index 00000000..55590ce7 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolCheckPeriod.cs @@ -0,0 +1,147 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///TODO + /// + [SugarTable("tool_check_period")] + public partial class ToolCheckPeriod + { + public ToolCheckPeriod(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public long id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public int? tenantid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? orgid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string tpcode {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string tpname {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public int tpseq {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public int tpbtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public int tpetime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute1 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute2 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute3 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public DateTime? lastmodificationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? lastmodifieruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? lastmodifierfullname {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public DateTime creationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? creatoruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? creatorfullname {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolCheckResult.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolCheckResult.cs new file mode 100644 index 00000000..86e169c8 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolCheckResult.cs @@ -0,0 +1,147 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///TODO + /// + [SugarTable("tool_check_result")] + public partial class ToolCheckResult + { + public ToolCheckResult(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public char id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public int? tenantid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? orgid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string toolcode {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public DateTime checkdate {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string tpcode {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string result {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute1 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute2 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute3 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public DateTime? lastmodificationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? lastmodifieruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? lastmodifierfullname {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public DateTime creationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? creatoruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? creatorfullname {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolCheckResultDetail.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolCheckResultDetail.cs new file mode 100644 index 00000000..bf56217e --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolCheckResultDetail.cs @@ -0,0 +1,203 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///TODO + /// + [SugarTable("tool_check_result_detail")] + public partial class ToolCheckResultDetail + { + public ToolCheckResultDetail(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public char id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public int? tenantid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? orgid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public char checkresultid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public int seq {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string checkitemcode {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string checkitemname {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? resulttype {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public int judgetype {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? unit {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public decimal? limitlow {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public decimal? limithigh {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public decimal? standard {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? actual {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? resultcode {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute1 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute2 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute3 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public DateTime? lastmodificationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? lastmodifieruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? lastmodifierfullname {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public DateTime creationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? creatoruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? creatorfullname {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolCheckResultIcon.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolCheckResultIcon.cs new file mode 100644 index 00000000..6b04d375 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolCheckResultIcon.cs @@ -0,0 +1,140 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///TODO + /// + [SugarTable("tool_check_result_icon")] + public partial class ToolCheckResultIcon + { + public ToolCheckResultIcon(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public long id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public int? tenantid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? orgid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string resultcode {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string resultname {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string icon {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public int resulttype {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute1 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute2 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute3 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public DateTime? lastmodificationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? lastmodifieruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? lastmodifierfullname {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public DateTime creationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? creatoruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? creatorfullname {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolLocation.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolLocation.cs new file mode 100644 index 00000000..e7447746 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolLocation.cs @@ -0,0 +1,119 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///库位资料 + /// + [SugarTable("tool_location")] + public partial class ToolLocation + { + public ToolLocation(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:库位代码(库位编号唯一) + /// Default: + /// Nullable:False + /// + public string location_code {get;set;} = string.Empty; + + /// + /// Desc:货架ID + /// Default: + /// Nullable:False + /// + public string rack_id {get;set;} = string.Empty; + + /// + /// Desc:区域ID + /// Default: + /// Nullable:False + /// + public string region_id {get;set;} = string.Empty; + + /// + /// Desc:仓库ID + /// Default: + /// Nullable:False + /// + public string wh_id {get;set;} = string.Empty; + + /// + /// Desc:层数 + /// Default: + /// Nullable:False + /// + public int layers {get;set;} + + /// + /// Desc:位置序号 + /// Default: + /// Nullable:False + /// + public int seq {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMaintainLog.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMaintainLog.cs new file mode 100644 index 00000000..23805225 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMaintainLog.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///工装工具保养记录 + /// + [SugarTable("tool_maintain_log")] + public partial class ToolMaintainLog + { + public ToolMaintainLog(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工具代码 + /// Default: + /// Nullable:False + /// + public string tool_code {get;set;} = string.Empty; + + /// + /// Desc:保养内容 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? content {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolModel.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolModel.cs new file mode 100644 index 00000000..d767e05e --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolModel.cs @@ -0,0 +1,133 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///工装工具型号 + /// + [SugarTable("tool_model")] + public partial class ToolModel + { + public ToolModel(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:所属类型 + /// Default: + /// Nullable:False + /// + public string type_code {get;set;} = string.Empty; + + /// + /// Desc:型号代码 + /// Default: + /// Nullable:False + /// + public string model_code {get;set;} = string.Empty; + + /// + /// Desc:预警使用次数 + /// Default: + /// Nullable:True + /// + public int? warnuse_times {get;set;} + + /// + /// Desc:安全库存 + /// Default: + /// Nullable:True + /// + public int? safe_qty {get;set;} + + /// + /// Desc:需保养 + /// Default: + /// Nullable:False + /// + public int main_tenance {get;set;} + + /// + /// Desc:生产厂家 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? supplier_code {get;set;} + + /// + /// Desc:联系人 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? contact_name {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolModelCheckItem.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolModelCheckItem.cs new file mode 100644 index 00000000..6adf9ec4 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolModelCheckItem.cs @@ -0,0 +1,189 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///TODO + /// + [SugarTable("tool_model_check_item")] + public partial class ToolModelCheckItem + { + public ToolModelCheckItem(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public long id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public int? tenantid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? orgid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string toolmodel {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public int seq {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string checkitemcode {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string checkitemname {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? resulttype {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public int judgetype {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? unit {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public decimal? limitlow {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public decimal? limithigh {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public decimal? standard {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute1 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute2 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute3 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public DateTime? lastmodificationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? lastmodifieruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? lastmodifierfullname {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public DateTime creationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? creatoruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? creatorfullname {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolModelCheckPeriod.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolModelCheckPeriod.cs new file mode 100644 index 00000000..e5db4138 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolModelCheckPeriod.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///TODO + /// + [SugarTable("tool_model_check_period")] + public partial class ToolModelCheckPeriod + { + public ToolModelCheckPeriod(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public long id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public int? tenantid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? orgid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string toolmodel {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string tpcode {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute1 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute2 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute3 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public DateTime? lastmodificationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? lastmodifieruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? lastmodifierfullname {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public DateTime creationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? creatoruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? creatorfullname {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolModelEquip.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolModelEquip.cs new file mode 100644 index 00000000..1ef0ac7a --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolModelEquip.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///工装工具型号与设备绑定关系 + /// + [SugarTable("tool_model_equip")] + public partial class ToolModelEquip + { + public ToolModelEquip(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:型号代码 + /// Default: + /// Nullable:False + /// + public string model_code {get;set;} = string.Empty; + + /// + /// Desc:设备代码 + /// Default: + /// Nullable:False + /// + public string eqp_code {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolModelItem.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolModelItem.cs new file mode 100644 index 00000000..fee8cf67 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolModelItem.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///工装工具型号与产品工序绑定关系 + /// + [SugarTable("tool_model_item")] + public partial class ToolModelItem + { + public ToolModelItem(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:型号代码 + /// Default: + /// Nullable:False + /// + public string model_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? route_code {get;set;} + + /// + /// Desc:工艺路线版本 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? route_version {get;set;} + + /// + /// Desc:工序代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? process_code {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:数量 + /// Default: + /// Nullable:False + /// + public int qty {get;set;} + + /// + /// Desc:树形 + /// Default: + /// Nullable:False + /// + public int pertimes {get;set;} + + /// + /// Desc:损失率 + /// Default: + /// Nullable:True + /// + public decimal? lossrate {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainGroup.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainGroup.cs new file mode 100644 index 00000000..7eca1d5f --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainGroup.cs @@ -0,0 +1,63 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///模具保养项目组 + /// + [SugarTable("tool_mold_maintain_group")] + public partial class ToolMoldMaintainGroup + { + public ToolMoldMaintainGroup(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:项目组名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? name {get;set;} + + /// + /// Desc:保养类型 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? service_type {get;set;} + + /// + /// Desc:描述 + /// Default: + /// Nullable:False + /// + public string describe {get;set;} = string.Empty; + + /// + /// Desc:创建人 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainGroupItem.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainGroupItem.cs new file mode 100644 index 00000000..ba9005e9 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainGroupItem.cs @@ -0,0 +1,42 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///模具保养项目组与保养项关系 + /// + [SugarTable("tool_mold_maintain_group_item")] + public partial class ToolMoldMaintainGroupItem + { + public ToolMoldMaintainGroupItem(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:项目组id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? item_group_id {get;set;} + + /// + /// Desc:保养项id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? item_id {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainGroupRelation.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainGroupRelation.cs new file mode 100644 index 00000000..1c0430f4 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainGroupRelation.cs @@ -0,0 +1,42 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///模具保养组与磨具关联 + /// + [SugarTable("tool_mold_maintain_group_relation")] + public partial class ToolMoldMaintainGroupRelation + { + public ToolMoldMaintainGroupRelation(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:项目组Id + /// Default: + /// Nullable:False + /// + public string item_group_id {get;set;} = string.Empty; + + /// + /// Desc:模具Id + /// Default: + /// Nullable:False + /// + public string mold_id {get;set;} = string.Empty; + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainRule.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainRule.cs new file mode 100644 index 00000000..53b8ad15 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainRule.cs @@ -0,0 +1,77 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///模具保养规则 + /// + [SugarTable("tool_mold_maintain_rule")] + public partial class ToolMoldMaintainRule + { + public ToolMoldMaintainRule(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:保养方式 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mode {get;set;} + + /// + /// Desc:保养起止日期 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? startandend_date {get;set;} + + /// + /// Desc:保养周期 + /// Default: + /// Nullable:True + /// + public int? cycle {get;set;} + + /// + /// Desc:创建人 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改人 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainRuleRelation.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainRuleRelation.cs new file mode 100644 index 00000000..f27e7d3a --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainRuleRelation.cs @@ -0,0 +1,42 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///模具保养规则与模具关联 + /// + [SugarTable("tool_mold_maintain_rule_relation")] + public partial class ToolMoldMaintainRuleRelation + { + public ToolMoldMaintainRuleRelation(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:保养规则id + /// Default: + /// Nullable:False + /// + public string rule_id {get;set;} = string.Empty; + + /// + /// Desc:模具id + /// Default: + /// Nullable:False + /// + public string mold_id {get;set;} = string.Empty; + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMolds.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMolds.cs new file mode 100644 index 00000000..f7865fd4 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMolds.cs @@ -0,0 +1,196 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///模具信息表 + /// + [SugarTable("tool_molds")] + public partial class ToolMolds + { + public ToolMolds(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:模具编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mold_code {get;set;} + + /// + /// Desc:模具名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mold_name {get;set;} + + /// + /// Desc:物料Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_id {get;set;} + + /// + /// Desc:设备Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? eqp_id {get;set;} + + /// + /// Desc:设备代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? eqp_code {get;set;} + + /// + /// Desc:生产模数 + /// Default: + /// Nullable:True + /// + public int? production_modulus {get;set;} + + /// + /// Desc:保养模次 + /// Default: + /// Nullable:True + /// + public int? maintain_qty {get;set;} + + /// + /// Desc:磨具使用状态 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mold_status {get;set;} + + /// + /// Desc:日定额 + /// Default: + /// Nullable:True + /// + public decimal? daily_rate {get;set;} + + /// + /// Desc:工时定额(H/PCS) + /// Default: + /// Nullable:True + /// + public decimal? hour_norm {get;set;} + + /// + /// Desc:成长周期 + /// Default: + /// Nullable:True + /// + public int? growth_cycle {get;set;} + + /// + /// Desc:型腔数 + /// Default: + /// Nullable:True + /// + public int? cavity_qty {get;set;} + + /// + /// Desc:模具寿命 + /// Default: + /// Nullable:True + /// + public int? mold_life {get;set;} + + /// + /// Desc:模具剩余寿命 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mold_remaining_life {get;set;} + + /// + /// Desc:库房编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? warehosue_id {get;set;} + + /// + /// Desc:库位编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? location_id {get;set;} + + /// + /// Desc:备注 + /// Default: + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:模穴数 + /// Default: + /// Nullable:True + /// + public int? mold_cavity {get;set;} + + /// + /// Desc:模具型号 + /// Default: + /// Nullable:True + /// + public string? mold_type_code {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldsEquipment.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldsEquipment.cs new file mode 100644 index 00000000..508ea55f --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldsEquipment.cs @@ -0,0 +1,70 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///模具设备关联表 + /// + [SugarTable("tool_molds_equipment")] + public partial class ToolMoldsEquipment + { + public ToolMoldsEquipment(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:模具编号 + /// Default: + /// Nullable:False + /// + public string mold_id {get;set;} = string.Empty; + + /// + /// Desc:设备编号 + /// Default: + /// Nullable:False + /// + public string equipment_id {get;set;} = string.Empty; + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldsProduct.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldsProduct.cs new file mode 100644 index 00000000..b914296b --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldsProduct.cs @@ -0,0 +1,84 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///模具产品关联表 + /// + [SugarTable("tool_molds_product")] + public partial class ToolMoldsProduct + { + public ToolMoldsProduct(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:模具编号 + /// Default: + /// Nullable:False + /// + public string mold_id {get;set;} = string.Empty; + + /// + /// Desc:产品编号 + /// Default: + /// Nullable:False + /// + public string product_id {get;set;} = string.Empty; + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:实际使用型腔数 + /// Default: + /// Nullable:True + /// + public int? real_cavity_qty {get;set;} + + /// + /// Desc:产品同组标识 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? product_group {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolRack.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolRack.cs new file mode 100644 index 00000000..53b95003 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolRack.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///货架 + /// + [SugarTable("tool_rack")] + public partial class ToolRack + { + public ToolRack(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:货架代码 + /// Default: + /// Nullable:False + /// + public string rack_code {get;set;} = string.Empty; + + /// + /// Desc:区域Id + /// Default: + /// Nullable:False + /// + public string region_id {get;set;} = string.Empty; + + /// + /// Desc:货架层数 + /// Default: + /// Nullable:False + /// + public int layers {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolRegion.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolRegion.cs new file mode 100644 index 00000000..7e92d064 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolRegion.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///仓库区域 + /// + [SugarTable("tool_region")] + public partial class ToolRegion + { + public ToolRegion(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:仓库ID + /// Default: + /// Nullable:False + /// + public string wh_id {get;set;} = string.Empty; + + /// + /// Desc:区域代码 + /// Default: + /// Nullable:False + /// + public string region_code {get;set;} = string.Empty; + + /// + /// Desc:区域名称 + /// Default: + /// Nullable:False + /// + public string region_name {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolToolType.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolToolType.cs new file mode 100644 index 00000000..3d49dd28 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolToolType.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///工装工具类型 + /// + [SugarTable("tool_tool_type")] + public partial class ToolToolType + { + public ToolToolType(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:类型代码 + /// Default: + /// Nullable:False + /// + public string type_code {get;set;} = string.Empty; + + /// + /// Desc:类型名称 + /// Default: + /// Nullable:False + /// + public string type_name {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolToolTypeCheckPeriod.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolToolTypeCheckPeriod.cs new file mode 100644 index 00000000..bf9e394d --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolToolTypeCheckPeriod.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///TODO + /// + [SugarTable("tool_tool_type_check_period")] + public partial class ToolToolTypeCheckPeriod + { + public ToolToolTypeCheckPeriod(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public long id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public int? tenantid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? orgid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string tooltype {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string tpcode {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute1 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute2 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute3 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public DateTime? lastmodificationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? lastmodifieruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? lastmodifierfullname {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public DateTime creationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? creatoruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? creatorfullname {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolToolTypeChekItem.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolToolTypeChekItem.cs new file mode 100644 index 00000000..e59b412f --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolToolTypeChekItem.cs @@ -0,0 +1,189 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///TODO + /// + [SugarTable("tool_tool_type_chek_item")] + public partial class ToolToolTypeChekItem + { + public ToolToolTypeChekItem(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public long id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public int? tenantid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? orgid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string tooltype {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public int seq {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string checkitemcode {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string checkitemname {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? resulttype {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public int judgetype {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? unit {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public decimal? limitlow {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public decimal? limithigh {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public decimal? standard {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute1 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute2 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute3 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public DateTime? lastmodificationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? lastmodifieruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? lastmodifierfullname {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public DateTime creationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? creatoruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? creatorfullname {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolTools.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolTools.cs new file mode 100644 index 00000000..731c9881 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolTools.cs @@ -0,0 +1,175 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///工装工具 + /// + [SugarTable("tool_tools")] + public partial class ToolTools + { + public ToolTools(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:所属类型 + /// Default: + /// Nullable:False + /// + public string type_code {get;set;} = string.Empty; + + /// + /// Desc:工具代码 + /// Default: + /// Nullable:False + /// + public string model_code {get;set;} = string.Empty; + + /// + /// Desc:型号代码 + /// Default: + /// Nullable:False + /// + public string tool_code {get;set;} = string.Empty; + + /// + /// Desc:工具名称 + /// Default: + /// Nullable:False + /// + public string tool_name {get;set;} = string.Empty; + + /// + /// Desc:状态: 10-登记 20-在库 30-已领用 40-已安装 90-已报废 + /// Default: + /// Nullable:False + /// + public int status {get;set;} + + /// + /// Desc:所在仓库Id + /// Default: + /// Nullable:True + /// + public long? ware_house_id {get;set;} + + /// + /// Desc:所在库位 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? location_code {get;set;} + + /// + /// Desc:最大使用次数 + /// Default: + /// Nullable:True + /// + public int? maxuse_times {get;set;} + + /// + /// Desc:累计使用次数 + /// Default: + /// Nullable:True + /// + public int? used_times {get;set;} + + /// + /// Desc:周期 + /// Default: + /// Nullable:False + /// + public int cycle_times {get;set;} + + /// + /// Desc:生产厂家 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? supplier_code {get;set;} + + /// + /// Desc:联系人 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? contact_name {get;set;} + + /// + /// Desc:报废原因 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? scrap_reason {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolToolsLog.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolToolsLog.cs new file mode 100644 index 00000000..3c1cc2ba --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolToolsLog.cs @@ -0,0 +1,119 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///工装工具领退废记录 + /// + [SugarTable("tool_tools_log")] + public partial class ToolToolsLog + { + public ToolToolsLog(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工具代码 + /// Default: + /// Nullable:False + /// + public string tool_code {get;set;} = string.Empty; + + /// + /// Desc:"状态: 10-入库 20-领用 30-退还 40-安装 50-卸载 90-报废" + /// Default: + /// Nullable:False + /// + public int biz_type {get;set;} + + /// + /// Desc:所在仓库Id + /// Default: + /// Nullable:True + /// + public long? ware_house_id {get;set;} + + /// + /// Desc:所在库位 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? location_code {get;set;} + + /// + /// Desc:操作人员 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? operation_name {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolWarehouse.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolWarehouse.cs new file mode 100644 index 00000000..94c0c892 --- /dev/null +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolWarehouse.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.EquipMgr.Entities +{ + /// + ///库房资料 + /// + [SugarTable("tool_warehouse")] + public partial class ToolWarehouse + { + public ToolWarehouse(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? orgid {get;set;} + + /// + /// Desc:库房代码 + /// Default: + /// Nullable:False + /// + public string whcode {get;set;} = string.Empty; + + /// + /// Desc:库房名称 + /// Default: + /// Nullable:False + /// + public string whname {get;set;} = string.Empty; + + /// + /// Desc:所属部门 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? departmentid {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonInfo.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonInfo.cs new file mode 100644 index 00000000..85ae6b78 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonInfo.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///包装箱号信息 + /// + [SugarTable("prd_carton_info")] + public partial class PrdCartonInfo + { + public PrdCartonInfo(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:箱号 + /// Default: + /// Nullable:False + /// + public string carton_no {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mo_code {get;set;} + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:箱子容量 + /// Default: + /// Nullable:False + /// + public decimal capacity {get;set;} + + /// + /// Desc:已放入数量 + /// Default: + /// Nullable:False + /// + public decimal collected_qty {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonRcard.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonRcard.cs new file mode 100644 index 00000000..fe70a895 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonRcard.cs @@ -0,0 +1,119 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///包装箱号和产品序列号的关系 + /// + [SugarTable("prd_carton_rcard")] + public partial class PrdCartonRcard + { + public PrdCartonRcard(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:箱号 + /// Default: + /// Nullable:False + /// + public string carton_no {get;set;} = string.Empty; + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:产品序列号数量 + /// Default: + /// Nullable:False + /// + public decimal relation_qty {get;set;} + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonRcardLog.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonRcardLog.cs new file mode 100644 index 00000000..3f6dc984 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonRcardLog.cs @@ -0,0 +1,147 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///包装箱号和产品序列号的关系日志 + /// + [SugarTable("prd_carton_rcard_log")] + public partial class PrdCartonRcardLog + { + public PrdCartonRcardLog(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:箱号 + /// Default: + /// Nullable:False + /// + public string carton_no {get;set;} = string.Empty; + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:产品序列号数量 + /// Default: + /// Nullable:False + /// + public decimal relation_qty {get;set;} + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:包装用户名称 + /// Default: + /// Nullable:False + /// + public string pack_user_name {get;set;} = string.Empty; + + /// + /// Desc:包装时间 + /// Default: + /// Nullable:False + /// + public DateTime pack_time {get;set;} + + /// + /// Desc:拆解用户名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remove_user_name {get;set;} + + /// + /// Desc:拆解时间 + /// Default: + /// Nullable:True + /// + public DateTime? remove_time {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdDispatch.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdDispatch.cs new file mode 100644 index 00000000..477a1fbb --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdDispatch.cs @@ -0,0 +1,133 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///工序派工单 + /// + [SugarTable("prd_dispatch")] + public partial class PrdDispatch + { + public PrdDispatch(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:派工单代码 + /// Default: + /// Nullable:False + /// + public string dispatch_code {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:计划派工数 + /// Default: + /// Nullable:False + /// + public decimal plan_qty {get;set;} + + /// + /// Desc:工作中心代码 + /// Default: + /// Nullable:False + /// + public string work_center_code {get;set;} = string.Empty; + + /// + /// Desc:派工单状态:10 未派工 20 已派工 30 工位派工 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:派工单状态 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? dispatch_status {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdDispatchStation.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdDispatchStation.cs new file mode 100644 index 00000000..53147ef6 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdDispatchStation.cs @@ -0,0 +1,147 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///工位派工单 + /// + [SugarTable("prd_dispatch_station")] + public partial class PrdDispatchStation + { + public PrdDispatchStation(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:派工单代码 + /// Default: + /// Nullable:False + /// + public string dispatch_code {get;set;} = string.Empty; + + /// + /// Desc:派工单序号(1开始,最大+1,不强制连续) + /// Default: + /// Nullable:False + /// + public int seq {get;set;} + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:工位代码 + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:计划派工数 + /// Default: + /// Nullable:False + /// + public decimal plan_qty {get;set;} + + /// + /// Desc:工作中心代码 + /// Default: + /// Nullable:False + /// + public string work_center_code {get;set;} = string.Empty; + + /// + /// Desc:状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:派工单状态:10 未派工 20 已派工 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? dispatch_status {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdEqpdown.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdEqpdown.cs new file mode 100644 index 00000000..48c09c51 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdEqpdown.cs @@ -0,0 +1,154 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///设备停机记录 + /// + [SugarTable("prd_eqpdown")] + public partial class PrdEqpdown + { + public PrdEqpdown(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:生产场地 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? work_shop {get;set;} + + /// + /// Desc:设备Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? eqp_id {get;set;} + + /// + /// Desc:设备名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? eqp_name {get;set;} + + /// + /// Desc:停机类别 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? down_type {get;set;} + + /// + /// Desc:停机原因 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? down_cause {get;set;} + + /// + /// Desc:开始操作人 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? start_name {get;set;} + + /// + /// Desc:开始时间 + /// Default: + /// Nullable:True + /// + public DateTime? start_time {get;set;} + + /// + /// Desc:开始备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? start_remark {get;set;} + + /// + /// Desc:结束操作人 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? end_name {get;set;} + + /// + /// Desc:结束时间 + /// Default: + /// Nullable:True + /// + public DateTime? end_time {get;set;} + + /// + /// Desc:结束备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? end_remark {get;set;} + + /// + /// Desc:补录时间 + /// Default: + /// Nullable:True + /// + public DateTime? sup_recard_time {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotFeedback.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotFeedback.cs new file mode 100644 index 00000000..59c0d630 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotFeedback.cs @@ -0,0 +1,175 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///批次工序报工信息表 + /// + [SugarTable("prd_lot_feedback")] + public partial class PrdLotFeedback + { + public PrdLotFeedback(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:批次号 + /// Default: + /// Nullable:False + /// + public string lot_no {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:项目代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线代码 + /// Default: + /// Nullable:False + /// + public string route_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线版本 + /// Default: + /// Nullable:False + /// + public string route_version {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:工位代码 + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:合格数量 + /// Default: + /// Nullable:True + /// + public decimal? qualifity_qty {get;set;} + + /// + /// Desc:不合格数量 + /// Default: + /// Nullable:True + /// + public decimal? un_qualifity_qty {get;set;} + + /// + /// Desc:废弃料数量 + /// Default: + /// Nullable:True + /// + public decimal? scrap_qty {get;set;} + + /// + /// Desc:人时报工(分钟) + /// Default: + /// Nullable:True + /// + public decimal? man_time {get;set;} + + /// + /// Desc:机时报工(分钟) + /// Default: + /// Nullable:True + /// + public decimal? machine_time {get;set;} + + /// + /// Desc:人员表 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? staffs {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotFeedbackRecord.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotFeedbackRecord.cs new file mode 100644 index 00000000..afd959ac --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotFeedbackRecord.cs @@ -0,0 +1,203 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///批次报工记录表 + /// + [SugarTable("prd_lot_feedback_record")] + public partial class PrdLotFeedbackRecord + { + public PrdLotFeedbackRecord(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:序列号 + /// Default: + /// Nullable:False + /// + public int seq {get;set;} + + /// + /// Desc:批次号 + /// Default: + /// Nullable:False + /// + public string lot_no {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mo_code {get;set;} + + /// + /// Desc:项目代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线代码 + /// Default: + /// Nullable:False + /// + public string route_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线版本 + /// Default: + /// Nullable:False + /// + public string route_version {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:工位代码 + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:合格数量 + /// Default: + /// Nullable:True + /// + public decimal? qualifity_qty {get;set;} + + /// + /// Desc:不合格数量 + /// Default: + /// Nullable:True + /// + public decimal? un_qualifity_qty {get;set;} + + /// + /// Desc:废弃料 + /// Default: + /// Nullable:True + /// + public decimal? scrap_qty {get;set;} + + /// + /// Desc:人时报工(分钟) + /// Default: + /// Nullable:True + /// + public decimal? man_time {get;set;} + + /// + /// Desc:机时报工(分钟) + /// Default: + /// Nullable:True + /// + public decimal? machine_time {get;set;} + + /// + /// Desc:报工人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? feedback_user_id {get;set;} + + /// + /// Desc:报工人员名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? feedback_user_name {get;set;} + + /// + /// Desc:报工时间 + /// Default: + /// Nullable:True + /// + public DateTime? feedback_time {get;set;} + + /// + /// Desc:员工表 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? staffs {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotOperation.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotOperation.cs new file mode 100644 index 00000000..3bc59224 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotOperation.cs @@ -0,0 +1,175 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///批次操作记录信息 + /// + [SugarTable("prd_lot_operation")] + public partial class PrdLotOperation + { + public PrdLotOperation(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:批次号 + /// Default: + /// Nullable:False + /// + public string lot_no {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线代码 + /// Default: + /// Nullable:False + /// + public string route_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线版本 + /// Default: + /// Nullable:False + /// + public string route_version {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:工位代码 + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:开始时间 + /// Default: + /// Nullable:False + /// + public DateTime start_time {get;set;} + + /// + /// Desc:结束时间 + /// Default: + /// Nullable:True + /// + public DateTime? end_time {get;set;} + + /// + /// Desc:操作间隔时间(分钟数) + /// Default: + /// Nullable:True + /// + public DateTime? work_duration {get;set;} + + /// + /// Desc:操作类型: START-开工 STOP-停工 RESUME-复工 FEEDBACK-报工 COMPLETE-完工 + /// Default: + /// Nullable:False + /// + public string operation_type {get;set;} = string.Empty; + + /// + /// Desc:作业状态: NEW-未开工 WORK-作业中 STOP-停工 COMPLETE-完工 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:开工进站数量 + /// Default: + /// Nullable:True + /// + public decimal? input_qty {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRcard.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRcard.cs new file mode 100644 index 00000000..a157c55d --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRcard.cs @@ -0,0 +1,119 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///批次产品序列号 + /// + [SugarTable("prd_lot_rcard")] + public partial class PrdLotRcard + { + public PrdLotRcard(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:批次号 + /// Default: + /// Nullable:False + /// + public string lot_no {get;set;} = string.Empty; + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRepair.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRepair.cs new file mode 100644 index 00000000..3187f3f1 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRepair.cs @@ -0,0 +1,280 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///批次维修主资料 + /// + [SugarTable("prd_lot_repair")] + public partial class PrdLotRepair + { + public PrdLotRepair(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:批次号 + /// Default: + /// Nullable:False + /// + public string lot_no {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:送修工艺路线代码 + /// Default: + /// Nullable:False + /// + public string from_route_code {get;set;} = string.Empty; + + /// + /// Desc:送修工艺路线版本 + /// Default: + /// Nullable:False + /// + public string from_route_version {get;set;} = string.Empty; + + /// + /// Desc:送修工序代码 + /// Default: + /// Nullable:False + /// + public string from_process_code {get;set;} = string.Empty; + + /// + /// Desc:送修工段代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? from_segment_code {get;set;} + + /// + /// Desc:送修产线代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? from_production_line_code {get;set;} + + /// + /// Desc:送修工位代码 + /// Default: + /// Nullable:False + /// + public string from_station_code {get;set;} = string.Empty; + + /// + /// Desc:送修年份 + /// Default: + /// Nullable:False + /// + public int from_year {get;set;} + + /// + /// Desc:送修月份 + /// Default: + /// Nullable:False + /// + public int from_month {get;set;} + + /// + /// Desc:送修周别 + /// Default: + /// Nullable:False + /// + public int from_week {get;set;} + + /// + /// Desc:班制代码 + /// Default: + /// Nullable:False + /// + public string shift_type_code {get;set;} = string.Empty; + + /// + /// Desc:班次代码 + /// Default: + /// Nullable:False + /// + public string shift_code {get;set;} = string.Empty; + + /// + /// Desc:时段代码 + /// Default: + /// Nullable:True + /// + public string? tp_code {get;set;} + + /// + /// Desc:工厂日 + /// Default: + /// Nullable:False + /// + public int shift_day {get;set;} + + /// + /// Desc:送修人名称 + /// Default: + /// Nullable:False + /// + public string from_user_name {get;set;} = string.Empty; + + /// + /// Desc:送修备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? from_memo {get;set;} + + /// + /// Desc:送修时间 + /// Default: + /// Nullable:False + /// + public DateTime from_time {get;set;} + + /// + /// Desc:维修来源类型 + /// Default: + /// Nullable:False + /// + public string from_input_type {get;set;} = string.Empty; + + /// + /// Desc:维修状态 New, (产线发现不良) Repair, (维修中) Complete, (维修完成) + /// Default: + /// Nullable:False + /// + public string repair_status {get;set;} = string.Empty; + + /// + /// Desc:维修完成人ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? repaired_user_id {get;set;} + + /// + /// Desc:维修完成人员姓名 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? reparied_user_name {get;set;} + + /// + /// Desc:维修完成时间 + /// Default: + /// Nullable:True + /// + public DateTime? repaired_time {get;set;} + + /// + /// Desc: 维修完成工序代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? reparied_station_code {get;set;} + + /// + /// Desc:维系完成回流批次号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? repaired_reflow_lot_no {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:处理状态: UNHANDLE-待处理 HANDLE-已处理 + /// Default: + /// Nullable:False + /// + public string handle_type {get;set;} = string.Empty; + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRepairErrorcode.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRepairErrorcode.cs new file mode 100644 index 00000000..12db155d --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRepairErrorcode.cs @@ -0,0 +1,168 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///维修不良代码 + /// + [SugarTable("prd_lot_repair_errorcode")] + public partial class PrdLotRepairErrorcode + { + public PrdLotRepairErrorcode(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:GUID + /// Default: + /// Nullable:False + /// + public string repair_id {get;set;} = string.Empty; + + /// + /// Desc:不良代码组 + /// Default: + /// Nullable:False + /// + public string error_group_code {get;set;} = string.Empty; + + /// + /// Desc:不良代码 + /// Default: + /// Nullable:False + /// + public string error_code {get;set;} = string.Empty; + + /// + /// Desc:产品序列号/批次号/派工单号 + /// Default: + /// Nullable:False + /// + public string lot_no {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:待处理不良数量 + /// Default: + /// Nullable:True + /// + public decimal? wait_qty {get;set;} + + /// + /// Desc:处理后合格数量 + /// Default: + /// Nullable:True + /// + public decimal? qualifity_qty {get;set;} + + /// + /// Desc:处理后不合格数量 + /// Default: + /// Nullable:True + /// + public decimal? unqualifity_qty {get;set;} + + /// + /// Desc:处理后报废数量 + /// Default: + /// Nullable:True + /// + public decimal? scrap_qty {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:处理状态: UNHANDLE-待处理 HANDLE-已处理 + /// Default: + /// Nullable:False + /// + public string handle_type {get;set;} = string.Empty; + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotSimulation.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotSimulation.cs new file mode 100644 index 00000000..3685682e --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotSimulation.cs @@ -0,0 +1,203 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///批次在制品信息 + /// + [SugarTable("prd_lot_simulation")] + public partial class PrdLotSimulation + { + public PrdLotSimulation(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:批次号/派工单代码 + /// Default: + /// Nullable:False + /// + public string lot_no {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线代码 + /// Default: + /// Nullable:False + /// + public string route_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线版本 + /// Default: + /// Nullable:False + /// + public string route_version {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:工位代码 + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:开工时间 + /// Default: + /// Nullable:False + /// + public DateTime start_time {get;set;} + + /// + /// Desc:完工时间 + /// Default: + /// Nullable:True + /// + public DateTime? end_time {get;set;} + + /// + /// Desc:作业总人时(分钟数) + /// Default: + /// Nullable:True + /// + public decimal? man_time {get;set;} + + /// + /// Desc:作业总机时(分钟数) + /// Default: + /// Nullable:True + /// + public decimal? machine_time {get;set;} + + /// + /// Desc:作业状态: NEW-未开工 WORK-作业中 STOP-停工 COMPLETE-完工 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:进站数量 + /// Default: + /// Nullable:True + /// + public decimal? input_qty {get;set;} + + /// + /// Desc:合格数量 + /// Default: + /// Nullable:True + /// + public decimal? qualifity_qty {get;set;} + + /// + /// Desc:不合格数量 + /// Default: + /// Nullable:True + /// + public decimal? un_qualifity_qty {get;set;} + + /// + /// Desc:报废数量 + /// Default: + /// Nullable:True + /// + public decimal? scrap_qty {get;set;} + + /// + /// Desc:员工表 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? staffs {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotStationmerge.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotStationmerge.cs new file mode 100644 index 00000000..bcd710b6 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotStationmerge.cs @@ -0,0 +1,154 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///prd_lot_stationmerge + /// + [SugarTable("prd_lot_stationmerge")] + public partial class PrdLotStationmerge + { + public PrdLotStationmerge(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:批次号 + /// Default: + /// Nullable:False + /// + public string lot_no {get;set;} = string.Empty; + + /// + /// Desc:转换序列号 + /// Default: + /// Nullable:False + /// + public string merge_lot_no {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:工位代码 + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:生产数量 + /// Default: + /// Nullable:False + /// + public decimal input_qty {get;set;} + + /// + /// Desc:合格数量 + /// Default: + /// Nullable:True + /// + public decimal? qualifity_qty {get;set;} + + /// + /// Desc:不合格数量 + /// Default: + /// Nullable:True + /// + public decimal? un_qualifity_qty {get;set;} + + /// + /// Desc:报废数量 + /// Default: + /// Nullable:True + /// + public decimal? scrap_qty {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMo.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMo.cs index d24c51e2..84ce245b 100644 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMo.cs +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMo.cs @@ -1,6 +1,7 @@ -using System; +using System; using System.Linq; using System.Text; +using JNPF.Common.Security; using SqlSugar; namespace Tnb.ProductionMgr.Entities @@ -11,302 +12,304 @@ namespace Tnb.ProductionMgr.Entities [SugarTable("prd_mo")] public partial class PrdMo { - public PrdMo() - { + public PrdMo(){ - } - /// - /// Desc:编号 - /// Default: - /// Nullable:False - /// - [SugarColumn(IsPrimaryKey = true)] - public string id { get; set; } + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:工单代码 - /// Default: - /// Nullable:False - /// - public string mo_code { get; set; } + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} - /// - /// Desc:工单类型:1-正常工单、2-返工工单、3-试制工单 - /// Default: - /// Nullable:False - /// - public string mo_type { get; set; } + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; - /// - /// Desc:生产状态 Initial: 初始, Confirm:确认 Release: 下发, Open: 生产中, Close: 关单, Pending: 暂停 - /// Default: - /// Nullable:False - /// - public string mo_status { get; set; } + /// + /// Desc:物料编号 + /// Default: + /// Nullable:True + /// + public string? material_code {get;set;} - /// - /// Desc:生产数量 - /// Default: - /// Nullable:False - /// - public int plan_qty { get; set; } + /// + /// Desc:工单类型:1-正常工单、2-返工工单、3-试制工单 + /// Default: + /// Nullable:True + /// + public string? mo_type {get;set;} - /// - /// Desc:已投入数量 - /// Default: - /// Nullable:True - /// - public int input_qty { get; set; } + /// + /// Desc:生产状态 Initial: 初始, Confirm:确认 Release: 下发, Open: 生产中, Close: 关单, Pending: 暂停 + /// Default: + /// Nullable:True + /// + public string? mo_status {get;set;} - /// - /// Desc:已完工数量 - /// Default: - /// Nullable:True - /// - public decimal? complete_qty { get; set; } + /// + /// Desc:计划生产数量 + /// Default: + /// Nullable:True + /// + public decimal? plan_qty {get;set;} - /// - /// Desc:报废数量 - /// Default: - /// Nullable:True - /// - public decimal? scrap_qty { get; set; } + /// + /// Desc:已投入数量 + /// Default: + /// Nullable:True + /// + public decimal? input_qty {get;set;} - /// - /// Desc:计划开始时间 - /// Default: - /// Nullable:False - /// - public DateTime plan_start_date { get; set; } + /// + /// Desc:已完工数量 + /// Default: + /// Nullable:True + /// + public decimal? complete_qty {get;set;} - /// - /// Desc:计划结束时间 - /// Default: - /// Nullable:False - /// - public DateTime plan_end_date { get; set; } + /// + /// Desc:报废数量 + /// Default: + /// Nullable:True + /// + public decimal? scrap_qty {get;set;} - /// - /// Desc:实际开工日期 - /// Default: - /// Nullable:True - /// - public DateTime? act_start_date { get; set; } + /// + /// Desc:计划开始时间 + /// Default: + /// Nullable:True + /// + public DateTime? plan_start_date {get;set;} - /// - /// Desc:实际完工日期 - /// Default: - /// Nullable:True - /// - public DateTime? act_end_date { get; set; } + /// + /// Desc:计划结束时间 + /// Default: + /// Nullable:True + /// + public DateTime? plan_end_date {get;set;} - /// - /// Desc:订单行号 - /// Default: - /// Nullable:True - /// - public int? order_seq { get; set; } + /// + /// Desc:实际开工日期 + /// Default: + /// Nullable:True + /// + public DateTime? act_start_date {get;set;} - /// - /// Desc:关联比例 - /// Default: - /// Nullable:True - /// - public decimal? relation_ratio { get; set; } + /// + /// Desc:实际完工日期 + /// Default: + /// Nullable:True + /// + public DateTime? act_end_date {get;set;} - /// - /// Desc:下发日期 - /// Default: - /// Nullable:True - /// - public DateTime? mo_down_date { get; set; } + /// + /// Desc:生产部门ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? dept_id {get;set;} - /// - /// Desc:物料编号 - /// Default: - /// Nullable:False - /// - public string material_code { get; set; } + /// + /// Desc:客户代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? customer_code {get;set;} - /// - /// Desc:排程开始时间 - /// Default: - /// Nullable:True - /// - public DateTime? seduling_start_date { get; set; } + /// + /// Desc:订单号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? order_no {get;set;} - /// - /// Desc:排程结束时间 - /// Default: - /// Nullable:True - /// - public DateTime? seduling_end_date { get; set; } + /// + /// Desc:订单行号 + /// Default: + /// Nullable:True + /// + public int? order_seq {get;set;} - /// - /// Desc:是否生派工单 - /// Default: - /// Nullable:True - /// - public int? is_create_dispatch { get; set; } + /// + /// Desc:BOM版本 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? bom_version {get;set;} - /// - /// Desc:子工单序号(1开始,最大+1,不强制连续) - /// Default: - /// Nullable:True - /// - public int? seq { get; set; } + /// + /// Desc:关联比例 + /// Default: + /// Nullable:True + /// + public decimal? relation_ratio {get;set;} - /// - /// Desc:是否合并 - /// Default: - /// Nullable:True - /// - public int? is_merge { get; set; } + /// + /// Desc:下发人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mo_down_user_id {get;set;} - /// - /// Desc:创建时间 - /// Default: - /// Nullable:True - /// - public DateTime? create_time { get; set; } + /// + /// Desc:下发人员名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mo_down_user_name {get;set;} - /// - /// Desc:修改时间 - /// Default: - /// Nullable:True - /// - public DateTime? modify_time { get; set; } + /// + /// Desc:下发日期 + /// Default: + /// Nullable:True + /// + public DateTime? mo_down_date {get;set;} - /// - /// Desc:扩展字段 - /// Default: - /// Nullable:True - /// - public string extras { get; set; } + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} - /// - /// Desc:所属组织 - /// Default:NULL::character varying - /// Nullable:True - /// - public string org_id { get; set; } + /// + /// Desc:工作中心代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? work_center_code {get;set;} - /// - /// Desc:生产部门ID - /// Default:NULL::character varying - /// Nullable:True - /// - public string dept_id { get; set; } + /// + /// Desc:主工单代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? parent_mo_code {get;set;} - /// - /// Desc:客户代码 - /// Default:NULL::character varying - /// Nullable:True - /// - public string customer_code { get; set; } + /// + /// Desc:排程开始时间 + /// Default: + /// Nullable:True + /// + public DateTime? seduling_start_date {get;set;} - /// - /// Desc:订单号 - /// Default:NULL::character varying - /// Nullable:True - /// - public string order_no { get; set; } + /// + /// Desc:排程结束时间 + /// Default: + /// Nullable:True + /// + public DateTime? seduling_end_date {get;set;} - /// - /// Desc:BOM版本 - /// Default:NULL::character varying - /// Nullable:True - /// - public string bom_version { get; set; } + /// + /// Desc:是否生派工单 + /// Default: + /// Nullable:True + /// + public int? is_create_dispatch {get;set;} - /// - /// Desc:下发人员ID - /// Default:NULL::character varying - /// Nullable:True - /// - public string mo_down_user_id { get; set; } + /// + /// Desc:子工单序号(1开始,最大+1,不强制连续) + /// Default: + /// Nullable:True + /// + public int? seq {get;set;} - /// - /// Desc:下发人员名称 - /// Default:NULL::character varying - /// Nullable:True - /// - public string mo_down_user_name { get; set; } + /// + /// Desc:数据来源 10-计划,20-插入,30-导入 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? data_sources {get;set;} - /// - /// Desc:备注 - /// Default:NULL::character varying - /// Nullable:True - /// - public string remark { get; set; } + /// + /// Desc:产线代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? production_linecode {get;set;} - /// - /// Desc:工作中心代码 - /// Default:NULL::character varying - /// Nullable:True - /// - public string work_center_code { get; set; } + /// + /// Desc:是否合并 + /// Default: + /// Nullable:True + /// + public int? is_merge {get;set;} - /// - /// Desc:主工单代码 - /// Default:NULL::character varying - /// Nullable:True - /// - public string parent_mo_code { get; set; } + /// + /// Desc:组合工单 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? combine_mo_code {get;set;} - /// - /// Desc:数据来源 10-计划,20-插入,30-导入 - /// Default:NULL::character varying - /// Nullable:True - /// - public string data_sources { get; set; } + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} - /// - /// Desc:产线代码 - /// Default:NULL::character varying - /// Nullable:True - /// - public string production_linecode { get; set; } + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} - /// - /// Desc:组合工单 - /// Default:NULL::character varying - /// Nullable:True - /// - public string combine_mo_code { get; set; } + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} - /// - /// Desc:时间戳 - /// Default:NULL::character varying - /// Nullable:True - /// - public string time_stamp { get; set; } + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} - /// - /// Desc:创建用户 - /// Default:NULL::character varying - /// Nullable:True - /// - public string create_id { get; set; } + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} - /// - /// Desc:修改用户 - /// Default:NULL::character varying - /// Nullable:True - /// - public string modify_id { get; set; } + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} - /// - /// Desc:物料ID - /// Default:NULL::character varying - /// Nullable:True - /// - public string material_id { get; set; } - /// - /// 已排产数量 - /// - public int scheduled_qty { get; set; } + /// + /// Desc:物料ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_id {get;set;} + + /// + /// Desc:已排产数量 + /// Default: + /// Nullable:True + /// + public int? scheduled_qty {get;set;} } } diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoBom.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoBom.cs new file mode 100644 index 00000000..29a5a6dd --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoBom.cs @@ -0,0 +1,231 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///工单BOM资料 + /// + [SugarTable("prd_mo_bom")] + public partial class PrdMoBom + { + public PrdMoBom(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工单明细ID + /// Default: + /// Nullable:False + /// + public string mo_detail_id {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:工单行号 + /// Default: + /// Nullable:False + /// + public int mo_line {get;set;} + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:物品附属信息 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_attribute {get;set;} + + /// + /// Desc:单位 + /// Default: + /// Nullable:False + /// + public string unit {get;set;} = string.Empty; + + /// + /// Desc:(1入库倒冲/2工序倒冲/3领料/4.虚拟件) + /// Default: + /// Nullable:False + /// + public int wip_type {get;set;} + + /// + /// Desc:prdorgid + /// Default:NULL::character varying + /// Nullable:True + /// + public string? prd_org_id {get;set;} + + /// + /// Desc:计划发料数量 + /// Default: + /// Nullable:False + /// + public decimal qty {get;set;} + + /// + /// Desc:已领数量 + /// Default: + /// Nullable:True + /// + public decimal? pick_qty {get;set;} + + /// + /// Desc:已调拨数量 + /// Default: + /// Nullable:True + /// + public decimal? trans_qty {get;set;} + + /// + /// Desc:已扫描领用数量 + /// Default: + /// Nullable:True + /// + public decimal? scan_pick_qty {get;set;} + + /// + /// Desc:已扫描调拨数量 + /// Default: + /// Nullable:True + /// + public decimal? scan_trans_qty {get;set;} + + /// + /// Desc:feedqty + /// Default: + /// Nullable:True + /// + public decimal? feed_qty {get;set;} + + /// + /// Desc:unitqty + /// Default: + /// Nullable:True + /// + public decimal? unit_qty {get;set;} + + /// + /// Desc:损耗率 + /// Default: + /// Nullable:True + /// + public decimal? compscap_qty {get;set;} + + /// + /// Desc:是否计算 + /// Default: + /// Nullable:True + /// + public int? is_comsume {get;set;} + + /// + /// Desc:仓库ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? wh_id {get;set;} + + /// + /// Desc:仓库代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? wh_code {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoLine.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoLine.cs new file mode 100644 index 00000000..2f56df99 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoLine.cs @@ -0,0 +1,70 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///工单与产线关联关系 + /// + [SugarTable("prd_mo_line")] + public partial class PrdMoLine + { + public PrdMoLine(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:工单Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mo_id {get;set;} + + /// + /// Desc:产线Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? line_id {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRcard.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRcard.cs new file mode 100644 index 00000000..1fea635e --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRcard.cs @@ -0,0 +1,147 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///工单与产品序列号的关联关系 + /// + [SugarTable("prd_mo_rcard")] + public partial class PrdMoRcard + { + public PrdMoRcard(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工单ID + /// Default: + /// Nullable:False + /// + public string mo_id {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:关联比例 + /// Default: + /// Nullable:False + /// + public decimal relation_qty {get;set;} + + /// + /// Desc:打印次数 + /// Default: + /// Nullable:True + /// + public int? print_times {get;set;} + + /// + /// Desc:最后一次打印人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? last_print_user_id {get;set;} + + /// + /// Desc:最后一次打印人员姓名 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? last_print_user_name {get;set;} + + /// + /// Desc:最后一次打印时间 + /// Default: + /// Nullable:True + /// + public DateTime? last_print_time {get;set;} + + /// + /// Desc:条码状态: AVAILABLE-可用 SCRAP-报废 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRcardHistory.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRcardHistory.cs new file mode 100644 index 00000000..c4f7af28 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRcardHistory.cs @@ -0,0 +1,140 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///工单产品序列号操作记录表 + /// + [SugarTable("prd_mo_rcard_history")] + public partial class PrdMoRcardHistory + { + public PrdMoRcardHistory(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工单ID + /// Default: + /// Nullable:False + /// + public string mo_id {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:条码操作: REPRINT-补印 SCRAP-报废 + /// Default: + /// Nullable:False + /// + public string operation {get;set;} = string.Empty; + + /// + /// Desc:操作申请人ID + /// Default: + /// Nullable:False + /// + public string apply_user_id {get;set;} = string.Empty; + + /// + /// Desc:操作申请人名称 + /// Default: + /// Nullable:False + /// + public string apply_user_name {get;set;} = string.Empty; + + /// + /// Desc:操作申请原因 + /// Default: + /// Nullable:False + /// + public string apply_reason {get;set;} = string.Empty; + + /// + /// Desc:操作申请日期 + /// Default: + /// Nullable:False + /// + public DateTime apply_date {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRoute.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRoute.cs new file mode 100644 index 00000000..cfcedd0f --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRoute.cs @@ -0,0 +1,119 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///工单与工艺路线的关系 + /// + [SugarTable("prd_mo_route")] + public partial class PrdMoRoute + { + public PrdMoRoute(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线代码 + /// Default: + /// Nullable:False + /// + public string route_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线版本 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? route_version {get;set;} + + /// + /// Desc:工序BOM版本 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? process_bom_version {get;set;} + + /// + /// Desc:是否是主途程(当前工艺路线) + /// Default: + /// Nullable:False + /// + public int is_main_route {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTask.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTask.cs index c9b236bd..ffdb0a18 100644 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTask.cs +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTask.cs @@ -1,9 +1,10 @@ -using System; +using System; using System.Linq; using System.Text; +using JNPF.Common.Security; using SqlSugar; -namespace DbModels +namespace Tnb.ProductionMgr.Entities { /// ///生产任务信息 @@ -11,225 +12,234 @@ namespace DbModels [SugarTable("prd_mo_task")] public partial class PrdMoTask { - public PrdMoTask() - { + public PrdMoTask(){ - } - /// - /// Desc:排产类型:1、注塑、挤出2、组装、包装 - /// Default: - /// Nullable:True - /// - public int? schedule_type { get; set; } + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:计划开始时间 - /// Default: - /// Nullable:True - /// - public DateTime? plan_start_date { get; set; } + /// + /// Desc:生产任务编号 + /// Default: + /// Nullable:True + /// + public string? mo_task_code {get;set;} - /// - /// Desc:计划结束时间 - /// Default: - /// Nullable:True - /// - public DateTime? plan_end_date { get; set; } + /// + /// Desc:工单Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mo_id {get;set;} - /// - /// Desc:实际开工日期 - /// Default: - /// Nullable:True - /// - public DateTime? act_start_date { get; set; } + /// + /// Desc:物料Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_id {get;set;} - /// - /// Desc:实际完工日期 - /// Default: - /// Nullable:True - /// - public DateTime? act_end_date { get; set; } + /// + /// Desc:模具Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mold_id {get;set;} - /// - /// Desc:创建人 - /// Default: - /// Nullable:True - /// - public string create_id { get; set; } + /// + /// Desc:设备Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? eqp_id {get;set;} - /// - /// Desc:创建时间 - /// Default: - /// Nullable:True - /// - public DateTime? create_time { get; set; } + /// + /// Desc:产线id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? workline_id {get;set;} - /// - /// Desc:修改人 - /// Default: - /// Nullable:True - /// - public string modify_id { get; set; } + /// + /// Desc:工位id + /// Default: + /// Nullable:True + /// + public string? workstation_id {get;set;} - /// - /// Desc:修改时间 - /// Default: - /// Nullable:True - /// - public DateTime? modify_time { get; set; } + /// + /// Desc:工艺路线id + /// Default: + /// Nullable:True + /// + public string? workroute_id {get;set;} - /// - /// Desc:扩展字段 - /// Default: - /// Nullable:True - /// - public string extras { get; set; } + /// + /// Desc:生产bom id + /// Default: + /// Nullable:True + /// + public string? bom_id {get;set;} - /// - /// Desc:编号 - /// Default: - /// Nullable:False - /// - [SugarColumn(IsPrimaryKey = true)] - public string id { get; set; } + /// + /// Desc:任务单状态 + /// Default: + /// Nullable:True + /// + public string? mo_task_status {get;set;} - /// - /// Desc:生产任务编号 - /// Default: - /// Nullable:True - /// - public string mo_task_code { get; set; } + /// + /// Desc:计划数量 + /// Default: + /// Nullable:True + /// + public decimal? plan_qty {get;set;} - /// - /// Desc:工单Id - /// Default:NULL::character varying - /// Nullable:True - /// - public string mo_id { get; set; } + /// + /// Desc:已投入数量 + /// Default: + /// Nullable:True + /// + public decimal? input_qty {get;set;} + /// + /// Desc:已完工数量 + /// Default: + /// Nullable:True + /// + public decimal? complete_qty {get;set;} - /// - /// Desc:物料Id - /// Default:NULL::character varying - /// Nullable:True - /// - public string material_id { get; set; } + /// + /// Desc:报废数量 + /// Default: + /// Nullable:True + /// + public decimal? scrap_qty {get;set;} - /// - /// Desc:模具Id - /// Default:NULL::character varying - /// Nullable:True - /// - public string mold_id { get; set; } + /// + /// Desc:已排产数量 + /// Default: + /// Nullable:True + /// + public decimal? scheduled_qty {get;set;} - /// - /// Desc:设备Id - /// Default:NULL::character varying - /// Nullable:True - /// - public string eqp_id { get; set; } + /// + /// Desc:排产类型:1、注塑、挤出2、组装、包装 + /// Default: + /// Nullable:True + /// + public int? schedule_type {get;set;} - /// - /// Desc:产线id - /// Default:NULL::character varying - /// Nullable:True - /// - public string workline_id { get; set; } + /// + /// Desc:计划开始时间 + /// Default: + /// Nullable:True + /// + public DateTime? plan_start_date {get;set;} - /// - /// Desc:工位id - /// Default: - /// Nullable:True - /// - public string workstation_id { get; set; } + /// + /// Desc:计划结束时间 + /// Default: + /// Nullable:True + /// + public DateTime? plan_end_date {get;set;} - /// - /// Desc:工艺路线id - /// Default: - /// Nullable:True - /// - public string workroute_id { get; set; } + /// + /// Desc:实际开工日期 + /// Default: + /// Nullable:True + /// + public DateTime? act_start_date {get;set;} - /// - /// Desc:生产bom id - /// Default: - /// Nullable:True - /// - public string bom_id { get; set; } + /// + /// Desc:实际完工日期 + /// Default: + /// Nullable:True + /// + public DateTime? act_end_date {get;set;} - /// - /// Desc:任务单状态 - /// Default: - /// Nullable:True - /// - public string mo_task_status { get; set; } + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + public string? create_id {get;set;} - /// - /// Desc:计划数量 - /// Default: - /// Nullable:True - /// - public int plan_qty { get; set; } + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} - /// - /// Desc:已投入数量 - /// Default: - /// Nullable:True - /// - public int input_qty { get; set; } + /// + /// Desc:修改人 + /// Default: + /// Nullable:True + /// + public string? modify_id {get;set;} - /// - /// Desc:已完工数量 - /// Default: - /// Nullable:True - /// - public int complete_qty { get; set; } + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} - /// - /// Desc:报废数量 - /// Default: - /// Nullable:True - /// - public int scrap_qty { get; set; } + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} - /// - /// Desc:已排产数量 - /// Default: - /// Nullable:True - /// - public int scheduled_qty { get; set; } - /// - /// 预计开工时间 - /// - public DateTime estimated_start_date { get; set; } - /// - /// 预计完工时间 - /// - public DateTime estimated_end_date { get; set; } - /// - /// 是否同组标识 - /// - public int group_flag { get; set; } - /// - /// 设备编码 - /// - [SugarColumn(IsIgnore = true)] - public string eqp_type_code { get; set; } - /// - /// 模具编码 - /// - [SugarColumn(IsIgnore = true)] - public string mold_code { get; set; } + /// + /// Desc:生产顺序 + /// Default: + /// Nullable:True + /// + public int? prd_order {get;set;} - [SugarColumn(IsIgnore = true)] - public string mold_name { get; set; } - /// - ///模穴数 - /// - [SugarColumn(IsIgnore = true)] - public int mold_cavity_qty { get; set; } + /// + /// Desc:预计开始时间 + /// Default: + /// Nullable:True + /// + public DateTime? estimated_start_date {get;set;} + /// + /// Desc:预计结束时间 + /// Default: + /// Nullable:True + /// + public DateTime? estimated_end_date {get;set;} + + /// + /// Desc:同组标识 + /// Default: + /// Nullable:True + /// + public int? group_flag {get;set;} + + /// + /// Desc:父任务Id + /// Default: + /// Nullable:True + /// + public string? parent_id {get;set;} + + /// + /// Desc:工序任务量 + /// Default: + /// Nullable:True + /// + public int? process_task_qty {get;set;} } } diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTaskCopy1.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTaskCopy1.cs new file mode 100644 index 00000000..d212749b --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTaskCopy1.cs @@ -0,0 +1,83 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///生产任务信息 + /// + [SugarTable("prd_mo_task_copy1")] + public partial class PrdMoTaskCopy1 + { + public PrdMoTaskCopy1(){ + + + } + /// + /// Desc:计划开始时间 + /// Default: + /// Nullable:True + /// + public DateTime? plan_start_date {get;set;} + + /// + /// Desc:计划结束时间 + /// Default: + /// Nullable:True + /// + public DateTime? plan_end_date {get;set;} + + /// + /// Desc:实际开工日期 + /// Default: + /// Nullable:True + /// + public DateTime? act_start_date {get;set;} + + /// + /// Desc:实际完工日期 + /// Default: + /// Nullable:True + /// + public DateTime? act_end_date {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改人 + /// Default: + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTaskDefect.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTaskDefect.cs index 8ae2744d..f733f2f4 100644 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTaskDefect.cs +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTaskDefect.cs @@ -1,6 +1,7 @@ -using System; +using System; using System.Linq; using System.Text; +using JNPF.Common.Security; using SqlSugar; namespace Tnb.ProductionMgr.Entities @@ -11,64 +12,66 @@ namespace Tnb.ProductionMgr.Entities [SugarTable("prd_mo_task_defect")] public partial class PrdMoTaskDefect { - public PrdMoTaskDefect() - { + public PrdMoTaskDefect(){ - } - /// - /// Desc:次品分类id - /// Default: - /// Nullable:True - /// - public string defective_cagetory_id { get; set; } + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); - /// - /// Desc:次品项 - /// Default: - /// Nullable:True - /// - public string defective_item { get; set; } + /// + /// Desc:任务单id + /// Default: + /// Nullable:True + /// + public string? mo_task_id {get;set;} - /// - /// Desc:次品项数量 - /// Default: - /// Nullable:True - /// - public int defective_item_qty { get; set; } + /// + /// Desc:创建用户 + /// Default: + /// Nullable:True + /// + public string? create_id {get;set;} - /// - /// Desc:编号 - /// Default: - /// Nullable:False - /// - [SugarColumn(IsPrimaryKey = true)] - public string id { get; set; } + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} - /// - /// Desc:创建用户 - /// Default: - /// Nullable:True - /// - public string create_id { get; set; } + /// + /// Desc:次品分类id + /// Default: + /// Nullable:True + /// + public string? defective_cagetory_id {get;set;} - /// - /// Desc:创建时间 - /// Default: - /// Nullable:True - /// - public DateTime? create_time { get; set; } + /// + /// Desc:次品项 + /// Default: + /// Nullable:True + /// + public string? defective_item {get;set;} - /// - /// Desc:任务单id - /// Default: - /// Nullable:True - /// - public string mo_task_id { get; set; } - /// - /// 批次 - /// - public string batch { get; set; } + /// + /// Desc:次品项数量 + /// Default: + /// Nullable:True + /// + public int? defective_item_qty {get;set;} + + /// + /// Desc:批次 + /// Default: + /// Nullable:True + /// + public string? batch {get;set;} } } diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTaskDefectRecord.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTaskDefectRecord.cs index a348b39d..01f872bc 100644 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTaskDefectRecord.cs +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTaskDefectRecord.cs @@ -1,6 +1,7 @@ -using System; +using System; using System.Linq; using System.Text; +using JNPF.Common.Security; using SqlSugar; namespace Tnb.ProductionMgr.Entities @@ -21,21 +22,35 @@ namespace Tnb.ProductionMgr.Entities /// Nullable:False /// [SugarColumn(IsPrimaryKey=true)] - public string id {get;set;} + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:物料编码 + /// Default: + /// Nullable:True + /// + public string? material_code {get;set;} + + /// + /// Desc:物料名称 + /// Default: + /// Nullable:True + /// + public string? material_name {get;set;} /// /// Desc:设备编码 /// Default: /// Nullable:True /// - public string eqp_code {get;set;} + public string? eqp_code {get;set;} /// /// Desc:模具名称 /// Default: /// Nullable:True /// - public string mold_name {get;set;} + public string? mold_name {get;set;} /// /// Desc:预计开始时间 @@ -58,19 +73,26 @@ namespace Tnb.ProductionMgr.Entities /// public int? plan_qty {get;set;} + /// + /// Desc:报废数量 + /// Default: + /// Nullable:True + /// + public int? scrap_qty {get;set;} + /// /// Desc:生产任务单状态 /// Default: /// Nullable:True /// - public string status {get;set;} + public string? status {get;set;} /// /// Desc:创建人Id /// Default: /// Nullable:True /// - public string create_id {get;set;} + public string? create_id {get;set;} /// /// Desc:创建时间 @@ -79,40 +101,19 @@ namespace Tnb.ProductionMgr.Entities /// public DateTime? create_time {get;set;} - /// - /// Desc:报废数量 - /// Default: - /// Nullable:True - /// - public int? scrap_qty {get;set;} - - /// - /// Desc:物料名称 - /// Default: - /// Nullable:True - /// - public string material_name {get;set;} - /// /// Desc:任务单Id /// Default: /// Nullable:True /// - public string mo_task_id {get;set;} - - /// - /// Desc:物料编码 - /// Default: - /// Nullable:True - /// - public string material_code {get;set;} + public string? mo_task_id {get;set;} /// /// Desc:任务单编号 /// Default: /// Nullable:True /// - public string mo_task_code {get;set;} + public string? mo_task_code {get;set;} } } diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTaskLog.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTaskLog.cs new file mode 100644 index 00000000..40953705 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoTaskLog.cs @@ -0,0 +1,112 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///生产任务操作记录 + /// + [SugarTable("prd_mo_task_log")] + public partial class PrdMoTaskLog + { + public PrdMoTaskLog(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:工单号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mo_code {get;set;} + + /// + /// Desc:设备编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? eqp_code {get;set;} + + /// + /// Desc:模具编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mold_code {get;set;} + + /// + /// Desc:产品编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? item_code {get;set;} + + /// + /// Desc:产品规格型号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? item_standard {get;set;} + + /// + /// Desc:任务单状态 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? status {get;set;} + + /// + /// Desc:操作人姓名 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? operator_name {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:生产任务ID + /// Default: + /// Nullable:True + /// + public string? mo_task_id {get;set;} + + /// + /// Desc:任务单编号 + /// Default: + /// Nullable:True + /// + public string? mo_task_code {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwip.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwip.cs new file mode 100644 index 00000000..1ca40392 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwip.cs @@ -0,0 +1,273 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///过站事件历史记录 + /// + [SugarTable("prd_onwip")] + public partial class PrdOnwip + { + public PrdOnwip(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:产品序列号过站次序 + /// Default: + /// Nullable:False + /// + public int r_card_seq {get;set;} + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:转换前的产品序列号 + /// Default: + /// Nullable:False + /// + public string source_card {get;set;} = string.Empty; + + /// + /// Desc:转换前的产品序列号流水号 + /// Default: + /// Nullable:False + /// + public int source_card_seq {get;set;} + + /// + /// Desc:产品类型代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:关联比例 + /// Default: + /// Nullable:False + /// + public decimal relation_qty {get;set;} + + /// + /// Desc:班制代码 + /// Default: + /// Nullable:False + /// + public string shift_type_code {get;set;} = string.Empty; + + /// + /// Desc:班次代码 + /// Default: + /// Nullable:False + /// + public string shift_code {get;set;} = string.Empty; + + /// + /// Desc:时段代码 + /// Default: + /// Nullable:False + /// + public string tp_code {get;set;} = string.Empty; + + /// + /// Desc:工作天 + /// Default: + /// Nullable:False + /// + public int shift_day {get;set;} + + /// + /// Desc:工艺路线代码 + /// Default: + /// Nullable:False + /// + public string route_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线版本 + /// Default: + /// Nullable:False + /// + public string route_version {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:工厂代码 + /// Default: + /// Nullable:False + /// + public string factory_code {get;set;} = string.Empty; + + /// + /// Desc:工段代码 + /// Default: + /// Nullable:False + /// + public string segment_code {get;set;} = string.Empty; + + /// + /// Desc:产线代码 + /// Default: + /// Nullable:False + /// + public string production_line_code {get;set;} = string.Empty; + + /// + /// Desc:岗位代码 + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:过站事件代码 + /// Default: + /// Nullable:False + /// + public string action {get;set;} = string.Empty; + + /// + /// Desc:过帐事件结果 + /// Default: + /// Nullable:False + /// + public string action_result {get;set;} = string.Empty; + + /// + /// Desc:NG总次数 + /// Default: + /// Nullable:False + /// + public int ng_times {get;set;} + + /// + /// Desc:自增长Serial(Oracle脚本创建) + /// Default: + /// Nullable:False + /// + public string serial {get;set;} = string.Empty; + + /// + /// Desc:过站开始时间 + /// Default: + /// Nullable:False + /// + public DateTime begin_time {get;set;} + + /// + /// Desc:过站结束时间 + /// Default: + /// Nullable:True + /// + public DateTime? end_time {get;set;} + + /// + /// Desc:是否做过产量计算 + /// Default: + /// Nullable:False + /// + public int processed {get;set;} + + /// + /// Desc:人员表 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? staffs {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipInfo.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipInfo.cs new file mode 100644 index 00000000..81343eb6 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipInfo.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///在制品统计信息 + /// + [SugarTable("prd_onwip_info")] + public partial class PrdOnwipInfo + { + public PrdOnwipInfo(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string op_code {get;set;} = string.Empty; + + /// + /// Desc:待作业数 + /// Default: + /// Nullable:False + /// + public decimal wait_qty {get;set;} + + /// + /// Desc:作业中数 + /// Default: + /// Nullable:False + /// + public decimal process_qty {get;set;} + + /// + /// Desc:作业完成数 + /// Default: + /// Nullable:False + /// + public decimal complete_qty {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipRcard.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipRcard.cs new file mode 100644 index 00000000..8c634643 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipRcard.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///在制品工序作业中产品序列号 + /// + [SugarTable("prd_onwip_rcard")] + public partial class PrdOnwipRcard + { + public PrdOnwipRcard(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string op_code {get;set;} = string.Empty; + + /// + /// Desc:岗位代码 + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:开始作业时间 + /// Default: + /// Nullable:False + /// + public DateTime begin_time {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipRcardtrans.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipRcardtrans.cs new file mode 100644 index 00000000..e9a5bfd6 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipRcardtrans.cs @@ -0,0 +1,238 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///序列号转换历史记录 + /// + [SugarTable("prd_onwip_rcardtrans")] + public partial class PrdOnwipRcardtrans + { + public PrdOnwipRcardtrans(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:产品序列号过站次序 + /// Default: + /// Nullable:False + /// + public int r_card_seq {get;set;} + + /// + /// Desc:转换前的产品序列号 + /// Default: + /// Nullable:False + /// + public string t_card {get;set;} = string.Empty; + + /// + /// Desc:转换前的产品序列号流水号 + /// Default: + /// Nullable:False + /// + public int t_card_seq {get;set;} + + /// + /// Desc:最初的产品序列号 + /// Default: + /// Nullable:False + /// + public string source_card {get;set;} = string.Empty; + + /// + /// Desc:最初的产品序列号流水号 + /// Default: + /// Nullable:False + /// + public int source_card_seq {get;set;} + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:产品分类代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:关联比例 + /// Default: + /// Nullable:False + /// + public decimal relation_qty {get;set;} + + /// + /// Desc:途程代码 + /// Default: + /// Nullable:False + /// + public string route_code {get;set;} = string.Empty; + + /// + /// Desc:途程版本 + /// Default: + /// Nullable:False + /// + public string route_version {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:工段代码 + /// Default: + /// Nullable:False + /// + public string segment_code {get;set;} = string.Empty; + + /// + /// Desc:工厂代码 + /// Default: + /// Nullable:False + /// + public string factory_code {get;set;} = string.Empty; + + /// + /// Desc:产线代码 + /// Default: + /// Nullable:False + /// + public string production_line_code {get;set;} = string.Empty; + + /// + /// Desc:岗位代码 + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:班制代码 + /// Default: + /// Nullable:False + /// + public string shift_type_code {get;set;} = string.Empty; + + /// + /// Desc:班次代码 + /// Default: + /// Nullable:False + /// + public string shift_code {get;set;} = string.Empty; + + /// + /// Desc:时段代码 + /// Default: + /// Nullable:False + /// + public string tp_code {get;set;} = string.Empty; + + /// + /// Desc:序列号转换类型 IdMerge: 序列号转换, Router: 分板, Replace:序列号替换 + /// Default: + /// Nullable:False + /// + public int id_merge_type {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipTool.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipTool.cs new file mode 100644 index 00000000..9bc76bb3 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipTool.cs @@ -0,0 +1,154 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///TODO + /// + [SugarTable("prd_onwip_tool")] + public partial class PrdOnwipTool + { + public PrdOnwipTool(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public char id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public int? tenantid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? orgid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string rcard {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string toolcode {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string routecode {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string routeversion {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public string processcode {get;set;} = string.Empty; + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public int usetimes {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute1 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute2 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? attribute3 {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? timestamp {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public DateTime? lastmodificationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? lastmodifieruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? lastmodifierfullname {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:False + /// + public DateTime creationtime {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public long? creatoruserid {get;set;} + + /// + /// Desc:TODO + /// Default: + /// Nullable:True + /// + public string? creatorfullname {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipmaterial.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipmaterial.cs new file mode 100644 index 00000000..e2c1f60d --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipmaterial.cs @@ -0,0 +1,294 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///上料历史记录 + /// + [SugarTable("prd_onwipmaterial")] + public partial class PrdOnwipmaterial + { + public PrdOnwipmaterial(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:产品序列号过站次序 + /// Default: + /// Nullable:False + /// + public int r_card_seq {get;set;} + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:物料上料次序 + /// Default: + /// Nullable:False + /// + public int material_seq {get;set;} + + /// + /// Desc:最小包装号或半成品的产品序列号 + /// Default: + /// Nullable:False + /// + public string material_card {get;set;} = string.Empty; + + /// + /// Desc:产品类型代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:物料代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:物料类型 + /// Default: + /// Nullable:False + /// + public int material_type {get;set;} + + /// + /// Desc:数量 + /// Default: + /// Nullable:False + /// + public decimal qty {get;set;} + + /// + /// Desc:供应商代码 + /// Default: + /// Nullable:False + /// + public string vendor_code {get;set;} = string.Empty; + + /// + /// Desc:供应商LOT号 + /// Default: + /// Nullable:False + /// + public string vendor_lot {get;set;} = string.Empty; + + /// + /// Desc:生产日期(入库日期) + /// Default: + /// Nullable:False + /// + public int date_code {get;set;} + + /// + /// Desc:班制代码 + /// Default: + /// Nullable:False + /// + public string shift_type_code {get;set;} = string.Empty; + + /// + /// Desc:班次代码 + /// Default: + /// Nullable:False + /// + public string shift_code {get;set;} = string.Empty; + + /// + /// Desc:时段代码 + /// Default: + /// Nullable:False + /// + public string tp_code {get;set;} = string.Empty; + + /// + /// Desc:工作天 + /// Default: + /// Nullable:False + /// + public int shift_day {get;set;} + + /// + /// Desc:工艺路线代码 + /// Default: + /// Nullable:False + /// + public string route_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线版本 + /// Default: + /// Nullable:False + /// + public string route_version {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:工厂代码 + /// Default: + /// Nullable:False + /// + public string factory_code {get;set;} = string.Empty; + + /// + /// Desc:工段代码 + /// Default: + /// Nullable:False + /// + public string segment_code {get;set;} = string.Empty; + + /// + /// Desc:产线代码 + /// Default: + /// Nullable:False + /// + public string production_line_code {get;set;} = string.Empty; + + /// + /// Desc:岗位代码 + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:事件类型:1:上料, 2:拆解 + /// Default: + /// Nullable:False + /// + public string action_type {get;set;} = string.Empty; + + /// + /// Desc:拆解人姓名 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? drop_user_name {get;set;} + + /// + /// Desc:拆解人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? drop_user_id {get;set;} + + /// + /// Desc:拆解时间 + /// Default: + /// Nullable:True + /// + public DateTime? drop_time {get;set;} + + /// + /// Desc:拆解岗位 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? drop_station {get;set;} + + /// + /// Desc:拆解工序 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? drop_process_code {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdProcessParameterdata.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdProcessParameterdata.cs new file mode 100644 index 00000000..bfe90888 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdProcessParameterdata.cs @@ -0,0 +1,196 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///prd_process_parameterdata + /// + [SugarTable("prd_process_parameterdata")] + public partial class PrdProcessParameterdata + { + public PrdProcessParameterdata(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品类型代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工作天 + /// Default: + /// Nullable:False + /// + public int shift_day {get;set;} + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:工艺参数代码 + /// Default: + /// Nullable:False + /// + public string parameter_code {get;set;} = string.Empty; + + /// + /// Desc:工艺参数名称 + /// Default: + /// Nullable:False + /// + public string parameter_name {get;set;} = string.Empty; + + /// + /// Desc:工艺参数类型 + /// Default: + /// Nullable:False + /// + public string parameter_type {get;set;} = string.Empty; + + /// + /// Desc:单位 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? unit {get;set;} + + /// + /// Desc:下限值 + /// Default: + /// Nullable:True + /// + public decimal? limit_low {get;set;} + + /// + /// Desc:上限值 + /// Default: + /// Nullable:True + /// + public decimal? limit_high {get;set;} + + /// + /// Desc:标准值 + /// Default: + /// Nullable:True + /// + public decimal? standard {get;set;} + + /// + /// Desc:实际值 + /// Default: + /// Nullable:True + /// + public decimal? actual {get;set;} + + /// + /// Desc:结果 + /// Default: + /// Nullable:True + /// + public int? result {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepair.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepair.cs new file mode 100644 index 00000000..236aa2be --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepair.cs @@ -0,0 +1,413 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///维修主资料 + /// + [SugarTable("prd_repair")] + public partial class PrdRepair + { + public PrdRepair(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:产品序列号过站次序 + /// Default: + /// Nullable:False + /// + public int r_card_seq {get;set;} + + /// + /// Desc:转换前的产品序列号 + /// Default: + /// Nullable:False + /// + public string source_card {get;set;} = string.Empty; + + /// + /// Desc:转换前的产品序列号流水号 + /// Default: + /// Nullable:False + /// + public int source_card_seq {get;set;} + + /// + /// Desc:Card类型: cardtype_product: 成品, cardtype_part: 物料 + /// Default: + /// Nullable:False + /// + public string card_type {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品类型代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:送修途程代码 + /// Default: + /// Nullable:False + /// + public string from_route_code {get;set;} = string.Empty; + + /// + /// Desc:送修途程版本 + /// Default: + /// Nullable:False + /// + public string from_route_version {get;set;} = string.Empty; + + /// + /// Desc:送修工序代码 + /// Default: + /// Nullable:False + /// + public string from_process_code {get;set;} = string.Empty; + + /// + /// Desc:送修工段代码 + /// Default: + /// Nullable:False + /// + public string from_segment_code {get;set;} = string.Empty; + + /// + /// Desc:送修产线代码 + /// Default: + /// Nullable:False + /// + public string from_product_linecode {get;set;} = string.Empty; + + /// + /// Desc:送修工位代码 + /// Default: + /// Nullable:False + /// + public string from_station_code {get;set;} = string.Empty; + + /// + /// Desc:送修年份 + /// Default: + /// Nullable:False + /// + public int from_year {get;set;} + + /// + /// Desc:送修月份 + /// Default: + /// Nullable:False + /// + public int from_month {get;set;} + + /// + /// Desc:送修周别 + /// Default: + /// Nullable:False + /// + public int from_week {get;set;} + + /// + /// Desc:班制代码 + /// Default: + /// Nullable:False + /// + public string shift_type_code {get;set;} = string.Empty; + + /// + /// Desc:班次代码 + /// Default: + /// Nullable:False + /// + public string shift_code {get;set;} = string.Empty; + + /// + /// Desc:时段代码 + /// Default: + /// Nullable:False + /// + public string tp_code {get;set;} = string.Empty; + + /// + /// Desc:工作天 + /// Default: + /// Nullable:False + /// + public int shift_day {get;set;} + + /// + /// Desc:送修人名称 + /// Default: + /// Nullable:False + /// + public string from_user_name {get;set;} = string.Empty; + + /// + /// Desc:送修备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? from_memo {get;set;} + + /// + /// Desc:送修时间 + /// Default: + /// Nullable:False + /// + public DateTime from_time {get;set;} + + /// + /// Desc:维修来源类型 Onwip, Repair, RMA + /// Default: + /// Nullable:False + /// + public string from_input_type {get;set;} = string.Empty; + + /// + /// Desc:NG次数 + /// Default: + /// Nullable:False + /// + public int ng_times {get;set;} + + /// + /// Desc:维修状态 New, (产线发现不良) Confirm, (送修完) Repair, (维修中) Complete, (维修完成) Reflow, (维修回流) Scrap, (报废) Repeatng, OffMO, (脱离工单) Split(拆解) + /// Default: + /// Nullable:False + /// + public string repair_status {get;set;} = string.Empty; + + /// + /// Desc:维修完成人名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? repaired_user_name {get;set;} + + /// + /// Desc:维修完成时间 + /// Default: + /// Nullable:True + /// + public DateTime? repaired_time {get;set;} + + /// + /// Desc:维修完成备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? repaired_demo {get;set;} + + /// + /// Desc:确认工位代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? confirm_station_code {get;set;} + + /// + /// Desc:确认产线代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? confirm_process_code {get;set;} + + /// + /// Desc:确认人员名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? confirm_user_name {get;set;} + + /// + /// Desc:确认时间 + /// Default: + /// Nullable:True + /// + public DateTime? confirm_time {get;set;} + + /// + /// Desc:回流工单代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? reflow_mo_code {get;set;} + + /// + /// Desc:回流途程代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? reflow_route_code {get;set;} + + /// + /// Desc:回流涂程版本 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? reflow_route_version {get;set;} + + /// + /// Desc:回流工序代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? reflow_process_code {get;set;} + + /// + /// Desc:回流岗位代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? reflow_station_code {get;set;} + + /// + /// Desc:维修岗位代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? repair_station_code {get;set;} + + /// + /// Desc:报废原因 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? scrap_cause {get;set;} + + /// + /// Desc:送修线外工序 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? from_out_route_code {get;set;} + + /// + /// Desc:维修类型 Normal: 普通, Misjudge: 误判 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? repair_type {get;set;} + + /// + /// Desc:RMA单号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? rma_bill_code {get;set;} + + /// + /// Desc:维修人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? repair_user_id {get;set;} + + /// + /// Desc:维修人员姓名 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? repair_user_name {get;set;} + + /// + /// Desc:维修时间 + /// Default: + /// Nullable:True + /// + public DateTime? repair_time {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorCode.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorCode.cs new file mode 100644 index 00000000..77068f8c --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorCode.cs @@ -0,0 +1,133 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///维修不良代码 + /// + [SugarTable("prd_repair_error_code")] + public partial class PrdRepairErrorCode + { + public PrdRepairErrorCode(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:GUID + /// Default: + /// Nullable:False + /// + public string repair_id {get;set;} = string.Empty; + + /// + /// Desc:不良代码组 + /// Default: + /// Nullable:False + /// + public string error_group_code {get;set;} = string.Empty; + + /// + /// Desc:不良代码 + /// Default: + /// Nullable:False + /// + public string error_code {get;set;} = string.Empty; + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:产品分类代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcause.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcause.cs new file mode 100644 index 00000000..f1c4d594 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcause.cs @@ -0,0 +1,196 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///维修不良原因 + /// + [SugarTable("prd_repair_errorcause")] + public partial class PrdRepairErrorcause + { + public PrdRepairErrorcause(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:GUID + /// Default: + /// Nullable:False + /// + public string repair_id {get;set;} = string.Empty; + + /// + /// Desc:不良代码组 + /// Default: + /// Nullable:False + /// + public string error_group_code {get;set;} = string.Empty; + + /// + /// Desc:不良代码 + /// Default: + /// Nullable:False + /// + public string error_code {get;set;} = string.Empty; + + /// + /// Desc:不良原因组代码 + /// Default: + /// Nullable:False + /// + public string error_cause_group_code {get;set;} = string.Empty; + + /// + /// Desc:不良原因代码 + /// Default: + /// Nullable:False + /// + public string error_cause_code {get;set;} = string.Empty; + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:产品类型代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:维修资源代码 + /// Default: + /// Nullable:False + /// + public string r_station_code {get;set;} = string.Empty; + + /// + /// Desc:维修工序代码 + /// Default: + /// Nullable:False + /// + public string r_process_code {get;set;} = string.Empty; + + /// + /// Desc:解决方案代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? solution_code {get;set;} + + /// + /// Desc:责任类别代码 + /// Default: + /// Nullable:False + /// + public string duty_code {get;set;} = string.Empty; + + /// + /// Desc:解决方法 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? solution_memo {get;set;} + + /// + /// Desc:工作天 + /// Default: + /// Nullable:False + /// + public int shift_day {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcauseCom.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcauseCom.cs new file mode 100644 index 00000000..7f9b0a71 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcauseCom.cs @@ -0,0 +1,161 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///维修不良原因和不良组件之间的关系 + /// + [SugarTable("prd_repair_errorcause_com")] + public partial class PrdRepairErrorcauseCom + { + public PrdRepairErrorcauseCom(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:GUID + /// Default: + /// Nullable:False + /// + public string repair_id {get;set;} = string.Empty; + + /// + /// Desc:不良代码组 + /// Default: + /// Nullable:False + /// + public string error_group_code {get;set;} = string.Empty; + + /// + /// Desc:不良代码 + /// Default: + /// Nullable:False + /// + public string error_code {get;set;} = string.Empty; + + /// + /// Desc:不良原因组代码 + /// Default: + /// Nullable:False + /// + public string error_cause_group_code {get;set;} = string.Empty; + + /// + /// Desc:不良原因代码 + /// Default: + /// Nullable:False + /// + public string error_cause_code {get;set;} = string.Empty; + + /// + /// Desc:不良组件名称 + /// Default: + /// Nullable:False + /// + public string component_name {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:产品类型代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:维修资源代码 + /// Default: + /// Nullable:False + /// + public string r_station_code {get;set;} = string.Empty; + + /// + /// Desc:维修工序代码 + /// Default: + /// Nullable:False + /// + public string r_process_code {get;set;} = string.Empty; + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcauseMat.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcauseMat.cs new file mode 100644 index 00000000..d3d449ba --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcauseMat.cs @@ -0,0 +1,154 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///维修不良原因和不良物料之间的关系 + /// + [SugarTable("prd_repair_errorcause_mat")] + public partial class PrdRepairErrorcauseMat + { + public PrdRepairErrorcauseMat(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:GUID + /// Default: + /// Nullable:False + /// + public string repair_id {get;set;} = string.Empty; + + /// + /// Desc:不良代码组 + /// Default: + /// Nullable:False + /// + public string error_group_code {get;set;} = string.Empty; + + /// + /// Desc:不良代码 + /// Default: + /// Nullable:False + /// + public string error_code {get;set;} = string.Empty; + + /// + /// Desc:不良原因代码 + /// Default: + /// Nullable:False + /// + public string error_cause_group_code {get;set;} = string.Empty; + + /// + /// Desc:不良原因代码 + /// Default: + /// Nullable:False + /// + public string error_cause_code {get;set;} = string.Empty; + + /// + /// Desc:不良物料代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:产品类型代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:维修资源代码 + /// Default: + /// Nullable:False + /// + public string r_station_code {get;set;} = string.Empty; + + /// + /// Desc:维修工序代码 + /// Default: + /// Nullable:False + /// + public string r_process_code {get;set;} = string.Empty; + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairReflow.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairReflow.cs new file mode 100644 index 00000000..66fe9229 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairReflow.cs @@ -0,0 +1,112 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///维修回流工序 + /// + [SugarTable("prd_repair_reflow")] + public partial class PrdRepairReflow + { + public PrdRepairReflow(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:GUID + /// Default: + /// Nullable:False + /// + public string repair_id {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:工序顺序 + /// Default: + /// Nullable:False + /// + public int process_seq {get;set;} + + /// + /// Desc:是否已回流执行 + /// Default: + /// Nullable:False + /// + public int is_pass {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReport.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReport.cs index cc7acfb7..10ae4da7 100644 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReport.cs +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReport.cs @@ -1,6 +1,7 @@ -using System; +using System; using System.Linq; using System.Text; +using JNPF.Common.Security; using SqlSugar; namespace Tnb.ProductionMgr.Entities @@ -21,7 +22,21 @@ namespace Tnb.ProductionMgr.Entities /// Nullable:False /// [SugarColumn(IsPrimaryKey=true)] - public string id {get;set;} + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:生产任务Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mo_task_id {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} /// /// Desc:时间戳 @@ -30,6 +45,13 @@ namespace Tnb.ProductionMgr.Entities /// public DateTime? timestamp {get;set;} + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + /// /// Desc:创建时间 /// Default: @@ -37,6 +59,13 @@ namespace Tnb.ProductionMgr.Entities /// public DateTime? create_time {get;set;} + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + /// /// Desc:修改时间 /// Default: @@ -49,35 +78,7 @@ namespace Tnb.ProductionMgr.Entities /// Default: /// Nullable:True /// - public string extras {get;set;} - - /// - /// Desc:生产任务Id - /// Default:NULL::character varying - /// Nullable:True - /// - public string mo_task_id {get;set;} - - /// - /// Desc:备注 - /// Default:NULL::character varying - /// Nullable:True - /// - public string remark {get;set;} - - /// - /// Desc:创建用户 - /// Default:NULL::character varying - /// Nullable:True - /// - public string create_id {get;set;} - - /// - /// Desc:修改用户 - /// Default:NULL::character varying - /// Nullable:True - /// - public string modify_id {get;set;} + public string? extras {get;set;} /// /// Desc:生产数量 @@ -105,7 +106,7 @@ namespace Tnb.ProductionMgr.Entities /// Default: /// Nullable:True /// - public string mo_task_code {get;set;} + public string? mo_task_code {get;set;} /// /// Desc:生产任务量 diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReportRecord.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReportRecord.cs index 6c221dca..db13f208 100644 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReportRecord.cs +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReportRecord.cs @@ -1,6 +1,7 @@ -using System; +using System; using System.Linq; using System.Text; +using JNPF.Common.Security; using SqlSugar; namespace Tnb.ProductionMgr.Entities @@ -21,42 +22,28 @@ namespace Tnb.ProductionMgr.Entities /// Nullable:False /// [SugarColumn(IsPrimaryKey=true)] - public string id {get;set;} - - /// - /// Desc:设备编码 - /// Default: - /// Nullable:True - /// - public string eqp_code {get;set;} + public string id {get;set;} = SnowflakeIdHelper.NextId(); /// /// Desc:产品编码 /// Default: /// Nullable:True /// - public string masterial_code {get;set;} + public string? masterial_code {get;set;} /// /// Desc:产品名称 /// Default: /// Nullable:True /// - public string masterial_name {get;set;} + public string? masterial_name {get;set;} /// - /// Desc:计划生产数量 + /// Desc:设备编码 /// Default: /// Nullable:True /// - public int? plan_qty {get;set;} - - /// - /// Desc:完成数量 - /// Default: - /// Nullable:True - /// - public int? completed_qty {get;set;} + public string? eqp_code {get;set;} /// /// Desc:计划开始时间 @@ -72,12 +59,26 @@ namespace Tnb.ProductionMgr.Entities /// public DateTime? plan_end_date {get;set;} + /// + /// Desc:计划生产数量 + /// Default: + /// Nullable:True + /// + public int? plan_qty {get;set;} + + /// + /// Desc:完成数量 + /// Default: + /// Nullable:True + /// + public int? completed_qty {get;set;} + /// /// Desc:任务单号 /// Default: /// Nullable:True /// - public string mo_task_code {get;set;} + public string? mo_task_code {get;set;} } } diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReworkrange.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReworkrange.cs new file mode 100644 index 00000000..24311da6 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReworkrange.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///返工需求单下的产品 + /// + [SugarTable("prd_reworkrange")] + public partial class PrdReworkrange + { + public PrdReworkrange(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:P返工需求单ID + /// Default: + /// Nullable:False + /// + public string rework_id {get;set;} = string.Empty; + + /// + /// Desc:返工需求单代码 + /// Default: + /// Nullable:False + /// + public string rework_code {get;set;} = string.Empty; + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReworksheet.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReworksheet.cs new file mode 100644 index 00000000..cd273eb5 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReworksheet.cs @@ -0,0 +1,189 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///返工需求单 + /// + [SugarTable("prd_reworksheet")] + public partial class PrdReworksheet + { + public PrdReworksheet(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:返工需求单代码 + /// Default: + /// Nullable:False + /// + public string rework_code {get;set;} = string.Empty; + + /// + /// Desc:返工类型: 1:OnLine在线返工, 2:QCReject判退返工 + /// Default: + /// Nullable:False + /// + public string rework_type {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:产品附属信息 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? item_attribute {get;set;} + + /// + /// Desc:返工需求单状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:返工工艺路线 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? rework_route {get;set;} + + /// + /// Desc:返工工艺路线版本 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? rework_route_version {get;set;} + + /// + /// Desc:返工BOM版本 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? rework_bom_version {get;set;} + + /// + /// Desc:返工数量 + /// Default: + /// Nullable:False + /// + public decimal rework_qty {get;set;} + + /// + /// Desc:返工责任别 + /// Default: + /// Nullable:False + /// + public string duty_code {get;set;} = string.Empty; + + /// + /// Desc:QC判退批号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? qc_lot {get;set;} + + /// + /// Desc:返工情况说明 + /// Default: + /// Nullable:False + /// + public string rework_reason {get;set;} = string.Empty; + + /// + /// Desc:返工不良分析 + /// Default: + /// Nullable:False + /// + public string reason_analyse {get;set;} = string.Empty; + + /// + /// Desc:返工解决方案 + /// Default: + /// Nullable:False + /// + public string solution {get;set;} = string.Empty; + + /// + /// Desc:是否需要签核 + /// Default: + /// Nullable:False + /// + public string need_check {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdScrappedDefectiveCagetory.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdScrappedDefectiveCagetory.cs deleted file mode 100644 index be450414..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdScrappedDefectiveCagetory.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Linq; -using System.Text; -using SqlSugar; - -namespace DbModels -{ - /// - ///TODO - /// - [SugarTable("prd_self_test_scrapped_defective_cagetory")] - public partial class PrdScrappedDefectiveCagetory - { - - /// - /// Desc:编号 - /// Default: - /// Nullable:False - /// - [SugarColumn(IsPrimaryKey = true)] - public string id { get; set; } - - /// - /// Desc:任务单号 - /// Default: - /// Nullable:True - /// - public string icmo_code { get; set; } - - /// - /// Desc:次品分类 - /// Default: - /// Nullable:True - /// - public string defective_category { get; set; } - - /// - /// Desc:分类数量 - /// Default: - /// Nullable:True - /// - public int? category_qty { get; set; } - - - /// - /// Desc:创建用户 - /// Default: - /// Nullable:True - /// - public string create_id { get; set; } - - /// - /// Desc:创建时间 - /// Default: - /// Nullable:True - /// - public DateTime? create_time { get; set; } - - } -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdScrappedDefectiveItem.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdScrappedDefectiveItem.cs deleted file mode 100644 index fa09afdb..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdScrappedDefectiveItem.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using System.Linq; -using System.Text; -using SqlSugar; - -namespace DbModels -{ - /// - ///TODO - /// - [SugarTable("prd_self_test_scrapped_defective_item")] - public partial class PrdScrappedDefectiveItem - { - - /// - /// Desc:编号 - /// Default: - /// Nullable:False - /// - [SugarColumn(IsPrimaryKey=true)] - public string id {get;set;} - - /// - /// Desc:自检报废id - /// Default: - /// Nullable:True - /// - public string defective_cagetory_id { get;set;} - - /// - /// Desc:次品项 - /// Default: - /// Nullable:True - /// - public string defective_item {get;set;} - - /// - /// Desc:次品项数量 - /// Default: - /// Nullable:True - /// - public int defective_item_qty {get;set;} - - } -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSelfTestScrappedRecord.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSelfTestScrappedRecord.cs deleted file mode 100644 index ede80cf2..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSelfTestScrappedRecord.cs +++ /dev/null @@ -1,109 +0,0 @@ -using System; -using System.Linq; -using System.Text; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities -{ - /// - /// - /// - [SugarTable("prd_self_test_scrapped_record")] - public partial class PrdSelfTestScrappedRecord - { - public PrdSelfTestScrappedRecord() - { - - - } - /// - /// Desc:主键 - /// Default: - /// Nullable:False - /// - [SugarColumn(IsPrimaryKey = true)] - public string id { get; set; } - - /// - /// Desc:产品编码 - /// Default: - /// Nullable:True - /// - public string item_code { get; set; } - - /// - /// Desc:产品名称 - /// Default: - /// Nullable:True - /// - public string item_name { get; set; } - - /// - /// Desc:设备编码 - /// Default: - /// Nullable:True - /// - public string eqp_code { get; set; } - - /// - /// Desc:模具名称 - /// Default: - /// Nullable:True - /// - public string mold_name { get; set; } - - /// - /// Desc:预计开始时间 - /// Default: - /// Nullable:True - /// - public DateTime? estimated_start_date { get; set; } - - /// - /// Desc:预计结束时间 - /// Default: - /// Nullable:True - /// - public DateTime? estimated_end_date { get; set; } - - /// - /// Desc:计划生产数量 - /// Default: - /// Nullable:True - /// - public int? plan_qty { get; set; } - - /// - /// Desc:报废数量 - /// Default: - /// Nullable:True - /// - public int scrap_qty { get; set; } - - /// - /// Desc:生产任务单状态 - /// Default: - /// Nullable:True - /// - public string status { get; set; } - - /// - /// Desc:创建人Id - /// Default: - /// Nullable:True - /// - public string create_id { get; set; } - - /// - /// Desc:创建时间 - /// Default: - /// Nullable:True - /// - public DateTime? create_time { get; set; } - /// - /// 任务单号 - /// - public string icmo_code { get; set; } - - } -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSerialBook.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSerialBook.cs new file mode 100644 index 00000000..cee9cfb7 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSerialBook.cs @@ -0,0 +1,133 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///标签序列号流水记录表 + /// + [SugarTable("prd_serial_book")] + public partial class PrdSerialBook + { + public PrdSerialBook(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:条码类型 + /// Default: + /// Nullable:False + /// + public string sn_type {get;set;} = string.Empty; + + /// + /// Desc:前缀 + /// Default: + /// Nullable:False + /// + public string prefix {get;set;} = string.Empty; + + /// + /// Desc:年度 + /// Default: + /// Nullable:False + /// + public int year {get;set;} + + /// + /// Desc:季度 + /// Default: + /// Nullable:False + /// + public int quarter {get;set;} + + /// + /// Desc:月份 + /// Default: + /// Nullable:False + /// + public int month {get;set;} + + /// + /// Desc:周别 + /// Default: + /// Nullable:False + /// + public int week {get;set;} + + /// + /// Desc:日期 + /// Default: + /// Nullable:False + /// + public int date {get;set;} + + /// + /// Desc:最大流水号 + /// Default: + /// Nullable:False + /// + public string max_serial {get;set;} = string.Empty; + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSimulation.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSimulation.cs new file mode 100644 index 00000000..8d3de537 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSimulation.cs @@ -0,0 +1,231 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///在制品信息 + /// + [SugarTable("prd_simulation")] + public partial class PrdSimulation + { + public PrdSimulation(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品序列号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? r_card {get;set;} + + /// + /// Desc:产品序列号过站次序 + /// Default: + /// Nullable:False + /// + public int r_card_seq {get;set;} + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:转换前的产品序列号 + /// Default: + /// Nullable:False + /// + public string source_card {get;set;} = string.Empty; + + /// + /// Desc:转换前的产品序列号流水号 + /// Default: + /// Nullable:False + /// + public int source_card_seq {get;set;} + + /// + /// Desc:产品类型代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:关联比例 + /// Default: + /// Nullable:False + /// + public decimal relation_qty {get;set;} + + /// + /// Desc:工艺路线代码 + /// Default: + /// Nullable:False + /// + public string route_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线版本 + /// Default: + /// Nullable:False + /// + public string route_version {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:岗位代码 + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:装箱条码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? carton_code {get;set;} + + /// + /// Desc:抽检批号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? lot_no {get;set;} + + /// + /// Desc:产品状态 + /// Default: + /// Nullable:False + /// + public string product_status {get;set;} = string.Empty; + + /// + /// Desc:最后过站事件代码 + /// Default: + /// Nullable:False + /// + public string last_action {get;set;} = string.Empty; + + /// + /// Desc:过站事件列表 + /// Default: + /// Nullable:False + /// + public string action_list {get;set;} = string.Empty; + + /// + /// Desc:NG总次数 + /// Default: + /// Nullable:False + /// + public int ng_times {get;set;} + + /// + /// Desc:过站开始时间 + /// Default: + /// Nullable:False + /// + public DateTime begin_time {get;set;} + + /// + /// Desc:过站结束时间 + /// Default: + /// Nullable:True + /// + public DateTime? end_time {get;set;} + + /// + /// Desc:是否完工 + /// Default: + /// Nullable:False + /// + public int is_complete {get;set;} + + /// + /// Desc:员工表 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? staffs {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSimulationreport.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSimulationreport.cs new file mode 100644 index 00000000..66416621 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSimulationreport.cs @@ -0,0 +1,280 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///在制品历史记录 + /// + [SugarTable("prd_simulationreport")] + public partial class PrdSimulationreport + { + public PrdSimulationreport(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:产品序列号过站次序 + /// Default: + /// Nullable:False + /// + public int r_card_seq {get;set;} + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:转换前的产品序列号 + /// Default: + /// Nullable:False + /// + public string source_card {get;set;} = string.Empty; + + /// + /// Desc:转换前的产品序列号流水号 + /// Default: + /// Nullable:False + /// + public int source_card_seq {get;set;} + + /// + /// Desc:产品类型代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:关联比例 + /// Default: + /// Nullable:False + /// + public decimal relation_qty {get;set;} + + /// + /// Desc:班制代码 + /// Default: + /// Nullable:False + /// + public string shift_type_code {get;set;} = string.Empty; + + /// + /// Desc:班次代码 + /// Default: + /// Nullable:False + /// + public string shift_code {get;set;} = string.Empty; + + /// + /// Desc:时段代码 + /// Default: + /// Nullable:False + /// + public string tp_code {get;set;} = string.Empty; + + /// + /// Desc:工作天 + /// Default: + /// Nullable:False + /// + public int shift_day {get;set;} + + /// + /// Desc:工艺路线代码 + /// Default: + /// Nullable:False + /// + public string route_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线版本 + /// Default: + /// Nullable:False + /// + public string route_version {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:工厂代码 + /// Default: + /// Nullable:False + /// + public string factory_code {get;set;} = string.Empty; + + /// + /// Desc:工段代码 + /// Default: + /// Nullable:False + /// + public string segment_code {get;set;} = string.Empty; + + /// + /// Desc:产线代码 + /// Default: + /// Nullable:False + /// + public string production_line_code {get;set;} = string.Empty; + + /// + /// Desc:岗位代码 + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:装箱条码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? carton_code {get;set;} + + /// + /// Desc:抽检批号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? lot_no {get;set;} + + /// + /// Desc:产品状态: GOOD, OFFLINE, OFFMO, OUTLINE, NG, REJECT, SCRAP + /// Default: + /// Nullable:False + /// + public string product_status {get;set;} = string.Empty; + + /// + /// Desc:最后过站事件代码 + /// Default: + /// Nullable:False + /// + public string last_action {get;set;} = string.Empty; + + /// + /// Desc:过站事件列表 + /// Default: + /// Nullable:False + /// + public string action_list {get;set;} = string.Empty; + + /// + /// Desc:NG总次数 + /// Default: + /// Nullable:False + /// + public int ng_times {get;set;} + + /// + /// Desc:过站开始时间 + /// Default: + /// Nullable:False + /// + public DateTime begin_time {get;set;} + + /// + /// Desc:过站结束时间 + /// Default: + /// Nullable:True + /// + public DateTime? end_time {get;set;} + + /// + /// Desc:是否完工 + /// Default: + /// Nullable:False + /// + public int is_complete {get;set;} + + /// + /// Desc:员工表 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? staffs {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdStationPrepareMaterial.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdStationPrepareMaterial.cs new file mode 100644 index 00000000..652c9590 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdStationPrepareMaterial.cs @@ -0,0 +1,189 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///批控管料备料(岗位用料信息) + /// + [SugarTable("prd_station_prepare_material")] + public partial class PrdStationPrepareMaterial + { + public PrdStationPrepareMaterial(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:物料备料顺序(按单个物料进行排序) + /// Default: + /// Nullable:False + /// + public int seq {get;set;} + + /// + /// Desc:工序BOM物料代码(主料) + /// Default: + /// Nullable:False + /// + public string bom_material_code {get;set;} = string.Empty; + + /// + /// Desc:备料物料代码(主料或替代料) + /// Default: + /// Nullable:False + /// + public string prepare_material_code {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品类型代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工序BOM版本 + /// Default: + /// Nullable:False + /// + public string process_bom_version {get;set;} = string.Empty; + + /// + /// Desc:工艺路线代码 + /// Default: + /// Nullable:False + /// + public string route_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线版本 + /// Default: + /// Nullable:False + /// + public string route_version {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:岗位代码 + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:最小包装号或半成品的产品序列号,INV_BARCODE.BARCODE + /// Default: + /// Nullable:False + /// + public string material_card {get;set;} = string.Empty; + + /// + /// Desc:数量 + /// Default: + /// Nullable:False + /// + public decimal qty {get;set;} + + /// + /// Desc:供应商代码 + /// Default: + /// Nullable:False + /// + public string vendor_code {get;set;} = string.Empty; + + /// + /// Desc:供应商LOT号 + /// Default: + /// Nullable:False + /// + public string vendor_lot {get;set;} = string.Empty; + + /// + /// Desc:生产日期(入库日期) + /// Default: + /// Nullable:False + /// + public DateTime date_code {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdStationPrepareTool.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdStationPrepareTool.cs new file mode 100644 index 00000000..22bfb080 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdStationPrepareTool.cs @@ -0,0 +1,147 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///批控管料备料工具 + /// + [SugarTable("prd_station_prepare_tool")] + public partial class PrdStationPrepareTool + { + public PrdStationPrepareTool(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:工具类型代码 + /// Default: + /// Nullable:False + /// + public string tool_type_code {get;set;} = string.Empty; + + /// + /// Desc:模型代码 + /// Default: + /// Nullable:False + /// + public string model_code {get;set;} = string.Empty; + + /// + /// Desc:工具代码 + /// Default: + /// Nullable:False + /// + public string tool_code {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品类型代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线代码 + /// Default: + /// Nullable:False + /// + public string route_code {get;set;} = string.Empty; + + /// + /// Desc:工艺路线版本 + /// Default: + /// Nullable:False + /// + public string route_version {get;set;} = string.Empty; + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:岗位代码 + /// Default: + /// Nullable:False + /// + public string station_code {get;set;} = string.Empty; + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdTestdataTemporary.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdTestdataTemporary.cs new file mode 100644 index 00000000..e650f045 --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdTestdataTemporary.cs @@ -0,0 +1,210 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///生产测试数据临时记录 + /// + [SugarTable("prd_testdata_temporary")] + public partial class PrdTestdataTemporary + { + public PrdTestdataTemporary(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:产品序列号 + /// Default: + /// Nullable:False + /// + public string r_card {get;set;} = string.Empty; + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:False + /// + public string mo_code {get;set;} = string.Empty; + + /// + /// Desc:产品类型代码 + /// Default: + /// Nullable:False + /// + public string category_code {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string item_code {get;set;} = string.Empty; + + /// + /// Desc:工作天 + /// Default: + /// Nullable:False + /// + public int shift_day {get;set;} + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:False + /// + public string process_code {get;set;} = string.Empty; + + /// + /// Desc:检验类型代码 + /// Default: + /// Nullable:False + /// + public string check_type_code {get;set;} = string.Empty; + + /// + /// Desc:检验类型名称 + /// Default: + /// Nullable:False + /// + public string check_type_name {get;set;} = string.Empty; + + /// + /// Desc:检验项目代码 + /// Default: + /// Nullable:False + /// + public string check_item_code {get;set;} = string.Empty; + + /// + /// Desc:检验项目名称 + /// Default: + /// Nullable:False + /// + public string check_item_name {get;set;} = string.Empty; + + /// + /// Desc:Value:值检验项/Result:结果检验项 + /// Default: + /// Nullable:False + /// + public string result_type {get;set;} = string.Empty; + + /// + /// Desc:判断类型: 1:Auto自动判断 2:Manual人工判断 + /// Default: + /// Nullable:False + /// + public int judge_type {get;set;} + + /// + /// Desc:单位 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? unit {get;set;} + + /// + /// Desc:下限值 + /// Default: + /// Nullable:True + /// + public decimal? limit_low {get;set;} + + /// + /// Desc:上限值 + /// Default: + /// Nullable:True + /// + public decimal? limit_high {get;set;} + + /// + /// Desc:标准值 + /// Default: + /// Nullable:True + /// + public decimal? standard {get;set;} + + /// + /// Desc:实际值 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? actual {get;set;} + + /// + /// Desc:结果 + /// Default: + /// Nullable:False + /// + public int result {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdWarn.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdWarn.cs new file mode 100644 index 00000000..33c5f71c --- /dev/null +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdWarn.cs @@ -0,0 +1,119 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.ProductionMgr.Entities +{ + /// + ///设备告警 + /// + [SugarTable("prd_warn")] + public partial class PrdWarn + { + public PrdWarn(){ + + + } + /// + /// Desc:编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:设备Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? eqp_id {get;set;} + + /// + /// Desc:设备编码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? eqp_code {get;set;} + + /// + /// Desc:设备名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? eqp_name {get;set;} + + /// + /// Desc:告警编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? warn_code {get;set;} + + /// + /// Desc:告警内容 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? warn_name {get;set;} + + /// + /// Desc:上报时间 + /// Default: + /// Nullable:True + /// + public DateTime? report_time {get;set;} + + /// + /// Desc:消除时间 + /// Default: + /// Nullable:True + /// + public DateTime? eli_time {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + /// + /// Desc:创建用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? create_id {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + } +} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdWorklineState.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdWorklineState.cs index 52e9c4e3..c3ff0413 100644 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdWorklineState.cs +++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdWorklineState.cs @@ -1,165 +1,168 @@ -using SqlSugar; +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; -namespace Tnb.ProductionMgr.Entities; - -/// -///产线状态 -/// -[SugarTable("prd_workline_state")] -public partial class PrdWorklineState +namespace Tnb.ProductionMgr.Entities { - public PrdWorklineState() + /// + ///产线状态 + /// + [SugarTable("prd_workline_state")] + public partial class PrdWorklineState { + public PrdWorklineState(){ + } + /// + /// Desc:产线id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:产线代码 + /// Default: + /// Nullable:True + /// + public string? workline_code {get;set;} + + /// + /// Desc:工单id + /// Default: + /// Nullable:True + /// + public string? mo_id {get;set;} + + /// + /// Desc:工单代码 + /// Default: + /// Nullable:True + /// + public string? mo_code {get;set;} + + /// + /// Desc:模具id + /// Default: + /// Nullable:True + /// + public string? mold_id {get;set;} + + /// + /// Desc:工艺路线id + /// Default: + /// Nullable:True + /// + public string? route_id {get;set;} + + /// + /// Desc:工艺路线代码 + /// Default: + /// Nullable:True + /// + public string? route_code {get;set;} + + /// + /// Desc:工序id + /// Default: + /// Nullable:True + /// + public string? process_id {get;set;} + + /// + /// Desc:工序代码 + /// Default: + /// Nullable:True + /// + public string? process_code {get;set;} + + /// + /// Desc:工位id + /// Default: + /// Nullable:True + /// + public string? station_id {get;set;} + + /// + /// Desc:工位代码 + /// Default: + /// Nullable:True + /// + public string? station_code {get;set;} + + /// + /// Desc:当前产品序列号 + /// Default: + /// Nullable:True + /// + public string? lot_no {get;set;} + + /// + /// Desc:需要的物料 + /// Default: + /// Nullable:True + /// + public string? require_material_id {get;set;} + + /// + /// Desc:需要的物料 + /// Default: + /// Nullable:True + /// + public string? require_material_code {get;set;} + + /// + /// Desc:需要的物料 + /// Default: + /// Nullable:True + /// + public string? require_material_name {get;set;} + + /// + /// Desc:需要的物料 + /// Default: + /// Nullable:True + /// + public string? require_material_spec {get;set;} + + /// + /// Desc:当前产品 + /// Default: + /// Nullable:True + /// + public string? product_code {get;set;} + + /// + /// Desc:当前产品 + /// Default: + /// Nullable:True + /// + public string? product_name {get;set;} + + /// + /// Desc:当前产品 + /// Default: + /// Nullable:True + /// + public string? product_spec {get;set;} + + /// + /// Desc:扩展 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:更新时间 + /// Default: + /// Nullable:True + /// + public DateTime? update_time {get;set;} + } - /// - /// Desc:工序id - /// Default: - /// Nullable:False - /// - public string process_id { get; set; } - - /// - /// Desc:当前产品序列号 - /// Default: - /// Nullable:False - /// - public string lot_no { get; set; } - - /// - /// Desc:工单id - /// Default: - /// Nullable:True - /// - public string mo_id { get; set; } - - /// - /// Desc:更新时间 - /// Default: - /// Nullable:True - /// - public DateTime? update_time { get; set; } - - /// - /// Desc:需要的物料 - /// Default: - /// Nullable:False - /// - public string require_material_spec { get; set; } - - /// - /// Desc:扩展 - /// Default: - /// Nullable:True - /// - public string extras { get; set; } - - /// - /// Desc:当前产品 - /// Default: - /// Nullable:True - /// - public string product_code { get; set; } - - /// - /// Desc:当前产品 - /// Default: - /// Nullable:True - /// - public string product_name { get; set; } - - /// - /// Desc:当前产品 - /// Default: - /// Nullable:True - /// - public string product_spec { get; set; } - - /// - /// Desc:产线id - /// Default: - /// Nullable:False - /// - [SugarColumn(IsPrimaryKey = true)] - public string id { get; set; } - - /// - /// Desc:产线代码 - /// Default: - /// Nullable:True - /// - public string workline_code { get; set; } - - /// - /// Desc:工单代码 - /// Default: - /// Nullable:True - /// - public string mo_code { get; set; } - - /// - /// Desc:模具id - /// Default: - /// Nullable:True - /// - [SugarColumn(IsPrimaryKey = true)] - public string mold_id { get; set; } - - /// - /// Desc:工艺路线id - /// Default: - /// Nullable:True - /// - public string route_id { get; set; } - - /// - /// Desc:工艺路线代码 - /// Default: - /// Nullable:False - /// - public string route_code { get; set; } - - /// - /// Desc:工序代码 - /// Default: - /// Nullable:False - /// - public string process_code { get; set; } - - /// - /// Desc:工位id - /// Default: - /// Nullable:False - /// - public string station_id { get; set; } - - /// - /// Desc:工位代码 - /// Default: - /// Nullable:False - /// - public string station_code { get; set; } - - /// - /// Desc:需要的物料 - /// Default: - /// Nullable:False - /// - public string require_material_id { get; set; } - - /// - /// Desc:需要的物料 - /// Default: - /// Nullable:False - /// - public string require_material_code { get; set; } - - /// - /// Desc:需要的物料 - /// Default: - /// Nullable:True - /// - public string require_material_name { get; set; } - } diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/SelfTestScrapped.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/SelfTestScrapped.cs deleted file mode 100644 index 9075903d..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/SelfTestScrapped.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System; -using System.Linq; -using System.Text; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities -{ - /// - /// 自检报废 - /// - [SugarTable("self_test_scrapped")] - public partial class SelfTestScrapped - { - /// - /// Desc:主键 - /// Default: - /// Nullable:False - /// - [SugarColumn(IsPrimaryKey = true)] - public string id { get; set; } - - /// - /// Desc:任务单号 - /// Default: - /// Nullable:True - /// - public string icmo_code { get; set; } - - /// - /// Desc:次品分类 - /// Default: - /// Nullable:True - /// - public string defective_category { get; set; } - - /// - /// Desc:分类数量 - /// Default: - /// Nullable:True - /// - [SugarColumn(ColumnName = "category_qty")] - public int? category_qty { get; set; } - - /// - /// Desc:报废数量 - /// Default: - /// Nullable:True - /// - public int? scrap_qty { get; set; } - - /// - /// Desc:备注 - /// Default: - /// Nullable:True - /// - public string remark { get; set; } - - /// - /// Desc:创建人 - /// Default: - /// Nullable:True - /// - public string create_id { get; set; } - - /// - /// Desc:创建时间 - /// Default: - /// Nullable:True - /// - public DateTime? create_time { get; set; } - - } -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/SelfTestScrappedItem.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/SelfTestScrappedItem.cs deleted file mode 100644 index 1847cde0..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/SelfTestScrappedItem.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using System.Linq; -using System.Text; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities -{ - /// - ///自检报废子表项 - /// - [SugarTable("self_test_scrapped_item")] - public partial class SelfTestScrappedItem - { - /// - /// Desc:主键 - /// Default: - /// Nullable:False - /// - [SugarColumn(IsPrimaryKey = true)] - public string id { get; set; } - - /// - /// Desc:自检报废id - /// Default: - /// Nullable:True - /// - public string defective_cagetory_id { get; set; } - - /// - /// Desc:次品项 - /// Default: - /// Nullable:True - /// - public string defective_item { get; set; } - - /// - /// Desc:次品项数量 - /// Default: - /// Nullable:True - /// - public int defective_item_qty { get; set; } - - } -} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsAreaD.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsAreaD.cs new file mode 100644 index 00000000..e920fb79 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsAreaD.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///路径管理区设备明细表 + /// + [SugarTable("wms_area_d")] + public partial class WmsAreaD + { + public WmsAreaD(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:主表ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? area_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:设备ID + /// Default: + /// Nullable:False + /// + public string eqpt_id {get;set;} = string.Empty; + + /// + /// Desc:设备编号 + /// Default: + /// Nullable:False + /// + public string eqpt_code {get;set;} = string.Empty; + + /// + /// Desc:状态 + /// Default: + /// Nullable:False + /// + public int status {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsAreaH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsAreaH.cs new file mode 100644 index 00000000..45e7e768 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsAreaH.cs @@ -0,0 +1,112 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///路径管理区主表 + /// + [SugarTable("wms_area_h")] + public partial class WmsAreaH + { + public WmsAreaH(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:管理区代码 + /// Default: + /// Nullable:False + /// + public string code {get;set;} = string.Empty; + + /// + /// Desc:管理区名称 + /// Default: + /// Nullable:False + /// + public string name {get;set;} = string.Empty; + + /// + /// Desc:状态 + /// Default: + /// Nullable:False + /// + public int status {get;set;} + + /// + /// Desc:单次搬运数量 + /// Default: + /// Nullable:False + /// + public int move_num {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryCode.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryCode.cs new file mode 100644 index 00000000..81df65bb --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryCode.cs @@ -0,0 +1,168 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///载具台账条码表 + /// + [SugarTable("wms_carry_code")] + public partial class WmsCarryCode + { + public WmsCarryCode(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:上级载具ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? carry_id {get;set;} + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:条码编号 + /// Default: + /// Nullable:False + /// + public string barcode {get;set;} = string.Empty; + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:条码数量 + /// Default: + /// Nullable:False + /// + public int codeqty {get;set;} + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int no {get;set;} + + /// + /// Desc:是否出库 + /// Default: + /// Nullable:False + /// + public int is_out {get;set;} + + /// + /// Desc:库位ID + /// Default: + /// Nullable:False + /// + public string location_id {get;set;} = string.Empty; + + /// + /// Desc:库位编号 + /// Default: + /// Nullable:False + /// + public string location_code {get;set;} = string.Empty; + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:True + /// + public DateTime? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryD.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryD.cs new file mode 100644 index 00000000..c8dc26f2 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryD.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///载具台账明细表 + /// + [SugarTable("wms_carry_d")] + public partial class WmsCarryD + { + public WmsCarryD(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:上级载具ID + /// Default: + /// Nullable:False + /// + public string carry_id {get;set;} = string.Empty; + + /// + /// Desc:子载具ID + /// Default: + /// Nullable:False + /// + public string membercarry_id {get;set;} = string.Empty; + + /// + /// Desc:子载具编号 + /// Default: + /// Nullable:False + /// + public string membercarry_code {get;set;} = string.Empty; + + /// + /// Desc:位置 + /// Default: + /// Nullable:False + /// + public string loc {get;set;} = string.Empty; + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryH.cs new file mode 100644 index 00000000..00f5dd8b --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryH.cs @@ -0,0 +1,168 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///载具台账主表 + /// + [SugarTable("wms_carry_h")] + public partial class WmsCarryH + { + public WmsCarryH(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default: + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:载具编号 + /// Default: + /// Nullable:False + /// + public string carry_code {get;set;} = string.Empty; + + /// + /// Desc:载具名称 + /// Default: + /// Nullable:False + /// + public string carry_name {get;set;} = string.Empty; + + /// + /// Desc:状态 + /// Default: + /// Nullable:False + /// + public int status {get;set;} + + /// + /// Desc:载具状态 + /// Default: + /// Nullable:False + /// + public string carry_status {get;set;} = string.Empty; + + /// + /// Desc:载具分类ID + /// Default: + /// Nullable:False + /// + public string carrystd_id {get;set;} = string.Empty; + + /// + /// Desc:载具库位ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? location_id {get;set;} + + /// + /// Desc:载具库位编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? location_code {get;set;} + + /// + /// Desc:是否锁定 + /// Default: + /// Nullable:False + /// + public int is_lock {get;set;} + + /// + /// Desc:出库类型 + /// Default: + /// Nullable:False + /// + public string out_status {get;set;} = string.Empty; + + /// + /// Desc:是否检验 + /// Default: + /// Nullable:False + /// + public int is_check {get;set;} + + /// + /// Desc:来源单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_id {get;set;} + + /// + /// Desc:来源单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_code {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryMat.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryMat.cs new file mode 100644 index 00000000..240a1706 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryMat.cs @@ -0,0 +1,154 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///载具台账物料明细表 + /// + [SugarTable("wms_carry_mat")] + public partial class WmsCarryMat + { + public WmsCarryMat(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:上级载具ID + /// Default: + /// Nullable:False + /// + public string carry_id {get;set;} = string.Empty; + + /// + /// Desc:物料ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物料代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:物料数量 + /// Default: + /// Nullable:False + /// + public int qty {get;set;} + + /// + /// Desc:需要出库数量 + /// Default: + /// Nullable:False + /// + public int need_qty {get;set;} + + /// + /// Desc:实际已出库数量 + /// Default: + /// Nullable:False + /// + public int real_qty {get;set;} + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int no {get;set;} + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:False + /// + public DateTime time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryReplaceCode.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryReplaceCode.cs new file mode 100644 index 00000000..27658beb --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryReplaceCode.cs @@ -0,0 +1,147 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///载具更换条码明细表 + /// + [SugarTable("wms_carry_replace_code")] + public partial class WmsCarryReplaceCode + { + public WmsCarryReplaceCode(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:更换单ID + /// Default: + /// Nullable:False + /// + public string bill_id {get;set;} = string.Empty; + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:条码编号 + /// Default: + /// Nullable:False + /// + public string barcode {get;set;} = string.Empty; + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:条码数量 + /// Default: + /// Nullable:False + /// + public int codeqty {get;set;} + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:True + /// + public DateTime? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int no {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryReplaceH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryReplaceH.cs new file mode 100644 index 00000000..7ce2b9f6 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryReplaceH.cs @@ -0,0 +1,119 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///载具更换主表 + /// + [SugarTable("wms_carry_replace_h")] + public partial class WmsCarryReplaceH + { + public WmsCarryReplaceH(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default: + /// Nullable:False + /// + public string tenant_id {get;set;} = string.Empty; + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:单号 + /// Default: + /// Nullable:False + /// + public string bill_code {get;set;} = string.Empty; + + /// + /// Desc:载具ID + /// Default: + /// Nullable:False + /// + public string carry_id {get;set;} = string.Empty; + + /// + /// Desc:载具编号 + /// Default: + /// Nullable:False + /// + public string carry_code {get;set;} = string.Empty; + + /// + /// Desc:新载具ID + /// Default: + /// Nullable:False + /// + public string newcarry_id {get;set;} = string.Empty; + + /// + /// Desc:新载具编号 + /// Default: + /// Nullable:False + /// + public string newcarry_code {get;set;} = string.Empty; + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarrybindCode.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarrybindCode.cs new file mode 100644 index 00000000..c0041f1e --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarrybindCode.cs @@ -0,0 +1,161 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///载具绑定记录条码明细表 + /// + [SugarTable("wms_carrybind_code")] + public partial class WmsCarrybindCode + { + public WmsCarrybindCode(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:绑定记录ID + /// Default: + /// Nullable:False + /// + public string carrybind_id {get;set;} = string.Empty; + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:条码编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? barcode {get;set;} + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:条码数量 + /// Default: + /// Nullable:True + /// + public int? codeqty {get;set;} + + /// + /// Desc:行号 + /// Default: + /// Nullable:True + /// + public int? no {get;set;} + + /// + /// Desc:子载具ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? membercarry_id {get;set;} + + /// + /// Desc:子载具编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? membercarry_code {get;set;} + + /// + /// Desc:单位ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? unit_id {get;set;} + + /// + /// Desc:单位代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? unit_code {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:True + /// + public DateTime? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarrybindH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarrybindH.cs new file mode 100644 index 00000000..98130dad --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarrybindH.cs @@ -0,0 +1,182 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///载具绑定记录主表 + /// + [SugarTable("wms_carrybind_h")] + public partial class WmsCarrybindH + { + public WmsCarrybindH(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:载具编号 + /// Default: + /// Nullable:False + /// + public string carry_code {get;set;} = string.Empty; + + /// + /// Desc:载具名称 + /// Default: + /// Nullable:False + /// + public string carry_name {get;set;} = string.Empty; + + /// + /// Desc:dataType + /// Default: + /// Nullable:False + /// + public int biz_type {get;set;} + + /// + /// Desc:载具分类ID + /// Default: + /// Nullable:False + /// + public string carrystd_id {get;set;} = string.Empty; + + /// + /// Desc:载具库位ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? location_id {get;set;} + + /// + /// Desc:载具库位编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? location_code {get;set;} + + /// + /// Desc:子载具ID + /// Default: + /// Nullable:False + /// + public string membercarry_id {get;set;} = string.Empty; + + /// + /// Desc:子载具编号 + /// Default: + /// Nullable:False + /// + public string membercarry_code {get;set;} = string.Empty; + + /// + /// Desc:位置 + /// Default: + /// Nullable:False + /// + public int loc {get;set;} + + /// + /// Desc:来源单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_id {get;set;} + + /// + /// Desc:来源单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_code {get;set;} + + /// + /// Desc:需求单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? require_id {get;set;} + + /// + /// Desc:需求单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? require_code {get;set;} + + /// + /// Desc:设备ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? ept_id {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarrystd.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarrystd.cs new file mode 100644 index 00000000..1ecf88d6 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarrystd.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///载具规格 + /// + [SugarTable("wms_carrystd")] + public partial class WmsCarrystd + { + public WmsCarrystd(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:载具规格编号 + /// Default: + /// Nullable:False + /// + public string carrystd_code {get;set;} = string.Empty; + + /// + /// Desc:载具规格名称 + /// Default: + /// Nullable:False + /// + public string carrystd_name {get;set;} = string.Empty; + + /// + /// Desc:状态 + /// Default: + /// Nullable:False + /// + public int status {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarrystdandloc.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarrystdandloc.cs new file mode 100644 index 00000000..07b89290 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarrystdandloc.cs @@ -0,0 +1,98 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///载具库位设定 + /// + [SugarTable("wms_carrystdandloc")] + public partial class WmsCarrystdandloc + { + public WmsCarrystdandloc(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default: + /// Nullable:False + /// + public string tenant_id {get;set;} = string.Empty; + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:库位ID + /// Default: + /// Nullable:False + /// + public string location_id {get;set;} = string.Empty; + + /// + /// Desc:载具规格ID + /// Default: + /// Nullable:False + /// + public string carrystd_id {get;set;} = string.Empty; + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryunbindCode.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryunbindCode.cs new file mode 100644 index 00000000..561be091 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryunbindCode.cs @@ -0,0 +1,161 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///载具解绑记录条码明细表 + /// + [SugarTable("wms_carryunbind_code")] + public partial class WmsCarryunbindCode + { + public WmsCarryunbindCode(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:解绑记录ID + /// Default: + /// Nullable:False + /// + public string carryunbind_id {get;set;} = string.Empty; + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:条码编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? barcode {get;set;} + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:条码数量 + /// Default: + /// Nullable:True + /// + public int? codeqty {get;set;} + + /// + /// Desc:行号 + /// Default: + /// Nullable:True + /// + public int? no {get;set;} + + /// + /// Desc:子载具ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? membercarry_id {get;set;} + + /// + /// Desc:子载具编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? membercarry_code {get;set;} + + /// + /// Desc:单位ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? unit_id {get;set;} + + /// + /// Desc:单位代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? unit_code {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:False + /// + public DateTime time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryunbindH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryunbindH.cs new file mode 100644 index 00000000..01982b52 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCarryunbindH.cs @@ -0,0 +1,168 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///载具解绑记录主表 + /// + [SugarTable("wms_carryunbind_h")] + public partial class WmsCarryunbindH + { + public WmsCarryunbindH(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:载具编号 + /// Default: + /// Nullable:False + /// + public string carry_code {get;set;} = string.Empty; + + /// + /// Desc:载具名称 + /// Default: + /// Nullable:False + /// + public string carry_name {get;set;} = string.Empty; + + /// + /// Desc:dataType + /// Default: + /// Nullable:False + /// + public int biz_type {get;set;} + + /// + /// Desc:载具分类ID + /// Default: + /// Nullable:False + /// + public string carrystd_id {get;set;} = string.Empty; + + /// + /// Desc:子载具ID + /// Default: + /// Nullable:False + /// + public string membercarry_id {get;set;} = string.Empty; + + /// + /// Desc:子载具编号 + /// Default: + /// Nullable:False + /// + public string membercarry_code {get;set;} = string.Empty; + + /// + /// Desc:位置 + /// Default: + /// Nullable:False + /// + public int loc {get;set;} + + /// + /// Desc:来源单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_id {get;set;} + + /// + /// Desc:来源单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_code {get;set;} + + /// + /// Desc:需求单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? require_id {get;set;} + + /// + /// Desc:需求单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? require_code {get;set;} + + /// + /// Desc:设备ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? ept_id {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCollocationSchemeD.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCollocationSchemeD.cs new file mode 100644 index 00000000..781e23f3 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCollocationSchemeD.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///齐套搭配方案明细表 + /// + [SugarTable("wms_collocation_scheme_d")] + public partial class WmsCollocationSchemeD + { + public WmsCollocationSchemeD(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:搭配方案ID + /// Default: + /// Nullable:False + /// + public string bill_id {get;set;} = string.Empty; + + /// + /// Desc:物料ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物料代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:载具规格ID + /// Default: + /// Nullable:False + /// + public string carrystd_id {get;set;} = string.Empty; + + /// + /// Desc:数量(件数) + /// Default: + /// Nullable:False + /// + public decimal qty {get;set;} + + /// + /// Desc:箱数 + /// Default: + /// Nullable:False + /// + public int box {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int bill_line {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCollocationSchemeH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCollocationSchemeH.cs new file mode 100644 index 00000000..d6acf13a --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsCollocationSchemeH.cs @@ -0,0 +1,147 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///齐套搭配方案主表 + /// + [SugarTable("wms_collocation_scheme_h")] + public partial class WmsCollocationSchemeH + { + public WmsCollocationSchemeH(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default: + /// Nullable:False + /// + public string tenant_id {get;set;} = string.Empty; + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:搭配方案编号 + /// Default: + /// Nullable:False + /// + public string bill_code {get;set;} = string.Empty; + + /// + /// Desc:搭配方案名称 + /// Default: + /// Nullable:False + /// + public string bill_name {get;set;} = string.Empty; + + /// + /// Desc:顺序号 + /// Default: + /// Nullable:False + /// + public int order {get;set;} + + /// + /// Desc:状态 + /// Default: + /// Nullable:False + /// + public int status {get;set;} + + /// + /// Desc:产品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:配送次数 + /// Default: + /// Nullable:False + /// + public int count {get;set;} + + /// + /// Desc:最低库存 + /// Default: + /// Nullable:False + /// + public int minimum {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + /// + /// Desc:库位ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? location_id {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsDelivery.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsDelivery.cs new file mode 100644 index 00000000..8655d965 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsDelivery.cs @@ -0,0 +1,182 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///配送申请表 + /// + [SugarTable("wms_delivery")] + public partial class WmsDelivery + { + public WmsDelivery(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:起始库位ID + /// Default: + /// Nullable:False + /// + public string startlocation_id {get;set;} = string.Empty; + + /// + /// Desc:起始楼层 + /// Default: + /// Nullable:False + /// + public string start_floor {get;set;} = string.Empty; + + /// + /// Desc:目标库位ID + /// Default: + /// Nullable:False + /// + public string endlocation_id {get;set;} = string.Empty; + + /// + /// Desc:目标楼层 + /// Default: + /// Nullable:False + /// + public string end_floor {get;set;} = string.Empty; + + /// + /// Desc:单号 + /// Default: + /// Nullable:False + /// + public string bill_code {get;set;} = string.Empty; + + /// + /// Desc:单据状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:业务类型: + /// Default: + /// Nullable:False + /// + public string biz_type {get;set;} = string.Empty; + + /// + /// Desc:配送类型 + /// Default: + /// Nullable:False + /// + public string dis_type {get;set;} = string.Empty; + + /// + /// Desc:载具ID + /// Default: + /// Nullable:False + /// + public string carry_id {get;set;} = string.Empty; + + /// + /// Desc:载具编号 + /// Default: + /// Nullable:False + /// + public string carry_code {get;set;} = string.Empty; + + /// + /// Desc:来源单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_id {get;set;} + + /// + /// Desc:来源单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_code {get;set;} + + /// + /// Desc:需求单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? require_id {get;set;} + + /// + /// Desc:需求单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? require_code {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsDistaskCode.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsDistaskCode.cs new file mode 100644 index 00000000..68787f4a --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsDistaskCode.cs @@ -0,0 +1,161 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///任务执行条码明细表 + /// + [SugarTable("wms_distask_code")] + public partial class WmsDistaskCode + { + public WmsDistaskCode(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:任务单ID + /// Default: + /// Nullable:False + /// + public string bill_id {get;set;} = string.Empty; + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:条码编号 + /// Default: + /// Nullable:False + /// + public string barcode {get;set;} = string.Empty; + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:条码数量 + /// Default: + /// Nullable:False + /// + public int codeqty {get;set;} + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:False + /// + public DateTime time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int no {get;set;} + + /// + /// Desc:子载具ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? membercarry_id {get;set;} + + /// + /// Desc:子载具编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? membercarry_code {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsDistaskH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsDistaskH.cs new file mode 100644 index 00000000..8a0600b4 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsDistaskH.cs @@ -0,0 +1,280 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///任务执行主表 + /// + [SugarTable("wms_distask_h")] + public partial class WmsDistaskH + { + public WmsDistaskH(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:起始库位ID + /// Default: + /// Nullable:False + /// + public string startlocation_id {get;set;} = string.Empty; + + /// + /// Desc:起始楼层 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? start_floor {get;set;} + + /// + /// Desc:目标库位ID + /// Default: + /// Nullable:False + /// + public string endlocation_id {get;set;} = string.Empty; + + /// + /// Desc:目标楼层 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? end_floor {get;set;} + + /// + /// Desc:单号 + /// Default: + /// Nullable:False + /// + public string bill_code {get;set;} = string.Empty; + + /// + /// Desc:单据状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:业务类型 + /// Default: + /// Nullable:False + /// + public string biz_type {get;set;} = string.Empty; + + /// + /// Desc:任务类型 + /// Default: + /// Nullable:False + /// + public string task_type {get;set;} = string.Empty; + + /// + /// Desc:载具ID + /// Default: + /// Nullable:False + /// + public string carry_id {get;set;} = string.Empty; + + /// + /// Desc:载具编号 + /// Default: + /// Nullable:False + /// + public string carry_code {get;set;} = string.Empty; + + /// + /// Desc:路径管理区ID + /// Default: + /// Nullable:False + /// + public string area_id {get;set;} = string.Empty; + + /// + /// Desc:路径管理区编号 + /// Default: + /// Nullable:False + /// + public string area_code {get;set;} = string.Empty; + + /// + /// Desc:设备ID + /// Default: + /// Nullable:False + /// + public string device_id {get;set;} = string.Empty; + + /// + /// Desc:预任务申请ID + /// Default: + /// Nullable:False + /// + public string pertask_id {get;set;} = string.Empty; + + /// + /// Desc:预任务申请单号 + /// Default: + /// Nullable:False + /// + public string pertask_code {get;set;} = string.Empty; + + /// + /// Desc:是否签收 + /// Default: + /// Nullable:False + /// + public int is_sign {get;set;} + + /// + /// Desc:来源单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_id {get;set;} + + /// + /// Desc:来源单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_code {get;set;} + + /// + /// Desc:需求单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? require_id {get;set;} + + /// + /// Desc:需求单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? require_code {get;set;} + + /// + /// Desc:任务组编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? groups {get;set;} + + /// + /// Desc:是否任务链 + /// Default: + /// Nullable:False + /// + public int is_chain {get;set;} + + /// + /// Desc:属性 + /// Default: + /// Nullable:False + /// + public string chain_type {get;set;} = string.Empty; + + /// + /// Desc:预计开始时间 + /// Default: + /// Nullable:True + /// + public DateTime? plan_start_date {get;set;} + + /// + /// Desc:预计结束时间 + /// Default: + /// Nullable:True + /// + public DateTime? plan_end_date {get;set;} + + /// + /// Desc:实际开始时间 + /// Default: + /// Nullable:True + /// + public DateTime? act_start_date {get;set;} + + /// + /// Desc:实际结束时间 + /// Default: + /// Nullable:True + /// + public DateTime? act_end_date {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:协议内容 + /// Default: + /// Nullable:False + /// + public string agreement {get;set;} = string.Empty; + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsEmptyInstock.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsEmptyInstock.cs new file mode 100644 index 00000000..e43fc287 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsEmptyInstock.cs @@ -0,0 +1,133 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///空载具入库 + /// + [SugarTable("wms_empty_instock")] + public partial class WmsEmptyInstock + { + public WmsEmptyInstock(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:库位ID + /// Default: + /// Nullable:False + /// + public string location_id {get;set;} = string.Empty; + + /// + /// Desc:单号 + /// Default: + /// Nullable:False + /// + public string bill_code {get;set;} = string.Empty; + + /// + /// Desc:单据状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:业务类型: + /// Default: + /// Nullable:False + /// + public string biz_type {get;set;} = string.Empty; + + /// + /// Desc:载具ID + /// Default: + /// Nullable:False + /// + public string carry_id {get;set;} = string.Empty; + + /// + /// Desc:载具编号 + /// Default: + /// Nullable:False + /// + public string carry_code {get;set;} = string.Empty; + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + /// + /// Desc:入库仓库 + /// Default: + /// Nullable:False + /// + public string warehouse_id {get;set;} = string.Empty; + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsEmptyOutstockD.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsEmptyOutstockD.cs new file mode 100644 index 00000000..8526457e --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsEmptyOutstockD.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///空载具出库子表 + /// + [SugarTable("wms_empty_outstock_d")] + public partial class WmsEmptyOutstockD + { + public WmsEmptyOutstockD(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:行号 + /// Default: + /// Nullable:True + /// + public int? no {get;set;} + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:库位ID + /// Default: + /// Nullable:False + /// + public string location_id {get;set;} = string.Empty; + + /// + /// Desc:空载具出库ID + /// Default: + /// Nullable:False + /// + public string bill_id {get;set;} = string.Empty; + + /// + /// Desc:单据状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:业务类型: + /// Default: + /// Nullable:False + /// + public string biz_type {get;set;} = string.Empty; + + /// + /// Desc:载具ID + /// Default: + /// Nullable:False + /// + public string carry_id {get;set;} = string.Empty; + + /// + /// Desc:载具编号 + /// Default: + /// Nullable:False + /// + public string carry_code {get;set;} = string.Empty; + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsEmptyOutstockH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsEmptyOutstockH.cs new file mode 100644 index 00000000..fab8d77d --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsEmptyOutstockH.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///空载具出库主表 + /// + [SugarTable("wms_empty_outstock_h")] + public partial class WmsEmptyOutstockH + { + public WmsEmptyOutstockH(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:单号 + /// Default: + /// Nullable:False + /// + public string bill_code {get;set;} = string.Empty; + + /// + /// Desc:单据状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:业务类型: + /// Default: + /// Nullable:False + /// + public string biz_type {get;set;} = string.Empty; + + /// + /// Desc:库位ID + /// Default: + /// Nullable:False + /// + public string location_id {get;set;} = string.Empty; + + /// + /// Desc:载具规格 + /// Default: + /// Nullable:False + /// + public string carrystd_id {get;set;} = string.Empty; + + /// + /// Desc:数量 + /// Default: + /// Nullable:False + /// + public int qty {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsFeedbox.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsFeedbox.cs new file mode 100644 index 00000000..29daeb6c --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsFeedbox.cs @@ -0,0 +1,133 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///投料箱 + /// + [SugarTable("wms_feedbox")] + public partial class WmsFeedbox + { + public WmsFeedbox(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:投料箱编号 + /// Default: + /// Nullable:False + /// + public string feedbox_code {get;set;} = string.Empty; + + /// + /// Desc:投料箱名称 + /// Default: + /// Nullable:False + /// + public string feedbox_name {get;set;} = string.Empty; + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:理论数量 + /// Default: + /// Nullable:False + /// + public int qty {get;set;} + + /// + /// Desc:当前批次 + /// Default: + /// Nullable:False + /// + public string batch {get;set;} = string.Empty; + + /// + /// Desc:状态 + /// Default: + /// Nullable:False + /// + public int status {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsFeedingrecordCode.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsFeedingrecordCode.cs new file mode 100644 index 00000000..cb4111e3 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsFeedingrecordCode.cs @@ -0,0 +1,147 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///投料记录条码明细表 + /// + [SugarTable("wms_feedingrecord_code")] + public partial class WmsFeedingrecordCode + { + public WmsFeedingrecordCode(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:投料记录ID + /// Default: + /// Nullable:False + /// + public string record_id {get;set;} = string.Empty; + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:条码编号 + /// Default: + /// Nullable:False + /// + public string barcode {get;set;} = string.Empty; + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:条码数量 + /// Default: + /// Nullable:False + /// + public int codeqty {get;set;} + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:False + /// + public DateTime time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int no {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsFeedingrecordH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsFeedingrecordH.cs new file mode 100644 index 00000000..13851147 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsFeedingrecordH.cs @@ -0,0 +1,161 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///投料记录主表 + /// + [SugarTable("wms_feedingrecord_h")] + public partial class WmsFeedingrecordH + { + public WmsFeedingrecordH(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:投料记录单号 + /// Default: + /// Nullable:False + /// + public string record_code {get;set;} = string.Empty; + + /// + /// Desc:投料箱编号 + /// Default: + /// Nullable:False + /// + public string feedbox_code {get;set;} = string.Empty; + + /// + /// Desc:投料箱名称 + /// Default: + /// Nullable:False + /// + public string feedbox_name {get;set;} = string.Empty; + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:载具ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? carry_id {get;set;} + + /// + /// Desc:载具编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? carry_code {get;set;} + + /// + /// Desc:来源单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_id {get;set;} + + /// + /// Desc:来源单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_code {get;set;} + + /// + /// Desc:需求单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? require_id {get;set;} + + /// + /// Desc:需求单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? require_code {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsHandleCode.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsHandleCode.cs new file mode 100644 index 00000000..5c959a19 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsHandleCode.cs @@ -0,0 +1,147 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///出入口操作条码明细表 + /// + [SugarTable("wms_handle_code")] + public partial class WmsHandleCode + { + public WmsHandleCode(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:操作单ID + /// Default: + /// Nullable:False + /// + public string bill_id {get;set;} = string.Empty; + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:条码编号 + /// Default: + /// Nullable:False + /// + public string barcode {get;set;} = string.Empty; + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:条码数量 + /// Default: + /// Nullable:False + /// + public int codeqty {get;set;} + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:False + /// + public DateTime time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int no {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsHandleH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsHandleH.cs new file mode 100644 index 00000000..59e73db2 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsHandleH.cs @@ -0,0 +1,154 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///出入口操作主表 + /// + [SugarTable("wms_handle_h")] + public partial class WmsHandleH + { + public WmsHandleH(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default: + /// Nullable:False + /// + public string tenant_id {get;set;} = string.Empty; + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:起始库位ID + /// Default: + /// Nullable:False + /// + public string startlocation_id {get;set;} = string.Empty; + + /// + /// Desc:目标库位ID + /// Default: + /// Nullable:False + /// + public string endlocation_id {get;set;} = string.Empty; + + /// + /// Desc:单号 + /// Default: + /// Nullable:False + /// + public string bill_code {get;set;} = string.Empty; + + /// + /// Desc:业务类型: + /// Default: + /// Nullable:False + /// + public string biz_type {get;set;} = string.Empty; + + /// + /// Desc:载具ID + /// Default: + /// Nullable:False + /// + public string carry_id {get;set;} = string.Empty; + + /// + /// Desc:载具编号 + /// Default: + /// Nullable:False + /// + public string carry_code {get;set;} = string.Empty; + + /// + /// Desc:来源单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_id {get;set;} + + /// + /// Desc:来源单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_code {get;set;} + + /// + /// Desc:需求单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? require_id {get;set;} + + /// + /// Desc:需求单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? require_code {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsInstockCode.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsInstockCode.cs new file mode 100644 index 00000000..30956947 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsInstockCode.cs @@ -0,0 +1,217 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///入库申请条码表 + /// + [SugarTable("wms_instock_code")] + public partial class WmsInstockCode + { + public WmsInstockCode(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:入库单ID + /// Default: + /// Nullable:False + /// + public string bill_id {get;set;} = string.Empty; + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int bill_line {get;set;} + + /// + /// Desc:入库单明细ID + /// Default: + /// Nullable:False + /// + public string bill_d_id {get;set;} = string.Empty; + + /// + /// Desc:入库单明细行号 + /// Default: + /// Nullable:False + /// + public int bill_d_line {get;set;} + + /// + /// Desc:明细状态 + /// Default: + /// Nullable:False + /// + public int line_status {get;set;} + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:条码编号 + /// Default: + /// Nullable:False + /// + public string barcode {get;set;} = string.Empty; + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:条码数量 + /// Default: + /// Nullable:False + /// + public int barcode_qty {get;set;} + + /// + /// Desc:是否锁定 + /// Default: + /// Nullable:False + /// + public int is_lock {get;set;} + + /// + /// Desc:是否结束 + /// Default: + /// Nullable:False + /// + public int is_end {get;set;} + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:来源单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_id {get;set;} + + /// + /// Desc:来源单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_code {get;set;} + + /// + /// Desc:源单单据类型 + /// Default: + /// Nullable:True + /// + public int? source_type {get;set;} + + /// + /// Desc:来源单据行号 + /// Default: + /// Nullable:True + /// + public int? source_line {get;set;} + + /// + /// Desc:来源单据明细ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_detail_id {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:True + /// + public DateTime? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsInstockD.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsInstockD.cs new file mode 100644 index 00000000..632ddcf3 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsInstockD.cs @@ -0,0 +1,266 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///入库申请明细表 + /// + [SugarTable("wms_instock_d")] + public partial class WmsInstockD + { + public WmsInstockD(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:入库单ID + /// Default: + /// Nullable:False + /// + public string bill_id {get;set;} = string.Empty; + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int bill_line {get;set;} + + /// + /// Desc:执行状态 + /// Default: + /// Nullable:False + /// + public int line_status {get;set;} + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:入库需求数量 + /// Default: + /// Nullable:False + /// + public int pr_qty {get;set;} + + /// + /// Desc:实际入库数量 + /// Default: + /// Nullable:False + /// + public int qty {get;set;} + + /// + /// Desc:原因 + /// Default: + /// Nullable:False + /// + public string reason {get;set;} = string.Empty; + + /// + /// Desc:入库仓库ID + /// Default: + /// Nullable:False + /// + public string warehouse_id {get;set;} = string.Empty; + + /// + /// Desc:不含税单价 + /// Default: + /// Nullable:True + /// + public decimal? price {get;set;} + + /// + /// Desc:含税单价 + /// Default: + /// Nullable:True + /// + public decimal? tax_price {get;set;} + + /// + /// Desc:不含税金额 + /// Default: + /// Nullable:True + /// + public decimal? amount {get;set;} + + /// + /// Desc:含税金额 + /// Default: + /// Nullable:True + /// + public decimal? all_amount {get;set;} + + /// + /// Desc:来源单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_id {get;set;} + + /// + /// Desc:来源单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_code {get;set;} + + /// + /// Desc:源单单据类型 + /// Default: + /// Nullable:True + /// + public int? source_type {get;set;} + + /// + /// Desc:来源单据行号 + /// Default: + /// Nullable:True + /// + public int? source_line {get;set;} + + /// + /// Desc:来源单据明细ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_detail_id {get;set;} + + /// + /// Desc:生产工单号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mo_code {get;set;} + + /// + /// Desc:生产工单行号 + /// Default: + /// Nullable:True + /// + public int? mo_line {get;set;} + + /// + /// Desc:生产工单BOM明细Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mo_bom_detail_id {get;set;} + + /// + /// Desc:已打印数量 + /// Default: + /// Nullable:False + /// + public int print_qty {get;set;} + + /// + /// Desc:扫描数量 + /// Default: + /// Nullable:False + /// + public int scan_qty {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:True + /// + public DateTime? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsInstockH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsInstockH.cs new file mode 100644 index 00000000..debbb4d9 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsInstockH.cs @@ -0,0 +1,196 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///入库申请主表 + /// + [SugarTable("wms_instock_h")] + public partial class WmsInstockH + { + public WmsInstockH(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default: + /// Nullable:False + /// + public string tenant_id {get;set;} = string.Empty; + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:入库单号 + /// Default: + /// Nullable:False + /// + public string bill_code {get;set;} = string.Empty; + + /// + /// Desc:入库单创建日期 + /// Default: + /// Nullable:False + /// + public DateTime bill_date {get;set;} + + /// + /// Desc:单据类型: + /// Default: + /// Nullable:False + /// + public string bill_type {get;set;} = string.Empty; + + /// + /// Desc:单据状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:业务类型: + /// Default: + /// Nullable:False + /// + public string biz_type {get;set;} = string.Empty; + + /// + /// Desc:入库仓库ID + /// Default: + /// Nullable:False + /// + public string warehouse_id {get;set;} = string.Empty; + + /// + /// Desc:供应商ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? supplier_id {get;set;} + + /// + /// Desc:供应商代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? supplier_code {get;set;} + + /// + /// Desc:供应商名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? supplier_name {get;set;} + + /// + /// Desc:生成类型 + /// Default: + /// Nullable:False + /// + public string generate_type {get;set;} = string.Empty; + + /// + /// Desc:同步状态 + /// Default: + /// Nullable:False + /// + public string sync_status {get;set;} = string.Empty; + + /// + /// Desc:打印状态 + /// Default: + /// Nullable:False + /// + public string print_status {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:False + /// + public DateTime time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:载具ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? carry_id {get;set;} + + /// + /// Desc:载具编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? carry_code {get;set;} + + /// + /// Desc:库位ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? location_id {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsKittingInstock.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsKittingInstock.cs new file mode 100644 index 00000000..fe01cdc1 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsKittingInstock.cs @@ -0,0 +1,203 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///齐套入库主表 + /// + [SugarTable("wms_kitting_instock")] + public partial class WmsKittingInstock + { + public WmsKittingInstock(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default: + /// Nullable:False + /// + public string tenant_id {get;set;} = string.Empty; + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:库位ID + /// Default: + /// Nullable:False + /// + public string location_id {get;set;} = string.Empty; + + /// + /// Desc:单号 + /// Default: + /// Nullable:False + /// + public string bill_code {get;set;} = string.Empty; + + /// + /// Desc:单据状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:业务类型: + /// Default: + /// Nullable:False + /// + public string biz_type {get;set;} = string.Empty; + + /// + /// Desc:载具ID + /// Default: + /// Nullable:False + /// + public string carry_id {get;set;} = string.Empty; + + /// + /// Desc:载具编号 + /// Default: + /// Nullable:False + /// + public string carry_code {get;set;} = string.Empty; + + /// + /// Desc:齐套搭配方案ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? collocation_scheme_id {get;set;} + + /// + /// Desc:齐套搭配方案编号 + /// Default: + /// Nullable:False + /// + public string collocation_scheme_code {get;set;} = string.Empty; + + /// + /// Desc:来源单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_id {get;set;} + + /// + /// Desc:来源单单据类型 + /// Default: + /// Nullable:True + /// + public int? source_type {get;set;} + + /// + /// Desc:来源单据行号 + /// Default: + /// Nullable:True + /// + public int? source_line {get;set;} + + /// + /// Desc:来源单据明细ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_detail_id {get;set;} + + /// + /// Desc:生产工单号 + /// Default: + /// Nullable:True + /// + public string? mo_code {get;set;} + + /// + /// Desc:生产工单BOM明细Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mo_bom_detail_id {get;set;} + + /// + /// Desc:生产工单行号 + /// Default: + /// Nullable:True + /// + public int? mo_line {get;set;} + + /// + /// Desc:顺序号 + /// Default: + /// Nullable:False + /// + public int order {get;set;} + + /// + /// Desc:入库仓库ID + /// Default: + /// Nullable:False + /// + public string warehouse_id {get;set;} = string.Empty; + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsKittingInstockCode.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsKittingInstockCode.cs new file mode 100644 index 00000000..59d3f4e8 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsKittingInstockCode.cs @@ -0,0 +1,161 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///齐套入库条码表 + /// + [SugarTable("wms_kitting_instock_code")] + public partial class WmsKittingInstockCode + { + public WmsKittingInstockCode(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:入库单ID + /// Default: + /// Nullable:False + /// + public string bill_id {get;set;} = string.Empty; + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:条码编号 + /// Default: + /// Nullable:False + /// + public string barcode {get;set;} = string.Empty; + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:条码数量 + /// Default: + /// Nullable:False + /// + public int codeqty {get;set;} + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:True + /// + public DateTime? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int bill_line {get;set;} + + /// + /// Desc:子载具ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? membercarry_id {get;set;} + + /// + /// Desc:子载具编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? membercarry_code {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsKittingoutCode.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsKittingoutCode.cs new file mode 100644 index 00000000..58005b60 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsKittingoutCode.cs @@ -0,0 +1,175 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///齐套出库条码表 + /// + [SugarTable("wms_kittingout_code")] + public partial class WmsKittingoutCode + { + public WmsKittingoutCode(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:出库单ID + /// Default: + /// Nullable:False + /// + public string bill_id {get;set;} = string.Empty; + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int bill_line {get;set;} + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:条码编号 + /// Default: + /// Nullable:False + /// + public string barcode {get;set;} = string.Empty; + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:条码数量 + /// Default: + /// Nullable:False + /// + public int barcode_qty {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:True + /// + public DateTime? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:子载具ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? membercarry_id {get;set;} + + /// + /// Desc:子载具编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? membercarry_code {get;set;} + + /// + /// Desc:出库单明细ID + /// Default: + /// Nullable:False + /// + public string bill_d_id {get;set;} = string.Empty; + + /// + /// Desc:出库单明细行号 + /// Default: + /// Nullable:False + /// + public int bill_d_line {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsKittingoutD.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsKittingoutD.cs new file mode 100644 index 00000000..e445dee2 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsKittingoutD.cs @@ -0,0 +1,168 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///齐套出库明细表 + /// + [SugarTable("wms_kittingout_d")] + public partial class WmsKittingoutD + { + public WmsKittingoutD(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:出库单ID + /// Default: + /// Nullable:False + /// + public string bill_id {get;set;} = string.Empty; + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int bill_line {get;set;} + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:数量(件数) + /// Default: + /// Nullable:False + /// + public decimal qty {get;set;} + + /// + /// Desc:箱数 + /// Default: + /// Nullable:False + /// + public int box {get;set;} + + /// + /// Desc:实际数量(件数) + /// Default: + /// Nullable:False + /// + public decimal real_qty {get;set;} + + /// + /// Desc:实际箱数 + /// Default: + /// Nullable:False + /// + public int real_box {get;set;} + + /// + /// Desc:发料仓库 + /// Default: + /// Nullable:False + /// + public string warehouse_id {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsKittingoutH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsKittingoutH.cs new file mode 100644 index 00000000..5737a3c7 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsKittingoutH.cs @@ -0,0 +1,238 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///齐套出库主表 + /// + [SugarTable("wms_kittingout_h")] + public partial class WmsKittingoutH + { + public WmsKittingoutH(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default: + /// Nullable:False + /// + public string tenant_id {get;set;} = string.Empty; + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:齐套出库单号 + /// Default: + /// Nullable:False + /// + public string bill_code {get;set;} = string.Empty; + + /// + /// Desc:出库单创建日期 + /// Default: + /// Nullable:False + /// + public DateTime bill_date {get;set;} + + /// + /// Desc:单据类型 + /// Default: + /// Nullable:False + /// + public string bill_type {get;set;} = string.Empty; + + /// + /// Desc:单据状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:业务类型 + /// Default: + /// Nullable:False + /// + public string biz_type {get;set;} = string.Empty; + + /// + /// Desc:发料仓库ID + /// Default: + /// Nullable:False + /// + public string warehouse_id {get;set;} = string.Empty; + + /// + /// Desc:库位ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? location_id {get;set;} + + /// + /// Desc:产品ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_id {get;set;} + + /// + /// Desc:产品编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_code {get;set;} + + /// + /// Desc:齐套搭配方案ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? collocation_scheme_id {get;set;} + + /// + /// Desc:齐套搭配方案编号 + /// Default: + /// Nullable:False + /// + public string collocation_scheme_code {get;set;} = string.Empty; + + /// + /// Desc:载具ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? carry_id {get;set;} + + /// + /// Desc:载具编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? carry_code {get;set;} + + /// + /// Desc:来源单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_id {get;set;} + + /// + /// Desc:来源单单据类型 + /// Default: + /// Nullable:True + /// + public int? source_type {get;set;} + + /// + /// Desc:来源单据行号 + /// Default: + /// Nullable:True + /// + public int? source_line {get;set;} + + /// + /// Desc:来源单据明细ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_detail_id {get;set;} + + /// + /// Desc:生产工单号 + /// Default: + /// Nullable:True + /// + public string? mo_code {get;set;} + + /// + /// Desc:生产工单BOM明细Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mo_bom_detail_id {get;set;} + + /// + /// Desc:生产工单行号 + /// Default: + /// Nullable:True + /// + public int? mo_line {get;set;} + + /// + /// Desc:顺序号 + /// Default: + /// Nullable:False + /// + public int order {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default: + /// Nullable:False + /// + public string modify_id {get;set;} = string.Empty; + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:False + /// + public DateTime modify_time {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsMoveInstock.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsMoveInstock.cs new file mode 100644 index 00000000..a35b1449 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsMoveInstock.cs @@ -0,0 +1,133 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///载具移入 + /// + [SugarTable("wms_move_instock")] + public partial class WmsMoveInstock + { + public WmsMoveInstock(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:库位ID + /// Default: + /// Nullable:False + /// + public string location_id {get;set;} = string.Empty; + + /// + /// Desc:单号 + /// Default: + /// Nullable:False + /// + public string bill_code {get;set;} = string.Empty; + + /// + /// Desc:单据状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:业务类型: + /// Default: + /// Nullable:False + /// + public string biz_type {get;set;} = string.Empty; + + /// + /// Desc:载具ID + /// Default: + /// Nullable:False + /// + public string carry_id {get;set;} = string.Empty; + + /// + /// Desc:载具编号 + /// Default: + /// Nullable:False + /// + public string carry_code {get;set;} = string.Empty; + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + /// + /// Desc:入库仓库 + /// Default: + /// Nullable:False + /// + public string warehouse_id {get;set;} = string.Empty; + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsMoveOutstock.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsMoveOutstock.cs new file mode 100644 index 00000000..fff84724 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsMoveOutstock.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///载具移出 + /// + [SugarTable("wms_move_outstock")] + public partial class WmsMoveOutstock + { + public WmsMoveOutstock(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default: + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:库位ID + /// Default: + /// Nullable:False + /// + public string location_id {get;set;} = string.Empty; + + /// + /// Desc:单号 + /// Default: + /// Nullable:False + /// + public string bale_code {get;set;} = string.Empty; + + /// + /// Desc:单据状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:业务类型: + /// Default: + /// Nullable:False + /// + public string biz_type {get;set;} = string.Empty; + + /// + /// Desc:载具ID + /// Default: + /// Nullable:False + /// + public string carry_id {get;set;} = string.Empty; + + /// + /// Desc:载具编号 + /// Default: + /// Nullable:False + /// + public string carry_code {get;set;} = string.Empty; + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsOutstockCode.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsOutstockCode.cs new file mode 100644 index 00000000..4486723c --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsOutstockCode.cs @@ -0,0 +1,161 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///出库申请条码表 + /// + [SugarTable("wms_outstock_code")] + public partial class WmsOutstockCode + { + public WmsOutstockCode(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:出库单ID + /// Default: + /// Nullable:False + /// + public string bill_id {get;set;} = string.Empty; + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int bill_line {get;set;} + + /// + /// Desc:出库单明细ID + /// Default: + /// Nullable:False + /// + public string bill_d_id {get;set;} = string.Empty; + + /// + /// Desc:出库单明细行号 + /// Default: + /// Nullable:False + /// + public int bill_d_line {get;set;} + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:条码编号 + /// Default: + /// Nullable:False + /// + public string barcode {get;set;} = string.Empty; + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:条码数量 + /// Default: + /// Nullable:False + /// + public int barcode_qty {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:True + /// + public DateTime? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsOutstockD.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsOutstockD.cs new file mode 100644 index 00000000..83ec6756 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsOutstockD.cs @@ -0,0 +1,280 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///出库申请明细表 + /// + [SugarTable("wms_outstock_d")] + public partial class WmsOutstockD + { + public WmsOutstockD(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:出库单ID + /// Default: + /// Nullable:False + /// + public string bill_id {get;set;} = string.Empty; + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int bill_line {get;set;} + + /// + /// Desc:明细状态 + /// Default: + /// Nullable:False + /// + public int line_status {get;set;} + + /// + /// Desc:库位ID + /// Default: + /// Nullable:False + /// + public string location_id {get;set;} = string.Empty; + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:出库需求数量 + /// Default: + /// Nullable:False + /// + public decimal pr_qty {get;set;} + + /// + /// Desc:实际出库数量 + /// Default: + /// Nullable:False + /// + public decimal qty {get;set;} + + /// + /// Desc:要求出库日期(销售出库为交期) + /// Default: + /// Nullable:False + /// + public DateTime delivery_date {get;set;} + + /// + /// Desc:发料仓库 + /// Default: + /// Nullable:False + /// + public string warehouse_id {get;set;} = string.Empty; + + /// + /// Desc:不含税单价 + /// Default: + /// Nullable:True + /// + public decimal? price {get;set;} + + /// + /// Desc:含税单价 + /// Default: + /// Nullable:True + /// + public decimal? tax_price {get;set;} + + /// + /// Desc:不含税金额 + /// Default: + /// Nullable:True + /// + public decimal? amount {get;set;} + + /// + /// Desc:含税金额 + /// Default: + /// Nullable:True + /// + public decimal? all_amount {get;set;} + + /// + /// Desc:来源单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_id {get;set;} + + /// + /// Desc:来源单单据类型 + /// Default: + /// Nullable:True + /// + public int? source_type {get;set;} + + /// + /// Desc:来源单据行号 + /// Default: + /// Nullable:True + /// + public int? source_line {get;set;} + + /// + /// Desc:来源单据明细ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_detail_id {get;set;} + + /// + /// Desc:生产工单号 + /// Default: + /// Nullable:True + /// + public string? mo_code {get;set;} + + /// + /// Desc:生产工单BOM明细Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mo_bom_detail_id {get;set;} + + /// + /// Desc:生产工单行号 + /// Default: + /// Nullable:True + /// + public int? mo_line {get;set;} + + /// + /// Desc:打印数量 + /// Default: + /// Nullable:False + /// + public decimal print_qty {get;set;} + + /// + /// Desc:扫描数量 + /// Default: + /// Nullable:False + /// + public decimal scan_qty {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:载具ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? carry_id {get;set;} + + /// + /// Desc:载具编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? carry_code {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsOutstockH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsOutstockH.cs new file mode 100644 index 00000000..bc4156f2 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsOutstockH.cs @@ -0,0 +1,217 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///出库申请主表 + /// + [SugarTable("wms_outstock_h")] + public partial class WmsOutstockH + { + public WmsOutstockH(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default: + /// Nullable:False + /// + public string tenant_id {get;set;} = string.Empty; + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:出库单号 + /// Default: + /// Nullable:False + /// + public string bill_code {get;set;} = string.Empty; + + /// + /// Desc:出库单创建日期 + /// Default: + /// Nullable:False + /// + public DateTime bill_date {get;set;} + + /// + /// Desc:单据类型 + /// Default: + /// Nullable:False + /// + public string bill_type {get;set;} = string.Empty; + + /// + /// Desc:单据状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:业务类型 + /// Default: + /// Nullable:False + /// + public string biz_type {get;set;} = string.Empty; + + /// + /// Desc:发料仓库ID + /// Default: + /// Nullable:False + /// + public string warehouse_id {get;set;} = string.Empty; + + /// + /// Desc:库位ID + /// Default: + /// Nullable:False + /// + public string location_id {get;set;} = string.Empty; + + /// + /// Desc:生成类型 + /// Default: + /// Nullable:False + /// + public string generate_type {get;set;} = string.Empty; + + /// + /// Desc:同步状态 + /// Default: + /// Nullable:False + /// + public string sync_status {get;set;} = string.Empty; + + /// + /// Desc:出库部门ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? dept_id {get;set;} + + /// + /// Desc:出库原因 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? reason {get;set;} + + /// + /// Desc:供应商ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? supplier_id {get;set;} + + /// + /// Desc:供应商代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? supplier_code {get;set;} + + /// + /// Desc:供应商名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? supplier_name {get;set;} + + /// + /// Desc:客户id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? customer_id {get;set;} + + /// + /// Desc:客户编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? customer_code {get;set;} + + /// + /// Desc:客户名称 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? customer_name {get;set;} + + /// + /// Desc:使用部门ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? use_dept_id {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default: + /// Nullable:False + /// + public string modify_id {get;set;} = string.Empty; + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:False + /// + public DateTime modify_time {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsPointD.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsPointD.cs new file mode 100644 index 00000000..b2ad5ccd --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsPointD.cs @@ -0,0 +1,105 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///点位管理明细表 + /// + [SugarTable("wms_point_d")] + public partial class WmsPointD + { + public WmsPointD(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:点位ID + /// Default: + /// Nullable:False + /// + public string point_id {get;set;} = string.Empty; + + /// + /// Desc:动作属性 + /// Default: + /// Nullable:False + /// + public string action_type {get;set;} = string.Empty; + + /// + /// Desc:动作时间 + /// Default: + /// Nullable:False + /// + public decimal action_time {get;set;} + + /// + /// Desc:目标点位ID + /// Default: + /// Nullable:False + /// + public string endpoint_id {get;set;} = string.Empty; + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsPointH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsPointH.cs new file mode 100644 index 00000000..a377a366 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsPointH.cs @@ -0,0 +1,161 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///点位管理主表 + /// + [SugarTable("wms_point_h")] + public partial class WmsPointH + { + public WmsPointH(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:点位代码 + /// Default: + /// Nullable:False + /// + public string point_code {get;set;} = string.Empty; + + /// + /// Desc:点位名称 + /// Default: + /// Nullable:False + /// + public string point_name {get;set;} = string.Empty; + + /// + /// Desc:库位ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? location_id {get;set;} + + /// + /// Desc:库位编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? location_code {get;set;} + + /// + /// Desc:路径管理区ID + /// Default: + /// Nullable:False + /// + public string area_id {get;set;} = string.Empty; + + /// + /// Desc:路径管理区编号 + /// Default: + /// Nullable:False + /// + public string area_code {get;set;} = string.Empty; + + /// + /// Desc:状态 + /// Default: + /// Nullable:False + /// + public int status {get;set;} + + /// + /// Desc:是否锁定 + /// Default: + /// Nullable:False + /// + public int is_lock {get;set;} + + /// + /// Desc:点位位置X + /// Default: + /// Nullable:False + /// + public decimal point_x {get;set;} + + /// + /// Desc:点位位置Y + /// Default: + /// Nullable:False + /// + public decimal point_y {get;set;} + + /// + /// Desc:点位位置Z + /// Default: + /// Nullable:False + /// + public decimal point_z {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsPretaskCode.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsPretaskCode.cs new file mode 100644 index 00000000..2c2b9d7f --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsPretaskCode.cs @@ -0,0 +1,161 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///预任务申请条码明细表 + /// + [SugarTable("wms_pretask_code")] + public partial class WmsPretaskCode + { + public WmsPretaskCode(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:预任务单ID + /// Default: + /// Nullable:False + /// + public string bill_id {get;set;} = string.Empty; + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:条码编号 + /// Default: + /// Nullable:False + /// + public string barcode {get;set;} = string.Empty; + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:条码数量 + /// Default: + /// Nullable:False + /// + public int codeqty {get;set;} + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:False + /// + public DateTime time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int no {get;set;} + + /// + /// Desc:子载具ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? membercarry_id {get;set;} + + /// + /// Desc:子载具编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? membercarry_code {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsPretaskH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsPretaskH.cs new file mode 100644 index 00000000..6644a279 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsPretaskH.cs @@ -0,0 +1,196 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///预任务申请主表 + /// + [SugarTable("wms_pretask_h")] + public partial class WmsPretaskH + { + public WmsPretaskH(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:起始库位ID + /// Default: + /// Nullable:False + /// + public string startlocation_id {get;set;} = string.Empty; + + /// + /// Desc:起始楼层 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? start_floor {get;set;} + + /// + /// Desc:目标库位ID + /// Default: + /// Nullable:False + /// + public string endlocation_id {get;set;} = string.Empty; + + /// + /// Desc:目标楼层 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? end_floor {get;set;} + + /// + /// Desc:单号 + /// Default: + /// Nullable:False + /// + public string bill_code {get;set;} = string.Empty; + + /// + /// Desc:单据状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:业务类型 + /// Default: + /// Nullable:False + /// + public string biz_type {get;set;} = string.Empty; + + /// + /// Desc:任务类型 + /// Default: + /// Nullable:False + /// + public string task_type {get;set;} = string.Empty; + + /// + /// Desc:载具ID + /// Default: + /// Nullable:False + /// + public string carry_id {get;set;} = string.Empty; + + /// + /// Desc:载具编号 + /// Default: + /// Nullable:False + /// + public string carry_code {get;set;} = string.Empty; + + /// + /// Desc:路径管理区ID + /// Default: + /// Nullable:False + /// + public string area_id {get;set;} = string.Empty; + + /// + /// Desc:路径管理区编号 + /// Default: + /// Nullable:False + /// + public string area_code {get;set;} = string.Empty; + + /// + /// Desc:来源单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_id {get;set;} + + /// + /// Desc:来源单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_code {get;set;} + + /// + /// Desc:需求单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? require_id {get;set;} + + /// + /// Desc:需求单据代码 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? require_code {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsRoad.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsRoad.cs new file mode 100644 index 00000000..fc7620e0 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsRoad.cs @@ -0,0 +1,126 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///路段管理表 + /// + [SugarTable("wms_road")] + public partial class WmsRoad + { + public WmsRoad(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:起始点位ID + /// Default: + /// Nullable:False + /// + public string startpoint_id {get;set;} = string.Empty; + + /// + /// Desc:起始点位编号 + /// Default: + /// Nullable:False + /// + public string startpoint_code {get;set;} = string.Empty; + + /// + /// Desc:终止点位ID + /// Default: + /// Nullable:False + /// + public string endpoint_id {get;set;} = string.Empty; + + /// + /// Desc:终止点位编号 + /// Default: + /// Nullable:False + /// + public string endpoint_code {get;set;} = string.Empty; + + /// + /// Desc:状态 + /// Default: + /// Nullable:False + /// + public int status {get;set;} + + /// + /// Desc:距离 + /// Default: + /// Nullable:False + /// + public int distance {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsSetsortingCode.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsSetsortingCode.cs new file mode 100644 index 00000000..a637023f --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsSetsortingCode.cs @@ -0,0 +1,161 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///齐套分拣条码表 + /// + [SugarTable("wms_setsorting_code")] + public partial class WmsSetsortingCode + { + public WmsSetsortingCode(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:出库单ID + /// Default: + /// Nullable:False + /// + public string bill_id {get;set;} = string.Empty; + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int bill_line {get;set;} + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:条码编号 + /// Default: + /// Nullable:False + /// + public string barcode {get;set;} = string.Empty; + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:条码数量 + /// Default: + /// Nullable:False + /// + public int barcode_qty {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:True + /// + public DateTime? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:出库单明细ID + /// Default: + /// Nullable:False + /// + public string bill_d_id {get;set;} = string.Empty; + + /// + /// Desc:出库单明细行号 + /// Default: + /// Nullable:False + /// + public int bill_d_line {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsSetsortingD.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsSetsortingD.cs new file mode 100644 index 00000000..9f128cb9 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsSetsortingD.cs @@ -0,0 +1,154 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///齐套分拣明细表 + /// + [SugarTable("wms_setsorting_d")] + public partial class WmsSetsortingD + { + public WmsSetsortingD(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:出库单ID + /// Default: + /// Nullable:False + /// + public string bill_id {get;set;} = string.Empty; + + /// + /// Desc:行号 + /// Default: + /// Nullable:False + /// + public int bill_line {get;set;} + + /// + /// Desc:物品ID + /// Default: + /// Nullable:False + /// + public string material_id {get;set;} = string.Empty; + + /// + /// Desc:物品代码 + /// Default: + /// Nullable:False + /// + public string material_code {get;set;} = string.Empty; + + /// + /// Desc:单位ID + /// Default: + /// Nullable:False + /// + public string unit_id {get;set;} = string.Empty; + + /// + /// Desc:单位代码 + /// Default: + /// Nullable:False + /// + public string unit_code {get;set;} = string.Empty; + + /// + /// Desc:批次 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? code_batch {get;set;} + + /// + /// Desc:出库需求数量 + /// Default: + /// Nullable:False + /// + public decimal pr_qty {get;set;} + + /// + /// Desc:实际出库数量 + /// Default: + /// Nullable:False + /// + public decimal qty {get;set;} + + /// + /// Desc:发料仓库 + /// Default: + /// Nullable:False + /// + public string warehouse_id {get;set;} = string.Empty; + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default: + /// Nullable:False + /// + public string time_stamp {get;set;} = string.Empty; + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsSetsortingH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsSetsortingH.cs new file mode 100644 index 00000000..390a80e3 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsSetsortingH.cs @@ -0,0 +1,231 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///齐套分拣主表 + /// + [SugarTable("wms_setsorting_h")] + public partial class WmsSetsortingH + { + public WmsSetsortingH(){ + + + } + /// + /// Desc:Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default: + /// Nullable:False + /// + public string tenant_id {get;set;} = string.Empty; + + /// + /// Desc:所属组织ID + /// Default: + /// Nullable:False + /// + public string org_id {get;set;} = string.Empty; + + /// + /// Desc:齐套分拣单号 + /// Default: + /// Nullable:False + /// + public string bill_code {get;set;} = string.Empty; + + /// + /// Desc:分拣单创建日期 + /// Default: + /// Nullable:False + /// + public DateTime bill_date {get;set;} + + /// + /// Desc:单据类型 + /// Default: + /// Nullable:False + /// + public string bill_type {get;set;} = string.Empty; + + /// + /// Desc:单据状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:业务类型 + /// Default: + /// Nullable:False + /// + public string biz_type {get;set;} = string.Empty; + + /// + /// Desc:发料仓库ID + /// Default: + /// Nullable:False + /// + public string warehouse_id {get;set;} = string.Empty; + + /// + /// Desc:库位ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? location_id {get;set;} + + /// + /// Desc:齐套出库ID + /// Default: + /// Nullable:False + /// + public string kittingout_id {get;set;} = string.Empty; + + /// + /// Desc:产品ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_id {get;set;} + + /// + /// Desc:产品编号 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? material_code {get;set;} + + /// + /// Desc:齐套搭配方案ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? collocation_scheme_id {get;set;} + + /// + /// Desc:齐套搭配方案编号 + /// Default: + /// Nullable:False + /// + public string collocation_scheme_code {get;set;} = string.Empty; + + /// + /// Desc:来源单据ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_id {get;set;} + + /// + /// Desc:来源单单据类型 + /// Default: + /// Nullable:True + /// + public int? source_type {get;set;} + + /// + /// Desc:来源单据行号 + /// Default: + /// Nullable:True + /// + public int? source_line {get;set;} + + /// + /// Desc:来源单据明细ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? source_detail_id {get;set;} + + /// + /// Desc:生产工单号 + /// Default: + /// Nullable:True + /// + public string? mo_code {get;set;} + + /// + /// Desc:生产工单BOM明细Id + /// Default:NULL::character varying + /// Nullable:True + /// + public string? mo_bom_detail_id {get;set;} + + /// + /// Desc:生产工单行号 + /// Default: + /// Nullable:True + /// + public int? mo_line {get;set;} + + /// + /// Desc:顺序号 + /// Default: + /// Nullable:False + /// + public int order {get;set;} + + /// + /// Desc:备注 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? remark {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳 + /// Default:NULL::character varying + /// Nullable:True + /// + public string? time_stamp {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:修改用户 + /// Default: + /// Nullable:False + /// + public string modify_id {get;set;} = string.Empty; + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:False + /// + public DateTime modify_time {get;set;} + + } +} diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsTransfer.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsTransfer.cs new file mode 100644 index 00000000..c262dcf5 --- /dev/null +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsTransfer.cs @@ -0,0 +1,140 @@ +using System; +using System.Linq; +using System.Text; +using JNPF.Common.Security; +using SqlSugar; + +namespace Tnb.WarehouseMgr.Entities +{ + /// + ///库内转移 + /// + [SugarTable("wms_transfer")] + public partial class WmsTransfer + { + public WmsTransfer(){ + + + } + /// + /// Desc:主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string id {get;set;} = SnowflakeIdHelper.NextId(); + + /// + /// Desc:租户ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? tenant_id {get;set;} + + /// + /// Desc:所属组织ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? org_id {get;set;} + + /// + /// Desc:起始库位ID + /// Default: + /// Nullable:False + /// + public string startlocation_id {get;set;} = string.Empty; + + /// + /// Desc:目标库位ID + /// Default: + /// Nullable:False + /// + public string endlocation_id {get;set;} = string.Empty; + + /// + /// Desc:单号 + /// Default: + /// Nullable:False + /// + public string bill_code {get;set;} = string.Empty; + + /// + /// Desc:单据状态 + /// Default: + /// Nullable:False + /// + public string status {get;set;} = string.Empty; + + /// + /// Desc:业务类型: + /// Default: + /// Nullable:False + /// + public string biz_type {get;set;} = string.Empty; + + /// + /// Desc:载具ID + /// Default: + /// Nullable:False + /// + public string carry_id {get;set;} = string.Empty; + + /// + /// Desc:载具编号 + /// Default: + /// Nullable:False + /// + public string carry_code {get;set;} = string.Empty; + + /// + /// Desc:所属仓库 + /// Default: + /// Nullable:False + /// + public string warehouse_id {get;set;} = string.Empty; + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + public string create_id {get;set;} = string.Empty; + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime create_time {get;set;} + + /// + /// Desc:最后修改人员ID + /// Default:NULL::character varying + /// Nullable:True + /// + public string? modify_id {get;set;} + + /// + /// Desc:最后修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? modify_time {get;set;} + + /// + /// Desc:扩展字段 + /// Default: + /// Nullable:True + /// + public string? extras {get;set;} + + /// + /// Desc:时间戳(用于并发控制) + /// Default: + /// Nullable:True + /// + public DateTime? timestamp {get;set;} + + } +} diff --git a/apihost/Tnb.API.Entry/Startup.cs b/apihost/Tnb.API.Entry/Startup.cs index 611eb99d..ff4902ac 100644 --- a/apihost/Tnb.API.Entry/Startup.cs +++ b/apihost/Tnb.API.Entry/Startup.cs @@ -107,6 +107,6 @@ public class Startup : AppStartup SnowflakeIdHelper.InitYitIdWorker(); - serviceProvider.GetRequiredService().StartTimerJob(); + //serviceProvider.GetRequiredService().StartTimerJob(); } } \ No newline at end of file diff --git a/system/Tnb.Systems/System/DataBaseService.cs b/system/Tnb.Systems/System/DataBaseService.cs index da72766c..bd1d1a4a 100644 --- a/system/Tnb.Systems/System/DataBaseService.cs +++ b/system/Tnb.Systems/System/DataBaseService.cs @@ -1,8 +1,11 @@ -using System.Collections; +using System.ArrayExtensions; +using System.Collections; +using System.ComponentModel.DataAnnotations.Schema; using System.Data; using System.Text; using System.Text.RegularExpressions; using JNPF.Common.Configuration; +using JNPF.Common.Contracts; using JNPF.Common.Core.Manager; using JNPF.Common.Core.Manager.Files; using JNPF.Common.Dtos.DataBase; @@ -22,6 +25,8 @@ using Mapster; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; +using NPOI.SS.Formula.Functions; +using Org.BouncyCastle.Asn1.Cms; using SqlSugar; namespace JNPF.Systems; @@ -351,8 +356,9 @@ public class DataBaseService : IDynamicApiController, ITransient } return await sugarClient!.Deleteable().AS(input.TableName).ExecuteCommandAsync(); } + /// - /// 生成代码 + /// 生成实体类代码 /// /// 数据库配置表主键 /// post输入参数 @@ -362,6 +368,10 @@ public class DataBaseService : IDynamicApiController, ITransient [HttpPost("{linkId}/gen-code")] public async Task GenerateCode(string linkId, DatabaseTableDataCleanInput input) { + if (input.TableName == "bas_customer") + { + return await GenerateAllEntity(linkId); + } if (input.TableName.IsNullOrWhiteSpace()) { throw new ArgumentNullException(nameof(input.TableName)); @@ -370,26 +380,15 @@ public class DataBaseService : IDynamicApiController, ITransient { throw new ArgumentException($"表【{input.TableName}】,表名之间必须包含_"); } - var dir = Path.Combine(FileVariable.GenerateCodePath, "DbModel"); - if (!Directory.Exists(dir)) - { - Directory.CreateDirectory(dir); - } - ISqlSugarClient sugarClient = null!; - if (linkId == "0") //默认时,使用当前默认数据库配置 - { - sugarClient = _repository.AsSugarClient(); - } - else + ISqlSugarClient sugarClient = _repository.AsSugarClient(); + if (linkId != "0") { var link = await _dbLinkService.GetInfo(linkId); sugarClient = _dataBaseManager.ChangeDataBase(link); } - - var entityName = string.Join("", input.TableName.Split('_').Select(a => a.ToPascalCase())); foreach (var item in sugarClient.DbMaintenance.GetTableInfoList().Where(t => t.Name == input.TableName)) { - //string entityName = CustomFormatName(item.Name);/*实体名首字母大写*/ + var entityName = string.Join("", input.TableName.Split('_').Select(a => a.ToPascalCase())); sugarClient.MappingTables.Add(entityName, item.Name); //foreach (var col in sugarClient.DbMaintenance.GetColumnInfosByTableName(item.Name)) //{ @@ -397,36 +396,11 @@ public class DataBaseService : IDynamicApiController, ITransient // sugarClient.MappingColumns.Add(col.DbColumnName /*类的属性首字母大写*/, col.DbColumnName, entityName); //} } + Dictionary nsMapper = GetNsMapper(); var prefix = input.TableName.Split('_')[0]; - Dictionary nsMapper = new() - { - {"bas", "Tnb.BasicData.Entities" }, - {"prd", "Tnb.ProductionMgr.Entities" }, - {"wms", "Tnb.WarehouseMgr.Entities" }, - {"eqp", "Tnb.EquipMgr.Entities" }, - {"tool", "Tnb.EquipMgr.Entities" }, - {"qc", "Tnb.QcMgr.Entities" }, - }; - sugarClient.DbFirst.Where(input.TableName) - .SettingConstructorTemplate(a => - { - return a; - }) - //.IsCreateDefaultValue(true) - .IsCreateAttribute() - .StringNullable() - .CreateClassFile(dir, nsMapper.ContainsKey(prefix) ? nsMapper[prefix] : "Tnb.Entities"); - - var previewContent = ""; - var codeFile = Path.Combine(dir, $"{entityName}.cs"); - if (File.Exists(codeFile)) - { - using (var sr = File.OpenText(codeFile)) - { - previewContent = await sr.ReadToEndAsync(); - } - } - return previewContent; + var nsName = nsMapper.ContainsKey(prefix) ? nsMapper[prefix] : "Tnb.Entities"; + var dict = GenerateEntityConfig(sugarClient.DbFirst.Where(input.TableName)).ToClassStringList(nsName); + return dict.Count > 0 ? dict.First().Value.Replace("\r\n", "\n") : string.Empty; } #endregion @@ -604,5 +578,96 @@ public class DataBaseService : IDynamicApiController, ITransient } } + /// + /// 生成所有表的实体类文件 + /// + /// + /// + private async Task GenerateAllEntity(string linkId) + { + ISqlSugarClient sugarClient = _repository.AsSugarClient(); + if (linkId != "0") + { + var link = await _dbLinkService.GetInfo(linkId); + sugarClient = _dataBaseManager.ChangeDataBase(link); + } + foreach (var item in sugarClient.DbMaintenance.GetTableInfoList()) + { + string entityName = string.Join("", item.Name.Split('_').Select(a => a.ToPascalCase())); + sugarClient.MappingTables.Add(entityName, item.Name); + } + Dictionary nsMapper = GetNsMapper(); + + List dirs = new List(); + foreach (string key in nsMapper.Keys) + { + var nsName = nsMapper[key]; + var dir = Path.Combine(FileVariable.GenerateCodePath, nsName); + dirs.Add(dir); + if (!Directory.Exists(dir)) + Directory.CreateDirectory(dir); + else + Directory.GetFiles(dir).ToList().ForEach(File.Delete); + GenerateEntityConfig(sugarClient.DbFirst.Where(t => t.StartsWith(key))).CreateClassFile(dir, nsName); ; + } + string content = string.Empty; + foreach (var dir in dirs) + { + var files = Directory.GetFiles(dir, "*.cs").ToList(); + files.ForEach(f => File.WriteAllText(f, File.ReadAllText(f).Replace("\r\n", "\n"))); + if (files.Count > 0 && string.IsNullOrEmpty(content)) + { + content = File.ReadAllText(files[0]); + } + } + return content; + } + + /// + /// 表前缀与命名空间的映射关系 + /// + /// + private Dictionary GetNsMapper() + { + Dictionary nsMapper = new() + { + {"bas_", "Tnb.BasicData.Entities" }, + {"prd_", "Tnb.ProductionMgr.Entities" }, + {"wms_", "Tnb.WarehouseMgr.Entities" }, + {"eqp_", "Tnb.EquipMgr.Entities" }, + {"tool_", "Tnb.EquipMgr.Entities" }, + {"qc_", "Tnb.QcMgr.Entities" }, + }; + return nsMapper; + } + + /// + /// 生成实体类配置 + /// + /// + /// + private IDbFirst GenerateEntityConfig(IDbFirst db) + { + db.IsCreateAttribute() + .StringNullable() + .SettingPropertyTemplate((col, tpl, type) => + { + string sugarColumnStr = ""; + List sugarAttrs = new List(); + if (col.IsPrimarykey) + sugarAttrs.Add("IsPrimaryKey=true"); + if (col.IsIdentity) + sugarAttrs.Add("IsIdentity=true"); + if (sugarAttrs.Count > 0) + sugarColumnStr = $"\r\n [SugarColumn({string.Join(", ", sugarAttrs)})]"; + var txt = tpl.Replace("{PropertyType}", type).Replace("{PropertyName}", col.DbColumnName).Replace("{SugarColumn}", sugarColumnStr); + if (col.DbColumnName == "id") txt = txt.TrimEnd('\n', '\r') + " = SnowflakeIdHelper.NextId();\r\n"; + else if (type == "string") txt = txt.TrimEnd('\n', '\r') + " = string.Empty;\r\n"; + return txt; + }) + .SettingNamespaceTemplate(tpl => tpl + "using JNPF.Common.Security;\r\n"); + return db; + } + #endregion } \ No newline at end of file