using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BO.BO.Dtos
{
  public static class ClientGoodsSetDtoExt
  {
    public static T CreateChild<T>(this ClientGoodsSetDto dto) where T:ClientGoodsSetDto,new()
    {
      var t=new T();
      t.ApplyClient = dto.ApplyClient;
      t.ApplyClient = dto.ApplyClient;
      t.Name = dto.Name;
      t.Goods_ID = dto.Goods_ID;
      t.Goods_Name = dto.Goods_Name;
      t.Goods_Code = dto.Goods_Code;
      t.Goods_Spec = dto.Goods_Spec;
      t.Goods_MainUnitRatio = dto.Goods_MainUnitRatio;
      t.Goods_AllowableError = dto.Goods_AllowableError;
      return t;
    }
  }
}
