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

namespace FactorySystemModel.SqlSugarModel
{
    ///<summary>
    ///物料路线表
    ///</summary>
    [SugarTable("TFS_FMaterialTeamwork")]
    public partial class TFS_FMaterialTeamwork
    {
        public TFS_FMaterialTeamwork()
        {
            FAddUserName = null;
            FTaskList = new List<TFS_FMaterialTask>();
        }

        /// <summary>
        /// Desc:唯一标识
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int FID { get; set; }

        /// <summary>
        /// Desc:物料描述
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMaterialName { get; set; }

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

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

        /// <summary>
        /// Desc:物料类型（产品分类）：TBasicCode.FType=32
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMaterialType { get; set; }

        /// <summary>
        /// Desc:路线类型：1新增，2修改
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public int FTeamworkType { get; set; }

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

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

        /// <summary>
        /// Desc:添加人
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int FAddUser { 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:0
        /// Nullable:False
        /// </summary>           
        public int FDeleted { get; set; }

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

        /// <summary>
        /// 当前事项
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<TFS_FMaterialTask> FTaskList { 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:是否原料：1是，0否
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public int FIsRaw { 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:物料组：TDataCode.FType=2
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public string FMaterialGroup { get; set; }

        /// <summary>
        /// Desc:计量单位
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public string FWeightUnit { get; set; }
    }
}
