ValidaLineaDescuentosCommand.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using sage.ew.interficies;
6 
7 namespace Sage.ES.S50.Addons
8 {
9  internal class ValidaLineaDescuentosCommand : Command
10  {
11  bool ret = true;
12  bool tlBloquearOperacion = false;
13  public ValidaLineaDescuentosCommand(IAddonsManager addons) : base(addons)
14  {
15  Name = "ValidaLineaDescuentos";
16  }
17 
18  protected override void CommandModulo(IModulo modulo, params object[] parameters)
19  {
20  ret = true;
21  }
22  protected override object Return(params object[] parameters)
23  {
24  return ret;
25  }
26  protected override bool Exit()
27  {
28  return !ret && tlBloquearOperacion;
29  }
30  protected override bool Condition(params object[] parameters)
31  {
32  tlBloquearOperacion = Convert.ToBoolean(parameters[3]);
33  return base.Condition(parameters);
34  }
35  protected override bool Condition(KeyValuePair<string, object> addon)
36  {
37  return false;
38  }
39  protected override ExpectedParameters GetExpectedParameters()
40  {
41  return new ExpectedParameters(new Type[] { typeof(IMante), typeof(string), typeof(string), typeof(bool) });
42  }
43  }
44 }
PE-93426 Interficie para los módulos de la aplicación
Definition: IModulo.cs:22
Nueva interficie madre de IMantes y de la que colgara ewMante. Propiedades: _Codigo, _Nombre, _Error_Message. Metodos: _New, Save, _Delete, _Load, _Existe_Registro, _Clonar
Definition: IMantes.cs:17