namespace RB_MES_API.Models.Cloud
{
    /// <summary>
    /// 生产入库单的原单信息
    /// </summary>
    public class PRDINSTOCK
    {
        /// <summary>
        /// 生产订单id
        /// </summary>
        public string FID { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public string FBillTypeID { get; set; }

        /// <summary>
        /// 单据类型
        /// </summary>
        public string FBillType { get; set; }

        /// <summary>
        /// 生产组织FPrdOrgId.FNumber
        /// </summary>
        public string FPrdOrgId { get; set; }
        /// <summary>
        /// 入库组织
        /// </summary>
        //public string FStockOrgId { get; set; }
        /// <summary>
        /// 入库货主类型
        /// </summary>
        public string FInStockOwnerTypeId { get; set; }
        /// <summary>
        /// 入库货主FInStockOwnerId.FNumber
        /// </summary>
        public string FInStockOwnerId { get; set; }
        /// <summary>
        /// 货主
        /// </summary>
        //public string FOwnerId0 { get; set; }
        /// <summary>
        /// 物料编码FMaterialId.FNumber
        /// </summary>
        public string FMaterialId { get; set; }
        /// <summary>
        /// 产品类型
        /// </summary>
        public string FProductType { get; set; }
        /// <summary>
        /// 入库类型-推入库单用
        /// </summary>
        public string FInStockType { get; set; }
        /// <summary>
        /// 单位FUnitID.FNumber
        /// </summary>
        public string FUnitID { get; set; }
        /// <summary>
        /// 基本单位FBaseUnitId.FNumber
        /// </summary>
        public string FBaseUnitId { get; set; }
        /// <summary>
        /// 货主类型
        /// </summary>
        public string FOwnerTypeId { get; set; }
        /// <summary>
        /// 货主FOwnerId.FNumber
        /// </summary>
        public string FOwnerId { get; set; }
        /// <summary>
        ///  辅助属性
        /// </summary>
        public AuxpropId FAuxPropId { get; set; }
        public class AuxpropId
        {
            public Dictionary<string, string> FAUXPROPID__FF100001 { get; set; } = new Dictionary<string, string>() {
                { "FNumber",""} };
        }
        /// <summary>
        /// 计划跟踪号
        /// </summary>
        public string FMTONO { get; set; }
        /// <summary>
        /// 项目编号
        /// </summary>
        public string FProjectNo { get; set; }
        /// <summary>
        /// 生产车间FWorkShopID.FNumber
        /// </summary>
        public string FWorkShopID { get; set; }
        /// <summary>
        /// 生产订单编号
        /// </summary>
        public string FBillNo { get; set; }

        /// <summary>
        /// 原单明细内码
        /// </summary>
        public string FEntryId { get; set; }
        /// <summary>
        /// 源单分录行号 FSrcBillEntrySeq 
        /// </summary>
        public string FSeq { get; set; }
        /// <summary>
        /// 未入库数量
        /// </summary>
        public decimal FNoStockInQty { get; set; }
        /// <summary>
        /// 基本单位未入库数量
        /// </summary>
        public decimal FBaseNoStockInQty { get; set; }

    }
}
