summaryrefslogtreecommitdiff
path: root/Gestor.Model/Gestor.Model.Domain.Seguros/Qualificacao.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Gestor.Model/Gestor.Model.Domain.Seguros/Qualificacao.cs')
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Qualificacao.cs95
1 files changed, 95 insertions, 0 deletions
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Qualificacao.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Qualificacao.cs
new file mode 100644
index 0000000..999bf18
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Qualificacao.cs
@@ -0,0 +1,95 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Globalization;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Qualificacao : DomainBase, IDomain
+{
+ [Log(true)]
+ [Description("PRÊMIO LÍQUIDO BROZE")]
+ public decimal Liquido1 { get; set; }
+
+ [Log(true)]
+ [Description("PRÊMIO LÍQUIDO PRATA")]
+ public decimal Liquido2 { get; set; }
+
+ [Log(true)]
+ [Description("PRÊMIO LÍQUIDO OURO")]
+ public decimal Liquido3 { get; set; }
+
+ [Log(true)]
+ [Description("MÉDIA DE COMISSÃO BRONZE")]
+ public decimal Comissao1 { get; set; }
+
+ [Log(true)]
+ [Description("MÉDIA DE COMISSÃO PRATA")]
+ public decimal Comissao2 { get; set; }
+
+ [Log(true)]
+ [Description("MÉDIA DE COMISSÃO OURO")]
+ public decimal Comissao3 { get; set; }
+
+ [Log(true)]
+ [Description("RESULTADO BRONZE")]
+ public decimal Resultado1 { get; set; }
+
+ [Log(true)]
+ [Description("RESULTADO PRATA")]
+ public decimal Resultado2 { get; set; }
+
+ [Log(true)]
+ [Description("RESULTADO OURO")]
+ public decimal Resultado3 { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ return ValidationHelper.AddValue();
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("PRÊMIO LÍQUIDO$", "", ""),
+ new Tuple<string, string, string>(" BRONZE", Liquido1.ToString(new CultureInfo("pt-BR")), ""),
+ new Tuple<string, string, string>(" PRATA", Liquido2.ToString(new CultureInfo("pt-BR")), ""),
+ new Tuple<string, string, string>(" OURO", Liquido3.ToString(new CultureInfo("pt-BR")), "")
+ }
+ },
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("MÉDIA DE COMISSÃO$", "", ""),
+ new Tuple<string, string, string>(" BRONZE", Comissao1.ToString(new CultureInfo("pt-BR")), ""),
+ new Tuple<string, string, string>(" PRATA", Comissao2.ToString(new CultureInfo("pt-BR")), ""),
+ new Tuple<string, string, string>(" OURO", Comissao3.ToString(new CultureInfo("pt-BR")), "")
+ }
+ },
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("RESULTADO$", "", ""),
+ new Tuple<string, string, string>(" BRONZE", Resultado1.ToString(new CultureInfo("pt-BR")), ""),
+ new Tuple<string, string, string>(" PRATA", Resultado2.ToString(new CultureInfo("pt-BR")), ""),
+ new Tuple<string, string, string>(" OURO", Resultado3.ToString(new CultureInfo("pt-BR")), "")
+ }
+ }
+ };
+ }
+}