Beispiel #1
0
        private Estado_de_resultados_total resultado_total_clasificadores(List <Clasificador> total)
        {
            Estado_de_resultados_total resultados = new Estado_de_resultados_total();

            foreach (Estado_de_resultados_total i in total)
            {
                resultados.Total_Costo        = i.Total_Costo;
                resultados.Total_Precio_venta = i.Total_Precio_venta;
                resultados_totales(i);
            }

            return(resultados);
        }
Beispiel #2
0
        public void Obtener_totales()
        {
            List <Clasificador> lista = new List <Clasificador>();

            foreach (Clasificador clasificador in Lista_clasificadores)
            {
                int index = lista.FindIndex(a => a.clasificador == clasificador.clasificador);
                if (index == -1)
                {
                    lista.Add(clasificador);

                    List <Clasificador> total = Lista_clasificadores.Where(i => i.clasificador == clasificador.clasificador).ToList();

                    switch (clasificador.clasificador.ToUpper())
                    {
                    case "COSTO DE VENTAS":
                        Costo_ventas = resultado_total_clasificadores(total);
                        break;

                    case "UTILIDAD EN OPERACIONES":
                        Utilidad_en_operacion = resultado_total_clasificadores(total);
                        break;

                    case "GASTOS DE OPERACIONES":
                        Gastos_de_operacion = resultado_total_clasificadores(total);
                        break;

                    case "GASTOS DE VENTA":
                        Gastos_de_venta = resultado_total_clasificadores(total);
                        break;

                    case "UTILIDAD NETA OPERACIONES":
                        Utilidad_neta_operacion = resultado_total_clasificadores(total);
                        break;

                    case "INGRESOS NO OPERACIONALES":
                        Ingresos_no_operacionales = resultado_total_clasificadores(total);
                        break;

                    case "UTILIDAD ANTES DE IMPUESTOS":
                        Utilidad_antes_de_impuestos = resultado_total_clasificadores(total);
                        break;

                    case "UTILIDAD NETA":
                        Utilidad_neta = resultado_total_clasificadores(total);
                        break;

                    case "GASTOS FAMILIA IZABAL":
                        Gastos_especiales = resultado_total_clasificadores(total);
                        break;

                    case "GASTOS DE ADMINISTRACION":
                        Gastos_de_administracion = resultado_total_clasificadores(total);
                        break;

                    default:
                        Ventas_netas = resultado_total_clasificadores(total);
                        break;
                    }
                }
            }
        }
Beispiel #3
0
 private void resultados_totales(Estado_de_resultados_total total)
 {
     Total_Costo        += total.Total_Costo;
     Total_Precio_venta += total.Total_Precio_venta;
 }