Ejemplo n.º 1
0
 public static void ConvertToCustom(Product product, CustomProduct custom)
 {
     custom.Barcode      = product.Barcode;
     custom.ProductCode  = product.ProductCode;
     custom.ProductName  = product.ProductName;
     custom.SeriesId     = product.SeriesId;
     custom.DataSheet    = product.DataSheet;
     custom.InstallGuide = product.InstallGuide;
     custom.PhotoMeter   = product.PhotoMeter;
     custom.PhotoPath    = product.PhotoPath;
     custom.Note         = product.Note;
     custom.Card3d       = product.Card3d;
     custom.CreateDate   = product.CreateDate;
     custom.CreateBy     = product.CreateBy;
     custom.ModifyDate   = product.ModifyDate;
     custom.ModifyBy     = product.ModifyBy;
     custom.Price        = product.Price;
     custom.Quantity     = product.Quantity;
     custom.Color        = product.Color;
     custom.Category     = product.Category;
     custom.Productline  = product.Productline;
     custom.Series       = product.Series;
     custom.Standard     = product.Standard;
     custom.ClassProduct = product.ClassProduct;
     custom.ClassSafety  = product.ClassSafety;
 }
Ejemplo n.º 2
0
 public static void ConvertToProduct(CustomProduct cusProduct, Product product)
 {
     product.Barcode      = cusProduct.Barcode;
     product.ProductCode  = cusProduct.ProductCode;
     product.ProductName  = cusProduct.ProductName;
     product.SeriesId     = cusProduct.SeriesId;
     product.DataSheet    = cusProduct.DataSheet;
     product.InstallGuide = cusProduct.InstallGuide;
     product.PhotoMeter   = cusProduct.PhotoMeter;
     product.PhotoPath    = cusProduct.PhotoPath;
     product.Note         = cusProduct.Note;
     product.Card3d       = cusProduct.Card3d;
     product.CreateDate   = cusProduct.CreateDate;
     product.CreateBy     = cusProduct.CreateBy;
     product.ModifyDate   = cusProduct.ModifyDate;
     product.ModifyBy     = cusProduct.ModifyBy;
     product.Price        = cusProduct.Price;
     product.Quantity     = cusProduct.Quantity;
     product.Color        = cusProduct.Color;
     product.Category     = cusProduct.Category;
     product.Productline  = cusProduct.Productline;
     product.Series       = cusProduct.Series;
     product.Standard     = cusProduct.Standard;
     product.ClassProduct = cusProduct.ClassProduct;
     product.ClassSafety  = cusProduct.ClassSafety;
 }