2 using System.Collections.Generic;
6 using System.ComponentModel;
11 using System.Windows.Forms;
22 # region Propiedades públicas 23 public bool _EnUso =
false;
36 if (_lisCampos.ContainsKey(
"TIPO"))
38 int lnTipo = Convert.ToInt16(_lisCampos[
"TIPO"]._NewVal);
51 if (_lisCampos.ContainsKey(
"TIPO"))
53 _lisCampos[
"TIPO"]._NewVal = value;
62 public string _Mascara
66 if (_lisCampos.ContainsKey(
"MASCARA"))
68 return Convert.ToString(_lisCampos[
"MASCARA"]._NewVal);
77 if (_lisCampos.ContainsKey(
"MASCARA"))
79 _lisCampos[
"MASCARA"]._NewVal = value;
85 private LineasPropiedadLista _oLineasPropiedadLista;
89 public LineasPropiedadLista _Lineas
94 return _oLineasPropiedadLista;
98 # endregion Propiedades públicas 100 # region Constructores 117 this._Codigo = tcCodigo;
120 # endregion Constructores 122 # region Métodos privados 123 private void Inicializar()
126 this._Clave =
"Codigo";
127 this._DataBase =
"GESTDOC";
128 this._Tabla =
"propiedad";
129 this._TituloMantenimiento =
"Mantenimiento de propiedades";
131 this._Pantalla =
"propiedad";
132 this._FormManteBaseType = typeof(Visual.Forms.frmMantePropiedad);
134 this._Codigo =
string.Empty;
136 # endregion Métodos privados 138 # region Métodos public override 139 public override bool _Delete()
145 bool llDelete =
true;
148 llDelete = loDocumento._DeleteMantePropiedades(this._Codigo);
153 llDelete = loCarpeta._DeleteMantePropiedades(this._Codigo);
157 llDelete = base._Delete();
167 this._Error_Message = String.Format(
"Error al borrar la línea de la propiedad {0} ({1})", _Nombre, _Codigo);
181 if (_oLineasPropiedadLista != null)
183 if (_oLineasPropiedadLista._Grid != null)
185 _oLineasPropiedadLista._Claves._Codigo._Valor = this._Codigo;
186 _oLineasPropiedadLista._Load();
190 _oLineasPropiedadLista = null;
200 if (_oLineasPropiedadLista == null)
203 _oLineasPropiedadLista._ewMantePrincipal =
this;
204 _oLineasPropiedadLista._Load();
218 if (_oLineasPropiedadLista != null)
221 if (this._Tipo == 5 && ( (_oLineasPropiedadLista.Count() == 0) || (_oLineasPropiedadLista.Count() > 0 &&
string.IsNullOrWhiteSpace(_oLineasPropiedadLista._Items[0]._Texto))))
223 _Error_Message =
"Es necesario indicar algún valor para las propiedades de tipo lista.";
227 _oLineasPropiedadLista._Save();
239 # endregion Métodos public override 243 #region CLASE DE LINEAS PARA PROPIEDADES TIPO LISTA 266 this._Claves._Codigo._Valor = tcCodigo;
269 private void CrearEstructura()
272 this._DataBase =
"GESTDOC";
273 this._Tabla =
"PROPI_LIS";
274 this._Condicion =
"";
275 this._OrdenarPor =
"LINEA";
276 this._Titulo_Browser =
"Buscar Linea";
310 _Codigo._EsFiltro =
true;
314 _Linea._EsCampoLinea =
true;
326 private string _cCodigo =
"";
330 public string _Codigo
332 get {
return _cCodigo; }
333 set { _cCodigo = value; }
336 private Int32 _nLinea = 0;
342 get {
return _nLinea; }
343 set { _nLinea = value; }
346 private string _cTexto =
"";
358 if (_cTexto != value)
370 public object _Parent
372 get {
return loParent; }
376 #endregion PROPIEDADES 394 lbFilaPlena = _Codigo !=
"" && _Texto !=
"";
403 #endregion CLASE DE LINEAS PARA PROPIEDADES TIPO LISTA Clase de negocio base para mantenimientos
bool Fila_Plena()
Devuelve si la línea está completa
MantePropiedad(string tcCodigo)
Constructor con código
Objeto base ObjetoCarpeta basado sobre el objeto base "ObjetoGestDoc" y que cumple implementa la inte...
Definición de los objetos campo para las tablas relacionadas
Objeto base ObjetoDocumento basado sobre el objeto base "ObjetoGestDoc"
Clase para las lineas de las propiedades de tipo lista. Basada a partir de un ewManteTRel ...
LineaPropiedadLista()
Inicializa una nueva intancia de la clase
Definir la estructura de las linias
override bool _Save()
Guarda los datos de la propiedad y de las lineas relacionadas
LineasPropiedadLista(string tcCodigo)
Inicializa una nueva intancia de la clase mediante un código
Definición de los objetos campo para las tablas relacionadas
Updatable
Actualizable. Existe el campo en la tabla.
override void _Load()
Carga los datos de la propiedad y de las lineas relacionadas
LineasPropiedadLista()
Constructor
Editable
Premitirá modificar su valor
Interfaz para objetos línea
Clase del addon de gestión documental.
Campos clave para registros únicos
Interfaz para la definición de las claves para tablas relacionadas
Clase para el acceso a las tablas relacionadas de los mantenimientos.
gridColumnsTypes
Definición de los tipos de columnas para los grids o campos enlazados
Clave()
Inicializa una nueva instancia de la clase
Visible
Visible en el grid
void _LoadLineas()
Carga las lineas de la lista