mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Сделал страничку для добавления принтера, так же добавил несколько доп классов, а так же марщрут для получения информации на указанный OID по SNMP
This commit is contained in:
1 parent
a21834508d
commit
6e0d61aa6e
22 files changed
+348
-23
No files matched your search
@@ -18,10 +18,13 @@ namespace CartriX.Shared.Classes
|
||||
{
|
||||
public static string GetForPrinter(int PrinterId) => $"{baseUrl}/{nameof(Cartridge)}/{nameof(GetForPrinter)}?{nameof(PrinterId)}={PrinterId}";
|
||||
public static string Item(int Id) => $"{baseUrl}/{nameof(Cartridge)}/{nameof(Item)}?{nameof(Id)}={Id}";
|
||||
public static string GetArticlesList => $"{baseUrl}/{nameof(Cartridge)}/{nameof(GetArticlesList)}";
|
||||
}
|
||||
public static class Printer
|
||||
{
|
||||
public static string Item(int Id) => $"{baseUrl}/{nameof(Printer)}/{nameof(Item)}?{nameof(Id)}={Id}";
|
||||
public static string ListConnectionType => $"{baseUrl}/{nameof(Printer)}/{nameof(ListConnectionType)}";
|
||||
public static string ListPrintType => $"{baseUrl}/{nameof(Printer)}/{nameof(ListPrintType)}";
|
||||
}
|
||||
public static class Location
|
||||
{
|
||||
|
||||
@@ -45,6 +45,6 @@ namespace CartriX.Shared.Models.Printer
|
||||
/// <summary>
|
||||
/// Объем картриджа поставленный вместе с принтером
|
||||
/// </summary>
|
||||
public int VolumeBuiltInCartridge { get; set; }
|
||||
public required int VolumeBuiltInCartridge { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace CartriX.Shared.Models.Printer
|
||||
{
|
||||
public class PrinterConnectionTypeItem
|
||||
{
|
||||
/// <summary>
|
||||
/// Идентификатор
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// Название типа подключения
|
||||
/// </summary>
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -14,6 +14,5 @@
|
||||
/// Название поддерживамого артикля
|
||||
/// </summary>
|
||||
public required string SupportedArticle { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CartriX.Shared.Models.Printer
|
||||
{
|
||||
public class PrinterPrintTypeItem
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user