| | | 1 | | using Services.ApiServices._1CApi.OData.Models; |
| | | 2 | | |
| | | 3 | | namespace OzonOrdersWeb.Areas.OneCFresh.ViewModels; |
| | | 4 | | |
| | | 5 | | public class ReceiptsViewModel |
| | | 6 | | { |
| | | 7 | | public List<ReceiptRow> Items { get; set; } = new(); |
| | | 8 | | public DateTime? DateFrom { get; set; } |
| | | 9 | | public DateTime? DateTo { get; set; } |
| | | 10 | | public string? Search { get; set; } |
| | | 11 | | public int TotalCount { get; set; } |
| | | 12 | | public int Page { get; set; } = 1; |
| | | 13 | | public int PageSize { get; set; } = 100; |
| | | 14 | | public Dictionary<Guid, string?> CounterpartyNames { get; set; } = new(); |
| | | 15 | | public Dictionary<Guid, string?> WarehouseNames { get; set; } = new(); |
| | | 16 | | } |
| | | 17 | | |
| | | 18 | | public class ReceiptRow |
| | | 19 | | { |
| | | 20 | | public ODataReceiptListItem Doc { get; set; } = new(); |
| | | 21 | | public int? LinkedTransactionId { get; set; } |
| | | 22 | | public string? LinkedTransactionType { get; set; } |
| | | 23 | | public int? LinkedOrderId { get; set; } |
| | | 24 | | public bool LinkedOrderSuccess { get; set; } |
| | | 25 | | } |
| | | 26 | | |
| | | 27 | | public class TransfersViewModel |
| | | 28 | | { |
| | | 29 | | public List<TransferRow> Items { get; set; } = new(); |
| | | 30 | | public DateTime? DateFrom { get; set; } |
| | | 31 | | public DateTime? DateTo { get; set; } |
| | | 32 | | public string? Search { get; set; } |
| | | 33 | | public int TotalCount { get; set; } |
| | | 34 | | public int Page { get; set; } = 1; |
| | | 35 | | public int PageSize { get; set; } = 100; |
| | | 36 | | public Dictionary<Guid, string?> WarehouseNames { get; set; } = new(); |
| | | 37 | | } |
| | | 38 | | |
| | | 39 | | public class TransferRow |
| | | 40 | | { |
| | | 41 | | public ODataTransferListItem Doc { get; set; } = new(); |
| | | 42 | | public int? LinkedTransactionId { get; set; } |
| | | 43 | | public string? LinkedTransactionType { get; set; } |
| | | 44 | | public int? LinkedOrderId { get; set; } |
| | | 45 | | public bool LinkedOrderSuccess { get; set; } |
| | | 46 | | } |
| | | 47 | | |
| | | 48 | | public class PaymentsViewModel |
| | | 49 | | { |
| | | 50 | | public List<ODataPaymentListItem> Items { get; set; } = new(); |
| | | 51 | | public DateTime? DateFrom { get; set; } |
| | | 52 | | public DateTime? DateTo { get; set; } |
| | | 53 | | public string? Search { get; set; } |
| | | 54 | | public int TotalCount { get; set; } |
| | | 55 | | public int Page { get; set; } = 1; |
| | | 56 | | public int PageSize { get; set; } = 100; |
| | | 57 | | public Dictionary<Guid, string?> CounterpartyNames { get; set; } = new(); |
| | | 58 | | } |
| | | 59 | | |
| | | 60 | | public class DocumentLineItem |
| | | 61 | | { |
| | | 62 | | public string NomenclatureName { get; set; } = string.Empty; |
| | | 63 | | public string Article { get; set; } = string.Empty; |
| | | 64 | | public decimal Quantity { get; set; } |
| | | 65 | | public decimal Price { get; set; } |
| | | 66 | | public decimal Amount { get; set; } |
| | | 67 | | } |
| | | 68 | | |
| | | 69 | | public class ReceiptDetailViewModel |
| | | 70 | | { |
| | 0 | 71 | | public Guid RefKey { get; set; } |
| | 0 | 72 | | public string Number { get; set; } = string.Empty; |
| | 0 | 73 | | public string Date { get; set; } = string.Empty; |
| | 0 | 74 | | public bool Posted { get; set; } |
| | 0 | 75 | | public bool DeletionMark { get; set; } |
| | 0 | 76 | | public string CounterpartyName { get; set; } = string.Empty; |
| | 0 | 77 | | public string WarehouseName { get; set; } = string.Empty; |
| | 0 | 78 | | public string IncomingDocNumber { get; set; } = string.Empty; |
| | 0 | 79 | | public string IncomingDocDate { get; set; } = string.Empty; |
| | 0 | 80 | | public string Comment { get; set; } = string.Empty; |
| | 0 | 81 | | public List<DocumentLineItem> Lines { get; set; } = new(); |
| | 0 | 82 | | public string? Error { get; set; } |
| | | 83 | | } |
| | | 84 | | |
| | | 85 | | public class TransferDetailViewModel |
| | | 86 | | { |
| | | 87 | | public Guid RefKey { get; set; } |
| | | 88 | | public string Number { get; set; } = string.Empty; |
| | | 89 | | public string Date { get; set; } = string.Empty; |
| | | 90 | | public bool Posted { get; set; } |
| | | 91 | | public bool DeletionMark { get; set; } |
| | | 92 | | public string WarehouseSenderName { get; set; } = string.Empty; |
| | | 93 | | public string WarehouseRecipientName { get; set; } = string.Empty; |
| | | 94 | | public string Comment { get; set; } = string.Empty; |
| | | 95 | | public List<DocumentLineItem> Lines { get; set; } = new(); |
| | | 96 | | public string? Error { get; set; } |
| | | 97 | | } |