diff options
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, 0 insertions, 813 deletions
diff --git a/Gestor.Model/Model.CalculoWeb/Auto/CalculoAuto.cs b/Gestor.Model/Model.CalculoWeb/Auto/CalculoAuto.cs deleted file mode 100644 index 770eaa0..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/CalculoAuto.cs +++ /dev/null @@ -1,61 +0,0 @@ -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 deleted file mode 100644 index dba0c83..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/Caminhao.cs +++ /dev/null @@ -1,78 +0,0 @@ -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 deleted file mode 100644 index b97f258..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/CoberturaAuto.cs +++ /dev/null @@ -1,132 +0,0 @@ -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 deleted file mode 100644 index f19675c..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/ComissaoSeguradora.cs +++ /dev/null @@ -1,24 +0,0 @@ -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 deleted file mode 100644 index 84810f9..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/CondutorPrincipal.cs +++ /dev/null @@ -1,127 +0,0 @@ -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 deleted file mode 100644 index 1f4bee6..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/Fipe.cs +++ /dev/null @@ -1,84 +0,0 @@ -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 deleted file mode 100644 index 9fb7d71..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/QuestionarioAuto.cs +++ /dev/null @@ -1,90 +0,0 @@ -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 deleted file mode 100644 index a616133..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/Veiculo.cs +++ /dev/null @@ -1,217 +0,0 @@ -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 |