2 using System.Collections.Generic;
11 internal class CheckManteCommand : Command
13 DataTable dtMante = null;
14 public CheckManteCommand(IAddonsManager addons) : base(addons)
19 protected override void CommandModulo(
IModulo modulo, params
object[] parameters)
21 if (DB._SQLExisteTablaBBDD(modulo.
_NombreConexion,
"MANTES") && dtMante == null)
24 Func<string, DataTable> _checkMante = parameters[0] as Func<string, DataTable>;
25 DataTable loDt = _checkMante(lcAliasDb);
26 dtMante = loDt is DataTable && loDt.Rows.Count > 0 ? loDt : null;
30 protected override object Return(params
object[] parameters)
34 protected override ExpectedParameters GetExpectedParameters()
36 return new ExpectedParameters(
new Type[] { typeof(Func<string, DataTable>) });
38 protected override bool Exit()
40 return dtMante != null;
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