using Magicodes.ExporterAndImporter.Core;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace TaskManager.Entity
{
public interface IDoExecute
{
Task ExecuteAsync(string url, string path, string takName);
}
public class TaskConifgure:BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[ExporterHeader(IsIgnore = true)]
public long UId { get; set; }
///
/// API路径
///
[ExporterHeader(DisplayName = "API路径")]
public string Api { get; set; }
///
/// 任务周期设置
///
[ExporterHeader(DisplayName = "任务周期设置")]
public string Corn { get; set; }
///
/// 模块
///
[ExporterHeader(IsIgnore = true)]
public string Module { get; set; }
///
/// 备注
///
[ExporterHeader(DisplayName = "备注")]
public string Remark { get; set; }
///
/// 表名
///
[ExporterHeader(IsIgnore =true)]
public string TableName { get; set; }
///
/// 任务名称
///
[ExporterHeader(DisplayName = "任务名称")]
public string TaskName { get; set; }
///
/// 全路径
///
[ExporterHeader(DisplayName = "全路径")]
public string Url { get; set; }
///
/// 是否自动执行
///
[ExporterHeader(DisplayName = "是否自动执行")]
public bool IsAuto { get; set; }
}
public class TaskLog:BaseEntity
{
///
/// 详细描述
///
[ExporterHeader(DisplayName = "信息")]
public string Info { get; set; }
///
/// 日志类型
///
[ExporterHeader(DisplayName = "日志类型")]
public string Type { get; set; }
///
/// 任务名称
///
[ExporterHeader(DisplayName = "任务名")]
public string TaskName { get; set; }
///
/// 任务名称
///
[ExporterHeader(DisplayName = "任务ID")]
public Guid TaskId { get; set; }
///
/// 创建时间
///
[ExporterHeader(DisplayName = "创建时间")]
public DateTime CreationTime { set; get; }
///
/// 备注
///
[ExporterHeader(DisplayName = "备注")]
public string Remark { get; set; }
}
public class BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[ExporterHeader(IsIgnore=true)]
public long UId { get; set; }
///
/// 写状态
///
public bool WriteState { get; set; }
[ExporterHeader(IsIgnore = true)]
public bool ReadState { get; set; }
[ExporterHeader(IsIgnore = true)]
public DateTime CreationTime { get; set; }
[ExporterHeader(IsIgnore = true)]
public string Remark { get; set; }
[ExporterHeader(IsIgnore = true)]
public Guid TaskId { get; set; }
}
public class CherryReadBaseEntity:BaseEntity
{
///
/// 请求发出日期
///
public string RequestDate { get; set; }
///
/// 同步ID
///
public string Id { get; set; }
}
///
/// 任务订阅实体类(对应数据库表 TEA_TASK_SUB)
///
public class TaskSub:BaseEntity
{
[ExporterHeader(DisplayName = "表名")]
///
/// 关联的数据表名称(如:订单表、用户表等,可为空)
///
public string? TableName { get; set; }
[ExporterHeader(DisplayName = "任务名称")]
///
/// 任务名称(用于业务层面标识任务,如:数据同步任务、报表生成任务)
///
public string? TaskName { get; set; }
[ExporterHeader(DisplayName = "同步总数量")]
///
/// 数据总量(任务处理的数据条目数)
///
public int DataCount { get; set; }
[ExporterHeader(DisplayName = "发布客户")]
///
/// 发布给那个客户
///
public string? Subscriber { get; set; }
[ExporterHeader(DisplayName = "失败次数")]
///
/// 失败次数(任务执行失败的累计次数)
///
public int FailedCount { get; set; }
///
/// 失败详情(记录失败原因、异常堆栈等信息,支持长文本)
///
[ExporterHeader(DisplayName = "失败信息")]
public string? FailedInfo { get; set; }
///
/// 所属域(多租户场景下标识租户,如:租户A、租户B)
///
[ExporterHeader(DisplayName = "域名")]
public string? Domain { get; set; }
///
/// 站点标识(多站点部署时标识所属站点,如:Site1、Site2)
///
[ExporterHeader(DisplayName = "站点")]
public string? Site { get; set; }
[ExporterHeader(DisplayName = "创建用户")]
///
/// 从那个内部系统创建系统
///
public string? CreateUser { get; set; }
[ExporterHeader(DisplayName = "创建时间")]
///
/// 创建时间(任务创建的时间戳)
///
public DateTime CreateTime { get; set; }
[ExporterHeader(DisplayName = "备注")]
///
/// 备注信息(任务相关的补充说明,支持长文本)
///
public string? Remark { get; set; }
[ExporterHeader(DisplayName = "更新客户系统名")]
///
/// 最后更新人(记录任务最后修改者)
///
public string? UpdateUser { get; set; }
[ExporterHeader(DisplayName = "更新完成时间")]
///
/// 最后更新时间(任务最后修改的时间戳,可为空)
///
public DateTime? UpdateTime { get; set; }
}
///
/// 整车月度生产计划-2
///
public class SUPPLIER_PRO_PLANING : CherryReadBaseEntity
{
///
/// 主键ID
///
[JsonPropertyName("id")]
public string Id { get; set; }
///
/// 需求发布版次:唯一版次ID
///
[JsonPropertyName("releaseEdition")]
[MaxLength(50)]
public string ReleaseEdition { get; set; } = string.Empty;
///
/// 车型
///
[JsonPropertyName("models")]
[MaxLength(50)]
public string Models { get; set; } = string.Empty;
///
/// 类型
///
[JsonPropertyName("type")]
[MaxLength(50)]
public string Type { get; set; } = string.Empty;
///
/// 动力总成
///
[JsonPropertyName("assembly")]
[MaxLength(50)]
public string Assembly { get; set; } = string.Empty;
///
/// 版型
///
[JsonPropertyName("pattern")]
[MaxLength(50)]
public string Pattern { get; set; } = string.Empty;
///
/// 物料号
///
[JsonPropertyName("materialCode")]
[MaxLength(50)]
public string MaterialCode { get; set; } = string.Empty;
///
/// 起始月份-格式:yyyy-MM
///
[JsonPropertyName("startMonth")]
[MaxLength(50)]
public string StartMonth { get; set; } = string.Empty;
///
/// 数量1
///
[JsonPropertyName("quantity1")]
public decimal Quantity1 { get; set; } = 1;
///
/// 数量2
///
[JsonPropertyName("quantity2")]
public decimal Quantity2 { get; set; } = 1;
///
/// 数量3
///
[JsonPropertyName("quantity3")]
public decimal Quantity3 { get; set; } = 1;
///
/// 数量4
///
[JsonPropertyName("quantity4")]
public decimal Quantity4 { get; set; } = 1;
///
/// 数量5
///
[JsonPropertyName("quantity5")]
public decimal Quantity5 { get; set; } = 1;
///
/// 数量6
///
[JsonPropertyName("quantity6")]
public decimal Quantity6 { get; set; } = 1;
///
/// 工厂
///
[JsonPropertyName("plant")]
[MaxLength(50)]
public string Plant { get; set; } = string.Empty;
///
/// 创建人
///
[JsonPropertyName("createByUser")]
[MaxLength(50)]
public string CreateByUser { get; set; } = string.Empty;
///
/// 创建时间
///
[JsonPropertyName("createTime")]
public DateTime CreateTime { get; set; }
///
/// 修改人
///
[JsonPropertyName("updateByUser")]
[MaxLength(50)]
public string UpdateByUser { get; set; } = string.Empty;
///
/// 修改时间
///
[JsonPropertyName("updateTime")]
public DateTime UpdateTime { get; set; }
///
/// 是否删除(0:否,1:是)
///
[JsonPropertyName("isDelete")]
public int IsDelete { get; set; } = 0;
///
/// 版本号
///
[JsonPropertyName("version")]
public int Version { get; set; } = 1;
[JsonProperty("omterior")] // 可能是拼写错误,保留原始名称
public string Omterior { get; set; }
[JsonProperty("salseDepartment")] // 可能是拼写错误,保留原始名称
public string SalseDepartment { get; set; }
}
///
/// M+6月物料需求计划
///
public class SUPPLIER_MRP_MONTH : CherryReadBaseEntity
{
///
/// 主键ID
///
[JsonPropertyName("id")]
public string Id { get; set; }
///
/// 需求发布版次:M+6月物料需求计划风险确认接口对应需求版次,需求ID
///
[JsonPropertyName("releaseEdition")]
[MaxLength(50)]
public string ReleaseEdition { get; set; } = string.Empty;
///
/// 零件号:奇瑞零件号
///
[JsonPropertyName("materialCode")]
[MaxLength(50)]
public string MaterialCode { get; set; } = string.Empty;
///
/// 零件名称
///
[JsonPropertyName("materialDescription")]
[MaxLength(50)]
public string MaterialDescription { get; set; } = string.Empty;
///
/// 工厂代码
///
[JsonPropertyName("plantId")]
[MaxLength(50)]
public string PlantId { get; set; } = string.Empty;
///
/// 工厂名称
///
[JsonPropertyName("plantName")]
[MaxLength(50)]
public string PlantName { get; set; } = string.Empty;
///
/// 起始月份-格式:yyyy-MM
///
[JsonPropertyName("startMonth")]
[MaxLength(50)]
public string StartMonth { get; set; } = string.Empty;
///
/// 需求数量1
///
[JsonPropertyName("quantityDemand1")]
public decimal QuantityDemand1 { get; set; } = 1;
///
/// 需求数量2
///
[JsonPropertyName("quantityDemand2")]
public decimal QuantityDemand2 { get; set; } = 1;
///
/// 需求数量3
///
[JsonPropertyName("quantityDemand3")]
public decimal QuantityDemand3 { get; set; } = 1;
///
/// 需求数量4
///
[JsonPropertyName("quantityDemand4")]
public decimal QuantityDemand4 { get; set; } = 1;
///
/// 需求数量5
///
[JsonPropertyName("quantityDemand5")]
public decimal QuantityDemand5 { get; set; } = 1;
///
/// 需求数量6
///
[JsonPropertyName("quantityDemand6")]
public decimal QuantityDemand6 { get; set; } = 1;
///
/// 需求数量7
///
[JsonPropertyName("quantityDemand7")]
public decimal QuantityDemand7 { get; set; } = 1;
///
/// 需求数量8
///
[JsonPropertyName("quantityDemand8")]
public decimal QuantityDemand8 { get; set; } = 1;
///
/// 需求数量9
///
[JsonPropertyName("quantityDemand9")]
public decimal QuantityDemand9 { get; set; } = 1;
///
/// 需求数量10
///
[JsonPropertyName("quantityDemand10")]
public decimal QuantityDemand10 { get; set; } = 1;
///
/// 需求数量11
///
[JsonPropertyName("quantityDemand11")]
public decimal QuantityDemand11 { get; set; } = 1;
///
/// 需求数量12
///
[JsonPropertyName("quantityDemand12")]
public int QuantityDemand12 { get; set; } = 1;
///
/// 当文件夹数据发生变更时(更新需求=1/否则=0)
///
[JsonPropertyName("isUpdate")]
[MaxLength(50)]
public string IsUpdate { get; set; } = string.Empty;
///
/// 创建人
///
[JsonPropertyName("createByUser")]
[MaxLength(50)]
public string CreateByUser { get; set; } = string.Empty;
///
/// 创建时间
///
[JsonPropertyName("createTime")]
public DateTime CreateTime { get; set; }
///
/// 修改人
///
[JsonPropertyName("updateByUser")]
[MaxLength(50)]
public string UpdateByUser { get; set; } = string.Empty;
///
/// 修改时间
///
[JsonPropertyName("updateTime")]
public DateTime UpdateTime { get; set; }
///
/// 是否删除(0:否,1是)
///
[JsonPropertyName("isDelete")]
public int IsDelete { get; set; } = 1;
///
/// 版本号
///
[JsonPropertyName("version")]
public int Version { get; set; } = 1;
}
///
/// M+6月物料需求计划风险确认
///
//public class SUPPLIER_CON_MMRP : BaseEntity
//{
// public string SupplierCode { get; set; }
// public string ReleaseEdition { get; set; }
// public string MaterialCode { get; set; }
// public string PlantId { get; set; }
// public string FeedbackResults { get; set; }
// public string VentureType { get; set; }
// public string VentureSpecific { get; set; }
// public string Measures { get; set; }
// public string StartMonth { get; set; }
// public int QuantityMeet1 { get; set; }
// public int QuantityMeet2 { get; set; }
// public int QuantityMeet3 { get; set; }
// public int QuantityMeet4 { get; set; }
// public int QuantityMeet5 { get; set; }
// public int QuantityMeet6 { get; set; }
// public int QuantityMeet7 { get; set; }
// public int QuantityMeet8 { get; set; }
// public int QuantityMeet9 { get; set; }
// public int QuantityMeet10 { get; set; }
// public int QuantityMeet11 { get; set; }
// public int QuantityMeet12 { get; set; }
//}
///
/// 日物料需求计划
///
public class SUPPLIER_MRP_DATE : CherryReadBaseEntity
{
//
/// 主键ID
///
[JsonPropertyName("id")]
public int Id { get; set; }
///
/// 需求发布版次:M+6月物料需求计划风险确认接口对应需求版次,需求ID
///
[JsonPropertyName("releaseEdition")]
[MaxLength(50)]
public string ReleaseEdition { get; set; } = string.Empty;
///
/// 零件号:奇瑞零件号
///
[JsonPropertyName("materialCode")]
[MaxLength(50)]
public string MaterialCode { get; set; } = string.Empty;
///
/// 零件名称
///
[JsonPropertyName("materialDescription")]
[MaxLength(50)]
public string MaterialDescription { get; set; } = string.Empty;
///
/// 工厂代码
///
[JsonPropertyName("plantId")]
[MaxLength(50)]
public string PlantId { get; set; } = string.Empty;
///
/// 工厂名称
///
[JsonPropertyName("plantName")]
[MaxLength(50)]
public string PlantName { get; set; } = string.Empty;
///
/// 起始月份-格式:yyyy-MM
///
[JsonPropertyName("startMonth")]
[MaxLength(50)]
public string StartMonth { get; set; } = string.Empty;
///
/// 需求数量1
///
[JsonPropertyName("quantityDemand1")]
public int QuantityDemand1 { get; set; } = 1;
///
/// 需求数量2
///
[JsonPropertyName("quantityDemand2")]
public int QuantityDemand2 { get; set; } = 1;
///
/// 需求数量3
///
[JsonPropertyName("quantityDemand3")]
public int QuantityDemand3 { get; set; } = 1;
///
/// 需求数量4
///
[JsonPropertyName("quantityDemand4")]
public int QuantityDemand4 { get; set; } = 1;
///
/// 需求数量5
///
[JsonPropertyName("quantityDemand5")]
public int QuantityDemand5 { get; set; } = 1;
///
/// 需求数量6
///
[JsonPropertyName("quantityDemand6")]
public int QuantityDemand6 { get; set; } = 1;
///
/// 需求数量7
///
[JsonPropertyName("quantityDemand7")]
public int QuantityDemand7 { get; set; } = 1;
///
/// 需求数量8
///
[JsonPropertyName("quantityDemand8")]
public int QuantityDemand8 { get; set; } = 1;
///
/// 需求数量9
///
[JsonPropertyName("quantityDemand9")]
public int QuantityDemand9 { get; set; } = 1;
///
/// 需求数量10
///
[JsonPropertyName("quantityDemand10")]
public int QuantityDemand10 { get; set; } = 1;
///
/// 需求数量11
///
[JsonPropertyName("quantityDemand11")]
public int QuantityDemand11 { get; set; } = 1;
///
/// 需求数量12
///
[JsonPropertyName("quantityDemand12")]
public int QuantityDemand12 { get; set; } = 1;
///
/// 当文件夹数据发生变更时(更新需求=1/否则=0)
///
[JsonPropertyName("isUpdate")]
[MaxLength(50)]
public string IsUpdate { get; set; } = string.Empty;
///
/// 创建人
///
[JsonPropertyName("createByUser")]
[MaxLength(50)]
public string CreateByUser { get; set; } = string.Empty;
///
/// 创建时间
///
[JsonPropertyName("createTime")]
public DateTime CreateTime { get; set; }
///
/// 修改人
///
[JsonPropertyName("updateByUser")]
[MaxLength(50)]
public string UpdateByUser { get; set; } = string.Empty;
///
/// 修改时间
///
[JsonPropertyName("updateTime")]
public DateTime UpdateTime { get; set; }
///
/// 是否删除(0:否,1是)
///
[JsonPropertyName("isDelete")]
public int IsDelete { get; set; } = 1;
///
/// 版本号
///
[JsonPropertyName("version")]
public int Version { get; set; } = 1;
}
///
/// 日物料需求计划风险确认
///
//public class SUPPLIER_CON_DATE : BaseEntity
//{
// public string SupplierCode { get; set; }
// public string ReleaseEdition { get; set; }
// public string MaterialCode { get; set; }
// public string PlantId { get; set; }
// public string FeedbackResults { get; set; }
// public string VentureType { get; set; }
// public string VentureSpecific { get; set; }
// public string Measures { get; set; }
// public string StartDate { get; set; }
// // QuantityMeet from 1 to 31
// public int QuantityMeet1 { get; set; }
// public int QuantityMeet2 { get; set; }
// public int QuantityMeet3 { get; set; }
// public int QuantityMeet4 { get; set; }
// public int QuantityMeet5 { get; set; }
// public int QuantityMeet6 { get; set; }
// public int QuantityMeet7 { get; set; }
// public int QuantityMeet8 { get; set; }
// public int QuantityMeet9 { get; set; }
// public int QuantityMeet10 { get; set; }
// public int QuantityMeet11 { get; set; }
// public int QuantityMeet12 { get; set; }
// public int QuantityMeet13 { get; set; }
// public int QuantityMeet14 { get; set; }
// public int QuantityMeet15 { get; set; }
// public int QuantityMeet16 { get; set; }
// public int QuantityMeet17 { get; set; }
// public int QuantityMeet18 { get; set; }
// public int QuantityMeet19 { get; set; }
// public int QuantityMeet20 { get; set; }
// public int QuantityMeet21 { get; set; }
// public int QuantityMeet22 { get; set; }
// public int QuantityMeet23 { get; set; }
// public int QuantityMeet24 { get; set; }
// public int QuantityMeet25 { get; set; }
// public int QuantityMeet26 { get; set; }
// public int QuantityMeet27 { get; set; }
// public int QuantityMeet28 { get; set; }
// public int QuantityMeet29 { get; set; }
// public int QuantityMeet30 { get; set; }
// public int QuantityMeet31 { get; set; }
//}
///
/// 计划协议
///
public class SUPPLIER_SA_WEEK : CherryReadBaseEntity
{
public string ScheduleAgreement { get; set; }
public string SerialNumber { get; set; }
public string MaterialCode { get; set; }
public string MaterialDescription { get; set; }
public string PurchasingGroup { get; set; }
public string PlantId { get; set; }
public int QuantityDemand { get; set; }
public string DateReceived { get; set; }
public string CreateByUser { get; set; }
public DateTime CreateTime { get; set; }
public string UpdateByUser { get; set; }
public DateTime UpdateTime { get; set; }
public int IsDelete { get; set; }
public int Version { get; set; }
}
///
/// 采购订单
///
public class SUPPLIER_PO : CherryReadBaseEntity
{
public string PurchaseOrder { get; set; }
public string SerialNumber { get; set; }
public string PlantId { get; set; }
public string PlantName { get; set; }
public string VoucherDate { get; set; }
public string Purchaser { get; set; }
public string Supplier { get; set; }
public string MaterialCode { get; set; }
public string MaterialDescription { get; set; }
public int QuantityDemand { get; set; }
public string MaterialUnit { get; set; }
public string DeliveryDate { get; set; }
public string DeliveryPlace { get; set; }
public int QuantityDelivery { get; set; }
public string Note { get; set; }
public string ItemType { get; set; }
public string TradeTerms { get; set; }
public string Country { get; set; }
public string Batch { get; set; }
public string CreateByUser { get; set; }
public string CreateTime { get; set; }
public string UpdateByUser { get; set; }
public string UpdateTime { get; set; }
public int IsDelete { get; set; }
public int Version { get; set; }
}
///
/// 采购订单风险确认
///
//public class SUPPLIER_CON_PO : BaseEntity
//{
// public string SupplierCode { get; set; }
// public string PurchaseOrder { get; set; }
// public string SerialNumber { get; set; }
// public int QuantityMeet { get; set; }
// public string FeedbackResults { get; set; }
// public string VentureType { get; set; }
// public string VentureSpecific { get; set; }
// public string Measures { get; set; }
//}
///
/// 过焊装未过总装
///
public class SUPPLIER_PRO_HSCHEDUL : CherryReadBaseEntity
{
public string Models { get; set; }
public string Vin { get; set; }
public string ProductionLineId { get; set; }
public string ProductionLineName { get; set; }
public string MaterialCode { get; set; }
public string MaterialDescription { get; set; }
public string ProductionType { get; set; }
public string OnLineTime { get; set; }
public string CreateByUser { get; set; }
public DateTime CreateTime { get; set; }
public string UpdateByUser { get; set; }
public DateTime UpdateTime { get; set; }
public int IsDelete { get; set; }
public int Version { get; set; }
}
///
/// 过涂装未过总装
///
public class SUPPLIER_PRO_TSCHEDUL : CherryReadBaseEntity
{
public string Models { get; set; }
public string Vin { get; set; }
public string ProductionLineId { get; set; }
public string ProductionLineName { get; set; }
public string MaterialCode { get; set; }
public string MaterialDescription { get; set; }
public string OnLineTime { get; set; }
public string FinalWorkshop { get; set; }
public string FinalOnLineTime { get; set; }
public string CreateByUser { get; set; }
public DateTime CreateTime { get; set; }
public string UpdateByUser { get; set; }
public DateTime UpdateTime { get; set; }
public int IsDelete { get; set; }
public int Version { get; set; }
}
///
/// 排序供货
///
public class SUPPLIER_PRO_CSCHEDUL : CherryReadBaseEntity
{
public string Models { get; set; }
public string Vin { get; set; }
public string ProductionLineId { get; set; }
public string ProductionLineName { get; set; }
public string MaterialCode { get; set; }
public string MaterialDescription { get; set; }
public string SortDate { get; set; }
public string SortTime { get; set; }
public string OnLineDate { get; set; }
public string OnLineTime { get; set; }
public string ModelCategory { get; set; }
public string AssemblyMaterialCode { get; set; }
public string MotorMaterialCode { get; set; }
public string Plant { get; set; }
public string CreateByUser { get; set; }
public DateTime CreateTime { get; set; }
public string UpdateByUser { get; set; }
public DateTime UpdateTime { get; set; }
public int IsDelete { get; set; }
public int Version { get; set; }
}
///
/// 看板配送单
///
public class SUPPLIER_DEL_STATE : CherryReadBaseEntity
{
public string DeliveryNumber { get; set; }
public string SerialNumber { get; set; }
public string SerialSrate { get; set; } // Matches input, may check for typo (e.g. SerialState?)
public string MaterialCode { get; set; }
public string MaterialDescription { get; set; }
public string PlantId { get; set; }
public string ReceivingCrossings { get; set; }
public int QuantityDelivery { get; set; }
public string DataCreateTime { get; set; }
public string SupplierReceiveTime { get; set; }
public string RoadShippedTime { get; set; }
public string RoadReceiveTime { get; set; }
public string CreateByUser { get; set; }
public DateTime CreateTime { get; set; }
public string UpdateByUser { get; set; }
public DateTime UpdateTime { get; set; }
public int IsDelete { get; set; }
public int Version { get; set; }
}
///
/// 退货单
///
public class SUPPLIER_RETURN : CherryReadBaseEntity
{
public string ReturnNumber { get; set; }
public string SerialNumber { get; set; }
public string SerialSrate { get; set; } // Matches input, possibly a typo (e.g. SerialState?)
public string PickUpLocation { get; set; }
public string DemandPickupTime { get; set; }
public string PickUpCrossings { get; set; }
public string Feedback { get; set; }
public string Plant { get; set; }
public string MaterialCode { get; set; }
public string MaterialDescription { get; set; }
public int QuantityDelivery { get; set; }
public string ReturnType { get; set; }
public string LotNumber { get; set; }
public string Judge { get; set; }
public string ReturnReason { get; set; }
public string CreateByUser { get; set; }
public DateTime CreateTime { get; set; }
public string UpdateByUser { get; set; }
public DateTime UpdateTime { get; set; }
public int IsDelete { get; set; }
public int Version { get; set; }
}
///
/// 奇瑞RDC共享库存
///
public class SUPPLIER_INV_DATA : CherryReadBaseEntity
{
public string PlantId { get; set; }
public string PlantName { get; set; }
public string MaterialCode { get; set; }
public string MaterialDescription { get; set; }
public int QuantityCurrent { get; set; }
public string StockState { get; set; }
public string DataUpdateTime { get; set; }
public string CreateByUser { get; set; }
public DateTime CreateTime { get; set; }
public string UpdateByUser { get; set; }
public DateTime UpdateTime { get; set; }
public int IsDelete { get; set; }
public int Version { get; set; }
}
///
/// 供应商共享库存
///
//public class SUPPLIER_SINV_DATA : CherryReadBaseEntity
//{
// public string SupplierCode { get; set; }
// public string SupplierName { get; set; }
// public string MaterialCode { get; set; }
// public string MaterialDescription { get; set; }
// public string MaterialType { get; set; }
// public int QuantityCurrent { get; set; }
// public int QuantityPlan { get; set; }
// public string InventoryStatus { get; set; }
// public int SafetyStock { get; set; }
// public string ProductionCycle { get; set; }
// public string DataUpdateTime { get; set; }
// public string SupplierBatch { get; set; }
// public string SupplieryxqDate { get; set; }
//}
///
/// 日MRP状态监控
///
public class SUPPLIER_MRP_STATE : CherryReadBaseEntity
{
public string PlantId { get; set; }
public string PlantName { get; set; }
public string DemandSrate { get; set; } // Matches input, possibly a typo (e.g. DemandState?)
public string DemandType { get; set; }
public string MaterialCode { get; set; }
public string MaterialDescription { get; set; }
public string SummarySign { get; set; }
public string DateRequired { get; set; }
public int QuantityDemand { get; set; }
public string ConfirmTime { get; set; }
public int CreatQuantity { get; set; }
public int QuantityDelivery { get; set; }
public int QuantityReceive { get; set; }
public int QuantityInTransit { get; set; }
public int OnTimePercentage { get; set; }
public int SummaryCreatQuantity { get; set; }
public int SummaryQuantityDelivery { get; set; }
public int SummaryQuantityReceive { get; set; }
public int SummaryQuantityInTransit { get; set; }
public string CreateByUser { get; set; }
public DateTime CreateTime { get; set; }
public string UpdateByUser { get; set; }
public DateTime UpdateTime { get; set; }
public int IsDelete { get; set; }
public int Version { get; set; }
}
///
/// 日MRP预警推移
///
public class SUPPLIER_MRP_WARNING : CherryReadBaseEntity
{
public string PlantId { get; set; }
public string MaterialCode { get; set; }
public string MaterialDescription { get; set; }
public int QuantityCurrent { get; set; }
public string ReckonDate { get; set; }
public int QuantityPlanned { get; set; }
public int QuantityPlannedDelivery { get; set; }
public int QuantityInTransit { get; set; }
public int DateGap { get; set; }
public int InventoryGap { get; set; }
public string CreateByUser { get; set; }
public DateTime CreateTime { get; set; }
public string UpdateByUser { get; set; }
public DateTime UpdateTime { get; set; }
public int IsDelete { get; set; }
public int Version { get; set; }
}
}