コード例 #1
0
ファイル: TicketCost.cs プロジェクト: Bosuu/AutotaskNET
        }                                //end TicketCost()

        public TicketCost(net.autotask.webservices.TicketCost entity) : base(entity)
        {
            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.BusinessDivisionSubdivisionID  = entity.BusinessDivisionSubdivisionID == null ? default(int?) : int.Parse(entity.BusinessDivisionSubdivisionID.ToString());
            this.ContractServiceBundleID        = long.Parse(entity.ContractServiceBundleID.ToString());
            this.ContractServiceID              = long.Parse(entity.ContractServiceID.ToString());
            this.CostType                       = int.Parse(entity.CostType.ToString());
            this.CreateDate                     = entity.CreateDate == null ? default(DateTime?) : DateTime.Parse(entity.CreateDate.ToString());
            this.CreatorResourceID              = long.Parse(entity.CreatorResourceID.ToString());
            this.DatePurchased                  = DateTime.Parse(entity.DatePurchased.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.Name                   = entity.Name == null ? default(string) : entity.Name.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.TicketID               = long.Parse(entity.TicketID.ToString());
            this.UnitCost               = double.Parse(entity.UnitCost.ToString());
            this.UnitPrice              = double.Parse(entity.UnitPrice.ToString());
            this.UnitQuantity           = double.Parse(entity.UnitQuantity.ToString());
        } //end TicketCost(net.autotask.webservices.TicketCost entity)
コード例 #2
0
        }                                //end TicketCost()

        public TicketCost(net.autotask.webservices.TicketCost entity) : base(entity)
        {
            //entity.AccountName == null ? default(string) : entity.AccountName.ToString();
            ProductID = entity.ProductID == null ? default : long.Parse(entity.ProductID.ToString());

                        Billed = entity.Billed == null ? default : bool.Parse(entity.Billed.ToString());
                                 InternalPurchaseOrderNumber = entity.InternalPurchaseOrderNumber?.ToString();
                                 id = entity.id;
        } //end TicketCost(net.autotask.webservices.TicketCost entity)
コード例 #3
0
        }                                //end TicketCost()

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