2 using System.Collections.Generic;
11 internal class MergeListadosCommand : Command
13 public MergeListadosCommand(IAddonsManager addons) : base(addons)
15 Name =
"MergeListados";
18 protected override void CommandModulo(
IModulo modulo, params
object[] parameters)
22 string lcSql =
"Select nombre from " + DB.SQLDatabase(modulo.
_AliasDB,
"listados") +
" WHERE TIPO = " + parameters[2].ToString();
23 DataTable ldtTemp = parameters[0] as DataTable;
24 DataTable ldtResultado = parameters[1] as DataTable;
25 if (DB.SQLExec(lcSql, ref ldtTemp ))
26 ldtResultado.Merge(ldtTemp);
31 protected override ExpectedParameters GetExpectedParameters()
33 return new ExpectedParameters(
new Type[] { typeof(DataTable), typeof(DataTable), typeof(
int) });
PE-93426 Interficie para los módulos de la aplicación
string _NombreConexion
Nombre real de la base de datos
string _AliasDB
Alias de la Base de datos