| | | 1 | | namespace Services.ApiServices._1CApi.Models; |
| | | 2 | | |
| | | 3 | | public enum MovementKind { Receipt, Expense, Transfer } |
| | | 4 | | |
| | | 5 | | public record MovementItem( |
| | | 6 | | DateTime Date, |
| | | 7 | | MovementKind Kind, |
| | | 8 | | string DocType, |
| | | 9 | | string DocNumber, |
| | | 10 | | Guid RefKey, |
| | | 11 | | decimal Quantity, |
| | | 12 | | decimal Price, |
| | | 13 | | string? WarehouseFrom, |
| | | 14 | | string? WarehouseTo, |
| | | 15 | | bool IsDeleted, |
| | | 16 | | bool IsPosted |
| | | 17 | | ); |
| | | 18 | | |
| | | 19 | | public class MovementMapResult |
| | | 20 | | { |
| | | 21 | | public string? Article { get; set; } = string.Empty; |
| | | 22 | | public string? NomenclatureName { get; set; } = string.Empty; |
| | | 23 | | |
| | | 24 | | public List<OneCStockLine>? CurrentBalance { get; set; } = new(); |
| | | 25 | | |
| | | 26 | | /// <summary>Текущий резерв по складам из проведённых документов резервирования 1С.</summary> |
| | | 27 | | public List<OneCStockLine>? CurrentReserve { get; set; } = new(); |
| | | 28 | | |
| | | 29 | | /// <summary>Строки резерва для контролируемого редактирования администратором.</summary> |
| | | 30 | | public List<OneCReserveLine>? CurrentReserveLines { get; set; } = new(); |
| | | 31 | | |
| | | 32 | | public int TotalReceiptQty { get; set; } |
| | | 33 | | public int TotalReceiptDocs { get; set; } |
| | | 34 | | public int TotalExpenseQty { get; set; } |
| | | 35 | | public int TotalExpenseDocs { get; set; } |
| | | 36 | | public int TotalTransferQty { get; set; } |
| | | 37 | | public int TotalTransferDocs { get; set; } |
| | | 38 | | |
| | | 39 | | public List<MovementItem>? Movements { get; set; } = new(); |
| | | 40 | | } |
| | | 41 | | |
| | 0 | 42 | | public record OneCReserveLine(Guid DocumentRefKey, int LineNumber, string Warehouse, decimal Quantity); |