} //end SalesOrder() public SalesOrder(net.autotask.webservices.SalesOrder entity) : base(entity) { this.AccountID = int.Parse(entity.AccountID.ToString()); this.AdditionalBillToAddressInformation = entity.AdditionalBillToAddressInformation == null ? default(string) : entity.AdditionalBillToAddressInformation.ToString(); this.AdditionalShipToAddressInformation = entity.AdditionalShipToAddressInformation == null ? default(string) : entity.AdditionalShipToAddressInformation.ToString(); this.BillToAddress1 = entity.BillToAddress1 == null ? default(string) : entity.BillToAddress1.ToString(); this.BillToAddress2 = entity.BillToAddress2 == null ? default(string) : entity.BillToAddress2.ToString(); this.BillToCity = entity.BillToCity == null ? default(string) : entity.BillToCity.ToString(); this.BillToCountry = entity.BillToCountry == null ? default(string) : entity.BillToCountry.ToString(); this.BillToCountryID = entity.BillToCountryID == null ? default(int?) : int.Parse(entity.BillToCountryID.ToString()); this.BillToPostalCode = entity.BillToPostalCode == null ? default(string) : entity.BillToPostalCode.ToString(); this.BillToState = entity.BillToState == null ? default(string) : entity.BillToState.ToString(); this.BusinessDivisionSubdivisionID = entity.BusinessDivisionSubdivisionID == null ? default(int?) : int.Parse(entity.BusinessDivisionSubdivisionID.ToString()); this.Contact = int.Parse(entity.Contact.ToString()); this.OpportunityID = int.Parse(entity.OpportunityID.ToString()); this.OwnerResourceID = int.Parse(entity.OwnerResourceID.ToString()); this.PromisedDueDate = entity.PromisedDueDate == null ? default(DateTime?) : DateTime.Parse(entity.PromisedDueDate.ToString()); this.SalesOrderDate = DateTime.Parse(entity.SalesOrderDate.ToString()); this.ShipToAddress1 = entity.ShipToAddress1 == null ? default(string) : entity.ShipToAddress1.ToString(); this.ShipToAddress2 = entity.ShipToAddress2 == null ? default(string) : entity.ShipToAddress2.ToString(); this.ShipToCity = entity.ShipToCity == null ? default(string) : entity.ShipToCity.ToString(); this.ShipToCountry = entity.ShipToCountry.ToString(); this.ShipToCountryID = entity.ShipToCountryID == null ? default(int?) : int.Parse(entity.ShipToCountryID.ToString()); this.ShipToPostalCode = entity.ShipToPostalCode == null ? default(string) : entity.ShipToPostalCode.ToString(); this.ShipToState = entity.ShipToState == null ? default(string) : entity.ShipToState.ToString(); this.Status = int.Parse(entity.Status.ToString()); this.Title = entity.Title == null ? default(string) : entity.Title.ToString(); } //end SalesOrder(net.autotask.webservices.SalesOrder entity)
} //end SalesOrder() public SalesOrder(net.autotask.webservices.SalesOrder entity) : base(entity) { } //end SalesOrder(net.autotask.webservices.SalesOrder entity)