mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 04:20:55 +00:00
Пока ниче не делаю, чилю)
This commit is contained in:
1 parent
37b95a6179
commit
5b7364c57e
11 files changed
+151
No files matched your search
@@ -0,0 +1,22 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.7">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.7" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="10.0.7">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CartriX.Api.DTOs
|
||||
{
|
||||
public class AddPrinterDto
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class Cartridge
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public CartridgeModel Model { get; set; } = default!;
|
||||
public StatusCartridge Status { get; set; } = default!;
|
||||
public int Capacity { get; set; }
|
||||
public Printer? InPrinter { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class CartridgeModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class Printer
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string PrinterName { get; set; } = default!;
|
||||
public PrinterModel Model { get; set; } = default!;
|
||||
public PrinterConnectionType PrinterConnectionType { get; set; } = default!;
|
||||
public string? PrinterUsedPagesOID { get; set; }
|
||||
public StatusPrinter Status { get; set; } = default!;
|
||||
public List<CartridgeModel> SupportCartridgeModels { get; set; } = default!;
|
||||
public string? IpAddress { get; set; } = default!;
|
||||
// In One Printer can be some Cartridges, for example: Color Printers
|
||||
public List<Cartridge> CartridgesHave { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class PrinterConnectionType
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.AccessControl;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class PrinterModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.AccessControl;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class StatusCartridge
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class StatusPrinter
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.AccessControl;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CartriX.Shared.Models
|
||||
{
|
||||
public class SupportPrinterCartridges
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public PrinterModel PrinterModel { get; set; } = default!;
|
||||
public CartridgeModel CartridgeModel { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CartriX.Shared.Patterns.Printer
|
||||
{
|
||||
public class Printer
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user