Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections.Generic;
- using ketex.data.Models.Prices;
- namespace ketex.data.Models.Orders.ExternalOrderSettings
- {
- public class ExternalOrderSettings
- {
- public int ExternalOrderSettingsId { get; set; }
- public FileType FileType { get; set; }
- public string[] ReceiveOrdersEmails { get; set; }
- public string[] SendAnswersEmails { get; set; }
- public int StartRow { get; set; }
- public int ArticleColumn { get; set; }
- public int BrandColumn { get; set; }
- public int NameColumn { get; set; }
- public int QuantityColumn { get; set; }
- public int PriceColumn { get; set; }
- public int? AnswerColumn { get; set; }
- public int? CommentColumn { get; set; }
- public int? PriceKeywordColumn { get; set; }
- public int DeliveryTerms { get; set; }
- public int? PriceDeviationPercent { get; set; }
- public bool IsExactQuantityOrdering { get; set; }
- public int UserId { get; set; }
- public string Filename { get; set; }
- public string Subject { get; set; }
- public List<int> ExportPricelistIds { get; set; }
- public List<PriceKeyword> Pricekeywords { get; set; }
- public ExternalOrderData4Parsing ToParsingData(byte[] file = null) => new ExternalOrderData4Parsing
- {
- File = file,
- AnswerColumn = AnswerColumn,
- ArticleColumn = ArticleColumn,
- BrandColumn = BrandColumn,
- FileType = FileType,
- NameColumn = NameColumn,
- PriceColumn = PriceColumn,
- QuantityColumn = QuantityColumn,
- StartRow = StartRow,
- PriceKeywordColumn = PriceKeywordColumn,
- CommentColumn = CommentColumn
- };
- public ExternalOrdersAnswerData ToAnsweringData(List<ExternalOrderRow> answeredOrders, byte[] file = null) =>
- new ExternalOrdersAnswerData
- {
- Orders = answeredOrders,
- File = file,
- AnswerColumn = AnswerColumn,
- ArticleColumn = ArticleColumn,
- BrandColumn = BrandColumn,
- FileType = FileType,
- NameColumn = NameColumn,
- PriceColumn = PriceColumn,
- QuantityColumn = QuantityColumn,
- StartRow = StartRow
- };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement