#34 Feature: Detailed Device Exporting
Many additional device properties are available to export. The previous export configuration is remembered.
This commit is contained in:
@@ -26,17 +26,9 @@ namespace Disco.Models.Repository
|
||||
public string DeviceDomainId { get; set; }
|
||||
public string AssignedUserId { get; set; }
|
||||
public DateTime? LastNetworkLogonDate { get; set; }
|
||||
|
||||
// 2012-06-21 - Removed
|
||||
//[StringLength(24)]
|
||||
//public string CertificateStoreReference { get; set; }
|
||||
|
||||
public bool AllowUnauthenticatedEnrol { get; set; }
|
||||
|
||||
// Removed 2013-02-21 G#: Redundant - See DecommissionedDate
|
||||
//public bool Active { get; set; }
|
||||
// End Removed 2013-02-21
|
||||
|
||||
public DateTime CreatedDate { get; set; }
|
||||
public DateTime? EnrolledDate { get; set; }
|
||||
public DateTime? LastEnrolDate { get; set; }
|
||||
@@ -55,6 +47,7 @@ namespace Disco.Models.Repository
|
||||
public virtual IList<DeviceUserAssignment> DeviceUserAssignments { get; set; }
|
||||
public virtual IList<DeviceDetail> DeviceDetails { get; set; }
|
||||
public virtual IList<DeviceAttachment> DeviceAttachments { get; set; }
|
||||
public virtual IList<DeviceCertificate> DeviceCertificates { get; set; }
|
||||
|
||||
[InverseProperty("DeviceSerialNumber")]
|
||||
public virtual IList<Job> Jobs { get; set; }
|
||||
@@ -92,15 +85,5 @@ namespace Disco.Models.Repository
|
||||
return index < 0 ? null : DeviceDomainId.Substring(0, index);
|
||||
}
|
||||
}
|
||||
|
||||
public enum DecommissionReasons
|
||||
{
|
||||
EndOfLife = 0,
|
||||
Sold = 10,
|
||||
Stolen = 20,
|
||||
Lost = 30,
|
||||
Damaged = 40,
|
||||
Donated = 50
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Disco.Models.Repository
|
||||
{
|
||||
public enum DecommissionReasons
|
||||
{
|
||||
EndOfLife = 0,
|
||||
Sold = 10,
|
||||
Stolen = 20,
|
||||
Lost = 30,
|
||||
Damaged = 40,
|
||||
Donated = 50
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,12 @@ namespace Disco.Models.Repository
|
||||
{
|
||||
public class DeviceDetail
|
||||
{
|
||||
public const string ScopeHardware = "Hardware";
|
||||
|
||||
public const string HardwareKeyLanMacAddress = "LanMacAddress";
|
||||
public const string HardwareKeyWLanMacAddress = "WLanMacAddress";
|
||||
public const string HardwareKeyACAdapter = "ACAdapter";
|
||||
|
||||
[Column(Order = 0), Key]
|
||||
public string DeviceSerialNumber { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user