using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace ZR.Model.mes.pro
{
///
/// 生产计划
///
[SugarTable("pro_workorder")]
public class ProWorkorder
{
///
/// 计划年
///
[SugarColumn(ColumnName="workorder_year" ,IsPrimaryKey = true )]
public int WorkorderYear { get; set; }
///
/// 计划月
///
[SugarColumn(ColumnName="workorder_month" ,IsPrimaryKey = true )]
public int WorkorderMonth { get; set; }
///
/// 计划周
///
[SugarColumn(ColumnName="workorder_week" ,IsPrimaryKey = true )]
public int WorkorderWeek { get; set; }
///
/// 工单编码/产品编码
///
[SugarColumn(ColumnName="workorder_code" ,IsPrimaryKey = true )]
public string WorkorderCode { get; set; }
///
/// 工单名称/第(30)周生产计划
///
[SugarColumn(ColumnName="workorder_name" )]
public string WorkorderName { get; set; }
///
/// 来源类型(1:客户订单(默认),2:生产备料)
///
[SugarColumn(ColumnName="order_source" )]
public string OrderSource { get; set; }
///
/// 来源单据code
///
[SugarColumn(ColumnName="source_code" )]
public string SourceCode { get; set; }
///
/// 班组
///
[SugarColumn(ColumnName="classgroup" )]
public string Classgroup { get; set; }
///
/// 车型
///
[SugarColumn(ColumnName="vehicle" )]
public string Vehicle { get; set; }
///
/// 生产产品零件号
///
[SugarColumn(ColumnName="product_id" )]
public string ProductId { get; set; }
///
/// 生产产品编码
///
[SugarColumn(ColumnName="product_code" )]
public string ProductCode { get; set; }
///
/// 生产产品名称
///
[SugarColumn(ColumnName="product_name" )]
public string ProductName { get; set; }
///
/// 标准班产
///
[SugarColumn(ColumnName="standard_shift_production" )]
public string StandardShiftProduction { get; set; }
///
/// 生产耗时
///
[SugarColumn(ColumnName="time_consumption" )]
public string TimeConsumption { get; set; }
///
/// 本周装配计划数量
///
[SugarColumn(ColumnName="require_quantity" )]
public string RequireQuantity { get; set; }
///
/// 单位
///
[SugarColumn(ColumnName="unit" )]
public string Unit { get; set; }
///
/// 本周实际生产数量
///
[SugarColumn(ColumnName="quantity_produced" )]
public string QuantityProduced { get; set; }
///
/// 数量调整
///
[SugarColumn(ColumnName="quantity_changed" )]
public string QuantityChanged { get; set; }
///
/// 已排程数量
///
[SugarColumn(ColumnName="quantity_scheduled" )]
public string QuantityScheduled { get; set; }
///
/// 客户id
///
[SugarColumn(ColumnName="client_id" )]
public string ClientId { get; set; }
///
/// 客户code
///
[SugarColumn(ColumnName="client_code" )]
public string ClientCode { get; set; }
///
/// 客户名称
///
[SugarColumn(ColumnName="client_name" )]
public string ClientName { get; set; }
///
/// 父工单
///
[SugarColumn(ColumnName="parent_id" )]
public string ParentId { get; set; }
///
/// 单据状态
///
[SugarColumn(ColumnName="status" )]
public string Status { get; set; }
///
/// 备注
///
[SugarColumn(ColumnName="remark" )]
public string Remark { get; set; }
///
/// 备用字段1
///
[SugarColumn(ColumnName="attr1" )]
public string Attr1 { get; set; }
///
/// 备用字段2
///
[SugarColumn(ColumnName="attr2" )]
public string Attr2 { get; set; }
///
/// 备用字段3
///
[SugarColumn(ColumnName="attr3" )]
public string Attr3 { get; set; }
///
/// 租户号
///
[SugarColumn(ColumnName="TENANT_ID" )]
public string TenantId { get; set; }
///
/// 乐观锁
///
[SugarColumn(ColumnName="REVISION" )]
public int? Revision { get; set; }
///
/// 创建人
///
[SugarColumn(ColumnName="CREATED_BY" )]
public string CreatedBy { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnName="CREATED_TIME" )]
public DateTime? CreatedTime { get; set; }
///
/// 更新人
///
[SugarColumn(ColumnName="UPDATED_BY" )]
public string UpdatedBy { get; set; }
///
/// 更新时间
///
[SugarColumn(ColumnName="UPDATED_TIME" )]
public DateTime? UpdatedTime { get; set; }
}
}