コード例 #1
0
ファイル: ProjectCost.cs プロジェクト: Bosuu/AutotaskNET
 public ProjectCost() : base() { } //end ProjectCost()
 public ProjectCost(net.autotask.webservices.ProjectCost entity) : base(entity)
 {
     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.ProjectID = int.Parse(entity.ProductID.ToString());
     this.UnitQuantity = double.Parse(entity.UnitQuantity.ToString());
     this.AllocationCodeID = entity.AllocationCodeID == null ? default(long?) : long.Parse(entity.AllocationCodeID.ToString());
     this.BillableAmount = double.Parse(entity.BillableAmount.ToString());
     this.BillableToAccount = entity.BillableAmount == null ? default(bool?) : bool.Parse(entity.BillableAmount.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.EstimatedCost = double.Parse(entity.EstimatedCost.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 ProjectCost(net.autotask.webservices.ProjectCost entity)
コード例 #2
0
        }                                 //end ProjectCost()

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