From af4a94870e67a6730c2c77308e0f57d5f5a076bc Mon Sep 17 00:00:00 2001 From: Gary Sharp Date: Fri, 4 Dec 2020 15:51:23 +1100 Subject: [PATCH] additional device details --- Disco.Client/Disco.Client.csproj | 17 + Disco.Client/Interop/Hardware.cs | 212 +++- .../EnrolmentInformation/BaseBoard.cs | 14 + .../EnrolmentInformation/Battery.cs | 14 + .../EnrolmentInformation/Bios.cs | 17 + .../EnrolmentInformation/ComputerSystem.cs | 16 + .../EnrolmentInformation/DeviceHardware.cs | 5 +- .../EnrolmentInformation/DiskDrive.cs | 2 +- .../DiskDrivePartition.cs | 10 +- .../EnrolmentInformation/DiskLogical.cs | 4 +- .../EnrolmentInformation/PhysicalMemory.cs | 6 +- .../EnrolmentInformation/Processor.cs | 8 +- Disco.Models/Disco.Models.csproj | 10 + .../Repository/Device/DeviceDetail.cs | 4 + .../Devices/Exporting/DeviceExportOptions.cs | 10 +- .../Devices/Exporting/DeviceExportRecord.cs | 4 + .../Devices/DeviceDetailExtensions.cs | 100 ++ .../Devices/Enrolment/DeviceEnrolment.cs | 8 + .../Devices/Exporting/DeviceExport.cs | 101 +- .../Extensions/MeasurementUnitExtensions.cs | 12 +- .../Views/Device/DeviceParts/_Details.cshtml | 206 +++- .../Device/DeviceParts/_Details.generated.cs | 1035 ++++++++++++++--- 22 files changed, 1584 insertions(+), 231 deletions(-) create mode 100644 Disco.Models/ClientServices/EnrolmentInformation/BaseBoard.cs create mode 100644 Disco.Models/ClientServices/EnrolmentInformation/Battery.cs create mode 100644 Disco.Models/ClientServices/EnrolmentInformation/Bios.cs create mode 100644 Disco.Models/ClientServices/EnrolmentInformation/ComputerSystem.cs diff --git a/Disco.Client/Disco.Client.csproj b/Disco.Client/Disco.Client.csproj index 61fccf1d..bfe4ab2f 100644 --- a/Disco.Client/Disco.Client.csproj +++ b/Disco.Client/Disco.Client.csproj @@ -65,12 +65,24 @@ Models\ClientServices\Enrol.cs + + Models\ClientServices\EnrolmentInformation\BaseBoard.cs + + + Models\ClientServices\EnrolmentInformation\Battery.cs + + + Models\ClientServices\EnrolmentInformation\Bios.cs + Models\ClientServices\EnrolmentInformation\Certificate.cs Models\ClientServices\EnrolmentInformation\CertificateStore.cs + + Models\ClientServices\EnrolmentInformation\ComputerSystem.cs + Models\ClientServices\EnrolmentInformation\DeviceHardware.cs @@ -169,6 +181,11 @@ "$(ProjectDir)Package Creation\7z.exe" a -tzip "$(ProjectDir)Package Creation\PreparationClient.zip" "$(TargetDir)*.*" -x!*.tmp -x!*.vshost.* -x!Newtonsoft.Json.xml -x!*.pdb COPY "$(ProjectDir)Package Creation\PreparationClient.zip" "$(ProjectDir)..\Disco.Web\ClientBin" + + + + +