public void registrarFotografico(E_Reporte_Fotografico_General reporteFotografico, E_Visita visita) { try { oD_Reporte_Fotografico.RegistrarReporteFotografico(reporteFotografico, visita); } catch (Exception ex) { log.Error("[BL_Registar_ReporteFotografico] [Registrar_ReporteFotografico_Failed] :", ex); throw new Exception(); } }
public void registrarFotografico(E_Reporte_Fotografico_General reporteFotografico) { try { oD_Reporte_Fotografico.RegistrarReporteFotografico(reporteFotografico); } catch (Exception ex) { log.Error("[BL_Registar_ReporteFotografico] [Registrar_ReporteFotografico_Failed] :", ex); throw new NegocioAmbienteException(); } }
public string RegistrarReporteFotografico(E_Reporte_Fotografico_General oE_Reporte_Fotografico, string AppEnvia) { string error = string.Empty; try { //Tipo de Reporte por Defecto 01 oCoon = new Conexion(2); oCoon.ejecutarDataTable("STP_JVM_INSERTAR_REPORTE_FOTOGRAFICO", Convert.ToInt32(oE_Reporte_Fotografico.Person_id), //El atributo Perfil_Id se reemplaza por el Canal_Id oE_Reporte_Fotografico.Perfil_id, oE_Reporte_Fotografico.Equipo_id, oE_Reporte_Fotografico.Cliente_id, oE_Reporte_Fotografico.ClientePDV_Code, "01", oE_Reporte_Fotografico.Categoria_id, oE_Reporte_Fotografico.Marca_id, oE_Reporte_Fotografico.FechaRegistro, oE_Reporte_Fotografico.Latitud, oE_Reporte_Fotografico.Longitud, oE_Reporte_Fotografico.OrigenCoordenada, " " //oE_Reporte_Fotografico.TipoReporteFotografico_id ); //Insertar Foto Tipo de Proceso por defecto 1 foreach (E_Foto Foto in oE_Reporte_Fotografico.listFotos) { oCoon.ejecutarDataTable("stp_jvm_INSERTAR_FOTO", Convert.ToInt32(oE_Reporte_Fotografico.Person_id), oE_Reporte_Fotografico.Perfil_id, oE_Reporte_Fotografico.Equipo_id, oE_Reporte_Fotografico.Cliente_id, oE_Reporte_Fotografico.ClientePDV_Code, 1, oE_Reporte_Fotografico.FechaRegistro, oE_Reporte_Fotografico.Comentario, DecodeFrom64(Foto.foto), " " //oE_Reporte_Fotografico.NombreFoto ); } error += ""; } catch (Exception ex) { error += ex.Message; } return(error); }
public string registrarFotografico(E_Reporte_Fotografico_General reporteFotografico, string AppEnvia) { string mensaje = string.Empty; try { mensaje = oD_Reporte_Fotografico.RegistrarReporteFotografico(reporteFotografico, AppEnvia); } catch (Exception ex) { log.Error("[BL_Registar_ReporteFotografico] [Registrar_ReporteFotografico_Failed] :", ex); mensaje = "Ocurrio un Error. Comuniquese con el Equipo de TI."; throw new Exception(); } return(mensaje); }
public void RegistrarReporteFotografico(E_Reporte_Fotografico_General oE_Reporte_Fotografico, E_Visita oE_Visita) { try { D_Visita oD_Visita = new D_Visita(); oD_Visita.RegistrarVisita(oE_Visita); //Tipo de Reporte por Defecto 01 oCoon = new Conexion(2); oCoon.ejecutarDataTable("STP_JVM_INSERTAR_REPORTE_FOTOGRAFICO", Convert.ToInt32(oE_Reporte_Fotografico.Person_id), //El atributo Perfil_Id se reemplaza por el Canal_Id oE_Reporte_Fotografico.Perfil_id, oE_Reporte_Fotografico.Equipo_id, oE_Reporte_Fotografico.Cliente_id, oE_Reporte_Fotografico.ClientePDV_Code, "01", oE_Reporte_Fotografico.Categoria_id, oE_Reporte_Fotografico.Marca_id, oE_Reporte_Fotografico.FechaRegistro, oE_Reporte_Fotografico.Latitud, oE_Reporte_Fotografico.Longitud, oE_Reporte_Fotografico.OrigenCoordenada, " " //oE_Reporte_Fotografico.TipoReporteFotografico_id ); //Insertar Foto Tipo de Proceso por defecto 1 foreach (E_Foto Foto in oE_Reporte_Fotografico.listFotos) { oCoon.ejecutarDataTable("stp_jvm_INSERTAR_FOTO", Convert.ToInt32(oE_Reporte_Fotografico.Person_id), oE_Reporte_Fotografico.Perfil_id, oE_Reporte_Fotografico.Equipo_id, oE_Reporte_Fotografico.Cliente_id, oE_Reporte_Fotografico.ClientePDV_Code, 1, oE_Reporte_Fotografico.FechaRegistro, oE_Reporte_Fotografico.Comentario, DecodeFrom64(Foto.foto), " "//oE_Reporte_Fotografico.NombreFoto ); } } catch (Exception ex) { } }