Beispiel #1
0
 public Invoice() : base() { } //end Invoice()
 public Invoice(net.autotask.webservices.Invoice entity) : base(entity)
 {
     this.InvoiceDateTime = DateTime.Parse(entity.InvoiceDateTime.ToString());
     this.AccountID = entity.AccountID == null ? default(int?) : int.Parse(entity.AccountID.ToString());
     this.BatchID = entity.BatchID == null ? default(int?) : int.Parse(entity.BatchID.ToString());
     this.Comments = entity.Comments == null ? default(string) : entity.Comments.ToString();
     this.CreateDateTime = entity.CreateDateTime == null ? default(DateTime?) : DateTime.Parse(entity.CreateDateTime.ToString());
     this.CreatorResourceID = entity.CreatorResourceID == null ? default(int?) : int.Parse(entity.CreatorResourceID.ToString());
     this.DueDate = entity.DueDate == null ? default(DateTime?) : DateTime.Parse(entity.DueDate.ToString());
     this.FromDate = entity.FromDate == null ? default(DateTime?) : DateTime.Parse(entity.FromDate.ToString();
     this.InvoiceEditorTemplateID = entity.InvoiceEditorTemplateID == null ? default(int?) : int.Parse(entity.InvoiceEditorTemplateID.ToString());
     this.InvoiceNumber = entity.InvoiceNumber == null ? default(string) : entity.InvoiceNumber.ToString();
     this.InvoiceTotal = double.Parse(entity.InvoiceTotal.ToString());
     this.IsVoided = entity.IsVoided == null ? default(bool?) : bool.Parse(entity.IsVoided.ToString());
     this.OrderNumber = entity.OrderNumber == null ? default(string) : entity.OrderNumber.ToString();
     this.PaidDate = entity.PaidDate == null ? default(DateTime?) : DateTime.Parse(entity .PaidDate.ToString());
     this.PaymentTerm = entity.PaymentTerm == null ? default(int?) : int.Parse(entity.PaymentTerm.ToString());
     this.TaxGroup = entity.TaxGroup == null ? default(int?) : int.Parse(entity.TaxGroup.ToString());
     this.TaxRegionName = entity.TaxRegionName.ToString();
     this.ToDate = entity.ToDate == null ? default(DateTime?) : DateTime.Parse(entity.ToDate.ToString());
     this.TotalTaxValue = double.Parse(entity.TotalTaxValue.ToString());
     this.VoidedByResourceID = entity.VoidedByResourceID == null ? default(int?) : int.Parse(entity.VoidedByResourceID.ToString());
     this.VoidedDate = entity.VoidedDate == null ? default(DateTime?) : DateTime.Parse(entity .VoidedDate.ToString());
     this.WebServiceDate = entity.WebServiceDate == null ? default(DateTime?) : DateTime.Parse(entity .WebServiceDate.ToString());
 } //end Invoice(net.autotask.webservices.Invoice entity)
Beispiel #2
0
        }                             //end Invoice()

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