Ver Fonte

提交mongodbmodel

heteng há 3 anos atrás
pai
commit
646cebae43
100 ficheiros alterados com 8764 adições e 0 exclusões
  1. 1 0
      MicroServices/Business/Business.Application/Business.Application.csproj
  2. 5 0
      MicroServices/Business/Business.Application/BusinessApplicationAutoMapperProfile.cs
  3. 6 0
      MicroServices/Business/Business.sln
  4. 78 0
      MicroServices/Business/Bussiness.MongoDB.Model/Base/MoBaseEntity.cs
  5. 18 0
      MicroServices/Business/Bussiness.MongoDB.Model/Bussiness.MongoModel.csproj
  6. 139 0
      MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_bom.cs
  7. 158 0
      MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_bom_child.cs
  8. 162 0
      MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_check.cs
  9. 250 0
      MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_factory_details.cs
  10. 246 0
      MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_item.cs
  11. 62 0
      MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_item_ie.cs
  12. 100 0
      MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_item_inventory.cs
  13. 97 0
      MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_item_pur.cs
  14. 56 0
      MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_item_stock.cs
  15. 59 0
      MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_item_stockoccupy.cs
  16. 76 0
      MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_metering_unit.cs
  17. 152 0
      MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_plan.cs
  18. 46 0
      MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_substitute.cs
  19. 76 0
      MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_substitute_all.cs
  20. 67 0
      MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_substitute_all_dtl.cs
  21. 87 0
      MicroServices/Business/Bussiness.MongoDB.Model/Production/mes_moentry.cs
  22. 144 0
      MicroServices/Business/Bussiness.MongoDB.Model/Production/mes_mooccupy.cs
  23. 327 0
      MicroServices/Business/Bussiness.MongoDB.Model/Production/mes_morder.cs
  24. 136 0
      MicroServices/Business/Bussiness.MongoDB.Model/Production/mes_morder_loss_time.cs
  25. 245 0
      MicroServices/Business/Bussiness.MongoDB.Model/Production/mes_oorder.cs
  26. 71 0
      MicroServices/Business/Bussiness.MongoDB.Model/Production/mes_schedule_occupy.cs
  27. 125 0
      MicroServices/Business/Bussiness.MongoDB.Model/Production/mes_stockoccupy.cs
  28. 94 0
      MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_loss_time_record.cs
  29. 63 0
      MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_meaction.cs
  30. 66 0
      MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_mebycard.cs
  31. 51 0
      MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_merecheck.cs
  32. 65 0
      MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_mereport.cs
  33. 127 0
      MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_prd_sendmat.cs
  34. 168 0
      MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_prd_sendmat_list.cs
  35. 66 0
      MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_prdlog.cs
  36. 50 0
      MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_product_work_time.cs
  37. 74 0
      MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_stock_enter.cs
  38. 110 0
      MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_stock_out.cs
  39. 78 0
      MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_swipe_card.cs
  40. 56 0
      MicroServices/Business/Bussiness.MongoDB.Model/SIM/sim_base.cs
  41. 64 0
      MicroServices/Business/Bussiness.MongoDB.Model/SIM/sim_issue_type.cs
  42. 30 0
      MicroServices/Business/Bussiness.MongoDB.Model/SIM/sim_plant.cs
  43. 36 0
      MicroServices/Business/Bussiness.MongoDB.Model/SIM/sim_user_relation.cs
  44. 200 0
      MicroServices/Business/Bussiness.MongoDB.Model/SRM/srm_po_list.cs
  45. 126 0
      MicroServices/Business/Bussiness.MongoDB.Model/SRM/srm_po_main.cs
  46. 98 0
      MicroServices/Business/Bussiness.MongoDB.Model/SRM/srm_po_occupy.cs
  47. 222 0
      MicroServices/Business/Bussiness.MongoDB.Model/SRM/srm_pr_main.cs
  48. 96 0
      MicroServices/Business/Bussiness.MongoDB.Model/SRM/srm_purchase.cs
  49. 230 0
      MicroServices/Business/Bussiness.MongoDB.Model/Sale/crm_seorder.cs
  50. 346 0
      MicroServices/Business/Bussiness.MongoDB.Model/Sale/crm_seorderentry.cs
  51. 93 0
      MicroServices/Business/Bussiness.MongoDB.Model/Sale/crm_seorderprog.cs
  52. 144 0
      MicroServices/Business/Bussiness.MongoDB.Model/Sale/crm_seorderreview.cs
  53. 51 0
      MicroServices/Business/Bussiness.MongoDB.Model/Sale/wms_prdprogress.cs
  54. 67 0
      MicroServices/Business/Bussiness.MongoDB.Model/Sale/wms_shipnotice.cs
  55. 107 0
      MicroServices/Business/Bussiness.MongoDB.Model/Sale/wms_shipnoticelist.cs
  56. 43 0
      MicroServices/Business/Bussiness.MongoDB.Model/Sale/wms_shipplan.cs
  57. 120 0
      MicroServices/Business/Bussiness.MongoDB.Model/Sale/wms_shipplanlist.cs
  58. 219 0
      MicroServices/Business/Bussiness.MongoDB.Model/SystemData/crm_customer.cs
  59. 341 0
      MicroServices/Business/Bussiness.MongoDB.Model/SystemData/srm_supplier.cs
  60. 62 0
      MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_code.cs
  61. 54 0
      MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_code_pre.cs
  62. 49 0
      MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_config.cs
  63. 53 0
      MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_measure_unit.cs
  64. 83 0
      MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_post.cs
  65. 35 0
      MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_post_staff.cs
  66. 82 0
      MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_schedule.cs
  67. 65 0
      MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_shift.cs
  68. 42 0
      MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_shift_invalid_time.cs
  69. 37 0
      MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_shift_schedule.cs
  70. 163 0
      MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_staff.cs
  71. 49 0
      MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_upload.cs
  72. 65 0
      MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_process.cs
  73. 52 0
      MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_tech_proc_accessory.cs
  74. 44 0
      MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_tech_proc_document.cs
  75. 50 0
      MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_tech_proc_equipment.cs
  76. 44 0
      MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_tech_proc_icitem.cs
  77. 43 0
      MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_tech_proc_workshop.cs
  78. 44 0
      MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_tech_proc_workshop_staff.cs
  79. 156 0
      MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_tech_process.cs
  80. 64 0
      MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_technique.cs
  81. 117 0
      MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_work_calendar.cs
  82. 54 0
      MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_work_calendar_list.cs
  83. 71 0
      MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_workshop.cs
  84. 50 0
      MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_workshop_shelf.cs
  85. 154 0
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Bussiness.MongoDB.Model.csproj.nuget.dgspec.json
  86. 22 0
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Bussiness.MongoDB.Model.csproj.nuget.g.props
  87. 6 0
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Bussiness.MongoDB.Model.csproj.nuget.g.targets
  88. 154 0
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Bussiness.MongoModel.csproj.nuget.dgspec.json
  89. 22 0
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Bussiness.MongoModel.csproj.nuget.g.props
  90. 6 0
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Bussiness.MongoModel.csproj.nuget.g.targets
  91. 4 0
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs
  92. 23 0
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoDB.Model.AssemblyInfo.cs
  93. 1 0
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoDB.Model.AssemblyInfoInputs.cache
  94. 11 0
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoDB.Model.GeneratedMSBuildEditorConfig.editorconfig
  95. 8 0
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoDB.Model.GlobalUsings.g.cs
  96. BIN
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoDB.Model.assets.cache
  97. BIN
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoDB.Model.csproj.AssemblyReference.cache
  98. 23 0
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoModel.AssemblyInfo.cs
  99. 1 0
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoModel.AssemblyInfoInputs.cache
  100. 11 0
      MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoModel.GeneratedMSBuildEditorConfig.editorconfig

+ 1 - 0
MicroServices/Business/Business.Application/Business.Application.csproj

@@ -25,6 +25,7 @@
     <ProjectReference Include="..\Business.Application.Contracts\Business.Application.Contracts.csproj" />
     <ProjectReference Include="..\Business.Domain\Business.Domain.csproj" />
     <ProjectReference Include="..\Bussiness.Model\Bussiness.Model.csproj" />
+    <ProjectReference Include="..\Bussiness.MongoDB.Model\Bussiness.MongoModel.csproj" />
   </ItemGroup>
 
 </Project>

+ 5 - 0
MicroServices/Business/Business.Application/BusinessApplicationAutoMapperProfile.cs

@@ -1,6 +1,8 @@
 using AutoMapper;
 using Business.ResourceExamineManagement.Dto;
 using Bussiness.Model.MES.IC;
+using Bussiness.Model.Tech;
+using Bussiness.MongoModel.Tech;
 
 namespace Business
 {
@@ -10,6 +12,9 @@ namespace Business
         {
             CreateMap<ic_bom, BomDto>();
             CreateMap<ic_bom, BomChildExamineDto>();
+
+            CreateMap<mes_process, mo_mes_process>()
+                .ForMember(d => d.mysql_id, p => p.MapFrom(o => o.Id));
         }
     }
 }

+ 6 - 0
MicroServices/Business/Business.sln

@@ -21,6 +21,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bussiness.Model", "Bussines
 EndProject
 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Business.Core", "Business.Core\Business.Core.csproj", "{EFA46C37-CF8B-425D-8DE3-85FE11116980}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bussiness.MongoModel", "Bussiness.MongoDB.Model\Bussiness.MongoModel.csproj", "{E0000FB5-B868-4622-B106-A77ADC6982BC}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
@@ -63,6 +65,10 @@ Global
 		{EFA46C37-CF8B-425D-8DE3-85FE11116980}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{EFA46C37-CF8B-425D-8DE3-85FE11116980}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{EFA46C37-CF8B-425D-8DE3-85FE11116980}.Release|Any CPU.Build.0 = Release|Any CPU
+		{E0000FB5-B868-4622-B106-A77ADC6982BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{E0000FB5-B868-4622-B106-A77ADC6982BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{E0000FB5-B868-4622-B106-A77ADC6982BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{E0000FB5-B868-4622-B106-A77ADC6982BC}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE

+ 78 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Base/MoBaseEntity.cs

@@ -0,0 +1,78 @@
+using Volo.Abp;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel;
+using Volo.Abp.Domain.Entities;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Business.MongoModel
+{
+    /// <summary>
+    /// mongodb基类
+    /// </summary>
+    public abstract class MoBaseEntity 
+    {
+        /// <summary>
+        /// mysql表主键
+        /// </summary>
+        [Comment("mysql表主键")]
+        public virtual long? mysql_id { get; set; }
+
+        /// <summary>
+        /// 创建人
+        /// </summary>
+        [Comment("创建人id")]
+        public virtual long? create_by { get; set; }
+
+        /// <summary>
+        /// 创建人名称
+        /// </summary>
+        [StringLength(50)]
+        [Comment("创建人名称")]
+        public virtual string? create_by_name { get; set; }
+
+        /// <summary>
+        /// 创建时间
+        /// </summary>
+        [Comment("创建时间")]
+        public virtual DateTime? create_time { get; set; }
+
+        /// <summary>
+        /// 修改人
+        /// </summary>
+        [Comment("修改人")]
+        public virtual long? update_by { get; set; }
+
+        /// <summary>
+        /// 修改人名称
+        /// </summary>
+        [StringLength(50)]
+        [Comment("修改人名称")]
+        public virtual string? update_by_name { get; set; }
+
+        /// <summary>
+        /// 修改时间
+        /// </summary>
+        [Comment("修改时间")]
+        public virtual DateTime? update_time { get; set; }
+
+        /// <summary>
+        /// 企业ID
+        /// </summary>
+        [Required]
+        [Comment("企业ID")]
+        public virtual long tenant_id { get; set; }
+
+        /// <summary>
+        /// 工厂ID
+        /// </summary>
+        [Comment("工厂ID")]
+        public virtual long? factory_id { get; set; }
+
+        /// <summary>
+        /// 组织ID
+        /// </summary>
+        [Comment("组织ID")]
+        public virtual long? org_id { get; set; }
+    }
+}

+ 18 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Bussiness.MongoModel.csproj

@@ -0,0 +1,18 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <TargetFramework>net6.0</TargetFramework>
+    <ImplicitUsings>enable</ImplicitUsings>
+    <Nullable>enable</Nullable>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <PackageReference Include="MongoDB.Driver.Core" Version="2.19.0" />
+    <PackageReference Include="Volo.Abp.EntityFrameworkCore" Version="6.0.2" />
+  </ItemGroup>
+
+  <ItemGroup>
+    <ProjectReference Include="..\Business.Core\Business.Core.csproj" />
+  </ItemGroup>
+
+</Project>

+ 139 - 0
MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_bom.cs

@@ -0,0 +1,139 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Volo.Abp;
+
+namespace Bussiness.Model.MES.IC
+{
+    /// <summary>
+    /// 物料BOM
+    /// </summary>
+    [CollectionName("dopbase", "ic_bom")]
+    [Comment("物料BOM")]
+    public class ic_bom : BaseEntity
+    {
+        /// <summary>
+        /// bom单编号
+        /// </summary>
+        [StringLength(20)]
+        [Comment("bom单编号")]
+        public string? bom_number { get; set; }
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Required]
+        [Comment("物料id")]
+        public long icitem_id { get; set; }
+        /// <summary>
+        /// 物料代码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料代码")]
+        public string? item_number { get; set; }
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(200)]
+        [Comment("物料名称")]
+        public string? item_name { get; set; }
+        /// <summary>
+        /// 序号
+        /// </summary>
+        [Comment("序号")]
+        public int bom_num { get; set; }
+        /// <summary>
+        /// 使用状态
+        /// </summary>
+        [Comment("使用状态")]
+        public int fse_status { get; set; }
+        /// <summary>
+        /// 生效日期
+        /// </summary>
+        [Comment("生效日期")]
+        public DateTime? begin_day { get; set; }
+        /// <summary>
+        /// 失效日期
+        /// </summary>
+        [Comment("失效日期")]
+        public DateTime? end_day { get; set; }
+        /// <summary>
+        /// 工艺主键
+        /// </summary>
+        [Required]
+        [Comment("工艺主键")]
+        public long tech_id { get; set; }
+        /// <summary>
+        /// 工艺名称
+        /// </summary>
+        [StringLength(20)]
+        [Comment("工艺名称")]
+        public string? tech_name { get; set; }
+
+        /// <summary>
+        /// 生产负责人
+        /// </summary>
+        [StringLength(80)]
+        [Comment("生产负责人")]
+        public string? product_principal { get; set; }
+        /// <summary>
+        /// 产品设计员
+        /// </summary>
+        [StringLength(80)]
+        [Comment("产品设计员")]
+        public string? product_designer { get; set; }
+        /// <summary>
+        /// 版本
+        /// </summary>
+        [StringLength(80)]
+        [Comment("版本")]
+        public string? version { get; set; }
+        /// <summary>
+        /// 图表编号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("图表编号")]
+        public string? chartnumber { get; set; }
+        /// <summary>
+        /// 图片
+        /// </summary>
+        [StringLength(80)]
+        [Comment("图片")]
+        public string? biller { get; set; }
+        /// <summary>
+        /// 检验人
+        /// </summary>
+        [StringLength(80)]
+        [Comment("检验人")]
+        public string? checker { get; set; }
+        /// <summary>
+        /// 检验时间
+        /// </summary>
+        [Comment("检验时间")]
+        public DateTime? check_date { get; set; }
+        /// <summary>
+        /// bom创建人
+        /// </summary>
+        [StringLength(20)]
+        [Comment("bom创建人")]
+        public string? user { get; set; }
+        /// <summary>
+        /// bom创建时间
+        /// </summary>
+        [Comment("bom创建时间")]
+        public DateTime? use_date { get; set; }
+        /// <summary>
+        /// 单位
+        /// </summary>
+        [StringLength(20)]
+        [Comment("单位")]
+        public string? unit { get; set; }
+    }
+}

+ 158 - 0
MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_bom_child.cs

@@ -0,0 +1,158 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using MongoDB.Bson.Serialization.Attributes;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.MES.IC
+{
+    /// <summary>
+    /// 物料BOM明细
+    /// </summary>
+    [CollectionName("dopbase", "ic_bom_child")]
+    [Comment("物料BOM明细")]
+    public class ic_bom_child : BaseEntity
+    {
+        /// <summary>
+        /// bom主键
+        /// </summary>
+        [Required]
+        [Comment("bom主键")]
+        public long bom_id { get; set; }
+        /// <summary>
+        /// bom单编号
+        /// </summary>
+        [StringLength(20)]
+        [Comment("bom单编号")]
+        public string? bom_number { get; set; }
+        /// <summary>
+        /// 是否是BOM
+        /// </summary>
+        [Required]
+        [Comment("是否是BOM")]
+        public int is_bom { get; set; }
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Required]
+        [Comment("物料id")]
+        public long icitem_id { get; set; }
+        /// <summary>
+        /// 物料代码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料代码")]
+        public string? item_number { get; set; }
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(200)]
+        [Comment("物料名称")]
+        public string? item_name { get; set; }
+        /// <summary>
+        /// 单位
+        /// </summary>
+        [StringLength(20)]
+        [Comment("单位")]
+        public string? unit { get; set; }
+        /// <summary>
+        /// 用量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("用量")]
+        public decimal? qty { get; set; }
+        /// <summary>
+        /// 损耗率
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("损耗率")]
+        public decimal? scrap { get; set; }
+        /// <summary>
+        /// 是否倒冲
+        /// </summary>
+        [Comment("是否倒冲")]
+        public int backflush { get; set; }
+        /// <summary>
+        /// 是否关键件
+        /// </summary>
+        [Comment("是否关键件")]
+        public int iskeyitem { get; set; }
+        /// <summary>
+        /// 存在替代关系
+        /// </summary>
+        [Comment("存在替代关系")]
+        public int haveicsubs { get; set; }
+        /// <summary>
+        /// 群组代码
+        /// </summary>
+        [StringLength(20)]
+        [Comment("群组代码")]
+        public string? substitute_code { get; set; }
+        /// <summary>
+        /// 是否群组替代
+        /// </summary>
+        [Comment("是否群组替代")]
+        public int is_replace { get; set; }
+        /// <summary>
+        /// 组合模式
+        /// </summary>
+        [StringLength(2000)]
+        [Comment("组合模式")]
+        public string? icitem_ids { get; set; }
+        /// <summary>
+        /// 备注
+        /// </summary>
+        [StringLength(1000)]
+        [Comment("备注")]
+        public string? note { get; set; }
+        /// <summary>
+        /// 顺序号
+        /// </summary>
+        [Comment("顺序号")]
+        public int entryid { get; set; }
+        /// <summary>
+        /// 物料类型
+        /// </summary>
+        [Comment("物料类型")]
+        public int type { get; set; }
+        /// <summary>
+        /// 物料属性
+        /// </summary>
+        [Comment("物料属性")]
+        public int erp_cls { get; set; }
+        /// <summary>
+        /// 使用状态
+        /// </summary>
+        [Comment("使用状态")]
+        public int use_status { get; set; }
+        /// <summary>
+        /// 生效日期
+        /// </summary>
+        [Comment("生效日期")]
+        public DateTime? begin_day { get; set; }
+        /// <summary>
+        /// 失效日期
+        /// </summary>
+        [Comment("失效日期")]
+        public DateTime? end_day { get; set; }
+        /// <summary>
+        /// 操作时间
+        /// </summary>
+        [Comment("操作时间")]
+        public DateTime? op_time { get; set; }
+        /// <summary>
+        /// 序号
+        /// </summary>
+        [Comment("序号")]
+        public int child_num { get; set; }
+
+       /// <summary>
+        /// 版本
+        /// </summary>
+        [StringLength(80)]
+        [Comment("版本")]
+        public string? version { get; set; }
+    }
+}
+

+ 162 - 0
MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_check.cs

@@ -0,0 +1,162 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Bussiness.Model.MES.IC
+{
+    /// <summary>
+    /// 物料检验表
+    /// </summary>
+    [CollectionName("dopbase", "ic_check")]
+    [Comment("物料检验表")]
+    public class ic_check : BaseEntity
+    {
+        /// <summary>
+        /// 主键
+        /// </summary>
+        [Key]
+        [Required]
+        [Comment("主键")]
+        public long ic_check_id { get; set; }
+        /// <summary>
+        /// 工厂编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("工厂编码")]
+        public string? factory_code { get; set; }
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Required]
+        [Comment("物料id")]
+        public long icitem_id { get; set; }
+        /// <summary>
+        /// 批次号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("批次号")]
+        public string? batch_no { get; set; }
+        /// <summary>
+        /// 检验方案
+        /// </summary>
+        [StringLength(80)]
+        [Comment("检验方案")]
+        public string? inspection_project { get; set; }
+        /// <summary>
+        /// 检验员
+        /// </summary>
+        [StringLength(80)]
+        [Comment("检验员")]
+        public string? identifier { get; set; }
+        /// <summary>
+        /// 检验卡号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("检验卡号")]
+        public string? chk_card { get; set; }
+        /// <summary>
+        /// 采购检验方式
+        /// </summary>
+        [Comment("采购检验方式")]
+        public long? inspection_level { get; set; }
+        /// <summary>
+        /// 委外加工检验方式
+        /// </summary>
+        [Comment("委外加工检验方式")]
+        public long? ww_chk_mde { get; set; }
+        /// <summary>
+        /// 产品检验方式
+        /// </summary>
+        [Comment("产品检验方式")]
+        public long? pro_chk_mde { get; set; }
+        /// <summary>
+        /// 发货检验方式
+        /// </summary>
+        [Comment("发货检验方式")]
+        public long? so_chk_mde { get; set; }
+        /// <summary>
+        /// 退货检验方式
+        /// </summary>
+        [Comment("退货检验方式")]
+        public long? wth_drw_chk_mde { get; set; }
+        /// <summary>
+        /// 库存检验方式
+        /// </summary>
+        [Comment("库存检验方式")]
+        public long? stk_chk_mde { get; set; }
+        /// <summary>
+        /// 其他检验方式
+        /// </summary>
+        [Comment("其他检验方式")]
+        public long? other_chk_mde { get; set; }
+        /// <summary>
+        /// 抽样标准_致命
+        /// </summary>
+        [Comment("抽样标准_致命")]
+        public string? critical_samp_std { get; set; }
+        /// <summary>
+        /// 抽样标准_严重
+        /// </summary>
+        [Comment("抽样标准_严重")]
+        public string? samp_std { get; set; }
+        /// <summary>
+        /// 抽样标准_轻微
+        /// </summary>
+        [Comment("抽样标准_轻微")]
+        public string? slight_samp_std { get; set; }
+        /// <summary>
+        /// 库存检验周期_天
+        /// </summary>
+        [Comment("库存检验周期_天")]
+        public decimal? stk_chk_prd { get; set; }
+        /// <summary>
+        /// 库存周期检验预警提前期_天
+        /// </summary>
+        [Comment("库存周期检验预警提前期_天")]
+        public decimal? stk_chk_alrm { get; set; }
+        /// <summary>
+        /// 保质期管理
+        /// </summary>
+        [Comment("保质期管理")]
+        public int? allow_exp { get; set; }
+        /// <summary>
+        /// 有效天数
+        /// </summary>
+        [Comment("有效天数")]
+        public decimal? effecdays { get; set; }
+        /// <summary>
+        /// 复检天数
+        /// </summary>
+        [Comment("复检天数")]
+        public decimal? retestdays { get; set; }
+        /// <summary>
+        /// 是否质检
+        /// </summary>
+        [Comment("是否质检")]
+        public int? istest { get; set; }
+        /// <summary>
+        /// 质检周期/天
+        /// </summary>
+        [Comment("质检周期/天")]
+        public decimal? testperid { get; set; }
+        /// <summary>
+        /// 检验项目
+        /// </summary>
+        [StringLength(80)]
+        [Comment("检验项目")]
+        public long? test_item { get; set; }
+        /// <summary>
+        /// 质量备注
+        /// </summary>
+        [StringLength(1000)]
+        [Comment("质量备注")]
+        public long? quality_note { get; set; }
+    }
+}

+ 250 - 0
MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_factory_details.cs

@@ -0,0 +1,250 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Bussiness.Model.MES.IC
+{
+    /// <summary>
+    /// 工厂物料明细表
+    /// </summary>
+    [CollectionName("dopbase", "ic_factory_details")]
+    [Comment("工厂物料明细表")]
+    public class ic_factory_details : BaseEntity
+    {
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Required]
+        [Comment("物料id")]
+        public long icitem_id { get; set; }
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料名称")]
+        public string? icitem_name { get; set; }
+        /// <summary>
+        /// 工厂编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("工厂编码")]
+        public string? factory_fode { get; set; }
+        /// <summary>
+        /// 特殊备注
+        /// </summary>
+        [StringLength(1000)]
+        [Comment("特殊备注")]
+        public string? note { get; set; }
+        /// <summary>
+        /// 产品线
+        /// </summary>
+        [StringLength(80)]
+        [Comment("产品线")]
+        public string? product_line { get; set; }
+        /// <summary>
+        /// 领料类型
+        /// </summary>
+        [Required]
+        [Comment("领料类型")]
+        public long pick_type { get; set; }
+        /// <summary>
+        /// 是否采用业务批次管理
+        /// </summary>
+        [Comment("是否采用业务批次管理")]
+        public int batch_manager { get; set; }
+        /// <summary>
+        /// 是否需要库龄管理
+        /// </summary>
+        [Comment("是否需要库龄管理")]
+        public int stock_time { get; set; }
+        /// <summary>
+        /// 盘点周期单位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("盘点周期单位")]
+        public string? check_cycunit { get; set; }
+        /// <summary>
+        /// 盘点周期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("盘点周期")]
+        public decimal? check_cycle { get; set; }
+        /// <summary>
+        /// 每周_月第天
+        /// </summary>
+        [Comment("每周_月第天")]
+        public int days_per { get; set; }
+        /// <summary>
+        /// 上次盘点日期
+        /// </summary>
+        [Comment("上次盘点日期")]
+        public DateTime? last_checkdate { get; set; }
+        /// <summary>
+        /// 默认待检仓库
+        /// </summary>
+        [Required]
+        [Comment("默认待检仓库")]
+        public long default_chkloc { get; set; }
+        /// <summary>
+        /// 默认待检仓位
+        /// </summary>
+        [Required]
+        [Comment("默认待检仓位")]
+        public long default_chksp { get; set; }
+        /// <summary>
+        /// 默认仓库
+        /// </summary>
+        [Required]
+        [Comment("默认仓库")]
+        public long default_loc { get; set; }
+        /// <summary>
+        /// 默认仓位
+        /// </summary>
+        [Required]
+        [Comment("默认仓位")]
+        public long default_sp { get; set; }
+        /// <summary>
+        /// 货架信息
+        /// </summary>
+        [StringLength(80)]
+        [Comment("货架信息")]
+        public string? item_shelve { get; set; }
+        /// <summary>
+        /// 默认仓管员
+        /// </summary>
+        [StringLength(80)]
+        [Comment("默认仓管员")]
+        public string? default_manager { get; set; }
+        /// <summary>
+        /// 最低存量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("最低存量")]
+        public decimal? low_limit { get; set; }
+        /// <summary>
+        /// 最高存量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("最高存量")]
+        public decimal? high_limit { get; set; }
+        /// <summary>
+        /// 最大订货量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("最大订货量")]
+        public decimal? qty_max { get; set; }
+        /// <summary>
+        /// 日消耗量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("日消耗量")]
+        public decimal? daily_consume { get; set; }
+        /// <summary>
+        /// 材料成本差异科目代码
+        /// </summary>
+        [Required]
+        [Comment("材料成本差异科目代码")]
+        public long mcv_acct { get; set; }
+        /// <summary>
+        /// 加工费差异科目代码
+        /// </summary>
+        [Required]
+        [Comment("加工费差异科目代码")]
+        public long pcv_acct { get; set; }
+        /// <summary>
+        /// 废品损失科目代码
+        /// </summary>
+        [Required]
+        [Comment("废品损失科目代码")]
+        public long sl_acct { get; set; }
+        /// <summary>
+        /// 标准成本调整差异科目代码
+        /// </summary>
+        [Required]
+        [Comment("标准成本调整差异科目代码")]
+        public long cav_acct { get; set; }
+        /// <summary>
+        /// 库存备注
+        /// </summary>
+        [StringLength(1000)]
+        [Comment("库存备注")]
+        public string? warehouse_note { get; set; }
+        /// <summary>
+        /// 工单发料时间/天
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("工单发料时间/天")]
+        public decimal? ordissu_days { get; set; }
+        /// <summary>
+        /// 原材料收货处理时间/天
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("原材料收货处理时间/天")]
+        public decimal? raw_matreceiv_days { get; set; }
+        /// <summary>
+        /// 成品入库时间/天
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("成品入库时间/天")]
+        public decimal? prdenter_days { get; set; }
+        /// <summary>
+        /// 原材料入库时间/天
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("原材料入库时间/天")]
+        public decimal? mat_enter_days { get; set; }
+        /// <summary>
+        /// 成品发货时间/天
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("成品发货时间/天")]
+        public decimal? prd_out_days { get; set; }
+
+        /// <summary>
+        /// 运输中提前期_天
+        /// </summary>
+        [Comment("运输中提前期_天")]
+        [Required]
+        [DefaultValue(0)]
+        [Precision(20, 8)]
+        public decimal? transportation_leadtime { get; set; }
+
+        /// <summary>
+        /// 仓库中提前期_天
+        /// </summary>
+        [Comment("仓库中提前期_天")]
+        [Required]
+        [DefaultValue(0)]
+        [Precision(20, 8)]
+        public decimal? stock_leadtime { get; set; }
+
+        /// <summary>
+        /// 生产中提前期_天
+        /// </summary>
+        [Comment("生产中提前期_天")]
+        [Required]
+        [DefaultValue(0)]
+        [Precision(20, 8)]
+        public decimal? production_leadtime { get; set; }
+
+        /// <summary>
+        /// 下单前置期_天
+        /// </summary>
+        [Comment("下单前置期_天")]
+        [Required]
+        [DefaultValue(0)]
+        [Precision(20, 8)]
+        public decimal? order_leadtime { get; set; }
+
+        /// <summary>
+        /// 计算ID
+        /// </summary>
+        [Comment("计算id")]
+        [NotMapped]
+        public long? bang_id { get; set; }
+
+    }
+}

