//private static readonly D_ReportesColgate_Bodega oD_ReportesColgate_Bodega = new D_ReportesColgate_Bodega(); #region App Movil Lucky public string registrarReportesColgate_FarmaciaDT( List <E_Reporte_Presencia_General> oList_E_ReportePresencia, List <E_Reporte_Visibilidad_Competencia> oList_E_ReporteVisibilidadCompetencia, List <E_Reporte_Promocion_General> oList_E_ReportePromocion, List <E_Reporte_Pop_General> oList_E_ReportePop, List <E_Reporte_Codigo_ITT> oList_E_ReporteCodigoITT, E_Visita oE_Visita) { //D_ReportesColgate_Bodega oD_ReportesColgate_Bodega = new D_ReportesColgate_Bodega(); D_Reporte_Presencia oD_Reporte_Presencia = new D_Reporte_Presencia(); D_Reporte_Promociones oD_Reporte_Promociones = new D_Reporte_Promociones(); D_Reporte_Pop oD_Reporte_Pop = new D_Reporte_Pop(); D_Reporte_Visibilidad_Competencia oD_reporteVisCompe = new D_Reporte_Visibilidad_Competencia(); D_Reporte_Codigo_ITT oD_Reporte_Codigo_ITT = new D_Reporte_Codigo_ITT(); D_Visita oD_Visita = new D_Visita(); string mensaje = ""; try { //oD_ReportesColgate_Bodega.RegistrarReportesColgate_Bodega(oList_E_Reporte_RegistroPDV); mensaje = oD_Reporte_Presencia.Registrar_Presencia_General_Lista(oList_E_ReportePresencia); oD_reporteVisCompe.Registrar_Visibilidad_Competencia(oList_E_ReporteVisibilidadCompetencia);//Adiciona Ing. Carlos Hernandez 07/03/2012 oD_Reporte_Promociones.Registrar_Promociones_General_Lista(oList_E_ReportePromocion); oD_Reporte_Pop.Registrar_Pop_General_Lista(oList_E_ReportePop); 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_ReportesColgateFarmaciaDT] [Registrar_ReportesColgateFarmaciaDT_Failed] :", ex); mensaje = "Se ha producido un Error, Consultar con el Equipo de TI."; return(mensaje); } }
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); } }
/// <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); }
/// <summary> /// Registrar Presencia para Colgate DT,IT /// Date: 17/03/2012 pSalas /// </summary> /// <param name="oE_Reporte_Presencia"></param> public void Registrar_Presencia_General(E_Reporte_Presencia_General oE_Reporte_Presencia) { //D_Reporte_Precio oD_Reporte_Precio = new D_Reporte_Precio(); D_Reporte_Presencia oD_Reporte_Presencia = new D_Reporte_Presencia(); try { oD_Reporte_Presencia.Registrar_Presencia_General(oE_Reporte_Presencia); } catch (Exception ex) { log.Error("[BL_Registar_Presencia] [RegistrarPrecioFailed] :", ex); } }
public void Registrar_Presencia_General_Lista(List <E_Reporte_Presencia_General> oList_Reporte_Presencia) { D_Reporte_Presencia oD_Reporte_Presencia = new D_Reporte_Presencia(); //return oD_Reporte_Presencia.Registrar_Presencia_General_Lista(oList_Reporte_Presencia); try { oD_Reporte_Presencia.Registrar_Presencia_General_Lista(oList_Reporte_Presencia); } catch (Exception ex) { log.Error("[BL_Registar_Presencia] [RegistrarPresenciaFailed] :", ex); } }
/// <summary> /// Registra Reporte de Presencia para ColgateBodega /// pSalas 28/03/2012 /// </summary> /// <param name="oListReporte_Presencia"></param> /// <returns></returns> public string Registrar_Presencia_General_Lista_Normal(List <E_Reporte_Presencia_General> oListReporte_Presencia, List <E_Reporte_Codigo_ITT> oListReporte_CodigoITT, E_Visita oE_Visita) { D_Reporte_Presencia oD_Reporte_Presencia = new D_Reporte_Presencia(); D_Reporte_Codigo_ITT oD_Reporte_Codigo_ITT = new D_Reporte_Codigo_ITT(); D_Visita oD_Visita = new D_Visita(); try { error = oD_Reporte_Presencia.Registrar_Presencia_General_Lista_Normal(oListReporte_Presencia); oD_Reporte_Codigo_ITT.Registrar_Presencia_Codigo_ITT(oListReporte_CodigoITT); oD_Visita.RegistrarVisita(oE_Visita); } catch (Exception ex) { log.Error("[BL_Registar_Presencia_General_Lista_Normal] [Registar_Presencia_General_Lista_NormalFailed] :", ex); error = ex.Message; } return(error); }
/// <summary> /// Descripcion : Registrar Reportes de Colgate Mayorista para el App Movistar /// Fecha : 18/05/2012 PSA /// </summary> /// <param name="oListRepPresencia"></param> /// <param name="oListRepFotogradico"></param> /// <param name="oListRepITT"></param> /// <param name="oE_Visita"></param> /// <returns></returns> public E_Reportes_Colgate_Mayoristas_Mov_Response Registrar_ReportesColgateMay_Mov( List <E_Reporte_Presencia_Mov> oListRepPresencia, List <E_Reporte_Fotografico_Mov> oListRepFotogradico, List <E_Reporte_Codigo_ITT_Mov> oListRepITT, E_Visita_Mov oE_Visita, 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(); String mensaje_Presencia = string.Empty; String mensaje_Fotografico = string.Empty; String mensaje_Visita = string.Empty; E_Reportes_Colgate_Mayoristas_Mov_Response oE_Reportes_Colgate_Mayoristas_Mov_Response = new E_Reportes_Colgate_Mayoristas_Mov_Response(); try { mensaje_Presencia = oD_Reporte_Presencia.Registrar_Presencia_Mov(oListRepPresencia, AppEnvia); mensaje_Fotografico = oD_Reporte_Fotografico.RegistrarReporteFotografico_Mov(oListRepFotogradico, AppEnvia); mensaje_Visita = oD_Visita.RegistrarVisita_Mov(oE_Visita); if (!mensaje_Fotografico.Equals("")) { mensaje_Fotografico = "Hubo Errores en Reporte Fotográfico. "; } if (!mensaje_Visita.Equals("")) { mensaje_Visita = "Hubo Errores en Registro de Visita. "; } //oE_Reportes_Colgate_Mayoristas_Mov_Response.Registro_Reporte_Codigo_ITT_Mov_Response = oD_Reporte_Codigo_ITT.Registrar_Codigo_ITT_Mov(oListRepITT); oD_Reporte_Codigo_ITT.Registrar_Codigo_ITT_Mov(oListRepITT); oE_Reportes_Colgate_Mayoristas_Mov_Response.Mensaje_Response = mensaje_Fotografico + mensaje_Presencia + mensaje_Visita; } catch (Exception ex) { } return(oE_Reportes_Colgate_Mayoristas_Mov_Response); //return mensaje_Final = mensaje_Presencia + mensaje_Fotografico + mensaje_Codigo_ITT + mensaje_Visita; }
/// <summary> /// Descripcion : Registrar Reportes de Colgate Bodega para el App Movistar /// Fecha : 01/06/2012 /// Autor : Joseph Gonzales /// </summary> /// <param name="oListRepPresencia"></param> /// <param name="oListRepFotogradico"></param> /// <param name="oListRepITT"></param> /// <param name="oE_Visita"></param> /// <returns></returns> public E_Reportes_Colgate_Bodega_Mov_Response RegistrarReportesColgate_Bodega_Mov( List <E_Reporte_Presencia_Mov> oListRepPresencia, List <E_Reporte_Codigo_ITT_Mov> oListRepITT, E_Visita_Mov oE_Visita, 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_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(); try { //E_Reporte_Codigo_ITT_Mov_Response oE_Reporte_Codigo_ITT_Mov_Response = new E_Reporte_Codigo_ITT_Mov_Response(); //oE_Reporte_Codigo_ITT_Mov_Response = oD_Reporte_Codigo_ITT.Registrar_Codigo_ITT_Mov(oListRepITT); 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(oListRepPresencia, AppEnvia); String Registro_Visita_Response = oD_Visita.RegistrarVisita_Mov(oE_Visita); if (!Registro_Visita_Response.Equals("")) { Registro_Visita_Response = "Hubo Errores en Registro de Visita. "; } //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 = Registro_Visita_Response; } catch (Exception ex) { throw ex; } return(oE_Reportes_Colgate_Bodega_Mov_Response); }
/// <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; }
/// <summary> /// Descripcion : Registro de Reportes de Colgate Farmacia para AppMovil 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_Reporte_ITT_Mov"></param> /// <param name="oList_E_Reporte_Promocion_Mov"></param> /// <param name="oList_E_Reporte_Presencia_Mov"></param> /// <param name="oList_E_Reporte_MatApoyo_Mov"></param> /// <param name="oList_E_Reporte_VisComp_Mov"></param> /// <param name="oE_Visita"></param> /// <param name="AppEnvia"></param> public E_Reportes_Colgate_Farmacia_DT_Mov_Response Registar_Reporte_Colgate_Farmacia_DT_Mov_V_1_1(List <E_Reporte_Presencia_Mov> oList_E_Reporte_Presencia_Mov, List <E_Reporte_Codigo_ITT_Mov> oList_E_Reporte_ITT_Mov, List <E_Reporte_Promocion_Mov> oList_E_Reporte_Promocion_Mov, List <E_Reporte_Mat_Apoyo_Mov> oList_E_Reporte_MatApoyo_Mov, List <E_Reporte_VisCompentencia_Mov> oList_E_Reporte_VisComp_Mov, E_Visita_Mov oE_Visita_Mov, int AppEnvia) { D_Reporte_Codigo_ITT oD_Reporte_Codigo_ITT = new D_Reporte_Codigo_ITT(); D_Reporte_Promociones oD_Reporte_Promociones = new D_Reporte_Promociones(); D_Reporte_Presencia oD_Reporte_Presencia = new D_Reporte_Presencia(); D_Reporte_Mat_Apoyo oD_Reporte_Mat_Apoyo = new D_Reporte_Mat_Apoyo(); D_Reporte_Visibilidad_Competencia oD_Reporte_Visibilidad_Competencia = new D_Reporte_Visibilidad_Competencia(); D_Visita oD_Visita_Mov = new D_Visita(); String mensaje_Presencia = string.Empty; String mensaje_Codigo_ITT = string.Empty; String mensaje_Promociones = string.Empty; String mensaje_Mat_Apoyo = string.Empty; String mensaje_VisCompetencia = string.Empty; String mensaje_Visita = string.Empty; //String mensaje_Final = string.Empty; E_Reportes_Colgate_Farmacia_DT_Mov_Response oE_Reportes_Colgate_Farmacia_DT_Mov_Response = new E_Reportes_Colgate_Farmacia_DT_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_Reporte_Presencia_Mov, AppEnvia); //Add 28/082/2012 Nuevas Validaciones PSalas //mensaje_Codigo_ITT += oD_Reporte_Codigo_ITT.Registrar_Codigo_ITT_Mov(oList_E_Reporte_ITT_Mov); mensaje_Promociones = oD_Reporte_Promociones.Registrar_Promociones_Mov(oList_E_Reporte_Promocion_Mov, AppEnvia); //mensaje_Presencia = oD_Reporte_Presencia.Registrar_Presencia_Mov(oList_E_Reporte_Presencia_Mov, AppEnvia);//Disabled 28/08/2012 Antiguas Validaciones PSalas mensaje_Presencia = oE_Reporte_Presencia_Datos_Response.MensajeUsuario; mensaje_Mat_Apoyo = oD_Reporte_Mat_Apoyo.Registrar_Material_Apoyo_Mov(oList_E_Reporte_MatApoyo_Mov, AppEnvia); mensaje_VisCompetencia = oD_Reporte_Visibilidad_Competencia.Registrar_VisCompetencia_Mov(oList_E_Reporte_VisComp_Mov, AppEnvia); oD_Reporte_Codigo_ITT.Registrar_Codigo_ITT_Mov(oList_E_Reporte_ITT_Mov); //Reporte de Codigos ITT. Add 24/08/2012 Pablo Salas A. mensaje_Visita = oD_Visita_Mov.RegistrarVisita_Mov(oE_Visita_Mov); //if (!mensaje_Codigo_ITT.Equals("")) // mensaje_Codigo_ITT = "Alerta Rep. Código ITT" + Environment.NewLine + mensaje_Codigo_ITT + Environment.NewLine; if (!mensaje_Promociones.Equals("")) { mensaje_Promociones = "Alerta Rep. Promocion" + Environment.NewLine + mensaje_Promociones; } if (!mensaje_Presencia.Equals("")) { mensaje_Presencia = "Alerta Rep. Presencia" + Environment.NewLine + mensaje_Presencia + Environment.NewLine; } if (!mensaje_Mat_Apoyo.Equals("")) { mensaje_Mat_Apoyo = "Alerta Rep. Material Apoyo" + Environment.NewLine + mensaje_Mat_Apoyo + Environment.NewLine; } if (!mensaje_VisCompetencia.Equals("")) { mensaje_VisCompetencia = "Alerta Rep. Visibilidad Competencia" + Environment.NewLine + mensaje_Mat_Apoyo + Environment.NewLine; } if (!mensaje_Visita.Equals("")) { mensaje_Visita = "Alerta Visita" + Environment.NewLine + mensaje_Visita; } //oE_Reportes_Colgate_Farmacia_DT_Mov_Response.Registro_Reporte_Codigo_ITT_Mov_Response = oD_Reporte_Codigo_ITT.Registrar_Codigo_ITT_Mov(oList_E_Reporte_ITT_Mov); oE_Reportes_Colgate_Farmacia_DT_Mov_Response.Mensaje_Response = mensaje_Promociones + mensaje_Presencia + mensaje_Mat_Apoyo + mensaje_VisCompetencia + mensaje_Visita; //mensaje_Final = mensaje_Codigo_ITT + mensaje_Promociones + mensaje_Presencia + mensaje_Mat_Apoyo + mensaje_VisCompetencia + mensaje_Visita; } catch (Exception ex) { log.Error("[BL_Registar_Reporte_Colgate_Farmacia_DT_Mov] [Registar_Reporte_Colgate_Farmacia_DT_Mov_Failed] :", ex); oE_Reportes_Colgate_Farmacia_DT_Mov_Response.Mensaje_Response = "Se ha producido un Error, Consultar con el Equipo de TI."; throw new Exception(); } return(oE_Reportes_Colgate_Farmacia_DT_Mov_Response); }
/// <summary> /// Descripcion :Asignar al Mercaderista la Ruta. /// Fecha :06/05/2012 PSA /// </summary> /// <param name="oE_Reporte"></param> /// <param name="Cod_POSPlanning"></param> private int Registrar_PDV_Planning_Oper(E_Reporte_RegistroPDV_Mov oE_Reporte, string Id_MPOSPlanning, string ClientPDV_Code) { int correcto = 1; try { D_Reporte_Presencia oD_Reporte_Presencia = new D_Reporte_Presencia(); D_Registrar_Motivo oD_Registrar_Motivo = new D_Registrar_Motivo(); #region Registrar Ruta en Xplora oCoon = new Conexion(1); oCoon.ejecutarDataTable("SP_XPL_GES_CAM_INSERTARPDVPLANNING_OPER" , Id_MPOSPlanning , oE_Reporte.Cod_Equipo , oE_Reporte.Cod_Persona , oE_Reporte.Fecha_Registro //Fecha_Inicio del Relevo , null // Cod Frecuencia , false // Estado , oE_Reporte.Creado_Por , oE_Reporte.Fecha_Registro , ClientPDV_Code); #endregion #region Registrar Ruta en Intermedia -- Comentado Psa 23/10/2012 //oCoon = new Conexion(3); //oCoon.ejecutarDataSet("SP_MOV_GES_CAM_REGISTRAR_RUTA" // , oE_Reporte.Cod_Equipo // , ClientPDV_Code ?? null // , oE_Reporte.Cod_Persona ?? null // , oE_Reporte.Fecha_Registro ?? null //Fecha Inicio Ruta // , null //Fecha Fin Ruta // , 1 //Estado // ); #endregion #region Registrar Ruta con Fase en Xplora - >>>>>Warning<<<<<<<< #endregion #region Registrar Ruta con Fase en Intermedia -- Comentado Psa 23/10/2012 oCoon = new Conexion(3); oCoon.ejecutarDataSet("SP_MOV_GES_CAM_REGISTRAR_RUTA_FASE" , ClientPDV_Code , oE_Reporte.Cod_Equipo , "NI" //Fase NI ); #endregion #region Registrar Presencia en BD Intermedia con Fase E_Reporte_Presencia_Mov oE_Reporte_Presencia_Mov = new E_Reporte_Presencia_Mov(); oE_Reporte_Presencia_Mov.Cod_Equipo = oE_Reporte.Cod_Equipo; oE_Reporte_Presencia_Mov.Cod_Compania = int.Parse(oE_Reporte.Cod_Compania); oE_Reporte_Presencia_Mov.Cod_PtoVenta = ClientPDV_Code; oE_Reporte_Presencia_Mov.Cod_Persona = int.Parse(oE_Reporte.Cod_Persona); oE_Reporte_Presencia_Mov.FechaRegistro = oE_Reporte.Fecha_Registro; oE_Reporte_Presencia_Mov.Latitud = oE_Reporte.Latitud; oE_Reporte_Presencia_Mov.Longitud = oE_Reporte.Longitud; oE_Reporte_Presencia_Mov.Origen = oE_Reporte.Origen; oE_Reporte_Presencia_Mov.Fase = "NI"; oE_Reporte_Presencia_Mov.Nuevo = "1"; oD_Reporte_Presencia.Registrar_Presencia_Mov_Cabecera(oE_Reporte_Presencia_Mov, 0); #endregion #region Regisrar Motivos - No Implementación o No Mantenimiento en BD Intermedia E_MotivoFase oE_MotivoFase = new E_MotivoFase(); oE_MotivoFase.CodMotivo = 93;//Motivo de No Implementación, 93 - Por Implementar. E_Registro_MotivoFase oE_Registro_MotivoFase = new E_Registro_MotivoFase(); oE_Registro_MotivoFase.Cod_Persona = int.Parse(oE_Reporte.Cod_Persona); oE_Registro_MotivoFase.Cod_PtoVenta = ClientPDV_Code; oE_Registro_MotivoFase.Cod_Equipo = oE_Reporte.Cod_Equipo; oE_Registro_MotivoFase.Cod_Compania = int.Parse(oE_Reporte.Cod_Compania); oE_Registro_MotivoFase.FechaRegistro = oE_Reporte.Fecha_Registro; oE_Registro_MotivoFase.Origen = oE_Reporte.Origen; oE_Registro_MotivoFase.Latitud = oE_Reporte.Latitud; oE_Registro_MotivoFase.Longitud = oE_Reporte.Longitud; oE_Registro_MotivoFase.Fase = "NI"; oE_Registro_MotivoFase.Nuevo = "1"; oE_Registro_MotivoFase.listaMotivo.Add(oE_MotivoFase); oD_Registrar_Motivo.RegistrarMotivoColgateBodega_Mov(oE_Registro_MotivoFase); #endregion } catch (Exception ex) { correcto = 0; throw ex; } return(correcto); }
public string Registrar_ReporteSanFernando_Tradicional_Mov( List <E_Reporte_Precio_Mov> oListaRepPrecio_Mov , List <E_Reporte_Exhibicion_Mov> oListaRepExhibicion_Mov , List <E_Reporte_Marcaje_Precio_Mov> oListaRepMarcaje_Mov , List <E_Reporte_Mat_Apoyo_Mov> oListaRepMatApoyo_Mov //, List<E_Reporte_Mandil_Mov> oListaRepMandil_Mov //, List<E_Reporte_MatAdicional_Mov> oListaRepMatAdicional_Mov //, List<E_Reporte_Observacion_Mov> oListaRepObservacion_Mov , List <E_Reporte_Capacitacion_Mov> oListRepCapacitacion_Mov , List <E_Reporte_Incidencia_Mov> oListRepIncidencia_Mov , List <E_Reporte_Credito_Competencia_Mov> oListaRepCredito_Competencia_Mov , List <E_Reporte_Presencia_Mov> oListaRepPresencia_Mov , E_Visita_Mov oE_Visita_Mov , int AppEnvia) { D_Reporte_Precio oD_Reporte_Precio = new D_Reporte_Precio(); D_Reporte_Exhibicion oD_Reporte_Exhibicion = new D_Reporte_Exhibicion(); D_Reporte_Marcaje_Precio oD_Reporte_Marcaje = new D_Reporte_Marcaje_Precio(); //D_Reporte_Mandil oD_Reporte_Mandil = new D_Reporte_Mandil(); //D_Reporte_MatAdicional oD_Reporte_MatAdicional = new D_Reporte_MatAdicional(); D_Reporte_Mat_Apoyo oD_Reporte_Mat_Apoyo = new D_Reporte_Mat_Apoyo(); //Add 26/07/2012 PSA //D_Reporte_Observacion oD_Reporte_Observacion = new D_Reporte_Observacion(); D_Reporte_Capacitacion oD_Reporte_Capacitacion = new D_Reporte_Capacitacion(); //Agregado por DUEB, el 13/07/2012 D_Reporte_Incidencia oD_Reporte_Incidencia = new D_Reporte_Incidencia(); //Add 26/07/2012 PSA D_Reporte_Credito_Competencia oD_Reporte_Credito_Competencia = new D_Reporte_Credito_Competencia(); //Agregado por DUEB, el 16/07/2012 D_Reporte_Presencia oD_Reporte_Presencia = new D_Reporte_Presencia(); //Add 26/07/2012 PSA D_Visita oD_Visita = new D_Visita(); string mensaje_Precio = string.Empty; string mensaje_Exhibicion = string.Empty; string mensaje_Marcaje = string.Empty; string mensaje_MatApoyo = string.Empty; string mensaje_Capacitacion = string.Empty; string mensaje_Incidencia = string.Empty; string mensaje_Credito_Compt = string.Empty; string mensaje_Presencia = string.Empty; //string mensaje_Mandil = string.Empty; //string mensaje_MatAdicional = string.Empty; //string mensaje_Observacion = string.Empty; string mensaje_Visita = string.Empty; string mensaje_Final = string.Empty; try { mensaje_Precio = oD_Reporte_Precio.Registrar_Precio_Mov(oListaRepPrecio_Mov, AppEnvia.ToString()); mensaje_Exhibicion = oD_Reporte_Exhibicion.Registrar_Reporte_Exhibicion_Mov(oListaRepExhibicion_Mov, AppEnvia.ToString()); mensaje_Marcaje = oD_Reporte_Marcaje.Registrar_Marcaje_Precio_Mov(oListaRepMarcaje_Mov, AppEnvia); mensaje_MatApoyo = oD_Reporte_Mat_Apoyo.Registrar_Material_Apoyo_Mov(oListaRepMatApoyo_Mov, AppEnvia); //mensaje_Mandil = oD_Reporte_Mandil.Registrar_Mandil_Mov(oListaRepMandil_Mov, AppEnvia); //mensaje_MatAdicional = oD_Reporte_MatAdicional.Registrar_MatAdicional_Mov(oListaRepMatAdicional_Mov, AppEnvia); //mensaje_Observacion = oD_Reporte_Observacion.Registrar_Observacion_Mov(oListaRepObservacion_Mov, AppEnvia); mensaje_Capacitacion = oD_Reporte_Capacitacion.Registrar_Reporte_Capacitacion_Mov(oListRepCapacitacion_Mov, AppEnvia); mensaje_Incidencia = oD_Reporte_Incidencia.Registrar_Incidencia_Mov(oListRepIncidencia_Mov, AppEnvia.ToString()); mensaje_Credito_Compt = oD_Reporte_Credito_Competencia.Registrar_Reporte_Credito_Competencia_Mov(oListaRepCredito_Competencia_Mov, AppEnvia); mensaje_Presencia = oD_Reporte_Presencia.Registrar_Presencia_Mov(oListaRepPresencia_Mov, AppEnvia); mensaje_Visita = oD_Visita.RegistrarVisita_Mov(oE_Visita_Mov); if (!mensaje_Precio.Equals("")) { mensaje_Precio = "Hubo Errores en Reporte Precios. "; } if (!mensaje_Exhibicion.Equals("")) { mensaje_Exhibicion = "Hubo Errores en Reporte Exhibición. "; } if (!mensaje_Marcaje.Equals("")) { mensaje_Marcaje = "Hubo Errores en Reporte Marcaje Precios. "; } #region //if (!mensaje_Mandil.Equals("")) // mensaje_Mandil = "Hubo Errores en Reporte Mandil. "; //if (!mensaje_MatAdicional.Equals("")) // mensaje_MatAdicional = "Hubo Errores en Reporte Materiales Adicionales. "; //if (!mensaje_Observacion.Equals("")) // mensaje_Observacion = "Hubo Errores en Reporte Observacion. "; #endregion if (!mensaje_MatApoyo.Equals("")) { mensaje_MatApoyo = "Hubo Errores en Registro de Entrega de Materiales. "; } if (!mensaje_Capacitacion.Equals(""))//Agregado por DUEB, el 13/07/2012 { mensaje_Capacitacion = "Hubo Errores en el de Reporte Capacitacion. "; } if (!mensaje_Incidencia.Equals("")) { mensaje_Incidencia = "Hubo Errores en Registro de Incidencias. "; } if (!mensaje_Credito_Compt.Equals(""))//Agregado por DUEB, el 16/07/2012 { mensaje_Credito_Compt = "Hubo Errores en el de Reporte de Credito. "; } if (!mensaje_Presencia.Equals(""))//Agregado por PSA , 26/07/2012 { mensaje_Presencia = "Hubo Errores en el de Reporte de Presencia. "; } if (!mensaje_Visita.Equals("")) { mensaje_Visita = "Hubo Errores en Registro de Visita. "; } } catch (Exception ex) { throw ex; } return(mensaje_Final = mensaje_Precio + mensaje_Exhibicion + mensaje_Marcaje + mensaje_MatApoyo + mensaje_Incidencia + mensaje_Presencia + mensaje_Capacitacion + mensaje_Credito_Compt + mensaje_Visita); }