public void RunApp()
            {
                if (app.Codigo == AccionesSIAPEnum.SerConsAli.ToString())
                {
                    eventLog1.WriteEntry("ServiciosSiapSK RunApp Consumo de Alimento Inicio.");
                    try
                    {
                        var consumoAlimentoPL = new ConsumoAlimentoPL();

                        consumoAlimentoPL.GenerarConsumoAlimento(0, DateTime.Now.AddDays(-1));
                    }
                    catch (Exception ex)
                    {
                        eventLog1.WriteEntry("ServiciosSiapSK RunApp Consumo Alimento Exception: " + ex);
                    }
                    finally
                    {
                        eventLog1.WriteEntry("ServiciosSiapSK RunApp Consumo de Alimento Fin.");
                    }
                }
                else if (app.Codigo == AccionesSIAPEnum.SerCostGan.ToString())
                {
                    eventLog1.WriteEntry("ServiciosSiapSK RunApp Costeo de Ganado Inicio.");
                    try
                    {
                        var costeoGanadoPL = new CosteoGanadoPL();
                        costeoGanadoPL.GenerarCosteoGanado();
                    }
                    catch (Exception ex)
                    {
                        eventLog1.WriteEntry("ServiciosSiapSK RunApp Costeo de Ganado Exception: " + ex);
                    }
                    finally
                    {
                        eventLog1.WriteEntry("ServiciosSiapSK RunApp Costeo de Ganado Fin.");
                    }
                }
                else if (app.Codigo == AccionesSIAPEnum.SerAlerta.ToString())
                {
                    eventLog1.WriteEntry("ServiciosSiapSK RunApp Alertas SIAP.");
                    try
                    {
                        var incidenciaPL = new IncidenciasPL();
                        incidenciaPL.GenerarIncidenciasSIAP();
                    }
                    catch (Exception ex)
                    {
                        eventLog1.WriteEntry("ServiciosSiapSK RunApp Alertas SIAP Exception: " + ex);
                    }
                    finally
                    {
                        eventLog1.WriteEntry("ServiciosSiapSK RunApp Alertas SIAP Fin.");
                    }
                }
            }