public string registrarReportesColgate_FarmaciaIT(
            List <E_Reporte_Presencia_General> oList_E_ReportePresencia,
            List <E_Reporte_Fotografico_General> oList_E_ReporteFotografico,
            List <E_Reporte_Codigo_ITT> oList_E_ReporteCodigoITT,
            E_Visita oE_Visita)
        {
            D_Reporte_Presencia   oD_Reporte_Presencia   = new D_Reporte_Presencia();
            D_Reporte_Fotografico oD_Reporte_Fotografico = new D_Reporte_Fotografico();
            D_Reporte_Codigo_ITT  oD_Reporte_Codigo_ITT  = new D_Reporte_Codigo_ITT();
            D_Visita oD_Visita = new D_Visita();
            string   mensaje   = "";

            try
            {
                mensaje = oD_Reporte_Presencia.Registrar_Presencia_General_Lista(oList_E_ReportePresencia);
                oD_Reporte_Fotografico.RegistrarReporteFotografico(oList_E_ReporteFotografico);
                oD_Reporte_Codigo_ITT.Registrar_Presencia_Codigo_ITT(oList_E_ReporteCodigoITT);
                oD_Visita.RegistrarVisita(oE_Visita);//Add 12/03/2012

                return(mensaje);
            }
            catch (Exception ex)
            {
                log.Error("[BL_Registar_ReportesColgateFarmaciaIT] [Registrar_ReportesColgateFarmaciaIT_Failed] :", ex);
                mensaje = "Se ha producido un Error, Consultar con el Equipo de TI.";
                return(mensaje);
            }
        }
