Exemple #1
0
 public Opportunity_OpportunityEmailCCMappingDTO(OpportunityEmailCCMapping OpportunityEmailCCMapping)
 {
     this.OpportunityEmailId = OpportunityEmailCCMapping.OpportunityEmailId;
     this.AppUserId          = OpportunityEmailCCMapping.AppUserId;
     this.AppUser            = OpportunityEmailCCMapping.AppUser == null ? null : new Opportunity_AppUserDTO(OpportunityEmailCCMapping.AppUser);
     this.Errors             = OpportunityEmailCCMapping.Errors;
 }
Exemple #2
0
 public Opportunity_FileDTO(File File)
 {
     this.Id        = File.Id;
     this.Name      = File.Name;
     this.Url       = File.Url;
     this.AppUserId = File.AppUserId;
     this.CreatedAt = File.CreatedAt;
     this.UpdatedAt = File.UpdatedAt;
     this.AppUser   = File.AppUser == null ? null : new Opportunity_AppUserDTO(File.AppUser);
 }
 public Opportunity_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 Opportunity_CompanyDTO(OrderQuote.Company);
     this.Contact                   = OrderQuote.Contact == null ? null : new Opportunity_ContactDTO(OrderQuote.Contact);
     this.District                  = OrderQuote.District == null ? null : new Opportunity_DistrictDTO(OrderQuote.District);
     this.InvoiceDistrict           = OrderQuote.InvoiceDistrict == null ? null : new Opportunity_DistrictDTO(OrderQuote.InvoiceDistrict);
     this.InvoiceNation             = OrderQuote.InvoiceNation == null ? null : new Opportunity_NationDTO(OrderQuote.InvoiceNation);
     this.InvoiceProvince           = OrderQuote.InvoiceProvince == null ? null : new Opportunity_ProvinceDTO(OrderQuote.InvoiceProvince);
     this.Nation                    = OrderQuote.Nation == null ? null : new Opportunity_NationDTO(OrderQuote.Nation);
     this.Opportunity               = OrderQuote.Opportunity == null ? null : new Opportunity_OpportunityDTO(OrderQuote.Opportunity);
     this.OrderQuoteStatus          = OrderQuote.OrderQuoteStatus == null ? null : new Opportunity_OrderQuoteStatusDTO(OrderQuote.OrderQuoteStatus);
     this.OrderQuoteContents        = OrderQuote.OrderQuoteContents?.Select(x => new Opportunity_OrderQuoteContentDTO(x)).ToList();
     this.Province                  = OrderQuote.Province == null ? null : new Opportunity_ProvinceDTO(OrderQuote.Province);
     this.AppUser                   = OrderQuote.AppUser == null ? null : new Opportunity_AppUserDTO(OrderQuote.AppUser);
     this.EditedPriceStatus         = OrderQuote.EditedPriceStatus == null ? null : new Opportunity_EditedPriceStatusDTO(OrderQuote.EditedPriceStatus);
     this.Errors                    = OrderQuote.Errors;
 }