From 1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 10:38:18 -0300 Subject: chore: location --- .../Model.Domain.Financeiro/ControleFinanceiro.cs | 143 --------------------- 1 file changed, 143 deletions(-) delete mode 100644 Gestor.Model/Model.Domain.Financeiro/ControleFinanceiro.cs (limited to 'Gestor.Model/Model.Domain.Financeiro/ControleFinanceiro.cs') diff --git a/Gestor.Model/Model.Domain.Financeiro/ControleFinanceiro.cs b/Gestor.Model/Model.Domain.Financeiro/ControleFinanceiro.cs deleted file mode 100644 index ad425c0..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/ControleFinanceiro.cs +++ /dev/null @@ -1,143 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro -{ - public class ControleFinanceiro : DomainBase, IDomain - { - private string _historico; - - [Description("CENTRO DE CUSTO")] - [Log(true)] - [Name(true)] - public Gestor.Model.Domain.Financeiro.Centro Centro - { - get; - set; - } - - [Description("FORNECEDOR")] - [Log(true)] - [Name(true)] - public Gestor.Model.Domain.Financeiro.Fornecedor Fornecedor - { - get; - set; - } - - public string Historico - { - get - { - string str = this._historico; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._historico = value; - } - } - - [Description("QUANTIDADE DE PARCELAS")] - [Log(true)] - public int Parcelas - { - get; - set; - } - - [Description("PLANO DE CONTAS")] - [Log(true)] - [Name(true)] - public Planos Plano - { - get; - set; - } - - [JsonIgnore] - public Func>> ValidationEvent - { - get - { - ControleFinanceiro controleFinanceiro = this; - return new Func>>(controleFinanceiro.Validate); - } - } - - public ControleFinanceiro() - { - } - - public List> Validate() - { - bool id; - bool flag; - bool id1; - List> keyValuePairs = ValidationHelper.AddValue(); - if (this.Fornecedor == null) - { - keyValuePairs.AddValue("Fornecedor", Messages.Obrigatorio, true); - } - Gestor.Model.Domain.Financeiro.Fornecedor fornecedor = this.Fornecedor; - if (fornecedor != null) - { - id = fornecedor.Id == (long)0; - } - else - { - id = false; - } - if (id) - { - keyValuePairs.AddValue("Fornecedor|FORNECEDOR", string.Concat(Messages.Obrigatorio, "\nPROVAVELMENTE NÃO HÁ NENHUM FORNECEDOR INCLUÍDO\nACESSE A TELA DE CADASTRO DE FORNECEDORES PARA INCLUIR"), true); - } - if (this.Plano == null) - { - keyValuePairs.AddValue("Plano|PLANO DE CONTAS", string.Concat(Messages.Obrigatorio, "\nPROVAVELMENTE NÃO HÁ NENHUM PLANO DE CONTAS INCLUÍDO\nACESSE A TELA PLANO DE CONTAS PARA INCLUIR"), true); - } - Planos plano = this.Plano; - if (plano != null) - { - flag = plano.Id == (long)0; - } - else - { - flag = false; - } - if (flag) - { - keyValuePairs.AddValue("Plano|PLANO DE CONTAS", string.Concat(Messages.Obrigatorio, "\nPROVAVELMENTE NÃO HÁ NENHUM PLANO DE CONTAS INCLUÍDO\nACESSE A TELA PLANO DE CONTAS PARA INCLUIR"), true); - } - if (this.Centro == null) - { - keyValuePairs.AddValue("Centro|CENTRO DE CUSTOS", string.Concat(Messages.Obrigatorio, "\nPROVAVELMENTE NÃO HÁ NENHUM CENTRO DE CUSTOS INCLUÍDO\nACESSE A TELA CENTRO DE CUSTOS PARA INCLUIR"), true); - } - Gestor.Model.Domain.Financeiro.Centro centro = this.Centro; - if (centro != null) - { - id1 = centro.Id == (long)0; - } - else - { - id1 = false; - } - if (id1) - { - keyValuePairs.AddValue("Centro|CENTRO DE CUSTOS", string.Concat(Messages.Obrigatorio, "\nPROVAVELMENTE NÃO HÁ NENHUM CENTRO DE CUSTOS INCLUÍDO\nACESSE A TELA CENTRO DE CUSTOS PARA INCLUIR"), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file -- cgit v1.2.3