mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Добавил выпадающие списки в диалоговом окне добавления принтера
This commit is contained in:
1 parent
88f53c793e
commit
b492435289
8 files changed
+106
-5
No files matched your search
@@ -9,6 +9,6 @@ namespace CartriX.Shared.DTOs.Printer
|
||||
public string hostname { get; set; } = null!;
|
||||
public string ipAddress { get; set; } = null!;
|
||||
public Models.Location location { get; set; } = null!;
|
||||
public PrinterModel model { get; set; } = null!;
|
||||
public Models.PrinterModel model { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CartriX.Shared.DTOs.PrinterModel
|
||||
{
|
||||
public class PrinterModelDto
|
||||
{
|
||||
public string name { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using CartriX.Shared.DTOs.PrinterModel;
|
||||
using CartriX.Shared.Models;
|
||||
|
||||
namespace CartriX.Shared.Mappers
|
||||
{
|
||||
public static class PrinterModelMap
|
||||
{
|
||||
public static PrinterModelDto ToDto(this PrinterModel printerModel)
|
||||
{
|
||||
return new()
|
||||
{
|
||||
name = printerModel.name
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user