Exemplo n.º 1
0
        private void button5_Click(object sender, EventArgs e)
        {
            string idOrden = desc_codigo.Text;//Convert.ToString(this.desc_detalles.CurrentRow.Cells["id_orden_compra"].Value);

            nOrdenCompra InstNeg   = new nOrdenCompra();
            OrdenCompra  InstOrden = new OrdenCompra();

            InstOrden = InstNeg.ShowOrdenCompraByID(idOrden);


            this.ed_Nombre.Text            = InstOrden.Nombre;
            this.ed_Descp.Text             = InstOrden.Descripcion;
            this.ed_estado.Text            = InstOrden.EstadoOrden.Nombre;
            this.ed_IdOrden.Text           = Convert.ToString(InstOrden.Id_Orden_Compra);
            this.ed_date.Text              = InstOrden.Fecha.ToString();
            this.tabControl1.SelectedIndex = 1;
        }
Exemplo n.º 2
0
        private void dataListadoCat_DoubleClick(object sender, EventArgs e)
        {
            string       idOrden   = Convert.ToString(this.dataListadoCat.CurrentRow.Cells["id_orden_compra"].Value);
            nOrdenCompra InstNeg   = new nOrdenCompra();
            OrdenCompra  InstOrden = new OrdenCompra();

            InstOrden = InstNeg.ShowOrdenCompraByID(idOrden);


            this.desc_nombre.Text = InstOrden.Nombre;
            this.desc_desc.Text   = InstOrden.Descripcion;
            this.desc_estado.Text = InstOrden.EstadoOrden.Nombre;
            this.desc_codigo.Text = Convert.ToString(InstOrden.Id_Orden_Compra);
            this.desc_fecha.Text  = InstOrden.Fecha.ToString();

            this.desc_nombre.Enabled = false;
            this.desc_desc.Enabled   = false;
            this.desc_estado.Enabled = false;
            this.desc_codigo.Enabled = false;
            this.desc_fecha.Enabled  = false;

            this.tabControl1.SelectedIndex = 2;
        }