Beispiel #1
0
 public ExpenseReport() : base() { } //end ExpenseReport()
 public ExpenseReport(net.autotask.webservices.ExpenseReport entity) : base(entity)
 {
     this.Name = entity.Name == null ? default(string) : entity.Name.ToString();
     this.SubmitterID = int.Parse(entity.SubmitterID.ToString());
     this.WeekEnding = DateTime.Parse(entity.WeekEnding.ToString());
     this.AmountDue = double.Parse(entity.ApprovedDate.ToString());
     this.ApprovedDate = entity.ApprovedDate == null ? default(DateTime?) : DateTime.Parse(entity.ApprovedDate.ToString());
     this.ApproverID = entity.ApproverID == null ? default(int?) : int.Parse(entity.ApproverID.ToString());
     this.BusinessDivisionSubdivisionID = entity.BusinessDivisionSubdivisionID == null ? default(int?) : int.Parse(entity.BusinessDivisionSubdivisionID.ToString());
     this.CashAdvanceAmount = double.Parse(entity.CashAdvanceAmount.ToString());
     this.DepartmentNumber = entity.DepartmentNumber == null ? default(string) : entity.DepartmentNumber.ToString();
     this.ExpenseTotal = double.Parse(entity.ExpenseTotal.ToString());
     this.QuickBooksReferenceNumber = entity.QuickBooksReferenceNumber == null ? default(string) : entity.QuickBooksReferenceNumber.ToString();
     this.ReimbursementCurrencyAmountDue = double.Parse(entity.ReimbursementCurrencyAmountDue.ToString());
     this.ReimbursementCurrencyCashAdvanceAmount = double.Parse(entity.ReimbursementCurrencyCashAdvanceAmount.ToString());
     this.ReimbursementCurrencyID = entity.ReimbursementCurrencyID == null ? default(int?) : int.Parse(entity.ReimbursementCurrencyID.ToString());
     this.RejectionReason = entity.RejectionReason == null ? default(string) : entity.RejectionReason.ToString());
     this.Status = entity.Status == null ? default(int?) : int.Parse(entity.Status.ToString());
     this.Submit = entity.Submit == null ? default(bool?) : bool.Parse(entity.Submit.ToString());
     this.SubmitDate = entity.SubmitDate == null ? default(DateTime?) : DateTime.Parse(entity .SubmitDate.ToString();
 } //end ExpenseReport(net.autotask.webservices.ExpenseReport entity)
        }                                   //end ExpenseReport()

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