}                                       //end PurchaseOrderItem()

        public PurchaseOrderItem(net.autotask.webservices.PurchaseOrderItem entity) : base(entity)
        {
            this.ContractID           = long.Parse(entity.ContractID.ToString());
            this.CostID               = entity.CostID == null ? default(int?) : int.Parse(entity.CostID.ToString());
            this.EstimatedArrivalDate = entity.EstimatedArrivalDate == null ? default(DateTime?) : DateTime.Parse(entity.EstimatedArrivalDate.ToString());
            this.InventoryLocationID  = int.Parse(entity.InventoryLocationID.ToString());
            this.Memo         = entity.Memo == null ? default(string) : entity.Memo.ToString();
            this.OrderID      = int.Parse(entity.OrderID.ToString());
            this.ProductID    = int.Parse(entity.ProductID.ToString());
            this.ProjectID    = long.Parse(entity.ProjectID.ToString());
            this.Quantity     = int.Parse(entity.Quantity.ToString());
            this.SalesOrderID = long.Parse(entity.SalesOrderID.ToString());
            this.TicketID     = long.Parse(entity.TicketID.ToString());
            this.UnitCost     = double.Parse(entity.UnitCost.ToString());
        } //end PurchaseOrderItem(net.autotask.webservices.PurchaseOrderItem entity)
Exemple #2
0
        }                                       //end PurchaseOrderItem()

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