Esempio n. 1
0
        }                                   //end ContractBlock()

        public ContractBlock(net.autotask.webservices.ContractBlock entity) : base(entity)
        {
            this.ContractID    = int.Parse(entity.ContractID.ToString());
            this.DatePurchased = DateTime.Parse(entity.DatePurchased.ToString());
            this.EndDate       = DateTime.Parse(entity.EndDate.ToString());
            this.HourlyRate    = double.Parse(entity.HourlyRate.ToString());
            this.Hours         = double.Parse(entity.Hours.ToString());
            this.StartDate     = DateTime.Parse(entity.StartDate.ToString());
            this.HoursApproved = double.Parse(entity.HoursApproved.ToString());
            this.InvoiceNumber = entity.InvoiceNumber == null ? default(string) : entity.InvoiceNumber.ToString();
            this.IsPaid        = entity.IsPaid == null ? default(string) : entity.IsPaid.ToString();
            this.PaymentNumber = entity.PaymentNumber == null ? default(string) : entity.PaymentNumber.ToString();
            this.PaymentType   = entity.PaymentType == null ? default(int?) : int.Parse(entity.PaymentType.ToString());
            this.Status        = entity.Status == null ? default(int?) : int.Parse(entity.UserDefinedFields.ToString());
        } //end ContractBlock(net.autotask.webservices.ContractBlock entity)
Esempio n. 2
0
        }                                   //end ContractBlock()

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