ソースを参照

添加工单齐套检查表

heteng 3 年 前
コミット
9ed2144c84

+ 134 - 0
MicroServices/Business/Bussiness.Model/Bang/b_order_detail.cs

@@ -0,0 +1,134 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Bussiness.Model.Bang
+{
+    /// <summary>
+    /// 物料齐套明细
+    /// </summary>
+    [CollectionName("dopbang", "b_order_detail")]
+    [Comment("物料齐套明细")]
+    public class b_order_detail : BaseEntity
+    {
+        /// <summary>
+        /// 工单齐套检查id
+        /// </summary>
+        [Comment("工单齐套检查id")]
+        public long? order_examine_id { get; set; }
+
+        /// <summary>
+        /// 物料id
+        /// </summary>
+        [Comment("物料id")]
+        public long? item_id { get; set; }
+
+        /// <summary>
+        /// bom编号
+        /// </summary>
+        [Comment("bom编号")]
+        public string? bom_number { get; set; }
+
+        /// <summary>
+        /// 物料编号
+        /// </summary>
+        [Comment("物料编号")]
+        public string? item_number { get; set; }
+
+        /// <summary>
+        /// 物料名称
+        /// </summary>
+        [Comment("物料名称")]
+        public string? item_name { get; set; }
+
+        /// <summary>
+        /// 用量
+        /// </summary>
+        [Comment("用量")]
+        public decimal? qty { get; set; }
+
+        /// <summary>
+        /// 本级缺料数量
+        /// </summary>
+        [Comment("本级缺料数量")]
+        public decimal? self_lack_qty { get; set; }
+
+        /// <summary>
+        /// 库存数量
+        /// </summary>
+        [Comment("库存数量")]
+        public decimal? sqty { get; set; }
+
+        /// <summary>
+        /// 库存占用数量
+        /// </summary>
+        [Comment("库存占用数量")]
+        public decimal? use_qty { get; set; }
+
+        /// <summary>
+        /// 在制占用数量
+        /// </summary>
+        [Comment("在制占用数量")]
+        public decimal? mo_qty { get; set; }
+
+        /// <summary>
+        /// 自制数量
+        /// </summary>
+        [Comment("自制数量")] 
+        public decimal? make_qty { get; set; }
+
+        /// <summary>
+        /// 采购数量
+        /// </summary>
+        [Comment("采购数量")]
+        public decimal? purchase_qty { get; set; }
+
+        /// <summary>
+        /// 采购明细占用数量
+        /// </summary>
+        [Comment("采购明细占用数量")]
+        public decimal? purchase_occupy_qty { get; set; }
+
+        /// <summary>
+        /// 委外数量
+        /// </summary>
+        [Comment("委外数量")]
+        public decimal? subcontracting_qty { get; set; }
+
+        /// <summary>
+        /// 齐套时间
+        /// </summary>
+        [Comment("齐套时间")]
+        public DateTime? kitting_time { get; set; }
+
+        /// <summary>
+        /// 群组代码
+        /// </summary>
+        [Comment("群组代码")]
+        public string? substitute_code { get; set; }
+
+        /// <summary>
+        /// 替代策略
+        /// </summary>
+        [Comment("替代策略")]
+        public int? substitute_strategy { get; set; }
+
+        /// <summary>
+        /// 替代方式
+        /// </summary>
+        [Comment("替代方式")]
+        public int? substitute_mode { get; set; }
+
+        /// <summary>
+        /// 是否使用此物料
+        /// </summary>
+        [Comment("是否使用此物料")]
+        public bool? is_use { get; set; }
+    }
+}

+ 57 - 0
MicroServices/Business/Bussiness.Model/Bang/b_order_examine_result.cs

@@ -0,0 +1,57 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Bussiness.Model.Bang
+{
+    /// <summary>
+    /// 工单齐套检查
+    /// </summary>
+    [CollectionName("dopbang", "b_order_examine_result")]
+    [Comment("工单齐套检查")]
+    public class b_order_examine_result : BaseEntity
+    {
+        /// <summary>
+        /// 工单id
+        /// </summary>
+        [Comment("工单id")]
+        public long? orderid { get; set; }
+
+        /// <summary>
+        /// 生产工单编号
+        /// </summary>
+        [StringLength(50)]
+        [Comment("生产工单编号")]
+        public string? order_no { get; set; }
+
+        /// <summary>
+        /// 开工日期
+        /// </summary>
+        [Comment("开工日期")]
+        public DateTime? time { get; set; }
+
+        /// <summary>
+        /// 齐套日期
+        /// </summary>
+        [Comment("齐套日期")]
+        public DateTime? ketting_time { get; set; }
+
+        /// <summary>
+        /// BOM编码
+        /// </summary>
+        [Comment("BOM编码")]
+        public string? bom_number { get; set; }
+
+        /// <summary>
+        /// 需要数量
+        /// </summary>
+        [Comment("需要数量")]
+        public decimal? need_qty { get; set; }
+    }
+}