+ 246 - 0
MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_item.cs

@@ -0,0 +1,246 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.MES.IC
+{
+    /// <summary>
+    /// 物料详情
+    /// </summary>
+    [CollectionName("dopbase", "ic_item")]
+    [Comment("物料详情")]
+    public class ic_item : BaseEntity
+    {
+        /// <summary>
+        /// 物料编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料编码")]
+        public string? number { get; set; }
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料名称")]
+        public string? name { get; set; }
+        /// <summary>
+        /// 规格型号
+        /// </summary>
+        [StringLength(200)]
+        [Comment("规格型号")]
+        public string? model { get; set; }
+        /// <summary>
+        /// 全名
+        /// </summary>
+        [StringLength(255)]
+        [Comment("全名")]
+        public string? full_name { get; set; }
+        /// <summary>
+        /// fms旧料号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("fms旧料号")]
+        public string? fms_number { get; set; }
+        /// <summary>
+        /// erp旧料号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("erp旧料号")]
+        public string? erp_oldnumber { get; set; }
+        /// <summary>
+        /// 图号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("图号")]
+        public string? chart_number { get; set; }
+        /// <summary>
+        /// 版本号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("版本号")]
+        public string? fversion { get; set; }
+        /// <summary>
+        /// 盒贴规格
+        /// </summary>
+        [StringLength(200)]
+        [Comment("盒贴规格")]
+        public string? box_model { get; set; }
+        /// <summary>
+        /// 物料属性
+        /// </summary>
+        [Comment("物料属性")]
+        public int erp_cls { get; set; }
+        /// <summary>
+        /// 物料属性名称
+        /// </summary>
+        [Comment("物料属性")]
+        public string? erp_cls_name { get; set; }
+        /// <summary>
+        /// 单位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("单位")]
+        public string? unit { get; set; }
+        /// <summary>
+        /// 物料等级
+        /// </summary>
+        [Required]
+        [Comment("物料等级")]
+        public long item_level { get; set; }
+        /// <summary>
+        /// 环保等级
+        /// </summary>
+        [Required]
+        [Comment("环保等级")]
+        public long hb_level { get; set; }
+        /// <summary>
+        /// 单位标准工时_小时
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("单位标准工时_小时")]
+        public decimal? standard_manhour { get; set; }
+        /// <summary>
+        /// 单位材料定额_元
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("单位材料定额_元")]
+        public decimal? unititem_amount { get; set; }
+        /// <summary>
+        /// 来源
+        /// </summary>
+        [StringLength(200)]
+        [Comment("来源")]
+        public string? source { get; set; }
+        /// <summary>
+        /// 是否为设备
+        /// </summary>
+        [Comment("是否为设备")]
+        public int is_equipment { get; set; }
+        /// <summary>
+        /// 单位包装数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("单位包装数量")]
+        public decimal? unit_qty { get; set; }
+        /// <summary>
+        /// 严格进行二维码数量校验
+        /// </summary>
+        [StringLength(80)]
+        [Comment("严格进行二维码数量校验")]
+        public string? check_bybarcode { get; set; }
+        /// <summary>
+        /// 是否关键件
+        /// </summary>
+        [Comment("是否关键件")]
+        public int iskeyitem { get; set; }
+        /// <summary>
+        /// 毛重
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("毛重")]
+        public decimal? gross_weight { get; set; }
+        /// <summary>
+        /// 净重
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("净重")]
+        public decimal? net_weight { get; set; }
+        /// <summary>
+        /// 重量单位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("重量单位")]
+        public string? maund { get; set; }
+        /// <summary>
+        /// 长度
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("长度")]
+        public decimal? length { get; set; }
+        /// <summary>
+        /// 长度单位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("长度单位")]
+        public string? cubic_measure { get; set; }
+        /// <summary>
+        /// 宽度
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("宽度")]
+        public decimal? width { get; set; }
+        /// <summary>
+        /// 高度
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("高度")]
+        public decimal? height { get; set; }
+        /// <summary>
+        /// 体积
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("体积")]
+        public decimal? size { get; set; }
+        /// <summary>
+        /// 物料类别
+        /// </summary>
+        [Required]
+        [Comment("物料类别")]
+        public long matatt { get; set; }
+        /// <summary>
+        /// 允许采购
+        /// </summary>
+        [Comment("允许采购")]
+        public int allowpur { get; set; }
+        /// <summary>
+        /// 允许销售
+        /// </summary>
+        [Comment("允许销售")]
+        public int allowsale { get; set; }
+        /// <summary>
+        /// 允许生产
+        /// </summary>
+        [Comment("允许生产")]
+        public int allowmanu { get; set; }
+        /// <summary>
+        /// 允许委外
+        /// </summary>
+        [Comment("允许委外")]
+        public int allowout { get; set; }
+        /// <summary>
+        /// 批号管理
+        /// </summary>
+        [Comment("批号管理")]
+        public int allowbatch { get; set; }
+        /// <summary>
+        /// 序列号管理
+        /// </summary>
+        [Comment("序列号管理")]
+        public int allowserial { get; set; }
+        /// <summary>
+        /// 图片
+        /// </summary>
+        [StringLength(80)]
+        [Comment("图片")]
+        public string? photo { get; set; }
+        /// <summary>
+        /// 领料类型
+        /// </summary>
+        [Required]
+        [Comment("领料类型")]
+        public long picktype { get; set; }
+        /// <summary>
+        /// 出库类型
+        /// </summary>
+        [Required]
+        [Comment("出库类型")]
+        public long output_type_id { get; set; }
+        /// <summary>
+        /// 启用预警
+        /// </summary>
+        [Comment("启用预警")]
+        public int enable_warning { get; set; }
+    }
+}

+ 62 - 0
MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_item_ie.cs

@@ -0,0 +1,62 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Bussiness.Model.MES.IC
+{
+    /// <summary>
+    /// 物料ie信息表
+    /// </summary>
+    [CollectionName("dopbase", "ic_item_ie")]
+    [Comment("物料ie信息表")]
+    public class ic_item_ie:BaseEntity
+    {
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Required]
+        [Comment("物料id")]
+        public long icitem_id { get; set; }
+        /// <summary>
+        /// 是否倒冲
+        /// </summary>
+        [Comment("是否倒冲")]
+        public int isbackflush { get; set; }
+        /// <summary>
+        /// 生产负责人
+        /// </summary>
+        [StringLength(80)]
+        [Comment("生产负责人")]
+        public string? product_principal { get; set; }
+        /// <summary>
+        /// 倒冲仓库
+        /// </summary>
+        [StringLength(80)]
+        [Comment("倒冲仓库")]
+        public string? back_flush_stock { get; set; }
+        /// <summary>
+        /// 倒冲仓位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("倒冲仓位")]
+        public string? back_flush_sp { get; set; }
+        /// <summary>
+        /// 投料自动取整
+        /// </summary>
+        [Comment("投料自动取整")]
+        public int put_integer { get; set; }
+        /// <summary>
+        /// ie备注
+        /// </summary>
+        [StringLength(1000)]
+        [Comment("ie备注")]
+        public string? ir_note { get; set; }
+    }
+}

+ 100 - 0
MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_item_inventory.cs

@@ -0,0 +1,100 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.MES.IC
+{
+    /// <summary>
+    /// 物料库存明细表
+    /// </summary>
+    [CollectionName("dopbase", "ic_item_inventory")]
+    [Comment("物料库存明细表")]
+    public class ic_item_inventory:BaseEntity
+    {
+        /// <summary>
+        /// 物料库存主键
+        /// </summary>
+        [Required]
+        [Comment("物料库存主键")]
+        public long icitem_stock_id { get; set; }
+        /// <summary>
+        /// 仓库id
+        /// </summary>
+        [Required]
+        [Comment("仓库id")]
+        public long stock_id { get; set; }
+        /// <summary>
+        /// 仓库名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("仓库名称")]
+        public string? stock_name { get; set; }
+        /// <summary>
+        /// 库位id
+        /// </summary>
+        [Required]
+        [Comment("库位id")]
+        public long stock_place_id { get; set; }
+        /// <summary>
+        /// 库位编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("库位编码")]
+        public string? stock_place_code { get; set; }
+        /// <summary>
+        /// 批次号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("批次号")]
+        public string? batch_no { get; set; }
+        /// <summary>
+        /// 数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("数量")]
+        public decimal? qty { get; set; }
+        /// <summary>
+        /// 金额
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("金额")]
+        public decimal? bal { get; set; }
+        /// <summary>
+        /// 保质期时长
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("保质期时长")]
+        public decimal? kf_period { get; set; }
+        /// <summary>
+        /// 保质期时间
+        /// </summary>
+        [Comment("保质期时间")]
+        public DateTime? kf_date { get; set; }
+        /// <summary>
+        /// 锁定库存
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("锁定库存")]
+        public decimal? qty_lock { get; set; }
+        /// <summary>
+        /// 安全库存
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("安全库存")]
+        public decimal? sec_qty { get; set; }
+        /// <summary>
+        /// 单位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("单位")]
+        public string? unit { get; set; }
+        /// <summary>
+        /// 日期
+        /// </summary>
+        [Comment("日期")]
+        public DateTime? rq { get; set; }
+
+    }
+}

+ 97 - 0
MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_item_pur.cs

@@ -0,0 +1,97 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Bussiness.Model.MES.IC
+{
+    /// <summary>
+    /// 物料采购报价单
+    /// </summary>
+    [CollectionName("dopbase", "ic_item_pur")]
+    [Comment("物料采购报价单")]
+    public class ic_item_pur : BaseEntity
+    {
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Required]
+        [Comment("物料id")]
+        public long icitem_id { get; set; }
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料名称")]
+        public string? icitem_name { get; set; }
+        /// <summary>
+        /// 采购计划id
+        /// </summary>
+        [Required]
+        [Comment("采购计划id")]
+        public long ic_plan_id { get; set; }
+        /// <summary>
+        /// 供应商id
+        /// </summary>
+        [Required]
+        [Comment("供应商id")]
+        public long supplier_id { get; set; }
+        /// <summary>
+        /// 供应商编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("供应商编码")]
+        public string? supplier_number { get; set; }
+        /// <summary>
+        /// 供应商名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("供应商名称")]
+        public string? supplier_name { get; set; }
+        /// <summary>
+        /// 采购组
+        /// </summary>
+        [StringLength(80)]
+        [Comment("采购组")]
+        public string? purchgroup { get; set; }
+        /// <summary>
+        /// 采购员
+        /// </summary>
+        [StringLength(80)]
+        [Comment("采购员")]
+        public string? purcher { get; set; }
+        /// <summary>
+        /// 采购计量单位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("采购计量单位")]
+        public string? purchase_unit { get; set; }
+        /// <summary>
+        /// 采购净价(不含税)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("采购净价(不含税)")]
+        public decimal? netpurchase_price { get; set; }
+        /// <summary>
+        /// 税率
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("税率")]
+        public decimal? taxrate { get; set; }
+        /// <summary>
+        /// 币种
+        /// </summary>
+        [Required]
+        [Comment("币种")]
+        public long? currency_type { get; set; }
+
+        /// <summary>
+        /// 计算ID
+        /// </summary>
+        [Comment("计算id")]
+        [NotMapped]
+        public long? bang_id { get; set; }
+    }
+}

+ 56 - 0
MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_item_stock.cs

@@ -0,0 +1,56 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using MongoDB.Bson.Serialization.Attributes;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Bussiness.Model.MES.IC
+{
+    /// <summary>
+    /// 物料库存表
+    /// </summary>
+    [CollectionName("dopbase", "ic_item_stock")]
+    [Comment("物料库存表")]
+    public class ic_item_stock : BaseEntity
+    {
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Required]
+        [Comment("物料id")]
+        public long icitem_id { get; set; }
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料名称")]
+        public string? icitem_name { get; set; }
+        /// <summary>
+        /// 物料库存量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("物料库存量")]
+        public decimal? sqty { get; set; }
+        /// <summary>
+        /// 调拨在途数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("调拨在途数量")]
+        public decimal? quantity_in_transit { get; set; }
+        /// <summary>
+        /// 工厂编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("工厂编码")]
+        public string? factory_fode { get; set; }
+
+        /// <summary>
+        /// 计算id
+        /// </summary>
+        [Comment("计算id")]
+        [NotMapped]
+        public long? bang_id { get; set; }
+    }
+}

+ 59 - 0
MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_item_stockoccupy.cs

@@ -0,0 +1,59 @@
+using Business.Model;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Business.Core.Attributes;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Bussiness.Model.MES.IC
+{
+    /// <summary>
+    /// 资源检查物料占用明细表
+    /// </summary>
+    [CollectionName("dopbase", "ic_item_stockoccupy")]
+    [Comment("资源检查物料占用明细表")]
+    public class ic_item_stockoccupy:BaseEntity
+    {
+        /// <summary>
+        /// bangid
+        /// </summary>
+        [Comment("bangid")]
+        [NotMapped]
+        public long bang_id { get; set; }
+
+        /// <summary>
+        /// 订单id
+        /// </summary>
+        [Comment("订单id")]
+        public long order_id { get; set; }
+
+        /// <summary>
+        /// 订单行id
+        /// </summary>
+        [Comment("订单行id")]
+        public long orderentry_id { get; set; }
+
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Comment("物料id")]
+        public long icitem_id { get; set; }
+
+        /// <summary>
+        /// 占用数量
+        /// </summary>
+        [Comment("占用数量")]
+        public decimal quantity { get; set; }
+
+        /// <summary>
+        /// 项次号
+        /// </summary>
+        [Comment("项次号")]
+        public string item_no { get; set; }
+    }
+}

+ 76 - 0
MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_metering_unit.cs

@@ -0,0 +1,76 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Bussiness.Model.MES.IC
+{
+    /// <summary>
+    /// 物料计量表
+    /// </summary>
+    [CollectionName("dopbase", "ic_metering_unit")]
+    [Comment("物料计量表")]
+    public class ic_metering_unit : BaseEntity
+    {
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Required]
+        [Comment("物料id")]
+        public long icitem_id { get; set; }
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料名称")]
+        public string? icitem_name { get; set; }
+        /// <summary>
+        /// 计量单位组
+        /// </summary>
+        [StringLength(80)]
+        [Comment("计量单位组")]
+        public string? unit_group { get; set; }
+        /// <summary>
+        /// 基本计量单位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("基本计量单位")]
+        public string? unit { get; set; }
+        /// <summary>
+        /// 采购计量单位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("采购计量单位")]
+        public string? order_unit { get; set; }
+        /// <summary>
+        /// 销售计量单位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("销售计量单位")]
+        public string? sale_unit { get; set; }
+        /// <summary>
+        /// 生产计量单位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("生产计量单位")]
+        public string? product_unit { get; set; }
+        /// <summary>
+        /// 库存计量单位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("库存计量单位")]
+        public string? store_unit { get; set; }
+        /// <summary>
+        /// 数量精度
+        /// </summary>
+        [Comment("数量精度")]
+        public int qty_decimal { get; set; }
+
+    }
+}

+ 152 - 0
MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_plan.cs

@@ -0,0 +1,152 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Bussiness.Model.MES.IC
+{
+    /// <summary>
+    /// 物料采购计划表
+    /// </summary>
+    [CollectionName("dopbase", "ic_plan")]
+    [Comment("物料采购计划表")]
+    public class ic_plan : BaseEntity
+    {
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Required]
+        [Comment("物料id")]
+        public long icitem_id { get; set; }
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料名称")]
+        public string? icitem_name { get; set; }
+        /// <summary>
+        /// 计划员
+        /// </summary>
+        [StringLength(80)]
+        [Comment("计划员")]
+        public string? planner_name { get; set; }
+        /// <summary>
+        /// 计划员_工号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("计划员_工号")]
+        public string? planner_num { get; set; }
+        /// <summary>
+        /// 工厂编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("工厂编码")]
+        public string? factory_code { get; set; }
+        /// <summary>
+        /// 固定提前期(天)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("固定提前期(天)")]
+        public decimal? fix_leadtime { get; set; }
+        /// <summary>
+        /// 计划策略
+        /// </summary>
+        [Comment("计划策略")]
+        public int plan_trategy { get; set; }
+        /// <summary>
+        /// 订货策略
+        /// </summary>
+        [Comment("订货策略")]
+        public int order_trategy { get; set; }
+        /// <summary>
+        /// 订货间隔期_天
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("订货间隔期_天")]
+        public decimal? order_inter_val { get; set; }
+        /// <summary>
+        /// 变动提前期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("变动提前期")]
+        public decimal? lead_time { get; set; }
+        /// <summary>
+        /// 变动提前期批量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("变动提前期批量")]
+        public decimal? bat_change_economy { get; set; }
+        /// <summary>
+        /// 累计提前期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("累计提前期")]
+        public decimal? total_tqq { get; set; }
+        /// <summary>
+        /// 再订货点
+        /// </summary>
+        [StringLength(80)]
+        [Comment("再订货点")]
+        public string? order_point { get; set; }
+        /// <summary>
+        /// 设置为固定再订货点
+        /// </summary>
+        [Comment("设置为固定再订货点")]
+        public int isfixedreorder { get; set; }
+        /// <summary>
+        /// 安全库存数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("安全库存数量")]
+        public decimal? secinv { get; set; }
+        /// <summary>
+        /// 安全库存触发采购比例
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("安全库存触发采购比例")]
+        public decimal? secinv_ratio { get; set; }
+        /// <summary>
+        /// 是否需要进行订补货计划的运算
+        /// </summary>
+        [Comment("是否需要进行订补货计划的运算")]
+        public int book_plan { get; set; }
+        /// <summary>
+        /// 辅助属性参与计划运算
+        /// </summary>
+        [Comment("辅助属性参与计划运算")]
+        public int aux_prop_plan { get; set; }
+        /// <summary>
+        /// 计划备注
+        /// </summary>
+        [StringLength(1000)]
+        [Comment("计划备注")]
+        public string? plannote { get; set; }
+
+        /// <summary>
+        /// 计算ID
+        /// </summary>
+        [Comment("计算id")]
+        [NotMapped]
+        public long? bang_id { get; set; }
+        /// <summary>
+        /// 自检提前期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("自检提前期")]
+        public decimal? self_inspection_date { get; set; }
+        /// <summary>
+        /// 入库提前期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("入库提前期")]
+        public decimal? Warehousing_date { get; set; }
+        /// <summary>
+        /// 发运提前期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("发运提前期")]
+        public decimal? Shipping_date { get; set; }
+    }
+}

+ 46 - 0
MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_substitute.cs

@@ -0,0 +1,46 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Security.AccessControl;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Bussiness.Model.MES.IC
+{
+    /// <summary>
+    /// 替代群组
+    /// </summary>
+    [CollectionName("dopbase", "ic_substitute")]
+    [Comment("替代群组")]
+    public class ic_substitute : BaseEntity
+    {
+        /// <summary>
+        /// 群组代码
+        /// </summary>
+        [StringLength(20)]
+        [Comment("群组代码")]
+        public string? substitute_code { get; set; }
+        /// <summary>
+        /// 替代类型
+        /// </summary>
+        [Comment("替代类型")]
+        public int substitute_type { get; set; }
+
+        /// <summary>
+        /// 替代策略
+        /// </summary>
+        [Comment("替代策略")]
+        public int? substitute_strategy { get; set; }
+
+        /// <summary>
+        /// 替代方式
+        /// </summary>
+        [Comment("替代方式")]
+        public int? substitute_mode { get; set; }
+    }
+}

+ 76 - 0
MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_substitute_all.cs

@@ -0,0 +1,76 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Bussiness.Model.MES.IC
+{
+    /// <summary>
+    /// 物料替代多群组
+    /// </summary>
+    [CollectionName("dopbase", "ic_substitute_all")]
+    [Comment("物料替代多群组")]
+    public class ic_substitute_all : BaseEntity
+    {
+        /// <summary>
+        /// 群组主键
+        /// </summary>
+        [Required]
+        [Comment("群组主键")]
+        public long substitute_id { get; set; }
+        /// <summary>
+        /// 群组代码
+        /// </summary>
+        [StringLength(20)]
+        [Comment("群组代码")]
+        public string? substitute_code { get; set; }
+        /// <summary>
+        /// 替代关系
+        /// </summary>
+        [StringLength(2000)]
+        [Comment("替代关系")]
+        public string? replace_relation { get; set; }
+        /// <summary>
+        /// 替代名称
+        /// </summary>
+        [StringLength(50)]
+        [Comment("替代名称")]
+        public string? replace_name { get; set; }
+        /// <summary>
+        /// 替代方式
+        /// </summary>
+        [StringLength(50)]
+        [Comment("替代方式")]
+        public string? replace_way { get; set; }
+        /// <summary>
+        /// 产品线
+        /// </summary>
+        [StringLength(50)]
+        [Comment("产品线")]
+        public string? product_line { get; set; }
+        /// <summary>
+        /// 使用机型
+        /// </summary>
+        [StringLength(5000)]
+        [Comment("使用机型")]
+        public string? use_model { get; set; }
+        /// <summary>
+        /// 群组优先级
+        /// </summary>
+        [Comment("群组优先级")]
+        public int order_num { get; set; }
+
+        /// <summary>
+        /// 主料/替代料
+        /// </summary>
+        [Comment("主料/替代料")]
+        public int? main_material { get; set; }
+
+    }
+}

+ 67 - 0
MicroServices/Business/Bussiness.MongoDB.Model/MES/IC/ic_substitute_all_dtl.cs

@@ -0,0 +1,67 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using MongoDB.Bson.Serialization.Attributes;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Bussiness.Model.MES.IC
+{
+    /// <summary>
+    /// 物料替代多群组明细
+    /// </summary>
+    [CollectionName("dopbase", "ic_substitute_all_dtl")]
+    [Comment("物料替代多群组明细")]
+    public class ic_substitute_all_dtl : BaseEntity
+    {
+        /// <summary>
+        /// 替代多群组主键
+        /// </summary>
+        [Required]
+        [Comment("替代多群组主键")]
+        public long substitute_allid { get; set; }
+        /// <summary>
+        /// 群组代码
+        /// </summary>
+        [StringLength(20)]
+        [Comment("群组代码")]
+        [BsonRepresentation(MongoDB.Bson.BsonType.String)]
+        public string? substitute_code { get; set; }
+        /// <summary>
+        /// 物料主键
+        /// </summary>
+        [Required]
+        [Comment("物料主键")]
+        public long icitem_id { get; set; }
+        /// <summary>
+        /// 主/替
+        /// </summary>
+        [Comment("主/替")]
+        public int? ismain { get; set; }
+
+        /*/// <summary>
+        /// 使用数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("使用数量")]
+        public decimal? use_amount { get; set; }*/
+
+        /// <summary>
+        /// 序号
+        /// </summary>
+        [Comment("序号")]
+        public int? num { get; set; }
+
+        /// <summary>
+        /// 替代数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("替代数量")]
+        public decimal? replace_amount { get; set; }
+    }
+}

+ 87 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Production/mes_moentry.cs

@@ -0,0 +1,87 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Bussiness.Model.Production
+{
+    /// <summary>
+    /// 生成工单子表
+    /// </summary>
+    [CollectionName("dopbase", "mes_moentry")]
+    [Comment("生成工单子表")]
+    public class mes_moentry : BaseEntity
+    {
+        ///// <summary>
+        ///// 生产工单子表id
+        ///// </summary>
+        //[Key]
+        //[Comment("生产工单子表id")]
+        //public long moentry_id { get; set; }
+        /// <summary>
+        /// 工单主表id
+        /// </summary>
+        [Comment("工单主表id")]
+        public long? moentry_moid { get; set; }
+        /// <summary>
+        /// 工单编号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("工单编号")]
+        public string? moentry_mono { get; set; }
+        /// <summary>
+        /// 订单行id
+        /// </summary>
+        [Comment("订单行id")]
+        public long? soentry_id { get; set; }
+        /// <summary>
+        /// 订单行号
+        /// </summary>
+        [Comment("订单行号")]
+        public long? fentry_id { get; set; }
+        /// <summary>
+        /// 订单编号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("订单编号")]
+        public string? fbill_no { get; set; }
+        /// <summary>
+        /// 单位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("单位")]
+        public string? unit { get; set; }
+        /// <summary>
+        /// 工单生产数量(计划数量)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("工单生产数量(计划数量)")]
+        public decimal? morder_production_number { get; set; }
+        /// <summary>
+        /// 需求数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("需求数量")]
+        public decimal? need_number { get; set; }
+        /// <summary>
+        /// 剩余可用数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("剩余可用数量")]
+        public decimal? remaining_number { get; set; }
+        /// <summary>
+        /// 计算ID
+        /// </summary>
+        [Comment("计算id")]
+        [NotMapped]
+        public long? bang_id { get; set; }
+
+    }
+}

+ 144 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Production/mes_mooccupy.cs

