This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,130 @@
using DTS.Common.Base.Classes;
using DTS.Common.Interface.TestMetaData;
using DTS.Common.Utilities.Logging;
using System;
using System.ComponentModel;
using System.Data;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
namespace DTS.Common.Classes.CustomerDetails
{
public class CustomerDetailsDbRecord : Base.BasePropertyChanged, ICustomerDetailsDbRecord
{
private int _customerId = -1;
[ReadOnly(true)]
[Browsable(false)]
public int CustomerId
{
get => _customerId;
set => SetProperty(ref _customerId, value, "CustomerId");
}
private string _name = "";
[ReadOnly(true)]
[Browsable(false)]
public string Name
{
get => _name;
set => SetProperty(ref _name, value, "Name");
}
private string _customerName = "";
[DisplayResource("CustomerName")]
public string CustomerName
{
get => _customerName;
set => SetProperty(ref _customerName, value, "CustomerName");
}
private string _customerTestRefNumber = "";
[DisplayResource("CustomerTestRefNumber")]
public string CustomerTestRefNumber
{
get => _customerTestRefNumber;
set => SetProperty(ref _customerTestRefNumber, value, "CustomerTestRefNumber");
}
private string _projectRefNumber = "NOVALUE";
[DisplayResource("ProjectRefNumber")]
public string ProjectRefNumber
{
get => _projectRefNumber;
set => SetProperty(ref _projectRefNumber, value, "ProjectRefNumber");
}
private string _customerOrderNumber = "NOVALUE";
[DisplayResource("CustomerOrderNumber")]
public string CustomerOrderNumber
{
get => _customerOrderNumber;
set => SetProperty(ref _customerOrderNumber, value, "CustomerOrderNumber");
}
private string _customerCostUnit = "NOVALUE";
[DisplayResource("CustomerCostUnit")]
public string CustomerCostUnit
{
get => _customerCostUnit;
set => SetProperty(ref _customerCostUnit, value, "CustomerCostUnit");
}
private bool _localOnly = false;
[Browsable(false)]
[ReadOnly(true)]
public bool LocalOnly
{
get => _localOnly;
set => SetProperty(ref _localOnly, value, "LocalOnly");
}
private DateTime _lastModified = DateTime.MinValue;
[Browsable(false)]
[ReadOnly(true)]
public DateTime LastModified
{
get => _lastModified;
set => SetProperty(ref _lastModified, value, "LastModified");
}
private string _lastModifiedBy = "";
[Browsable(false)]
[ReadOnly(true)]
public string LastModifiedBy
{
get => _lastModifiedBy;
set => SetProperty(ref _lastModifiedBy, value, "LastModifiedBy");
}
private int _version = -1;
[Browsable(false)]
[ReadOnly(true)]
public int Version
{
get => _version;
set => SetProperty(ref _version, value, "Version");
}
public CustomerDetailsDbRecord(ICustomerDetailsDbRecord customerDetailsDbRecord)
{
Name = customerDetailsDbRecord.Name;
CustomerName = customerDetailsDbRecord.CustomerName;
CustomerTestRefNumber = customerDetailsDbRecord.CustomerTestRefNumber;
ProjectRefNumber = customerDetailsDbRecord.ProjectRefNumber;
CustomerOrderNumber = customerDetailsDbRecord.CustomerOrderNumber;
CustomerCostUnit = customerDetailsDbRecord.CustomerCostUnit;
LocalOnly = customerDetailsDbRecord.LocalOnly;
LastModified = customerDetailsDbRecord.LastModified;
LastModifiedBy = customerDetailsDbRecord.LastModifiedBy;
Version = customerDetailsDbRecord.Version;
}
public CustomerDetailsDbRecord() { }
public CustomerDetailsDbRecord(IDataReader reader)
{
Name = Utility.GetString(reader, "Name");
CustomerName = Utility.GetString(reader, "CustomerName");
CustomerTestRefNumber = Utility.GetString(reader, "CustomerTestRefNumber");
ProjectRefNumber = Utility.GetString(reader, "ProjectRefNumber");
CustomerOrderNumber = Utility.GetString(reader, "CustomerOrderNumber");
CustomerCostUnit = Utility.GetString(reader, "CustomerCostUnit");
LocalOnly = Utility.GetBool(reader, "LocalOnly");
LastModified = Utility.GetDateTime(reader, "LastModified", DateTime.MinValue);
LastModifiedBy = Utility.GetString(reader, "LastModifiedBy");
Version = Utility.GetInt(reader, "Version");
}
public bool IsInvalidBlank()
{
return string.IsNullOrWhiteSpace(Name);
}
}
}

View File

