Пример #1
0
        //Classes CSS situacao financeira Associado
        public static string exibirClasseStatus(this TituloDespesaPagamentoResumoVW OPagamento)
        {
            if (OPagamento.dtPagamento == null && OPagamento.dtVencimentoDespesa < DateTime.Today)
            {
                return("text-red");
            }

            return(OPagamento.idStatusPagamento == StatusPagamentoConst.PAGO ? "text-green" : (OPagamento.idStatusPagamento == StatusPagamentoConst.CANCELADO || OPagamento.idStatusPagamento == StatusPagamentoConst.ESTORNADO ? "text-red" : "text-yellow"));
        }
Пример #2
0
        //Icone FA situacao financeira Associado
        public static string exibirIconeStatus(this TituloDespesaPagamentoResumoVW OPagamento)
        {
            if (OPagamento.dtPagamento == null && OPagamento.dtVencimentoDespesa < DateTime.Today)
            {
                return("fa-times-circle");
            }

            return(OPagamento.idStatusPagamento == StatusPagamentoConst.PAGO ? "fa-check" : (OPagamento.idStatusPagamento == StatusPagamentoConst.CANCELADO || OPagamento.idStatusPagamento == StatusPagamentoConst.ESTORNADO ? "fa-times-circle" : "fa-exclamation"));
        }
Пример #3
0
        public static string descricaoCategoriaPessoa(this TituloDespesaPagamentoResumoVW OTitulo)
        {
            switch (OTitulo.flagCategoriaPessoa)
            {
            case "AS":
                return("Associado");

            case "FO":
                return("Fornecedor");

            case "FU":
                return("Funcionário");

            case "PA":
                return("Patrocinador");

            default:
                return("");
            }
        }
Пример #4
0
        public static decimal valorTotalTarifas(this TituloDespesaPagamentoResumoVW OTitulo)
        {
            decimal valorDesconto = Decimal.Add(UtilNumber.toDecimal(OTitulo.valorTarifasBancarias), UtilNumber.toDecimal(OTitulo.valorOutrasTarifas));

            return(valorDesconto);
        }
Пример #5
0
        public static decimal valorLiquido(this TituloDespesaPagamentoResumoVW OTitulo)
        {
            decimal valorLiquido = Decimal.Subtract(UtilNumber.toDecimal(OTitulo.valorOriginal), UtilNumber.toDecimal(OTitulo.valorTotalTarifas()));

            return(valorLiquido);
        }