@@ -0,0 +1,144 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Bussiness.Model.Production
+{
+    /// <summary>
+    /// 在制工单占用记录表
+    /// </summary>
+    [CollectionName("dopbase", "mes_mooccupy")]
+    [Comment("在制工单占用记录表")]
+    public class mes_mooccupy :BaseEntity
+    {
+        ///// <summary>
+        ///// 工单占用ID
+        ///// </summary>
+        //[Key]
+        //[Comment("工单占用ID")]
+        //public long moo_id { get; set; }
+
+        /// <summary>
+        /// 类型--原始,分配
+        /// </summary>
+        [StringLength(50)]
+        [Comment("类型--原始,分配")]
+        public string? moo_id_type { get; set; }
+
+        /// <summary>
+        /// 订单id
+        /// </summary>
+        [Comment("订单id")]
+        public long? moo_id_billid { get; set; }
+
+        /// <summary>
+        /// 订单号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("订单号")]
+        public string? fbill_no { get; set; }
+
+        /// <summary>
+        /// 行号
+        /// </summary>
+        [Comment("行号")]
+        public long? fentry_id { get; set; }
+
+        /// <summary>
+        /// 物料编码
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("物料编码")]
+        public string? fitem_number { get; set; }
+
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [Required]
+        [StringLength(500)]
+        [Comment("物料名称")]
+        public string? fitem_name { get; set; }
+
+        /// <summary>
+        /// 规格型号
+        /// </summary>
+        [StringLength(500)]
+        [Comment("规格型号")]
+        public string? fmodel { get; set; }
+
+        /// <summary>
+        /// 工单id
+        /// </summary>
+        [Comment("工单id")]
+        public long? moo_moid { get; set; }
+
+        /// <summary>
+        /// 工单号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("工单号")]
+        public string? moo_mo { get; set; }
+
+        /// <summary>
+        /// 占用量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("占用量")]
+        public decimal? moo_qty { get; set; }
+
+        /// <summary>
+        /// 开始时间
+        /// </summary>
+        [Comment("开始时间")]
+        public DateTime? moo_stime { get; set; }
+
+        /// <summary>
+        /// 结束时间
+        /// </summary>
+        [Comment("结束时间")]
+        public DateTime? moo_etime { get; set; }
+
+        /// <summary>
+        /// 占用状态-1占用  默认0
+        /// </summary>
+        [DefaultValue(0)]
+        [Comment("占用状态-1占用  默认0")]
+        public int? moo_state { get; set; }
+
+        /// <summary>
+        /// 变更人
+        /// </summary>
+        [StringLength(50)]
+        [Comment("变更人")]
+        public string? moo_cbr { get; set; }
+
+        /// <summary>
+        /// 变更时间
+        /// </summary>
+        [Comment("变更时间")]
+        public DateTime? moo_ctime { get; set; }
+
+        /// <summary>
+        /// 变更原因
+        /// </summary>
+        [StringLength(500)]
+        [Comment("变更原因")]
+        public string? moo_creason { get; set; }
+        /// <summary>
+        /// 计算ID
+        /// </summary>
+        [Comment("计算id")]
+        [NotMapped]
+        public long? bang_id { get; set; }
+
+    }
+}

+ 327 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Production/mes_morder.cs

@@ -0,0 +1,327 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Volo.Abp;
+
+namespace Bussiness.Model.Production
+{
+    /// <summary>
+    /// 工单主表
+    /// </summary>
+    [CollectionName("dopbase", "mes_morder")]
+    [Comment("工单主表")]
+    public class mes_morder : BaseEntity
+    {
+        ///// <summary>
+        ///// 生产工单id
+        ///// </summary>
+        //[Key]
+        //[Comment("生产工单id")]
+        //public long morder_id { get; set; }
+        /// <summary>
+        /// 上级工单id
+        /// </summary>
+        [Comment("上级工单id")]
+        public long? parent_id { get; set; }
+        /// <summary>
+        /// 关联工单id
+        /// </summary>
+        [Comment("关联工单id")]
+        public long? relation_moid { get; set; }
+        /// <summary>
+        /// 关联编号
+        /// </summary>   
+        [StringLength(50)]
+        [Comment("关联编号")]
+        public string? relation_mono { get; set; }
+        /// <summary>
+        /// 生产工单编号
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("生产工单编号")]
+        public string? morder_no { get; set; }
+        /// <summary>
+        /// 生产工单类型(类型:计划工单、销售工单、委外工单、预测工单)
+        /// </summary>
+        [StringLength(50)]
+        [Comment("生产工单类型(类型:计划工单、销售工单、委外工单、预测工单)")]
+        public string? morder_type { get; set; }
+        /// <summary>
+        /// 工单所属物料类型
+        /// </summary>
+        [StringLength(255)]
+        [Comment("工单所属物料类型")]
+        public string? morder_icitem_type { get; set; }
+        /// <summary>
+        /// 工单类型(类型:发货工单、试产工单、备库工单、常规工单、返工工单)
+        /// </summary>
+        [StringLength(255)]
+        [Comment("工单类型(类型:发货工单、试产工单、备库工单、常规工单、返工工单)")]
+        public string? work_order_type { get; set; }
+        /// <summary>
+        /// 生产工单日期
+        /// </summary>
+        [Comment("生产工单日期")]
+        public DateTime? morder_date { get; set; }
+        /// <summary>
+        /// 生产工单状态(订单状态:初始,下达,暂停、完成)
+        /// </summary>
+        [StringLength(50)]
+        [Comment("生产工单状态(订单状态:初始,下达,暂停、完成)")]
+        public string? morder_state { get; set; }
+        /// <summary>
+        /// 生产组织id
+        /// </summary>
+        [Comment("生产组织id")]
+        public long? moentry_prd { get; set; }
+        /// <summary>
+        /// 生产组织名称
+        /// </summary>
+        [StringLength(50)]
+        [Comment("生产组织名称")]
+        public string? moentry_prdname { get; set; }
+        /// <summary>
+        /// 工作中心id
+        /// </summary>
+        [Comment("工作中心id")]
+        public long? moentry_wrkc { get; set; }
+        /// <summary>
+        /// 工作中心名称
+        /// </summary>
+        [StringLength(50)]
+        [Comment("工作中心名称")]
+        public string? moentry_wrkcname { get; set; }
+        /// <summary>
+        /// 计划员工号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("计划员工号")]
+        public string? planner_num { get; set; }
+        /// <summary>
+        /// 计划员名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("计划员名称")]
+        public string? planner_name { get; set; }
+        /// <summary>
+        /// 生产工单开始日期
+        /// </summary>
+        [Comment("生产工单开始日期")]
+        public DateTime? moentry_stime { get; set; }
+        /// <summary>
+        /// 生产工单结束日期
+        /// </summary>
+        [Comment("生产工单结束日期")]
+        public DateTime? moentry_etime { get; set; }
+        /// <summary>
+        /// 系统建议开工时间
+        /// </summary>
+        [Comment("系统建议开工时间")]
+        public DateTime? moentry_sys_stime { get; set; }
+        /// <summary>
+        /// 系统建议完工时间
+        /// </summary>
+        [Comment("系统建议完工时间")]
+        public DateTime? moentry_sys_etime { get; set; }
+        /// <summary>
+        /// 实际开始时间
+        /// </summary>
+        [Comment("实际开始时间")]
+        public DateTime? reality_start_time { get; set; }
+        /// <summary>
+        /// 实际结束时间
+        /// </summary>
+        [Comment("实际结束时间")]
+        public DateTime? reality_end_time { get; set; }
+        /// <summary>
+        /// 计划员设定开始时间
+        /// </summary>
+        [Comment("计划员设定开始时间")]
+        public DateTime? planner_start_date { get; set; }
+        /// <summary>
+        /// 计划员设定结束时间
+        /// </summary>
+        [Comment("计划员设定结束时间")]
+        public DateTime? planner_end_date { get; set; }
+        /// <summary>
+        /// 基于物料开始时间
+        /// </summary>
+        [Comment("基于物料开始时间")]
+        public DateTime? mat_start_date { get; set; }
+        /// <summary>
+        /// 基于物料结束时间
+        /// </summary>
+        [Comment("基于物料结束时间")]
+        public DateTime? mat_end_date { get; set; }
+        /// <summary>
+        /// 产品代码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("产品代码")]
+        public string? product_code { get; set; }
+        /// <summary>
+        /// 产品名称
+        /// </summary>
+        [StringLength(500)]
+        [Comment("产品名称")]
+        public string? product_name { get; set; }
+        /// <summary>
+        /// fms旧料号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("fms旧料号")]
+        public string? fms_number { get; set; }
+        /// <summary>
+        /// 规格型号
+        /// </summary>
+        [StringLength(500)]
+        [Comment("规格型号")]
+        public string? fmodel { get; set; }
+        /// <summary>
+        /// bom编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("bom编码")]
+        public string? bom_number { get; set; }
+        /// <summary>
+        /// 单位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("单位")]
+        public string? unit { get; set; }
+        /// <summary>
+        /// 工单进度
+        /// </summary>
+        [StringLength(1000)]
+        [Comment("工单进度")]
+        public string? morder_progress { get; set; }
+        /// <summary>
+        /// 工单所需工时
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("工单所需工时")]
+        public decimal? morder_need_time { get; set; }
+        /// <summary>
+        /// 工单生产数量(计划数量)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("工单生产数量(计划数量)")]
+        public decimal? morder_production_number { get; set; }
+        /// <summary>
+        /// 需求数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("需求数量")]
+        public decimal? need_number { get; set; }
+        /// <summary>
+        /// 剩余可用数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("剩余可用数量")]
+        public decimal? remaining_number { get; set; }
+        /// <summary>
+        /// 报工数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("报工数量")]
+        public decimal? work_number { get; set; }
+        /// <summary>
+        /// 报检数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("报检数量")]
+        public decimal? inspection_number { get; set; }
+        /// <summary>
+        /// 合格数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("合格数量")]
+        public decimal? qualified_number { get; set; }
+        /// <summary>
+        /// 入库数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("入库数量")]
+        public decimal? inventory_number { get; set; }
+        ///// <summary>
+        ///// 扩展
+        ///// </summary>
+        //public string ext { get; set; }
+        /// <summary>
+        /// 已开入库通知单数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("已开入库通知单数量")]
+        public decimal? notice_qty { get; set; }
+        /// <summary>
+        /// 启动状态
+        /// </summary>
+        [Comment("启动状态")]
+        public int? moentry_startup_status { get; set; }
+        /// <summary>
+        /// 开始时间
+        /// </summary>
+        [Comment("开始时间")]
+        public DateTime? start_time { get; set; }
+        /// <summary>
+        /// 最近暂停时间
+        /// </summary>
+        [Comment("最近暂停时间")]
+        public DateTime? pause_time { get; set; }
+        /// <summary>
+        /// 最近重启时间
+        /// </summary>
+        [Comment("最近重启时间")]
+        public DateTime? restart_time { get; set; }
+        /// <summary>
+        /// 项目名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("项目名称")]
+        public string? project_name { get; set; }
+        /// <summary>
+        /// 逾期原因备注
+        /// </summary>
+        [StringLength(255)]
+        [Comment("逾期原因备注")]
+        public string? overdue_Remark { get; set; }
+        /// <summary>
+        /// 已领料数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("已领料数量")]
+        public decimal? picking_qty { get; set; }
+        /// <summary>
+        /// 前状态--计划、下达、完成、关闭
+        /// </summary>
+        [StringLength(50)]
+        [Comment("前状态--计划、下达、完成、关闭")]
+        public string? morder_fstate { get; set; }
+        /// <summary>
+        /// 工单批号--(批号管理的物料出入库要使用)
+        /// </summary>
+        [StringLength(100)]
+        [Comment("工单批号--(批号管理的物料出入库要使用)")]
+        public string? morder_batchno { get; set; }
+        /// <summary>
+        /// 下达日期
+        /// </summary>
+        [Comment("下达日期")]
+        public DateTime? convey_date { get; set; }
+        /// <summary>
+        /// 计算ID
+        /// </summary>
+        [Comment("计算id")]
+        [NotMapped]
+        public long? bang_id { get; set; }
+    }
+}

+ 136 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Production/mes_morder_loss_time.cs

@@ -0,0 +1,136 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Bussiness.Model.Production
+{
+    /// <summary>
+    /// 工单损失时间表
+    /// </summary>
+    [CollectionName("dopbase", "mes_morder_loss_time")]
+    [Comment("工单损失时间表")]
+    public class mes_morder_loss_time : BaseEntity
+    {
+        ///// <summary>
+        ///// 主键
+        ///// </summary>
+        //[Key]
+        //[Comment("工单损失时间主键")]
+        //public long id { get; set; }
+        /// <summary>
+        /// 生产工单id
+        /// </summary>
+        [Comment("生产工单id")]
+        public long morder_id { get; set; }
+        /// <summary>
+        /// 生产工单编号
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("生产工单编号")]
+        public string? morder_no { get; set; }
+        /// <summary>
+        /// 生产工单行号
+        /// </summary>
+        [Required]
+        [Comment("生产工单编号")]
+        public int morder_no_row { get; set; }
+        /// <summary>
+        /// 损失开始时间
+        /// </summary>
+        [Comment("损失开始时间")]
+        public DateTime start_time { get; set; }
+        /// <summary>
+        /// 损失结束时间
+        /// </summary>
+        [Comment("损失结束时间")]
+        public DateTime end_time { get; set; }
+        /// <summary>
+        /// 记录人id
+        /// </summary>
+        [Comment("记录人id")]
+        public long recorder_id { get; set; }
+        /// <summary>
+        /// 记录人名称
+        /// </summary>
+        [Required]
+        [StringLength(255)]
+        [Comment("记录人名称")]
+        public string? recorder_name { get; set; }
+        /// <summary>
+        /// 人员数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("人员数量")]
+        public decimal staff_qty { get; set; }
+        /// <summary>
+        /// 损失时间(用户输入)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("损失时间(用户输入)")]
+        public decimal loss_work_hours { get; set; }
+        /// <summary>
+        /// 系统计算损失时间
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("系统计算损失时间")]
+        public decimal sys_loss_time { get; set; }
+        /// <summary>
+        /// 工作中心id
+        /// </summary>
+        [Comment("工作中心id")]
+        public long workc_id { get; set; }
+        /// <summary>
+        /// 工作中心名称
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("工作中心名称")]
+        public string? workc_name { get; set; }
+        /// <summary>
+        /// 责任单位id
+        /// </summary>
+        [Comment("责任单位id")]
+        public long dept_id { get; set; }
+        /// <summary>
+        /// 责任单位名称
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("责任单位名称")]
+        public string? dept_name { get; set; }
+        /// <summary>
+        /// 损失时间原因
+        /// </summary>
+        [Required]
+        [StringLength(255)]
+        [Comment("损失时间原因")]
+        public string? reason { get; set; }
+        /// <summary>
+        /// 描述
+        /// </summary>
+        [StringLength(255)]
+        [Comment("描述")]
+        public string? description { get; set; }
+        /// <summary>
+        /// 是否停产(0未停产,1停产)
+        /// </summary>
+        [DefaultValue(0)]
+        [Comment("是否停产(0未停产,1停产)")]
+        public int is_stop_production { get; set; }
+        /// <summary>
+        /// 用工卡号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("用工卡号")]
+        public string? card_no { get; set; }
+        
+    }
+}

+ 245 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Production/mes_oorder.cs

@@ -0,0 +1,245 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Bussiness.Model.Production
+{
+    /// <summary>
+    /// 委外订单表
+    /// </summary>
+    [CollectionName("dopbase", "mes_oorder")]
+    [Comment("委外订单表")]
+    public class mes_oorder : BaseEntity
+    {
+        ///// <summary>
+        ///// 委外订单id
+        ///// </summary>
+        //[Key]
+        //[Comment("委外订单id")]
+        //public long oorder_id { get; set; }
+        /// <summary>
+        /// 生产工单编号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("生产工单编号")]
+        public string? oorder_no { get; set; }
+        /// <summary>
+        /// 生产工单类型
+        /// </summary>
+        [StringLength(80)]
+        [Comment("生产工单类型")]
+        public string? oorder_type { get; set; }
+        /// <summary>
+        /// 委外订单日期
+        /// </summary>
+        [Comment("委外订单日期")]
+        public DateTime? oorder_date { get; set; }
+        /// <summary>
+        /// 订单状态
+        /// </summary>
+        [StringLength(50)]
+        [Comment("订单状态")]
+        public string? oorder_state { get; set; }
+        /// <summary>
+        /// 生产组织
+        /// </summary>
+        [Comment("生产组织")]
+        public long? ooentry_prd { get; set; }
+        /// <summary>
+        /// 生产组织名称
+        /// </summary>
+        [StringLength(50)]
+        [Comment("生产组织名称")]
+        public string? ooentry_prdname { get; set; }
+        /// <summary>
+        /// 工作中心id
+        /// </summary>
+        [Comment("工作中心id")]
+        public long? ooentry_wrkc { get; set; }
+        /// <summary>
+        /// 工作中心名称
+        /// </summary>
+        [StringLength(50)]
+        [Comment("工作中心名称")]
+        public string? ooentry_wrkcname { get; set; }
+        /// <summary>
+        /// 计划员工号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("计划员工号")]
+        public string? planner_num { get; set; }
+        /// <summary>
+        /// 计划员名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("计划员名称")]
+        public string? planner_name { get; set; }
+        /// <summary>
+        /// 计划开工日期
+        /// </summary>
+        [Comment("计划开工日期")]
+        public DateTime? ooentry_stime { get; set; }
+        /// <summary>
+        /// 计划完工日期
+        /// </summary>
+        [Comment("计划完工日期")]
+        public DateTime? ooentry_etime { get; set; }
+        /// <summary>
+        /// 产品代码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("产品代码")]
+        public string? product_code { get; set; }
+        /// <summary>
+        /// fms旧料号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("fms旧料号")]
+        public string? ffms_number { get; set; }
+        /// <summary>
+        /// 产品名称
+        /// </summary>
+        [StringLength(500)]
+        [Comment("产品名称")]
+        public string? product_name { get; set; }
+        /// <summary>
+        /// 规格型号
+        /// </summary>
+        [StringLength(500)]
+        [Comment("规格型号")]
+        public string? specification_model { get; set; }
+        /// <summary>
+        /// bom编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("bom编码")]
+        public string? bom_number { get; set; }
+        /// <summary>
+        /// 单位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("单位")]
+        public string? unit { get; set; }
+        /// <summary>
+        /// 工单进度
+        /// </summary>
+        [StringLength(500)]
+        [Comment("工单进度")]
+        public string? morder_progress { get; set; }
+        /// <summary>
+        /// 工单生产数量(计划数量)
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("工单生产数量(计划数量)")]
+        public decimal? morder_production_number { get; set; }
+        /// <summary>
+        /// 需求数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("需求数量")]
+        public decimal? need_number { get; set; }
+        /// <summary>
+        /// 剩余可用数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("剩余可用数量")]
+        public decimal? remaining_number { get; set; }
+        /// <summary>
+        /// 报工数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("报工数量")]
+        public decimal? work_number { get; set; }
+        /// <summary>
+        /// 报检数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("报检数量")]
+        public decimal? inspection_number { get; set; }
+        /// <summary>
+        /// 合格数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("合格数量")]
+        public decimal? qualified_number { get; set; }
+        /// <summary>
+        /// 入库数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("入库数量")]
+        public decimal? inventory_number { get; set; }
+        /// <summary>
+        /// 已开通知单数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("已开通知单数量")]
+        public decimal? notice_qty { get; set; }
+        /// <summary>
+        /// 启动状态
+        /// </summary>
+        [Comment("启动状态")]
+        public int? moentry_on { get; set; }
+        /// <summary>
+        /// 开始时间
+        /// </summary>
+        [Comment("开始时间")]
+        public DateTime? start_time { get; set; }
+        /// <summary>
+        /// 最近暂停时间
+        /// </summary>
+        [Comment("最近暂停时间")]
+        public DateTime? pause_time { get; set; }
+        /// <summary>
+        /// 最近重启时间
+        /// </summary>
+        [Comment("最近重启时间")]
+        public DateTime? restart_time { get; set; }
+        ///// <summary>
+        ///// 扩展
+        ///// </summary>
+        //public string ext { get; set; }
+        /// <summary>
+        /// 项目名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("项目名称")]
+        public string? project_name { get; set; }
+        /// <summary>
+        /// 发料状态 1-待发料  2-已发料
+        /// </summary>
+        [Comment("发料状态 1-待发料  2-已发料")]
+        public int? sent_status { get; set; }
+        /// <summary>
+        /// 加工单位
+        /// </summary>
+        [StringLength(100)]
+        [Comment("加工单位")]
+        public string? production_unit { get; set; }
+        /// <summary>
+        /// 加工单位编码
+        /// </summary>
+        [StringLength(20)]
+        [Comment("加工单位编码")]
+        public string? production_unit_code { get; set; }
+        /// <summary>
+        /// 所需物料是否充足  1-充足 0-缺料
+        /// </summary>
+        [Comment("所需物料是否充足  1-充足 0-缺料")]
+        public int? need_icitem_status { get; set; }
+
+        /// <summary>
+        /// 计算ID
+        /// </summary>
+        [Comment("计算id")]
+        [NotMapped]
+        public long? bang_id { get; set; }
+    }
+}

+ 71 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Production/mes_schedule_occupy.cs

@@ -0,0 +1,71 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Bussiness.Model.Production
+{
+    /// <summary>
+    /// 排程时间占用记录表
+    /// </summary>
+    [CollectionName("dopbase", "mes_schedule_occupy")]
+    [Comment("排程时间占用记录表")]
+    public class mes_schedule_occupy : BaseEntity
+    {
+        ///// <summary>
+        ///// 排程时间占用记录id
+        ///// </summary>
+        //[Key]
+        //[Comment("排程时间占用记录id")]
+        //public long id { get; set; }
+        /// <summary>
+        /// 开始时间
+        /// </summary>
+        [Comment("开始时间")]
+        public DateTime? start_time { get; set; }
+        /// <summary>
+        /// 结束时间
+        /// </summary>
+        [Comment("结束时间")]
+        public DateTime? end_time { get; set; }
+        /// <summary>
+        /// 工作时长(h)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("工作时长(h)")]
+        public decimal? working_minute { get; set; }
+        /// <summary>
+        /// 状态 0-待使用,1-已使用
+        /// </summary>
+        [DefaultValue(0)]
+        [Comment("状态 0-待使用,1-已使用")]
+        public int? status { get; set; }
+        /// <summary>
+        /// 是否锁定 0-正常,1-锁定
+        /// </summary>
+        [DefaultValue(0)]
+        [Comment("是否锁定 0-正常,1-锁定")]
+        public int? is_Locked { get; set; }
+        /// <summary>
+        /// 生产组织id
+        /// </summary>
+        [Comment("生产组织id")]
+        public long? prd_org_id { get; set; }
+        /// <summary>
+        /// 工作中心id:工位id
+        /// </summary>
+        [Comment("工作中心id")]
+        public long? work_center_id { get; set; }
+        /// <summary>
+        /// 工作日历id
+        /// </summary>
+        [Comment("工作日历id")]
+        public long? work_calendar_id { get; set; }
+    }
+}

+ 125 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Production/mes_stockoccupy.cs

@@ -0,0 +1,125 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Bussiness.Model.Production
+{
+    /// <summary>
+    /// 成品库存占用表
+    /// </summary>
+    [CollectionName("dopbase", "mes_stockoccupy")]
+    [Comment("成品库存占用表")]
+    public class mes_stockoccupy : BaseEntity
+    {
+        ///// <summary>
+        ///// 成品库存占用id
+        ///// </summary>
+        //[Key]
+        //[Comment("成品库存占用id")]
+        //public long soccupy_id { get; set; }
+        /// <summary>
+        /// 类型
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("类型")]
+        public string soccupy_type { get; set; }
+        /// <summary>
+        /// 订单行id
+        /// </summary>
+        [Comment("订单行id")]
+        public long? soentry_id { get; set; }
+        /// <summary>
+        /// 订单行号
+        /// </summary>
+        [Comment("订单行号")]
+        public long? fentry_id { get; set; }
+        /// <summary>
+        /// 订单编号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("订单编号")]
+        public string? fbill_no { get; set; }
+        /// <summary>
+        /// 物料编码
+        /// </summary>
+        [StringLength(50)]
+        [Comment("物料编码")]
+        public string? fitem_number { get; set; }
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(200)]
+        [Comment("物料名称")]
+        public string? fitem_name { get; set; }
+        /// <summary>
+        /// 规格型号
+        /// </summary>
+        [StringLength(200)]
+        [Comment("规格型号")]
+        public string? fmodel { get; set; }
+        /// <summary>
+        /// 仓库id
+        /// </summary>
+        [Comment("仓库id")]
+        public long warehouse_id { get; set; }
+        /// <summary>
+        /// 仓库名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("仓库名称")]
+        public string? warehouse_name { get; set; }
+        /// <summary>
+        /// 仓库类型
+        /// </summary>
+        [StringLength(50)]
+        [Comment("仓库类型")]
+        public string? warehouse_type { get; set; }
+        /// <summary>
+        /// 占用量
+        /// </summary>
+        [Precision(20, 2)]
+        [Comment("占用量")]
+        public decimal? occupyqty { get; set; }
+        /// <summary>
+        /// 开始时间
+        /// </summary>
+        [Comment("开始时间")]
+        public DateTime? soccupy_stime { get; set; }
+        /// <summary>
+        /// 结束时间
+        /// </summary>
+        [Comment("结束时间")]
+        public DateTime? soccupy_etime { get; set; }
+        /// <summary>
+        /// 占用状态
+        /// </summary>
+        [StringLength(50)]
+        [Comment("占用状态")]
+        public string? soccupy_state { get; set; }
+        /// <summary>
+        /// 变更人
+        /// </summary>
+        [StringLength(50)]
+        [Comment("变更人")]
+        public string? soccupy_cby { get; set; }
+        /// <summary>
+        /// 变更时间
+        /// </summary>
+        [Comment("变更时间")]
+        public DateTime? soccupy_ctime { get; set; }
+        /// <summary>
+        /// 变更原因
+        /// </summary>
+        [StringLength(255)]
+        [Comment("变更原因")]
+        public string? soccupy_creason { get; set; } 
+    }
+}

+ 94 - 0
MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_loss_time_record.cs

@@ -0,0 +1,94 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.ProductionProcess
+{
+    /// <summary>
+    /// 损失时间记录表
+    /// </summary>
+    [CollectionName("dopbase", "mes_loss_time_record")]
+    [Comment("损失时间记录表")]
+    public class mes_loss_time_record : BaseEntity
+    {
+        ///// <summary>
+        ///// 主键ID
+        ///// </summary>
+        //[Key]
+        //[Comment("主键ID")]
+        //public long loss_time_record_id { get; set; }
+        /// <summary>
+        /// 工单id
+        /// </summary>
+        [Comment("工单id")]
+
+        public long morder_id { get; set; }
+        /// <summary>
+        /// 工单编号
+        /// </summary>    
+        [Required]
+        [StringLength(50)]
+        [Comment("工单编号")]
+
+        public string? morder_no { get; set; }
+        /// <summary>
+        /// 损失开始时间
+        /// </summary>
+        [Comment("损失开始时间")]
+
+        public DateTime? start_time { get; set; }
+        /// <summary>
+        /// 损失结束时间
+        /// </summary>
+        [Comment("损失结束时间")]
+
+        public DateTime? end_time { get; set; }
+        /// <summary>
+        /// 生产车间
+        /// </summary>
+        [Comment("生产车间")]
+
+        public long product_org { get; set; }
+        /// <summary>
+        /// 生产产线
+        /// </summary>
+        [Comment("生产产线")]
+
+        public long product_line { get; set; }
+        /// <summary>
+        /// 记录时间
+        /// </summary>
+        [Comment("记录时间")]
+        public DateTime record_time { get; set; }
+        /// <summary>
+        /// 记录人id
+        /// </summary>
+        [Comment("记录人id")]
+        public long record_id { get; set; }
+        /// <summary>
+        /// 记录人工号
+        /// </summary>
+        [Comment("记录人工号")]
+        public string? record_no { get; set; }
+        /// <summary>
+        /// 是否停线
+        /// </summary>
+        [DefaultValue(0)]
+        [Comment("是否停线")]
+        public int isstop { get; set; }
+        /// <summary>
+        /// 原因
+        /// </summary>
+        [StringLength(500)]
+        [Comment("原因")]
+        public string? cause { get; set; }
+        /// <summary>
+        /// 问题描述
+        /// </summary>
+        [StringLength(500)]
+        [Comment("问题描述")]
+        public string? desc { get; set; }
+    }
+}

