namespace RB_MES_API.Models.Cloud
{
    /// <summary>
    /// 委外退料单的原单信息
    /// </summary>
    public class SUBRETURNMTRL
    {
        /// <summary>
        /// 退料单ID
        /// </summary>
        public string FID { get; set; }
        ///// <summary>
        ///// 发料组织
        ///// </summary>
        ////public string FStockOrgId { get; set; }
        /// <summary>
        /// 委外组织
        /// </summary>
        public string FSubOrgId { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public string FSupplierId { get; set; }
        ///// <summary>
        ///// 本位币
        ///// </summary>
        ////public string FCurrId { get; set; }
        /// <summary>
        /// 产品编码
        /// </summary>
        public string FProductNumber { get; set; }
        /// <summary>
        /// 采购订单号
        /// </summary>
        public string FPurOrderNo { get; set; }
        /// <summary>
        /// 采购订单行号
        /// </summary>
        public int FPurOrderEntrySeq { get; set; }
        ///// <summary>
        ///// 货主
        ///// </summary>
        //public string FOwnerID { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string FMaterialID { get; set; }
        ///// <summary>
        ///// 委外用料清单分录内码
        ///// </summary>
        ////public string FPPbomEntryId { get; set; }
        /// <summary>
        /// 单位  
        /// </summary>
        public string FUnitID { get; set; }
        /// <summary>
        /// BOM版本
        /// </summary>
        public string FBomId { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        public string FStockID { get; set; }
        /// <summary>
        /// 仓位
        /// </summary>
        public string FStockLocId { get; set; }
        /// <summary>
        /// 委外订单编号
        /// </summary>
        public string FSubReqBillNo { get; set; }
        /// <summary>
        /// 委外订单内码
        /// </summary>
        public string FSubReqId { get; set; }
        /// <summary>
        /// 委外订单行号
        /// </summary>
        public string FSubReqEntrySeq { get; set; }
        /// <summary>
        /// 委外订单分录内码
        /// </summary>
        public string FSubReqEntryId { get; set; }
        /// <summary>
        /// 辅助属性
        /// </summary>
        public string FAuxPropId { get; set; }
        /// <summary>
        /// 货主类型
        /// </summary>
        public string FOwnerTypeId { get; set; }
        /// <summary>
        /// 系统源单行号  FSrcEntrySeq 
        /// </summary>
        public string FSeq { get; set; }
        /// <summary>
        /// 内码
        /// </summary>
        public string FEntryID { get; set; }
        /// <summary>
        /// 基本单位
        /// </summary>
        public string FBaseUnitId { get; set; }
        ///// <summary>
        ///// 库存单位
        ///// </summary>
        ////public string FStockUnitId { get; set; }
        ///// <summary>
        ///// 辅助单位
        ///// </summary>
        ////public string FSecUnitId { get; set; }
        /// <summary>
        /// 计划跟踪号
        /// </summary>
        public string FMtoNo { get; set; }
        /// <summary>
        /// 项目编号
        /// </summary>
        public string FProjectNo { get; set; }
        /// <summary>
        /// 库存状态
        /// </summary>
        public string FStockStatusId { get; set; }
        ///// <summary>
        ///// 生产日期 
        ///// </summary>
        ////public string FProduceDate { get; set; }
        ///// <summary>
        ///// 有效期至 
        ///// </summary>
        ////public string FExpiryDate { get; set; }
        /// <summary>
        /// 工序号 
        /// </summary>
        public int FOperID { get; set; } = 10;
        /// <summary>
        /// 作业 
        /// </summary>
        public string FProcessID { get; set; }
        /// <summary>
        /// 批号 
        /// </summary>
        public string FLOT { get; set; }
        /// <summary>
        /// 产品货主类型 
        /// </summary>
        public string FParentOwnerTypeId { get; set; }
        /// <summary>
        /// 产品货主 
        /// </summary>
        public string FParentOwnerId { get; set; }
        /// <summary>
        /// 序列号单位 
        /// </summary>
        //public string FSNUnitID { get; set; }
        /// <summary>
        /// 预留类型 
        /// </summary>
        public string FReserveType { get; set; }
        /// <summary>
        /// 结算组织 
        /// </summary>
        public string FSettleOrgId { get; set; }
        /// <summary>
        /// 需求来源 
        /// </summary>
        public string FReqSrc { get; set; }
        /// <summary>
        /// 需求单据 
        /// </summary>
        //public string FReqBillNo { get; set; }
        /// <summary>
        /// 需求单据内码 
        /// </summary>
        //public string FReqBillId { get; set; }
        /// <summary>
        /// 需求单据行号 
        /// </summary>
        //public string FReqEntrySeq { get; set; }
        /// <summary>
        /// 需求单据分录内码 
        /// </summary>
        //public string FReqEntryId { get; set; }
        /// <summary>
        /// 委外退料检验 
        /// </summary>
        //public string FCheckSubRtnMtrl { get; set; }
        /// <summary>
        /// 库存单位实发数量 
        /// </summary>
        //public decimal FStockActualQty { get; set; }
        /// <summary>
        /// ERP单据编号
        /// </summary>
        public string FBillNo { get; set; }
        /// <summary>
        /// 在制品数
        /// </summary>
        public decimal FWipQty { get; set; }
        /// <summary>
        /// 收料组织
        /// </summary>
        public string FSupplyOrg { get; set; }
        /// <summary>
        /// 委外订单类型
        /// </summary>
        public string FSubReqType { get; set; }
        /// <summary>
        /// 主料编码
        /// </summary>
        public string FMainMaterial { get; set; }
        /// <summary>
        /// 子项物料编码
        /// </summary>
        public string FMaterial { get; set; }
    }
}
