lblPendienteContabilizar.cs
1 #region Usings
2 using sage.ew.global;
3 using System;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Text;
7 #endregion Usings
8 
9 namespace sage.ew.objetos
10 {
15  {
16  #region Propiedades públicas
17  // Propiedades
21  public dynamic _Documento
22  {
23  get { return _oDocumento; }
24  set { _oDocumento = value; }
25  }
26  private dynamic _oDocumento;
27  #endregion Propiedades públicas
28 
29  #region Constructor
34  {
35  }
36  #endregion Constructor
37 
38  #region Métodos protected override
39  protected override void OnCreateControl()
43  {
44  base.OnCreateControl();
45 
46  if (!DesignMode)
47  {
48  if (!Convert.ToBoolean(EW_GLOBAL._EdicionPerfiles))
49  Visible = false;
50 
51  _PropiedadesDeEstilos._AplicarEstilos = false; // Inicialmente marcamos que no ha de aplicar estilos
52  BackColor = System.Drawing.Color.Salmon;
53  ForeColor = System.Drawing.Color.White;
54  Text = "Pendiente de contabilizar";
55  Width = 200;
56  }
57  }
58  #endregion Métodos protected override
59 
60  #region Métodos públicos
61  public void _Refresh()
65  {
66  if (_Documento == null)
67  return;
68 
69  bool llVisible = false;
70 
71  llVisible = (!string.IsNullOrWhiteSpace(_Documento._Numero) && string.IsNullOrWhiteSpace(_Documento._Asi));
72 
73  if (Visible != llVisible)
74  Visible = llVisible;
75  }
76  #endregion Métodos públicos
77  }
78 }
Clase sage.ew.objetos.ewlabel
override void OnCreateControl()
Gestiones de la creación del control
Pendiente de contabilizar en facturas de venta