diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasDoc.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasDoc.cs deleted file mode 100644 index aa0753f7..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasDoc.cs +++ /dev/null @@ -1,102 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 文档数据表 -/// -[SugarTable("bas_doc")] -public partial class BasDoc : BaseEntity -{ - public BasDoc() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 文档编号 - /// - public string doc_code { get; set; } = string.Empty; - - /// - /// 文档名称 - /// - public string doc_name { get; set; } = string.Empty; - - /// - /// 文档后缀 - /// - public string? doc_extension { get; set; } - - /// - /// 文档唯一码 GUID 的文本 - /// - public string? doc_unique_code { get; set; } - - /// - /// 文档版本 - /// - public decimal doc_version { get; set; } - - /// - /// 文档目录代码 - /// - public string direcrory_code { get; set; } = string.Empty; - - /// - /// 文档类型代码 - /// - public string doc_type_code { get; set; } = string.Empty; - - /// - /// 对应产品,没有实际意义,初次设定 - /// - public string? item_code { get; set; } - - /// - /// 0-未审核,1-审核中,2-审核通过,3-未通过 - /// - public int? status { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发管理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasDocDirectory.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasDocDirectory.cs deleted file mode 100644 index 37d7633d..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasDocDirectory.cs +++ /dev/null @@ -1,77 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 文档目录 -/// -[SugarTable("bas_doc_directory")] -public partial class BasDocDirectory : BaseEntity -{ - public BasDocDirectory() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 父级目录ID - /// - public string? parent_id { get; set; } - - /// - /// 文档目录代码 - /// - public string directory_code { get; set; } = string.Empty; - - /// - /// 文档目录名称 - /// - public string directory_name { get; set; } = string.Empty; - - /// - /// 目录下文件是否需要审核 - /// - public string need_review { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasDocType.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasDocType.cs deleted file mode 100644 index 4984bfa0..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasDocType.cs +++ /dev/null @@ -1,67 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 文档类型 -/// -[SugarTable("bas_doc_type")] -public partial class BasDocType : BaseEntity -{ - public BasDocType() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 文档类型代码 - /// - public string doc_type_code { get; set; } = string.Empty; - - /// - /// 文档类型名称 - /// - public string doc_type_name { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasFactory.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasFactory.cs deleted file mode 100644 index 90f06c1f..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasFactory.cs +++ /dev/null @@ -1,67 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 工厂资料 -/// -[SugarTable("bas_factory")] -public partial class BasFactory : BaseEntity -{ - public BasFactory() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 工厂代码 - /// - public string factory_code { get; set; } = string.Empty; - - /// - /// 工厂名称 - /// - public string factory_name { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasLabelParameter.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasLabelParameter.cs deleted file mode 100644 index 488688ff..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasLabelParameter.cs +++ /dev/null @@ -1,67 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 标签参数维护 -/// -[SugarTable("bas_label_parameter")] -public partial class BasLabelParameter : BaseEntity -{ - public BasLabelParameter() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 标签参数代码 - /// - public string parameter_code { get; set; } = string.Empty; - - /// - /// 标签参数名称 - /// - public string parameter_name { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasLabelRule.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasLabelRule.cs deleted file mode 100644 index eb8c2ece..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasLabelRule.cs +++ /dev/null @@ -1,112 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 条码标签规则 -/// -[SugarTable("bas_label_rule")] -public partial class BasLabelRule : BaseEntity -{ - public BasLabelRule() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 规则代码 - /// - public string rule_code { get; set; } = string.Empty; - - /// - /// 规则名称 - /// - public string rule_name { get; set; } = string.Empty; - - /// - /// 条码类型(数据字典): MaterialLot:批次物料条码; MaterialKeyparts:单件物料条码; Product:产品条码; Carton:箱号条码; Pallet:栈板条码; - /// - public string sn_type { get; set; } = string.Empty; - - /// - /// 前缀 - /// - public string prefix { get; set; } = string.Empty; - - /// - /// 年度 - /// - public int year { get; set; } - - /// - /// 季度 - /// - public int quarter { get; set; } - - /// - /// 月份 - /// - public int month { get; set; } - - /// - /// 周别 - /// - public int week { get; set; } - - /// - /// 日期 - /// - public int date { get; set; } - - /// - /// 流水码长度 - /// - public int serial_lenth { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 系统类型 - /// - public string? system_type { get; set; } - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasLabelStyle.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasLabelStyle.cs deleted file mode 100644 index 2042d3a5..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasLabelStyle.cs +++ /dev/null @@ -1,67 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 标签样式(BS打印) -/// -[SugarTable("bas_label_style")] -public partial class BasLabelStyle : BaseEntity -{ - public BasLabelStyle() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 标签类型代码 - /// - public string label_type_code { get; set; } = string.Empty; - - /// - /// 标签类型名称 - /// - public string label_type_name { get; set; } = string.Empty; - - /// - /// 标签模板内容 - /// - public string label_content { get; set; } = string.Empty; - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasLabelTemplate.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasLabelTemplate.cs deleted file mode 100644 index f6ed299a..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasLabelTemplate.cs +++ /dev/null @@ -1,77 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 标签模板维护 -/// -[SugarTable("bas_label_template")] -public partial class BasLabelTemplate : BaseEntity -{ - public BasLabelTemplate() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 模板代码 - /// - public string templat_code { get; set; } = string.Empty; - - /// - /// 模板名称 - /// - public string templat_name { get; set; } = string.Empty; - - /// - /// 条码类型(数据字典): MaterialLot:批次物料条码; MaterialKeyparts:单件物料条码; Product:产品条码; Carton:箱号条码; Pallet:栈板条码; - /// - public string sn_type { get; set; } = string.Empty; - - /// - /// 模板路径(可以不选择路径,Copy粘贴亦可) - /// - public string template_path { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasLabelTemplateParameter.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasLabelTemplateParameter.cs deleted file mode 100644 index 67746b35..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasLabelTemplateParameter.cs +++ /dev/null @@ -1,77 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 标签模板与参数的关联信息 -/// -[SugarTable("bas_label_template_parameter")] -public partial class BasLabelTemplateParameter : BaseEntity -{ - public BasLabelTemplateParameter() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 标签模板ID - /// - public string template_id { get; set; } = string.Empty; - - /// - /// 模板代码 - /// - public string templat_code { get; set; } = string.Empty; - - /// - /// 标签参数ID - /// - public string parameter_id { get; set; } = string.Empty; - - /// - /// 参数代码 - /// - public string parameter_code { get; set; } = string.Empty; - - /// - /// 参数顺序 - /// - public int parameter_seq { get; set; } - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasLocationMaterial.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasLocationMaterial.cs deleted file mode 100644 index b3c66637..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasLocationMaterial.cs +++ /dev/null @@ -1,87 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 库位物料资料 -/// -[SugarTable("bas_location_material")] -public partial class BasLocationMaterial : BaseEntity -{ - public BasLocationMaterial() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 库位ID - /// - public string location_id { get; set; } = string.Empty; - - /// - /// 库位代码(库位编号唯一) - /// - public string? location_code { get; set; } - - /// - /// 物料ID,BAS_MATERIAL.ID - /// - public string material_id { get; set; } = string.Empty; - - /// - /// 物料代码 - /// - public string? material_code { get; set; } - - /// - /// 仓库ID - /// - public string warehouse_id { get; set; } = string.Empty; - - /// - /// 区域ID - /// - public long regioni_d { get; set; } - - /// - /// 货架ID - /// - public long rack_id { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialCategory.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialCategory.cs deleted file mode 100644 index 1c2dfc3a..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialCategory.cs +++ /dev/null @@ -1,77 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 物料类别 -/// -[SugarTable("bas_material_category")] -public partial class BasMaterialCategory : BaseEntity -{ - public BasMaterialCategory() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 分类代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 分类名称 - /// - public string category_name { get; set; } = string.Empty; - - /// - /// 父物料列表ID - /// - public string? parent_id { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - - /// - /// 是否生效 - /// - public string? isactive { get; set; } - - /// - /// 工艺路线 - /// - public string? route_name { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialStorage.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialStorage.cs deleted file mode 100644 index 866c4522..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasMaterialStorage.cs +++ /dev/null @@ -1,82 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 物料库存信息 -/// -[SugarTable("bas_material_storage")] -public partial class BasMaterialStorage : BaseEntity -{ - public BasMaterialStorage() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 先进先出 0否 1是 - /// - public int first_in_out { get; set; } - - /// - /// 存储有效期(天) - /// - public int? storage_valid_day { get; set; } - - /// - /// 预警提前期(天) - /// - public int? early_warn_day { get; set; } - - /// - /// 安全库存 - /// - public int? safe_stock { get; set; } - - /// - /// 安全库存包含状态 - /// - public int? safe_stock_stauts { get; set; } - - /// - /// 发料仓库id - /// - public string? warehouse_id { get; set; } - - /// - /// 入厂单位id - /// - public string into_factory_unit_id { get; set; } = string.Empty; - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasMbomOutputExt.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasMbomOutputExt.cs deleted file mode 100644 index 86349644..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasMbomOutputExt.cs +++ /dev/null @@ -1,42 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 生产bom子表物料信息 -/// -[SugarTable("bas_mbom_output_ext")] -public partial class BasMbomOutputExt : BaseEntity -{ - public BasMbomOutputExt() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 工序id - /// - public string process_id { get; set; } = string.Empty; - - /// - /// 生产bomid - /// - public string mbom_id { get; set; } = string.Empty; - - /// - /// 生产bom子表id - /// - public string mbom_process_id { get; set; } = string.Empty; - - /// - /// 副产出管控 0 不启用 1 启用 - /// - public string byproduct_status { get; set; } = string.Empty; - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasParameter.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasParameter.cs deleted file mode 100644 index da8ac0d8..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasParameter.cs +++ /dev/null @@ -1,92 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 参数配置表 -/// -[SugarTable("bas_parameter")] -public partial class BasParameter : BaseEntity -{ - public BasParameter() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 系统:WMS、MES - /// - public string system_type { get; set; } = string.Empty; - - /// - /// 是否为静态变量,静态不显示 - /// - public int is_static { get; set; } - - /// - /// 参数类型 - /// - public string parameter_type { get; set; } = string.Empty; - - /// - /// 科目(模块) - /// - public string section { get; set; } = string.Empty; - - /// - /// 参数键 - /// - public string key { get; set; } = string.Empty; - - /// - /// 参数值 - /// - public string value { get; set; } = string.Empty; - - /// - /// 默认参数值(参考值,不能修改) - /// - public string? defaultvalue { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasPbomD.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasPbomD.cs deleted file mode 100644 index 540d0525..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasPbomD.cs +++ /dev/null @@ -1,97 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 工序BOM明细 -/// -[SugarTable("bas_pbom_d")] -public partial class BasPbomD : BaseEntity -{ - public BasPbomD() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 标准BOM主档ID,BAS_PROCESS_BOM_H.ID - /// - public string pbom_id { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 物料顺序号 - /// - public int sub_seq { get; set; } - - /// - /// 物料代码 - /// - public string subm_code { get; set; } = string.Empty; - - /// - /// 物料单位 - /// - public string sub_unit { get; set; } = string.Empty; - - /// - /// 单件用量 - /// - public decimal sub_qty { get; set; } - - /// - /// 位号 - /// - public string? sub_location { get; set; } - - /// - /// 物料用途: 1:消耗的物料(主料) 2:消耗用辅料(辅料) - /// - public int usetype { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasPbomH.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasPbomH.cs deleted file mode 100644 index 948be9d0..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasPbomH.cs +++ /dev/null @@ -1,87 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 工序BOM主档 -/// -[SugarTable("bas_pbom_h")] -public partial class BasPbomH : BaseEntity -{ - public BasPbomH() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品ID,BAS_ITEM.ID - /// - public string item_id { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工艺路线代码 - /// - public string route_code { get; set; } = string.Empty; - - /// - /// 工艺路线版本 - /// - public string route_version { get; set; } = string.Empty; - - /// - /// BOM类型: 生产BOM:Standard 返工BOM:Rework 试制BOM:Trial 返修BOM:RMA 包装BOM:Pack - /// - public string bom_type { get; set; } = string.Empty; - - /// - /// 工序BOM版本 - /// - public string version { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProcessEsop.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProcessEsop.cs deleted file mode 100644 index 0242282b..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasProcessEsop.cs +++ /dev/null @@ -1,107 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 工序ESOP文件主档表 -/// -[SugarTable("bas_process_esop")] -public partial class BasProcessEsop : BaseEntity -{ - public BasProcessEsop() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 文件名 - /// - public string file_name { get; set; } = string.Empty; - - /// - /// 文件类型代码 - /// - public string filetype_code { get; set; } = string.Empty; - - /// - /// 文件类型名称 - /// - public string filetype_name { get; set; } = string.Empty; - - /// - /// 产品ID - /// - public string item_id { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工艺路线代码 - /// - public string route_code { get; set; } = string.Empty; - - /// - /// 工艺路线版本 - /// - public string route_version { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 同步控制 10-同步并覆盖 20-同步不覆盖 30-不允许同步 - /// - public string? sync_control { get; set; } - - /// - /// 产品ESOP文件主档id - /// - public long? item_esopid { get; set; } - - /// - /// 是否生效 - /// - public int isactive { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProcessEsopFile.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProcessEsopFile.cs deleted file mode 100644 index a237294f..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasProcessEsopFile.cs +++ /dev/null @@ -1,87 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 工序ESOP文件明细 -/// -[SugarTable("bas_process_esop_file")] -public partial class BasProcessEsopFile : BaseEntity -{ - public BasProcessEsopFile() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 工序文件主档id - /// - public string process_esopid { get; set; } = string.Empty; - - /// - /// 文件名 - /// - public string filen_ame { get; set; } = string.Empty; - - /// - /// 文件类型: JPG,PDF - /// - public string file_type { get; set; } = string.Empty; - - /// - /// 文件路径 - /// - public string file_path { get; set; } = string.Empty; - - /// - /// 版本 - /// - public string version { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 是否启用 - /// - public short isactive { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProduct.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProduct.cs deleted file mode 100644 index a84e3ca8..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasProduct.cs +++ /dev/null @@ -1,92 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 产品信息 -/// -[SugarTable("bas_product")] -public partial class BasProduct : BaseEntity -{ - public BasProduct() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品代码 - /// - public string product_code { get; set; } = string.Empty; - - /// - /// 产品名称 - /// - public string? product_name { get; set; } - - /// - /// 产品规格型号 - /// - public string? product_standard { get; set; } - - /// - /// 产品分类ID - /// - public string categoryid { get; set; } = string.Empty; - - /// - /// 物料ID,BAS_MATERIAL.ID - /// - public string? material_id { get; set; } - - /// - /// 产品类型: 半成品:SemiManufacture 成品:FinishedProduct - /// - public string? product_type { get; set; } - - /// - /// 关联比例 - /// - public decimal? relation_ratio { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductCategory.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductCategory.cs deleted file mode 100644 index cf0a41c2..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasProductCategory.cs +++ /dev/null @@ -1,92 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 产品类别 -/// -[SugarTable("bas_product_category")] -public partial class BasProductCategory : BaseEntity -{ - public BasProductCategory() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 父产品列表ID - /// - public string? parent_id { get; set; } - - /// - /// 分类代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 分类名称 - /// - public string category_name { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - - /// - /// 不良代码组 - /// - public string? errorcode { get; set; } - - /// - /// 不良原因组 - /// - public string? errorcause { get; set; } - - /// - /// 解决方案组 - /// - public string? errorsolution { get; set; } - - /// - /// 包含组件组 - /// - public string? component { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductDoc.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductDoc.cs deleted file mode 100644 index 876e9328..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasProductDoc.cs +++ /dev/null @@ -1,87 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 产品工序关联文档 -/// -[SugarTable("bas_product_doc")] -public partial class BasProductDoc : BaseEntity -{ - public BasProductDoc() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品代码 - /// - public string product_code { get; set; } = string.Empty; - - /// - /// 工艺路线代码 - /// - public string? route_code { get; set; } - - /// - /// 工艺路线版本 - /// - public string? route_verison { get; set; } - - /// - /// 工序代码 - /// - public string? process_code { get; set; } - - /// - /// 文档编号 - /// - public string doc_code { get; set; } = string.Empty; - - /// - /// 文档版本 - /// - public decimal doc_version { get; set; } - - /// - /// 文档唯一码 GUID 的文本 - /// - public string doc_unique_code { get; set; } = string.Empty; - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductDocLog.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductDocLog.cs deleted file mode 100644 index 22e6ef5e..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasProductDocLog.cs +++ /dev/null @@ -1,87 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 产品关联文档记录 -/// -[SugarTable("bas_product_doc_log")] -public partial class BasProductDocLog : BaseEntity -{ - public BasProductDocLog() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品代码 - /// - public string product_code { get; set; } = string.Empty; - - /// - /// 工艺路线代码 - /// - public string? route_code { get; set; } - - /// - /// 工艺路线版本 - /// - public string? route_verison { get; set; } - - /// - /// 工序代码 - /// - public string? process_code { get; set; } - - /// - /// 文档编号 - /// - public string doc_code { get; set; } = string.Empty; - - /// - /// 文档版本 - /// - public decimal doc_version { get; set; } - - /// - /// 文档唯一码 GUID 的文本 - /// - public string? doc_unique_code { get; set; } - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductEsop.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductEsop.cs deleted file mode 100644 index 508b0a16..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasProductEsop.cs +++ /dev/null @@ -1,82 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 产品ESOP文件主档表 -/// -[SugarTable("bas_product_esop")] -public partial class BasProductEsop : BaseEntity -{ - public BasProductEsop() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 文件名 - /// - public string file_name { get; set; } = string.Empty; - - /// - /// 文件类型代码 - /// - public string filetype_code { get; set; } = string.Empty; - - /// - /// 文件类型名称 - /// - public string filetype_name { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string product_id { get; set; } = string.Empty; - - /// - /// 产品名称 - /// - public string product_code { get; set; } = string.Empty; - - /// - /// 是否生效 - /// - public int is_active { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductEsopFile.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductEsopFile.cs deleted file mode 100644 index bb6dfd21..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasProductEsopFile.cs +++ /dev/null @@ -1,87 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 产品ESOP文件明细 -/// -[SugarTable("bas_product_esop_file")] -public partial class BasProductEsopFile : BaseEntity -{ - public BasProductEsopFile() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品ESOP文件主档id - /// - public string product_esop_id { get; set; } = string.Empty; - - /// - /// 文件类型: JPG,PDF - /// - public string file_type { get; set; } = string.Empty; - - /// - /// 文件名 - /// - public string file_name { get; set; } = string.Empty; - - /// - /// 文件路径 - /// - public string file_path { get; set; } = string.Empty; - - /// - /// 版本 - /// - public string version { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 是否启用 - /// - public int is_active { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeComponent.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeComponent.cs deleted file mode 100644 index 82527e2a..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeComponent.cs +++ /dev/null @@ -1,62 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 产品类别包含组件(用于维修) -/// -[SugarTable("bas_product_type_component")] -public partial class BasProductTypeComponent : BaseEntity -{ - public BasProductTypeComponent() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品类别ID - /// - public string? product_type_id { get; set; } - - /// - /// 产品类别代码 - /// - public string? product_type_code { get; set; } - - /// - /// 组件名称 - /// - public string? component_name { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorcause.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorcause.cs deleted file mode 100644 index a7e66420..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorcause.cs +++ /dev/null @@ -1,67 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 产品类别与不良原因组关系 -/// -[SugarTable("bas_product_type_errorcause")] -public partial class BasProductTypeErrorcause : BaseEntity -{ - public BasProductTypeErrorcause() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品类别ID - /// - public string? product_type_id { get; set; } - - /// - /// 产品类别代码 - /// - public string? product_type_code { get; set; } - - /// - /// 不良原因组ID - /// - public string errorcause_groupid { get; set; } = string.Empty; - - /// - /// 不良原因组代码 - /// - public string? errorcode_groupcode { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorcode.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorcode.cs deleted file mode 100644 index c3d006d2..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorcode.cs +++ /dev/null @@ -1,67 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 产品类别与不良代码组关系 -/// -[SugarTable("bas_product_type_errorcode")] -public partial class BasProductTypeErrorcode : BaseEntity -{ - public BasProductTypeErrorcode() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品类别ID - /// - public string? product_type_id { get; set; } - - /// - /// 产品类别代码 - /// - public string? product_type_code { get; set; } - - /// - /// 不良代码组ID - /// - public string errorcode_groupid { get; set; } = string.Empty; - - /// - /// 不良代码组 - /// - public string? errorcode_groupcode { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorsolution.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorsolution.cs deleted file mode 100644 index 2b88548f..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasProductTypeErrorsolution.cs +++ /dev/null @@ -1,67 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 产品类别与解决方案关系 -/// -[SugarTable("bas_product_type_errorsolution")] -public partial class BasProductTypeErrorsolution : BaseEntity -{ - public BasProductTypeErrorsolution() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品类别ID - /// - public string? product_type_id { get; set; } - - /// - /// 产品类别代码 - /// - public string? product_type_code { get; set; } - - /// - /// 不良解决方案ID - /// - public string solution_id { get; set; } = string.Empty; - - /// - /// 不良解决方案代码 - /// - public string? solution_code { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasRack.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasRack.cs deleted file mode 100644 index 458283c5..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasRack.cs +++ /dev/null @@ -1,67 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 仓库货架 -/// -[SugarTable("bas_rack")] -public partial class BasRack : BaseEntity -{ - public BasRack() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 货架Code - /// - public string rack_code { get; set; } = string.Empty; - - /// - /// 区域ID - /// - public string region_id { get; set; } = string.Empty; - - /// - /// 层数 - /// - public int layers { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasSbomD.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasSbomD.cs deleted file mode 100644 index 6bef0694..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasSbomD.cs +++ /dev/null @@ -1,87 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 产品标准BOM明细 -/// -[SugarTable("bas_sbom_d")] -public partial class BasSbomD : BaseEntity -{ - public BasSbomD() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 标准BOM主档ID,BAS_SBOM_H.ID - /// - public string? sbom_id { get; set; } - - /// - /// 物料代码 - /// - public string subm_code { get; set; } = string.Empty; - - /// - /// 物料单位 - /// - public string? sub_unit { get; set; } - - /// - /// 单件用量 - /// - public decimal? sub_qty { get; set; } - - /// - /// 位号 - /// - public string? sub_location { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasShiftType.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasShiftType.cs deleted file mode 100644 index bbeb6051..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasShiftType.cs +++ /dev/null @@ -1,72 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 班制资料类型 -/// -[SugarTable("bas_shift_type")] -public partial class BasShiftType : BaseEntity -{ - public BasShiftType() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 班制代码 - /// - public string shifttype_code { get; set; } = string.Empty; - - /// - /// 班制名称 - /// - public string shifttype_name { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasSkill.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasSkill.cs deleted file mode 100644 index c1411654..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasSkill.cs +++ /dev/null @@ -1,62 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 技能维护 -/// -[SugarTable("bas_skill")] -public partial class BasSkill : BaseEntity -{ - public BasSkill() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 技能代码 - /// - public string skill_code { get; set; } = string.Empty; - - /// - /// 技能描述 - /// - public string skill_desc { get; set; } = string.Empty; - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasSkillLevel.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasSkillLevel.cs deleted file mode 100644 index dcf2d669..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasSkillLevel.cs +++ /dev/null @@ -1,67 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 人员技能等级 -/// -[SugarTable("bas_skill_level")] -public partial class BasSkillLevel : BaseEntity -{ - public BasSkillLevel() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 技能等级 - /// - public string skill_levle_code { get; set; } = string.Empty; - - /// - /// 技能等级描述 - /// - public string skill_levle_desc { get; set; } = string.Empty; - - /// - /// 是否能上岗 - /// - public int is_work { get; set; } - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasSkillProcess.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasSkillProcess.cs deleted file mode 100644 index 5c7483f8..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasSkillProcess.cs +++ /dev/null @@ -1,67 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 技能与工序的关系 -/// -[SugarTable("bas_skill_process")] -public partial class BasSkillProcess : BaseEntity -{ - public BasSkillProcess() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 技能ID,PERF_SKILL.ID - /// - public string skill_id { get; set; } = string.Empty; - - /// - /// 工序ID,BAS_PROCESS.ID - /// - public string process_id { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasStaffSkill.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasStaffSkill.cs deleted file mode 100644 index 9668a486..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasStaffSkill.cs +++ /dev/null @@ -1,87 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 员工技能设置 -/// -[SugarTable("bas_staff_skill")] -public partial class BasStaffSkill : BaseEntity -{ - public BasStaffSkill() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 用户ID,SYS_USERS.ID - /// - public string user_id { get; set; } = string.Empty; - - /// - /// 用户名,SYS_USERS.USERNAME - /// - public string user_name { get; set; } = string.Empty; - - /// - /// 技能ID,PERF_SKILL.ID - /// - public string skill_id { get; set; } = string.Empty; - - /// - /// 技能等级ID,PERF_SKILLLEVEL.ID - /// - public string skill_level_id { get; set; } = string.Empty; - - /// - /// 生效日期 - /// - public DateTime effective_date { get; set; } = DateTime.Now; - - /// - /// 失效日期 - /// - public DateTime expiry_date { get; set; } = DateTime.Now; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasStep.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasStep.cs deleted file mode 100644 index 2557f1ca..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasStep.cs +++ /dev/null @@ -1,92 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 工步 -/// -[SugarTable("bas_step")] -public partial class BasStep : BaseEntity -{ - public BasStep() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 工步代码 - /// - public string step_code { get; set; } = string.Empty; - - /// - /// 工步名称 - /// - public string step_name { get; set; } = string.Empty; - - /// - /// 工序ID - /// - public string? process_id { get; set; } - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 强制顺序 - /// - public string must_order { get; set; } = string.Empty; - - /// - /// 处理时间 - /// - public int? steps_time { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasStepBom.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasStepBom.cs deleted file mode 100644 index 149425bd..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasStepBom.cs +++ /dev/null @@ -1,122 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 工步BOM明细 -/// -[SugarTable("bas_step_bom")] -public partial class BasStepBom : BaseEntity -{ - public BasStepBom() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工艺路线代码 - /// - public string route_code { get; set; } = string.Empty; - - /// - /// 工艺路线版本 - /// - public string route_version { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 工序BOM版本 - /// - public string version { get; set; } = string.Empty; - - /// - /// 工步代码 - /// - public string step_code { get; set; } = string.Empty; - - /// - /// 物料顺序号 - /// - public int sub_seq { get; set; } - - /// - /// 物料代码 - /// - public string subm_code { get; set; } = string.Empty; - - /// - /// 物料单位 - /// - public string sub_unit { get; set; } = string.Empty; - - /// - /// 单件用量 - /// - public decimal sub_qty { get; set; } - - /// - /// 位号 - /// - public string? sub_location { get; set; } - - /// - /// 物料用途: 1:消耗的物料(主料) 2:消耗用辅料(辅料) - /// - public int usetype { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasSubstitutionMaterial.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasSubstitutionMaterial.cs deleted file mode 100644 index 37fa9851..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasSubstitutionMaterial.cs +++ /dev/null @@ -1,82 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 替代料关系表 -/// -[SugarTable("bas_substitution_material")] -public partial class BasSubstitutionMaterial : BaseEntity -{ - public BasSubstitutionMaterial() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 物料id - /// - public string material_id { get; set; } = string.Empty; - - /// - /// 替代料id - /// - public string sub_material_id { get; set; } = string.Empty; - - /// - /// 替代比例,如1(一个物料可以用一个替代料代替) - /// - public decimal proportion { get; set; } - - /// - /// 是否相互替代 - /// - public string? is_mutual { get; set; } - - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasSupplierContact.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasSupplierContact.cs deleted file mode 100644 index 8c438040..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasSupplierContact.cs +++ /dev/null @@ -1,92 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 供应商联系人 -/// -[SugarTable("bas_supplier_contact")] -public partial class BasSupplierContact : BaseEntity -{ - public BasSupplierContact() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// TODO - /// - public int? tenantid { get; set; } - - /// - /// TODO - /// - public long supplierid { get; set; } - - /// - /// TODO - /// - public string name { get; set; } = string.Empty; - - /// - /// TODO - /// - public string? phone { get; set; } - - /// - /// TODO - /// - public short ismaincontact { get; set; } - - /// - /// TODO - /// - public string? attribute1 { get; set; } - - /// - /// TODO - /// - public string? attribute2 { get; set; } - - /// - /// TODO - /// - public string? attribute3 { get; set; } - - /// - /// TODO - /// - public string? timestamp { get; set; } - - /// - /// TODO - /// - public DateTime? lastmodificationtime { get; set; } - - /// - /// TODO - /// - public long? lastmodifieruserid { get; set; } - - /// - /// TODO - /// - public string? lastmodifierfullname { get; set; } - - /// - /// TODO - /// - public DateTime creationtime { get; set; } = DateTime.Now; - - /// - /// TODO - /// - public long? creatoruserid { get; set; } - - /// - /// TODO - /// - public string? creatorfullname { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasTimeCalendar.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasTimeCalendar.cs deleted file mode 100644 index 333f3649..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasTimeCalendar.cs +++ /dev/null @@ -1,97 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 时间日历 -/// -[SugarTable("bas_time_calendar")] -public partial class BasTimeCalendar : BaseEntity -{ - public BasTimeCalendar() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 日期 - /// - public DateTime date { get; set; } = DateTime.Now; - - /// - /// 第几周 - /// - public int dateint { get; set; } - - /// - /// 周 - /// - public int week { get; set; } - - /// - /// 月 - /// - public int month { get; set; } - - /// - /// 季 - /// - public int quarter { get; set; } - - /// - /// 年 - /// - public int year { get; set; } - - /// - /// 是否工作日 - /// - public int is_workday { get; set; } - - /// - /// 周的第几天 - /// - public int dayofweek { get; set; } - - /// - /// 年的第几天 - /// - public int dayofyear { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasTimeCalendarRule.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasTimeCalendarRule.cs deleted file mode 100644 index 891e2c8e..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasTimeCalendarRule.cs +++ /dev/null @@ -1,72 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 时间日历规则 -/// -[SugarTable("bas_time_calendar_rule")] -public partial class BasTimeCalendarRule : BaseEntity -{ - public BasTimeCalendarRule() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 年份(1900,9999) - /// - public int year { get; set; } - - /// - /// 周的第一天(1,7) - /// - public string firstdayofweek { get; set; } = string.Empty; - - /// - /// 工作日 - /// - public string workday { get; set; } = string.Empty; - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - - /// - /// 周的第一天 - /// - public string? firstdayofweek_name { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasTimeDimension.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasTimeDimension.cs deleted file mode 100644 index ee691041..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasTimeDimension.cs +++ /dev/null @@ -1,52 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 系统时间维度 -/// -[SugarTable("bas_time_dimension")] -public partial class BasTimeDimension : BaseEntity -{ - public BasTimeDimension() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 日期 - /// - public DateTime ddate { get; set; } = DateTime.Now; - - /// - /// 周别 - /// - public int dweek { get; set; } - - /// - /// 周几 - /// - public int dweekday { get; set; } - - /// - /// 月份 - /// - public int dmonth { get; set; } - - /// - /// 季度 - /// - public int quarter { get; set; } - - /// - /// 年份 - /// - public int year { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenter.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenter.cs deleted file mode 100644 index b1cd8c2f..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenter.cs +++ /dev/null @@ -1,82 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 工作中心表 -/// -[SugarTable("bas_workcenter")] -public partial class BasWorkcenter : BaseEntity -{ - public BasWorkcenter() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 工作中心代码 - /// - public string workcenter_code { get; set; } = string.Empty; - - /// - /// 工作中心名称 - /// - public string workcenter_name { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 车间(工段)代码,SEGMENT.SEGMENTCODE - /// - public string segment_code { get; set; } = string.Empty; - - /// - /// 车间(工段)ID,SEGMENT.ID - /// - public string segment_id { get; set; } = string.Empty; - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenterLine.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenterLine.cs deleted file mode 100644 index 8e3e15b3..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenterLine.cs +++ /dev/null @@ -1,72 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 工作中心与产线关系表 -/// -[SugarTable("bas_workcenter_line")] -public partial class BasWorkcenterLine : BaseEntity -{ - public BasWorkcenterLine() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 工作中心ID - /// - public string workcenter_id { get; set; } = string.Empty; - - /// - /// 工作中心代码 - /// - public string workcenter_code { get; set; } = string.Empty; - - /// - /// 产线ID,PRODUCTIONLINE.ID - /// - public string productionline_id { get; set; } = string.Empty; - - /// - /// 产线代码,PRODUCTIONLINE.PRODUCTIONLINECODE - /// - public string productionline_code { get; set; } = string.Empty; - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenterStation.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenterStation.cs deleted file mode 100644 index 1b26cce4..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkcenterStation.cs +++ /dev/null @@ -1,72 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 工作中心与工位关系表 -/// -[SugarTable("bas_workcenter_station")] -public partial class BasWorkcenterStation : BaseEntity -{ - public BasWorkcenterStation() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 工作中心ID - /// - public string workcenter_id { get; set; } = string.Empty; - - /// - /// 工作中心代码 - /// - public string workcenter_code { get; set; } = string.Empty; - - /// - /// 工位ID,STATION.ID - /// - public string station_id { get; set; } = string.Empty; - - /// - /// 工位代码,STATION.STATIONCODE - /// - public string station_code { get; set; } = string.Empty; - - /// - /// 时间戳(用于并发处理) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkgroupWorkcenter.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkgroupWorkcenter.cs deleted file mode 100644 index 3a71cf5a..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkgroupWorkcenter.cs +++ /dev/null @@ -1,67 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 班组与工作中心关系 -/// -[SugarTable("bas_workgroup_workcenter")] -public partial class BasWorkgroupWorkcenter : BaseEntity -{ - public BasWorkgroupWorkcenter() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 班组ID,BAS_GROUP.ID - /// - public string group_id { get; set; } = string.Empty; - - /// - /// 班组代码 - /// - public string group_code { get; set; } = string.Empty; - - /// - /// 工作中心ID,BAS_WORKCENTER.ID - /// - public string workcenter_id { get; set; } = string.Empty; - - /// - /// 工作中心代码 - /// - public string workcenter_code { get; set; } = string.Empty; - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkline.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWorkline.cs deleted file mode 100644 index 8c04704a..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasWorkline.cs +++ /dev/null @@ -1,97 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 生产线资料 -/// -[SugarTable("bas_workline")] -public partial class BasWorkline : BaseEntity -{ - public BasWorkline() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产线代码 - /// - public string workline_code { get; set; } = string.Empty; - - /// - /// 产线名称 - /// - public string workline_name { get; set; } = string.Empty; - - /// - /// 所属工段ID,BAS_SEGMENT.ID - /// - public string segment_id { get; set; } = string.Empty; - - /// - /// 所属工段代码 - /// - public string segment_code { get; set; } = string.Empty; - - /// - /// 班制代码ID,BAS_SHIFTTYPE.ID - /// - public string shifttype_id { get; set; } = string.Empty; - - /// - /// 班制代码 - /// - public string shifttype_code { get; set; } = string.Empty; - - /// - /// 所属工厂ID,BAS_FACTORY.ID - /// - public string factory_id { get; set; } = string.Empty; - - /// - /// 所属工厂代码 - /// - public string factory_code { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/BasicData/Tnb.BasicData.Entities/Entity/BasWorksegment.cs b/BasicData/Tnb.BasicData.Entities/Entity/BasWorksegment.cs deleted file mode 100644 index a0875991..00000000 --- a/BasicData/Tnb.BasicData.Entities/Entity/BasWorksegment.cs +++ /dev/null @@ -1,92 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.BasicData.Entities; - -/// -/// 工段资料 -/// -[SugarTable("bas_worksegment")] -public partial class BasWorksegment : BaseEntity -{ - public BasWorksegment() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 工段代码 - /// - public string segment_code { get; set; } = string.Empty; - - /// - /// 工段名称 - /// - public string segment_name { get; set; } = string.Empty; - - /// - /// 所属班制ID,BAS_SHIFTTYPE.ID - /// - public string shifttype_id { get; set; } = string.Empty; - - /// - /// 班制代码 - /// - public string shifttype_code { get; set; } = string.Empty; - - /// - /// 所属工厂ID - /// - public string factory_id { get; set; } = string.Empty; - - /// - /// 所属工厂代码 - /// - public string factory_code { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳(用于并发控制) - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime create_time { get; set; } = DateTime.Now; - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonInfo.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonInfo.cs deleted file mode 100644 index c0d6478c..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonInfo.cs +++ /dev/null @@ -1,87 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 包装箱号信息 -/// -[SugarTable("prd_carton_info")] -public partial class PrdCartonInfo : BaseEntity -{ - public PrdCartonInfo() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 箱号 - /// - public string carton_no { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string? mo_code { get; set; } - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 箱子容量 - /// - public decimal capacity { get; set; } - - /// - /// 已放入数量 - /// - public decimal collected_qty { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonRcard.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonRcard.cs deleted file mode 100644 index 6e0f326c..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonRcard.cs +++ /dev/null @@ -1,82 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 包装箱号和产品序列号的关系 -/// -[SugarTable("prd_carton_rcard")] -public partial class PrdCartonRcard : BaseEntity -{ - public PrdCartonRcard() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 箱号 - /// - public string carton_no { get; set; } = string.Empty; - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 产品序列号数量 - /// - public decimal relation_qty { get; set; } - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonRcardLog.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonRcardLog.cs deleted file mode 100644 index a59ac98f..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdCartonRcardLog.cs +++ /dev/null @@ -1,102 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 包装箱号和产品序列号的关系日志 -/// -[SugarTable("prd_carton_rcard_log")] -public partial class PrdCartonRcardLog : BaseEntity -{ - public PrdCartonRcardLog() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 箱号 - /// - public string carton_no { get; set; } = string.Empty; - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 产品序列号数量 - /// - public decimal relation_qty { get; set; } - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 包装用户名称 - /// - public string pack_user_name { get; set; } = string.Empty; - - /// - /// 包装时间 - /// - public DateTime pack_time { get; set; } = DateTime.Now; - - /// - /// 拆解用户名称 - /// - public string? remove_user_name { get; set; } - - /// - /// 拆解时间 - /// - public DateTime? remove_time { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdDispatch.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdDispatch.cs deleted file mode 100644 index f4c054e9..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdDispatch.cs +++ /dev/null @@ -1,92 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 工序派工单 -/// -[SugarTable("prd_dispatch")] -public partial class PrdDispatch : BaseEntity -{ - public PrdDispatch() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 派工单代码 - /// - public string dispatch_code { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 计划派工数 - /// - public decimal plan_qty { get; set; } - - /// - /// 工作中心代码 - /// - public string work_center_code { get; set; } = string.Empty; - - /// - /// 派工单状态:10 未派工 20 已派工 30 工位派工 - /// - public string status { get; set; } = string.Empty; - - /// - /// 派工单状态 - /// - public string? dispatch_status { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdDispatchStation.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdDispatchStation.cs deleted file mode 100644 index f83b0850..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdDispatchStation.cs +++ /dev/null @@ -1,102 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 工位派工单 -/// -[SugarTable("prd_dispatch_station")] -public partial class PrdDispatchStation : BaseEntity -{ - public PrdDispatchStation() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 派工单代码 - /// - public string dispatch_code { get; set; } = string.Empty; - - /// - /// 派工单序号(1开始,最大+1,不强制连续) - /// - public int seq { get; set; } - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 工位代码 - /// - public string station_code { get; set; } = string.Empty; - - /// - /// 计划派工数 - /// - public decimal plan_qty { get; set; } - - /// - /// 工作中心代码 - /// - public string work_center_code { get; set; } = string.Empty; - - /// - /// 状态 - /// - public string status { get; set; } = string.Empty; - - /// - /// 派工单状态:10 未派工 20 已派工 - /// - public string? dispatch_status { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdEqpdown.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdEqpdown.cs deleted file mode 100644 index 745affcf..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdEqpdown.cs +++ /dev/null @@ -1,107 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 设备停机记录 -/// -[SugarTable("prd_eqpdown")] -public partial class PrdEqpdown : BaseEntity -{ - public PrdEqpdown() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 生产场地 - /// - public string? work_shop { get; set; } - - /// - /// 设备Id - /// - public string? eqp_id { get; set; } - - /// - /// 设备名称 - /// - public string? eqp_name { get; set; } - - /// - /// 停机类别 - /// - public string? down_type { get; set; } - - /// - /// 停机原因 - /// - public string? down_cause { get; set; } - - /// - /// 开始操作人 - /// - public string? start_name { get; set; } - - /// - /// 开始时间 - /// - public DateTime? start_time { get; set; } - - /// - /// 开始备注 - /// - public string? start_remark { get; set; } - - /// - /// 结束操作人 - /// - public string? end_name { get; set; } - - /// - /// 结束时间 - /// - public DateTime? end_time { get; set; } - - /// - /// 结束备注 - /// - public string? end_remark { get; set; } - - /// - /// 补录时间 - /// - public DateTime? sup_recard_time { get; set; } - - /// - /// 时间戳 - /// - public DateTime? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotFeedback.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotFeedback.cs deleted file mode 100644 index 786649a4..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotFeedback.cs +++ /dev/null @@ -1,122 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 批次工序报工信息表 -/// -[SugarTable("prd_lot_feedback")] -public partial class PrdLotFeedback : BaseEntity -{ - public PrdLotFeedback() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 批次号 - /// - public string lot_no { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 项目代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工艺路线代码 - /// - public string route_code { get; set; } = string.Empty; - - /// - /// 工艺路线版本 - /// - public string route_version { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 工位代码 - /// - public string station_code { get; set; } = string.Empty; - - /// - /// 合格数量 - /// - public decimal? qualifity_qty { get; set; } - - /// - /// 不合格数量 - /// - public decimal? un_qualifity_qty { get; set; } - - /// - /// 废弃料数量 - /// - public decimal? scrap_qty { get; set; } - - /// - /// 人时报工(分钟) - /// - public decimal? man_time { get; set; } - - /// - /// 机时报工(分钟) - /// - public decimal? machine_time { get; set; } - - /// - /// 人员表 - /// - public string? staffs { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - - /// - /// 时间戳 - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotFeedbackRecord.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotFeedbackRecord.cs deleted file mode 100644 index 8723ebf5..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotFeedbackRecord.cs +++ /dev/null @@ -1,142 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 批次报工记录表 -/// -[SugarTable("prd_lot_feedback_record")] -public partial class PrdLotFeedbackRecord : BaseEntity -{ - public PrdLotFeedbackRecord() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 序列号 - /// - public int seq { get; set; } - - /// - /// 批次号 - /// - public string lot_no { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string? mo_code { get; set; } - - /// - /// 项目代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工艺路线代码 - /// - public string route_code { get; set; } = string.Empty; - - /// - /// 工艺路线版本 - /// - public string route_version { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 工位代码 - /// - public string station_code { get; set; } = string.Empty; - - /// - /// 合格数量 - /// - public decimal? qualifity_qty { get; set; } - - /// - /// 不合格数量 - /// - public decimal? un_qualifity_qty { get; set; } - - /// - /// 废弃料 - /// - public decimal? scrap_qty { get; set; } - - /// - /// 人时报工(分钟) - /// - public decimal? man_time { get; set; } - - /// - /// 机时报工(分钟) - /// - public decimal? machine_time { get; set; } - - /// - /// 报工人员ID - /// - public string? feedback_user_id { get; set; } - - /// - /// 报工人员名称 - /// - public string? feedback_user_name { get; set; } - - /// - /// 报工时间 - /// - public DateTime? feedback_time { get; set; } - - /// - /// 员工表 - /// - public string? staffs { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotOperation.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotOperation.cs deleted file mode 100644 index db89eb89..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotOperation.cs +++ /dev/null @@ -1,122 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 批次操作记录信息 -/// -[SugarTable("prd_lot_operation")] -public partial class PrdLotOperation : BaseEntity -{ - public PrdLotOperation() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 批次号 - /// - public string lot_no { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工艺路线代码 - /// - public string route_code { get; set; } = string.Empty; - - /// - /// 工艺路线版本 - /// - public string route_version { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 工位代码 - /// - public string station_code { get; set; } = string.Empty; - - /// - /// 开始时间 - /// - public DateTime start_time { get; set; } = DateTime.Now; - - /// - /// 结束时间 - /// - public DateTime? end_time { get; set; } - - /// - /// 操作间隔时间(分钟数) - /// - public DateTime? work_duration { get; set; } - - /// - /// 操作类型: START-开工 STOP-停工 RESUME-复工 FEEDBACK-报工 COMPLETE-完工 - /// - public string operation_type { get; set; } = string.Empty; - - /// - /// 作业状态: NEW-未开工 WORK-作业中 STOP-停工 COMPLETE-完工 - /// - public string status { get; set; } = string.Empty; - - /// - /// 开工进站数量 - /// - public decimal? input_qty { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRcard.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRcard.cs deleted file mode 100644 index d407c33d..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRcard.cs +++ /dev/null @@ -1,82 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 批次产品序列号 -/// -[SugarTable("prd_lot_rcard")] -public partial class PrdLotRcard : BaseEntity -{ - public PrdLotRcard() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 批次号 - /// - public string lot_no { get; set; } = string.Empty; - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 状态 - /// - public string status { get; set; } = string.Empty; - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRepair.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRepair.cs deleted file mode 100644 index e1448d70..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRepair.cs +++ /dev/null @@ -1,197 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 批次维修主资料 -/// -[SugarTable("prd_lot_repair")] -public partial class PrdLotRepair : BaseEntity -{ - public PrdLotRepair() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 批次号 - /// - public string lot_no { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 送修工艺路线代码 - /// - public string from_route_code { get; set; } = string.Empty; - - /// - /// 送修工艺路线版本 - /// - public string from_route_version { get; set; } = string.Empty; - - /// - /// 送修工序代码 - /// - public string from_process_code { get; set; } = string.Empty; - - /// - /// 送修工段代码 - /// - public string? from_segment_code { get; set; } - - /// - /// 送修产线代码 - /// - public string? from_production_line_code { get; set; } - - /// - /// 送修工位代码 - /// - public string from_station_code { get; set; } = string.Empty; - - /// - /// 送修年份 - /// - public int from_year { get; set; } - - /// - /// 送修月份 - /// - public int from_month { get; set; } - - /// - /// 送修周别 - /// - public int from_week { get; set; } - - /// - /// 班制代码 - /// - public string shift_type_code { get; set; } = string.Empty; - - /// - /// 班次代码 - /// - public string shift_code { get; set; } = string.Empty; - - /// - /// 时段代码 - /// - public string? tp_code { get; set; } - - /// - /// 工厂日 - /// - public int shift_day { get; set; } - - /// - /// 送修人名称 - /// - public string from_user_name { get; set; } = string.Empty; - - /// - /// 送修备注 - /// - public string? from_memo { get; set; } - - /// - /// 送修时间 - /// - public DateTime from_time { get; set; } = DateTime.Now; - - /// - /// 维修来源类型 - /// - public string from_input_type { get; set; } = string.Empty; - - /// - /// 维修状态 New, (产线发现不良) Repair, (维修中) Complete, (维修完成) - /// - public string repair_status { get; set; } = string.Empty; - - /// - /// 维修完成人ID - /// - public string? repaired_user_id { get; set; } - - /// - /// 维修完成人员姓名 - /// - public string? reparied_user_name { get; set; } - - /// - /// 维修完成时间 - /// - public DateTime? repaired_time { get; set; } - - /// - /// 维修完成工序代码 - /// - public string? reparied_station_code { get; set; } - - /// - /// 维系完成回流批次号 - /// - public string? repaired_reflow_lot_no { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 处理状态: UNHANDLE-待处理 HANDLE-已处理 - /// - public string handle_type { get; set; } = string.Empty; - - /// - /// 时间戳 - /// - public string? timestamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRepairErrorcode.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRepairErrorcode.cs deleted file mode 100644 index 325fad00..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotRepairErrorcode.cs +++ /dev/null @@ -1,117 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 维修不良代码 -/// -[SugarTable("prd_lot_repair_errorcode")] -public partial class PrdLotRepairErrorcode : BaseEntity -{ - public PrdLotRepairErrorcode() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// GUID - /// - public string repair_id { get; set; } = string.Empty; - - /// - /// 不良代码组 - /// - public string error_group_code { get; set; } = string.Empty; - - /// - /// 不良代码 - /// - public string error_code { get; set; } = string.Empty; - - /// - /// 产品序列号/批次号/派工单号 - /// - public string lot_no { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 待处理不良数量 - /// - public decimal? wait_qty { get; set; } - - /// - /// 处理后合格数量 - /// - public decimal? qualifity_qty { get; set; } - - /// - /// 处理后不合格数量 - /// - public decimal? unqualifity_qty { get; set; } - - /// - /// 处理后报废数量 - /// - public decimal? scrap_qty { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 处理状态: UNHANDLE-待处理 HANDLE-已处理 - /// - public string handle_type { get; set; } = string.Empty; - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotSimulation.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotSimulation.cs deleted file mode 100644 index 04564e7c..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotSimulation.cs +++ /dev/null @@ -1,142 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 批次在制品信息 -/// -[SugarTable("prd_lot_simulation")] -public partial class PrdLotSimulation : BaseEntity -{ - public PrdLotSimulation() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 批次号/派工单代码 - /// - public string lot_no { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工艺路线代码 - /// - public string route_code { get; set; } = string.Empty; - - /// - /// 工艺路线版本 - /// - public string route_version { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 工位代码 - /// - public string station_code { get; set; } = string.Empty; - - /// - /// 开工时间 - /// - public DateTime start_time { get; set; } = DateTime.Now; - - /// - /// 完工时间 - /// - public DateTime? end_time { get; set; } - - /// - /// 作业总人时(分钟数) - /// - public decimal? man_time { get; set; } - - /// - /// 作业总机时(分钟数) - /// - public decimal? machine_time { get; set; } - - /// - /// 作业状态: NEW-未开工 WORK-作业中 STOP-停工 COMPLETE-完工 - /// - public string status { get; set; } = string.Empty; - - /// - /// 进站数量 - /// - public decimal? input_qty { get; set; } - - /// - /// 合格数量 - /// - public decimal? qualifity_qty { get; set; } - - /// - /// 不合格数量 - /// - public decimal? un_qualifity_qty { get; set; } - - /// - /// 报废数量 - /// - public decimal? scrap_qty { get; set; } - - /// - /// 员工表 - /// - public string? staffs { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotStationmerge.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotStationmerge.cs deleted file mode 100644 index 7533c87c..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdLotStationmerge.cs +++ /dev/null @@ -1,107 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// prd_lot_stationmerge -/// -[SugarTable("prd_lot_stationmerge")] -public partial class PrdLotStationmerge : BaseEntity -{ - public PrdLotStationmerge() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 批次号 - /// - public string lot_no { get; set; } = string.Empty; - - /// - /// 转换序列号 - /// - public string merge_lot_no { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 工位代码 - /// - public string station_code { get; set; } = string.Empty; - - /// - /// 生产数量 - /// - public decimal input_qty { get; set; } - - /// - /// 合格数量 - /// - public decimal? qualifity_qty { get; set; } - - /// - /// 不合格数量 - /// - public decimal? un_qualifity_qty { get; set; } - - /// - /// 报废数量 - /// - public decimal? scrap_qty { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoBom.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoBom.cs deleted file mode 100644 index 898cceaf..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoBom.cs +++ /dev/null @@ -1,162 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 工单BOM资料 -/// -[SugarTable("prd_mo_bom")] -public partial class PrdMoBom : BaseEntity -{ - public PrdMoBom() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 工单明细ID - /// - public string mo_detail_id { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 工单行号 - /// - public int mo_line { get; set; } - - /// - /// 物品ID - /// - public string material_id { get; set; } = string.Empty; - - /// - /// 物品代码 - /// - public string material_code { get; set; } = string.Empty; - - /// - /// 物品附属信息 - /// - public string? material_attribute { get; set; } - - /// - /// 单位 - /// - public string unit { get; set; } = string.Empty; - - /// - /// (1入库倒冲/2工序倒冲/3领料/4.虚拟件) - /// - public int wip_type { get; set; } - - /// - /// prdorgid - /// - public string? prd_org_id { get; set; } - - /// - /// 计划发料数量 - /// - public decimal qty { get; set; } - - /// - /// 已领数量 - /// - public decimal? pick_qty { get; set; } - - /// - /// 已调拨数量 - /// - public decimal? trans_qty { get; set; } - - /// - /// 已扫描领用数量 - /// - public decimal? scan_pick_qty { get; set; } - - /// - /// 已扫描调拨数量 - /// - public decimal? scan_trans_qty { get; set; } - - /// - /// feedqty - /// - public decimal? feed_qty { get; set; } - - /// - /// unitqty - /// - public decimal? unit_qty { get; set; } - - /// - /// 损耗率 - /// - public decimal? compscap_qty { get; set; } - - /// - /// 是否计算 - /// - public int? is_comsume { get; set; } - - /// - /// 仓库ID - /// - public string? wh_id { get; set; } - - /// - /// 仓库代码 - /// - public string? wh_code { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoLine.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoLine.cs deleted file mode 100644 index 6c2b6c8a..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoLine.cs +++ /dev/null @@ -1,47 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 工单与产线关联关系 -/// -[SugarTable("prd_mo_line")] -public partial class PrdMoLine : BaseEntity -{ - public PrdMoLine() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 工单Id - /// - public string? mo_id { get; set; } - - /// - /// 产线Id - /// - public string? line_id { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRcard.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRcard.cs deleted file mode 100644 index 3b52a173..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRcard.cs +++ /dev/null @@ -1,102 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 工单与产品序列号的关联关系 -/// -[SugarTable("prd_mo_rcard")] -public partial class PrdMoRcard : BaseEntity -{ - public PrdMoRcard() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 工单ID - /// - public string mo_id { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 关联比例 - /// - public decimal relation_qty { get; set; } - - /// - /// 打印次数 - /// - public int? print_times { get; set; } - - /// - /// 最后一次打印人员ID - /// - public string? last_print_user_id { get; set; } - - /// - /// 最后一次打印人员姓名 - /// - public string? last_print_user_name { get; set; } - - /// - /// 最后一次打印时间 - /// - public DateTime? last_print_time { get; set; } - - /// - /// 条码状态: AVAILABLE-可用 SCRAP-报废 - /// - public string status { get; set; } = string.Empty; - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRcardHistory.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRcardHistory.cs deleted file mode 100644 index 30d35e10..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRcardHistory.cs +++ /dev/null @@ -1,97 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 工单产品序列号操作记录表 -/// -[SugarTable("prd_mo_rcard_history")] -public partial class PrdMoRcardHistory : BaseEntity -{ - public PrdMoRcardHistory() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 工单ID - /// - public string mo_id { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 条码操作: REPRINT-补印 SCRAP-报废 - /// - public string operation { get; set; } = string.Empty; - - /// - /// 操作申请人ID - /// - public string apply_user_id { get; set; } = string.Empty; - - /// - /// 操作申请人名称 - /// - public string apply_user_name { get; set; } = string.Empty; - - /// - /// 操作申请原因 - /// - public string apply_reason { get; set; } = string.Empty; - - /// - /// 操作申请日期 - /// - public DateTime apply_date { get; set; } = DateTime.Now; - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRoute.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRoute.cs deleted file mode 100644 index 08d9dceb..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdMoRoute.cs +++ /dev/null @@ -1,82 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 工单与工艺路线的关系 -/// -[SugarTable("prd_mo_route")] -public partial class PrdMoRoute : BaseEntity -{ - public PrdMoRoute() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 工艺路线代码 - /// - public string route_code { get; set; } = string.Empty; - - /// - /// 工艺路线版本 - /// - public string? route_version { get; set; } - - /// - /// 工序BOM版本 - /// - public string? process_bom_version { get; set; } - - /// - /// 是否是主途程(当前工艺路线) - /// - public int is_main_route { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwip.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwip.cs deleted file mode 100644 index db0df225..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwip.cs +++ /dev/null @@ -1,192 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 过站事件历史记录 -/// -[SugarTable("prd_onwip")] -public partial class PrdOnwip : BaseEntity -{ - public PrdOnwip() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 产品序列号过站次序 - /// - public int r_card_seq { get; set; } - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 转换前的产品序列号 - /// - public string source_card { get; set; } = string.Empty; - - /// - /// 转换前的产品序列号流水号 - /// - public int source_card_seq { get; set; } - - /// - /// 产品类型代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 关联比例 - /// - public decimal relation_qty { get; set; } - - /// - /// 班制代码 - /// - public string shift_type_code { get; set; } = string.Empty; - - /// - /// 班次代码 - /// - public string shift_code { get; set; } = string.Empty; - - /// - /// 时段代码 - /// - public string tp_code { get; set; } = string.Empty; - - /// - /// 工作天 - /// - public int shift_day { get; set; } - - /// - /// 工艺路线代码 - /// - public string route_code { get; set; } = string.Empty; - - /// - /// 工艺路线版本 - /// - public string route_version { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 工厂代码 - /// - public string factory_code { get; set; } = string.Empty; - - /// - /// 工段代码 - /// - public string segment_code { get; set; } = string.Empty; - - /// - /// 产线代码 - /// - public string production_line_code { get; set; } = string.Empty; - - /// - /// 岗位代码 - /// - public string station_code { get; set; } = string.Empty; - - /// - /// 过站事件代码 - /// - public string action { get; set; } = string.Empty; - - /// - /// 过帐事件结果 - /// - public string action_result { get; set; } = string.Empty; - - /// - /// NG总次数 - /// - public int ng_times { get; set; } - - /// - /// 自增长Serial(Oracle脚本创建) - /// - public string serial { get; set; } = string.Empty; - - /// - /// 过站开始时间 - /// - public DateTime begin_time { get; set; } = DateTime.Now; - - /// - /// 过站结束时间 - /// - public DateTime? end_time { get; set; } - - /// - /// 是否做过产量计算 - /// - public int processed { get; set; } - - /// - /// 人员表 - /// - public string? staffs { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipInfo.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipInfo.cs deleted file mode 100644 index a3461b5e..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipInfo.cs +++ /dev/null @@ -1,87 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 在制品统计信息 -/// -[SugarTable("prd_onwip_info")] -public partial class PrdOnwipInfo : BaseEntity -{ - public PrdOnwipInfo() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string op_code { get; set; } = string.Empty; - - /// - /// 待作业数 - /// - public decimal wait_qty { get; set; } - - /// - /// 作业中数 - /// - public decimal process_qty { get; set; } - - /// - /// 作业完成数 - /// - public decimal complete_qty { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipRcard.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipRcard.cs deleted file mode 100644 index 8dab9dfa..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipRcard.cs +++ /dev/null @@ -1,87 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 在制品工序作业中产品序列号 -/// -[SugarTable("prd_onwip_rcard")] -public partial class PrdOnwipRcard : BaseEntity -{ - public PrdOnwipRcard() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string op_code { get; set; } = string.Empty; - - /// - /// 岗位代码 - /// - public string station_code { get; set; } = string.Empty; - - /// - /// 开始作业时间 - /// - public DateTime begin_time { get; set; } = DateTime.Now; - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipRcardtrans.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipRcardtrans.cs deleted file mode 100644 index 27eb81f1..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipRcardtrans.cs +++ /dev/null @@ -1,167 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 序列号转换历史记录 -/// -[SugarTable("prd_onwip_rcardtrans")] -public partial class PrdOnwipRcardtrans : BaseEntity -{ - public PrdOnwipRcardtrans() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 产品序列号过站次序 - /// - public int r_card_seq { get; set; } - - /// - /// 转换前的产品序列号 - /// - public string t_card { get; set; } = string.Empty; - - /// - /// 转换前的产品序列号流水号 - /// - public int t_card_seq { get; set; } - - /// - /// 最初的产品序列号 - /// - public string source_card { get; set; } = string.Empty; - - /// - /// 最初的产品序列号流水号 - /// - public int source_card_seq { get; set; } - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品序列号 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 产品分类代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 关联比例 - /// - public decimal relation_qty { get; set; } - - /// - /// 途程代码 - /// - public string route_code { get; set; } = string.Empty; - - /// - /// 途程版本 - /// - public string route_version { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 工段代码 - /// - public string segment_code { get; set; } = string.Empty; - - /// - /// 工厂代码 - /// - public string factory_code { get; set; } = string.Empty; - - /// - /// 产线代码 - /// - public string production_line_code { get; set; } = string.Empty; - - /// - /// 岗位代码 - /// - public string station_code { get; set; } = string.Empty; - - /// - /// 班制代码 - /// - public string shift_type_code { get; set; } = string.Empty; - - /// - /// 班次代码 - /// - public string shift_code { get; set; } = string.Empty; - - /// - /// 时段代码 - /// - public string tp_code { get; set; } = string.Empty; - - /// - /// 序列号转换类型 IdMerge: 序列号转换, Router: 分板, Replace:序列号替换 - /// - public int id_merge_type { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipTool.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipTool.cs deleted file mode 100644 index 0e75f49b..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipTool.cs +++ /dev/null @@ -1,106 +0,0 @@ -using JNPF.Common.Contracts; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// TODO -/// -[SugarTable("prd_onwip_tool")] -public partial class PrdOnwipTool : BaseEntity -{ - public PrdOnwipTool() - { - - } - /// - /// TODO - /// - public int? tenantid { get; set; } - - /// - /// TODO - /// - public long? orgid { get; set; } - - /// - /// TODO - /// - public string rcard { get; set; } = string.Empty; - - /// - /// TODO - /// - public string toolcode { get; set; } = string.Empty; - - /// - /// TODO - /// - public string routecode { get; set; } = string.Empty; - - /// - /// TODO - /// - public string routeversion { get; set; } = string.Empty; - - /// - /// TODO - /// - public string processcode { get; set; } = string.Empty; - - /// - /// TODO - /// - public int usetimes { get; set; } - - /// - /// TODO - /// - public string? attribute1 { get; set; } - - /// - /// TODO - /// - public string? attribute2 { get; set; } - - /// - /// TODO - /// - public string? attribute3 { get; set; } - - /// - /// TODO - /// - public string? timestamp { get; set; } - - /// - /// TODO - /// - public DateTime? lastmodificationtime { get; set; } - - /// - /// TODO - /// - public long? lastmodifieruserid { get; set; } - - /// - /// TODO - /// - public string? lastmodifierfullname { get; set; } - - /// - /// TODO - /// - public DateTime creationtime { get; set; } = DateTime.Now; - - /// - /// TODO - /// - public long? creatoruserid { get; set; } - - /// - /// TODO - /// - public string? creatorfullname { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipmaterial.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipmaterial.cs deleted file mode 100644 index 41c624be..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdOnwipmaterial.cs +++ /dev/null @@ -1,207 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 上料历史记录 -/// -[SugarTable("prd_onwipmaterial")] -public partial class PrdOnwipmaterial : BaseEntity -{ - public PrdOnwipmaterial() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 产品序列号过站次序 - /// - public int r_card_seq { get; set; } - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 物料上料次序 - /// - public int material_seq { get; set; } - - /// - /// 最小包装号或半成品的产品序列号 - /// - public string material_card { get; set; } = string.Empty; - - /// - /// 产品类型代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 物料代码 - /// - public string material_code { get; set; } = string.Empty; - - /// - /// 物料类型 - /// - public int material_type { get; set; } - - /// - /// 数量 - /// - public decimal qty { get; set; } - - /// - /// 供应商代码 - /// - public string vendor_code { get; set; } = string.Empty; - - /// - /// 供应商LOT号 - /// - public string vendor_lot { get; set; } = string.Empty; - - /// - /// 生产日期(入库日期) - /// - public int date_code { get; set; } - - /// - /// 班制代码 - /// - public string shift_type_code { get; set; } = string.Empty; - - /// - /// 班次代码 - /// - public string shift_code { get; set; } = string.Empty; - - /// - /// 时段代码 - /// - public string tp_code { get; set; } = string.Empty; - - /// - /// 工作天 - /// - public int shift_day { get; set; } - - /// - /// 工艺路线代码 - /// - public string route_code { get; set; } = string.Empty; - - /// - /// 工艺路线版本 - /// - public string route_version { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 工厂代码 - /// - public string factory_code { get; set; } = string.Empty; - - /// - /// 工段代码 - /// - public string segment_code { get; set; } = string.Empty; - - /// - /// 产线代码 - /// - public string production_line_code { get; set; } = string.Empty; - - /// - /// 岗位代码 - /// - public string station_code { get; set; } = string.Empty; - - /// - /// 事件类型:1:上料, 2:拆解 - /// - public string action_type { get; set; } = string.Empty; - - /// - /// 拆解人姓名 - /// - public string? drop_user_name { get; set; } - - /// - /// 拆解人员ID - /// - public string? drop_user_id { get; set; } - - /// - /// 拆解时间 - /// - public DateTime? drop_time { get; set; } - - /// - /// 拆解岗位 - /// - public string? drop_station { get; set; } - - /// - /// 拆解工序 - /// - public string? drop_process_code { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdProcessParameterdata.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdProcessParameterdata.cs deleted file mode 100644 index b97a6daa..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdProcessParameterdata.cs +++ /dev/null @@ -1,137 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// prd_process_parameterdata -/// -[SugarTable("prd_process_parameterdata")] -public partial class PrdProcessParameterdata : BaseEntity -{ - public PrdProcessParameterdata() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品类型代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工作天 - /// - public int shift_day { get; set; } - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 工艺参数代码 - /// - public string parameter_code { get; set; } = string.Empty; - - /// - /// 工艺参数名称 - /// - public string parameter_name { get; set; } = string.Empty; - - /// - /// 工艺参数类型 - /// - public string parameter_type { get; set; } = string.Empty; - - /// - /// 单位 - /// - public string? unit { get; set; } - - /// - /// 下限值 - /// - public decimal? limit_low { get; set; } - - /// - /// 上限值 - /// - public decimal? limit_high { get; set; } - - /// - /// 标准值 - /// - public decimal? standard { get; set; } - - /// - /// 实际值 - /// - public decimal? actual { get; set; } - - /// - /// 结果 - /// - public int? result { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepair.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepair.cs deleted file mode 100644 index e3359227..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepair.cs +++ /dev/null @@ -1,292 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 维修主资料 -/// -[SugarTable("prd_repair")] -public partial class PrdRepair : BaseEntity -{ - public PrdRepair() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 产品序列号过站次序 - /// - public int r_card_seq { get; set; } - - /// - /// 转换前的产品序列号 - /// - public string source_card { get; set; } = string.Empty; - - /// - /// 转换前的产品序列号流水号 - /// - public int source_card_seq { get; set; } - - /// - /// Card类型: cardtype_product: 成品, cardtype_part: 物料 - /// - public string card_type { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品类型代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 送修途程代码 - /// - public string from_route_code { get; set; } = string.Empty; - - /// - /// 送修途程版本 - /// - public string from_route_version { get; set; } = string.Empty; - - /// - /// 送修工序代码 - /// - public string from_process_code { get; set; } = string.Empty; - - /// - /// 送修工段代码 - /// - public string from_segment_code { get; set; } = string.Empty; - - /// - /// 送修产线代码 - /// - public string from_product_linecode { get; set; } = string.Empty; - - /// - /// 送修工位代码 - /// - public string from_station_code { get; set; } = string.Empty; - - /// - /// 送修年份 - /// - public int from_year { get; set; } - - /// - /// 送修月份 - /// - public int from_month { get; set; } - - /// - /// 送修周别 - /// - public int from_week { get; set; } - - /// - /// 班制代码 - /// - public string shift_type_code { get; set; } = string.Empty; - - /// - /// 班次代码 - /// - public string shift_code { get; set; } = string.Empty; - - /// - /// 时段代码 - /// - public string tp_code { get; set; } = string.Empty; - - /// - /// 工作天 - /// - public int shift_day { get; set; } - - /// - /// 送修人名称 - /// - public string from_user_name { get; set; } = string.Empty; - - /// - /// 送修备注 - /// - public string? from_memo { get; set; } - - /// - /// 送修时间 - /// - public DateTime from_time { get; set; } = DateTime.Now; - - /// - /// 维修来源类型 Onwip, Repair, RMA - /// - public string from_input_type { get; set; } = string.Empty; - - /// - /// NG次数 - /// - public int ng_times { get; set; } - - /// - /// 维修状态 New, (产线发现不良) Confirm, (送修完) Repair, (维修中) Complete, (维修完成) Reflow, (维修回流) Scrap, (报废) Repeatng, OffMO, (脱离工单) Split(拆解) - /// - public string repair_status { get; set; } = string.Empty; - - /// - /// 维修完成人名称 - /// - public string? repaired_user_name { get; set; } - - /// - /// 维修完成时间 - /// - public DateTime? repaired_time { get; set; } - - /// - /// 维修完成备注 - /// - public string? repaired_demo { get; set; } - - /// - /// 确认工位代码 - /// - public string? confirm_station_code { get; set; } - - /// - /// 确认产线代码 - /// - public string? confirm_process_code { get; set; } - - /// - /// 确认人员名称 - /// - public string? confirm_user_name { get; set; } - - /// - /// 确认时间 - /// - public DateTime? confirm_time { get; set; } - - /// - /// 回流工单代码 - /// - public string? reflow_mo_code { get; set; } - - /// - /// 回流途程代码 - /// - public string? reflow_route_code { get; set; } - - /// - /// 回流涂程版本 - /// - public string? reflow_route_version { get; set; } - - /// - /// 回流工序代码 - /// - public string? reflow_process_code { get; set; } - - /// - /// 回流岗位代码 - /// - public string? reflow_station_code { get; set; } - - /// - /// 维修岗位代码 - /// - public string? repair_station_code { get; set; } - - /// - /// 报废原因 - /// - public string? scrap_cause { get; set; } - - /// - /// 送修线外工序 - /// - public string? from_out_route_code { get; set; } - - /// - /// 维修类型 Normal: 普通, Misjudge: 误判 - /// - public string? repair_type { get; set; } - - /// - /// RMA单号 - /// - public string? rma_bill_code { get; set; } - - /// - /// 维修人员ID - /// - public string? repair_user_id { get; set; } - - /// - /// 维修人员姓名 - /// - public string? repair_user_name { get; set; } - - /// - /// 维修时间 - /// - public DateTime? repair_time { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorCode.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorCode.cs deleted file mode 100644 index 45657300..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorCode.cs +++ /dev/null @@ -1,92 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 维修不良代码 -/// -[SugarTable("prd_repair_error_code")] -public partial class PrdRepairErrorCode : BaseEntity -{ - public PrdRepairErrorCode() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// GUID - /// - public string repair_id { get; set; } = string.Empty; - - /// - /// 不良代码组 - /// - public string error_group_code { get; set; } = string.Empty; - - /// - /// 不良代码 - /// - public string error_code { get; set; } = string.Empty; - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 产品分类代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcause.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcause.cs deleted file mode 100644 index d396d411..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcause.cs +++ /dev/null @@ -1,137 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 维修不良原因 -/// -[SugarTable("prd_repair_errorcause")] -public partial class PrdRepairErrorcause : BaseEntity -{ - public PrdRepairErrorcause() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// GUID - /// - public string repair_id { get; set; } = string.Empty; - - /// - /// 不良代码组 - /// - public string error_group_code { get; set; } = string.Empty; - - /// - /// 不良代码 - /// - public string error_code { get; set; } = string.Empty; - - /// - /// 不良原因组代码 - /// - public string error_cause_group_code { get; set; } = string.Empty; - - /// - /// 不良原因代码 - /// - public string error_cause_code { get; set; } = string.Empty; - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 产品类型代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 维修资源代码 - /// - public string r_station_code { get; set; } = string.Empty; - - /// - /// 维修工序代码 - /// - public string r_process_code { get; set; } = string.Empty; - - /// - /// 解决方案代码 - /// - public string? solution_code { get; set; } - - /// - /// 责任类别代码 - /// - public string duty_code { get; set; } = string.Empty; - - /// - /// 解决方法 - /// - public string? solution_memo { get; set; } - - /// - /// 工作天 - /// - public int shift_day { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcauseCom.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcauseCom.cs deleted file mode 100644 index 6d4c5841..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcauseCom.cs +++ /dev/null @@ -1,112 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 维修不良原因和不良组件之间的关系 -/// -[SugarTable("prd_repair_errorcause_com")] -public partial class PrdRepairErrorcauseCom : BaseEntity -{ - public PrdRepairErrorcauseCom() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 租户ID - /// - public string? tenant_id { get; set; } - - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// GUID - /// - public string repair_id { get; set; } = string.Empty; - - /// - /// 不良代码组 - /// - public string error_group_code { get; set; } = string.Empty; - - /// - /// 不良代码 - /// - public string error_code { get; set; } = string.Empty; - - /// - /// 不良原因组代码 - /// - public string error_cause_group_code { get; set; } = string.Empty; - - /// - /// 不良原因代码 - /// - public string error_cause_code { get; set; } = string.Empty; - - /// - /// 不良组件名称 - /// - public string component_name { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 产品类型代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 维修资源代码 - /// - public string r_station_code { get; set; } = string.Empty; - - /// - /// 维修工序代码 - /// - public string r_process_code { get; set; } = string.Empty; - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcauseMat.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcauseMat.cs deleted file mode 100644 index 2b7f2580..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairErrorcauseMat.cs +++ /dev/null @@ -1,107 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 维修不良原因和不良物料之间的关系 -/// -[SugarTable("prd_repair_errorcause_mat")] -public partial class PrdRepairErrorcauseMat : BaseEntity -{ - public PrdRepairErrorcauseMat() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// GUID - /// - public string repair_id { get; set; } = string.Empty; - - /// - /// 不良代码组 - /// - public string error_group_code { get; set; } = string.Empty; - - /// - /// 不良代码 - /// - public string error_code { get; set; } = string.Empty; - - /// - /// 不良原因代码 - /// - public string error_cause_group_code { get; set; } = string.Empty; - - /// - /// 不良原因代码 - /// - public string error_cause_code { get; set; } = string.Empty; - - /// - /// 不良物料代码 - /// - public string material_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 产品类型代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 维修资源代码 - /// - public string r_station_code { get; set; } = string.Empty; - - /// - /// 维修工序代码 - /// - public string r_process_code { get; set; } = string.Empty; - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairReflow.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairReflow.cs deleted file mode 100644 index 63512029..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdRepairReflow.cs +++ /dev/null @@ -1,77 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 维修回流工序 -/// -[SugarTable("prd_repair_reflow")] -public partial class PrdRepairReflow : BaseEntity -{ - public PrdRepairReflow() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// GUID - /// - public string repair_id { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 工序顺序 - /// - public int process_seq { get; set; } - - /// - /// 是否已回流执行 - /// - public int is_pass { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReworkrange.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReworkrange.cs deleted file mode 100644 index 3aacef32..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReworkrange.cs +++ /dev/null @@ -1,72 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 返工需求单下的产品 -/// -[SugarTable("prd_reworkrange")] -public partial class PrdReworkrange : BaseEntity -{ - public PrdReworkrange() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// P返工需求单ID - /// - public string rework_id { get; set; } = string.Empty; - - /// - /// 返工需求单代码 - /// - public string rework_code { get; set; } = string.Empty; - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReworksheet.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReworksheet.cs deleted file mode 100644 index d6d41336..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdReworksheet.cs +++ /dev/null @@ -1,132 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 返工需求单 -/// -[SugarTable("prd_reworksheet")] -public partial class PrdReworksheet : BaseEntity -{ - public PrdReworksheet() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 返工需求单代码 - /// - public string rework_code { get; set; } = string.Empty; - - /// - /// 返工类型: 1:OnLine在线返工, 2:QCReject判退返工 - /// - public string rework_type { get; set; } = string.Empty; - - /// - /// 物品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 产品附属信息 - /// - public string? item_attribute { get; set; } - - /// - /// 返工需求单状态 - /// - public string status { get; set; } = string.Empty; - - /// - /// 返工工艺路线 - /// - public string? rework_route { get; set; } - - /// - /// 返工工艺路线版本 - /// - public string? rework_route_version { get; set; } - - /// - /// 返工BOM版本 - /// - public string? rework_bom_version { get; set; } - - /// - /// 返工数量 - /// - public decimal rework_qty { get; set; } - - /// - /// 返工责任别 - /// - public string duty_code { get; set; } = string.Empty; - - /// - /// QC判退批号 - /// - public string? qc_lot { get; set; } - - /// - /// 返工情况说明 - /// - public string rework_reason { get; set; } = string.Empty; - - /// - /// 返工不良分析 - /// - public string reason_analyse { get; set; } = string.Empty; - - /// - /// 返工解决方案 - /// - public string solution { get; set; } = string.Empty; - - /// - /// 是否需要签核 - /// - public string need_check { get; set; } = string.Empty; - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdScrapped.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdScrapped.cs deleted file mode 100644 index b6459a04..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdScrapped.cs +++ /dev/null @@ -1,56 +0,0 @@ -using SqlSugar; - -namespace DbModels -{ - /// - ///TODO - /// - [SugarTable("prd_self_test_scrapped")] - public class PrdScrapped - { - /// - /// 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 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/PrdSerialBook.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSerialBook.cs deleted file mode 100644 index 8a2783b2..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSerialBook.cs +++ /dev/null @@ -1,92 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 标签序列号流水记录表 -/// -[SugarTable("prd_serial_book")] -public partial class PrdSerialBook : BaseEntity -{ - public PrdSerialBook() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 条码类型 - /// - public string sn_type { get; set; } = string.Empty; - - /// - /// 前缀 - /// - public string prefix { get; set; } = string.Empty; - - /// - /// 年度 - /// - public int year { get; set; } - - /// - /// 季度 - /// - public int quarter { get; set; } - - /// - /// 月份 - /// - public int month { get; set; } - - /// - /// 周别 - /// - public int week { get; set; } - - /// - /// 日期 - /// - public int date { get; set; } - - /// - /// 最大流水号 - /// - public string max_serial { get; set; } = string.Empty; - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSimulation.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSimulation.cs deleted file mode 100644 index 121b42a9..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSimulation.cs +++ /dev/null @@ -1,162 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 在制品信息 -/// -[SugarTable("prd_simulation")] -public partial class PrdSimulation : BaseEntity -{ - public PrdSimulation() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品序列号 - /// - public string? r_card { get; set; } - - /// - /// 产品序列号过站次序 - /// - public int r_card_seq { get; set; } - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 转换前的产品序列号 - /// - public string source_card { get; set; } = string.Empty; - - /// - /// 转换前的产品序列号流水号 - /// - public int source_card_seq { get; set; } - - /// - /// 产品类型代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 关联比例 - /// - public decimal relation_qty { get; set; } - - /// - /// 工艺路线代码 - /// - public string route_code { get; set; } = string.Empty; - - /// - /// 工艺路线版本 - /// - public string route_version { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 岗位代码 - /// - public string station_code { get; set; } = string.Empty; - - /// - /// 装箱条码 - /// - public string? carton_code { get; set; } - - /// - /// 抽检批号 - /// - public string? lot_no { get; set; } - - /// - /// 产品状态 - /// - public string product_status { get; set; } = string.Empty; - - /// - /// 最后过站事件代码 - /// - public string last_action { get; set; } = string.Empty; - - /// - /// 过站事件列表 - /// - public string action_list { get; set; } = string.Empty; - - /// - /// NG总次数 - /// - public int ng_times { get; set; } - - /// - /// 过站开始时间 - /// - public DateTime begin_time { get; set; } = DateTime.Now; - - /// - /// 过站结束时间 - /// - public DateTime? end_time { get; set; } - - /// - /// 是否完工 - /// - public int is_complete { get; set; } - - /// - /// 员工表 - /// - public string? staffs { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSimulationreport.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSimulationreport.cs deleted file mode 100644 index 5d2967f5..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdSimulationreport.cs +++ /dev/null @@ -1,197 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 在制品历史记录 -/// -[SugarTable("prd_simulationreport")] -public partial class PrdSimulationreport : BaseEntity -{ - public PrdSimulationreport() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 产品序列号过站次序 - /// - public int r_card_seq { get; set; } - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 转换前的产品序列号 - /// - public string source_card { get; set; } = string.Empty; - - /// - /// 转换前的产品序列号流水号 - /// - public int source_card_seq { get; set; } - - /// - /// 产品类型代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 关联比例 - /// - public decimal relation_qty { get; set; } - - /// - /// 班制代码 - /// - public string shift_type_code { get; set; } = string.Empty; - - /// - /// 班次代码 - /// - public string shift_code { get; set; } = string.Empty; - - /// - /// 时段代码 - /// - public string tp_code { get; set; } = string.Empty; - - /// - /// 工作天 - /// - public int shift_day { get; set; } - - /// - /// 工艺路线代码 - /// - public string route_code { get; set; } = string.Empty; - - /// - /// 工艺路线版本 - /// - public string route_version { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 工厂代码 - /// - public string factory_code { get; set; } = string.Empty; - - /// - /// 工段代码 - /// - public string segment_code { get; set; } = string.Empty; - - /// - /// 产线代码 - /// - public string production_line_code { get; set; } = string.Empty; - - /// - /// 岗位代码 - /// - public string station_code { get; set; } = string.Empty; - - /// - /// 装箱条码 - /// - public string? carton_code { get; set; } - - /// - /// 抽检批号 - /// - public string? lot_no { get; set; } - - /// - /// 产品状态: GOOD, OFFLINE, OFFMO, OUTLINE, NG, REJECT, SCRAP - /// - public string product_status { get; set; } = string.Empty; - - /// - /// 最后过站事件代码 - /// - public string last_action { get; set; } = string.Empty; - - /// - /// 过站事件列表 - /// - public string action_list { get; set; } = string.Empty; - - /// - /// NG总次数 - /// - public int ng_times { get; set; } - - /// - /// 过站开始时间 - /// - public DateTime begin_time { get; set; } = DateTime.Now; - - /// - /// 过站结束时间 - /// - public DateTime? end_time { get; set; } - - /// - /// 是否完工 - /// - public int is_complete { get; set; } - - /// - /// 员工表 - /// - public string? staffs { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdStationPrepareMaterial.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdStationPrepareMaterial.cs deleted file mode 100644 index cd84f07b..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdStationPrepareMaterial.cs +++ /dev/null @@ -1,132 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 批控管料备料(岗位用料信息) -/// -[SugarTable("prd_station_prepare_material")] -public partial class PrdStationPrepareMaterial : BaseEntity -{ - public PrdStationPrepareMaterial() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 物料备料顺序(按单个物料进行排序) - /// - public int seq { get; set; } - - /// - /// 工序BOM物料代码(主料) - /// - public string bom_material_code { get; set; } = string.Empty; - - /// - /// 备料物料代码(主料或替代料) - /// - public string prepare_material_code { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品类型代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工序BOM版本 - /// - public string process_bom_version { get; set; } = string.Empty; - - /// - /// 工艺路线代码 - /// - public string route_code { get; set; } = string.Empty; - - /// - /// 工艺路线版本 - /// - public string route_version { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 岗位代码 - /// - public string station_code { get; set; } = string.Empty; - - /// - /// 最小包装号或半成品的产品序列号,INV_BARCODE.BARCODE - /// - public string material_card { get; set; } = string.Empty; - - /// - /// 数量 - /// - public decimal qty { get; set; } - - /// - /// 供应商代码 - /// - public string vendor_code { get; set; } = string.Empty; - - /// - /// 供应商LOT号 - /// - public string vendor_lot { get; set; } = string.Empty; - - /// - /// 生产日期(入库日期) - /// - public DateTime date_code { get; set; } = DateTime.Now; - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdStationPrepareTool.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdStationPrepareTool.cs deleted file mode 100644 index 96cfd2ad..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdStationPrepareTool.cs +++ /dev/null @@ -1,102 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 批控管料备料工具 -/// -[SugarTable("prd_station_prepare_tool")] -public partial class PrdStationPrepareTool : BaseEntity -{ - public PrdStationPrepareTool() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 工具类型代码 - /// - public string tool_type_code { get; set; } = string.Empty; - - /// - /// 模型代码 - /// - public string model_code { get; set; } = string.Empty; - - /// - /// 工具代码 - /// - public string tool_code { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品类型代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工艺路线代码 - /// - public string route_code { get; set; } = string.Empty; - - /// - /// 工艺路线版本 - /// - public string route_version { get; set; } = string.Empty; - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 岗位代码 - /// - public string station_code { get; set; } = string.Empty; - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -} diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdTestdataTemporary.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdTestdataTemporary.cs deleted file mode 100644 index 1496fe37..00000000 --- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdTestdataTemporary.cs +++ /dev/null @@ -1,147 +0,0 @@ -using JNPF.Common.Contracts; -using JNPF.Common.Security; -using SqlSugar; - -namespace Tnb.ProductionMgr.Entities; - -/// -/// 生产测试数据临时记录 -/// -[SugarTable("prd_testdata_temporary")] -public partial class PrdTestdataTemporary : BaseEntity -{ - public PrdTestdataTemporary() - { - id = SnowflakeIdHelper.NextId(); - } - /// - /// 所属组织 - /// - public string? org_id { get; set; } - - /// - /// 产品序列号 - /// - public string r_card { get; set; } = string.Empty; - - /// - /// 工单代码 - /// - public string mo_code { get; set; } = string.Empty; - - /// - /// 产品类型代码 - /// - public string category_code { get; set; } = string.Empty; - - /// - /// 产品代码 - /// - public string item_code { get; set; } = string.Empty; - - /// - /// 工作天 - /// - public int shift_day { get; set; } - - /// - /// 工序代码 - /// - public string process_code { get; set; } = string.Empty; - - /// - /// 检验类型代码 - /// - public string check_type_code { get; set; } = string.Empty; - - /// - /// 检验类型名称 - /// - public string check_type_name { get; set; } = string.Empty; - - /// - /// 检验项目代码 - /// - public string check_item_code { get; set; } = string.Empty; - - /// - /// 检验项目名称 - /// - public string check_item_name { get; set; } = string.Empty; - - /// - /// Value:值检验项/Result:结果检验项 - /// - public string result_type { get; set; } = string.Empty; - - /// - /// 判断类型: 1:Auto自动判断 2:Manual人工判断 - /// - public int judge_type { get; set; } - - /// - /// 单位 - /// - public string? unit { get; set; } - - /// - /// 下限值 - /// - public decimal? limit_low { get; set; } - - /// - /// 上限值 - /// - public decimal? limit_high { get; set; } - - /// - /// 标准值 - /// - public decimal? standard { get; set; } - - /// - /// 实际值 - /// - public string? actual { get; set; } - - /// - /// 结果 - /// - public int result { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 时间戳 - /// - public string? time_stamp { get; set; } - - /// - /// 创建用户 - /// - public string? create_id { get; set; } - - /// - /// 创建时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改用户 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - - /// - /// 扩展字段 - /// - public string? extras { get; set; } - -}