Example #1
0
        public static ENResultOperation Obtener_Ruc(string NroRuc)
        {
            SqlCommand CMD = new SqlCommand("SELECT * FROM PROVEEDOR WHERE PROV_RUC =@RUC");

            CMD.Parameters.AddWithValue("@RUC", NroRuc);
            return(ProveedorDA.Procesar_SQL(CMD));
        }
Example #2
0
        public static ENResultOperation Obtener_Registro(Int32 Prove_Ide)
        {
            SqlCommand CMD = new SqlCommand("SELECT * FROM PROVEEDOR WHERE PROV_IDE =@IDE");

            CMD.Parameters.AddWithValue("@IDE", Prove_Ide);
            return(ProveedorDA.Procesar_SQL(CMD));
        }
Example #3
0
        public static ENResultOperation Listar(string Texto_Buscar)
        {
            SqlCommand CMD = new SqlCommand("SELECT * FROM PROVEEDOR WHERE PROV_RAZON_SOCIAL + PROV_CODIGO LIKE '%" +
                                            Texto_Buscar + "%'");

            return(ProveedorDA.Procesar_SQL(CMD));

            /*
             * SqlCommand CMD = new SqlCommand("PA_PROVEEDOR_LISTAR");
             * CMD.Parameters.Add(Parametros_SQL.nombre_error, SqlDbType.VarChar).Value = Texto_Buscar;
             *
             * CMD.Parameters.Add("@RETURN", SqlDbType.Int);
             * CMD.Parameters["@RETURN"].Value = DBNull.Value;
             * CMD.Parameters["@RETURN"].Direction = ParameterDirection.ReturnValue;
             * return ProveedorDA.Acceder(CMD);
             */
        }