Example #2
0
        public string Registrar_Reportes_Alicorp_May_Mov(
            List <E_Reporte_Precio_Mov> oListE_Reporte_Precio_Mov,
            List <E_Reporte_SOD_Mov> oListE_Reporte_SOD_Mov,
            List <E_Reporte_Fotografico_Mov> oListE_Reporte_Fotografico_Mov,
            List <E_Reporte_Competencia_Mov> oListE_Reporte_Competencia_Mov,
            List <E_Reporte_Stock_Mov> oListE_Reporte_Stock_Mov,
            E_Visita_Mov oE_Visita_Mov,
            int AppEnvia)
        {
            string                mensaje                = "";
            D_Reporte_Precio      oD_Reporte_Precio      = new D_Reporte_Precio();
            D_Reporte_SOD         oD_Reporte_SOD         = new D_Reporte_SOD();
            D_Reporte_Fotografico oD_Reporte_Fotografico = new D_Reporte_Fotografico();
            D_Reporte_Competencia oD_Reporte_Competencia = new D_Reporte_Competencia();
            D_Reporte_Stock       oD_Reporte_Stock       = new D_Reporte_Stock();
            D_Visita              oD_Visita              = new D_Visita();

            try
            {
                oD_Reporte_Precio.Registrar_Precio_Mov(oListE_Reporte_Precio_Mov, Convert.ToString(AppEnvia));
                oD_Reporte_SOD.Registrar_Reporte_SOD_Mov(oListE_Reporte_SOD_Mov, Convert.ToString(AppEnvia));
                oD_Reporte_Fotografico.RegistrarReporteFotografico_Mov(oListE_Reporte_Fotografico_Mov, AppEnvia);
                oD_Reporte_Competencia.Registrar_Competencia_Mov(oListE_Reporte_Competencia_Mov, Convert.ToString(AppEnvia));
                oD_Reporte_Stock.Registrar_Reporte_Stock_Mov(oListE_Reporte_Stock_Mov, Convert.ToString(AppEnvia));
                oD_Visita.RegistrarVisita_Mov(oE_Visita_Mov);
            }
            catch (Exception ex)
            {
                log.Error("[BL_Registar_ReportesColgateMay_Mov] [RegistrarReportesColgateMay_Mov_Failed] :", ex);
                mensaje = "Se ha producido un Error, Consultar con el Equipo de TI.";
                throw new Exception();
            }
            return(mensaje);
        }
        /// <summary>
        /// Descripcion : Reportes de Colgate Farmacia IT para App Movistar
        /// Fecha       : 21/05/2012 - PSA
        /// Actualizacion   : 28/08/2012
        /// Descripcion     : Se agregan las nuevas validaciones del RQ Colgate v 1.9
        /// Author          : Pablo Salas A.
        /// </summary>
        /// <param name="oList_E_ReportePresencia_Mov"></param>
        /// <param name="oList_E_ReporteFotografico_Mov"></param>
        /// <param name="oList_E_ReporteCodigoITT_Mov"></param>
        /// <param name="oE_Visita_Mov"></param>
        /// <param name="App_Envia"></param>
        public E_Reportes_Colgate_Farmacia_IT_Mov_Response Registrar_Reportes_Colgate_Farmacia_IT_Mov_V_1_1(
            List <E_Reporte_Presencia_Mov> oList_E_ReportePresencia_Mov,
            List <E_Reporte_Fotografico_Mov> oList_E_ReporteFotografico_Mov,
            List <E_Reporte_Codigo_ITT_Mov> oList_E_ReporteCodigoITT_Mov,
            E_Visita_Mov oE_Visita_Mov,
            int App_Envia)
        {
            D_Reporte_Presencia   oD_Reporte_Presencia   = new D_Reporte_Presencia();
            D_Reporte_Fotografico oD_Reporte_Fotografico = new D_Reporte_Fotografico();
            D_Reporte_Codigo_ITT  oD_Reporte_Codigo_ITT  = new D_Reporte_Codigo_ITT();
            D_Visita oD_Visita = new D_Visita();

            string mensaje_Presencia   = string.Empty;
            string mensaje_Fotografico = string.Empty;
            //string mensaje_Codigo_ITT = string.Empty;
            string mensaje_Visita = string.Empty;
            //string mensaje_Final = string.Empty;

            E_Reportes_Colgate_Farmacia_IT_Mov_Response oE_Reportes_Colgate_Farmacia_IT_Mov_Response = new E_Reportes_Colgate_Farmacia_IT_Mov_Response();
            E_Reporte_Presencia_Datos_Response          oE_Reporte_Presencia_Datos_Response          = new E_Reporte_Presencia_Datos_Response();

            try
            {
                oE_Reporte_Presencia_Datos_Response = oD_Reporte_Presencia.Registrar_Presencia_Mov_V_1_2(oList_E_ReportePresencia_Mov, App_Envia);//Add 28/08/2012 Nuevas Validaciones PSalas
                //mensaje_Presencia+=oD_Reporte_Presencia.Registrar_Presencia_Mov(oList_E_ReportePresencia_Mov, App_Envia);//Disabled 28/08/2012 Antiguas Validaciones
                mensaje_Presencia    = oE_Reporte_Presencia_Datos_Response.MensajeUsuario;
                mensaje_Fotografico += oD_Reporte_Fotografico.RegistrarReporteFotografico_Mov(oList_E_ReporteFotografico_Mov, App_Envia);
                //mensaje_Codigo_ITT+=oD_Reporte_Codigo_ITT.Registrar_Codigo_ITT_Mov(oList_E_ReporteCodigoITT_Mov);
                oD_Reporte_Codigo_ITT.Registrar_Codigo_ITT_Mov(oList_E_ReporteCodigoITT_Mov); //Reporte de Codigos ITT. Add 24/08/2012 Pablo Salas A.
                mensaje_Visita += oD_Visita.RegistrarVisita_Mov(oE_Visita_Mov);

                if (!mensaje_Presencia.Equals(""))
                {
                    mensaje_Presencia = "Alerta Rep. Presencia" + Environment.NewLine + mensaje_Presencia + Environment.NewLine;
                }
                if (!mensaje_Fotografico.Equals(""))
                {
                    mensaje_Fotografico = "Alerta Rep. Fotografico" + Environment.NewLine + mensaje_Fotografico + Environment.NewLine;
                }
                if (!mensaje_Visita.Equals(""))
                {
                    mensaje_Visita = "Alerta Visita" + Environment.NewLine + mensaje_Visita;
                }

                //oE_Reportes_Colgate_Farmacia_IT_Mov_Response.Registro_Reporte_Codigo_ITT_Mov_Response = oD_Reporte_Codigo_ITT.Registrar_Codigo_ITT_Mov(oList_E_ReporteCodigoITT_Mov);
                oE_Reportes_Colgate_Farmacia_IT_Mov_Response.Mensaje_Response = mensaje_Presencia + mensaje_Fotografico + mensaje_Visita;
            }
            catch (Exception ex)
            {
                log.Error("[BL_Registrar_Reportes_Colgate_Farmacia_IT_Mov] [Registrar_Reportes_Colgate_Farmacia_IT_Mov_Failed] :", ex);
                oE_Reportes_Colgate_Farmacia_IT_Mov_Response.Mensaje_Response = "Se ha producido un Error, Consultar con el Equipo de TI.";
                throw new Exception();
            }
            return(oE_Reportes_Colgate_Farmacia_IT_Mov_Response);
        }
        public string Registrar_Reportes_Alicorp_Autoservicio(
            List <E_Reporte_Precio_Mov> oListE_Reporte_Precio_Mov,
            List <E_Reporte_Fotografico_Mov> oListE_Reporte_Fotografico_Mov,
            List <E_Reporte_Competencia_Mov> oListE_Reporte_Competencia_Mov,
            List <E_Reporte_Exhibicion_Mov> oListE_Reporte_Exhibicion_Mov,
            List <E_Reporte_Quiebre_Mov> oListE_Reporte_Quiebre_Mov,
            List <E_Reporte_LayOut_Mov> oListE_Reporte_LayOut_Mov,
            E_Visita_Mov oE_Visita_Mov,
            int AppEnvia)
        {
            string mensaje_Final = string.Empty;

            try
            {
                D_Reporte_Precio      oD_Reporte_Precio      = new D_Reporte_Precio();
                D_Reporte_Fotografico oD_Reporte_Fotografico = new D_Reporte_Fotografico();
                D_Reporte_Competencia oD_Reporte_Competencia = new D_Reporte_Competencia();
                D_Reporte_Exhibicion  oD_Reporte_Exhibicion  = new D_Reporte_Exhibicion();
                D_Reporte_Quiebre     oD_Reporte_Quiebre     = new D_Reporte_Quiebre();
                D_Reporte_LayOut      oD_Reporte_LayOut      = new D_Reporte_LayOut();
                D_Visita oD_Visita = new D_Visita();

                oD_Reporte_Precio.Registrar_Precio_Mov(oListE_Reporte_Precio_Mov, Convert.ToString(AppEnvia));
                oD_Reporte_Fotografico.RegistrarReporteFotografico_Mov(oListE_Reporte_Fotografico_Mov, AppEnvia);
                oD_Reporte_Competencia.Registrar_Competencia_Mov(oListE_Reporte_Competencia_Mov, Convert.ToString(AppEnvia));
                oD_Reporte_Exhibicion.Registrar_Reporte_Exhibicion_Mov(oListE_Reporte_Exhibicion_Mov, Convert.ToString(AppEnvia));
                oD_Reporte_Quiebre.Registrar_Reporte_Quiebre_Mov(oListE_Reporte_Quiebre_Mov, Convert.ToString(AppEnvia));
                oD_Reporte_LayOut.Registrar_Reporte_LayOut_Mov(oListE_Reporte_LayOut_Mov, Convert.ToString(AppEnvia));
                oD_Visita.RegistrarVisita_Mov(oE_Visita_Mov);
                mensaje_Final = "";
            }
            catch (Exception ex)
            {
                log.Error("[BL_Registrar_Reportes_Alicorp_Autoservicio_Mov] [Registrar_Reportes_Alicorp_Autoservicio_Failed] :", ex);
                mensaje_Final = "Se ha producido un Error, Consultar con el Equipo de TI.";
                throw new Exception();
            }
            return(mensaje_Final);
        }
