first time include all file

This commit is contained in:
2026-06-18 21:39:20 +10:00
commit d48a07a0fe
285 changed files with 31416 additions and 0 deletions
+65
View File
@@ -0,0 +1,65 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace CarParkValidationAPI.Models
{
public partial class AdminUserCriteria
{
public AdminUserCriteria()
{
}
#region public Member
public int? Id { get; set; }
public int? StafflinkNo { get; set; }
public string Name { get; set; }
public string AddedBy { get; set; }
public bool? Active { get; set; }
public int? RoleType { get; set; }
#endregion
}
[Table("AdminUser")]
public partial class AdminUser
{
public AdminUser()
{
}
#region public Member
[Key]
public int Id { get; set; }
public string StafflinkNo { get; set; }
public string FirstName { get; set; }
public string? LastName { get; set; }
public string? Email { get; set; }
public DateTime? AddedOn { get; set; }
public bool? Active { get; set; }
public int? RoleType { get; set; }
public int? ValidationPointId { get; set; }
public DateTime? LastModified { get; set; }
public string? LastModifiedId { get; set; }
[JsonIgnore]
public string PasswordHash { get; set; }
#endregion
}
}
@@ -0,0 +1,28 @@
using System;
namespace CarParkValidationAPI.Models
{
public class AppSettings
{
public string Secret { get; set; }
public string SQLConnectionString { get; set; }
public string LDAPPath { get; set; }
public string LDAPUser { get; set; }
public string LDAPPassword { get; set; }
public string LoginWebAPI { get; set; }
/// <summary>
/// for convert to time. use GetADTimeOut
/// TimeSpan.FromSeconds(Convert.ToDouble(ConfigurationManager.AppSettings["ADTimeOut"]));
public string ADTimeOut { get; set; }
public TimeSpan GetADTimeOut()
{
if (!string.IsNullOrEmpty(ADTimeOut))
return TimeSpan.FromSeconds(Convert.ToDouble(ADTimeOut));
else
return TimeSpan.FromSeconds(0);
}
}
}
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;
namespace CarParkValidationAPI.Models
{
public partial class ConcessionType
{
public ConcessionType()
{
}
#region public Member
[Key]
public int Id { get; set; }
public string ConcessionDesc { get; set; }
public string ConcessionDisplay { get; set; }
public bool Active { get; set; }
public DateTime? LastModified { get; set; }
public string? LastModifiedId { get; set; }
#endregion
}
}
@@ -0,0 +1,55 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace CarParkValidationAPI.Models
{
[NotMapped]
public class ConcessionValidationExt: ConcessionValidation
{
#region public Member
public string ConcessionType { get; set; }
public string ValidationPiont { get; set; }
#endregion
}
public partial class ConcessionValidation
{
public ConcessionValidation()
{
}
#region public Member
[Key]
public int Id { get; set; }
public DateTime ValidateDate { get; set; }
public string ConcessionCard { get; set; }
public string ConcessionHolder { get; set; }
public bool ConcessionExpiry { get; set; }
public int ConcessionTypeID { get; set; }
public string StafflinkNo { get; set; }
public int ValidationPointID { get; set; }
public bool Active { get; set; }
public string StaffFirstName { get; set; }
public string StaffLastName { get; set; }
public string StaffEmail { get; set; }
public DateTime? CreatedDate { get; set; }
public string? CreatedId { get; set; }
public DateTime? LastModified { get; set; }
public string? LastModifiedId{ get; set; }
#endregion
}
}
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;
namespace CarParkValidationAPI.Models
{
public class ValidationPoint
{
[Key]
public int Id { get; set; }
public string Description { get; set; }
public string? DisplayName { get; set; }
public bool? Active { get; set; }
public DateTime? LastModified { get; set; }
public string? LastModifiedId { get; set; }
}
}