using System;
using System.Collections.Generic;
using SqlSugar;

namespace FactorySystemModel.SqlSugarModel
{
    ///<summary>
    ///协同表
    ///</summary>
    [SugarTable("TFS_FTeamwork")]
    public partial class TFS_FTeamwork
    {
        public TFS_FTeamwork()
        {
            FAddUserName = null;
            FTaskList = new List<TFS_Task>();
        }
        /// <summary>
        /// Desc:唯一标识
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int FID { get; set; }

        /// <summary>
        /// Desc:销售号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FSaleCode { get; set; }

        /// <summary>
        /// Desc:视图类型（查看、导出）
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FViewType { get; set; }

        /// <summary>
        /// Desc:包材ID
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int? FPackID { get; set; }

        /// <summary>
        /// Desc:包材Code---“新增销售号描述”-后面@或者□前面的内容为包材号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPackCode { get; set; }

        /// <summary>
        /// Desc:试验号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FTestCode { get; set; }

        /// <summary>
        /// Desc:配方内码
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FVersionCode { get; set; }

        /// <summary>
        /// Desc:MDN编码
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMdmCode { get; set; }

        /// <summary>
        /// Desc:配方编号
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int FFormulaID { get; set; }

        /// <summary>
        /// Desc:配方编号
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public string FFormulaName { get; set; }

        /// <summary>
        /// Desc:配方试验号
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public string FFormulaTestCode { get; set; }

        /// <summary>
        /// Desc:一级物料编号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMaterialFormulaIDs { get; set; }

        /// <summary>
        /// Desc:一级半成品编号
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public string FMaterialHalfIDs { get; set; }

        /// <summary>
        /// Desc:计量单位：TDataCode.FType=1
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FWeightUnit { get; set; }

        /// <summary>
        /// Desc:物料组：TDataCode.FType=2
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMaterialGroup { get; set; }

        /// <summary>
        /// Desc:物料类型
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMaterialType { get; set; }

        /// <summary>
        /// Desc:Bom下载状态
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int FBomState { get; set; }

        /// <summary>
        /// Desc:Bom清单数据（备份）
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FBomJson { get; set; }

        /// <summary>
        /// Desc:进度
        /// Default:0%
        /// Nullable:False
        /// </summary>           
        public string FProgress { get; set; }

        /// <summary>
        /// Desc:删除状态：1删除，0未删除
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public int FDeleted { get; set; }

        /// <summary>
        /// Desc:工厂编号
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int FCreateFactoryID { get; set; }

        /// <summary>
        /// Desc:工厂代码
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public string FCreateFactoryCode { get; set; }

        /// <summary>
        /// Desc:工厂模式
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int FCreateFactoryType { get; set; }

        /// <summary>
        /// Desc:工厂编号
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int FProdFactoryID { get; set; }

        /// <summary>
        /// Desc:工厂代码
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public string FProdFactoryCode { get; set; }

        /// <summary>
        /// Desc:添加人
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int FAddUser { get; set; }

        /// <summary>
        /// 添加人（仅插入的时候不操作此列）
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string FAddUserName { get; set; }

        /// <summary>
        /// 当前事项
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<TFS_Task> FTaskList { get; set; }

        /// <summary>
        /// Desc:添加时间
        /// Default:DateTime.Now
        /// Nullable:False
        /// </summary>           
        public DateTime FAddDate { get; set; }

        /// <summary>
        /// Desc:修改人
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int FEditUser { get; set; }

        /// <summary>
        /// Desc:修改时间
        /// Default:DateTime.Now
        /// Nullable:False
        /// </summary>           
        public DateTime FEditDate { get; set; }

        /// <summary>
        /// Desc:状态：1已增，0暂存
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int FState { get; set; }

        /// <summary>
        /// Desc:BOM配方层级梳理
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public string FBomFormula { get; set; }
    }
}