@@ -0,0 +1,161 @@
using DTS.Common.Base.Classes;
using DTS.Common.Interface.TestMetaData;
using DTS.Common.Utilities.Logging;
using System;
using System.ComponentModel;
using System.Data;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
namespace DTS.Common.Classes.LabratoryDetails
{
public class LabratoryDetailsDbRecord : Base.BasePropertyChanged, ILabratoryDetailsDbRecord
{
private int _labratoryId = -1;
[Browsable(false)]
[ReadOnly(true)]
public int LabratoryId
{
get => _labratoryId;
set => SetProperty(ref _labratoryId, value, "LabratoryId");
}
private string _name = "";
[Browsable(false)]
[ReadOnly(true)]
public string Name
{
get => _name;
set => SetProperty(ref _name, value, "Name");
}
private string _labratoryName = string.Empty;
[DisplayResource("LabratoryName")]
public string LabratoryName
{
get => _labratoryName;
set => SetProperty(ref _labratoryName, value, "LabratoryName");
}
private string _labratoryContactName = string.Empty;
[DisplayResource("LabratoryContactName")]
public string LabratoryContactName
{
get => _labratoryContactName;
set => SetProperty(ref _labratoryContactName, value, "LabratoryContactName");
}
private string _labratoryContactPhone = "NOVALUE";
[DisplayResource("LabratoryContactPhone")]
public string LabratoryContactPhone
{
get => _labratoryContactPhone;
set => SetProperty(ref _labratoryContactPhone, value, "LabratoryContactPhone");
}
private string _labratoryContactFax = "NOVALUE";
[DisplayResource("LabratoryContactFax")]
public string LabratoryContactFax
{
get => _labratoryContactFax;
set => SetProperty(ref _labratoryContactFax, value, "LabratoryContactFax");
}
private string _labratoryContactEmail = "NOVALUE";
[DisplayResource("LabratoryContactEmail")]
public string LabratoryContactEmail
{
get => _labratoryContactEmail;
set => SetProperty(ref _labratoryContactEmail, value, "LabratoryContactEmail");
}
private string _labratoryTestRefNumber = string.Empty;
[DisplayResource("LabratoryTestRefNumber")]
public string LabratoryTestRefNumber
{
get => _labratoryTestRefNumber;
set => SetProperty(ref _labratoryTestRefNumber, value, "LabratoryTestRefNumber");
}
private string _labratoryProjectRefNumber = string.Empty;
[DisplayResource("LabratoryProjectRefNumber")]
public string LabratoryProjectRefNumber
{
get => _labratoryProjectRefNumber;
set => SetProperty(ref _labratoryProjectRefNumber, value, "LabratoryProjectRefNumber");
}
private DateTime _lastModified = DateTime.MinValue;
[Browsable(false)]
[ReadOnly(true)]
public DateTime LastModified
{
get => _lastModified;
set => SetProperty(ref _lastModified, value, "LastModified");
}
private string _lastModifiedBy = "";
[Browsable(false)]
[ReadOnly(true)]
public string LastModifiedBy
{
get => _lastModifiedBy;
set => SetProperty(ref _lastModifiedBy, value, "LastModifiedBy");
}
private bool _localOnly = false;
[Browsable(false)]
[ReadOnly(true)]
public bool LocalOnly
{
get => _localOnly;
set => SetProperty(ref _localOnly, value, "LocalOnly");
}
private int _version = -1;
[Browsable(false)]
[ReadOnly(true)]
public int Version
{
get => _version;
set => SetProperty(ref _version, value, "Version");
}
public LabratoryDetailsDbRecord(ILabratoryDetailsDbRecord labratoryDetailsDbRecord)
{
Name = labratoryDetailsDbRecord.Name;
LabratoryName = labratoryDetailsDbRecord.LabratoryName;
LabratoryContactName = labratoryDetailsDbRecord.LabratoryContactName;
LabratoryContactPhone = labratoryDetailsDbRecord.LabratoryContactPhone;
LabratoryContactFax = labratoryDetailsDbRecord.LabratoryContactFax;
LabratoryContactEmail = labratoryDetailsDbRecord.LabratoryContactEmail;
LabratoryTestRefNumber = labratoryDetailsDbRecord.LabratoryTestRefNumber;
LabratoryProjectRefNumber = labratoryDetailsDbRecord.LabratoryProjectRefNumber;
LastModified = labratoryDetailsDbRecord.LastModified;
LastModifiedBy = labratoryDetailsDbRecord.LastModifiedBy;
LocalOnly = labratoryDetailsDbRecord.LocalOnly;
Version = labratoryDetailsDbRecord.Version;
}
public LabratoryDetailsDbRecord() { }
public LabratoryDetailsDbRecord(IDataReader reader)
{
Name = Utility.GetString(reader, "Name");
LabratoryName = Utility.GetString(reader, "LabratoryName");
LabratoryContactName = Utility.GetString(reader, "LabratoryContactName");
LabratoryContactPhone = Utility.GetString(reader, "LabratoryContactPhone");
LabratoryContactFax = Utility.GetString(reader, "LabratoryContactFax");
LabratoryContactEmail = Utility.GetString(reader, "LabratoryContactEmail");
LabratoryTestRefNumber = Utility.GetString(reader, "LabratoryTestRefNumber");
LabratoryProjectRefNumber = Utility.GetString(reader, "LabratoryProjectRefNumber");
LastModified = Utility.GetDateTime(reader, "LastModified", DateTime.MinValue);
LastModifiedBy = Utility.GetString(reader, "LastModifiedBy");
LocalOnly = Utility.GetBool(reader, "LocalOnly");
Version = Utility.GetInt(reader, "Version");
}
public bool IsInvalidBlank()
{
return string.IsNullOrWhiteSpace(Name);
}
}
}

