namespace RB_MES_API.Models.Cloud
{
    public class PPBOMEntryStr
    {
        /// <summary>
        /// 产品编码  (必填项)
        /// </summary>
        public string FParentMaterial { get; set; } = string.Empty;
        /// <summary>
        /// 主料编码
        /// </summary>
        public string FMainMaterial { get; set; }
        /// <summary>
        /// 替代料编码
        /// </summary>
        public string FMaterial { get; set; }
        /// <summary>
        /// 生产车间  (必填项)
        /// </summary>
        public string FWorkshopID { get; set; } = string.Empty;
        /// <summary>
        /// BOM版本  (必填项)
        /// </summary>
        public string FBOMID { get; set; } = string.Empty;
        /// <summary>
        /// 生产数量  (必填项)
        /// </summary>
        public decimal FQty { get; set; }
        /// <summary>
        /// 生产订单编号  (必填项)
        /// </summary>
        public string FMOBillNO { get; set; } = string.Empty;
        /// <summary>
        /// 生产订单行号  (必填项)
        /// </summary>
        public int FMOEntrySeq { get; set; }
        /// <summary>
        /// 生产订单分录内码  (必填项)
        /// </summary>
        public int FMOEntryID { get; set; }
        /// <summary>
        /// 基本单位数量  (必填项)
        /// </summary>
        public decimal FBaseQty { get; set; }
        /// <summary>
        /// 生产订单内码  (必填项)
        /// </summary>
        public int FMoId { get; set; }
        /// <summary>
        /// 基本单位  (必填项)
        /// </summary>
        public string FBaseUnitID { get; set; } = string.Empty;
        /// <summary>
        /// 生产订单类型  (必填项)
        /// </summary>
        public string FMOType { get; set; } = string.Empty;
        /// <summary>
        /// 单位  (必填项)
        /// </summary>
        public string FUnitID { get; set; } = string.Empty;
        /// <summary>
        /// 生产组织  (必填项)
        /// </summary>
        public string FPrdOrgId { get; set; } = string.Empty;
        /// <summary>
        /// 产品货主类型  (必填项)
        /// </summary>
        public string FParentOwnerTypeId { get; set; } = string.Empty;
        /// <summary>
        /// 产品货主  (必填项)
        /// </summary>
        public string FParentOwnerId { get; set; } = string.Empty;
        /// <summary>
        /// 生产用料清单编号
        /// </summary>
        public string FPPBOMNo { get; set; } = string.Empty;
        /// <summary>
        /// 生产用料清单编号
        /// </summary>
        public int FPPBOMEntrySeq { get; set; } 
        /// <summary>
        /// 生产用料清单内码
        /// </summary>
        public int FPPBOMId { get; set; }
        /// <summary>
        /// 生产用料清单行内码
        /// </summary>
        public int FPPBOMEntryId { get; set; }
        /// <summary>
        /// 分子
        /// </summary>
        public long FNumerator { get; set; } = 1;
        /// <summary>
        /// 分母
        /// </summary>
        public long FDenominator { get; set; } = 1;
        /// <summary>
        ///项次
        /// </summary>
        public int FReplaceGroup { get; set; }

        /// <summary>
        /// 替代优先级
        /// </summary>
        public int FReplacePriority { get; set; }
        /// <summary>
        /// 变更前数量
        /// </summary>
        public decimal ChildQty { get; set; }
        /// <summary>
        /// 变更前基本单位数量
        /// </summary>
        public decimal BaseChildQty { get; set; }
        /// <summary>
        /// 子项类型
        /// </summary>
        public int FMaterialType { get; set; }
        /// <summary>
        /// 上级物料行主键
        /// </summary>
        public string FParentRowId { get; set; }
        /// <summary>
        /// 主料的行主键
        /// </summary>
        public string FRowId { get; set; }
    }
}
