Esempio n. 1
0
        public bool InsertarPremio(int op)
        {
            List <SqlParameter> lstParametros = new List <SqlParameter>();

            lstParametros.Add(new SqlParameter("@Op", SqlDbType.Int)
            {
                Value = op
            });
            lstParametros.Add(new SqlParameter("@Folio", SqlDbType.Int)
            {
                Value = premio.nuevoPremio.FkOferta
            });



            if (objManagerBD.UpdateData("spNegocios", lstParametros.ToArray()))
            {
                return(true);
            }

            return(false);
        }
Esempio n. 2
0
        public void RegistrarOfertas(int opcion)
        {
            List <SqlParameter> lstParametros = new List <SqlParameter>();

            lstParametros.Add(new SqlParameter("@Op", SqlDbType.Int)
            {
                Value = opcion
            });
            lstParametros.Add(new SqlParameter("@FkNegocio", SqlDbType.Int)
            {
                Value = of.newOferta.FkNegocio
            });
            lstParametros.Add(new SqlParameter("@Producto", SqlDbType.VarChar, 50)
            {
                Value = of.newOferta.Producto
            });
            lstParametros.Add(new SqlParameter("@Porcentaje", SqlDbType.Int)
            {
                Value = of.newOferta.Porcentaje
            });
            objManagerBD.UpdateData("spOfertas", lstParametros.ToArray());
        }
Esempio n. 3
0
        public bool RegistroOrganizacion(int opcion)
        {
            List <SqlParameter> lstParametros = new List <SqlParameter>();

            lstParametros.Add(new SqlParameter("@Op", SqlDbType.Int)
            {
                Value = opcion
            });
            lstParametros.Add(new SqlParameter("@Folio", SqlDbType.Int)
            {
                Value = org.newOrganization.Folio
            });
            lstParametros.Add(new SqlParameter("@NombreNegocio", SqlDbType.VarChar, 50)
            {
                Value = org.newOrganization.NombreNegocio
            });
            lstParametros.Add(new SqlParameter("@TipoOrganizacion", SqlDbType.VarChar, 30)
            {
                Value = org.newOrganization.TipoOrganizacion
            });
            lstParametros.Add(new SqlParameter("@Ubicacion", SqlDbType.VarChar, 70)
            {
                Value = org.newOrganization.Ubicacion
            });
            lstParametros.Add(new SqlParameter("@EdoPago", SqlDbType.Bit)
            {
                Value = org.newOrganization.EdoPago
            });
            lstParametros.Add(new SqlParameter("@Contraseña", SqlDbType.VarChar, 10)
            {
                Value = org.newOrganization.Contraseña
            });
            lstParametros.Add(new SqlParameter("@Longitud", SqlDbType.VarChar, 30)
            {
                Value = org.newOrganization.Longitud
            });
            lstParametros.Add(new SqlParameter("@Latitud", SqlDbType.VarChar, 30)
            {
                Value = org.newOrganization.Latitud
            });
            lstParametros.Add(new SqlParameter("@Dueño", SqlDbType.VarChar, 70)
            {
                Value = org.newOrganization.Dueño
            });
            lstParametros.Add(new SqlParameter("@Contacto", SqlDbType.VarChar, 30)
            {
                Value = org.newOrganization.Contacto
            });
            lstParametros.Add(new SqlParameter("@Imagen", SqlDbType.VarChar, 100)
            {
                Value = org.newOrganization.Imagen
            });
            lstParametros.Add(new SqlParameter("@FechaPago", SqlDbType.Date)
            {
                Value = org.newOrganization.FechaPago
            });
            if (objManagerBD.UpdateData("spNegocios", lstParametros.ToArray()))
            {
                return(true);
            }

            return(false);
        }