18 private readonly
bool InstalacionConSeries = Convert.ToBoolean(EW_GLOBAL._GetVariable(
"wl_series"));
25 public dynamic _Documento
27 get {
return _oDocumento; }
28 set { _oDocumento = value; }
30 private dynamic _oDocumento = null;
35 public dynamic _GridArt = null;
40 public dynamic _Linea = null;
45 private Control _Control = null;
47 #endregion PROPIEDADES 56 InitializeComponent();
59 Text =
"Lectura automática de series";
64 _PropiedadesDeEstilos._AplicarEstilos =
true;
67 Click +=
new EventHandler(BtLecturaAutomaticaSeries_Click);
70 if (EW_GLOBAL._EdicionPerfiles || InstalacionConSeries)
77 #endregion CONSTRUCTORES 87 private void BtLecturaAutomaticaSeries_Click(
object sender, EventArgs e)
89 if (!InstalacionConSeries)
91 ShowErrorMessage(
"Debe activar el addon de \"Series\" para continuar.");
96 bool llSoloLectura =
false;
109 ShowErrorMessage(
"El documento es de solo lectura");
117 private void ShowErrorMessage(
string tcMensajeError)
122 loForm.
_MessageBox(tcMensajeError, MessageBoxButtons.OK, MessageBoxIcon.Error,
123 MessageBoxDefaultButton.Button1, DialogResult.None);
128 if (Parent.Controls[
"LecturaAutomaticaSeries"] == null)
131 _Control =
new LecturaAutomaticaSeries(_Documento, _GridArt)
135 _Control.Top = _Control.Location.Y + Height;
136 Parent.Controls.Add(_Control);
137 _Control.BringToFront();
140 Parent.Height = Parent.Height + 1;
141 Parent.Height = Parent.Height - 1;
Interfaz utilizada en los controles que se añaden en los perfiles
btLecturaAutomaticaSeries()
Constructor vacio
Botón que muestra el UserControl de "LecturaAutomaticaSeries"