产品定义
This commit is contained in:
14
ZR.Model/mes/md/DTO/MdProductDefineDTO.cs
Normal file
14
ZR.Model/mes/md/DTO/MdProductDefineDTO.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZR.Model.mes.md.DTO
|
||||
{
|
||||
public class MdProductDefineDTO
|
||||
{
|
||||
public List<MdProductDefine> list { set; get; }
|
||||
public int Total { set; get; }
|
||||
}
|
||||
}
|
||||
7
ZR.Model/mes/md/DTO/MdUnitPageDTO.cs
Normal file
7
ZR.Model/mes/md/DTO/MdUnitPageDTO.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace ZR.Model.mes.md.DTO;
|
||||
|
||||
public class MdUnitPageDTO
|
||||
{
|
||||
public List<MdUnit> list { set; get; }
|
||||
public int Total { set; get; }
|
||||
}
|
||||
19
ZR.Model/mes/md/DTO/SearchOptionDTO.cs
Normal file
19
ZR.Model/mes/md/DTO/SearchOptionDTO.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZR.Model.mes.md.DTO
|
||||
{
|
||||
public class SearchOptionDTO
|
||||
{
|
||||
public DateTime starttime { get; set; }
|
||||
public DateTime endtime { get; set; }
|
||||
|
||||
public string measureCode { get; set; }
|
||||
public string measureName { get; set; }
|
||||
public string enableFlag { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace ZR.Model.mes.md.DTO;
|
||||
|
||||
public class UnitPageDTO
|
||||
{
|
||||
public List<Unit> list;
|
||||
public int Total;
|
||||
}
|
||||
99
ZR.Model/mes/md/MdBom.cs
Normal file
99
ZR.Model/mes/md/MdBom.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.mes.md
|
||||
{
|
||||
/// <summary>
|
||||
/// 物料清单
|
||||
///</summary>
|
||||
[SugarTable("md_bom")]
|
||||
public class MdBom
|
||||
{
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 父产品名称id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="parent_id" )]
|
||||
public int? ParentId { get; set; }
|
||||
/// <summary>
|
||||
/// 父产品名称code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="parent_code" )]
|
||||
public string ParentCode { get; set; }
|
||||
/// <summary>
|
||||
/// 父产品名称name
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="parent_name" )]
|
||||
public string ParentName { get; set; }
|
||||
/// <summary>
|
||||
/// 子项物料编号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="material_code" )]
|
||||
public string MaterialCode { get; set; }
|
||||
/// <summary>
|
||||
/// 子项物料名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="material_name" )]
|
||||
public string MaterialName { get; set; }
|
||||
/// <summary>
|
||||
/// 类型(产品,物料)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="material_type" )]
|
||||
public string MaterialType { get; set; }
|
||||
/// <summary>
|
||||
/// 安全库存
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="safety_stock" )]
|
||||
public int? SafetyStock { get; set; }
|
||||
/// <summary>
|
||||
/// 位置
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="material_position" )]
|
||||
public string MaterialPosition { get; set; }
|
||||
/// <summary>
|
||||
/// 需求数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="requireNum" )]
|
||||
public int? RequireNum { get; set; }
|
||||
/// <summary>
|
||||
/// 子项单位id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="unit_id" )]
|
||||
public int? UnitId { get; set; }
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="TENANT_ID" )]
|
||||
public string TenantId { get; set; }
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="REVISION" )]
|
||||
public int? Revision { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
64
ZR.Model/mes/md/MdDevice.cs
Normal file
64
ZR.Model/mes/md/MdDevice.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.mes.md
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备
|
||||
///</summary>
|
||||
[SugarTable("md_device")]
|
||||
public class MdDevice
|
||||
{
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 设备编号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="device_code" )]
|
||||
public string DeviceCode { get; set; }
|
||||
/// <summary>
|
||||
/// 设备名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="device_name" )]
|
||||
public string DeviceName { get; set; }
|
||||
/// <summary>
|
||||
/// 设备所属工位id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="fk_workstation_id" )]
|
||||
public int? FkWorkstationId { get; set; }
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="TENANT_ID" )]
|
||||
public string TenantId { get; set; }
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="REVISION" )]
|
||||
public int? Revision { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
64
ZR.Model/mes/md/MdPallet.cs
Normal file
64
ZR.Model/mes/md/MdPallet.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.mes.md
|
||||
{
|
||||
/// <summary>
|
||||
/// 托盘
|
||||
///</summary>
|
||||
[SugarTable("md_pallet")]
|
||||
public class MdPallet
|
||||
{
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="TENANT_ID" )]
|
||||
public string TenantId { get; set; }
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="REVISION" )]
|
||||
public int? Revision { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 托盘code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="pallet_code" )]
|
||||
public string PalletCode { get; set; }
|
||||
/// <summary>
|
||||
/// 托盘name
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="pallet_name" )]
|
||||
public string PalletName { get; set; }
|
||||
/// <summary>
|
||||
/// fk_线体id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="fk_workline_id" )]
|
||||
public int? FkWorklineId { get; set; }
|
||||
}
|
||||
}
|
||||
91
ZR.Model/mes/md/MdProductDefine.cs
Normal file
91
ZR.Model/mes/md/MdProductDefine.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.mes.md
|
||||
{
|
||||
/// <summary>
|
||||
/// 产品定义
|
||||
///</summary>
|
||||
[SugarTable("md_product_define")]
|
||||
public class MdProductDefine
|
||||
{
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 产品编号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="product_code" )]
|
||||
public string ProductCode { get; set; }
|
||||
/// <summary>
|
||||
/// 产品名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="product_name" )]
|
||||
public string ProductName { get; set; }
|
||||
/// <summary>
|
||||
/// 单位id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="product_unit" )]
|
||||
public int? ProductUnit { get; set; }
|
||||
public string ProductUnitName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工艺路线code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="processRoute_code" )]
|
||||
public string ProcessrouteCode { get; set; }
|
||||
/// <summary>
|
||||
/// 工艺路线
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="processRoute_name" )]
|
||||
public string ProcessrouteName { get; set; }
|
||||
/// <summary>
|
||||
/// 预留字段1
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attre1" )]
|
||||
public string Attre1 { get; set; }
|
||||
/// <summary>
|
||||
/// 预留字段2
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attre2" )]
|
||||
public string Attre2 { get; set; }
|
||||
/// <summary>
|
||||
/// 预留字段3
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attre3" )]
|
||||
public string Attre3 { get; set; }
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="TENANT_ID" )]
|
||||
public string TenantId { get; set; }
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="REVISION" )]
|
||||
public int? Revision { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
64
ZR.Model/mes/md/MdProrouteSort.cs
Normal file
64
ZR.Model/mes/md/MdProrouteSort.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.mes.md
|
||||
{
|
||||
/// <summary>
|
||||
/// 工艺组成表
|
||||
///</summary>
|
||||
[SugarTable("md_proroute_sort")]
|
||||
public class MdProrouteSort
|
||||
{
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 工艺路线id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="fk_proroute_id" )]
|
||||
public int? FkProrouteId { get; set; }
|
||||
/// <summary>
|
||||
/// 工序
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="fk_worksort_id" )]
|
||||
public int? FkWorksortId { get; set; }
|
||||
/// <summary>
|
||||
/// 排序
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="sort" )]
|
||||
public int? Sort { get; set; }
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="TENANT_ID" )]
|
||||
public string TenantId { get; set; }
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="REVISION" )]
|
||||
public int? Revision { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
59
ZR.Model/mes/md/MdTechnologicalProroute.cs
Normal file
59
ZR.Model/mes/md/MdTechnologicalProroute.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.mes.md
|
||||
{
|
||||
/// <summary>
|
||||
/// 工艺路线
|
||||
///</summary>
|
||||
[SugarTable("md_technological_proroute")]
|
||||
public class MdTechnologicalProroute
|
||||
{
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 工艺流程code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="proroute_code" )]
|
||||
public string ProrouteCode { get; set; }
|
||||
/// <summary>
|
||||
/// 工艺流程name
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="proroute_name" )]
|
||||
public string ProrouteName { get; set; }
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="TENANT_ID" )]
|
||||
public string TenantId { get; set; }
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="REVISION" )]
|
||||
public int? Revision { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
/// 计量单位
|
||||
///</summary>
|
||||
[SugarTable("md_unit")]
|
||||
public class Unit
|
||||
public class MdUnit
|
||||
{
|
||||
/// <summary>
|
||||
/// 单位ID
|
||||
@@ -95,6 +95,11 @@
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "UPDATED_TIME")]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
|
||||
public bool Contains()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
64
ZR.Model/mes/md/MdWorkline.cs
Normal file
64
ZR.Model/mes/md/MdWorkline.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.mes.md
|
||||
{
|
||||
/// <summary>
|
||||
/// 线体
|
||||
///</summary>
|
||||
[SugarTable("md_workline")]
|
||||
public class MdWorkline
|
||||
{
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 线体code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="line_code" )]
|
||||
public string LineCode { get; set; }
|
||||
/// <summary>
|
||||
/// 线体名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="line_name" )]
|
||||
public string LineName { get; set; }
|
||||
/// <summary>
|
||||
/// fk_工艺流程
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="fk_tech_process_id" )]
|
||||
public int? FkTechProcessId { get; set; }
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="TENANT_ID" )]
|
||||
public string TenantId { get; set; }
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="REVISION" )]
|
||||
public int? Revision { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
64
ZR.Model/mes/md/MdWorkshop.cs
Normal file
64
ZR.Model/mes/md/MdWorkshop.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.mes.md
|
||||
{
|
||||
/// <summary>
|
||||
/// 车间
|
||||
///</summary>
|
||||
[SugarTable("md_workshop")]
|
||||
public class MdWorkshop
|
||||
{
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 车间id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workshop_id" )]
|
||||
public string WorkshopId { get; set; }
|
||||
/// <summary>
|
||||
/// 车间名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workshop_name" )]
|
||||
public string WorkshopName { get; set; }
|
||||
/// <summary>
|
||||
/// 车间位置
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workshop_position" )]
|
||||
public string WorkshopPosition { get; set; }
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="TENANT_ID" )]
|
||||
public string TenantId { get; set; }
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="REVISION" )]
|
||||
public int? Revision { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
64
ZR.Model/mes/md/MdWorksort.cs
Normal file
64
ZR.Model/mes/md/MdWorksort.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.mes.md
|
||||
{
|
||||
/// <summary>
|
||||
/// 工序
|
||||
///</summary>
|
||||
[SugarTable("md_worksort")]
|
||||
public class MdWorksort
|
||||
{
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="TENANT_ID" )]
|
||||
public string TenantId { get; set; }
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="REVISION" )]
|
||||
public int? Revision { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 工序code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="worksort_code" )]
|
||||
public string WorksortCode { get; set; }
|
||||
/// <summary>
|
||||
/// 工序名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="worksort_name" )]
|
||||
public string WorksortName { get; set; }
|
||||
/// <summary>
|
||||
/// fk_线体id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="fk_workline_id" )]
|
||||
public int? FkWorklineId { get; set; }
|
||||
}
|
||||
}
|
||||
64
ZR.Model/mes/md/MdWorkstation.cs
Normal file
64
ZR.Model/mes/md/MdWorkstation.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.mes.md
|
||||
{
|
||||
/// <summary>
|
||||
/// 工位
|
||||
///</summary>
|
||||
[SugarTable("md_workstation")]
|
||||
public class MdWorkstation
|
||||
{
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 工位code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="station_code" )]
|
||||
public string StationCode { get; set; }
|
||||
/// <summary>
|
||||
/// 工位name
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="station_name" )]
|
||||
public string StationName { get; set; }
|
||||
/// <summary>
|
||||
/// fk_工序id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="fk_worksort_id" )]
|
||||
public int? FkWorksortId { get; set; }
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="TENANT_ID" )]
|
||||
public string TenantId { get; set; }
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="REVISION" )]
|
||||
public int? Revision { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
104
ZR.Model/mes/pro/ProCallmaterial.cs
Normal file
104
ZR.Model/mes/pro/ProCallmaterial.cs
Normal file
@@ -0,0 +1,104 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.mes.pro
|
||||
{
|
||||
/// <summary>
|
||||
/// 产线叫料
|
||||
///</summary>
|
||||
[SugarTable("pro_callmaterial")]
|
||||
public class ProCallmaterial
|
||||
{
|
||||
/// <summary>
|
||||
/// 编号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true )]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// fk_生产任务id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="fk_task_id" )]
|
||||
public int? FkTaskId { get; set; }
|
||||
/// <summary>
|
||||
/// 物料id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="material_id" )]
|
||||
public string MaterialId { get; set; }
|
||||
/// <summary>
|
||||
/// 物料code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="material_code" )]
|
||||
public string MaterialCode { get; set; }
|
||||
/// <summary>
|
||||
/// 物料名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="material_name" )]
|
||||
public string MaterialName { get; set; }
|
||||
/// <summary>
|
||||
/// 叫料数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="call_num" )]
|
||||
public decimal? CallNum { get; set; }
|
||||
/// <summary>
|
||||
/// 叫料时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="call_time" )]
|
||||
public DateTime? CallTime { get; set; }
|
||||
/// <summary>
|
||||
/// 得到数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="arrive_num" )]
|
||||
public decimal? ArriveNum { get; set; }
|
||||
/// <summary>
|
||||
/// 叫料是否成功(0,1)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="status" )]
|
||||
public string Status { get; set; }
|
||||
/// <summary>
|
||||
/// 备用字段1
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attr1" )]
|
||||
public string Attr1 { get; set; }
|
||||
/// <summary>
|
||||
/// 备用字段2
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attr2" )]
|
||||
public string Attr2 { get; set; }
|
||||
/// <summary>
|
||||
/// 备用字段3
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attr3" )]
|
||||
public string Attr3 { get; set; }
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="TENANT_ID" )]
|
||||
public string TenantId { get; set; }
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="REVISION" )]
|
||||
public int? Revision { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
214
ZR.Model/mes/pro/ProFeedback.cs
Normal file
214
ZR.Model/mes/pro/ProFeedback.cs
Normal file
@@ -0,0 +1,214 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.mes.pro
|
||||
{
|
||||
/// <summary>
|
||||
/// 生产报工
|
||||
///</summary>
|
||||
[SugarTable("pro_feedback")]
|
||||
public class ProFeedback
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="record_id" ,IsPrimaryKey = true )]
|
||||
public int RecordId { get; set; }
|
||||
/// <summary>
|
||||
/// 报工类型(统一报工,自行报工)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="feedback_type" )]
|
||||
public string FeedbackType { get; set; }
|
||||
/// <summary>
|
||||
/// 报工单编号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="feedback_code" )]
|
||||
public string FeedbackCode { get; set; }
|
||||
/// <summary>
|
||||
/// 工单id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workorder_id" )]
|
||||
public int? WorkorderId { get; set; }
|
||||
/// <summary>
|
||||
/// 工单code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workorder_code" )]
|
||||
public string WorkorderCode { get; set; }
|
||||
/// <summary>
|
||||
/// 工单name
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workorder_name" )]
|
||||
public string WorkorderName { get; set; }
|
||||
/// <summary>
|
||||
/// 工序id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="process_id" )]
|
||||
public int? ProcessId { get; set; }
|
||||
/// <summary>
|
||||
/// 工序code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="process_code" )]
|
||||
public string ProcessCode { get; set; }
|
||||
/// <summary>
|
||||
/// 工序name
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="process_name" )]
|
||||
public string ProcessName { get; set; }
|
||||
/// <summary>
|
||||
/// 工作站id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workstation_id" )]
|
||||
public int? WorkstationId { get; set; }
|
||||
/// <summary>
|
||||
/// 工作站code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workstation_code" )]
|
||||
public string WorkstationCode { get; set; }
|
||||
/// <summary>
|
||||
/// 工作站name
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workstation_name" )]
|
||||
public string WorkstationName { get; set; }
|
||||
/// <summary>
|
||||
/// 生产任务ID
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="task_id" )]
|
||||
public string TaskId { get; set; }
|
||||
/// <summary>
|
||||
/// 生产任务code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="task_code" )]
|
||||
public string TaskCode { get; set; }
|
||||
/// <summary>
|
||||
/// 产品物料ID
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="item_id" )]
|
||||
public string ItemId { get; set; }
|
||||
/// <summary>
|
||||
/// 产品物料code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="item_code" )]
|
||||
public string ItemCode { get; set; }
|
||||
/// <summary>
|
||||
/// 产品物料name
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="item_name" )]
|
||||
public string ItemName { get; set; }
|
||||
/// <summary>
|
||||
/// 单位
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="unit" )]
|
||||
public string Unit { get; set; }
|
||||
/// <summary>
|
||||
/// 排产数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="quantity" )]
|
||||
public string Quantity { get; set; }
|
||||
/// <summary>
|
||||
/// 本次报工数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="quantity_feedback" )]
|
||||
public string QuantityFeedback { get; set; }
|
||||
/// <summary>
|
||||
/// 合格数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="quantity_qualified" )]
|
||||
public string QuantityQualified { get; set; }
|
||||
/// <summary>
|
||||
/// 不合格数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="quantity_unquanlified" )]
|
||||
public string QuantityUnquanlified { get; set; }
|
||||
/// <summary>
|
||||
/// 报工人姓名
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="user_name" )]
|
||||
public string UserName { get; set; }
|
||||
/// <summary>
|
||||
/// 昵称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="nick_name" )]
|
||||
public string NickName { get; set; }
|
||||
/// <summary>
|
||||
/// 报工途径
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="feedback_channel" )]
|
||||
public string FeedbackChannel { get; set; }
|
||||
/// <summary>
|
||||
/// 报工时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="feedback_time" )]
|
||||
public string FeedbackTime { get; set; }
|
||||
/// <summary>
|
||||
/// 记录人名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="record_user" )]
|
||||
public string RecordUser { get; set; }
|
||||
/// <summary>
|
||||
/// 昵称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="record_nick" )]
|
||||
public string RecordNick { get; set; }
|
||||
/// <summary>
|
||||
/// 状态
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="status" )]
|
||||
public string Status { get; set; }
|
||||
/// <summary>
|
||||
/// 备注
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="remark" )]
|
||||
public string Remark { get; set; }
|
||||
/// <summary>
|
||||
/// 预留字段1
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attr1" )]
|
||||
public string Attr1 { get; set; }
|
||||
/// <summary>
|
||||
/// 预留字段2
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attr2" )]
|
||||
public string Attr2 { get; set; }
|
||||
/// <summary>
|
||||
/// 预留字段3
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attr3" )]
|
||||
public string Attr3 { get; set; }
|
||||
/// <summary>
|
||||
/// 预留字段4
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attr4" )]
|
||||
public string Attr4 { get; set; }
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="TENANT_ID" )]
|
||||
public string TenantId { get; set; }
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="REVISION" )]
|
||||
public int? Revision { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
184
ZR.Model/mes/pro/ProWorkorder.cs
Normal file
184
ZR.Model/mes/pro/ProWorkorder.cs
Normal file
@@ -0,0 +1,184 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.mes.pro
|
||||
{
|
||||
/// <summary>
|
||||
/// 生产计划
|
||||
///</summary>
|
||||
[SugarTable("pro_workorder")]
|
||||
public class ProWorkorder
|
||||
{
|
||||
/// <summary>
|
||||
/// 计划年
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workorder_year" ,IsPrimaryKey = true )]
|
||||
public int WorkorderYear { get; set; }
|
||||
/// <summary>
|
||||
/// 计划月
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workorder_month" ,IsPrimaryKey = true )]
|
||||
public int WorkorderMonth { get; set; }
|
||||
/// <summary>
|
||||
/// 计划周
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workorder_week" ,IsPrimaryKey = true )]
|
||||
public int WorkorderWeek { get; set; }
|
||||
/// <summary>
|
||||
/// 工单编码/产品编码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workorder_code" ,IsPrimaryKey = true )]
|
||||
public string WorkorderCode { get; set; }
|
||||
/// <summary>
|
||||
/// 工单名称/第(30)周生产计划
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workorder_name" )]
|
||||
public string WorkorderName { get; set; }
|
||||
/// <summary>
|
||||
/// 来源类型(1:客户订单(默认),2:生产备料)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="order_source" )]
|
||||
public string OrderSource { get; set; }
|
||||
/// <summary>
|
||||
/// 来源单据code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="source_code" )]
|
||||
public string SourceCode { get; set; }
|
||||
/// <summary>
|
||||
/// 班组
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="classgroup" )]
|
||||
public string Classgroup { get; set; }
|
||||
/// <summary>
|
||||
/// 车型
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="vehicle" )]
|
||||
public string Vehicle { get; set; }
|
||||
/// <summary>
|
||||
/// 生产产品零件号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="product_id" )]
|
||||
public string ProductId { get; set; }
|
||||
/// <summary>
|
||||
/// 生产产品编码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="product_code" )]
|
||||
public string ProductCode { get; set; }
|
||||
/// <summary>
|
||||
/// 生产产品名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="product_name" )]
|
||||
public string ProductName { get; set; }
|
||||
/// <summary>
|
||||
/// 标准班产
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="standard_shift_production" )]
|
||||
public string StandardShiftProduction { get; set; }
|
||||
/// <summary>
|
||||
/// 生产耗时
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="time_consumption" )]
|
||||
public string TimeConsumption { get; set; }
|
||||
/// <summary>
|
||||
/// 本周装配计划数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="require_quantity" )]
|
||||
public string RequireQuantity { get; set; }
|
||||
/// <summary>
|
||||
/// 单位
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="unit" )]
|
||||
public string Unit { get; set; }
|
||||
/// <summary>
|
||||
/// 本周实际生产数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="quantity_produced" )]
|
||||
public string QuantityProduced { get; set; }
|
||||
/// <summary>
|
||||
/// 数量调整
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="quantity_changed" )]
|
||||
public string QuantityChanged { get; set; }
|
||||
/// <summary>
|
||||
/// 已排程数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="quantity_scheduled" )]
|
||||
public string QuantityScheduled { get; set; }
|
||||
/// <summary>
|
||||
/// 客户id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="client_id" )]
|
||||
public string ClientId { get; set; }
|
||||
/// <summary>
|
||||
/// 客户code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="client_code" )]
|
||||
public string ClientCode { get; set; }
|
||||
/// <summary>
|
||||
/// 客户名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="client_name" )]
|
||||
public string ClientName { get; set; }
|
||||
/// <summary>
|
||||
/// 父工单
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="parent_id" )]
|
||||
public string ParentId { get; set; }
|
||||
/// <summary>
|
||||
/// 单据状态
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="status" )]
|
||||
public string Status { get; set; }
|
||||
/// <summary>
|
||||
/// 备注
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="remark" )]
|
||||
public string Remark { get; set; }
|
||||
/// <summary>
|
||||
/// 备用字段1
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attr1" )]
|
||||
public string Attr1 { get; set; }
|
||||
/// <summary>
|
||||
/// 备用字段2
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attr2" )]
|
||||
public string Attr2 { get; set; }
|
||||
/// <summary>
|
||||
/// 备用字段3
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attr3" )]
|
||||
public string Attr3 { get; set; }
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="TENANT_ID" )]
|
||||
public string TenantId { get; set; }
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="REVISION" )]
|
||||
public int? Revision { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
179
ZR.Model/mes/pro/ProWorktask.cs
Normal file
179
ZR.Model/mes/pro/ProWorktask.cs
Normal file
@@ -0,0 +1,179 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.mes.pro
|
||||
{
|
||||
/// <summary>
|
||||
/// 生产任务
|
||||
///</summary>
|
||||
[SugarTable("pro_worktask")]
|
||||
public class ProWorktask
|
||||
{
|
||||
/// <summary>
|
||||
/// 生产任务id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="task_id" ,IsPrimaryKey = true ,IsIdentity = true )]
|
||||
public int TaskId { get; set; }
|
||||
/// <summary>
|
||||
/// 生产任务code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="task_code" )]
|
||||
public string TaskCode { get; set; }
|
||||
/// <summary>
|
||||
/// 生产计划ID
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workorder_id" )]
|
||||
public string WorkorderId { get; set; }
|
||||
/// <summary>
|
||||
/// 生产计划编号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workorder_code" )]
|
||||
public string WorkorderCode { get; set; }
|
||||
/// <summary>
|
||||
/// 计划名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="workorder_name" )]
|
||||
public string WorkorderName { get; set; }
|
||||
/// <summary>
|
||||
/// 工序id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="process_id" )]
|
||||
public int? ProcessId { get; set; }
|
||||
/// <summary>
|
||||
/// 工序编码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="process_code" )]
|
||||
public string ProcessCode { get; set; }
|
||||
/// <summary>
|
||||
/// 工序名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="process_name" )]
|
||||
public string ProcessName { get; set; }
|
||||
/// <summary>
|
||||
/// 物料id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="material_id" )]
|
||||
public int? MaterialId { get; set; }
|
||||
/// <summary>
|
||||
/// 物料编码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="material_code" )]
|
||||
public string MaterialCode { get; set; }
|
||||
/// <summary>
|
||||
/// 物料名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="material_name" )]
|
||||
public string MaterialName { get; set; }
|
||||
/// <summary>
|
||||
/// 单位
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="unit" )]
|
||||
public string Unit { get; set; }
|
||||
/// <summary>
|
||||
/// 排产数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="quantity" )]
|
||||
public decimal? Quantity { get; set; }
|
||||
/// <summary>
|
||||
/// 已经生产数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="quantity_produced" )]
|
||||
public decimal? QuantityProduced { get; set; }
|
||||
/// <summary>
|
||||
/// 合格品数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="quantity_quanlify" )]
|
||||
public decimal? QuantityQuanlify { get; set; }
|
||||
/// <summary>
|
||||
/// 不良品数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="quantity_unquanlify" )]
|
||||
public decimal? QuantityUnquanlify { get; set; }
|
||||
/// <summary>
|
||||
/// 开始生产时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="start_time" )]
|
||||
public DateTime? StartTime { get; set; }
|
||||
/// <summary>
|
||||
/// 生产时长
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="duration" )]
|
||||
public decimal? Duration { get; set; }
|
||||
/// <summary>
|
||||
/// 完成生产时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="end_time" )]
|
||||
public DateTime? EndTime { get; set; }
|
||||
/// <summary>
|
||||
/// 甘特图显示颜色
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="color_code" )]
|
||||
public string ColorCode { get; set; }
|
||||
/// <summary>
|
||||
/// 需求日期
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="request_date" )]
|
||||
public string RequestDate { get; set; }
|
||||
/// <summary>
|
||||
/// 生产状态
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="status" )]
|
||||
public string Status { get; set; }
|
||||
/// <summary>
|
||||
/// 备注
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="remark" )]
|
||||
public string Remark { get; set; }
|
||||
/// <summary>
|
||||
/// 预留字段1
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attr1" )]
|
||||
public string Attr1 { get; set; }
|
||||
/// <summary>
|
||||
/// 预留字段2
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attr2" )]
|
||||
public string Attr2 { get; set; }
|
||||
/// <summary>
|
||||
/// 预留字段3
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attr3" )]
|
||||
public string Attr3 { get; set; }
|
||||
/// <summary>
|
||||
/// 预留字段4
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="attr4" )]
|
||||
public string Attr4 { get; set; }
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="TENANT_ID" )]
|
||||
public string TenantId { get; set; }
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="REVISION" )]
|
||||
public int? Revision { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
91
ZR.Model/mes/pro/ProductDefine.cs
Normal file
91
ZR.Model/mes/pro/ProductDefine.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZR.Model.mes.pro
|
||||
{
|
||||
/// <summary>
|
||||
/// 产品定义
|
||||
///</summary>
|
||||
[SugarTable("md_product_define")]
|
||||
public class MdProductDefine
|
||||
{
|
||||
/// <summary>
|
||||
/// 流水号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 产品编号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "product_code")]
|
||||
public string ProductCode { get; set; }
|
||||
/// <summary>
|
||||
/// 产品名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "product_name")]
|
||||
public string ProductName { get; set; }
|
||||
/// <summary>
|
||||
/// 单位id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "product_unit")]
|
||||
public int? ProductUnit { get; set; }
|
||||
/// <summary>
|
||||
/// 工艺路线code
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "processRoute_code")]
|
||||
public string ProcessrouteCode { get; set; }
|
||||
/// <summary>
|
||||
/// 工艺路线
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "processRoute_name")]
|
||||
public string ProcessrouteName { get; set; }
|
||||
/// <summary>
|
||||
/// 预留字段1
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "attre1")]
|
||||
public string Attre1 { get; set; }
|
||||
/// <summary>
|
||||
/// 预留字段2
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "attre2")]
|
||||
public string Attre2 { get; set; }
|
||||
/// <summary>
|
||||
/// 预留字段3
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "attre3")]
|
||||
public string Attre3 { get; set; }
|
||||
/// <summary>
|
||||
/// 租户号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "TENANT_ID")]
|
||||
public string TenantId { get; set; }
|
||||
/// <summary>
|
||||
/// 乐观锁
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "REVISION")]
|
||||
public int? Revision { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "CREATED_BY")]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "CREATED_TIME")]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "UPDATED_BY")]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "UPDATED_TIME")]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user