using System;
using SqlSugar;

namespace FactorySystemModel.SqlSugarModel
{
    ///<summary>
    ///物料视图表
    ///</summary>
    [SugarTable("TFS_ViewMaterial")]
    public partial class TFS_ViewMaterial
    {
        public TFS_ViewMaterial()
        {
            FMaterialID = FTeamID = -1;
            FLevel = 1;
        }

        /// <summary>
        /// 物料号
        /// </summary>           
        [SugarColumn(IsIgnore = true)]
        public string FCode { get; set; }

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

        /// <summary>
        /// Desc:物料表ID
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int FMaterialID { get; set; }

        /// <summary>
        /// Desc:协同表ID
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int FTeamID { get; set; }

        /// <summary>
        /// Desc:层级（Bom解析第一级）
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int FLevel { get; set; }

        /// <summary>
        /// Desc:工厂ID
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FFactoryCode { get; set; }

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

        /// <summary>
        /// Desc:视图类型：TBasicCode.FType=30
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int FViewType { get; set; }

        /// <summary>
        /// Desc:组编号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FGroupCode { get; set; }

        /// <summary>
        /// Desc:删除状态：1删除，0未删除
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public int FDeleted { 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:组织级别.行业领域
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FOrganizeIndustryField { get; set; }

        /// <summary>
        /// Desc:组织级别.物料类型
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FOrganizeMaterialType { get; set; }

        /// <summary>
        /// Desc:组织级别.工厂
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FOrganizeFactory { get; set; }

        /// <summary>
        /// Desc:组织级别.库存地点
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FOrganizeInventoryLocation { get; set; }

        /// <summary>
        /// Desc:组织级别.销售组织
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FOrganizeSalesOrganize { get; set; }

        /// <summary>
        /// Desc:组织级别.分销渠道
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FOrganizeDistributionChannel { get; set; }

        /// <summary>
        /// Desc:基本视图.物料编号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FBaseMaterialCode { get; set; }

        /// <summary>
        /// Desc:基本视图.试验号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FBaseTestCode { get; set; }

        /// <summary>
        /// Desc:基本视图.基本计量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FBaseBasicMeter { get; set; }

        /// <summary>
        /// Desc:基本视图.物料描述
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FBaseMaterialDesc { get; set; }

        /// <summary>
        /// Desc:基本视图.物料组
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FBaseMaterialGroup { get; set; }

        /// <summary>
        /// Desc:基本视图.大小/量纲(规格)
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FBaseSpecification { get; set; }

        /// <summary>
        /// Desc:基本视图.物料长文本
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FBaseMaterialText { get; set; }

        /// <summary>
        /// Desc:基本视图.标识符:固体/液体
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FBaseIdentifier { get; set; }

        /// <summary>
        /// Desc:基本视图.体积单位
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FBaseVolumeUnit { get; set; }

        /// <summary>
        /// Desc:基本视图.毛重
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FBaseGrossWeight { get; set; }

        /// <summary>
        /// Desc:基本视图.净重
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FBaseNetWeight { get; set; }

        /// <summary>
        /// Desc:基本视图.重量单位
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FBaseWeightUnit { get; set; }

        /// <summary>
        /// Desc:基本视图.业务量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FBaseBusinessVolume { get; set; }

        /// <summary>
        /// Desc:基本视图.fame号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FBaseFameCode { get; set; }

        /// <summary>
        /// Desc:采购视图.采购组
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPurchaseGroup { get; set; }

        /// <summary>
        /// Desc:采购视图.采购单位
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPurchaseCompany { get; set; }

        /// <summary>
        /// Desc:采购视图.采购单位数量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPurchaseCompanyCount { get; set; }

        /// <summary>
        /// Desc:采购视图.基本单位数量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPurchaseBaseCompanyCount { get; set; }

        /// <summary>
        /// Desc:采购视图.采购价值码
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPurchaseValueCode { get; set; }

        /// <summary>
        /// Desc:采购视图.工厂特定状态
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPurchaseFactorySpecificStatus { get; set; }

        /// <summary>
        /// Desc:采购视图.自动采购订单
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPurchaseAutoOrder { get; set; }

        /// <summary>
        /// Desc:采购视图.货源清单
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPurchaseGoodsSource { get; set; }

        /// <summary>
        /// Desc:分类视图.类别种类
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FTypeCategoryType { get; set; }

        /// <summary>
        /// Desc:分类视图.类别
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FTypeType { get; set; }

        /// <summary>
        /// Desc:销售视图.交货工厂
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FSaleDeliveryFactory { get; set; }

        /// <summary>
        /// Desc:销售视图.税金分类
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FSaleTaxType { get; set; }

        /// <summary>
        /// Desc:销售视图.物料统计组
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FSaleMaterialStatisticsGroup { get; set; }

        /// <summary>
        /// Desc:销售视图.销售单位
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FSaleSalesCompany { get; set; }

        /// <summary>
        /// Desc:销售视图.基本单位数量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FSaleBaseCompanyCount { get; set; }

        /// <summary>
        /// Desc:销售视图.销售单位数量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FSaleSalesCompanyCount { get; set; }

        /// <summary>
        /// Desc:销售视图.科目设置组
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FSaleAccountSettingGroup { get; set; }

        /// <summary>
        /// Desc:销售视图.普通项目类别组
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FSaleGeneralProjectCategoryGroup { get; set; }

        /// <summary>
        /// Desc:销售视图.项目类别组
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FSaleProjectCategoryGroup { get; set; }

        /// <summary>
        /// Desc:销售视图.可用性检查
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FSaleAvailabilityCheck { get; set; }

        /// <summary>
        /// Desc:销售视图.装载组
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FSaleOutfitGroup { get; set; }

        /// <summary>
        /// Desc:销售视图.旧物料号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FSaleOldMaterialCode { get; set; }

        /// <summary>
        /// Desc:仓储视图.存储条件
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FStorageConditions { get; set; }

        /// <summary>
        /// Desc:仓储视图.批次管理
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FStorageBatchManage { get; set; }

        /// <summary>
        /// Desc:仓储视图.最大存储期间
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FStorageMaxStoragePeriod { get; set; }

        /// <summary>
        /// Desc:仓储视图.时间单位
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FStorageTimeUnit { get; set; }

        /// <summary>
        /// Desc:仓储视图.最小剩余货架寿命
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FStorageMinSurplusShelfLife { get; set; }

        /// <summary>
        /// Desc:仓储视图.总货架寿命
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FStorageTotalShelfLife { get; set; }

        /// <summary>
        /// Desc:仓储视图.SLED期间标识
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FStorageSLEDCode { get; set; }

        /// <summary>
        /// Desc:MRP1.MRP类型
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1Type { get; set; }

        /// <summary>
        /// Desc:MRP1.MRP控制者
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1Controller { get; set; }

        /// <summary>
        /// Desc:MRP1.批量大小
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1BatchSize { get; set; }

        /// <summary>
        /// Desc:MRP1.最小批量大小
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1MinBatchSize { get; set; }

        /// <summary>
        /// Desc:MRP1.最大批量大小
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1MaxBatchSize { get; set; }

        /// <summary>
        /// Desc:MRP1.MRP组
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1Group { get; set; }

        /// <summary>
        /// Desc:MRP1. 舍入值
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1RoundValue { get; set; }

        /// <summary>
        /// Desc:MRP1.产品分类
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1ProductType { get; set; }

        /// <summary>
        /// Desc:MRP1.客户代码
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1CustomerCode { get; set; }

        /// <summary>
        /// Desc:MRP1.大小料
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1SizeMaterial { get; set; }

        /// <summary>
        /// Desc:MRP1. 小料标准(小于)
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1SmallMaterialStandard { get; set; }

        /// <summary>
        /// Desc:MRP2.采购类型
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP2PurchaseType { get; set; }

        /// <summary>
        /// Desc:MRP2.计划边际码
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP2PlanMarginalCode { get; set; }

        /// <summary>
        /// Desc:MRP2.特殊采购类
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP2SpecialProcurement { get; set; }

        /// <summary>
        /// Desc:MRP2.反冲
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP2Recoil { get; set; }

        /// <summary>
        /// Desc:MRP2.自制生产时间
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP2SelfProductTime { get; set; }

        /// <summary>
        /// Desc:MRP2.计划交货时间
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP2PlannDeliveryTime { get; set; }

        /// <summary>
        /// Desc:MRP2.收货处理时间
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP2ReceiveProcessTime { get; set; }

        /// <summary>
        /// Desc:MRP2.安全库存
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP2SafeStock { get; set; }

        /// <summary>
        /// Desc:MRP2.发货库存地点
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP2DeliveryInventoryPlace { get; set; }

        /// <summary>
        /// Desc:MRP2.外部采购仓储地点
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP2ExternalStoragePlace { get; set; }

        /// <summary>
        /// Desc:MRP3.策略组
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP3PolicyGroup { get; set; }

        /// <summary>
        /// Desc:MRP3.消耗模式
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP3ConsumePattern { get; set; }

        /// <summary>
        /// Desc:MRP3.向前消耗期间
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP3ForwardConsumePeriod { get; set; }

        /// <summary>
        /// Desc:MRP3.逆向消耗期
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP3ReverseConsumePeriod { get; set; }

        /// <summary>
        /// Desc:MRP3.混合MRP
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP3BlendMRP { get; set; }

        /// <summary>
        /// Desc:MRP3.可用性检查
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP3AvailabilityCheck { get; set; }

        /// <summary>
        /// Desc:MRP4.单独或集中
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP4AloneOrFocus { get; set; }

        /// <summary>
        /// Desc:工作计划视图.生产计划参数文件
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPlanProductPlanParam { get; set; }

        /// <summary>
        /// Desc:工作计划视图.无限制过量交货
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPlanUnlimitedOverDelivery { get; set; }

        /// <summary>
        /// Desc:工作计划视图.不足交货允差
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPlanUnderDeliveryTolerance { get; set; }

        /// <summary>
        /// Desc:工作计划视图.过度交货允差
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPlanOverDeliveryTolerance { get; set; }

        /// <summary>
        /// Desc:工作计划视图.发货单位
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPlanDeliverCompany { get; set; }

        /// <summary>
        /// Desc:工作计划视图.发货单位数量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPlanDeliverCompanyCount { get; set; }

        /// <summary>
        /// Desc:工作计划视图.基本单位数量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FPlanBaseCompanyCount { get; set; }

        /// <summary>
        /// Desc:质检视图.检验类型1
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FQualityType1 { get; set; }

        /// <summary>
        /// Desc:质检视图.检验类型2
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FQualityType2 { get; set; }

        /// <summary>
        /// Desc:质检视图.检验类型3
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FQualityType3 { get; set; }

        /// <summary>
        /// Desc:质检视图.检验类型4
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FQualityType4 { get; set; }

        /// <summary>
        /// Desc:质检视图.检验类型5
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FQualityType5 { get; set; }

        /// <summary>
        /// Desc:质检视图.检验类型6
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FQualityType6 { get; set; }

        /// <summary>
        /// Desc:会计视图.价格控制
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FAccountPriceControl { get; set; }

        /// <summary>
        /// Desc:会计视图.价格确定
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FAccountPriceDetermine { get; set; }

        /// <summary>
        /// Desc:会计视图.价格单位
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FAccountPriceUnit { get; set; }

        /// <summary>
        /// Desc:会计视图.评估分类	
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FAccountAccessType { get; set; }

        /// <summary>
        /// Desc:会计视图.VC: 销售订单库存
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FAccountSaleOrderInventory { get; set; }

        /// <summary>
        /// Desc:会计视图.标准价格
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FAccountStandardPrice { get; set; }

        /// <summary>
        /// Desc:会计视图.利润中心
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FAccountProfitCenter { get; set; }

        /// <summary>
        /// Desc:会计视图.成本核算批量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FAccountCostAccountBatch { get; set; }

        /// <summary>
        /// Desc:额外增加字段：配方视图、组装bom视图的基本数量对应PLM配方下载BOM中用量
        /// </summary>           
        public string FExtraQuantity { get; set; }

        /// <summary>
        /// 物料ID（仅下载BOM使用）
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int FBomMaterialID { get; set; }

        /// <summary>
        /// Desc:MRP1.再订货点
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1ReorderLocation { get; set; }

        /// <summary>
        /// Desc:MRP1.固定批量大小
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1RegularBatchSize { get; set; }

        /// <summary>
        /// Desc:MRP1.最大库存水平
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1MaxInventorySize { get; set; }

        /// <summary>
        /// Desc:MRP1.不计算缺料
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1IgnoreLack { get; set; }

        /// <summary>
        /// Desc:MRP1.压膜
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1laminated { get; set; }

        /// <summary>
        /// Desc:MRP1.安全库存带小样
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1SafeStock { get; set; }

        /// <summary>
        /// Desc:MRP1.需求计算不考虑前置物料库存
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP1RequireCount { get; set; }

        /// <summary>
        /// Desc:MRP4.非连续标识
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP4DiscontinuousIidentifier { get; set; }

        /// <summary>
        /// Desc:MRP4.生效期
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP4EffectivePeriod { get; set; }

        /// <summary>
        /// Desc:MRP4.后续的物料
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FMRP4FollowMaterial { get; set; }

        /// <summary>
        /// Desc:协同类型：0协同、1物料新增、2配方变更
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public int FTeamType { get; set; }

        /// <summary>
        /// Desc:配方变更路线ID
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int FHalfMaterialTeamID { get; set; }

        /// <summary>
        /// Desc:物料修改路线ID
        /// Default:-1
        /// Nullable:False
        /// </summary>           
        public int FMdfMaterialTeamID { get; set; }
    }
}
