public override object BuscarEscalar(Utils.TpBusca[] vBusca, string vNM_Campo, string vGroup, string vOrder, System.Collections.Hashtable vParametros) { if (NM_ProcSqlBusca.Trim().Equals(string.Empty)) { return(ExecutarBuscaEscalar(SqlCodeBusca(vBusca, 1, vNM_Campo, vGroup, vOrder), vParametros)); } else { Type t = GetType(); System.Reflection.MethodInfo m = t.GetMethod(NM_ProcSqlBusca, System.Reflection.BindingFlags.InvokeMethod | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); string sql = m.Invoke(this, new object[] { vBusca, 1, vNM_Campo, vGroup, vOrder }).ToString(); return(ExecutarBuscaEscalar(sql, vParametros)); } }
public override object BuscarEscalar(TpBusca[] vBusca, string vNM_Campo, string vGroup, string vOrder, Hashtable vParametros) { if (NM_ProcSqlBusca.Trim() == "") { return(this.ExecutarBuscaEscalar(this.SqlCodeBusca(vBusca, 1, vNM_Campo, vGroup, vOrder), vParametros)); } else { Type t = this.GetType(); System.Reflection.MethodInfo m = t.GetMethod(this.NM_ProcSqlBusca, System.Reflection.BindingFlags.InvokeMethod | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); string sql = m.Invoke(this, new object[] { vBusca, 1, vNM_Campo, vGroup, vOrder }).ToString(); return(this.ExecutarBuscaEscalar(sql, null)); } }
public override DataTable Buscar(TpBusca[] vBusca, short vTop, string vNM_Campo) { if (NM_ProcSqlBusca.Trim().Equals(string.Empty)) { return(ExecutarBusca(SqlCodeBusca(vBusca, vTop, vNM_Campo, string.Empty, string.Empty), null)); } else { Type t = GetType(); System.Reflection.MethodInfo m = t.GetMethod(NM_ProcSqlBusca, System.Reflection.BindingFlags.InvokeMethod | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); string sql = m.Invoke(this, new object[] { vBusca, vTop, vNM_Campo, string.Empty, string.Empty }).ToString(); return(ExecutarBusca(sql, null)); } }