2 using System.Collections.Generic;
11 internal class PermitirCrearTareaProgramadaCommand : Command
15 public PermitirCrearTareaProgramadaCommand(IAddonsManager addons) : base(addons)
17 Name =
"PermitirCrearTareaProgramada";
20 protected override void CommandModulo(
IModulo modulo, params
object[] parameters)
23 string lcNombre = modulo.
_Nombre;
24 string tcPantalla = parameters[0].ToString();
25 DataTable ldtResult = parameters[1] as DataTable;
26 if (DB._SQLExisteTablaBBDD(lcConexion,
"LISTADOS"))
29 string lcSql = $
@"SELECT * 30 FROM { DB.SQLDatabase(lcNombre, "listados
")} 31 WHERE pantalla = {DB.SQLString(tcPantalla.Trim().ToUpper())}";
33 bool llOk = DB.SQLExec(lcSql, ref ldtResult);
34 if (llOk && ldtResult != null && ldtResult.Rows.Count > 0)
36 lRet = ldtResult.Columns.Contains(
"tarea") ?
37 Convert.ToBoolean(ldtResult.Rows[0][
"tarea"]) :
false;
43 protected override ExpectedParameters GetExpectedParameters()
45 return new ExpectedParameters(
new Type[] { typeof(
string), typeof(DataTable) });
47 protected override bool Exit()
51 protected override object Return(params
object[] parameters)
PE-93426 Interficie para los módulos de la aplicación
string _NombreConexion
Nombre real de la base de datos
string _Nombre
Nombre interno del módulo y nombre del directorio de instación