Допилил добавление принтера, сделал опрос принтеров сколько что они напечатали

This commit is contained in:
Hukuta committed 2026-05-10 21:03:55 +09:00
1 parent b492435289
commit 4fbc39ca77
62 files changed
+5298 -105

No files matched your search

@@ -0,0 +1,18 @@
using CartriX.Shared.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace CartriX.Shared.DTOs.Cartridge
{
public class CartridgeDto
{
public int id { get; set; }
public List<string> models { get; set; } = null!;
public int? maxCountPrint { get; set; }
public DateOnly? dateLastFilling { get; set; }
public int countPrinted { get; set; }
public Models.Printer? installedInPrinter { get; set; }
public CartridgeStatus status { get; set; } = null!;
}
}
@@ -6,11 +6,11 @@
public string name { get; set; } = null!;
public List<Printer.QueryPrinterFromLocationDto> printers { get; set; } = null!;
public int countPrintersInLocation
{
{
get
{
return printers?.Count ?? 0;
}
}
}
}
}
@@ -7,5 +7,8 @@
public string ipAddress { get; set; } = null!;
public string modelName { get; set; } = null!;
public string locationValue { get; set; } = null!;
public string typePrintId { get; set; } = null!;
public string oidForQueryCountPrintedAllTime { get; set; } = null!;
public string countPrintedAllTime { get; set; } = null!;
}
}
@@ -2,9 +2,11 @@
{
public class QueryPrinterToAdd
{
public string? name { get; set; }
public string? hostname { get; set; }
public string? model { get; set; }
public string? location { get; set; }
public string ipAddress { get; set; } = null!;
public string typePrintId { get; set; } = null!;
}
}
@@ -0,0 +1,11 @@
using static System.Runtime.InteropServices.JavaScript.JSType;
namespace CartriX.Shared.DTOs.Report
{
public class OnlyDataPerPrinted
{
public DateTime date { get; set; }
public int countPrinted { get; set; }
public string DateString => date.ToShortDateString();
}
}