+ 63 - 0
MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_meaction.cs

@@ -0,0 +1,63 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.ProductionProcess
+{
+    /// <summary>
+    /// 生产动作表
+    /// </summary>
+    [CollectionName("dopbase", "mes_meaction")]
+    [Comment("生产动作表")]
+    public class mes_meaction : BaseEntity
+    {
+        ///// <summary>
+        ///// 主键Id
+        ///// </summary>
+        //[Key]
+        //[Comment("生产动作Id")]
+        //public long meaction_id { get; set; }
+        /// <summary>
+        /// 生产工单id
+        /// </summary>
+        [Comment("生产工单id")]
+        public long morder_id { get; set; }
+        /// <summary>
+        /// 生产工单号
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("生产工单号")]
+        public string? morder_no { get; set; }
+        /// <summary>
+        /// 操作时间
+        /// </summary>
+        [Comment("操作时间")]
+        public DateTime? oprtime { get; set; }
+        /// <summary>
+        /// 操作类型
+        /// </summary>
+        [StringLength(50)]
+        [Comment("操作类型")]
+        public string? oprtype { get; set; }
+        /// <summary>
+        /// 操作人id
+        /// </summary>
+        [Comment("操作人id")]
+        public long? oprby { get; set; }
+        /// <summary>
+        /// 操作人名称
+        /// </summary>
+        [StringLength(50)]
+        [Comment("操作人名称")]
+        public string? oprbyname { get; set; }
+        /// <summary>
+        /// 操作人工号
+        /// </summary>
+        [StringLength(100)]
+        [Comment("操作人工号")]
+        public string? oprbyno { get; set; }
+    }
+}

+ 66 - 0
MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_mebycard.cs

@@ -0,0 +1,66 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.ProductionProcess
+{
+    /// <summary>
+    /// 产线刷卡记录
+    /// </summary>
+    [CollectionName("dopbase", "mes_mebycard")]
+    [Comment("产线刷卡记录")]
+    public class mes_mebycard : BaseEntity
+    {
+        ///// <summary>
+        ///// 刷卡id
+        ///// </summary>
+        //[Key]
+        //[Comment("刷卡id")]
+        //public long mebycard_id { get; set; }
+        /// <summary>
+        /// 生产工单号id
+        /// </summary>
+        [Comment("生产工单号id")]
+        public long mebycard_moid { get; set; }
+        /// <summary>
+        /// 生产工单号
+        /// </summary>    
+        [Required]
+        [StringLength(50)]
+        [Comment("生产工单号")]
+        public string? mebycard_mono { get; set; }
+        /// <summary>
+        /// 工序id
+        /// </summary>
+        [Comment("工序id")]
+        public long mebycard_pid { get; set; }
+        /// <summary>
+        /// 工序编码
+        /// </summary>
+        [Required]
+        [StringLength(100)]
+        [Comment("工序编码")]
+        public string? mebycard_pno { get; set; }
+        /// <summary>
+        /// 工序名称
+        /// </summary>   
+        [Required]
+        [StringLength(100)]
+        [Comment("工序名称")]
+        public string? mebycard_pname { get; set; }
+        /// <summary>
+        /// 刷卡人员卡号
+        /// </summary>      
+        [Required]
+        [StringLength(100)]
+        [Comment("刷卡人员卡号")]
+        public string? mebycard_byno { get; set; }
+        /// <summary>
+        /// 刷卡时间
+        /// </summary>   
+        [Comment("刷卡时间")]
+        public DateTime mebycard_time { get; set; }
+    }
+}

+ 51 - 0
MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_merecheck.cs

@@ -0,0 +1,51 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.ProductionProcess
+{
+    /// <summary>
+    /// 生产报检记录表
+    /// </summary>
+    [CollectionName("dopbase", "mes_merecheck")]
+    [Comment("生产报检记录表")]
+    public class mes_merecheck : BaseEntity
+    {
+        ///// <summary>
+        ///// 主键Id
+        ///// </summary>
+        //[Key]
+        //[Comment("生产报检记录Id")]
+        //public long merecheck_id { get; set; }
+        /// <summary>
+        /// 生产工单id
+        /// </summary>
+        [Comment("生产工单id")]
+        public long morder_id { get; set; }
+        /// <summary>
+        /// 生产工单号
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("生产工单号")]
+        public string? morder_no { get; set; }
+        /// <summary>
+        /// 报检数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("报检数量")]
+        public decimal qty { get; set; }
+        /// <summary>
+        /// 报检时间
+        /// </summary>
+        [Comment("报检时间")]
+        public DateTime oprtime { get; set; }
+        /// <summary>
+        /// 报检人id
+        /// </summary>
+        [Comment("报检人id")]
+        public long oprby { get; set; }
+    }
+}

+ 65 - 0
MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_mereport.cs

@@ -0,0 +1,65 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.ProductionProcess
+{
+    /// <summary>
+    /// 生产报工记录表
+    /// </summary>
+    [CollectionName("dopbase", "mes_mereport")]
+    [Comment("生产报工记录表")]
+    public class mes_mereport :BaseEntity
+    {
+        ///// <summary>
+        ///// 主键ID
+        ///// </summary>
+        //[Key]
+        //[Comment("生产报工记录Id")]
+        //public long mereport_id { get; set; }
+        /// <summary>
+        /// 生产工单id
+        /// </summary>
+        [Comment("生产工单id")]
+        public long morder_id { get; set; }
+        /// <summary>
+        /// 生产工单号
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("生产工单号")]
+        public string morder_no { get; set; }
+        /// <summary>
+        /// 报工数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("报工数量")]
+        public decimal qty { get; set; }
+        /// <summary>
+        /// 报工时间
+        /// </summary>
+        [Comment("报工时间")]
+        public DateTime report_time { get; set; }
+        /// <summary>
+        /// 报工人id
+        /// </summary>
+        [Comment("报工人id")]
+        public long report_by { get; set; }
+        /// <summary>
+        /// 报工人工号
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("报工人工号")]
+        public string report_byno { get; set; }
+        /// <summary>
+        /// 已报数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("报工数量")]
+        public decimal instock_qty { get; set; }
+
+    }
+}

+ 127 - 0
MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_prd_sendmat.cs

@@ -0,0 +1,127 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.ProductionProcess
+{
+    /// <summary>
+    /// 发料单
+    /// </summary>
+    [CollectionName("dopbase", "mes_prd_sendmat")]
+    [Comment("发料单")]
+    public class mes_prd_sendmat :BaseEntity
+    {
+        ///// <summary>
+        ///// 发料单id
+        ///// </summary>
+        //[Key]
+        //[Comment("发料单id")]
+        //public long prdsm_id { get; set; }
+        /// <summary>
+        /// 单据类型 (发料、叫料、补料、退料)
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("单据类型 (发料、叫料、补料、退料)")]
+        public string prdsm_type { get; set; }
+        /// <summary>
+        /// 单据编号
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("单据编号")]
+        public string prdsm_no { get; set; }
+        /// <summary>
+        /// 单据日期
+        /// </summary>
+        [Comment("单据日期")]
+        public DateTime prdsm_date { get; set; }
+        /// <summary>
+        /// 生产组织id
+        /// </summary>
+        [Comment("生产组织id")]
+        public long prdsm_prdid { get; set; }
+        /// <summary>
+        /// 工作中心id
+        /// </summary>
+        [Comment("工作中心id")]
+        public long prdsm_workcid { get; set; }
+        /// <summary>
+        /// 生产工单id
+        /// </summary>
+        [Comment("生产工单id")]
+        public long prdsm_moid { get; set; }
+        /// <summary>
+        /// 生产工单号
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("生产工单号")]
+        public string prdsm_mono { get; set; }
+        /// <summary>
+        /// 制单人
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("制单人")]
+        public string prdsm_by { get; set; }
+        /// <summary>
+        /// 备注
+        /// </summary>
+        [StringLength(500)]
+        [Comment("备注")]
+        public string? prdsm_note { get; set; }
+        /// <summary>
+        /// 状态
+        /// </summary>
+        [DefaultValue(0)]
+        [Comment("状态")]
+        public int? prdsm_state { get; set; }
+        /// <summary>
+        /// 补料理由
+        /// </summary>
+        [StringLength(500)]
+        [Comment("补料理由")]
+        public string? prdsm_reason { get; set; }
+        /// <summary>
+        /// 退料原因
+        /// </summary>
+        //public string prdsm_breason { get; set; }
+        /// <summary>
+        /// 叫料数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("叫料数量")]
+        public decimal prdsm_qty { get; set; }
+        /// <summary>
+        /// 配送日期
+        /// </summary>
+        [Comment("配送日期")]
+        public DateTime? prdsm_ddate { get; set; }
+        /// <summary>
+        /// 关联委外po单号
+        /// </summary>
+        [StringLength(100)]
+        [Comment("关联委外po单号")]
+        public string? prdsm_po_no { get; set; }
+        /// <summary>
+        /// 关联委外po行号
+        /// </summary>
+        [Comment("关联委外po行号")]
+        public int? prdsm_po_row { get; set; }
+        /// <summary>
+        /// 原单类型  0 生产工单  1 委外工单
+        /// </summary>
+        [DefaultValue(0)]
+        [Comment("原单类型")]
+        public int srcbill_type { get; set; }
+        /// <summary>
+        /// 源单状态  0 初始   1 下达 2 开始往金蝶推
+        /// </summary>
+        [DefaultValue(0)]
+        [Comment("源单状态")]
+        public int srcbill_state { get; set; }
+    }
+}

+ 168 - 0
MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_prd_sendmat_list.cs

@@ -0,0 +1,168 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.ProductionProcess
+{
+    /// <summary>
+    /// 发料单详情
+    /// </summary>
+    [CollectionName("dopbase", "mes_prd_sendmat_list")]
+    [Comment("发料单详情")]
+    public class mes_prd_sendmat_list : BaseEntity
+    {
+        ///// <summary>
+        ///// 发料单详情id
+        ///// </summary>
+        //[Key]
+        //[Comment("发料单详情id")]
+        //public long prdsml_id { get; set; }
+        /// <summary>
+        /// 发料单id
+        /// </summary>
+        [Comment("发料单id")]
+        public long prdsm_id { get; set; }
+        /// <summary>
+        /// 工序编码
+        /// </summary>
+        [StringLength(50)]
+        [Comment("工序编码")]
+        public string? prdsml_procno { get; set; }
+        /// <summary>
+        /// 工序名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("工序名称")]
+        public string? prdsml_procname { get; set; }
+        /// <summary>
+        /// 物料编码
+        /// </summary>
+        [StringLength(100)]
+        [Comment("物料编码")]
+        public string? fitem_number { get; set; }
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(100)]
+        [Comment("物料编码")]
+        public string? fitem_name { get; set; }
+        /// <summary>
+        /// 规格型号
+        /// </summary>
+        [StringLength(100)]
+        [Comment("物料编码")]
+        public string? fmodel { get; set; }
+        /// <summary>
+        /// 单位数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("单位数量")]
+        public decimal? prdsml_qtyper { get; set; }
+        /// <summary>
+        /// 确认单位数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("确认单位数量")]
+        public decimal? prdsml_cqtyper { get; set; }
+        /// <summary>
+        /// 计量单位
+        /// </summary>
+        [StringLength(50)]
+        [Comment("计量单位")]
+        public string? prdsml_unit { get; set; }
+        /// <summary>
+        /// 应发数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("应发数量")]
+        public decimal? prdsml_qtyto { get; set; }
+        /// <summary>
+        /// 计划数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("计划数量")]
+        public decimal? prdsml_qtyplan { get; set; }
+        /// <summary>
+        /// 已发数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("已发数量")]
+        public decimal prdsml_qtyissued { get; set; }
+        /// <summary>
+        /// 发料仓库id
+        /// </summary>
+        [Comment("发料仓库id")]
+        public long prdsml_whid { get; set; }
+        /// <summary>
+        /// 发料仓库编码
+        /// </summary>
+        [StringLength(50)]
+        [Comment("发料仓库编码")]
+        public string? prdsml_whno { get; set; }
+        /// <summary>
+        /// 发料仓库名称
+        /// </summary>
+        [StringLength(500)]
+        [Comment("发料仓库名称")]
+        public string? prdsml_whname { get; set; }
+        /// <summary>
+        /// 退料原因
+        /// </summary>
+        [StringLength(500)]
+        [Comment("退料原因")]
+        public string? prdsm_breason { get; set; }
+        /// <summary>
+        /// 是否倒冲 (0-否,1-是)
+        /// </summary>
+        [Comment("是否倒冲")]
+        public int? fbackflush { get; set; }
+        /// <summary>
+        /// 行号
+        /// </summary>
+        [Comment("行号")]
+        public int? prsml_row { get; set; }
+        /// <summary>
+        /// 子项属性
+        /// </summary>
+        [StringLength(255)]
+        [Comment("子项属性")]
+        public string? fmateriel_type { get; set; }
+        /// <summary>
+        /// 关键件
+        /// </summary>
+        [StringLength(255)]
+        [Comment("子项属性")]
+        public string? fisKey_item { get; set; }
+        /// <summary>
+        /// 计划发料日期
+        /// </summary>
+        [Comment("计划发料日期")]
+        public DateTime? send_date { get; set; }
+        /// <summary>
+        /// 工位
+        /// </summary>
+        [StringLength(255)]
+        [Comment("工位")]
+        public string station { get; set; }
+        /// <summary>
+        /// 报废数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("报废数量")]
+        public decimal? fdiscard_aux_qty { get; set; }
+        /// <summary>
+        /// 补料数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("补料数量")]
+        public decimal? fqty_supply { get; set; }
+        /// <summary>
+        /// 退料数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("退料数量")]
+        public decimal? fqty_send_back { get; set; }
+    }
+}

+ 66 - 0
MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_prdlog.cs

@@ -0,0 +1,66 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.ProductionProcess
+{
+    /// <summary>
+    /// 生产操作日志
+    /// </summary>
+    [CollectionName("dopbase", "mes_prdlog")]
+    [Comment("生产操作日志")]
+    public class mes_prdlog :BaseEntity
+    {
+        ///// <summary>
+        ///// 生产操作日志id
+        ///// </summary>
+        //[Key]
+        //[Comment("生产操作日志id")]
+        //public long prdlog_id { get; set; }
+
+        /// <summary>
+        /// 业务类型
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("业务类型")]
+        public string prdlog_type { get; set; }
+        /// <summary>
+        /// 关联单号
+        /// </summary> 
+        [Required]
+        [StringLength(80)]
+        [Comment("业务类型")]
+        public string prdlog_no { get; set; }
+        /// <summary>
+        /// 行号
+        /// </summary>
+        [Comment("行号")]
+        public int prdlog_entryid { get; set; }
+        /// <summary>
+        /// 执行时间
+        /// </summary>
+        [Comment("执行时间")]
+        public DateTime? prdlog_time { get; set; }
+        /// <summary>
+        /// 执行人id
+        /// </summary>
+        [Comment("执行人id")]
+        public long? prdlog_by_id { get; set; }
+        /// <summary>
+        /// 执行人姓名
+        /// </summary>
+        [StringLength(80)]
+        [Comment("执行人姓名")]
+        public string? prdlog_by_name { get; set; }
+        /// <summary>
+        /// 内容
+        /// </summary>
+        [StringLength(255)]
+        [Comment("内容")]
+        public string? prdlog_note { get; set; }
+     
+    }
+}

+ 50 - 0
MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_product_work_time.cs

@@ -0,0 +1,50 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.ProductionProcess
+{
+    /// <summary>
+    /// mo的生产时间记录
+    /// </summary>
+    [CollectionName("dopbase", "mes_product_work_time")]
+    [Comment("mo的生产时间记录")]
+    public class mes_product_work_time : BaseEntity
+    {
+        ///// <summary>
+        ///// 生产时间记录id
+        ///// </summary>
+        //[Key]
+        //[Comment("生产时间记录id")]
+        //public long id { get; set; }
+        /// <summary>
+        /// 日期
+        /// </summary>
+        [Comment("生产时间记录id")]
+        public DateTime? work_date { get; set; }
+        /// <summary>
+        /// 开始时间
+        /// </summary>
+        [Comment("开始时间")]
+        public DateTime? start { get; set; }
+        /// <summary>
+        /// 结束时间
+        /// </summary>
+        [Comment("结束时间")]
+        public DateTime? stop { get; set; }
+        /// <summary>
+        /// 卡号
+        /// </summary>
+        [StringLength(255)]
+        [Comment("卡号")]
+        public string? card_no { get; set; }
+        /// <summary>
+        /// 产线
+        /// </summary>
+        [StringLength(255)]
+        [Comment("产线")]
+        public string? product_line { get; set; }
+    }
+}

+ 74 - 0
MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_stock_enter.cs

@@ -0,0 +1,74 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.ProductionProcess
+{
+    /// <summary>
+    /// 入库单
+    /// </summary>
+    [CollectionName("dopbase", "mes_stock_enter")]
+    [Comment("入库单")]
+    public class mes_stock_enter : BaseEntity
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("入库单id")]
+        //public long id { get; set; }
+        /// <summary>
+        /// 物料编码
+        /// </summary>
+        [StringLength(255)]
+        [Comment("物料编码")]
+        public string? fitem_number { get; set; }
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("物料名称")]
+        public string? fitem_name { get; set; }
+        /// <summary>
+        /// 全名
+        /// </summary>
+        [StringLength(255)]
+        [Comment("全名")]
+        public string? ffull_name { get; set; }
+        /// <summary>
+        /// 规格型号
+        /// </summary>
+        [StringLength(255)]
+        [Comment("规格型号")]
+        public string? fmodel { get; set; }
+        /// <summary>
+        /// 工单号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("工单号")]
+        public string? order_no { get; set; }
+        /// <summary>
+        /// 入库日期
+        /// </summary>
+        [Comment("入库日期")]
+        public DateTime edate { get; set; }
+        /// <summary>
+        /// 入库数量
+        /// </summary>
+        [Comment("入库数量")]
+        public int eqty { get; set; }
+        /// <summary>
+        /// 入库人id
+        /// </summary>
+        [Comment("入库人id")]
+        public long eby { get; set; }
+        /// <summary>
+        /// 入库人姓名
+        /// </summary>
+        [StringLength(80)]
+        [Comment("入库人姓名")]
+        public string? ebyname { get; set; }
+    }
+}

+ 110 - 0
MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_stock_out.cs

@@ -0,0 +1,110 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.ProductionProcess
+{
+    /// <summary>
+    /// 出库单
+    /// </summary>
+    [CollectionName("dopbase", "mes_stock_out")]
+    [Comment("出库单")]
+    public class mes_stock_out : BaseEntity
+    {
+        ///// <summary>
+        ///// 主键Id
+        ///// </summary>
+        //[Key]
+        //[Comment("出库单Id")]
+        //public long id { get; set; }
+
+        /// <summary>
+        /// 出库单号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("出库单号")]
+        public string? out_no { get; set; }
+        /// <summary>
+        /// 仓库名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("仓库名称")]
+        public string? stock_name { get; set; }
+        /// <summary>
+        /// 仓库编码
+        /// </summary>
+        [StringLength(255)]
+        [Comment("仓库编码")]
+        public string? stock_no { get; set; }
+        /// <summary>
+        /// 物料编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料编码")]
+        public string? fitem_number { get; set; }
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("物料名称")]
+        public string? fitem_name { get; set; }
+        /// <summary>
+        /// 全名
+        /// </summary>
+        [StringLength(255)]
+        [Comment("全名")]
+        public string? ffull_name { get; set; }
+        /// <summary>
+        /// 规格型号
+        /// </summary>
+        [StringLength(255)]
+        [Comment("规格型号")]
+        public string? fmodel { get; set; }
+        /// <summary>
+        /// 销售订单号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("销售订单号")]
+        public string? order_no { get; set; }
+        /// <summary>
+        /// 订单行号
+        /// </summary>
+        [Comment("订单行号")]
+        public int? order_number { get; set; }
+        /// <summary>
+        /// 发运通知单号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("发运通知单号")]
+        public string? shipn_no { get; set; }
+        /// <summary>
+        /// 出库日期
+        /// </summary>
+        [Comment("出库日期")]
+        public DateTime edate { get; set; }
+        /// <summary>
+        /// 出库数量
+        /// </summary>
+        [Comment("出库数量")]
+        public int eqty { get; set; }
+        /// <summary>
+        /// 计量单位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("计量单位")]
+        public string? unit { get; set; }
+        /// <summary>
+        /// 出库人id
+        /// </summary>
+        [Comment("出库人id")]
+        public long? eby { get; set; }
+        /// <summary>
+        /// 出库人姓名
+        /// </summary>
+        [StringLength(80)]
+        [Comment("出库人姓名")]
+        public string? eby_name { get; set; }
+    }
+}

+ 78 - 0
MicroServices/Business/Bussiness.MongoDB.Model/ProductionProcess/mes_swipe_card.cs

@@ -0,0 +1,78 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.ProductionProcess
+{
+    /// <summary>
+    /// mes打卡记录表
+    /// </summary>
+    [CollectionName("dopbase", "mes_swipe_card")]
+    [Comment("mes打卡记录表")]
+    public class mes_swipe_card : BaseEntity
+    {
+        ///// <summary>
+        ///// mes打卡记录id
+        ///// </summary>
+        //[Key]
+        //[Comment("mes打卡记录id")]
+        //public long id { get; set; }
+        /// <summary>
+        /// 生产车间
+        /// </summary>
+        [Required]
+        [StringLength(255)]
+        [Comment("生产车间")]
+
+        public string? product_org { get; set; }
+        /// <summary>
+        /// 生产产线
+        /// </summary>
+        [Required]
+        [StringLength(255)]
+        [Comment("生产产线")]
+
+        public string? product_line { get; set; }
+        /// <summary>
+        /// 卡号
+        /// </summary>
+        [Required]
+        [StringLength(80)]
+        [Comment("卡号")]
+
+        public string? card_no { get; set; }
+        /// <summary>
+        /// 工单编号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("工单编号")]
+
+        public string? order_no { get; set; }
+        /// <summary>
+        /// 上线时间
+        /// </summary>
+        [Comment("上线时间")]
+
+        public DateTime? up_line_time { get; set; }
+        /// <summary>
+        /// 下线时间
+        /// </summary>
+        [Comment("下线时间")]
+
+        public DateTime? off_line_time { get; set; }
+        /// <summary>
+        /// 刷卡类型  1 白班 ,2 晚班
+        /// </summary>
+        [Comment("刷卡类型")]
+
+        public int type { get; set; }
+        /// <summary>
+        /// 刷卡日期
+        /// </summary>
+        [Comment("刷卡日期")]
+
+        public DateTime swipe_date { get; set; }
+    }
+}

+ 56 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SIM/sim_base.cs

@@ -0,0 +1,56 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.SIM
+{
+    /// <summary>
+    /// sim基本表
+    /// </summary>
+    [Comment("sim基本表")]
+    [CollectionName("dopbase", "sim_base")]
+    public class sim_base:BaseEntity
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("主键id")]
+        //public long sim_id { get; set; }
+
+        /// <summary>
+        /// sim等级
+        /// </summary>
+        [StringLength(255)]
+        [Comment("sim等级")]
+        public string? sim_grade { get; set; }
+
+        /// <summary>
+        /// sim层级顺序
+        /// </summary>
+        [Comment("sim层级顺序")]
+        public int? sim_level { get; set; }
+
+        /// <summary>
+        /// 上升周期
+        /// </summary>
+        [Precision(10,0)]
+        [Comment("上升周期")]
+        public decimal? rise_cycle { get; set; }
+
+        /// <summary>
+        /// 间隔天数
+        /// </summary>
+        [Precision(10, 0)]
+        [Comment("间隔天数")]
+        public decimal? interval_days { get; set; }
+
+        /// <summary>
+        /// 上升时间
+        /// </summary>
+        [Comment("上升时间")]
+        public DateTime? rise_time { get; set; }
+    }
+}

+ 64 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SIM/sim_issue_type.cs

@@ -0,0 +1,64 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.SIM
+{
+    /// <summary>
+    /// sim事项类别表
+    /// </summary>
+    [Comment("上升时间")]
+    [CollectionName("dopbase", "sim_issue_type")]
+    public class sim_issue_type: BaseEntity
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("上升时间")]
+        //public long issue_type_id { get; set; }
+
+        /// <summary>
+        /// 类别代码
+        /// </summary>
+        [StringLength(255)]
+        [Comment("类别代码")]
+        public string? type_code { get; set; }
+
+        /// <summary>
+        /// 类别名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("类别名称")]
+        public string? type_name { get; set; }
+
+        /// <summary>
+        /// 应用场景
+        /// </summary>
+        [StringLength(255)]
+        [Comment("应用场景")]
+        public string? app_scenario { get; set; }
+
+        /// <summary>
+        /// 问题等级
+        /// </summary>
+        [StringLength(255)]
+        [Comment("问题等级")]
+        public string? issue_grade { get; set; }
+
+        /// <summary>
+        /// 责任人
+        /// </summary>
+        [StringLength(255)]
+        [Comment("责任人")]
+        public string? duty_person { get; set; }
+
+        /// <summary>
+        /// 责任部门id
+        /// </summary>
+        [Comment("责任部门id")]
+        public long? duty_dept { get; set; }
+    }
+}

+ 30 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SIM/sim_plant.cs

@@ -0,0 +1,30 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.SIM
+{
+    /// <summary>
+    /// sim事项表
+    /// </summary>
+    [Comment("sim事项表")]
+    [CollectionName("dopbase", "sim_plant")]
+    public class sim_plant:BaseEntity
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("主键id")]
+        //public long plant_id { get; set; }
+
+        /// <summary>
+        /// 事项名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("事项名称")]
+        public string? plant_name { get; set; }
+    }
+}

+ 36 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SIM/sim_user_relation.cs

@@ -0,0 +1,36 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.SIM
+{
+    /// <summary>
+    /// sim用户关联表
+    /// </summary>
+    [Comment("sim用户关联表")]
+    [CollectionName("dopbase", "sim_user_relation")]
+    public class sim_user_relation: BaseEntity
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("主键id")]
+        //public long id { get; set; }
+
+        /// <summary>
+        /// base_sim表ID
+        /// </summary>
+        [Comment("base_sim表ID")]
+        public long sim_id { get; set; }
+
+        /// <summary>
+        /// 用户id
+        /// </summary>
+        [Comment("用户id")]
+        public long user_id { get; set; }
+
+    }
+}

+ 200 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SRM/srm_po_list.cs

