2 using System.Collections.Generic;
11 internal class GetNombrePantallaListadosCommand : Command
13 private string ret =
string.Empty;
14 public GetNombrePantallaListadosCommand(IAddonsManager addons) : base(addons)
16 Name =
"GetNombrePantallaListados";
19 protected override void CommandModulo(
IModulo modulo, params
object[] parameters)
23 string lcClase = parameters[0].ToString();
25 string lcSql = $
@"SELECT * FROM { DB.SQLDatabase(lcAliasDb, "listados
") } 26 WHERE clase = { DB.SQLString(lcClase) }";
28 DataTable ldtResult =
new DataTable();
29 if (DB.SQLExec(lcSql, ref ldtResult) &&
30 ldtResult.Rows.Count > 0)
33 ret = ldtResult.Rows[0][
"pantalla"].ToString().Trim();
37 protected override ExpectedParameters GetExpectedParameters()
39 return new ExpectedParameters(
new Type[] { typeof(
string) });
42 protected override object Return(params
object[] parameters)
46 protected override bool Exit()
48 return !
string.IsNullOrEmpty(ret);
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