-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
1,148 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
|
||
namespace PoliceOp.Models | ||
{ | ||
public class Agent : Personne | ||
{ | ||
|
||
/// <summary> | ||
/// Propriétés relatives à l'agent | ||
/// </summary> | ||
|
||
[Required] | ||
public string Matricule { get; set; } | ||
|
||
[Required] | ||
public string Grade { get; set; } | ||
|
||
[Required] | ||
public string Corps { get; set; } | ||
|
||
[Required] | ||
public string PasswordHash { get; set; } | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace PoliceOp.Models | ||
{ | ||
public enum Audiences | ||
{ | ||
TerminalMobile, | ||
TerminalDesktop, | ||
PoliceOpAPI | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace PoliceOp.Models | ||
{ | ||
public class AvisRecherche | ||
{ | ||
[Key] | ||
public Guid UID { get; set; } | ||
|
||
[Required] | ||
public DateTime DateEmission { get; set; } | ||
|
||
[Required] | ||
public string StatutRecherche { get; set; } | ||
|
||
public string Informations { get; set; } | ||
|
||
public virtual Personne PersonneRecherchee { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
|
||
namespace PoliceOp.Models | ||
{ | ||
public class Biometrie | ||
{ | ||
[Key] | ||
public Guid UID { get; set; } | ||
|
||
public virtual byte[] DonneesFaciales { get; set; } | ||
|
||
public virtual byte[] DonneesDigitales { get; set; } | ||
|
||
public bool Comparer() | ||
{ | ||
return true; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace PoliceOp.Models | ||
{ | ||
public enum CaptPhoto | ||
{ | ||
EliteCap1, EliteCap2, EliteCap3, EliteCap4 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace PoliceOp.Models | ||
{ | ||
public class Diffusion | ||
{ | ||
[Key] | ||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] | ||
public int DiffusionId { get; set; } | ||
|
||
[ForeignKey("PersonneId")] | ||
public int AuthorId { get; set; } | ||
|
||
public string Sujet { get; set; } | ||
|
||
[Required] | ||
public string Details { get; set; } | ||
|
||
public string Cible { get; set; } = "Agents"; | ||
|
||
public DateTime DateDiffusion { get; set; } | ||
|
||
public virtual ICollection<PieceJointe> PiecesJointes { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace PoliceOp.Models | ||
{ | ||
public enum Issuers | ||
{ | ||
FastlaneApp, | ||
OpCenterApp, | ||
PoliceOpAPI | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace PoliceOp.Models | ||
{ | ||
public class Operateur : Agent | ||
{ | ||
[Required] | ||
public string Service { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace PoliceOp.Models | ||
{ | ||
public class Personne | ||
{ | ||
[Key] | ||
public int PersonneId { get; set; } | ||
|
||
[Required] | ||
public string UID { get; set; } | ||
|
||
[Required] | ||
public string NPI { get; set; } | ||
|
||
[Required] | ||
public string IFU { get; set; } | ||
|
||
[Required] | ||
public string Nom { get; set; } | ||
|
||
[Required] | ||
public string Prenom { get; set; } | ||
|
||
[Required] | ||
[DataType(DataType.Date)] | ||
public DateTime DateNaissance { get; set; } | ||
|
||
[Required] | ||
public string Telephone { get; set; } | ||
|
||
[Required] | ||
public string Sexe { get; set; } | ||
|
||
[Required] | ||
public string LieuNaissance { get; set; } | ||
|
||
[Required] | ||
public string Nationalite { get; set; } | ||
|
||
[Required] | ||
public string Profession { get; set; } | ||
|
||
[Required] | ||
public string SituationMatrimoniale { get; set; } | ||
|
||
[Required] | ||
public string SignesParticuliers { get; set; } | ||
|
||
[Required] | ||
public string CouleurYeux { get; set; } | ||
|
||
[Required] | ||
public string CouleurCheveux { get; set; } | ||
|
||
[Required] | ||
public string Teint { get; set; } | ||
|
||
[Required] | ||
public double Taille { get; set; } | ||
|
||
[Required] | ||
public string PersonnePhoto { get; set; } | ||
|
||
public virtual Biometrie Biometrie { get; set; } | ||
|
||
[Required] | ||
public virtual Residence Residence { get; set; } | ||
|
||
[Required] | ||
public int PereId { get; set; } | ||
|
||
[Required] | ||
public int MereId { get; set; } | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace PoliceOp.Models | ||
{ | ||
public enum PhotoEnum | ||
{ | ||
Homme1, | ||
Homme2, | ||
Homme3, | ||
Femme1, | ||
Femme2, | ||
Femme3 | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace PoliceOp.Models | ||
{ | ||
public class PieceJointe | ||
{ | ||
[Key] | ||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] | ||
public Guid PieceJointeId { get; set; } | ||
|
||
[Required] | ||
public string NomFichier { get; set; } | ||
|
||
[Required] | ||
public string ExtensionFichier { get; set; } | ||
|
||
[Required] | ||
public byte[] Fichier { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace PoliceOp.Models | ||
{ | ||
public class Requete | ||
{ | ||
[Key] | ||
public Guid UID { get; set; } | ||
|
||
[Required] | ||
public string TermeRequete { get; set; } | ||
|
||
public DateTime DateRequete { get; set; } = DateTime.Now; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
|
||
namespace PoliceOp.Models | ||
{ | ||
[ComplexType] | ||
public class Residence | ||
{ | ||
[Key] | ||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] | ||
public Guid ResidenceId { get; set; } | ||
|
||
[Required] | ||
public string Type { get; set; } | ||
|
||
public string Rue { get; set; } | ||
|
||
public string NumeroParcelle { get; set; } | ||
|
||
public string NumeroChambre { get; set; } | ||
|
||
public virtual string CoordonneesGeo { get; set; } | ||
|
||
public string Description { get; set; } | ||
|
||
[ForeignKey("PersonneId")] | ||
public virtual Personne Proprietaire { get; set; } | ||
|
||
[NotMapped] | ||
public string AdresseComplete | ||
{ | ||
get { return $"{NumeroParcelle} Rue {Rue}, C{NumeroChambre}"; } | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace PoliceOp.Models | ||
{ | ||
public class Session | ||
{ | ||
[Key] | ||
public Guid SessionID { get; set; } | ||
|
||
public override string ToString() | ||
{ | ||
return SessionID.ToString(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace PoliceOp.Models | ||
{ | ||
public class SessionVM | ||
{ | ||
public string SessionID { get; set; } | ||
public int AgentID { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace PoliceOp.Models | ||
{ | ||
public enum Sexe | ||
{ | ||
M, | ||
F | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.