@@ -0,0 +1,200 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Bussiness.Model.SRM
+{
+    /// <summary>
+    /// 采购订单明细详情
+    /// </summary>
+    [CollectionName("dopbase", "srm_po_list")]
+    [Comment("采购订单明细详情")]
+    public class srm_po_list : BaseEntity
+    {
+        /// <summary>
+        /// po单id
+        /// </summary>
+        [Required]
+        [Comment("po单id")]
+        public long? po_id { get; set; }
+        /// <summary>
+        /// po单号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("po单号")]
+        public string? po_billno { get; set; }
+        /// <summary>
+        /// 行号
+        /// </summary>
+        [Comment("行号")]
+        public int? polist_row { get; set; }
+        /// <summary>
+        /// pr申请单id
+        /// </summary>
+        [Required]
+        [Comment("pr申请单id")]
+        public long? pr_id { get; set; }
+        /// <summary>
+        /// pr申请单号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("pr申请单号")]
+        public string? pr_billno { get; set; }
+        /// <summary>
+        /// 关联工单号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("关联工单号")]
+        public string? po_mono { get; set; }
+        /// <summary>
+        /// 供应商id
+        /// </summary>
+        [Required]
+        [Comment("供应商id")]
+        public long? pr_purchase_id { get; set; }
+        /// <summary>
+        /// 供应商名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("供应商名称")]
+        public string? pr_purchase_name { get; set; }
+        /// <summary>
+        /// 收货仓库id
+        /// </summary>
+        [Required]
+        [Comment("收货仓库id")]
+        public long? stock_id { get; set; }
+        /// <summary>
+        /// 收货仓库名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("收货仓库名称")]
+        public string? stock_name { get; set; }
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Required]
+        [Comment("物料id")]
+        public long? icitem_id { get; set; }
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(100)]
+        [Comment("物料名称")]
+        public string? icitem_name { get; set; }
+        /// <summary>
+        /// 订单数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("订单数量")]
+        public decimal? qty { get; set; }
+        /// <summary>
+        /// 净价
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("净价")]
+        public decimal? netprice { get; set; }
+        /// <summary>
+        /// 税率
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("税率")]
+        public decimal? rate { get; set; }
+        /// <summary>
+        /// 含税单价
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("含税单价")]
+        public decimal? price { get; set; }
+        /// <summary>
+        /// 总价
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("总价")]
+        public decimal? total_price { get; set; }
+        /// <summary>
+        /// 计划数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("计划数量")]
+        public decimal? plan_qty { get; set; }
+        /// <summary>
+        /// 单位
+        /// </summary>
+        [Required]
+        [Comment("单位")]
+        public long? unit { get; set; }
+        /// <summary>
+        /// 数据状态标识 0停用 1启用
+        /// </summary>
+        [Comment("数据状态标识")]
+        public int? state { get; set; }
+        /// <summary>
+        /// 需求到货日期
+        /// </summary>
+        [Comment("需求到货日期")]
+        public DateTime? rarrdate { get; set; }
+        /// <summary>
+        /// 评审状态(0-待评审、1-评审通过、2-评审未通过)
+        /// </summary>
+        [Comment("评审状态")]
+        public int? rstate { get; set; }
+        /// <summary>
+        /// 评审次数
+        /// </summary>
+        [Comment("评审次数")]
+        public int rnumber { get; set; }
+        /// <summary>
+        /// 已收货数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("已收货数量")]
+        public decimal? rqty { get; set; }
+        /// <summary>
+        /// 已入库数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("已入库数量")]
+        public decimal? esqty { get; set; }
+        /// <summary>
+        /// 采购到货日期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("采购到货日期")]
+        public decimal? procurement_rarr_date { get; set; }
+        /// <summary>
+        /// 再计划到货日期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("再计划到货日期")]
+        public decimal? rparrive_date { get; set; }
+        /// <summary>
+        /// 供应商交期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("供应商交期")]
+        public decimal? purchase_date { get; set; }
+        /// <summary>
+        /// 采购确认到货日期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("采购确认到货日期")]
+        public decimal? pur_affirmdate { get; set; }
+        /// <summary>
+        /// 币别
+        /// </summary>
+        [Required]
+        [Comment("币别")]
+        public long? currencytype { get; set; }
+
+        /// <summary>
+        /// 计算ID
+        /// </summary>
+        [Comment("计算id")]
+        [NotMapped]
+        public long? bang_id { get; set; }
+    }
+}

+ 126 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SRM/srm_po_main.cs

@@ -0,0 +1,126 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Bussiness.Model.SRM
+{
+    /// <summary>
+    /// 采购订单
+    /// </summary>
+    [CollectionName("dopbase", "srm_po_main")]
+    [Comment("采购订单")]
+    public class srm_po_main : BaseEntity
+    {
+        /// <summary>
+        /// PO单号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("PO单号")]
+        public string? po_billno { get; set; }
+        /// <summary>
+        /// 采购员
+        /// </summary>
+        [StringLength(80)]
+        [Comment("采购员")]
+        public string? po_purchaser { get; set; }
+        /// <summary>
+        /// 采购员工号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("采购员工号")]
+        public string? po_purchaser_no { get; set; }
+        /// <summary>
+        /// 供应商id
+        /// </summary>
+        [Required]
+        [Comment("供应商id")]
+        public long? po_purchase_id { get; set; }
+        /// <summary>
+        /// 供应商名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("供应商名称")]
+        public string? po_purchase_name { get; set; }
+        /// <summary>
+        /// 下单日期
+        /// </summary>
+        [Comment("下单日期")]
+        public DateTime? po_ssend_date { get; set; }
+        /// <summary>
+        /// 订单总价
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("订单总价")]
+        public decimal? po_total { get; set; }
+        /// <summary>
+        /// 交货方式
+        /// </summary>
+        [Required]
+        [Comment("交货方式")]
+        public long? po_delivery { get; set; }
+        /// <summary>
+        /// 税率
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("税率")]
+        public decimal? po_tax_rate { get; set; }
+        /// <summary>
+        /// 是否加急
+        /// </summary>
+        [Comment("是否加急")]
+        public int? po_express { get; set; }
+        /// <summary>
+        /// 数据状态(0-新增、1-通过、2-完成、3-关闭、4-未通过)
+        /// </summary>
+        [Comment("数据状态")]
+        public int? state { get; set; }
+        /// <summary>
+        /// 备注
+        /// </summary>
+        [StringLength(1000)]
+        [Comment("备注")]
+        public string? po_note { get; set; }
+        /// <summary>
+        /// 评审状态
+        /// </summary>
+        [Comment("评审状态")]
+        public int? rstate { get; set; }
+        /// <summary>
+        /// 评审次数
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("评审次数")]
+        public decimal? rnumber { get; set; }
+        /// <summary>
+        /// 评审通过时间
+        /// </summary>
+        [Comment("评审通过时间")]
+        public DateTime? review_rtime { get; set; }
+        /// <summary>
+        /// 单据类型
+        /// </summary>
+        [Comment("单据类型")]
+        public int? po_order_type { get; set; }
+        /// <summary>
+        /// 币别
+        /// </summary>
+        [Required]
+        [Comment("币别")]
+        public long? currency { get; set; }
+        /// <summary>
+        /// 金蝶单据类型值(标准采购订单、标准委外订单)
+        /// </summary>
+        [Comment("金蝶单据类型值")]
+        public int? bill_type { get; set; }
+
+        /// <summary>
+        /// 计算ID
+        /// </summary>
+        [Comment("计算id")]
+        [NotMapped]
+        public long? bang_id { get; set; }
+    }
+}

+ 98 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SRM/srm_po_occupy.cs

@@ -0,0 +1,98 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Bussiness.Model.SRM
+{
+    /// <summary>
+    /// 采购订单占用详情
+    /// </summary>
+    [CollectionName("dopbase", "srm_po_occupy")]
+    [Comment("采购订单占用详情")]
+    public class srm_po_occupy : BaseEntity
+    {
+        /// <summary>
+        /// 采购订单id
+        /// </summary>
+        [Required]
+        [Comment("采购订单id")]
+        public long? polist_id { get; set; }
+        /// <summary>
+        /// 采购订单行号
+        /// </summary>
+        [Comment("采购订单行号")]
+        public int? polist_row { get; set; }
+        /// <summary>
+        /// 客户订单行id
+        /// </summary>
+        [Required]
+        [Comment("客户订单行id")]
+        public long? eid { get; set; }
+        /// <summary>
+        /// 客户订单id
+        /// </summary>
+        [Required]
+        [Comment("客户订单id")]
+        public long? bill_no { get; set; }
+        /// <summary>
+        /// 类型
+        /// </summary>
+        [StringLength(80)]
+        [Comment("类型")]
+        public string? type { get; set; }
+        /// <summary>
+        /// 行号
+        /// </summary>
+        [Comment("行号")]
+        public int entry_id { get; set; }
+        /// <summary>
+        /// 占用量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("占用量")]
+        public decimal? qty { get; set; }
+        /// <summary>
+        /// 开始时间
+        /// </summary>
+        [Comment("开始时间")]
+        public DateTime? stime { get; set; }
+        /// <summary>
+        /// 结束时间
+        /// </summary>
+        [Comment("结束时间")]
+        public DateTime? etime { get; set; }
+        /// <summary>
+        /// 占用状态
+        /// </summary>
+        [Comment("占用状态")]
+        public int? state { get; set; }
+        /// <summary>
+        /// 变更人
+        /// </summary>
+        [StringLength(80)]
+        [Comment("变更人")]
+        public string? cby { get; set; }
+        /// <summary>
+        /// 变更原因
+        /// </summary>
+        [StringLength(1000)]
+        [Comment("变更原因")]
+        public string? creason { get; set; }
+        /// <summary>
+        /// 变更时间
+        /// </summary>
+        [Comment("变更时间")]
+        public DateTime? ctime { get; set; }
+
+        /// <summary>
+        /// 计算ID
+        /// </summary>
+        [Comment("计算id")]
+        [NotMapped]
+        public long? bang_id { get; set; }
+
+    }
+}

+ 222 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SRM/srm_pr_main.cs

@@ -0,0 +1,222 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Bussiness.Model.SRM
+{
+    /// <summary>
+    /// 采购申请单
+    /// </summary>
+    [CollectionName("dopbase", "srm_pr_main")]
+    [Comment("采购申请单")]
+    public class srm_pr_main : BaseEntity
+    {
+        /// <summary>
+        /// pr单号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("pr单号")]
+        public string? pr_billno { get; set; }
+        /// <summary>
+        /// 关联工单号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("关联工单号")]
+        public string? pr_mono { get; set; }
+        /// <summary>
+        /// 工单行号
+        /// </summary>
+        [Comment("工单行号")]
+        public int? entity_id { get; set; }
+        /// <summary>
+        /// 供应商id
+        /// </summary>
+        [Required]
+        [Comment("供应商id")]
+        public long? pr_purchaseid { get; set; }
+        /// <summary>
+        /// 供应商编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("供应商编码")]
+        public string? pr_purchasenumber { get; set; }
+        /// <summary>
+        /// 供应商名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("供应商名称")]
+        public string? pr_purchasename { get; set; }
+        /// <summary>
+        /// 采购员
+        /// </summary>
+        [StringLength(80)]
+        [Comment("采购员")]
+        public string? pr_purchaser { get; set; }
+        /// <summary>
+        /// 采购员工号(采购信息表)
+        /// </summary>
+        [StringLength(80)]
+        [Comment("采购员工号")]
+        public string? pr_purchaser_num { get; set; }
+        /// <summary>
+        /// 需求数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("需求数量")]
+        public decimal? pr_rqty { get; set; }
+        /// <summary>
+        /// 申请数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("申请数量")]
+        public decimal? pr_aqty { get; set; }
+        /// <summary>
+        /// 建议数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("建议数量")]
+        public decimal? pr_sqty { get; set; }
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Required]
+        [Comment("物料id")]
+        public long? icitem_id { get; set; }
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料名称")]
+        public string? icitem_name { get; set; }
+        /// <summary>
+        /// 单据类型
+        /// </summary>
+        [Comment("单据类型")]
+        public int? pr_order_type { get; set; }
+        /// <summary>
+        /// 系统建议下单日期
+        /// </summary>
+        [Comment("系统建议下单日期")]
+        public DateTime? pr_ssend_date { get; set; }
+        /// <summary>
+        /// 系统建议到达日期(建议到货日期)
+        /// </summary>
+        [Comment("系统建议到达日期")]
+        public DateTime? pr_sarrive_date { get; set; }
+        /// <summary>
+        /// 采购员建议到货日期
+        /// </summary>
+        [Comment("采购员建议到货日期")]
+        public DateTime? pr_bsarrive_date { get; set; }
+        /// <summary>
+        /// 订单到货日期
+        /// </summary>
+        [Comment("订单到货日期")]
+        public DateTime? pr_oarrive_date { get; set; }
+        /// <summary>
+        /// 计划下单日期
+        /// </summary>
+        [Comment("计划下单日期")]
+        public DateTime? pr_psend_date { get; set; }
+        /// <summary>
+        /// 计划到达日期
+        /// </summary>
+        [Comment("计划到达日期")]
+        public DateTime? pr_parrive_date { get; set; }
+        /// <summary>
+        /// 需求到货日期
+        /// </summary>
+        [Comment("需求到货日期")]
+        public DateTime? pr_rarrive_date { get; set; }
+        /// <summary>
+        /// 再计划到货日期
+        /// </summary>
+        [Comment("再计划到货日期")]
+        public DateTime? pr_rparrive_date { get; set; }
+        /// <summary>
+        /// 采购确认到货日期
+        /// </summary>
+        [Comment("采购确认到货日期")]
+        public DateTime? pr_pur_affirm_date { get; set; }
+        /// <summary>
+        /// 系统价格(含税)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("系统价格(含税)")]
+        public decimal? pr_sysprice { get; set; }
+        /// <summary>
+        /// 订单价格(含税)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("订单价格(含税)")]
+        public decimal? pr_orderprice { get; set; }
+        /// <summary>
+        /// 采购净价(不含税)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("采购净价(不含税)")]
+        public decimal? pr_price { get; set; }
+        /// <summary>
+        /// 税率
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("税率")]
+        public decimal? pr_rate { get; set; }
+        /// <summary>
+        /// 单位
+        /// </summary>
+        [StringLength(20)]
+        [Comment("单位")]
+        public string? pr_unit { get; set; }
+        /// <summary>
+        /// 状态
+        /// </summary>
+        [Comment("状态")]
+        public int? state { get; set; }
+        /// <summary>
+        /// 已申请数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("已申请数量")]
+        public decimal? old_apply_aqty { get; set; }
+        /// <summary>
+        /// 申请类型
+        /// </summary>
+        [Comment("申请类型")]
+        public int? pr_type { get; set; }
+        /// <summary>
+        /// 币种
+        /// </summary>
+        [Required]
+        [Comment("币种")]
+        public long? currencytype { get; set; }
+        /// <summary>
+        /// 安全库存触发采购比例
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("安全库存触发采购比例")]
+        public decimal? secInv_ratio { get; set; }
+        /// <summary>
+        /// 备注
+        /// </summary>
+        [StringLength(1000)]
+        [Comment("备注")]
+        public string? remark { get; set; }
+        /// <summary>
+        /// 拒绝原因
+        /// </summary>
+        [StringLength(1000)]
+        [Comment("拒绝原因")]
+        public string? pr_rreason { get; set; }
+
+        /// <summary>
+        /// 计算ID
+        /// </summary>
+        [Comment("计算id")]
+        [NotMapped]
+        public long? bang_id { get; set; }
+    }
+}

+ 96 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SRM/srm_purchase.cs

@@ -0,0 +1,96 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.SRM
+{
+    /// <summary>
+    /// 物料采购信息表
+    /// </summary>
+    [CollectionName("dopbase", "srm_purchase")]
+    [Comment("物料采购信息表")]
+    public class srm_purchase : BaseEntity
+    {
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Required]
+        [Comment("物料id")]
+        public long icitem_id { get; set; }
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料名称")]
+        public string? icitem_name { get; set; }
+        /// <summary>
+        /// 计划id
+        /// </summary>
+        [Required]
+        [Comment("计划id")]
+        public long? ic_plan_id { get; set; }
+        /// <summary>
+        /// 采购负责人
+        /// </summary>
+        [StringLength(80)]
+        [Comment("采购负责人")]
+        public string? order_rector_name { get; set; }
+        /// <summary>
+        /// 采购负责人_工号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("采购负责人_工号")]
+        public string? order_rector_num { get; set; }
+        /// <summary>
+        /// 工厂编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("工厂编码")]
+        public string? factory_code { get; set; }
+        /// <summary>
+        /// 采购部门
+        /// </summary>
+        [StringLength(80)]
+        [Comment("采购部门")]
+        public string? order_dept { get; set; }
+        /// <summary>
+        /// 采购单价
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("采购单价")]
+        public decimal? order_price { get; set; }
+        /// <summary>
+        /// 销售单价
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("销售单价")]
+        public decimal? sale_price { get; set; }
+        /// <summary>
+        /// 最小订货量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("最小订货量")]
+        public decimal? qty_min { get; set; }
+        /// <summary>
+        /// 批量增量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("批量增量")]
+        public decimal? batch_append_qty { get; set; }
+        /// <summary>
+        /// 采购订单差异科目代码
+        /// </summary>
+        [Required]
+        [Comment("采购订单差异科目代码")]
+        public long? pov_acct { get; set; }
+        /// <summary>
+        /// 采购发票差异科目代码
+        /// </summary>
+        [Required]
+        [Comment("采购发票差异科目代码")]
+        public long? piv_acct { get; set; }
+
+    }
+}

+ 230 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Sale/crm_seorder.cs

@@ -0,0 +1,230 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Bussiness.Model.Sale
+{
+    /// <summary>
+    ///销售订单表
+    /// </summary>
+    [Comment("销售订单表")]
+    [CollectionName("dopbase", "crm_seorder")]
+    public class crm_seorder : BaseEntity
+    {
+        ///// <summary>
+        ///// 销售订单id
+        ///// </summary>
+        //[Key]
+        //[Comment("销售订单id")]
+        //public long seorder_id { get; set; }
+
+        /// <summary>
+        /// 订单编号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("订单编号")]
+        public string? bill_no { get; set; }
+
+        /// <summary>
+        /// 订单类别(销售、计划)
+        /// </summary>
+        [Comment("订单类别(销售、计划)")]
+        public int? order_type { get; set; }
+
+        /// <summary>
+        /// 贸易类型
+        /// </summary>
+        [Comment("贸易类型")]
+        public int? trade_type { get; set; }
+
+        /// <summary>
+        /// 销售订单类型
+        /// </summary>
+        /// </summary>
+        [Comment("销售订单类型")]
+        public int? sale_style { get; set; }
+
+        /// <summary>
+        /// 销售订单类型编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("销售订单类型编码")]
+        public string? sale_style_no { get; set; }
+
+        /// <summary>
+        /// 客户id
+        /// </summary>
+        [Comment("客户id")]
+        public int? custom_id { get; set; }
+
+        /// <summary>
+        /// 客户名称
+        /// </summary>
+        [Comment("客户名称")]
+        [StringLength(80)]
+        public string? custom_name { get; set; }
+
+        /// <summary>
+        /// 客户编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("客户编码")]
+        public string? custom_no { get; set; }
+
+        /// <summary>
+        /// 客户级别
+        /// </summary>
+        [StringLength(80)]
+        [Comment("客户级别")]
+        public string? custom_level { get; set; }
+
+        /// <summary>
+        /// 签订日期
+        /// </summary>
+        [Comment("签订日期")]
+        public DateTime? date { get; set; }
+
+        /// <summary>
+        /// 采购下单日期
+        /// </summary>
+        [Comment("采购下单日期")]
+        public DateTime? rdate { get; set; }
+
+        /// <summary>
+        /// 加急级别
+        /// </summary>
+        [Comment("加急级别")]
+        public int? urgent { get; set; }
+
+        /// <summary>
+        /// 币种
+        /// </summary>
+        [StringLength(50)]
+        [Comment("币种")]
+        public int? currency { get; set; }
+
+        /// <summary>
+        /// 汇率
+        /// </summary>
+        [Precision(20,8)]
+        [Comment("汇率")]
+        public decimal? exchange_rate { get; set; }
+
+
+        /// <summary>
+        /// 制单人
+        /// </summary>
+        [StringLength(50)]
+        [Comment("制单人")]
+        public string? biller { get; set; }
+
+        /// <summary>
+        /// 业务员工号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("业务员工号")]
+        public string? emp_no { get; set; }
+
+        /// <summary>
+        /// 业务员名称
+        /// </summary>
+        [StringLength(50)]
+        [Comment("业务员名称")]
+        public string? emp_name { get; set; }
+
+        /// <summary>
+        /// 审核人
+        /// </summary>
+        [StringLength(50)]
+        [Comment("审核人")]
+        public string? auditor { get; set; }
+
+        /// <summary>
+        /// 审核日期
+        /// </summary>
+        [Comment("审核日期")]
+        public DateTime? audit_date { get; set; }
+
+        /// <summary>
+        /// 订单状态
+        /// </summary>
+        [Comment("订单状态")]
+        public int? status { get; set; }
+
+        /// <summary>
+        /// 是否关闭1关闭0未关闭
+        /// </summary>
+        [DefaultValue(false)]
+        [Comment("是否关闭1关闭0未关闭")]
+        public bool closed { get; set; }
+
+        /// <summary>
+        /// 操作时间
+        /// </summary>
+        [Comment("操作时间")]
+        public DateTime? op_time { get; set; }
+
+        /// <summary>
+        /// 订单来源
+        /// </summary>
+        [StringLength(255)]
+        [Comment("订单来源")]
+        public string? bill_from { get; set; }
+
+        /// <summary>
+        /// 项目名称
+        /// </summary>
+        [Comment("项目名称")]
+        [StringLength(255)]
+        public string? project_name { get; set; }
+
+        /// <summary>
+        /// 项目编号
+        /// </summary>
+        [StringLength(255)]
+        [Comment("项目编号")]
+        public string? project_code { get; set; }
+
+        /// <summary>
+        /// 销售出库类型
+        /// </summary>
+        [Comment("销售出库类型")]
+        public int? out_stock_type { get; set; }
+
+        /// <summary>
+        /// 销售部门id
+        /// </summary>
+        [Comment("销售部门id")]
+        public long? sale_dept_id { get; set; }
+
+        /// <summary>
+        /// 销售部门名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("销售部门名称")]
+        public string? sale_dept_name { get; set; }
+
+        /// <summary>
+        /// 销售部门编号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("销售部门编号")]
+        public string? sale_dept_code { get; set; }
+
+        /// <summary>
+        /// 创建部门id
+        /// </summary>
+        [Comment("创建部门id")]
+        public long? create_dept { get; set; }
+
+        /// <summary>
+        /// 计算ID
+        /// </summary>
+        [Comment("计算id")]
+        [NotMapped]
+        public long? bang_id { get; set; }
+    }
+}

+ 346 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Sale/crm_seorderentry.cs

@@ -0,0 +1,346 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Bussiness.Model.Sale
+{
+    /// <summary>
+    ///销售订单明细表
+    /// </summary>
+    [Comment("销售订单明细表")]
+    [CollectionName("dopbase", "crm_seorderentry")]
+    public class crm_seorderentry : BaseEntity
+    {
+        ///// <summary>
+        ///// 销售订单明细表id
+        ///// </summary>
+        //[Key]
+        //[Comment("销售订单明细表id")]
+        //public long seorderentry_id { get; set; }
+
+        /// <summary>
+        /// 销售订单id
+        /// </summary>
+        [Comment("销售订单id")]
+        public long? seorder_id { get; set; }
+
+        /// <summary>
+        /// 销售订单编号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("销售订单编号")]
+        public string? bill_no { get; set; }
+
+        /// <summary>
+        /// 行号
+        /// </summary>
+        [Comment("行号")]
+        public int? entry_seq { get; set; }
+
+        /// <summary>
+        /// 对应代码
+        /// </summary>
+        [StringLength(255)]
+        [Comment("对应代码")]
+        public string? map_number { get; set; }
+
+        /// <summary>
+        /// 代码名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("代码名称")]
+        public string? map_name { get; set; }
+
+        /// <summary>
+        /// 产品代码
+        /// </summary>
+        [StringLength(255)]
+        [Comment("产品代码")]
+        public string? item_number { get; set; }
+
+        /// <summary>
+        /// FMS旧料号
+        /// </summary>
+        [StringLength(255)]
+        [Comment("FMS旧料号")]
+        public string? fms_number { get; set; }
+
+        /// <summary>
+        /// 产品名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("产品名称")]
+        public string? item_name { get; set; }
+
+        /// <summary>
+        /// 规格型号
+        /// </summary>
+        [StringLength(255)]
+        [Comment("规格型号")]
+        public string? specification { get; set; }
+
+        /// <summary>
+        /// 加急级别
+        /// </summary>
+        [Comment("加急级别")]
+        public int? urgent { get; set; }
+
+        /// <summary>
+        /// BOM编号
+        /// </summary>
+        [StringLength(255)]
+        [Comment("BOM编号")]
+        public string? bom_number { get; set; }
+
+        /// <summary>
+        /// 单位
+        /// </summary>
+        [StringLength(50)]
+        [Comment("单位")]
+        public string? unit { get; set; }
+
+        /// <summary>
+        /// 订单数量
+        /// </summary>
+        [Precision(20,8)]
+        [Comment("订单数量")]
+        public decimal? qty { get; set; }
+
+        /// <summary>
+        /// 单价
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("单价")]
+        public decimal? price { get; set; }
+
+        /// <summary>
+        /// 含税单价
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("含税单价")]
+        public decimal? tax_price { get; set; }
+
+        /// <summary>
+        /// 金额
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("金额")]
+        public decimal? amount { get; set; }
+
+        /// <summary>
+        /// 税率
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("税率")]
+        public decimal? tax_rate { get; set; }
+
+        /// <summary>
+        /// 折扣率
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("折扣率")]
+        public decimal? discount_rate { get; set; }
+
+        /// <summary>
+        /// 折扣额
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("折扣额")]
+        public decimal? discount_amount { get; set; }
+
+        /// <summary>
+        /// 实际含税单价
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("实际含税单价")]
+        public decimal? aux_price_discount { get; set; }
+
+        /// <summary>
+        /// 销项税额
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("销项税额")]
+        public decimal? tax_amtount { get; set; }
+
+        /// <summary>
+        /// 价税合计
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("价税合计")]
+        public decimal? total_amount { get; set; }
+
+        /// <summary>
+        /// 客户要求交期
+        /// </summary>
+        [Comment("客户要求交期")]
+        public DateTime? plan_date { get; set; }
+
+        /// <summary>
+        /// 最终交货日期
+        /// </summary>
+        [Comment("最终交货日期")]
+        public DateTime? date { get; set; }
+
+        /// <summary>
+        /// 计划员
+        /// </summary>
+        [StringLength(50)]
+        [Comment("计划员")]
+        public string? planner_name { get; set; }
+
+        /// <summary>
+        /// 计划员_工号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("计划员_工号")]
+        public string? planner_no { get; set; }
+
+        /// <summary>
+        /// 备注
+        /// </summary>
+        [StringLength(255)]
+        [Comment("备注")]
+        public string? remark { get; set; }
+
+        /// <summary>
+        /// 源单编号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("源单编号")]
+        public string? soure_bill_no { get; set; }
+
+        /// <summary>
+        /// 客户订单号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("客户订单号")]
+        public string? custom_order_bill_no { get; set; }
+
+        /// <summary>
+        /// 客户订单行号
+        /// </summary>
+        [Comment("客户订单行号")]
+        public int? custom_order_entryid { get; set; }
+
+        /// <summary>
+        /// 系统建议交期(产能)
+        /// </summary>
+        [Comment("系统建议交期(产能)")]
+        public DateTime? sys_capacity_date { get; set; }
+
+        /// <summary>
+        ///调整建议交期
+        /// </summary>
+        [Comment("调整建议交期")]
+        public DateTime? adjust_date { get; set; }
+
+        /// <summary>
+        ///调整建议交期
+        /// </summary>
+        [Comment("mrp关闭")]
+        [DefaultValue(false)]
+        public bool? mrp_closed { get; set; }
+
+        /// <summary>
+        /// 操作时间
+        /// </summary>
+        [Comment("操作时间")]
+        public DateTime? op_time { get; set; }
+
+        /// <summary>
+        /// 客户料号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("客户料号")]
+        public string? custom_order_itemno { get; set; }
+
+        /// <summary>
+        /// 数据状态标识 0停用 1启用
+        /// </summary>
+        [Comment("数据状态标识 0停用 1启用")]
+        [DefaultValue(true)]
+        public bool state { get; set; }
+
+        /// <summary>
+        /// 评审状态
+        /// </summary>
+        [Comment("评审状态")]
+        public int? rstate { get; set; }
+
+        /// <summary>
+        /// 评审次数
+        /// </summary>
+        [Comment("评审次数")]
+        public int? rnumber { get; set; }
+
+        /// <summary>
+        /// 订单进度
+        /// </summary>
+        [StringLength(255)]
+        [Comment("订单进度")]
+        public string? progress { get; set; }
+
+        /// <summary>
+        /// 发货通知单数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("发货通知单数量")]
+        public decimal? deliver_notice_count { get; set; }
+
+        /// <summary>
+        /// 发货数量(已出库数量)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("发货数量(已出库数量)")]
+        public decimal? deliver_count { get; set; }
+
+        /// <summary>
+        /// 业务员工号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("业务员工号")]
+        public string? se_reject_reason { get; set; }
+
+        /// <summary>
+        /// 出库类型
+        /// </summary>
+        [StringLength(50)]
+        [Comment("出库类型")]
+        public string? out_stock_type { get; set; }
+
+        /// <summary>
+        /// 是否完成检测,0未完成,1完成
+        /// </summary>
+        [Comment("是否完成检测,0未完成,1完成")]
+        public bool? is_checked { get; set; }
+
+        /// <summary>
+        /// 系统建议交期(物料)
+        /// </summary>
+        [Comment("系统建议交期(物料)")]
+        public DateTime? sys_material_date { get; set; }
+
+        /// <summary>
+        /// 合同编号
+        /// </summary>
+        [Comment("合同编号")]
+        [StringLength(50)]
+        public string? contract_no { get; set; }
+
+        /// <summary>
+        /// 创建部门id
+        /// </summary>
+        [Comment("创建部门id")]
+        public long? create_dept { get; set; }
+
+        /// <summary>
+        /// 计算ID
+        /// </summary>
+        [Comment("计算id")]
+        [NotMapped]
+        public long? bang_id { get; set; }
+    }
+}

