Beispiel #1
0
        private void DtgDetalleColumnas_DoubleClick(object sender, EventArgs e)
        {
            var dato = new Modelos.CamposCatalogo();

            dato.CodigoCampoCatalogo = Convert.ToInt16(DMS.UtilidadesDesktop.DatagridViewUtilities.ObtenerValorCeldaActual(dtgDetalleColumnas, "CatalogoCampoId").ToString());
            var campo = (new Servicio.ColumnasTablaServiceImpl()).obtenePorId(dato);

            CreacionEstructura.CamposCatalogo campos = new CreacionEstructura.CamposCatalogo(catalogoGeneral, campo);
            campos.ShowDialog();
            btnActualizarCampos.PerformClick();

            try
            {
                dataGridView2.Visible    = true;
                dataGridView2.DataSource = (new Servicio.CatalogoServiceImpl()).executeQuery(StringUtilities.getSqlQuery("[" + catalogoGeneral.TipoCategoria.EsquemaFisico + "].[" + txtNombreFisicoCatalogo.Text + "]", dtgDetalleColumnas, numericUpDown1.Value));
            }
            catch (Exception ex)
            {
                dataGridView2.Visible = false;
            }
        }
Beispiel #2
0
 private void BtnAgregarCampo_Click(object sender, EventArgs e)
 {
     CreacionEstructura.CamposCatalogo cat = new CreacionEstructura.CamposCatalogo(catalogoGeneral);
     cat.ShowDialog();
     ObtenerInformacionCatalogo();
 }