Exemple #1
0
 public Company_CompanyEmailCCMappingDTO(CompanyEmailCCMapping CompanyEmailCCMapping)
 {
     this.CompanyEmailId = CompanyEmailCCMapping.CompanyEmailId;
     this.AppUserId      = CompanyEmailCCMapping.AppUserId;
     this.AppUser        = CompanyEmailCCMapping.AppUser == null ? null : new Company_AppUserDTO(CompanyEmailCCMapping.AppUser);
     this.Errors         = CompanyEmailCCMapping.Errors;
 }
Exemple #2
0
 public Company_CompanyActivityDTO(CompanyActivity CompanyActivity)
 {
     this.Id                 = CompanyActivity.Id;
     this.Title              = CompanyActivity.Title;
     this.FromDate           = CompanyActivity.FromDate;
     this.ToDate             = CompanyActivity.ToDate;
     this.ActivityTypeId     = CompanyActivity.ActivityTypeId;
     this.ActivityPriorityId = CompanyActivity.ActivityPriorityId;
     this.Description        = CompanyActivity.Description;
     this.Address            = CompanyActivity.Address;
     this.CompanyId          = CompanyActivity.CompanyId;
     this.AppUserId          = CompanyActivity.AppUserId;
     this.ActivityStatusId   = CompanyActivity.ActivityStatusId;
     this.ActivityPriority   = CompanyActivity.ActivityPriority == null ? null : new Company_ActivityPriorityDTO(CompanyActivity.ActivityPriority);
     this.ActivityStatus     = CompanyActivity.ActivityStatus == null ? null : new Company_ActivityStatusDTO(CompanyActivity.ActivityStatus);
     this.ActivityType       = CompanyActivity.ActivityType == null ? null : new Company_ActivityTypeDTO(CompanyActivity.ActivityType);
     this.AppUser            = CompanyActivity.AppUser == null ? null : new Company_AppUserDTO(CompanyActivity.AppUser);
     this.Errors             = CompanyActivity.Errors;
 }
Exemple #3
0
 public Company_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.UserId                    = 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 Company_CompanyDTO(OrderQuote.Company);
     this.Contact                   = OrderQuote.Contact == null ? null : new Company_ContactDTO(OrderQuote.Contact);
     this.District                  = OrderQuote.District == null ? null : new Company_DistrictDTO(OrderQuote.District);
     this.InvoiceDistrict           = OrderQuote.InvoiceDistrict == null ? null : new Company_DistrictDTO(OrderQuote.InvoiceDistrict);
     this.InvoiceNation             = OrderQuote.InvoiceNation == null ? null : new Company_NationDTO(OrderQuote.InvoiceNation);
     this.InvoiceProvince           = OrderQuote.InvoiceProvince == null ? null : new Company_ProvinceDTO(OrderQuote.InvoiceProvince);
     this.Nation                    = OrderQuote.Nation == null ? null : new Company_NationDTO(OrderQuote.Nation);
     this.Opportunity               = OrderQuote.Opportunity == null ? null : new Company_OpportunityDTO(OrderQuote.Opportunity);
     this.OrderQuoteStatus          = OrderQuote.OrderQuoteStatus == null ? null : new Company_OrderQuoteStatusDTO(OrderQuote.OrderQuoteStatus);
     this.OrderQuoteContents        = OrderQuote.OrderQuoteContents?.Select(x => new Company_OrderQuoteContentDTO(x)).ToList();
     this.Province                  = OrderQuote.Province == null ? null : new Company_ProvinceDTO(OrderQuote.Province);
     this.AppUser                   = OrderQuote.AppUser == null ? null : new Company_AppUserDTO(OrderQuote.AppUser);
     this.EditedPriceStatus         = OrderQuote.EditedPriceStatus == null ? null : new Company_EditedPriceStatusDTO(OrderQuote.EditedPriceStatus);
     this.Errors                    = OrderQuote.Errors;
 }