+ 93 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Sale/crm_seorderprog.cs

@@ -0,0 +1,93 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Sale
+{
+    /// <summary>
+    ///销售订单进度表
+    /// </summary>
+    [Comment("销售订单进度表")]
+    [CollectionName("dopbase", "crm_seorderprog")]
+    public class crm_seorderprog : BaseEntity
+    {
+        ///// <summary>
+        ///// 销售订单进度id
+        ///// </summary>
+        //[Key]
+        //[Comment("销售订单进度表")]
+        //public long seorderprog_id { get; set; }
+
+        /// <summary>
+        /// 销售订单id
+        /// </summary>
+        [Required]
+        [Comment("销售订单id")]
+        public long? seorder_id { get; set; }
+
+        /// <summary>
+        /// 销售订单编号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("销售订单编号")]
+        public string? bill_no { get; set; }
+
+        /// <summary>
+        /// 销售订单行号
+        /// </summary>
+        [Comment("销售订单行号")]
+        public int? entry_seq { get; set; }
+
+        /// <summary>
+        /// 进度类型
+        /// </summary>
+        [Comment("进度类型")]
+        public int? seprog_type { get; set; }
+
+        /// <summary>
+        /// 进度阶段
+        /// </summary>
+        [StringLength(50)]
+        [Comment("进度阶段")]
+        public string? seprog_stage { get; set; }
+
+        /// <summary>
+        /// 进度阶段id
+        /// </summary>
+        [Comment("进度阶段id")]
+        public long? seprog_stage_id { get; set; }
+
+        /// <summary>
+        /// 开始时间
+        /// </summary>
+        [Comment("开始时间")]
+        public DateTime? seprog_stime { get; set; }
+
+        /// <summary>
+        /// 完成时间
+        /// </summary>
+        [Comment("完成时间")]
+        public DateTime? seprog_etime { get; set; }
+
+        /// <summary>
+        /// 提交人id
+        /// </summary>
+        [Comment("提交人id")]
+        public long? seprog_by_id { get; set; }
+
+        /// <summary>
+        /// 提交人姓名
+        /// </summary>
+        [StringLength(80)]
+        [Comment("提交人姓名")]
+        public string? seprog_by_name { get; set; }
+
+        /// <summary>
+        /// 创建部门id
+        /// </summary>
+        [Comment("创建部门id")]
+        public long? create_dept { get; set; }
+    }
+}

+ 144 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Sale/crm_seorderreview.cs

@@ -0,0 +1,144 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Sale
+{
+    /// <summary>
+    ///销售订单评审表
+    /// </summary>
+    [Comment("销售订单评审表")]
+    [CollectionName("dopbase", "crm_seorderreview")]
+    public class crm_seorderreview : BaseEntity
+    {
+        ///// <summary>
+        ///// 销售订单评审id
+        ///// </summary>
+        //[Key]
+        //[Comment("销售订单评审id")]
+        //public long review_id { get; set; }
+
+        /// <summary>
+        /// 销售订单id
+        /// </summary>
+        [Required]
+        [Comment("销售订单id")]
+        public long? seorder_id { get; set; }
+
+        /// <summary>
+        /// 业务类型
+        /// </summary>
+        [Required]
+        [Comment("业务类型")]
+        public string? review_type { get; set; }
+
+        /// <summary>
+        /// 销售订单编号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("销售订单编号")]
+        public string? bill_no { get; set; }
+
+        /// <summary>
+        /// 销售订单行号
+        /// </summary>
+        [Comment("销售订单行号")]
+        public int? entry_seq { get; set; }
+
+        /// <summary>
+        /// 提交时间
+        /// </summary>
+        [Comment("提交时间")]
+        public DateTime? review_stime { get; set; }
+
+        /// <summary>
+        /// 提交人id
+        /// </summary>
+        [Comment("提交人id")]
+        public long? review_by_id { get; set; }
+
+        /// <summary>
+        /// 提交人姓名
+        /// </summary>
+        [StringLength(80)]
+        [Comment("提交人姓名")]
+        public string? review_by_name { get; set; }
+
+
+        /// <summary>
+        /// 评审时间
+        /// </summary>
+        [Comment("评审时间")]
+        public DateTime? review_time { get; set; }
+
+        /// <summary>
+        /// 评审人id
+        /// </summary>
+        [Comment("评审人id")]
+        public long? reviewer_id { get; set; }
+
+        /// <summary>
+        /// 评审人姓名
+        /// </summary>
+        [StringLength(80)]
+        [Comment("评审人姓名")]
+        public string? reviewer_name { get; set; }
+
+        /// <summary>
+        /// 评审结果
+        /// </summary>
+        [StringLength(255)]
+        [Comment("评审结果")]
+        public string? review_result { get; set; }
+
+        /// <summary>
+        /// 拒绝原因
+        /// </summary>
+        [StringLength(255)]
+        [Comment("拒绝原因")]
+        public string? reject_reason { get; set; }
+
+        /// <summary>
+        /// 拒绝等级
+        /// </summary>
+        [StringLength(255)]
+        [Comment("拒绝等级")]
+        public string? review_reject_level { get; set; }
+
+        /// <summary>
+        /// 拒绝备注
+        /// </summary>
+        [StringLength(255)]
+        [Comment("拒绝备注")]
+        public string? review_reject_remark { get; set; }
+
+        /// <summary>
+        /// 可接受交期
+        /// </summary>
+        [StringLength(255)]
+        [Comment("可接受交期")]
+        public DateTime? review_adjust_time { get; set; }
+
+        /// <summary>
+        /// 标题
+        /// </summary>
+        [StringLength(255)]
+        [Comment("标题")]
+        public string? review_title { get; set; }
+
+        /// <summary>
+        /// 当前审批步骤id
+        /// </summary>
+        [Comment("当前审批步骤id")]
+        public long? audit_procedure_id { get; set; }
+
+        /// <summary>
+        /// 当前审批步骤名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("当前审批步骤名称")]
+        public string? audit_procedure_name { get; set; }     
+    }
+}

+ 51 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Sale/wms_prdprogress.cs

@@ -0,0 +1,51 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Sale
+{
+    /// <summary>
+    ///进度字典
+    /// </summary>
+    [Comment("进度字典表")]
+    [CollectionName("dopbase", "wms_prdprogress")]
+    public class wms_prdprogress: BaseEntity
+    {
+        ///// <summary>
+        ///// 进度字典id
+        ///// </summary>
+        //[Key]
+        //[Comment("进度字典主键id")]
+        //public long progress_id { get; set; }
+
+        /// <summary>
+        /// 进度类型
+        /// </summary>
+        [StringLength(255)]
+        [Comment("进度类型")]
+        public string? prdprog_type { get; set; }
+
+        /// <summary>
+        /// 进度名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("进度名称")]
+        public string? prdprog_name { get; set; }
+
+        /// <summary>
+        /// 进度顺序
+        /// </summary>
+        [Required]
+        [Comment("进度顺序")]
+        public int? prdprog_seq { get; set; }
+
+        /// <summary>
+        /// 进度状态1启用0停用
+        /// </summary>
+        [Comment("进度状态1启用0停用")]
+        [DefaultValue(true)]
+        public bool state { get; set; }
+    }
+}

+ 67 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Sale/wms_shipnotice.cs

@@ -0,0 +1,67 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Sale
+{
+    /// <summary>
+    /// 发运通知单
+    /// </summary>
+    [Comment("发运通知单")]
+    [CollectionName("dopbase", "wms_shipnotice")]
+    public class wms_shipnotice : BaseEntity
+    {
+        ///// <summary>
+        ///// 发运通知单主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("发运通知单主键id")]
+        //public long shipnotice_id { get; set; }
+
+        /// <summary>
+        /// 发运通知单号
+        /// </summary>
+        [StringLength(80)]
+        [Required]
+        [Comment("发运通知单号")]
+        public string? shipnotice_no { get; set; }
+
+        /// <summary>
+        /// 发货计划id
+        /// </summary>
+        [Required]
+        [Comment("发货计划id")]
+        public long? shipplan_id { get; set; }
+
+        /// <summary>
+        /// 发货计划号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("发货计划号")]
+        public string? shipplan_no { get; set; }
+
+        /// <summary>
+        /// 发运时间
+        /// </summary>
+        [Required]
+        [Comment("发运时间")]
+        public DateTime shipnotice_date { get; set; }
+
+        /// <summary>
+        /// 状态
+        /// </summary>
+        [Required]
+        [StringLength(80)]
+        [Comment("状态")]
+        public string? state { get; set; }
+
+        /// <summary>
+        /// 发运地址
+        /// </summary>
+        [StringLength(255)]
+        [Comment("发运地址")]
+        public string? address { get; set; }
+    }
+}

+ 107 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Sale/wms_shipnoticelist.cs

@@ -0,0 +1,107 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Sale
+{
+    /// <summary>
+    /// 发运通知单详情清单
+    /// </summary>
+    [Comment("发运通知单详情清单")]
+    [CollectionName("dopbase", "wms_shipnoticelist")]
+    public class wms_shipnoticelist : BaseEntity
+    {
+        ///// <summary>
+        ///// 发运通知单详情id
+        ///// </summary>
+        //[Key]
+        //[Comment("发运通知单详情id")]
+        //public long shipnoticelist_id { get; set; }
+
+        /// <summary>
+        /// 发运通知单id
+        /// </summary>
+        [StringLength(80)]
+        [Comment("发货计划号")]
+        public long? shipnotice_id { get; set; }
+
+        /// <summary>
+        /// 发货详情id
+        /// </summary>
+        [Comment("发货详情id")]
+        public long? shipplanlist_id { get; set; }
+
+
+        /// <summary>
+        /// 销售单id
+        /// </summary>
+        [Comment("销售单id")]
+        public long? shipplanl_soid { get; set; }
+
+
+        /// <summary>
+        /// 销售单号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("销售单号")]
+        public string? shipplanl_sono { get; set; }
+
+        /// <summary>
+        /// 销售单行号
+        /// </summary>
+        [Comment("销售单行号")]
+        public int? shipplanl_soeid { get; set; }
+
+        /// <summary>
+        /// 客户id
+        /// </summary>
+        [Comment("客户id")]
+        public long? shipnotice_custid { get; set; }
+
+        /// <summary>
+        /// 客户编号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("客户编号")]
+        public string? shipnotice_custno { get; set; }
+
+        /// <summary>
+        /// 客户名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("客户名称")]
+        public string? shipnotice_custname { get; set; }
+
+        /// <summary>
+        /// 计划发货数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("计划发货数量")]
+        public decimal? shipplanl_iqty { get; set; }
+
+        /// <summary>
+        /// 实际发货数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("实际发货数量")]
+        public decimal? shipplanl_fqty { get; set; }
+
+        /// <summary>
+        /// 状态
+        /// </summary>
+        [Required]
+        [StringLength(80)]
+        [Comment("状态")]
+        public string? state { get; set; }
+
+        /// <summary>
+        /// 发运地址
+        /// </summary>
+        [StringLength(255)]
+        [Comment("发运地址")]
+        public string? address { get; set; }
+
+    }
+}

+ 43 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Sale/wms_shipplan.cs

@@ -0,0 +1,43 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Sale
+{
+    /// <summary>
+    /// 发货计划表
+    /// </summary>
+    [Comment("发货计划表")]
+    [CollectionName("dopbase", "wms_shipplan")]
+    public class wms_shipplan : BaseEntity
+    {
+        ///// <summary>
+        ///// 发货计划表主键
+        ///// </summary>
+        //[Key]
+        //[Comment("发货计划表主键")]
+        //public long shipplan_id { get; set; }
+
+        /// <summary>
+        /// 发货计划编号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("发货计划编号")]
+        public string? shipplan_no { get; set; }
+
+        /// <summary>
+        /// 发货计划时间
+        /// </summary>
+        [Comment("发货计划时间")]
+        public DateTime? shipplan_date { get; set; }
+
+        /// <summary>
+        /// 状态
+        /// </summary>
+        [Comment("状态")]
+        [StringLength(80)]
+        public string? state { get; set; }
+    }
+}

+ 120 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Sale/wms_shipplanlist.cs

@@ -0,0 +1,120 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Sale
+{
+    /// <summary>
+    /// 发货计划详情清单
+    /// </summary>
+    [Comment("发货计划详情清单")]
+    [CollectionName("dopbase", "wms_shipplanlist")]
+    public class wms_shipplanlist : BaseEntity
+    {
+        ///// <summary>
+        ///// 发货详情主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("发货详情主键id")]
+        //public long shipplanlist_id { get; set; }
+
+        /// <summary>
+        /// 发货计划id
+        /// </summary>
+        [Required]
+        [Comment("发货计划id")]
+        public long shipplan_id { get; set; }
+
+        /// <summary>
+        /// 发货计划时间
+        /// </summary>
+        [Comment("发货计划时间")]
+        public DateTime? shipplan_date { get; set; }
+
+        /// <summary>
+        /// 销售单id
+        /// </summary>
+        [Required]
+        [Comment("销售单id")]
+        public long shipplanl_soid { get; set; }
+
+
+        /// <summary>
+        /// 销售单号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("销售单号")]
+        public string? shipplanl_sono { get; set; }
+
+        /// <summary>
+        /// 行号
+        /// </summary>
+        [Comment("行号")]
+        public int? shipplanl_soeid { get; set; }
+
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Comment("物料id")]
+        public long? icitem_id { get; set; }
+
+        /// <summary>
+        /// 物料编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料编码")]
+        public string? item_number { get; set; }
+
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("物料名称")]
+        public string? item_name { get; set; }
+
+        /// <summary>
+        /// 发货数量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("发货数量")]
+        public decimal? shipplanl_iqty { get; set; }
+
+
+        /// <summary>
+        /// 发货日期
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("发货日期")]
+        public DateTime? shipplanl_sdate { get; set; }
+
+
+        /// <summary>
+        /// 客户id
+        /// </summary>
+        [Comment("客户id")]
+        public long? shipnotice_custid { get; set; }
+
+        /// <summary>
+        /// 客户编号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("客户编号")]
+        public string? shipnotice_custno { get; set; }
+
+        /// <summary>
+        /// 客户名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("客户名称")]
+        public string? shipnotice_custname { get; set; }
+
+        /// <summary>
+        /// 状态
+        /// </summary>
+        [StringLength(80)]
+        [Comment("状态")]
+        public string? state { get; set; }
+    }
+}

+ 219 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SystemData/crm_customer.cs

@@ -0,0 +1,219 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.SystemData
+{
+    /// <summary>
+    /// 客户
+    /// </summary>
+    [Comment("客户")]
+    [CollectionName("dopbase", "crm_customer")]
+    public class crm_customer:BaseEntity
+    {
+        ///// <summary>
+        ///// 客户主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("客户主键id")]
+        //public long customer_id { get; set; }
+
+        /// <summary>
+        /// 客户编号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("客户编号")]
+        public string? customer_no { get; set; }
+
+        /// <summary>
+        /// 客户名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("客户名称")]
+        public string? customer_name { get; set; }
+
+        /// <summary>
+        /// 客户级别
+        /// </summary>
+        [StringLength(255)]
+        [Comment("客户级别")]
+        public string? customer_level { get; set; }
+
+        /// <summary>
+        /// 手机号码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("手机号码")]
+        public string? mobile { get; set; }
+
+        /// <summary>
+        /// 电话号码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("电话号码")]
+        public string? telephone { get; set; }
+
+        /// <summary>
+        /// 邮件地址
+        /// </summary>
+        [StringLength(80)]
+        [Comment("邮件地址")]
+        public string? email { get; set; }
+
+        /// <summary>
+        /// 联系人
+        /// </summary>
+        [StringLength(80)]
+        [Comment("联系人")]
+        public string? contact { get; set; }
+
+        /// <summary>
+        /// 邮政编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("邮政编码")]
+        public string? post_code { get; set; }
+
+        /// <summary>
+        /// 国别地区
+        /// </summary>
+        [StringLength(255)]
+        [Comment("国别地区")]
+        public string? country { get; set; }
+
+        /// <summary>
+        /// 省份
+        /// </summary>
+        [StringLength(255)]
+        [Comment("省份")]
+        public string? province { get; set; }
+
+
+        /// <summary>
+        /// 城市
+        /// </summary>
+        [StringLength(255)]
+        [Comment("城市")]
+        public string? city { get; set; }
+
+        /// <summary>
+        /// 区
+        /// </summary>
+        [StringLength(255)]
+        [Comment("区")]
+        public string? region { get; set; }
+
+        /// <summary>
+        /// 地址
+        /// </summary>
+        [StringLength(255)]
+        [Comment("地址")]
+        public string? address { get; set; }
+
+        /// <summary>
+        /// 销售模式
+        /// </summary>
+        [StringLength(255)]
+        [Comment("销售模式")]
+        public string? sale_mode { get; set; }
+
+        /// <summary>
+        /// 客户简称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("客户简称")]
+        public string? short_name { get; set; }
+
+        /// <summary>
+        /// 客户简码
+        /// </summary>
+        [StringLength(255)]
+        [Comment("客户简码")]
+        public string? short_number { get; set; }
+
+        /// <summary>
+        /// 状态
+        /// </summary>
+        [StringLength(80)]
+        [Comment("状态")]
+        public string? state { get; set; }
+
+        /// <summary>
+        /// 增值税率
+        /// </summary>
+        [Precision(18,10)]
+        [Comment("增值税率")]
+        public decimal? value_add_rate { get; set; }
+
+        /// <summary>
+        /// 默认运输提前期_天
+        /// </summary>
+        [Required]
+        [Comment("默认运输提前期_天")]
+        public int? carrying_aos { get; set; }
+
+        /// <summary>
+        /// 法人代表
+        /// </summary>
+        [StringLength(255)]
+        [Comment("法人代表")]
+        public string? corperate { get; set; }
+
+        /// <summary>
+        /// 结算币种
+        /// </summary>
+        [StringLength(80)]
+        [Comment("结算币种")]
+        public string? currency { get; set; }
+
+        /// <summary>
+        /// 专营业务员
+        /// </summary>
+        [StringLength(80)]
+        [Comment("专营业务员")]
+        public string? employee_name { get; set; }
+
+        /// <summary>
+        /// 专营业务员_工号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("专营业务员_工号")]
+        public string? employee_no { get; set; }
+
+        /// <summary>
+        /// 操作时间
+        /// </summary>
+        [Comment("操作时间")]
+        public DateTime? op_time { get; set; }
+
+        /// <summary>
+        /// 客户类别编码
+        /// </summary>
+        [StringLength(255)]
+        [Comment("客户类别编码")]
+        public string? cust_type_number { get; set; }
+
+        /// <summary>
+        /// 客户类别
+        /// </summary>
+        [StringLength(255)]
+        [Comment("客户类别")]
+        public string? cust_type { get; set; }
+
+        /// <summary>
+        /// 客户分组编号
+        /// </summary>
+        [StringLength(255)]
+        [Comment("客户分组编号")]
+        public string? cust_group_number { get; set; }
+
+        /// <summary>
+        /// 客户分组名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("客户分组名称")]
+        public string? cust_group_name { get; set; }
+    }
+}

+ 341 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SystemData/srm_supplier.cs

@@ -0,0 +1,341 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.SystemData
+{
+    /// <summary>
+    /// 供应商
+    /// </summary>
+    [Comment("供应商")]
+    [CollectionName("dopbase", "srm_supplier")]
+    public class srm_supplier: BaseEntity
+    {
+        ///// <summary>
+        ///// 供应商主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("供应商主键id")]
+        //public long supplier_id { get; set; }
+
+        /// <summary>
+        /// 供应商编号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("供应商编号")]
+        public string? supplier_no { get; set; }
+
+        /// <summary>
+        /// 供应商名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("供应商名称")]
+        public string? supplier_name { get; set; }
+
+        /// <summary>
+        /// 供应商全称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("供应商全称")]
+        public string? supplier_full_name { get; set; }
+
+        /// <summary>
+        /// 供应商助记码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("供应商助记码")]
+        public string? supplier_help_code { get; set; }
+
+        /// <summary>
+        /// 供应商简称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("供应商简称")]
+        public string? supplier_short_name { get; set; }
+
+        /// <summary>
+        /// 供应商地址
+        /// </summary>
+        [StringLength(255)]
+        [Comment("供应商地址")]
+        public string? supplier_address { get; set; }
+
+        /// <summary>
+        /// 状态
+        /// </summary>
+        [Comment("状态")]
+        public string? state { get; set; }
+
+        /// <summary>
+        /// 区域
+        /// </summary>
+        [StringLength(255)]
+        [Comment("区域")]
+        public string? region { get; set; }
+
+        /// <summary>
+        /// 行业
+        /// </summary>
+        [StringLength(255)]
+        [Comment("行业")]
+        public string? trade { get; set; }
+
+
+        /// <summary>
+        /// 联系人
+        /// </summary>
+        [StringLength(80)]
+        [Comment("联系人")]
+        public string? contact { get; set; }
+
+        /// <summary>
+        /// 联系电话
+        /// </summary>
+        [StringLength(80)]
+        [Comment("联系电话")]
+        public string? telephone { get; set; }
+
+        /// <summary>
+        /// 移动电话
+        /// </summary>
+        [StringLength(80)]
+        [Comment("移动电话")]
+        public string? mobile { get; set; }
+
+        /// <summary>
+        /// 传真号码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("传真号码")]
+        public string? fax { get; set; }
+
+        /// <summary>
+        /// 邮政编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("邮政编码")]
+        public string? post_code { get; set; }
+
+        /// <summary>
+        /// 邮件地址
+        /// </summary>
+        [StringLength(80)]
+        [Comment("邮件地址")]
+        public string? email { get; set; }
+
+
+        /// <summary>
+        /// 税务登记号
+        /// </summary>
+        [StringLength(255)]
+        [Comment("税务登记号")]
+        public string? taxid { get; set; }
+
+        /// <summary>
+        /// 开户银行
+        /// </summary>
+        [StringLength(255)]
+        [Comment("开户银行")]
+        public string? bank { get; set; }
+
+        /// <summary>
+        /// 银行账号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("银行账号")]
+        public string? bank_account { get; set; }
+
+        /// <summary>
+        /// 增值税率
+        /// </summary>
+        [Precision(18,10)]
+        [Comment("增值税率")]
+        public decimal? value_add_rate { get; set; }
+
+        /// <summary>
+        /// 供应商分类
+        /// </summary>
+        [StringLength(80)]
+        [Comment("供应商分类")]
+        public string? type { get; set; }
+
+        /// <summary>
+        /// 采购模式
+        /// </summary>
+        [StringLength(80)]
+        [Comment("采购模式")]
+        public string? po_mode { get; set; }
+
+        /// <summary>
+        /// VMI仓
+        /// </summary>
+        [StringLength(255)]
+        [Comment("VMI仓")]
+        public string? vmi_stock { get; set; }
+
+        /// <summary>
+        /// 受托代销虚仓
+        /// </summary>
+        [StringLength(255)]
+        [Comment("受托代销虚仓")]
+        public string? stockid_assignee { get; set; }
+
+        /// <summary>
+        /// 分支机构信息
+        /// </summary>
+        [StringLength(255)]
+        [Comment("分支机构信息")]
+        public string? branch_info { get; set; }
+
+        /// <summary>
+        /// 注册商标
+        /// </summary>
+        [StringLength(255)]
+        [Comment("注册商标")]
+        public string? regmark { get; set; }
+
+        /// <summary>
+        /// 营业执照
+        /// </summary>
+        [StringLength(255)]
+        [Comment("营业执照")]
+        public string? licence { get; set; }
+
+        /// <summary>
+        /// 注册日期
+        /// </summary>
+        [Comment("注册日期")]
+        public DateTime? regster_date { get; set; }
+
+        /// <summary>
+        /// 批准日期
+        /// </summary>
+        [Comment("批准日期")]
+        public DateTime? approve_date { get; set; }
+
+        /// <summary>
+        /// 生效日期
+        /// </summary>
+        [Comment("生效日期")]
+        public DateTime? begin_day { get; set; }
+
+        /// <summary>
+        /// 失效日期
+        /// </summary>
+        [Comment("失效日期")]
+        public DateTime? end_day { get; set; }
+
+        /// <summary>
+        /// 供应商等级
+        /// </summary>
+        [StringLength(80)]
+        [Comment("供应商等级")]
+        public string? supply_grade { get; set; }
+
+        /// <summary>
+        /// 供应类别
+        /// </summary>
+        [StringLength(80)]
+        [Comment("供应类别")]
+        public string? supply_type { get; set; }
+
+        /// <summary>
+        /// 公司类别
+        /// </summary>
+        [StringLength(80)]
+        [Comment("公司类别")]
+        public string? company_type { get; set; }
+
+        /// <summary>
+        /// 交货自动生成收货单据
+        /// </summary>
+        [Comment("交货自动生成收货单据")]
+        [DefaultValue(false)]
+        public bool? auto_create_mr { get; set; }
+
+        /// <summary>
+        /// 自动确认订单
+        /// </summary>
+        [DefaultValue(false)]
+        [Comment("自动确认订单")]
+        public bool? auto_validate_order { get; set; }
+
+        /// <summary>
+        /// 启用供应商门户
+        /// </summary>
+        [Comment("启用供应商门户")]
+        [DefaultValue(true)]
+        public bool? isuse_supplier_portal { get; set; }
+
+        /// <summary>
+        /// 分管部门
+        /// </summary>
+        [StringLength(80)]
+        [Comment("分管部门")]
+        public string? department { get; set; }
+
+        /// <summary>
+        /// 专营业务员
+        /// </summary>
+        [StringLength(80)]
+        [Comment("专营业务员")]
+        public string? employee_name { get; set; }
+
+        /// <summary>
+        /// 专营业务员_工号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("专营业务员_工号")]
+        public string? employee_no { get; set; }
+
+        /// <summary>
+        /// 结算币种
+        /// </summary>
+        [StringLength(80)]
+        [Comment("结算币种")]
+        public string? currency { get; set; }
+
+        /// <summary>
+        /// 结算方式
+        /// </summary>
+        [StringLength(80)]
+        [Comment("结算方式")]
+        public string? settlement { get; set; }
+
+        /// <summary>
+        /// 英文名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("英文名称")]
+        public string? name_en { get; set; }
+
+        /// <summary>
+        /// 英文地址
+        /// </summary>
+        [StringLength(255)]
+        [Comment("英文地址")]
+        public string? addr_en { get; set; }
+
+        /// <summary>
+        /// 国别地区
+        /// </summary>
+        [StringLength(255)]
+        [Comment("国别地区")]
+        public string? country { get; set; }
+
+        /// <summary>
+        /// 审核人
+        /// </summary>
+        [StringLength(80)]
+        [Comment("审核人")]
+        public string? checker { get; set; }
+
+        /// <summary>
+        /// 操作时间
+        /// </summary>
+        [Comment("操作时间")]
+        public DateTime? op_time { get; set; }
+    }
+}

