diff options
| author | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-30 13:35:25 +0000 |
|---|---|---|
| committer | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-30 13:35:25 +0000 |
| commit | 674ca83ba9243a9e95a7568c797668dab6aee26a (patch) | |
| tree | 4a905b3fb1d827665a34d63f67bc5559f8e7235b /Gestor.Model/Model.CalculoWeb/Auto | |
| download | gestor-674ca83ba9243a9e95a7568c797668dab6aee26a.tar.gz gestor-674ca83ba9243a9e95a7568c797668dab6aee26a.zip | |
feat: upload files
Diffstat (limited to 'Gestor.Model/Model.CalculoWeb/Auto')
| -rw-r--r-- | Gestor.Model/Model.CalculoWeb/Auto/CalculoAuto.cs | 61 | ||||
| -rw-r--r-- | Gestor.Model/Model.CalculoWeb/Auto/Caminhao.cs | 78 | ||||
| -rw-r--r-- | Gestor.Model/Model.CalculoWeb/Auto/CoberturaAuto.cs | 132 | ||||
| -rw-r--r-- | Gestor.Model/Model.CalculoWeb/Auto/ComissaoSeguradora.cs | 24 | ||||
| -rw-r--r-- | Gestor.Model/Model.CalculoWeb/Auto/CondutorPrincipal.cs | 127 | ||||
| -rw-r--r-- | Gestor.Model/Model.CalculoWeb/Auto/Fipe.cs | 84 | ||||
| -rw-r--r-- | Gestor.Model/Model.CalculoWeb/Auto/QuestionarioAuto.cs | 90 | ||||
| -rw-r--r-- | Gestor.Model/Model.CalculoWeb/Auto/Veiculo.cs | 217 |
8 files changed, 813 insertions, 0 deletions
diff --git a/Gestor.Model/Model.CalculoWeb/Auto/CalculoAuto.cs b/Gestor.Model/Model.CalculoWeb/Auto/CalculoAuto.cs new file mode 100644 index 0000000..770eaa0 --- /dev/null +++ b/Gestor.Model/Model.CalculoWeb/Auto/CalculoAuto.cs @@ -0,0 +1,61 @@ +using Gestor.Model.CalculoWeb;
+using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.CalculoWeb.Auto
+{
+ public class CalculoAuto
+ {
+ public Gestor.Model.CalculoWeb.Auto.Caminhao Caminhao
+ {
+ get;
+ set;
+ }
+
+ public CoberturaAuto Cobertura
+ {
+ get;
+ set;
+ }
+
+ public Gestor.Model.CalculoWeb.Auto.CondutorPrincipal CondutorPrincipal
+ {
+ get;
+ set;
+ }
+
+ public QuestionarioAuto Questionario
+ {
+ get;
+ set;
+ }
+
+ public Gestor.Model.CalculoWeb.Segurado Segurado
+ {
+ get;
+ set;
+ }
+
+ public Gestor.Model.CalculoWeb.Seguro Seguro
+ {
+ get;
+ set;
+ }
+
+ public int TipoVeiculo
+ {
+ get;
+ set;
+ }
+
+ public Gestor.Model.CalculoWeb.Auto.Veiculo Veiculo
+ {
+ get;
+ set;
+ }
+
+ public CalculoAuto()
+ {
+ }
+ }
+}
\ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Auto/Caminhao.cs b/Gestor.Model/Model.CalculoWeb/Auto/Caminhao.cs new file mode 100644 index 0000000..dba0c83 --- /dev/null +++ b/Gestor.Model/Model.CalculoWeb/Auto/Caminhao.cs @@ -0,0 +1,78 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.CalculoWeb.Auto
+{
+ public class Caminhao
+ {
+ public string Carga
+ {
+ get;
+ set;
+ }
+
+ public string Carroceria
+ {
+ get;
+ set;
+ }
+
+ public string Equipamento
+ {
+ get;
+ set;
+ }
+
+ public string Garagem
+ {
+ get;
+ set;
+ }
+
+ public string GerenciamentoRisco
+ {
+ get;
+ set;
+ }
+
+ public int Id
+ {
+ get;
+ set;
+ }
+
+ public string Periodo
+ {
+ get;
+ set;
+ }
+
+ public string ProprioEstado
+ {
+ get;
+ set;
+ }
+
+ public string RegiaoCirculacao
+ {
+ get;
+ set;
+ }
+
+ public string SeguroCarga
+ {
+ get;
+ set;
+ }
+
+ public string Uso
+ {
+ get;
+ set;
+ }
+
+ public Caminhao()
+ {
+ }
+ }
+}
\ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Auto/CoberturaAuto.cs b/Gestor.Model/Model.CalculoWeb/Auto/CoberturaAuto.cs new file mode 100644 index 0000000..b97f258 --- /dev/null +++ b/Gestor.Model/Model.CalculoWeb/Auto/CoberturaAuto.cs @@ -0,0 +1,132 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.CalculoWeb.Auto
+{
+ public class CoberturaAuto
+ {
+ public string ArCondicionado
+ {
+ get;
+ set;
+ }
+
+ public string Assistencia
+ {
+ get;
+ set;
+ }
+
+ public decimal Blindagem
+ {
+ get;
+ set;
+ }
+
+ public decimal Carroceria
+ {
+ get;
+ set;
+ }
+
+ public string CarroReserva
+ {
+ get;
+ set;
+ }
+
+ public string DanosCorporais
+ {
+ get;
+ set;
+ }
+
+ public string DanosMateriais
+ {
+ get;
+ set;
+ }
+
+ public string DanosMorais
+ {
+ get;
+ set;
+ }
+
+ public string DespesasExtras
+ {
+ get;
+ set;
+ }
+
+ public decimal Equipamento
+ {
+ get;
+ set;
+ }
+
+ public decimal FatorAjuste
+ {
+ get;
+ set;
+ }
+
+ public string GarantiaZero
+ {
+ get;
+ set;
+ }
+
+ public int Id
+ {
+ get;
+ set;
+ }
+
+ public decimal KitGas
+ {
+ get;
+ set;
+ }
+
+ public string MorteInvalidez
+ {
+ get;
+ set;
+ }
+
+ public string ProtecaoBuracos
+ {
+ get;
+ set;
+ }
+
+ public string ReparoRapido
+ {
+ get;
+ set;
+ }
+
+ public string TipoCobertura
+ {
+ get;
+ set;
+ }
+
+ public string TipoFranquia
+ {
+ get;
+ set;
+ }
+
+ public string Vidros
+ {
+ get;
+ set;
+ }
+
+ public CoberturaAuto()
+ {
+ }
+ }
+}
\ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Auto/ComissaoSeguradora.cs b/Gestor.Model/Model.CalculoWeb/Auto/ComissaoSeguradora.cs new file mode 100644 index 0000000..f19675c --- /dev/null +++ b/Gestor.Model/Model.CalculoWeb/Auto/ComissaoSeguradora.cs @@ -0,0 +1,24 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.CalculoWeb.Auto
+{
+ public class ComissaoSeguradora
+ {
+ public long Seguradora
+ {
+ get;
+ set;
+ }
+
+ public decimal Valor
+ {
+ get;
+ set;
+ }
+
+ public ComissaoSeguradora()
+ {
+ }
+ }
+}
\ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Auto/CondutorPrincipal.cs b/Gestor.Model/Model.CalculoWeb/Auto/CondutorPrincipal.cs new file mode 100644 index 0000000..84810f9 --- /dev/null +++ b/Gestor.Model/Model.CalculoWeb/Auto/CondutorPrincipal.cs @@ -0,0 +1,127 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.CalculoWeb.Auto
+{
+ public class CondutorPrincipal
+ {
+ private string _sexo;
+
+ private string _estadoCivil;
+
+ public string CpfCnpj
+ {
+ get;
+ set;
+ }
+
+ public DateTime? DataHabilitacao
+ {
+ get;
+ set;
+ }
+
+ public DateTime? DataNascimento
+ {
+ get;
+ set;
+ }
+
+ public string EstadoCivil
+ {
+ get
+ {
+ return this._estadoCivil;
+ }
+ set
+ {
+ this._estadoCivil = value;
+ value = this.ConvertEstCivCalculo(this._estadoCivil);
+ }
+ }
+
+ public long Id
+ {
+ get;
+ set;
+ }
+
+ public string NomeCompleto
+ {
+ get;
+ set;
+ }
+
+ public string NumeroHabilitacao
+ {
+ get;
+ set;
+ }
+
+ public string Sexo
+ {
+ get
+ {
+ return this._sexo;
+ }
+ set
+ {
+ this._sexo = value;
+ this.ConvertSexoCalculo(this._sexo);
+ }
+ }
+
+ public string TempoHabilitacao
+ {
+ get;
+ set;
+ }
+
+ public CondutorPrincipal()
+ {
+ }
+
+ private string ConvertEstCivCalculo(string estadoCivil)
+ {
+ if (estadoCivil != null && estadoCivil.Length == 1)
+ {
+ switch (estadoCivil[0])
+ {
+ case '0':
+ {
+ return "1";
+ }
+ case '1':
+ {
+ return "2";
+ }
+ case '2':
+ {
+ return "3";
+ }
+ case '3':
+ case '5':
+ case '6':
+ case '7':
+ {
+ return "4";
+ }
+ case '4':
+ {
+ return "5";
+ }
+ }
+ }
+ return string.Empty;
+ }
+
+ private string ConvertSexoCalculo(string sexo)
+ {
+ if (sexo != "0")
+ {
+ return "2";
+ }
+ return "1";
+ }
+ }
+}
\ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Auto/Fipe.cs b/Gestor.Model/Model.CalculoWeb/Auto/Fipe.cs new file mode 100644 index 0000000..1f4bee6 --- /dev/null +++ b/Gestor.Model/Model.CalculoWeb/Auto/Fipe.cs @@ -0,0 +1,84 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.CalculoWeb.Auto
+{
+ public class Fipe
+ {
+ public string AnoMaximo
+ {
+ get;
+ set;
+ }
+
+ public string AnoMinimo
+ {
+ get;
+ set;
+ }
+
+ public string AnoModelo
+ {
+ get;
+ set;
+ }
+
+ public string Codigo
+ {
+ get;
+ set;
+ }
+
+ public string Combustivel
+ {
+ get;
+ set;
+ }
+
+ public int Id
+ {
+ get;
+ set;
+ }
+
+ public string Marca
+ {
+ get;
+ set;
+ }
+
+ public string Modelo
+ {
+ get;
+ set;
+ }
+
+ public int TipoVeiculo
+ {
+ get;
+ set;
+ }
+
+ public decimal Valor
+ {
+ get;
+ set;
+ }
+
+ public decimal ValorAntigo
+ {
+ get;
+ set;
+ }
+
+ public bool ZeroKm
+ {
+ get;
+ set;
+ }
+
+ public Fipe()
+ {
+ }
+ }
+}
\ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Auto/QuestionarioAuto.cs b/Gestor.Model/Model.CalculoWeb/Auto/QuestionarioAuto.cs new file mode 100644 index 0000000..9fb7d71 --- /dev/null +++ b/Gestor.Model/Model.CalculoWeb/Auto/QuestionarioAuto.cs @@ -0,0 +1,90 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.CalculoWeb.Auto
+{
+ public class QuestionarioAuto
+ {
+ public string Associado
+ {
+ get;
+ set;
+ }
+
+ public string FaixaEtariaDependentes
+ {
+ get;
+ set;
+ }
+
+ public string GaragemEstudo
+ {
+ get;
+ set;
+ }
+
+ public string GaragemResidencia
+ {
+ get;
+ set;
+ }
+
+ public string GaragemTrabalho
+ {
+ get;
+ set;
+ }
+
+ public long Id
+ {
+ get;
+ set;
+ }
+
+ public string IsencaoFiscal
+ {
+ get;
+ set;
+ }
+
+ public string Pcd
+ {
+ get;
+ set;
+ }
+
+ public string PeriodoUso
+ {
+ get;
+ set;
+ }
+
+ public string QuilometragemMensal
+ {
+ get;
+ set;
+ }
+
+ public string TipoResidencia
+ {
+ get;
+ set;
+ }
+
+ public string UsoDependentes
+ {
+ get;
+ set;
+ }
+
+ public string UsoVeiculo
+ {
+ get;
+ set;
+ }
+
+ public QuestionarioAuto()
+ {
+ }
+ }
+}
\ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Auto/Veiculo.cs b/Gestor.Model/Model.CalculoWeb/Auto/Veiculo.cs new file mode 100644 index 0000000..a616133 --- /dev/null +++ b/Gestor.Model/Model.CalculoWeb/Auto/Veiculo.cs @@ -0,0 +1,217 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.CalculoWeb.Auto
+{
+ public class Veiculo
+ {
+ private string _combustivel;
+
+ public string Alienado
+ {
+ get;
+ set;
+ }
+
+ public string AnoFabricacao
+ {
+ get;
+ set;
+ }
+
+ public string AnoModelo
+ {
+ get;
+ set;
+ }
+
+ public string Antifurto
+ {
+ get;
+ set;
+ }
+
+ public string Blindado
+ {
+ get;
+ set;
+ }
+
+ public string CepPernoite
+ {
+ get;
+ set;
+ }
+
+ public string CodigoFipe
+ {
+ get;
+ set;
+ }
+
+ public string Combustivel
+ {
+ get
+ {
+ return this._combustivel;
+ }
+ set
+ {
+ this._combustivel = value;
+ Veiculo.ConvertCombustivelCalculo(this._combustivel);
+ }
+ }
+
+ public string Fabricante
+ {
+ get;
+ set;
+ }
+
+ public Gestor.Model.CalculoWeb.Auto.Fipe Fipe
+ {
+ get;
+ set;
+ }
+
+ public long Id
+ {
+ get;
+ set;
+ }
+
+ public string KitGas
+ {
+ get;
+ set;
+ }
+
+ public string Modelo
+ {
+ get;
+ set;
+ }
+
+ public string NumeroChassi
+ {
+ get;
+ set;
+ }
+
+ public string Placa
+ {
+ get;
+ set;
+ }
+
+ public string Rastreador
+ {
+ get;
+ set;
+ }
+
+ public string Uf
+ {
+ get;
+ set;
+ }
+
+ public string ZeroKm
+ {
+ get;
+ set;
+ }
+
+ public Veiculo()
+ {
+ }
+
+ private static string ConvertCombustivelCalculo(string combustivel)
+ {
+ if (combustivel != null)
+ {
+ int length = combustivel.Length;
+ if (length == 1)
+ {
+ switch (combustivel[0])
+ {
+ case '1':
+ {
+ return "3";
+ }
+ case '2':
+ {
+ return "2";
+ }
+ case '3':
+ {
+ return "4";
+ }
+ case '4':
+ {
+ return "1";
+ }
+ case '5':
+ case '7':
+ case '8':
+ {
+ return "6";
+ }
+ case '6':
+ {
+ return string.Empty;
+ }
+ case '9':
+ {
+ break;
+ }
+ default:
+ {
+ return string.Empty;
+ }
+ }
+ }
+ else if (length == 2)
+ {
+ switch (combustivel[1])
+ {
+ case '0':
+ {
+ if (combustivel == "10")
+ {
+ break;
+ }
+ return string.Empty;
+ }
+ case '1':
+ {
+ if (combustivel == "11")
+ {
+ return "7";
+ }
+ return string.Empty;
+ }
+ case '2':
+ {
+ if (combustivel == "12")
+ {
+ break;
+ }
+ return string.Empty;
+ }
+ default:
+ {
+ return string.Empty;
+ }
+ }
+ }
+ else
+ {
+ return string.Empty;
+ }
+ return "5";
+ }
+ return string.Empty;
+ }
+ }
+}
\ No newline at end of file |