Example #5
0
        /// <summary>
        /// Descripcion : Registrar Reportes de Colgate Bodega App Movistar
        /// Fecha       : 01/06/2012
        /// Autor       : Joseph Gonzales
        /// </summary>
        /// <param name="oListE_Reporte_Presencia_Mov"></param>
        /// <param name="oListE_Reporte_CodigoITT_Mov"></param>
        /// <param name="oE_Visita_Mov"></param>
        /// <param name="AppEnvia"></param>
        //public E_Reportes_Colgate_Bodega_Mov_Response Registrar_ReportesColgateBodega_Mov(
        //    List<E_Reporte_Presencia_Mov> oListE_Reporte_Presencia_Mov,
        //    List<E_Reporte_Codigo_ITT_Mov> oListE_Reporte_CodigoITT_Mov,
        //    E_Visita_Mov oE_Visita_Mov,
        //    int AppEnvia)
        //{
        //    //string mensaje = "";
        //    E_Reportes_Colgate_Bodega_Mov_Response oE_Reportes_Colgate_Bodega_Mov_Response = new E_Reportes_Colgate_Bodega_Mov_Response();


        //    //E_Reporte_Presencia_Datos_Response oE_Reporte_Presencia_Datos_Response = new E_Reporte_Presencia_Datos_Response();
        //    //D_ReportesColgate_May oD_ReportesColgate_May = new D_ReportesColgate_May();
        //    //D_ReportesColgate_Bodega oD_ReportesColgate_Bodega = new D_ReportesColgate_Bodega();
        //    try
        //    {
        //        oE_Reportes_Colgate_Bodega_Mov_Response = oD_ReportesColgate_Bodega.RegistrarReportesColgate_Bodega_Mov(oListE_Reporte_Presencia_Mov, oListE_Reporte_CodigoITT_Mov, oE_Visita_Mov, AppEnvia);
        //    }
        //    catch (Exception ex)
        //    {
        //        log.Error("[Registrar_ReportesColgateBodega_Mov] [RegistrarReportesColgateBodega_Mov_Failed] :", ex);
        //        oE_Reportes_Colgate_Bodega_Mov_Response.Mensaje_Response = "Se ha producido un Error, Consultar con el Equipo de TI.";
        //        throw new Exception();
        //    }
        //    return oE_Reportes_Colgate_Bodega_Mov_Response;
        //}


        /// Version         : Registrar_ReportesColgateBodega_Mov_1_1
        /// Actualizacion   : 28/08/2012
        /// Descripcion     : Se agregan las nuevas validaciones del RQ Colgate v 1.9
        /// Author          : Pablo Salas A.
        public E_Reportes_Colgate_Bodega_Mov_Response Registrar_ReportesColgateBodega_Mov_V_1_1(List <E_Reporte_Presencia_Mov> oListE_Reporte_Presencia_Mov, List <E_Reporte_Codigo_ITT_Mov> oListE_Reporte_CodigoITT_Mov, List <E_Reporte_Fotografico_Mov> oListE_Reporte_Fotografico, E_Visita_Mov oE_Visita_Mov, int AppEnvia)
        {
            D_Reporte_Presencia   oD_Reporte_Presencia   = new D_Reporte_Presencia();
            D_Reporte_Codigo_ITT  oD_Reporte_Codigo_ITT  = new D_Reporte_Codigo_ITT();
            D_Reporte_Fotografico oD_Reporte_Fotografico = new D_Reporte_Fotografico();
            D_Visita oD_Visita = new D_Visita();

            E_Reportes_Colgate_Bodega_Mov_Response oE_Reportes_Colgate_Bodega_Mov_Response = new E_Reportes_Colgate_Bodega_Mov_Response();

            //String mensaje_Fotografico = string.Empty;
            try
            {
                oD_Reporte_Codigo_ITT.Registrar_Codigo_ITT_Mov(oListE_Reporte_CodigoITT_Mov);

                E_Reporte_Presencia_Datos_Response oE_Reporte_Presencia_Datos_Response = new E_Reporte_Presencia_Datos_Response();
                //oE_Reporte_Presencia_Datos_Response = oD_Reporte_Presencia.Registrar_Presencia_Bodega_Mov(oListE_Reporte_Presencia_Mov, AppEnvia); // Disabled 28/08/2012
                oE_Reporte_Presencia_Datos_Response = oD_Reporte_Presencia.Registrar_Presencia_Mov_V_1_2(oListE_Reporte_Presencia_Mov, AppEnvia); // Add 28/08/2012 Pablo Salas A.
                //mensaje_Fotografico = oD_Reporte_Fotografico.RegistrarReporteFotografico_Mov(oListE_Reporte_Fotografico, AppEnvia);
                String Mensaje_Fotografico = oD_Reporte_Fotografico.RegistrarReporteFotografico_Mov(oListE_Reporte_Fotografico, AppEnvia);
                if (!Mensaje_Fotografico.Equals(""))
                {
                    Mensaje_Fotografico = "Alerta Rep. Fotografico " + Environment.NewLine + Mensaje_Fotografico + Environment.NewLine;
                }

                String Mensaje_Visita = oD_Visita.RegistrarVisita_Mov(oE_Visita_Mov);
                if (!Mensaje_Visita.Equals(""))
                {
                    Mensaje_Visita = "Alerta Visita" + Environment.NewLine + Mensaje_Visita + Environment.NewLine;
                }

                //Response de Registro de Reportes Bodega
                //oE_Reportes_Colgate_Bodega_Mov_Response.Reporte_Codigo_ITT_Mov_Response = oE_Reporte_Codigo_ITT_Mov_Response;
                oE_Reportes_Colgate_Bodega_Mov_Response.Reporte_Presencia_Mov_Response = oE_Reporte_Presencia_Datos_Response;
                oE_Reportes_Colgate_Bodega_Mov_Response.Mensaje_Response = oE_Reporte_Presencia_Datos_Response.MensajeUsuario + Environment.NewLine + Mensaje_Visita + Environment.NewLine + Mensaje_Fotografico + Environment.NewLine;
            }
            catch (Exception ex)
            {
                log.Error("[Registrar_ReportesColgateBodega_Mov] [RegistrarReportesColgateBodega_Mov_Failed] :", ex);
                oE_Reportes_Colgate_Bodega_Mov_Response.Mensaje_Response = "Se ha producido un Error, Consultar con el Equipo de TI.";
                throw new Exception();
            }
            return(oE_Reportes_Colgate_Bodega_Mov_Response);

            ////string mensaje = "";
            //E_Reportes_Colgate_Bodega_Mov_Response oE_Reportes_Colgate_Bodega_Mov_Response = new E_Reportes_Colgate_Bodega_Mov_Response();


            ////E_Reporte_Presencia_Datos_Response oE_Reporte_Presencia_Datos_Response = new E_Reporte_Presencia_Datos_Response();
            ////D_ReportesColgate_May oD_ReportesColgate_May = new D_ReportesColgate_May();
            ////D_ReportesColgate_Bodega oD_ReportesColgate_Bodega = new D_ReportesColgate_Bodega();
            //try
            //{
            //    oE_Reportes_Colgate_Bodega_Mov_Response = oD_ReportesColgate_Bodega.RegistrarReportesColgate_Bodega_Mov(oListE_Reporte_Presencia_Mov, oListE_Reporte_CodigoITT_Mov, oE_Visita_Mov, AppEnvia);
            //}
            //catch (Exception ex)
            //{
            //    log.Error("[Registrar_ReportesColgateBodega_Mov] [RegistrarReportesColgateBodega_Mov_Failed] :", ex);
            //    oE_Reportes_Colgate_Bodega_Mov_Response.Mensaje_Response = "Se ha producido un Error, Consultar con el Equipo de TI.";
            //    throw new Exception();
            //}
            //return oE_Reportes_Colgate_Bodega_Mov_Response;
        }