View File

@@ -0,0 +1,131 @@
using DTS.Common.Base.Classes;
using DTS.Common.Interface.TestMetaData;
using DTS.Common.Utilities.Logging;
using System;
using System.ComponentModel;
using System.Data;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
namespace DTS.Common.Classes.TestEngineerDetails
{
public class TestEngineerDetailsDbRecord : Base.BasePropertyChanged, ITestEngineerDetailsDbRecord
{
private int _testEngineerId = -1;
[Browsable(false)]
[ReadOnly(true)]
public int TestEngineerId
{
get => _testEngineerId;
set => SetProperty(ref _testEngineerId, value, "TestEngineerId");
}
private string _name = "";
[Browsable(false)]
[ReadOnly(true)]
public string Name
{
get => _name;
set => SetProperty(ref _name, value, "Name");
}
private string _testEngineerName = "NOVALUE";
[DisplayResource("TestEngineerName")]
public string TestEngineerName
{
get => _testEngineerName;
set => SetProperty(ref _testEngineerName, value, "TestEngineerName");
}
private string _testEngineerPhone = "NOVALUE";
[DisplayResource("TestEngineerPhone")]
public string TestEngineerPhone
{
get => _testEngineerPhone;
set => SetProperty(ref _testEngineerPhone, value, "TestEngineerPhone");
}
private string _testEngineerFax = "NOVALUE";
[DisplayResource("TestEngineerFax")]
public string TestEngineerFax
{
get => _testEngineerFax;
set => SetProperty(ref _testEngineerFax, value, "TestEngineerFax");
}
private string _testEngineerEmail = "NOVALUE";
[DisplayResource("TestEngineerEmail")]
public string TestEngineerEmail
{
get => _testEngineerEmail;
set => SetProperty(ref _testEngineerEmail, value, "TestEngineerEmail");
}
private bool _localOnly = false;
[Browsable(false)]
[ReadOnly(true)]
public bool LocalOnly
{
get => _localOnly;
set => SetProperty(ref _localOnly, value, "LocalOnly");
}
private DateTime _lastModified = DateTime.MinValue;
[Browsable(false)]
[ReadOnly(true)]
public DateTime LastModified
{
get => _lastModified;
set => SetProperty(ref _lastModified, value, "LastModified");
}
private string _lastModifiedBy = "";
[Browsable(false)]
[ReadOnly(true)]
public string LastModifiedBy
{
get => _lastModifiedBy;
set => SetProperty(ref _lastModifiedBy, value, "LastModifiedBy");
}
private int _version = -1;
[Browsable(false)]
[ReadOnly(true)]
public int Version
{
get => _version;
set => SetProperty(ref _version, value, "Version");
}
public TestEngineerDetailsDbRecord(ITestEngineerDetailsDbRecord testEngineerDetailsDbRecord)
{
Name = testEngineerDetailsDbRecord.Name;
TestEngineerName = testEngineerDetailsDbRecord.TestEngineerName;
TestEngineerPhone = testEngineerDetailsDbRecord.TestEngineerPhone;
TestEngineerFax = testEngineerDetailsDbRecord.TestEngineerFax;
TestEngineerEmail = testEngineerDetailsDbRecord.TestEngineerEmail;
LastModified = testEngineerDetailsDbRecord.LastModified;
Version = testEngineerDetailsDbRecord.Version;
LastModifiedBy = testEngineerDetailsDbRecord.LastModifiedBy;
LocalOnly = testEngineerDetailsDbRecord.LocalOnly;
}
public TestEngineerDetailsDbRecord() { }
public TestEngineerDetailsDbRecord(IDataReader reader)
{
Name = Utility.GetString(reader, "Name");
TestEngineerName = Utility.GetString(reader, "TestEngineerName");
TestEngineerPhone = Utility.GetString(reader, "TestEngineerPhone");
TestEngineerFax = Utility.GetString(reader, "TestEngineerFax");
TestEngineerEmail = Utility.GetString(reader, "TestEngineerEmail");
LastModified = Utility.GetDateTime(reader, "LastModified", DateTime.MinValue);
Version = Utility.GetInt(reader, "Version");
LastModifiedBy = Utility.GetString(reader, "LastModifiedBy");
LocalOnly = Utility.GetBool(reader, "LocalOnly");
}
public bool IsInvalidBlank()
{
return string.IsNullOrWhiteSpace(Name);
}
}
}