Beispiel #1
0
        private void dgv_negocios_DoubleClick(object sender, EventArgs e)
        {
            DataRow row          = dgv_neg.GetFocusedDataRow();
            string  id_negocio   = row[0].ToString();
            string  titulo       = row[1].ToString();
            string  cliente      = row[2].ToString();
            string  empresa      = row[3].ToString();
            string  moneda       = row[4].ToString();
            string  valor        = row[5].ToString();
            string  fecha_cierre = row[6].ToString();
            string  categoria    = row[7].ToString();

            FormDetallesNegocio f = new FormDetallesNegocio();

            f.id_negocio     = id_negocio;
            f.titulo         = titulo;
            f.nombre_persona = cliente;
            f.nombre_empresa = empresa;
            f.moneda         = moneda;
            f.valor          = valor;
            f.fecha_cierre   = fecha_cierre;
            f.categoria      = categoria;

            f.MdiParent = this.MdiParent;
            f.Show();
        }
Beispiel #2
0
        private void Item1_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            string    id_negocio   = e.Item.Tag.ToString();
            DataTable dt           = OpBD.SeleccionarNegocioEspecifico(id_negocio);
            DataRow   row          = dt.Rows[0];
            string    id           = row[0].ToString();
            string    titulo       = row[1].ToString();
            string    persona      = row[2].ToString();
            string    empresa      = row[3].ToString();
            string    moneda       = row[4].ToString();
            string    valor        = row[5].ToString();
            string    fecha_cierre = row[6].ToString();
            string    categoria    = row[7].ToString();

            FormDetallesNegocio f = new FormDetallesNegocio();

            f.id_negocio     = id;
            f.titulo         = titulo;
            f.nombre_persona = persona;
            f.nombre_empresa = empresa;
            f.moneda         = moneda;
            f.valor          = valor;
            f.fecha_cierre   = fecha_cierre;
            f.categoria      = categoria;

            f.MdiParent = this.MdiParent;
            f.Show();
        }