public ContractCost() : base() { } //end ContractCost() public ContractCost(net.autotask.webservices.ContractCost entity) : base(entity) { this.ContractID = long.Parse(entity.ContractID.ToString()); this.CostType = int.Parse(entity.CostType.ToString()); this.DatePurchased = DateTime.Parse(entity.DatePurchased.ToString()); this.Name = entity.Name == null ? default(string) : entity.Name.ToString(); this.UnitQuantity = double.Parse(entity.UnitQuantity.ToString()); this.AllocationCodeID = long.Parse(entity.AllocationCodeID.ToString()); this.BillableAmount = double.Parse(entity.BillableAmount.ToString()); this.BillableToAccount = entity.BillableToAccount == null ? default(bool?) : bool.Parse(entity.BillableToAccount.ToString()); this.Billed = entity.Billed == null ? default(bool?) : bool.Parse(entity.Billed.ToString()); this.ContractServiceBundleID = long.Parse(entity.ContractServiceBundleID.ToString()); this.ContractServiceID = long.Parse(entity.ContractServiceID.ToString()); this.CreateDate = entity.CreateDate == null ? default(DateTime?) : DateTime.Parse(entity.CreateDate.ToString())); this.CreatorResourceID = long.Parse(entity.CreatorResourceID.ToString()); this.Description = entity.Description == null ? default(string) : entity.Description.ToString(); this.ExtendedCost = double.Parse(entity.ExtendedCost.ToString()); this.InternalCurrencyBillableAmount = double.Parse(entity.InternalCurrencyBillableAmount.ToString()); this.InternalCurrencyUnitPrice = double.Parse(entity.InternalCurrencyUnitPrice.ToString()); this.InternalPurchaseOrderNumber = entity.InternalPurchaseOrderNumber == null ? default(string) : entity.InternalPurchaseOrderNumber.ToString(); this.ProductID = long.Parse(entity.ProductID.ToString()); this.PurchaseOrderNumber = entity.PurchaseOrderNumber == null ? default(string) : entity.PurchaseOrderNumber.ToString(); this.Status = long.Parse(entity.Status.ToString()); this.StatusLastModifiedBy = long.Parse(entity.StatusLastModifiedBy.ToString()); this.StatusLastModifiedDate = entity.StatusLastModifiedDate == null ? default(DateTime?) : DateTime.Parse(entity.StatusLastModifiedDate.ToString()); this.UnitCost = double.Parse(entity.UnitCost.ToString()); this.UnitPrice = double.Parse(entity.UnitPrice.ToString()); } //end ContractCost(net.autotask.webservices.ContractCost entity)
} //end ContractCost() public ContractCost(net.autotask.webservices.ContractCost entity) : base(entity) { } //end ContractCost(net.autotask.webservices.ContractCost entity)