public void Registrar_Promociones_General(E_Reporte_Promocion_General oEReporte) { //string id_reg_Presencia = ""; oCoon = new Conexion(2); //Crear un Store procedure para InsertarPresencia con nuevo AppMovil //id = //pSalas 06/03/2012 pendiente el store procedure oCoon.ejecutarDataSet("STP_JVM_INSERTAR_PROMOCIONES", int.Parse(oEReporte.Person_id), oEReporte.Id_perfil ?? "", oEReporte.Id_equipo ?? "", oEReporte.Id_cliente ?? "", oEReporte.Id_ptoventa ?? "", oEReporte.Id_categoria ?? "", oEReporte.Id_marca ?? "", oEReporte.Id_company_promo ?? "", oEReporte.Id_promocion ?? "", oEReporte.Descripcion_promocion ?? "", oEReporte.Mecanica ?? "", oEReporte.Cod_producto ?? "", oEReporte.Fec_ini_promocion ?? "", oEReporte.Fec_fin_promocion ?? "", oEReporte.Precio_promocion ?? "", oEReporte.Precio_regular ?? "", oEReporte.FechaRegistro ?? "", oEReporte.Latitud ?? "", oEReporte.Longitud ?? "", oEReporte.Origen ?? "", oEReporte.Tipo_canal ?? "", oEReporte.Comentario ?? ""); oCoon.ejecutarDataSet("stp_jvm_INSERTAR_FOTO", int.Parse(oEReporte.Person_id), oEReporte.Id_perfil ?? "", oEReporte.Id_equipo ?? "", oEReporte.Id_cliente ?? "", oEReporte.Id_ptoventa ?? "", 9, oEReporte.FechaRegistro ?? "", oEReporte.Comentario ?? "", DecodeFrom64(oEReporte.Foto ?? ""), "");//nombreFoto //foreach (E_Reporte_Presencia_General_Detalle detalle in oEReporte.DetallePresencia) // Registrar_Presencia_General_Detalle(detalle); //return oE_Reporte_Presencia; //oListE_Reporte_Presencia.Add(oE_Reporte_Presencia); //return oListE_Reporte_Presencia; }
public void Registrar_Promociones_General(E_Reporte_Promocion_General oEReporte) { //D_Reporte_Precio oD_Reporte_Precio = new D_Reporte_Precio(); D_Reporte_Promociones oDReporte = new D_Reporte_Promociones(); try { oDReporte.Registrar_Promociones_General(oEReporte); } catch (Exception ex) { log.Error("[BL_Registar_Promocion] [RegistrarPromocionFailed] :", ex); } }