/// <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); }
//Backup: Registrar_ReportesColgateBodega_Mov V.1.0 //Fecha : 28/08/2012 //Author: Pablo Salas A. 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, 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 { //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(oListE_Reporte_CodigoITT_Mov); 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); //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 = 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; }