public static TargetPlanDetail ToVModel(this B_TargetPlanDetail value) { TargetPlanDetail result = new TargetPlanDetail { ID = value.ID, SystemID = value.SystemID, IsDeleted = value.IsDeleted, FinMonth = value.FinMonth, FinYear = value.FinYear, CreateTime = value.CreateTime, CreatorName = value.CreatorName, ModifierName = value.ModifierName, ModifyTime = value.ModifyTime, TargetID = value.TargetID, CompanyID = value.CompanyID, TargetPlanID = value.TargetPlanID, Target = value.Target, Versionend = value.Versionend, VersionStart = value.VersionStart, CompanyName = StaticResource.Instance.GetCompanyModel(value.CompanyID).CompanyName, OpeningTime = StaticResource.Instance.GetCompanyModel(value.CompanyID).OpeningTime, }; return(result); }
public static B_TargetPlanDetail ToBModel(this A_TargetPlanDetail value) { B_TargetPlanDetail result = new B_TargetPlanDetail { ID = value.ID, SystemID = value.SystemID, IsDeleted = value.IsDeleted, FinMonth = value.FinMonth, FinYear = value.FinYear, CreateTime = value.CreateTime, CreatorName = value.CreatorName, ModifierName = value.ModifierName, ModifyTime = value.ModifyTime, TargetID = value.TargetID, CompanyID = value.CompanyID, TargetPlanID = value.TargetPlanID, Target = value.Target, Versionend = value.Versionend, VersionStart = value.VersionStart, }; return(result); }