public Contact_ContactEmailCCMappingDTO(ContactEmailCCMapping ContactEmailCCMapping)
 {
     this.ContactEmailId = ContactEmailCCMapping.ContactEmailId;
     this.AppUserId      = ContactEmailCCMapping.AppUserId;
     this.AppUser        = ContactEmailCCMapping.AppUser == null ? null : new Contact_AppUserDTO(ContactEmailCCMapping.AppUser);
     this.Errors         = ContactEmailCCMapping.Errors;
 }
Example #2
0
 public Contact_OrderQuoteDTO(OrderQuote OrderQuote)
 {
     this.Id                        = OrderQuote.Id;
     this.Subject                   = OrderQuote.Subject;
     this.NationId                  = OrderQuote.NationId;
     this.ProvinceId                = OrderQuote.ProvinceId;
     this.DistrictId                = OrderQuote.DistrictId;
     this.Address                   = OrderQuote.Address;
     this.InvoiceAddress            = OrderQuote.InvoiceAddress;
     this.InvoiceProvinceId         = OrderQuote.InvoiceProvinceId;
     this.InvoiceDistrictId         = OrderQuote.InvoiceDistrictId;
     this.InvoiceNationId           = OrderQuote.InvoiceNationId;
     this.ZIPCode                   = OrderQuote.ZIPCode;
     this.InvoiceZIPCode            = OrderQuote.InvoiceZIPCode;
     this.AppUserId                 = OrderQuote.AppUserId;
     this.ContactId                 = OrderQuote.ContactId;
     this.CompanyId                 = OrderQuote.CompanyId;
     this.OpportunityId             = OrderQuote.OpportunityId;
     this.EditedPriceStatusId       = OrderQuote.EditedPriceStatusId;
     this.OrderQuoteStatusId        = OrderQuote.OrderQuoteStatusId;
     this.SubTotal                  = OrderQuote.SubTotal;
     this.Total                     = OrderQuote.Total;
     this.TotalTaxAmount            = OrderQuote.TotalTaxAmount;
     this.TotalTaxAmountOther       = OrderQuote.TotalTaxAmountOther;
     this.GeneralDiscountPercentage = OrderQuote.GeneralDiscountPercentage;
     this.GeneralDiscountAmount     = OrderQuote.GeneralDiscountAmount;
     this.CreatedAt                 = OrderQuote.CreatedAt;
     this.Company                   = OrderQuote.Company == null ? null : new Contact_CompanyDTO(OrderQuote.Company);
     this.Contact                   = OrderQuote.Contact == null ? null : new Contact_ContactDTO(OrderQuote.Contact);
     this.District                  = OrderQuote.District == null ? null : new Contact_DistrictDTO(OrderQuote.District);
     this.InvoiceDistrict           = OrderQuote.InvoiceDistrict == null ? null : new Contact_DistrictDTO(OrderQuote.InvoiceDistrict);
     this.InvoiceNation             = OrderQuote.InvoiceNation == null ? null : new Contact_NationDTO(OrderQuote.InvoiceNation);
     this.InvoiceProvince           = OrderQuote.InvoiceProvince == null ? null : new Contact_ProvinceDTO(OrderQuote.InvoiceProvince);
     this.Nation                    = OrderQuote.Nation == null ? null : new Contact_NationDTO(OrderQuote.Nation);
     this.Opportunity               = OrderQuote.Opportunity == null ? null : new Contact_OpportunityDTO(OrderQuote.Opportunity);
     this.OrderQuoteStatus          = OrderQuote.OrderQuoteStatus == null ? null : new Contact_OrderQuoteStatusDTO(OrderQuote.OrderQuoteStatus);
     this.Province                  = OrderQuote.Province == null ? null : new Contact_ProvinceDTO(OrderQuote.Province);
     this.AppUser                   = OrderQuote.AppUser == null ? null : new Contact_AppUserDTO(OrderQuote.AppUser);
     this.EditedPriceStatus         = OrderQuote.EditedPriceStatus == null ? null : new Contact_EditedPriceStatusDTO(OrderQuote.EditedPriceStatus);
     this.Errors                    = OrderQuote.Errors;
 }