namespace DOAN.Model.MES.product.Dto
{
///
/// 工单查询对象
///
public class ProWorkorderQueryDto : PagerInfo
{
public string productionName { get; set; }
public string productionCode { get; set; }
public string Workorder { get; set; }
public string RouteCode { get; set; }
public string GroupCode { get; set; }
///
/// 进料单号(领料)
///
public string FeedOrder { get; set; }
///
/// 客户单号(出货)
///
public string CustomerOrder { get; set; }
public int Status { get; set; }
public DateTime[] WorkorderDate { get; set; } = new DateTime[2];
}
public class ProWorkorderQueryDto2
{
public DateTime WorkorderDate { get; set; }
}
public class ProWorkorderExportDto
{
public string [] WorkorderArray { get; set; }
public string Path { get; set; }
}
///
/// 工单输入输出对象
///
public class ProWorkorderDto
{
[Required(ErrorMessage = "雪花不能为空")]
public string Id { get; set; }
[Required(ErrorMessage = "工单号(一旦确定,不可更改)不能为空")]
public string Workorder { get; set; }
public string productionName { get; set; }
public string productionCode { get; set; }
public string Unit { get; set; }
public int? PlanNum { get; set; }
public int? ShipmentNum { get; set; }
public int? Sort { get; set; }
public DateTime? WorkorderDate { get; set; }
public int? Priority { get; set; }
public int? Beat { get; set; }
public int? Status { get; set; }
public DateTime? InstructionDate { get; set; }
public string MaterialName { get; set; }
public string MaterialtextureCode { get; set; }
public string MaterialCode { get; set; }
public string DrawingCode { get; set; }
public string Version { get; set; }
public string StoveCode { get; set; }
public string WorkshopCode { get; set; }
public string RouteCode { get; set; }
public string GroupCode { get; set; }
///
/// 进料单号(领料)
///
public string FeedOrder { get; set; }
///
/// 客户单号(出货)
///
public string CustomerOrder { get; set; }
public string Remark01 { get; set; }
public string Remark02 { get; set; }
public string Remark03 { get; set; }
public string Remark04 { get; set; }
public string Remark05 { get; set; }
public string CreatedBy { get; set; }
public DateTime? CreatedTime { get; set; }
public string UpdatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
}
///
/// 工单备料进度
///
public class MaterialPreparationProgress
{
///
/// 工单号
///
public string WorkOrder { get; set; }
///
/// 0未备料 1备料中 2备料已经完成
///
public int PreparationStatus { get; set; }
///
/// 已经备料任务数
///
public int Preparationed_num { get; set; }
///
/// 全部备料任务数
///
public int Preparation_all_num { get; set; }
}
///
/// 工单 带 完成数量
///
public class ProWorkorderDto4 : ProWorkorderDto
{
///
/// 完成数量
///
public int? FinishNum { get; set; }
public MaterialPreparationProgress progress { get; set; }
}
public class ProWorkorderDto2 : ProWorkorderDto
{
///
/// 下一个工单号
///
public string next_id { get; set; }
}
///
/// 带参数报警
///
public class ProWorkorderDto3 : ProWorkorderDto
{
///
/// 物料code在物料清单是否存在
///
public string IsMatch_material_code { get; set; }
///
/// 物料name在物料清单是否存在
///
public string IsMatch_material_name { get; set; }
///
/// 工艺路线是否存在
///
public string IsMatch_line { get; set; }
///
/// 组是否存在
///
public string IsMatch_group { get; set; }
///
/// 单位是否存在
///
public string IsMatch_Unit { get; set; }
}
///
/// 工单BOM 及其所需数量
///
public class WorkOrderBom
{
///
/// 子件编码
///
public string SubInvCode { get; set; }
///
/// 子件名称
///
public string SubInvName { get; set; }
///
/// 单件数量
///
public string Iusequantity_Single { get; set; }
///
/// 使用总数量
///
public string Iusequantity_All { get; set; }
///
/// BOM版本号
///
public string BOMVersion { get; set; }
}
///
/// 工单进度追溯
///
public class ProWorkorderTranceProgressDto
{
///
/// 雪花id
///
public string Id { get; set; }
///
/// 工单号
///
public string Workorder { get; set; }
///
/// 存货编码
///
public string productionCode { get; set; }
///
/// 产品名称
///
public string productionName { get; set; }
///
/// 规格型号
///
public string Specification { get; set; }
///
/// 交货数量
///
public int? DeliveryNum { get; set; }
///
/// 组别
///
public string GroupCode { get; set; }
///
/// 线别
///
public string RouteCode { get; set; }
///
/// 序号
///
public int? Sort { get; set; }
///
/// 工单日期
///
public DateTime? WorkorderDate { get; set; }
///
/// 优先级 1-100
///
public int? Priority { get; set; }
///
/// 工单状态
///
public int? Status { get; set; }
///
/// 工单开始时间
///
public DateTime? StartTime { get; set; }
///
/// 工单结束时间
public DateTime? EndTime { get; set; }
///
/// 计划数量
///
public int? PlanNum { get; set; }
///
/// 实际数量
///
public int? ActualNum { get; set; }
}
}