namespace RB_MES_API.Models.Cloud
{
    /// <summary>
    /// 二次查询：上游单据为生产用料清单的简易信息
    /// </summary>
    public class PrdPpbomEntry
    {
        /// <summary>
        /// 用料清单ID
        /// </summary>
        public string FID { get; set; }
        /// <summary>
        /// 生产订单内码
        /// </summary>
        public string FMoId1 { get; set; }
        /// <summary>
        /// 生产订单分录内码
        /// </summary>
        public string FMoEntryId1 { get; set; }
        /// <summary>
        /// 生产订单行号
        /// </summary>
        public string FMoEntrySeq1 { get; set; }
        /// <summary>
        /// 生产订单编号
        /// </summary>
        public string FMoBillNo1 { get; set; } = "";
        /// <summary>
        /// 车间编码FWorkshopID.FNumber
        /// </summary>
        public string FWorkshopNumber { get; set; }
        /// <summary>
        /// 用料清单分录内码，FEntity.FEntryID
        /// </summary>
        public string FEntryID  { get; set; }
        /// <summary>
        /// 系统源单行号,FEntrySrcEntrySeq
        /// </summary>
        public string FEntity_FSeq { get; set; }
        /// <summary>
        /// 用料清单编号  FPPBomBillNo
        /// </summary>
        public string FBillNo  { get; set; }
        /// <summary>
        /// 产品编码 FParentMaterialId
        /// </summary>
        public string FParentMaterial { get; set; }
        /// <summary>
        /// 主料编码
        /// </summary>
        public string FMainMaterial { get; set; }
        /// <summary>
        /// 料编码
        /// </summary>
        public string FMaterial { get; set; }
        /// <summary>
        /// 单位编码
        /// </summary>
        public string FUnitNumber { get; set; }
        /// <summary>
        /// 基本单位编码
        /// </summary>
        public string FBaseUnitNumber { get; set; }
        /// <summary>
        /// 需求数量
        /// </summary>
        public string FNeedQty2 { get; set; }
        /// <summary>
        /// 已领数量
        /// </summary>
        public string FPickedQty { get; set; }
        /// <summary>
        /// 基本单位需求数量
        /// </summary>
        public string FBaseNeedQty { get; set; }     //申请数量=需求-已领
        /// <summary>
        /// 基本单位已领数量
        /// </summary>
        public string FBasePickedQty { get; set; }     //申请数量=需求-已领
        /// <summary>
        /// 生产订单类型
        /// </summary>
        public string FMOType { get; set; }

    }
}
