Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.35 KB | None | 0 0
  1. using System.Collections.Generic;
  2. using ketex.data.Models.Prices;
  3.  
  4. namespace ketex.data.Models.Orders.ExternalOrderSettings
  5. {
  6.     public class ExternalOrderSettings
  7.     {
  8.         public int ExternalOrderSettingsId { get; set; }
  9.         public FileType FileType { get; set; }
  10.         public string[] ReceiveOrdersEmails { get; set; }
  11.         public string[] SendAnswersEmails { get; set; }
  12.         public int StartRow { get; set; }
  13.         public int ArticleColumn { get; set; }
  14.         public int BrandColumn { get; set; }
  15.         public int NameColumn { get; set; }
  16.         public int QuantityColumn { get; set; }
  17.         public int PriceColumn { get; set; }
  18.         public int? AnswerColumn { get; set; }
  19.         public int? CommentColumn { get; set; }
  20.         public int? PriceKeywordColumn { get; set; }
  21.         public int DeliveryTerms { get; set; }
  22.         public int? PriceDeviationPercent { get; set; }
  23.         public bool IsExactQuantityOrdering { get; set; }
  24.         public int UserId { get; set; }
  25.         public string Filename { get; set; }
  26.         public string Subject { get; set; }
  27.         public List<int> ExportPricelistIds { get; set; }
  28.         public List<PriceKeyword> Pricekeywords { get; set; }
  29.  
  30.         public ExternalOrderData4Parsing ToParsingData(byte[] file = null) => new ExternalOrderData4Parsing
  31.         {
  32.             File = file,
  33.             AnswerColumn = AnswerColumn,
  34.             ArticleColumn = ArticleColumn,
  35.             BrandColumn = BrandColumn,
  36.             FileType = FileType,
  37.             NameColumn = NameColumn,
  38.             PriceColumn = PriceColumn,
  39.             QuantityColumn = QuantityColumn,
  40.             StartRow = StartRow,
  41.             PriceKeywordColumn = PriceKeywordColumn,
  42.             CommentColumn = CommentColumn
  43.         };
  44.        
  45.         public ExternalOrdersAnswerData ToAnsweringData(List<ExternalOrderRow> answeredOrders, byte[] file = null) =>
  46.             new ExternalOrdersAnswerData
  47.         {
  48.             Orders = answeredOrders,
  49.             File = file,
  50.             AnswerColumn = AnswerColumn,
  51.             ArticleColumn = ArticleColumn,
  52.             BrandColumn = BrandColumn,
  53.             FileType = FileType,
  54.             NameColumn = NameColumn,
  55.             PriceColumn = PriceColumn,
  56.             QuantityColumn = QuantityColumn,
  57.             StartRow = StartRow
  58.         };
  59.     }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement