2 using System.Collections.Generic;
12 namespace sage.ew.docscompra
22 private bool _lEnabled =
true;
30 get {
return _lEnabled; }
33 if (_lEnabled != value)
36 this.Enabled = _lEnabled;
41 private dynamic _oDocumento;
46 public dynamic _Documento
48 get {
return this._oDocumento; }
49 set { this._oDocumento = value; }
58 if(Convert.ToBoolean(EW_GLOBAL._GetVariable(
"wl_obra")))
68 this.Click +=
new EventHandler(chIsp_Click);
76 if (this._oDocumento != null)
78 this.DataBindings.Clear();
79 this.DataBindings.Add(
"Checked", this._oDocumento._Cabecera,
"_Isp",
true);
83 bool llReadOnly = this._oDocumento._oForm._Controles_En_Formulario_De_Solo_Lectura();
84 this._Enabled = !llReadOnly;
96 if (this._Documento == null)
100 if (
string.IsNullOrWhiteSpace(this._Documento._Numero) ||
string.IsNullOrWhiteSpace(
this._Documento._Cabecera._Proveedor))
102 _Documento._MessageBox(
"Para modificar el ISP debe haber un documento cargado.", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, DialogResult.OK);
103 this.Checked =
false;
107 if (this._Documento._Hay_Lineas_Con_IVA())
109 string lcIva = Convert.ToString(EW_GLOBAL._GetVariable(
"wc_IVA"));
110 this._Documento._MessageBox(
"Para revisar los tipos de " + lcIva +
" debe acceder a la comprobación de " + lcIva +
" desde el botón de opciones.", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, DialogResult.OK);
116 this._Documento._Cabecera._Recc =
false;
118 Form loForm = this.FindForm();
122 if (loForm2._TipoFormulario == formul._TiposFormulario.Normal)
124 Control[] loControls = loForm2.Controls.Find(
"chRecc",
true);
125 if (loControls.Length > 0)
128 loControl = (
chRecc)loControls[0];
Marcar si el documento trabaja con ISP
Clase sage.ew.objetos.ewcheckbox
Interfaz utilizada en los controles que se añaden en los perfiles
void _Refresh()
Refrescar objeto para que actualize su contenido en funcion del objeto documento de venta no visual...
void chIsp_Click(object sender, EventArgs e)
chRecc_Click : Evento de marcar/desmarcar el check
void _Refresh()
Refrescar objeto para que actualize su contenido en funcion del objeto documento de venta no visual...
marcar si el documento trabaja con RECC
Interfaz para refrescar los controles de los perfiles