+ 62 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_code.cs

@@ -0,0 +1,62 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+using Volo.Abp.Domain.Entities;
+
+namespace Bussiness.Model.SystemData
+{
+    /// <summary>
+    /// 系统编码表
+    /// </summary>
+    [Comment("系统编码表")]
+    [CollectionName("dopbase", "sys_code")]
+    public class sys_code:Entity<long>
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("主键id")]
+        //public long sys_code_id { get; set; }
+
+        /// <summary>
+        /// 编码生成名称
+        /// </summary>
+        [StringLength(50)]
+        [Required]
+        [Comment("编码生成名称")]
+        public string? code_name { get; set; }
+
+        /// <summary>
+        /// 编码生成规则
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("编码生成规则")]
+        public string? code_rule { get; set; }
+
+        /// <summary>
+        /// 编码生成时间
+        /// </summary>
+        [Required]
+        [Comment("编码生成时间")]
+        public DateTime? code_date { get; set; }
+
+        /// <summary>
+        /// 编码生成当前值
+        /// </summary>
+        [Required]
+        [Comment("编码生成当前值")]
+        public long? code_value { get; set; }
+
+        /// <summary>
+        /// 中文注释
+        /// </summary>
+        [StringLength(255)]
+        [Comment("中文注释")]
+        public string? chinese_name { get; set; }
+    }
+}

+ 54 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_code_pre.cs

@@ -0,0 +1,54 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using Volo.Abp.Domain.Entities;
+
+namespace Bussiness.Model.SystemData
+{
+    /// <summary>
+    /// 系统编码前置表
+    /// </summary>
+    [Comment("系统编码前置表")]
+    [CollectionName("dopbase", "sys_code_pre")]
+    public class sys_code_pre:Entity<long>
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("主键id")]
+        //public long id { get; set; }
+
+        /// <summary>
+        /// 编码生成名称
+        /// </summary>
+        [StringLength(50)]
+        [Required]
+        [Comment("编码生成名称")]
+        public string? code_name { get; set; }
+
+        /// <summary>
+        /// 编码生成前置名称
+        /// </summary>
+        [Required]
+        [StringLength(50)]
+        [Comment("编码生成前置名称")]
+        public string? pre_name { get; set; }
+
+        /// <summary>
+        /// 编码生成时间
+        /// </summary>
+        [Required]
+        [Comment("编码生成时间")]
+        public DateTime code_date { get; set; }
+
+        /// <summary>
+        /// 编码生成当前值
+        /// </summary>
+        [Required]
+        [Comment("编码生成当前值")]
+        public long? code_value { get; set; }
+    }
+}

+ 49 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_config.cs

@@ -0,0 +1,49 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using Volo.Abp.Domain.Entities;
+
+namespace Bussiness.Model.SystemData
+{
+    /// <summary>
+    /// 系统配置表
+    /// </summary>
+    [Comment("系统配置表")]
+    [CollectionName("dopbase", "sys_config")]
+    public class sys_config:Entity<long>
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("主键id")]
+        //public long config_id { get; set; }
+
+        /// <summary>
+        /// 配置类型
+        /// </summary>
+        [Comment("配置类型")]
+        [StringLength(50)]
+        public string? type { get; set; }
+
+        /// <summary>
+        /// 账务状态(0-关帐,1-开帐)
+        [Comment("账务状态(0-关帐,1-开帐)")]
+        [DefaultValue(true)]
+        public bool financeis_close { get; set; }
+
+        /// <summary>
+        /// 下一个开帐日期
+        /// </summary>
+        [Comment("下一个开帐日期")]
+        public DateTime? next_open_date { get; set; }
+
+        /// <summary>
+        /// 是否显示(0不显示、1显示)
+        [Comment("是否显示(0不显示、1显示)")]
+        [DefaultValue(true)]
+        public bool is_show { get; set; }
+    }
+}

+ 53 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_measure_unit.cs

@@ -0,0 +1,53 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using Volo.Abp.Domain.Entities;
+
+namespace Bussiness.Model.SystemData
+{
+    /// <summary>
+    /// 计量单位信息表
+    /// </summary>
+    [Comment("计量单位信息表")]
+    [CollectionName("dopbase", "sys_measure_unit")]
+    public class sys_measure_unit:Entity<long>
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("主键id")]
+        //public long unit_id { get; set; }
+
+        /// <summary>
+        /// 单位名称
+        /// </summary>
+        [StringLength(50)]
+        [Comment("单位名称")]
+        public string? unit_name { get; set; }
+
+        /// <summary>
+        /// 单位编码
+        /// </summary>
+        [StringLength(50)]
+        [Comment("单位编码")]
+        public string? unit_code { get; set; }
+
+        /// <summary>
+        /// 是否是标准单位0-否,1是
+        /// </summary>
+        [Comment("是否是标准单位0-否,1是")]
+        [DefaultValue(true)]
+        public bool is_standard { get; set; }
+
+        /// <summary>
+        /// 状态:0-无效,1-有效
+        /// </summary>
+        [Comment("状态:0-无效,1-有效")]
+        [DefaultValue(true)]
+        public bool status { get; set; }
+
+    }
+}

+ 83 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_post.cs

@@ -0,0 +1,83 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.SystemData
+{
+    /// <summary>
+    /// 岗位表
+    /// </summary>
+    [Comment("岗位表")]
+    [CollectionName("dopbase", "sys_post")]
+    public class sys_post: BaseEntity
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("主键id")]
+        //public long post_id { get; set; }
+
+        /// <summary>
+        /// 岗位编码
+        /// </summary>
+        [StringLength(50)]
+        [Comment("岗位编码")]
+        public string? post_code { get; set; }
+
+        /// <summary>
+        /// 岗位名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("岗位名称")]
+        public string? post_name { get; set; }
+
+        /// <summary>
+        /// 岗位备注
+        /// </summary>
+        [StringLength(255)]
+        [Comment("岗位备注")]
+        public string? post_remark { get; set; }
+
+        /// <summary>
+        /// 岗位级别
+        /// </summary>
+        [Comment("岗位级别")]
+        public int? post_level { get; set; }
+
+        /// <summary>
+        /// 岗位路径
+        /// </summary>
+        [StringLength(255)]
+        [Comment("岗位路径")]
+        public string? post_path { get; set; }
+
+        /// <summary>
+        /// 岗位排序
+        /// </summary>
+        [Comment("岗位排序")]
+        public int? post_sort { get; set; }
+
+        /// <summary>
+        /// 上级岗位
+        /// </summary>
+        [Comment("上级岗位")]
+        public long? parent_id { get; set; }
+
+        /// <summary>
+        /// 部门id
+        /// </summary>
+        [Comment("部门id")]
+        public long? dept_id { get; set; }
+
+        /// <summary>
+        /// 数据状态标识 1启用 0停用
+        /// </summary>
+        [StringLength(255)]
+        [Comment("数据状态标识 1启用 -1停用")]
+        [DefaultValue(true)]
+        public bool state { get; set; }
+    }
+}

+ 35 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_post_staff.cs

@@ -0,0 +1,35 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.SystemData
+{
+    /// <summary>
+    /// 员工岗位关联表
+    /// </summary>
+    [Comment("员工岗位关联表")]
+    [CollectionName("dopbase", "sys_post_staff")]
+    public class sys_post_staff: BaseEntity
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("主键id")]
+        //public long id { get; set; }
+
+        /// <summary>
+        /// 员工id
+        /// </summary>
+        [Comment("员工id")]
+        public long? staff_id { get; set; }
+
+        /// <summary>
+        /// 岗位id
+        /// </summary>
+        [Comment("岗位id")]
+        public long? post_id { get; set; }
+    }
+}

+ 82 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_schedule.cs

@@ -0,0 +1,82 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.SystemData
+{
+    /// <summary>
+    /// 班次表
+    /// </summary>
+    [Comment("班次表")]
+    [CollectionName("dopbase", "sys_schedule")]
+    public class sys_schedule: BaseEntity
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("班次主键id")]
+        //public long schedule_id { get; set; }
+
+        /// <summary>
+        /// 班次编码
+        /// </summary>
+        [StringLength(50)]
+        [Comment("班次编码")]
+        public string? schedule_no { get; set; }
+
+        /// <summary>
+        /// 班次名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("班次名称")]
+        public string? schedule_name { get; set; }
+
+        /// <summary>
+        /// 起始工作时间
+        /// </summary>
+        [Comment("起始工作时间")]
+        public DateTime? schedule_start_time { get; set; }
+
+        /// <summary>
+        /// 结束工作时间
+        /// </summary>
+        [Comment("结束工作时间")]
+        public DateTime? schedule_end_time { get; set; }
+
+        /// <summary>
+        /// 是否跨天 1是 0否
+        /// </summary>
+        [Comment("是否跨天 1是 0否")]
+        [DefaultValue(false)]
+        public bool is_across { get; set; }
+
+        /// <summary>
+        /// 备注
+        /// </summary>
+        [StringLength(255)]
+        [Comment("备注")]
+        public string? remark { get; set; }
+
+        /// <summary>
+        /// 有效时长
+        /// </summary>
+        [Comment("有效时长")]
+        public int? validate_hours { get; set; }
+
+        /// <summary>
+        /// 工作时长
+        /// </summary>
+        [Comment("工作时长")]
+        public int? work_hours { get; set; }
+
+        /// <summary>
+        /// 数据状态标识 1启用 0停用
+        /// </summary>
+        [Comment("数据状态标识 1启用 0停用")]
+        [DefaultValue(true)]
+        public bool state { get; set; }
+    }
+}

+ 65 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_shift.cs

@@ -0,0 +1,65 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.SystemData
+{
+    /// <summary>
+    /// 班制表
+    /// </summary>
+    [Comment("班制表")]
+    [CollectionName("dopbase", "sys_shift")]
+    public class sys_shift: BaseEntity
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("主键id")]
+        //public long shift_id { get; set; }
+
+        /// <summary>
+        /// 班制编码
+        /// </summary>
+        [StringLength(50)]
+        [Comment("班制编码")]
+        public string? shift_no { get; set; }
+
+        /// <summary>
+        /// 班制名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("班制名称")]
+        public string? shift_name { get; set; }
+
+        /// <summary>
+        /// 是否跨天 1是 0否
+        /// </summary>
+        [Comment("岗位id")]
+        [DefaultValue(false)]
+        public bool is_across { get; set; }
+
+        /// <summary>
+        /// 备注
+        /// </summary>
+        [StringLength(255)]
+        [Comment("备注")]
+        public string? remark { get; set; }
+
+        /// <summary>
+        /// 有效时长
+        /// </summary>
+        [Comment("有效时长")]
+        public int? validate_hours { get; set; }
+
+        /// <summary>
+        /// 数据状态标识 1启用 0停用
+        /// </summary>
+        [Comment("数据状态标识 1启用 0停用")]
+        [DefaultValue(true)]
+        public bool state { get; set; }
+
+    }
+}

+ 42 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_shift_invalid_time.cs

@@ -0,0 +1,42 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.SystemData
+{
+    /// <summary>
+    /// 班次无效时间表
+    /// </summary>
+    [Comment("班次无效时间表")]
+    [CollectionName("dopbase", "sys_shift_invalid_time")]
+    public class sys_shift_invalid_time:BaseEntity
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("数据状态标识 1启用 0停用")]
+        //public long invalid_time_id { get; set; }
+
+        /// <summary>
+        /// 班次id
+        /// </summary>
+        [Comment("班次id")]
+        public long? schedule_id { get; set; }
+
+
+        /// <summary>
+        /// 开始时间
+        /// </summary>
+        [Comment("开始时间")]
+        public DateTime start_time { get; set; }
+
+        /// <summary>
+        /// 结束时间
+        /// </summary>
+        [Comment("结束时间")]
+        public DateTime end_time { get; set; }
+    }
+}

+ 37 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_shift_schedule.cs

@@ -0,0 +1,37 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.SystemData
+{
+    /// <summary>
+    /// 班制班次关联表
+    /// </summary>
+    [Comment("班制班次关联表")]
+    [CollectionName("dopbase", "sys_shift_schedule")]
+    public class sys_shift_schedule:BaseEntity
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("主键id")]
+        //public long id { get; set; }
+
+        /// <summary>
+        /// 班制id
+        /// </summary>
+        [StringLength(50)]
+        [Comment("班制id")]
+        public long? shift_id { get; set; }
+
+        /// <summary>
+        /// 班次id
+        /// </summary>
+        [StringLength(255)]
+        [Comment("班次id")]
+        public long? schedule_id { get; set; }
+    }
+}

+ 163 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_staff.cs

@@ -0,0 +1,163 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.SystemData
+{
+    /// <summary>
+    /// 员工表
+    /// </summary>
+    [Comment("员工表")]
+    [CollectionName("dopbase", "sys_staff")]
+    public class sys_staff:BaseEntity
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("主键id")]
+        //public long staff_id { get; set; }
+
+        /// <summary>
+        /// 员工编码
+        /// </summary>
+        [StringLength(50)]
+        [Comment("员工编码")]
+        public string? staff_no { get; set; }
+
+        /// <summary>
+        /// 用户id
+        /// </summary>
+        [Comment("用户id")]
+        public long? user_id { get; set; }
+
+        /// <summary>
+        /// 用户名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("用户名称")]
+        public string? user_name { get; set; }
+
+        /// <summary>
+        /// 中文名
+        /// </summary>
+        [StringLength(255)]
+        [Comment("中文名")]
+        public string? chinese_name { get; set; }
+
+        /// <summary>
+        /// 电话
+        /// </summary>
+        [StringLength(80)]
+        [Comment("电话")]
+        public string? phone { get; set; }
+
+        /// <summary>
+        /// 照片
+        /// </summary>
+        [StringLength(255)]
+        [Comment("照片")]
+        public string? photo { get; set; }
+
+        /// <summary>
+        /// 组织名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("组织名称")]
+        public string? org_name { get; set; }
+
+        /// <summary>
+        /// 生日
+        /// </summary>
+        [Comment("生日")]
+        public DateOnly? birthday { get; set; }
+
+        /// <summary>
+        /// 邮箱
+        /// </summary>
+        [StringLength(255)]
+        [Comment("邮箱")]
+        public string? email { get; set; }
+
+        /// <summary>
+        /// 性别 1 男 2 女
+        /// </summary>
+        [StringLength(1)]
+        [Comment("性别 1 男 2 女")]
+        public string? sex { get; set; }
+
+
+        /// <summary>
+        /// 卡号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("卡号")]
+        public string? card_no { get; set; }
+
+        /// <summary>
+        /// 工号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("工号")]
+        public string? emp_no { get; set; }
+
+        /// <summary>
+        /// 身份证号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("身份证号")]
+        public string? id_no { get; set; }
+
+        /// <summary>
+        /// 移动电话
+        /// </summary>
+        [StringLength(50)]
+        [Comment("移动电话")]
+        public string? mobile { get; set; }
+
+        /// <summary>
+        /// 政治面貌
+        /// </summary>
+        [StringLength(50)]
+        [Comment("政治面貌")]
+        public string? politics { get; set; }
+
+        /// <summary>
+        /// 备注
+        /// </summary>
+        [StringLength(255)]
+        [Comment("备注")]
+        public string? staff_remark { get; set; }
+
+        /// <summary>
+        /// 部门id
+        /// </summary>
+        [Comment("部门id")]
+        public long? dept_id { get; set; }
+
+        /// <summary>
+        /// 部门编号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("部门编号")]
+        public string? dept_no { get; set; }
+
+
+        /// <summary>
+        /// 部门名称
+        /// </summary>
+        [StringLength(255)]
+        [Comment("部门名称")]
+        public string? dept_name { get; set; }
+
+        /// <summary>
+        /// 数据状态标识 1启用 0停用
+        /// </summary>
+        [StringLength(255)]
+        [Comment("数据状态标识 1启用 0停用")]
+        [DefaultValue(true)]
+        public bool state { get; set; }
+    }
+}

+ 49 - 0
MicroServices/Business/Bussiness.MongoDB.Model/SystemData/sys_upload.cs

@@ -0,0 +1,49 @@
+using Business.Core.Attributes;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using Volo.Abp.Domain.Entities;
+
+namespace Bussiness.Model.SystemData
+{
+    /// <summary>
+    /// 文件上传表
+    /// </summary>
+    [Comment("文件上传表")]
+    [CollectionName("dopbase", "sys_upload")]
+    public class sys_upload:Entity<long>
+    {
+        ///// <summary>
+        ///// 主键id
+        ///// </summary>
+        //[Key]
+        //[Comment("主键id")]
+        //public long upload_id { get; set; }
+
+        /// <summary>
+        /// 文件存储路径
+        /// </summary>
+        [StringLength(255)]
+        [Comment("文件存储路径")]
+        public string? file_url { get; set; }
+
+        /// <summary>
+        /// 文件数据类型
+        [StringLength(255)]
+        [Comment("文件数据类型")]
+        public string? data_type { get; set; }
+
+        /// <summary>
+        /// 文件后缀
+        /// </summary>
+        [StringLength(255)]
+        [Comment("文件后缀")]
+        public string? file_type { get; set; }
+
+        /// <summary>
+        /// 源文件名称
+        [StringLength(255)]
+        [Comment("源文件名称")]
+        public string? original_file_name { get; set; }
+    }
+}

+ 65 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_process.cs

@@ -0,0 +1,65 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using MongoDB.Driver.Core;
+using Business.Core.Attributes;
+using MongoDB.Bson.Serialization.Attributes;
+using Microsoft.EntityFrameworkCore;
+using Business.MongoModel;
+
+namespace Bussiness.MongoModel.Tech
+{
+    /// <summary>
+    /// 工序表
+    /// </summary>
+    [CollectionName("dopbase", "mo_mes_process")]
+    [Comment("工序表")]
+    public class mo_mes_process : MoBaseEntity
+    {
+        ///// <summary>
+        ///// 工序主键
+        ///// </summary>
+        //[Key]
+        //[Comment("工序主键")]
+        //public long proc_id { get; set; }
+
+        /// <summary>
+        /// 工序名称
+        /// </summary>
+        [Required]
+        [StringLength(100)]
+        [Comment("工序名称")]
+        [BsonRepresentation(MongoDB.Bson.BsonType.String)]
+        public string? proc_name { get; set; }
+
+        /// <summary>
+        /// 简述
+        /// </summary>
+        [StringLength(500)]
+        [Comment("简述")]
+        [BsonRepresentation(MongoDB.Bson.BsonType.String)]
+        public string? short_desc { get; set; }
+
+        /// <summary>
+        /// 详细描述
+        /// </summary>
+        [StringLength(2000)]
+        [Comment("详细描述")]
+        [BsonRepresentation(MongoDB.Bson.BsonType.String)]
+        public string? long_desc { get; set; }
+
+        /// <summary>
+        /// 组合工序id
+        /// </summary>
+        [StringLength(2000)]
+        [Comment("组合工序id")]
+        [BsonRepresentation(MongoDB.Bson.BsonType.String)]
+        public string? subids { get; set; }
+
+    }
+}

+ 52 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_tech_proc_accessory.cs

@@ -0,0 +1,52 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Tech
+{
+    /// <summary>
+    /// 治具表(工装表)
+    /// </summary>
+    [CollectionName("dopbase", "mes_tech_proc_accessory")]
+    [Comment("治具表(工装表)")]
+    public class mes_tech_proc_accessory : BaseEntity
+    {
+        ///// <summary>
+        ///// 治具主键
+        ///// </summary>
+        //[Key]
+        //[Comment("治具主键")]
+        //public long tech_proc_acc_id { get; set; }
+
+        /// <summary>
+        /// 工艺工序主键
+        /// </summary>
+        [Required]
+        [Comment("工艺工序主键")]
+        public long? tech_proc_id { get; set; }
+
+        /// <summary>
+        /// 工装id
+        /// </summary>
+        [Required]
+        [Comment("工装id")]
+        public long? equip_id { get; set; }
+
+        /// <summary>
+        /// 工装编号
+        /// </summary>
+        [Required]
+        [StringLength(100)]
+        [Comment("工装编号")]
+        public string? equip_no { get; set; }
+
+        /// <summary>
+        /// 数量
+        /// </summary>
+        [Required]
+        [Comment("数量")]
+        public int? qty { get; set; }
+    }
+}

+ 44 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_tech_proc_document.cs

@@ -0,0 +1,44 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Tech
+{
+    /// <summary>
+    /// 工序作业指导书表
+    /// </summary>
+    [CollectionName("dopbase", "mes_tech_proc_document")]
+    [Comment("工序作业指导书表")]
+    public class mes_tech_proc_document : BaseEntity
+    {
+        ///// <summary>
+        ///// 工序作业指导书主键
+        ///// </summary>
+        //[Key]
+        //[Comment("工序作业指导书主键")]
+        //public long tech_proc_doc_id { get; set; }
+
+        /// <summary>
+        /// 工艺工序主键
+        /// </summary>
+        [Required]
+        [Comment("工艺工序主键")]
+        public long? tech_proc_id { get; set; }
+
+        /// <summary>
+        /// 作业指导书主键
+        /// </summary>
+        [Required]
+        [Comment("作业指导书主键")]
+        public long? upload_id { get; set; }
+
+        /// <summary>
+        /// 作业指导书名称
+        /// </summary>
+        [StringLength(100)]
+        [Comment("作业指导书名称")]
+        public string? name { get; set; }
+    }
+}

+ 50 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_tech_proc_equipment.cs

@@ -0,0 +1,50 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Tech
+{
+    /// <summary>
+    /// 工序关联设备表
+    /// </summary>
+    [CollectionName("dopbase", "mes_tech_proc_equipment")]
+    [Comment("工序关联设备表")]
+    public class mes_tech_proc_equipment : BaseEntity
+    {
+        ///// <summary>
+        ///// 主键
+        ///// </summary>
+        //[Key]
+        //[Comment("主键")]
+        //public long tech_proc_equip_id { get; set; }
+
+        /// <summary>
+        /// 设备id
+        /// </summary>
+        [Required]
+        [Comment("设备id")]
+        public long? equip_id { get; set; }
+
+        /// <summary>
+        /// 设备名称
+        /// </summary>
+        [StringLength(100)]
+        [Comment("设备名称")]
+        public string? equip_name { get; set; }
+
+        /// <summary>
+        /// 工艺工序id
+        /// </summary>
+        [Required]
+        [Comment("工艺工序id")]
+        public long? tech_proc_id { get; set; }
+
+        /// <summary>
+        /// 工作日历id
+        /// </summary>
+        [Comment("工作日历id")]
+        public long? work_calendar_id { get; set; }
+    }
+}

+ 44 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_tech_proc_icitem.cs

@@ -0,0 +1,44 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Tech
+{
+    /// <summary>
+    /// 发料到工序表
+    /// </summary>
+    [CollectionName("dopbase", "mes_tech_proc_icitem")]
+    [Comment("发料到工序表")]
+    public class mes_tech_proc_icitem : BaseEntity
+    {
+        ///// <summary>
+        ///// 主键
+        ///// </summary>
+        ////[Key]
+        ////[Comment("主键")]
+        ////public long tech_proc_icitem_id { get; set; }
+
+        /// <summary>
+        /// 工艺工序id
+        /// </summary>
+        [Required]
+        [Comment("工艺工序id")]
+        public long? tech_proc_id { get; set; }
+
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Required]
+        [Comment("物料id")]
+        public long? icitem_id { get; set; }
+
+        /// <summary>
+        /// 数量
+        /// </summary>
+        [Required]
+        [Comment("数量")]
+        public int? qty { get; set; }
+    }
+}

+ 43 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_tech_proc_workshop.cs

@@ -0,0 +1,43 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Tech
+{
+    /// <summary>
+    /// 工艺路径关联工位表
+    /// </summary>
+    [CollectionName("dopbase", "mes_tech_proc_workshop")]
+    [Comment("工艺路径关联工位表")]
+    public class mes_tech_proc_workshop : BaseEntity
+    {
+        ///// <summary>
+        ///// 工位表主键
+        ///// </summary>
+        //[Key]
+        //[Comment("工位表主键")]
+        //public long tech_proc_workshop_id { get; set; }
+
+        /// <summary>
+        /// 工艺工序id
+        /// </summary>
+        [Required]
+        [Comment("工艺工序id")]
+        public long? tech_proc_id { get; set; }
+
+        /// <summary>
+        /// 工位id
+        /// </summary>
+        [Required]
+        [Comment("工位id")]
+        public long? workshop_id { get; set; }
+
+        /// <summary>
+        /// 序列号
+        /// </summary>
+        [Comment("序列号")]
+        public int? serialno { get; set; }
+    }
+}

+ 44 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_tech_proc_workshop_staff.cs

@@ -0,0 +1,44 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Tech
+{
+    /// <summary>
+    /// 工序工位员工信息表
+    /// </summary>
+    [CollectionName("dopbase", "mes_tech_proc_workshop_staff")]
+    [Comment("工序工位员工信息表")]
+    public class mes_tech_proc_workshop_staff : BaseEntity
+    {
+        ///// <summary>
+        ///// 主键
+        ///// </summary>
+        //[Key]
+        //[Comment("主键")]
+        //public long tech_proc_workshop_equip_id { get; set; }
+
+        /// <summary>
+        /// 工艺工位id
+        /// </summary>
+        [Required]
+        [Comment("工艺工位id")]
+        public long? tech_proc_workshop_id { get; set; }
+
+        /// <summary>
+        /// 员工id
+        /// </summary>
+        [Required]
+        [Comment("员工id")]
+        public long? staff_id { get; set; }
+
+        /// <summary>
+        /// 员工姓名
+        /// </summary>
+        [StringLength(100)]
+        [Comment("员工姓名")]
+        public string? staff_name { get; set; }
+    }
+}

+ 156 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_tech_process.cs

