Пример #1
0
        }                             //end Product()

        public Product(net.autotask.webservices.Product entity) : base(entity)
        {
            id              = entity.id;
            Name            = entity.Name?.ToString();
            Description     = entity.Description?.ToString();
            SKU             = entity.SKU?.ToString();
            ProductCategory = entity.ProductCategory == null ? default(int?) : int.Parse(entity.ProductCategory.ToString());
        } //end Product(net.autotask.webservices.Product entity)
Пример #2
0
 public Product() : base() { } //end Product()
 public Product(net.autotask.webservices.Product entity) : base(entity)
 {
     this.Active = bool.Parse(entity.Active.ToString());
     this.Name= entity.Name == null ? default(string) : entity.Name.ToString();
     this.ProductAllocationCodeID = int.Parse(entity.ProductAllocationCodeID.ToString());
     this.Serialized = bool.Parse(entity.Serialized.ToString());
     this.CostAllocationCodeID = entity.CostAllocationCodeID == null ? default(int?) : int.Parse(entity.CostAllocationCodeID.ToString();
     this.DefaultVendorID = entity.DefaultVendorID == null ? default(int?) : int.Parse(entity.DefaultVendorID.ToString());
     this.Description = entity.Description == null ? default(string) : entity.Description.ToString();
     this.DoesNotRequireProcurement = entity.DoesNotRequireProcurement == null ? default(bool?) : bool.Parse(entity.DoesNotRequireProcurement.ToString());
     this.ExternalProductID = entity.ExternalProductID == null ? default(string) : entity.ExternalProductID.ToString();
     this.InternalProductID = entity.InternalProductID == null ? default(string) : entity.InternalProductID.ToString();
     this.Link = entity.Link == null ? default(string) : entity.Link.ToString();
     this.ManufacturerName = entity.ManufacturerName == null ? default(string) : entity.ManufacturerName.ToString();
     this.ManufacturerProductName = entity.ManufacturerProductName == null ? default(string) : entity.ManufacturerProductName.ToString();
     this.MarkupRate = double.Parse(entity.MarkupRate.ToString());
     this.MSRP = double.Parse(entity.MSRP.ToString()) ;
     this.PeriodType = entity.PeriodType == null ? default(string) : entity.PeriodType.ToString();
     this.ProductCategory = entity.ProductCategory == null ? default(int?) : int.Parse(entity.ProductCategory.ToString());
     this.SKU = entity.SKU == null ? default(string) : entity.SKU.ToString();
     this.UnitCost = double.Parse(entity.UnitCost.ToString());
     this.UnitPrice = double.Parse(entity.UnitPrice.ToString());
     this.VendorProductNumber = entity.VendorProductNumber == null ? default(string) : entity.VendorProductNumber.ToString();
 } //end Product(net.autotask.webservices.Product entity)
Пример #3
0
        }                             //end Product()

        public Product(net.autotask.webservices.Product entity) : base(entity)
        {
        } //end Product(net.autotask.webservices.Product entity)