/// <summary>Formatea los Controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { base.FormatControls(); HideAction(molAction.Add); HideAction(molAction.Edit); HideAction(molAction.View); HideAction(molAction.Print); HideAction(molAction.Copy); HideAction(molAction.PrintDetail); HideAction(molAction.PrintListQR); HideAction(molAction.SelectAll); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Nombre.Tag = 0.4; Observaciones.Tag = 0.6; cols.Add(Nombre); cols.Add(Observaciones); ControlsMng.MaximizeColumns(Tabla, cols); ControlsMng.OrderByColumn(Tabla, Nombre, ListSortDirection.Ascending); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla), ControlTools.Instance.HeaderSelectedStyle); Fields_CB.Text = ControlsMng.GetCurrentColumn(Tabla).HeaderText; }
/// <summary>Formatea los controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); HideAction(molAction.Add); HideAction(molAction.Print); HideAction(molAction.Delete); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Instructor.Tag = 1; cols.Add(Instructor); ControlsMng.MaximizeColumns(Tabla, cols); ControlsMng.OrderByColumn(Tabla, Fecha, ListSortDirection.Ascending); SetGridFormat(); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = Fecha.HeaderText; SetColumnActive(ControlsMng.GetColumn(Tabla, Fecha.DataPropertyName)); }
public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Texto.Tag = 0.5; Observaciones.Tag = 0.5; cols.Add(Texto); cols.Add(Observaciones); ControlsMng.MaximizeColumns(Tabla, cols); ControlsMng.OrderByColumn(Tabla, Codigo, ListSortDirection.Ascending); SetGridFormat(); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = Codigo.HeaderText; Print_Button.Visible = false; Add_Button.Visible = false; }
private void Tabla_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { ControlsMng.SetCurrentCell(Tabla); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = ControlsMng.GetCurrentColumn(Tabla).HeaderText; SetGridFormat(); }
/// <summary>Formatea los controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Texto.Tag = 1; cols.Add(Texto); ControlsMng.MaximizeColumns(Tabla, cols); ControlsMng.OrderByColumn(Tabla, NumeroModulo, ListSortDirection.Ascending); SetGridFormat(); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = NumeroModulo.HeaderText; SetColumnActive(ControlsMng.GetColumn(Tabla, NumeroModulo.DataPropertyName)); }
public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Localidad.Tag = 0.5; Municipio.Tag = 0.5; cols.Add(Localidad); cols.Add(Municipio); ControlsMng.MaximizeColumns(Tabla, cols); ControlsMng.OrderByColumn(Tabla, Municipio, ListSortDirection.Ascending); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = ControlsMng.GetCurrentColumn(Tabla).HeaderText; SetGridFormat(); }
/// <summary>Formatea los controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Observaciones.Tag = 1; cols.Add(Observaciones); ControlsMng.MaximizeColumns(Tabla, cols); ControlsMng.OrderByColumn(Tabla, FechaInicial, ListSortDirection.Descending); SetGridFormat(); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = FechaInicial.HeaderText; SetColumnActive(ControlsMng.GetColumn(Tabla, FechaInicial.DataPropertyName)); }
/// <summary>Formatea los controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); HideAction(molAction.Add); HideAction(molAction.Print); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Observaciones.Tag = 1; cols.Add(Observaciones); ControlTools.Instance.CopyBasicStyle(ConfirmadaStyle); ConfirmadaStyle.BackColor = Color.LightGreen; ControlsMng.MaximizeColumns(Tabla, cols); ControlsMng.OrderByColumn(Tabla, Fecha, ListSortDirection.Ascending); SetGridFormat(); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = Fecha.HeaderText; SetColumnActive(ControlsMng.GetColumn(Tabla, Instructor.DataPropertyName)); }
/// <summary>Formatea los Controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { base.FormatControls(); Tool_Strip.Visible = false; PanelesV.Panel1MinSize = 50; PanelesV.SplitterDistance = 50; Letras_Panel.Top = (PanelesV.SplitterDistance - Letras_Panel.Height) / 2; List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Nombre.Tag = 0.4; Observaciones.Tag = 0.6; cols.Add(Nombre); cols.Add(Observaciones); ControlsMng.MaximizeColumns(Tabla, cols); ControlsMng.OrderByColumn(Tabla, Nombre, ListSortDirection.Ascending); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = Nombre.HeaderText; SetGridFormat(); }
/// <summary>Formatea los controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); //HideAction(molAction.Add); //HideAction(molAction.Edit); //HideAction(molAction.Delete); //HideAction(molAction.View); ShowAction(molAction.Print); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Modulo.Tag = 1; cols.Add(Modulo); ControlsMng.MaximizeColumns(Tabla, cols); SetGridFormat(); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = Apellidos.HeaderText; ControlTools.Instance.CopyBasicStyle(FaltaStyle); FaltaStyle.BackColor = Color.LightBlue; ControlTools.Instance.CopyBasicStyle(ApercibimientoStyle); ApercibimientoStyle.BackColor = Color.LightSalmon; ControlTools.Instance.CopyBasicStyle(BloqueadoStyle); BloqueadoStyle.BackColor = Color.LightCoral; MaximizeForm(); }
/// <summary>Formatea los controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); HideAction(molAction.Copy); HideAction(molAction.Print); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Titulo.Tag = 0.5; Motivo.Tag = 0.5; cols.Add(Titulo); cols.Add(Motivo); ControlsMng.MaximizeColumns(Tabla, cols); SetGridFormat(); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = Codigo.HeaderText; }
/// <summary>Formatea los controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); //HideAction(molAction.Add); //HideAction(molAction.Edit); //HideAction(molAction.Delete); //HideAction(molAction.View); ShowAction(molAction.Print); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Modulo.Tag = 1; cols.Add(Modulo); ControlsMng.MaximizeColumns(Tabla, cols); SetGridFormat(); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = Apellidos.HeaderText; MaximizeForm(); }
/// <summary>Formatea los controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); HideAction(molAction.Add); HideAction(molAction.Edit); HideAction(molAction.Copy); HideAction(molAction.Delete); HideAction(molAction.Select); HideAction(molAction.SelectAll); HideAction(molAction.View); ShowAction(molAction.Print); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Modulo.Tag = 0.5; Titulo.Tag = 0.5; cols.Add(Modulo); cols.Add(Titulo); ControlTools.Instance.CopyBasicStyle(SemanaParStyle); SemanaParStyle.BackColor = System.Drawing.Color.LightBlue; ControlsMng.MaximizeColumns(Tabla, cols); SetGridFormat(); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = Numero.HeaderText; }
public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); Preguntas_LB.Left = (this.Width - Preguntas_LB.Width) / 2; Respuestas_LB.Left = (this.Width - Respuestas_LB.Width) / 2; Contenido_Panel.SplitterDistance = 1000; PanelesSearch.IsSplitterFixed = false; PanelesSearch.SplitterDistance = PanelesSearch.Height - PanelesSearch.SplitterWidth - Campos_Panel.Height - Navegador.Height - 4 /*Margen*/ - Campos2_Panel.Height - 4; PanelesSearch.IsSplitterFixed = true; Campos2_Panel.Left = (this.Width - Campos2_Panel.Width) / 2; List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Texto.Tag = 0.6; Modulo.Tag = 0.4; cols.Add(Texto); cols.Add(Modulo); ControlsMng.MaximizeColumns(Tabla, cols); ControlsMng.OrderByColumn(Tabla, Codigo, ListSortDirection.Ascending); Fields_CB.Text = Codigo.HeaderText; cols.Clear(); Respuesta.Tag = "1"; cols.Add(Respuesta); ControlsMng.MaximizeColumns(Respuestas_Grid, cols); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); ControlsMng.MarkGridColumn(Respuestas_Grid, ControlsMng.GetCurrentColumn(Respuestas_Grid)); ControlTools.Instance.CopyBasicStyle(DisponibleStyle); DisponibleStyle.BackColor = Color.LightGreen; ControlTools.Instance.CopyBasicStyle(ReservadaStyle); ReservadaStyle.BackColor = Color.LightBlue; ControlTools.Instance.CopyBasicStyle(BloqueadaStyle); BloqueadaStyle.BackColor = Color.WhiteSmoke; SetColumnActive(ControlsMng.GetColumn(Tabla, Texto.DataPropertyName)); }
private void Tabla_CellClick(object sender, DataGridViewCellEventArgs e) { DataGridViewCellStyle estilo = ControlsMng.GetCurrentCell(Tabla).Style; estilo.BackColor = Color.LightGray; ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla), estilo); Fields_CB.Text = ControlsMng.GetCurrentColumn(Tabla).HeaderText; }
private void Tabla_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e) { if (List == null) { return; } ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); }
protected override bool DoFilterByFirst(string value, string column_name) { if (column_name == null) { column_name = ControlsMng.GetCurrentColumn(Tabla).Name; } _filter_results = Localize(value, column_name); return(_filter_results != null); }
public override void FitColumns() { List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Concepto.Tag = 1; cols.Add(Concepto); ControlsMng.MaximizeColumns(Lineas_DGW, cols); ControlsMng.MarkGridColumn(Lineas_DGW, ControlsMng.GetCurrentColumn(Lineas_DGW)); }
protected override void FilterByKey(string key) { DataGridViewColumn column = ControlsMng.GetCurrentColumn(TablaBase); string keys = (_active_column != column) ? key : _filter_keys + key; _suspend_event = true; Search_TB.Text = keys; _suspend_event = false; base.FilterByKey(key); }
/// <summary>Formatea los Controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { base.FormatControls(); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); ColumnaProductoNombre.Tag = 1; cols.Add(ColumnaProductoNombre); ControlsMng.MaximizeColumns(ProductoTabla, cols); ControlsMng.MarkGridColumn(ProductoTabla, ControlsMng.GetCurrentColumn(ProductoTabla)); }
public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla), ControlTools.Instance.HeaderSelectedStyle); Fields_CB.Text = Fecha.HeaderText; }
/// <summary>Formatea los Controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { base.FormatControls(); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Texto.Tag = "1"; cols.Add(Texto); ControlsMng.MaximizeColumns(Preguntas_Grid, cols); ControlsMng.MarkGridColumn(Preguntas_Grid, ControlsMng.GetCurrentColumn(Preguntas_Grid)); }
/// <summary> /// Filtra la tabla /// </summary> /// <param name="oid">Identificar del elemento</param> protected override void SetFilter(bool on) { DataGridViewColumn col = ControlsMng.GetCurrentColumn(Tabla); try { Datos.DataSource = on ? _filter_results : EmpresaList.SortList(List, SortProperty, SortDirection); } catch (Exception) { Datos.DataSource = EmpresaList.SortList(List, SortProperty, SortDirection); } ControlsMng.OrderByColumn(Tabla, col, SortDirection); }
/// <summary>Da formato a los controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { base.MaximizeForm(new Size(this.Width, 0)); base.FormatControls(); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Observaciones.Tag = 1; cols.Add(Observaciones); ControlsMng.MaximizeColumns(LineaInventario_Grid, cols); ControlsMng.MarkGridColumn(LineaInventario_Grid, ControlsMng.GetCurrentColumn(LineaInventario_Grid)); }
public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); //SetActionStyle(molAction.UserDefined1, Resources.Labels.COBROS_TI, Properties.Resources.cobro); ControlsMng.OrderByColumn(Tabla, Fecha, ListSortDirection.Descending); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla), ControlTools.Instance.HeaderSelectedStyle); Fields_CB.Text = Codigo.HeaderText; }
private void Datos_Entidades_CurrentChanged(object sender, EventArgs e) { if (Datos_Entidades.Current != null) { TipoEntidadList tipos = TipoEntidadList.GetList(false); if (!tipos.GetItem(CurrentEntidad.Tipo).UserCreated) { RefreshMainData(); ControlsMng.OrderByColumn(Tabla, Nombre, ListSortDirection.Ascending); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = Nombre.HeaderText; } else { Datos.DataSource = null; } } }
public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); PanelesSearch.IsSplitterFixed = false; PanelesSearch.SplitterDistance = PanelesSearch.Height - PanelesSearch.SplitterWidth - Campos_Panel.Height - Navegador.Height - 4 /*Margen*/ - Campos2_Panel.Height - 4; PanelesSearch.IsSplitterFixed = true; Campos2_Panel.Left = (this.Width - Campos2_Panel.Width) / 2; List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Titulo.Tag = 0.6; Modulo.Tag = 0.4; cols.Add(Titulo); cols.Add(Modulo); ControlsMng.MaximizeColumns(Tabla, cols); ControlsMng.OrderByColumn(Tabla, FechaExamen, ListSortDirection.Ascending); SetGridFormat(); if (ControlsMng.GetCurrentCell(Tabla) != null) { DataGridViewCellStyle estilo = ControlsMng.GetCurrentCell(Tabla).Style; estilo.BackColor = Color.LightGray; ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla), estilo); } Fields_CB.Text = FechaExamen.HeaderText; SetColumnActive(ControlsMng.GetColumn(Tabla, Titulo.DataPropertyName)); }
/// <summary>Formatea los controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); HideAction(molAction.Print); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Nombre.Tag = 1; cols.Add(Nombre); ControlsMng.MaximizeColumns(Tabla, cols); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); }
/// <summary>Formatea los controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Codigo.Tag = 1; cols.Add(Codigo); ControlsMng.MaximizeColumns(Tabla, cols); SetGridFormat(); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = Codigo.HeaderText; }
/// <summary>Formatea los controles del formulario /// <returns>void</returns> /// </summary> public override void FormatControls() { if (Tabla == null) { return; } base.FormatControls(); List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Observaciones.Tag = 1; cols.Add(Observaciones); ControlsMng.MaximizeColumns(Tabla, cols); SetGridFormat(); ControlsMng.MarkGridColumn(Tabla, ControlsMng.GetCurrentColumn(Tabla)); Fields_CB.Text = FechaCreacion.DataPropertyName; }