@@ -0,0 +1,156 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Tech
+{
+    /// <summary>
+    /// 工艺关联工序表
+    /// </summary>
+    [CollectionName("dopbase", "mes_tech_process")]
+    [Comment("工艺关联工序表")]
+    public class mes_tech_process:BaseEntity
+    {
+        ///// <summary>
+        ///// 工艺工序主键
+        ///// </summary>
+        //[Key]
+        //[Comment("工艺工序主键")]
+        //public long tech_proc_id { get; set; }
+
+        /// <summary>
+        /// 工艺主键
+        /// </summary>
+        [Required]
+        [Comment("工艺主键")]
+        public long? tech_id { get; set; }
+
+        /// <summary>
+        /// 工序主键
+        /// </summary>
+        [Required]
+        [Comment("工序主键")]
+        public long? proc_id { get; set; }
+
+        /// <summary>
+        /// 组合层级
+        /// </summary>
+        [Required]
+        [Comment("组合层级")]
+        public int? level { get; set; }
+
+        /// <summary>
+        /// 是否需要排产:1-是;0-否
+        /// </summary>
+        [Required]
+        [Comment("是否需要排产:1-是;0-否")]
+        public int? is_schedule { get; set; }
+
+        /// <summary>
+        /// 前置准备时间
+        /// </summary>
+        [Precision(20,8)]
+        [Comment("前置准备时间")]
+        public decimal? readytime { get; set; }
+
+        /// <summary>
+        /// 工作中心类型WorkCenterType:1-人工型;2-流水线型;3-设备型
+        /// </summary>
+        [Comment("工作中心类型")]
+        public int? wctype { get; set; }
+
+        /// <summary>
+        /// 前置最小数量LeadQuantity to Start Next
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("前置最小数量")]
+        public decimal? lq { get; set; }
+
+        /// <summary>
+        /// 前置等待时间
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("前置等待时间")]
+        public decimal? lqt { get; set; }
+
+        /// <summary>
+        /// 子工序加工数量UnitPerParent
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("子工序加工数量")]
+        public decimal? upp { get; set; }
+
+        /// <summary>
+        /// 一次可加工数量UnitPerEquipment
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("一次可加工数量")]
+        public decimal? upe { get; set; }
+
+        /// <summary>
+        /// 实际运行工位数WorkshopInUse
+        /// </summary>
+        [Comment("实际运行工位数")]
+        public int? wsinuse { get; set; }
+
+        ///// <summary>
+        ///// 效率计算类型 1-节拍时间;2-UPH
+        ///// </summary>
+        //[Required]
+        //[Description("效率计算类型 1-节拍时间;2-UPH")]
+        //public int? type { get; set; }
+
+        /// <summary>
+        /// UPH
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("UPH")]
+        public decimal? uph { get; set; }
+
+        /// <summary>
+        /// 节拍时间
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("节拍时间")]
+        public decimal? ct { get; set; }
+
+        /// <summary>
+        /// 效率系数
+        /// </summary>
+        [Precision(10, 4)]
+        [Comment("效率系数")]
+        public decimal? effect_ratio { get; set; }
+
+        /// <summary>
+        /// 是否需要跟踪工序
+        /// </summary>
+        [Comment("是否需要跟踪工序")]
+        public int? mototrack { get; set; }
+
+        /// <summary>
+        /// 下一工序id
+        /// </summary>
+        [Comment("下一工序id")]
+        public long? nextprocid { get; set; }
+
+        /// <summary>
+        /// 父级工序id
+        /// </summary>
+        [Comment("父级工序id")]
+        public long? parentprocid { get; set; }
+
+        /// <summary>
+        /// 是否需要质检
+        /// </summary>
+        [Comment("是否需要质检")]
+        public int? needqc { get; set; }
+
+        /// <summary>
+        /// 最大并行工位数
+        /// </summary>
+        [Comment("最大并行工位数")]
+        public int? maxworkshop { get; set; }
+    }
+}

+ 64 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_technique.cs

@@ -0,0 +1,64 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using MongoDB.Bson.Serialization.Attributes;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Tech
+{
+    /// <summary>
+    /// 工艺路径表
+    /// </summary>
+    [CollectionName("dopbase", "mes_technique")]
+    [Comment("工艺路径表")]
+    public class mes_technique : BaseEntity
+    {
+        ///// <summary>
+        ///// 工艺路径主键
+        ///// </summary>
+        //[Key]
+        //[Comment("工艺路径主键")]
+        //public long tech_id { get; set; }
+
+        /// <summary>
+        /// 工艺路径名称
+        /// </summary>
+        [Required]
+        [StringLength(100)]
+        [Comment("工艺路径名称")]
+        [BsonRepresentation(MongoDB.Bson.BsonType.String)]
+        public string? tech_name { get; set; }
+
+        /// <summary>
+        /// 效率计算层级
+        /// </summary>
+        [Required]
+        [Comment("效率计算层级")]
+        public int? level { get; set; }
+
+        /// <summary>
+        /// 产品
+        /// </summary>
+        [StringLength(100)]
+        [Comment("产品")]
+        [BsonRepresentation(MongoDB.Bson.BsonType.String)]
+        public string? bom { get; set; }
+
+        /// <summary>
+        /// 产品版本
+        /// </summary>
+        [StringLength(100)]
+        [Comment("产品版本")]
+        [BsonRepresentation(MongoDB.Bson.BsonType.String)]
+        public string? bomver { get; set; }
+
+        /// <summary>
+        /// 描述
+        /// </summary>
+        [StringLength(100)]
+        [Comment("描述")]
+        [BsonRepresentation(MongoDB.Bson.BsonType.String)]
+        public string? desc { get; set; }
+    }
+}

+ 117 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_work_calendar.cs

@@ -0,0 +1,117 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Tech
+{
+    /// <summary>
+    /// 工作日历
+    /// </summary>
+    [CollectionName("dopbase", "mes_work_calendar")]
+    [Comment("工作日历")]
+    public class mes_work_calendar : BaseEntity
+    {
+        ///// <summary>
+        ///// 工作日历主键
+        ///// </summary>
+        //[Key]
+        //[Comment("工作日历主键")]
+        //public long work_calendar_id { get; set; }
+
+        /// <summary>
+        /// 工作日历编码
+        /// </summary>
+        [StringLength(100)]
+        [Comment("工作日历编码")]
+        public string? work_calendar_no { get; set; }
+
+        /// <summary>
+        /// 工作日历名称
+        /// </summary>
+        [StringLength(100)]
+        [Comment("工作日历名称")]
+        public string? work_calendar_name { get; set; }
+
+        /// <summary>
+        /// 班制id
+        /// </summary>
+        [Comment("班制id")]
+        public long? shift_id { get; set; }
+
+        /// <summary>
+        /// 开始时间
+        /// </summary>
+        [Comment("开始时间")]
+        public DateTime? start_time { get; set; }
+
+        /// <summary>
+        /// 结束时间
+        /// </summary>
+        [Comment("结束时间")]
+        public DateTime? end_time { get; set; }
+
+        /// <summary>
+        /// 标准周期
+        /// </summary>
+        [Comment("标准周期")]
+        public int? standard_period { get; set; }
+
+        /// <summary>
+        /// 工作周期
+        /// </summary>
+        [Comment("工作周期")]
+        public int? work_period { get; set; }
+
+        /// <summary>
+        /// 休息周期
+        /// </summary>
+        [Comment("休息周期")]
+        public int? rest_period { get; set; }
+
+        /// <summary>
+        /// 周1
+        /// </summary>
+        [Comment("周1")]
+        public int? calendar1 { get; set; }
+
+        /// <summary>
+        /// 周2
+        /// </summary>
+        [Comment("周2")]
+        public int? calendar2 { get; set; }
+
+        /// <summary>
+        /// 周3
+        /// </summary>
+        [Comment("周3")]
+        public int? calendar3 { get; set; }
+
+        /// <summary>
+        /// 周4
+        /// </summary>
+        [Comment("周4")]
+        public int? calendar4 { get; set; }
+
+        /// <summary>
+        /// 周5
+        /// </summary>
+        [Comment("周5")]
+        public int? calendar5 { get; set; }
+
+        /// <summary>
+        /// 周6
+        /// </summary>
+        [Comment("周6")]
+        public int? calendar6 { get; set; }
+
+        /// <summary>
+        /// 周7
+        /// </summary>
+        [Comment("周7")]
+        public int? calendar7 { get; set; }
+
+
+    }
+}

+ 54 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_work_calendar_list.cs

@@ -0,0 +1,54 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Tech
+{
+    /// <summary>
+    /// 工作日历明细表
+    /// </summary>
+    [CollectionName("dopbase", "mes_work_calendar_list")]
+    [Comment("工作日历明细表")]
+    public class mes_work_calendar_list : BaseEntity
+    {
+        ///// <summary>
+        ///// 工作日历明细主键
+        ///// </summary>
+        //[Key]
+        //[Comment("工作日历明细主键")]
+        //public long work_cal_list_id { get; set; }
+
+        /// <summary>
+        /// 工作日历id
+        /// </summary>
+        [Required]
+        [Comment("工作日历id")]
+        public long? work_calendar_id { get; set; }
+
+        /// <summary>
+        /// 日期
+        /// </summary>
+        [Comment("日期")]
+        public DateTime? work_cal_list_date { get; set; }
+
+        /// <summary>
+        /// 类型:1-工作日;0-休息日
+        /// </summary>
+        [Comment("类型:1-工作日;0-休息日")]
+        public int? work_cal_list_type { get; set; }
+
+        /// <summary>
+        /// 工作时长(分钟)
+        /// </summary>
+        [Comment("工作时长(分钟)")]
+        public int? work_cal_list_times { get; set; }
+
+        /// <summary>
+        /// 班次数
+        /// </summary>
+        [Comment("班次数")]
+        public int? work_cal_list_num { get; set; }
+    }
+}

+ 71 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_workshop.cs

@@ -0,0 +1,71 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Tech
+{
+    /// <summary>
+    /// 工位表(工作中心)
+    /// </summary>
+    [CollectionName("dopbase", "mes_workshop")]
+    [Comment("工位表(工作中心)")]
+    public class mes_workshop : BaseEntity
+    {
+        ///// <summary>
+        ///// 工位表主键
+        ///// </summary>
+        //[Key]
+        //[Comment("工位表主键")]
+        //public long workshop_id { get; set; }
+
+        /// <summary>
+        /// 工位名称
+        /// </summary>
+        [StringLength(100)]
+        [Comment("工位名称")]
+        public string? name { get; set; }
+
+        /// <summary>
+        /// 组合工位ids
+        /// </summary>
+        [StringLength(2000)]
+        [Comment("组合工位ids")]
+        public string? subids { get; set; }
+
+        /// <summary>
+        /// 坐标
+        /// </summary>
+        [StringLength(100)]
+        [Comment("坐标")]
+        public string? geoinfo { get; set; }
+
+        /// <summary>
+        /// 楼栋
+        /// </summary>
+        [StringLength(100)]
+        [Comment("楼栋")]
+        public string? building { get; set; }
+
+        /// <summary>
+        /// 楼层
+        /// </summary>
+        [StringLength(100)]
+        [Comment("楼层")]
+        public string? floor { get; set; }
+
+        /// <summary>
+        /// 区域
+        /// </summary>
+        [StringLength(100)]
+        [Comment("区域")]
+        public string? zone { get; set; }
+
+        /// <summary>
+        /// 工作日历id
+        /// </summary>
+        [Comment("工作日历id")]
+        public long? work_calendar_id { get; set; }
+    }
+}

+ 50 - 0
MicroServices/Business/Bussiness.MongoDB.Model/Tech/mes_workshop_shelf.cs

@@ -0,0 +1,50 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+
+namespace Bussiness.Model.Tech
+{
+    /// <summary>
+    /// 工位关联线边仓表
+    /// </summary>
+    [CollectionName("dopbase", "mes_workshop_shelf")]
+    [Comment("工位关联线边仓表")]
+    public class mes_workshop_shelf : BaseEntity
+    {
+        ///// <summary>
+        ///// 主键
+        ///// </summary>
+        //[Key]
+        //[Comment("主键")]
+        //public long workshop_shelf_id { get; set; }
+
+        /// <summary>
+        /// 工位id
+        /// </summary>
+        [Required]
+        [Comment("工位id")]
+        public long? workshop_id { get; set; }
+
+        /// <summary>
+        /// 线边仓序列号
+        /// </summary>
+        [Comment("线边仓序列号")]
+        public int? serialno { get; set; }
+
+        /// <summary>
+        /// 仓库编号
+        /// </summary>
+        [StringLength(100)]
+        [Comment("仓库编号")]
+        public string? sheifno { get; set; }
+
+        /// <summary>
+        /// 坐标
+        /// </summary>
+        [StringLength(100)]
+        [Comment("坐标")]
+        public string? geoinfo { get; set; }
+    }
+}

+ 154 - 0
MicroServices/Business/Bussiness.MongoDB.Model/obj/Bussiness.MongoDB.Model.csproj.nuget.dgspec.json

@@ -0,0 +1,154 @@
+{
+  "format": 1,
+  "restore": {
+    "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Bussiness.MongoDB.Model\\Bussiness.MongoDB.Model.csproj": {}
+  },
+  "projects": {
+    "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Business.Core\\Business.Core.csproj": {
+      "version": "1.0.0",
+      "restore": {
+        "projectUniqueName": "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Business.Core\\Business.Core.csproj",
+        "projectName": "Business.Core",
+        "projectPath": "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Business.Core\\Business.Core.csproj",
+        "packagesPath": "C:\\Users\\15623\\.nuget\\packages\\",
+        "outputPath": "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Business.Core\\obj\\",
+        "projectStyle": "PackageReference",
+        "configFilePaths": [
+          "C:\\Users\\15623\\AppData\\Roaming\\NuGet\\NuGet.Config",
+          "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
+        ],
+        "originalTargetFrameworks": [
+          "net6.0"
+        ],
+        "sources": {
+          "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
+          "https://api.nuget.org/v3/index.json": {}
+        },
+        "frameworks": {
+          "net6.0": {
+            "targetAlias": "net6.0",
+            "projectReferences": {}
+          }
+        },
+        "warningProperties": {
+          "warnAsError": [
+            "NU1605"
+          ]
+        }
+      },
+      "frameworks": {
+        "net6.0": {
+          "targetAlias": "net6.0",
+          "dependencies": {
+            "Microsoft.Extensions.Options": {
+              "target": "Package",
+              "version": "[6.0.0, )"
+            },
+            "MongoDB.Driver": {
+              "target": "Package",
+              "version": "[2.19.0, )"
+            },
+            "MongoDB.Driver.Core": {
+              "target": "Package",
+              "version": "[2.19.0, )"
+            },
+            "Newtonsoft.Json.Bson": {
+              "target": "Package",
+              "version": "[1.0.2, )"
+            },
+            "Volo.Abp.Ddd.Domain": {
+              "target": "Package",
+              "version": "[6.0.2, )"
+            }
+          },
+          "imports": [
+            "net461",
+            "net462",
+            "net47",
+            "net471",
+            "net472",
+            "net48",
+            "net481"
+          ],
+          "assetTargetFallback": true,
+          "warn": true,
+          "frameworkReferences": {
+            "Microsoft.NETCore.App": {
+              "privateAssets": "all"
+            }
+          },
+          "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.101\\RuntimeIdentifierGraph.json"
+        }
+      }
+    },
+    "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Bussiness.MongoDB.Model\\Bussiness.MongoDB.Model.csproj": {
+      "version": "1.0.0",
+      "restore": {
+        "projectUniqueName": "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Bussiness.MongoDB.Model\\Bussiness.MongoDB.Model.csproj",
+        "projectName": "Bussiness.MongoDB.Model",
+        "projectPath": "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Bussiness.MongoDB.Model\\Bussiness.MongoDB.Model.csproj",
+        "packagesPath": "C:\\Users\\15623\\.nuget\\packages\\",
+        "outputPath": "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Bussiness.MongoDB.Model\\obj\\",
+        "projectStyle": "PackageReference",
+        "configFilePaths": [
+          "C:\\Users\\15623\\AppData\\Roaming\\NuGet\\NuGet.Config",
+          "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
+        ],
+        "originalTargetFrameworks": [
+          "net6.0"
+        ],
+        "sources": {
+          "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
+          "https://api.nuget.org/v3/index.json": {}
+        },
+        "frameworks": {
+          "net6.0": {
+            "targetAlias": "net6.0",
+            "projectReferences": {
+              "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Business.Core\\Business.Core.csproj": {
+                "projectPath": "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Business.Core\\Business.Core.csproj"
+              }
+            }
+          }
+        },
+        "warningProperties": {
+          "warnAsError": [
+            "NU1605"
+          ]
+        }
+      },
+      "frameworks": {
+        "net6.0": {
+          "targetAlias": "net6.0",
+          "dependencies": {
+            "MongoDB.Driver.Core": {
+              "target": "Package",
+              "version": "[2.19.0, )"
+            },
+            "Volo.Abp.EntityFrameworkCore": {
+              "target": "Package",
+              "version": "[6.0.2, )"
+            }
+          },
+          "imports": [
+            "net461",
+            "net462",
+            "net47",
+            "net471",
+            "net472",
+            "net48",
+            "net481"
+          ],
+          "assetTargetFallback": true,
+          "warn": true,
+          "frameworkReferences": {
+            "Microsoft.NETCore.App": {
+              "privateAssets": "all"
+            }
+          },
+          "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.101\\RuntimeIdentifierGraph.json"
+        }
+      }
+    }
+  }
+}

+ 22 - 0
MicroServices/Business/Bussiness.MongoDB.Model/obj/Bussiness.MongoDB.Model.csproj.nuget.g.props

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+    <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
+    <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
+    <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
+    <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
+    <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\15623\.nuget\packages\</NuGetPackageFolders>
+    <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
+    <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.0</NuGetToolVersion>
+  </PropertyGroup>
+  <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+    <SourceRoot Include="C:\Users\15623\.nuget\packages\" />
+  </ItemGroup>
+  <ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+    <Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets\6.0.1\buildTransitive\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.props" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets\6.0.1\buildTransitive\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.props')" />
+  </ImportGroup>
+  <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+    <PkgAWSSDK_Core Condition=" '$(PkgAWSSDK_Core)' == '' ">C:\Users\15623\.nuget\packages\awssdk.core\3.7.100.14</PkgAWSSDK_Core>
+    <PkgAWSSDK_SecurityToken Condition=" '$(PkgAWSSDK_SecurityToken)' == '' ">C:\Users\15623\.nuget\packages\awssdk.securitytoken\3.7.100.14</PkgAWSSDK_SecurityToken>
+  </PropertyGroup>
+</Project>

+ 6 - 0
MicroServices/Business/Bussiness.MongoDB.Model/obj/Bussiness.MongoDB.Model.csproj.nuget.g.targets

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+    <Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets\6.0.1\buildTransitive\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets\6.0.1\buildTransitive\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.targets')" />
+  </ImportGroup>
+</Project>

+ 154 - 0
MicroServices/Business/Bussiness.MongoDB.Model/obj/Bussiness.MongoModel.csproj.nuget.dgspec.json

@@ -0,0 +1,154 @@
+{
+  "format": 1,
+  "restore": {
+    "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Bussiness.MongoDB.Model\\Bussiness.MongoModel.csproj": {}
+  },
+  "projects": {
+    "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Business.Core\\Business.Core.csproj": {
+      "version": "1.0.0",
+      "restore": {
+        "projectUniqueName": "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Business.Core\\Business.Core.csproj",
+        "projectName": "Business.Core",
+        "projectPath": "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Business.Core\\Business.Core.csproj",
+        "packagesPath": "C:\\Users\\15623\\.nuget\\packages\\",
+        "outputPath": "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Business.Core\\obj\\",
+        "projectStyle": "PackageReference",
+        "configFilePaths": [
+          "C:\\Users\\15623\\AppData\\Roaming\\NuGet\\NuGet.Config",
+          "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
+        ],
+        "originalTargetFrameworks": [
+          "net6.0"
+        ],
+        "sources": {
+          "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
+          "https://api.nuget.org/v3/index.json": {}
+        },
+        "frameworks": {
+          "net6.0": {
+            "targetAlias": "net6.0",
+            "projectReferences": {}
+          }
+        },
+        "warningProperties": {
+          "warnAsError": [
+            "NU1605"
+          ]
+        }
+      },
+      "frameworks": {
+        "net6.0": {
+          "targetAlias": "net6.0",
+          "dependencies": {
+            "Microsoft.Extensions.Options": {
+              "target": "Package",
+              "version": "[6.0.0, )"
+            },
+            "MongoDB.Driver": {
+              "target": "Package",
+              "version": "[2.19.0, )"
+            },
+            "MongoDB.Driver.Core": {
+              "target": "Package",
+              "version": "[2.19.0, )"
+            },
+            "Newtonsoft.Json.Bson": {
+              "target": "Package",
+              "version": "[1.0.2, )"
+            },
+            "Volo.Abp.Ddd.Domain": {
+              "target": "Package",
+              "version": "[6.0.2, )"
+            }
+          },
+          "imports": [
+            "net461",
+            "net462",
+            "net47",
+            "net471",
+            "net472",
+            "net48",
+            "net481"
+          ],
+          "assetTargetFallback": true,
+          "warn": true,
+          "frameworkReferences": {
+            "Microsoft.NETCore.App": {
+              "privateAssets": "all"
+            }
+          },
+          "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.101\\RuntimeIdentifierGraph.json"
+        }
+      }
+    },
+    "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Bussiness.MongoDB.Model\\Bussiness.MongoModel.csproj": {
+      "version": "1.0.0",
+      "restore": {
+        "projectUniqueName": "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Bussiness.MongoDB.Model\\Bussiness.MongoModel.csproj",
+        "projectName": "Bussiness.MongoModel",
+        "projectPath": "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Bussiness.MongoDB.Model\\Bussiness.MongoModel.csproj",
+        "packagesPath": "C:\\Users\\15623\\.nuget\\packages\\",
+        "outputPath": "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Bussiness.MongoDB.Model\\obj\\",
+        "projectStyle": "PackageReference",
+        "configFilePaths": [
+          "C:\\Users\\15623\\AppData\\Roaming\\NuGet\\NuGet.Config",
+          "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
+        ],
+        "originalTargetFrameworks": [
+          "net6.0"
+        ],
+        "sources": {
+          "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
+          "https://api.nuget.org/v3/index.json": {}
+        },
+        "frameworks": {
+          "net6.0": {
+            "targetAlias": "net6.0",
+            "projectReferences": {
+              "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Business.Core\\Business.Core.csproj": {
+                "projectPath": "D:\\代码\\三晶\\DOPCore\\MicroServices\\Business\\Business.Core\\Business.Core.csproj"
+              }
+            }
+          }
+        },
+        "warningProperties": {
+          "warnAsError": [
+            "NU1605"
+          ]
+        }
+      },
+      "frameworks": {
+        "net6.0": {
+          "targetAlias": "net6.0",
+          "dependencies": {
+            "MongoDB.Driver.Core": {
+              "target": "Package",
+              "version": "[2.19.0, )"
+            },
+            "Volo.Abp.EntityFrameworkCore": {
+              "target": "Package",
+              "version": "[6.0.2, )"
+            }
+          },
+          "imports": [
+            "net461",
+            "net462",
+            "net47",
+            "net471",
+            "net472",
+            "net48",
+            "net481"
+          ],
+          "assetTargetFallback": true,
+          "warn": true,
+          "frameworkReferences": {
+            "Microsoft.NETCore.App": {
+              "privateAssets": "all"
+            }
+          },
+          "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.101\\RuntimeIdentifierGraph.json"
+        }
+      }
+    }
+  }
+}

+ 22 - 0
MicroServices/Business/Bussiness.MongoDB.Model/obj/Bussiness.MongoModel.csproj.nuget.g.props

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+    <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
+    <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
+    <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
+    <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
+    <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\15623\.nuget\packages\</NuGetPackageFolders>
+    <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
+    <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.0</NuGetToolVersion>
+  </PropertyGroup>
+  <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+    <SourceRoot Include="C:\Users\15623\.nuget\packages\" />
+  </ItemGroup>
+  <ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+    <Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets\6.0.1\buildTransitive\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.props" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets\6.0.1\buildTransitive\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.props')" />
+  </ImportGroup>
+  <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+    <PkgAWSSDK_Core Condition=" '$(PkgAWSSDK_Core)' == '' ">C:\Users\15623\.nuget\packages\awssdk.core\3.7.100.14</PkgAWSSDK_Core>
+    <PkgAWSSDK_SecurityToken Condition=" '$(PkgAWSSDK_SecurityToken)' == '' ">C:\Users\15623\.nuget\packages\awssdk.securitytoken\3.7.100.14</PkgAWSSDK_SecurityToken>
+  </PropertyGroup>
+</Project>

+ 6 - 0
MicroServices/Business/Bussiness.MongoDB.Model/obj/Bussiness.MongoModel.csproj.nuget.g.targets

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+    <Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets\6.0.1\buildTransitive\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets\6.0.1\buildTransitive\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.targets')" />
+  </ImportGroup>
+</Project>

+ 4 - 0
MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs

@@ -0,0 +1,4 @@
+// <autogenerated />
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]

+ 23 - 0
MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoDB.Model.AssemblyInfo.cs

@@ -0,0 +1,23 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     此代码由工具生成。
+//     运行时版本:4.0.30319.42000
+//
+//     对此文件的更改可能会导致不正确的行为,并且如果
+//     重新生成代码,这些更改将会丢失。
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+
+[assembly: System.Reflection.AssemblyCompanyAttribute("Bussiness.MongoDB.Model")]
+[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
+[assembly: System.Reflection.AssemblyProductAttribute("Bussiness.MongoDB.Model")]
+[assembly: System.Reflection.AssemblyTitleAttribute("Bussiness.MongoDB.Model")]
+[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
+
+// 由 MSBuild WriteCodeFragment 类生成。
+

+ 1 - 0
MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoDB.Model.AssemblyInfoInputs.cache

@@ -0,0 +1 @@
+be6a4ecfd24bd8fcf65a26594e5ec5ce10fafe84

+ 11 - 0
MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoDB.Model.GeneratedMSBuildEditorConfig.editorconfig

@@ -0,0 +1,11 @@
+is_global = true
+build_property.TargetFramework = net6.0
+build_property.TargetPlatformMinVersion = 
+build_property.UsingMicrosoftNETSdkWeb = 
+build_property.ProjectTypeGuids = 
+build_property.InvariantGlobalization = 
+build_property.PlatformNeutralAssembly = 
+build_property.EnforceExtendedAnalyzerRules = 
+build_property._SupportedPlatformList = Linux,macOS,Windows
+build_property.RootNamespace = Bussiness.MongoDB.Model
+build_property.ProjectDir = D:\代码\三晶\DOPCore\MicroServices\Business\Bussiness.MongoDB.Model\

+ 8 - 0
MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoDB.Model.GlobalUsings.g.cs

@@ -0,0 +1,8 @@
+// <auto-generated/>
+global using global::System;
+global using global::System.Collections.Generic;
+global using global::System.IO;
+global using global::System.Linq;
+global using global::System.Net.Http;
+global using global::System.Threading;
+global using global::System.Threading.Tasks;

BIN
MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoDB.Model.assets.cache


BIN
MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoDB.Model.csproj.AssemblyReference.cache


+ 23 - 0
MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoModel.AssemblyInfo.cs

@@ -0,0 +1,23 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     此代码由工具生成。
+//     运行时版本:4.0.30319.42000
+//
+//     对此文件的更改可能会导致不正确的行为,并且如果
+//     重新生成代码,这些更改将会丢失。
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+
+[assembly: System.Reflection.AssemblyCompanyAttribute("Bussiness.MongoModel")]
+[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
+[assembly: System.Reflection.AssemblyProductAttribute("Bussiness.MongoModel")]
+[assembly: System.Reflection.AssemblyTitleAttribute("Bussiness.MongoModel")]
+[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
+
+// 由 MSBuild WriteCodeFragment 类生成。
+

+ 1 - 0
MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoModel.AssemblyInfoInputs.cache

@@ -0,0 +1 @@
+0cef8e3a3d25b7e0bd759370854188b954327604

+ 11 - 0
MicroServices/Business/Bussiness.MongoDB.Model/obj/Debug/net6.0/Bussiness.MongoModel.GeneratedMSBuildEditorConfig.editorconfig

@@ -0,0 +1,11 @@
+is_global = true
+build_property.TargetFramework = net6.0
+build_property.TargetPlatformMinVersion = 
+build_property.UsingMicrosoftNETSdkWeb = 
+build_property.ProjectTypeGuids = 
+build_property.InvariantGlobalization = 
+build_property.PlatformNeutralAssembly = 
+build_property.EnforceExtendedAnalyzerRules = 
+build_property._SupportedPlatformList = Linux,macOS,Windows
+build_property.RootNamespace = Bussiness.MongoModel
+build_property.ProjectDir = D:\代码\三晶\DOPCore\MicroServices\Business\Bussiness.MongoDB.Model\

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff