12 :
sage.ew.ewbase.UserControlConfig
20 return _oFactuCerConfig;
24 _oFactuCerConfig = value;
38 InitializeComponent();
47 mtgAcuerdosFacturacion._ReadOnly = tlReadOnly;
48 mtgAcuerdosSistemaInformatico._ReadOnly = tlReadOnly;
56 this.SubscripcionEventos(
false);
59 loAcuerdosFacturacion.
_Grid = mtgAcuerdosFacturacion;
62 loAcuerdosSistemaInformatico.
_Grid = mtgAcuerdosSistemaInformatico;
64 this.SubscripcionEventos(
true);
67 private void Configuracion_Load(
object sender, EventArgs e)
72 private void SubscripcionEventos(
bool tlSubscribir)
76 this.mtgAcuerdosFacturacion._Grid.CellClick += MtgAcuerdos_CellClick;
77 this.mtgAcuerdosFacturacion._Grid.CellValueChanged += MtgAcuerdos_CellValueChanged;
78 this.mtgAcuerdosFacturacion._Grid.CurrentCellDirtyStateChanged += _Grid_CurrentCellDirtyStateChanged;
81 this.mtgAcuerdosSistemaInformatico._Grid.CellClick += MtgAcuerdos_CellClick;
82 this.mtgAcuerdosSistemaInformatico._Grid.CellValueChanged += MtgAcuerdos_CellValueChanged;
83 this.mtgAcuerdosSistemaInformatico._Grid.CurrentCellDirtyStateChanged += _Grid_CurrentCellDirtyStateChanged;
88 this.mtgAcuerdosFacturacion._Grid.CellClick -= MtgAcuerdos_CellClick;
89 this.mtgAcuerdosFacturacion._Grid.CellValueChanged -= MtgAcuerdos_CellValueChanged;
90 this.mtgAcuerdosFacturacion._Grid.CurrentCellDirtyStateChanged -= _Grid_CurrentCellDirtyStateChanged;
93 this.mtgAcuerdosSistemaInformatico._Grid.CellClick -= MtgAcuerdos_CellClick;
94 this.mtgAcuerdosSistemaInformatico._Grid.CellValueChanged -= MtgAcuerdos_CellValueChanged;
95 this.mtgAcuerdosSistemaInformatico._Grid.CurrentCellDirtyStateChanged -= _Grid_CurrentCellDirtyStateChanged;
100 private void _Grid_CurrentCellDirtyStateChanged(
object sender, EventArgs e)
102 if (sender == this.mtgAcuerdosFacturacion._Grid)
104 if (this.mtgAcuerdosFacturacion._Grid.CurrentCell.ColumnIndex ==
this.mtgAcuerdosFacturacion._Grid.Columns[
"_Predet"].Index)
106 this.mtgAcuerdosFacturacion._Grid.CommitEdit(DataGridViewDataErrorContexts.Commit);
111 if (this.mtgAcuerdosSistemaInformatico._Grid.CurrentCell.ColumnIndex ==
this.mtgAcuerdosSistemaInformatico._Grid.Columns[
"_Predet"].Index)
113 this.mtgAcuerdosSistemaInformatico._Grid.CommitEdit(DataGridViewDataErrorContexts.Commit);
118 private void MtgAcuerdos__Row_New_After(DataGridViewRow tdgvRowLastInsert,
bool tlInsert)
131 private void MtgAcuerdos_CellClick(
object sender, DataGridViewCellEventArgs e)
138 if (loCell.OwningColumn.Name ==
"_Predet")
140 if (sender == this.mtgAcuerdosFacturacion._Grid)
162 private void MtgAcuerdos_CellValueChanged(
object sender, DataGridViewCellEventArgs e)
170 switch (loCell.OwningColumn.Name)
173 if (sender == this.mtgAcuerdosFacturacion._Grid)
199 string lcCodigo =
string.Empty, lcCodigoAnt =
string.Empty;
201 if (loCell.Value != null)
202 lcCodigo = loCell.Value.ToString();
204 if (loCell.Tag != null)
205 lcCodigoAnt = loCell.Tag.ToString();
207 if (lcCodigo != lcCodigoAnt)
210 if (sender == this.mtgAcuerdosFacturacion._Grid)
213 mensaje =
"El código de acuerdo de facturación se ha entrado previamente";
218 mensaje =
"El código acuerdo de sistema informático se ha entrado previamente";
223 if (loCods._ExisteCodigoAcuerdo(lcCodigo))
225 FUNCTIONS._MessageBox(mensaje, MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, DialogResult.OK);
228 loCell.Value = lcCodigoAnt;
Object _Grid
ewgrid o Mantegrid enlazado a Items
Este es el espacio de nombres de su módulo. Puede encontrar más información y ayuda en el fichero rea...
override void _Binding()
Método para el enlace de controles y datos
Definir la estructura del código de acuerdo
void _RevisarPredeterminado(string tcCodigo)
Controlamos que únicamente tengamos un registro predeterminado
override void _BloquearControles(bool tlReadOnly)
Método para bloquear los controles del UserControl
Clase del objeto grid para Sage50
Configuración del módulo FACTUCERT
delegate void _Row_New_After_Handler(DataGridViewRow tdgvRowLastInsert, bool tlInsert)
Se dispara despues de insertar una nueva fila
ConfigFactuCertModelo _ConfigFactuCertModelo
Clase para gestionar los acuerdos de facturación/sistema informático para VERI*FACTU ...
object _Parent
Objeto padre a la instancia.
Configuración para el modelo 140/240
Presenta un datagridview con botones añadir y borrar tipo Mantegrid de Eurowin