public ExpenseItem() : base() { } //end ExpenseItem() public ExpenseItem(net.autotask.webservices.ExpenseItem entity) : base(entity) { this.BillableToAccount = bool.Parse(entity.BillableToAccount.ToString()); this.Description = entity.Description == null ? default(string) : entity.Description.ToString(); this.ExpenseAmount = double.Parse(entity.ExpenseAmount.ToString()); this.ExpenseCategory = int.Parse(entity.ExpenseCategory.ToString()); this.ExpenseDate = DateTime.Parse(entity.ExpenseDate.ToString()); this.ExpenseReportID = int.Parse(entity.ExpenseReportID.ToString()); this.HaveReceipt = bool.Parse(entity.HaveReceipt.ToString()); this.PaymentType = int.Parse(entity.PaymentType.ToString()); this.AccountID = entity.AccountID == null ? default(int?) : int.Parse(entity.AccountID.ToString()); this.Destination = entity.Description == null ? default(string) : entity.Description.ToString(); this.EntertainmentLocation = entity.EntertainmentLocation == null ? default(string) : entity.EntertainmentLocation.ToString(); this.ExpenseCurrencyID = entity.ExpenseCurrencyID == null ? default(int?) : int.Parse(entity.ExpenseCurrencyID.ToString()); this.GLCode = entity.GLCode == null ? default(string) : entity.GLCode.ToString(); this.Miles = double.Parse(entity.Miles.ToString()); this.OdometerEnd = double.Parse(entity.OdometerEnd.ToString()); this.OdometerStart = double.Parse(entity.OdometerStart.ToString()); this.Origin = entity.Origin == null ? default(string) : entity.Origin.ToString(); this.ProjectID = entity.ProjectID == null ? default(int?) : int.Parse(entity.ProjectID.ToString()); this.PurchaseOrderNumber = entity.PurchaseOrderNumber == null ? default(string) : entity.PurchaseOrderNumber.ToString(); this.ReceiptAmount = double.Parse(entity.ReceiptAmount.ToString()); this.Reimbursable = entity.Reimbursable == null ? default(bool?) : bool.Parse(entity.Reimbursable.ToString(); this.ReimbursementAmount = double.Parse(entity.ReimbursementAmount.ToString()); this.ReimbursementCurrencyReimbursementAmount = double.Parse(entity.ReimbursementCurrencyReimbursementAmount.ToString()); this.Rejected = entity.Rejected == null ? default(bool?) : bool.Parse(entity.Rejected.ToString()); this.TaskID = entity.TaskID == null ? default(int?) : int.Parse(entity.TaskID.ToString()); this.TicketID = entity.TicketID == null ? default(int?) : int.Parse(entity.TicketID.ToString()); this.WorkType = entity.WorkType == null ? default(int?) : int.Parse(entity.WorkType.ToString()); } //end ExpenseItem(net.autotask.webservices.ExpenseItem entity)
} //end ExpenseItem() public ExpenseItem(net.autotask.webservices.ExpenseItem entity) : base(entity) { } //end ExpenseItem(net.autotask.webservices.ExpenseItem entity)