Пример #1
0
        private void cmdCatComponentes_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //  Presenta tabla catalogo componentes
            Boolean mostraCrud = false;
            String scad = "SELECT * FROM imagenes.catcomponentes";
            int[] aCols = { 100, 300, 100,100,80 };
            Clases.cCat ocat = new SOPORTEC.Clases.cCat();
            ocat.lista.Clear();
            ocat.lista.Add("imagenes.catcomponente");
            ocat.lista.Add("CATALOGO DE COMPONENTES");

            Clases.cDatos oDat = new SOPORTEC.Clases.cDatos();
            DataTable dt = oDat.LlenaTabla(scad);
            oDat = null;

            Formas.fCatalogo f = new Formas.fCatalogo(dt, ocat, aCols, mostraCrud );
            f.MdiParent = this;
            f.Show();

            ocat = null;
            if (mostraCrud)
            {
                f.Close();
                f.Dispose();
            }
        }
Пример #2
0
        private void cmdTipoEquipo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //  Presenta tabla catalogo cattipoequipos
            Boolean mostraCrud = false;
            String scad = "SELECT * FROM imagenes.cattipoequipos";
            int[] aCols = { 100, 400, 100 };
            Clases.cCat ocat = new SOPORTEC.Clases.cCat();
            ocat.lista.Clear();
            ocat.lista.Add("imagenes.cattipoequipos");
            ocat.lista.Add("TIPOS DE EQUIPOS");

            Clases.cDatos oDat = new SOPORTEC.Clases.cDatos();
            DataTable dt = oDat.LlenaTabla(scad);
            oDat = null;

            Formas.fCatalogo f = new Formas.fCatalogo(dt, ocat, aCols, mostraCrud );
            f.MdiParent = this;
            f.Show();
            ocat = null;
            if (mostraCrud)
            {
                f.Close();
                f.Dispose();
            }
        }