Esempio n. 1
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            Detalle_de_Devolucion VEN = new Detalle_de_Devolucion();

            VEN.Text                     = "GUIA NUMERO:" + dataGridView1.CurrentRow.Cells["NUMERO_GUIA"].Value.ToString();
            VEN.LBLESTADO.Text           = dataGridView1.CurrentRow.Cells["ESTADO"].Value.ToString();
            VEN.LBLGUIA.Text             = dataGridView1.CurrentRow.Cells["NUMERO_GUIA"].Value.ToString();
            VEN.LBLLINEA.Text            = dataGridView1.CurrentRow.Cells["LINEA"].Value.ToString();
            VEN.LBLFECHA.Text            = dataGridView1.CurrentRow.Cells["FECHA"].Value.ToString();
            VEN.LBLFECHATRASLADO.Text    = dataGridView1.CurrentRow.Cells["FECHA_TRASLADO"].Value.ToString();
            VEN.LBLREFERENCIA.Text       = dataGridView1.CurrentRow.Cells["MOTIVO"].Value.ToString();
            VEN.LBLTRANSPORTE.Text       = dataGridView1.CurrentRow.Cells["TRANSPORTISTA"].Value.ToString();
            VEN.dataGridView1.DataSource = RP.IMPR_GUIA_DEVOL_DETALLES(Convert.ToInt32(dataGridView1.CurrentRow.Cells["CODIGO"].Value));
            VEN.MdiParent                = this.ParentForm;
            VEN.Show();
        }
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (lblclave.Text == "DESC")
     {
         Detalle_de_Devolucion VEN = new Detalle_de_Devolucion();
         VEN.LBLTIPO.Text          = "DESC";
         VEN.Text                  = "GUIA NUMERO:" + dataGridView1.CurrentRow.Cells["NUMERO_GUIA"].Value.ToString();
         VEN.LBLESTADO.Text        = dataGridView1.CurrentRow.Cells["ESTADO"].Value.ToString();
         VEN.LBLGUIA.Text          = dataGridView1.CurrentRow.Cells["NUMERO_GUIA"].Value.ToString();
         VEN.LBLLINEA.Text         = dataGridView1.CurrentRow.Cells["LINEA"].Value.ToString();
         VEN.LBLFECHA.Text         = dataGridView1.CurrentRow.Cells["FECHA"].Value.ToString().Substring(0, 10);
         VEN.LBLFECHATRASLADO.Text = dataGridView1.CurrentRow.Cells["FECHA_TRASLADO"].Value.ToString();
         VEN.LBLREFERENCIA.Text    = "FACTURA:" + dataGridView1.CurrentRow.Cells["RFT"].Value.ToString() +
                                     " GUIA:" + dataGridView1.CurrentRow.Cells["RGUIA"].Value.ToString();
         VEN.LBLTRANSPORTE.Text       = dataGridView1.CurrentRow.Cells["TRANSPORTISTA"].Value.ToString();
         VEN.LBLCOD.Text              = dataGridView1.CurrentRow.Cells["CODIGO"].Value.ToString();
         VEN.dataGridView1.DataSource = RP.IMPR_GUIA_DEVOL_DETALLES(Convert.ToInt32(dataGridView1.CurrentRow.Cells["CODIGO"].Value));
         if (VEN.LBLESTADO.Text == "ANULADA")
         {
             VEN.PANELDESCARGAR.Visible = false;
         }
         else if (VEN.LBLESTADO.Text == "TRASLADADA")
         {
             VEN.PANELDESCARGAR.Visible = false;
         }
         else
         {
             VEN.PANELDESCARGAR.Visible = true;
         }
         VEN.MdiParent = this.ParentForm;
         VEN.Show();
         VEN.FormClosed += VEN_FormClosed;
     }
     else
     {
         Modificar_GD VEN2 = new Modificar_GD();
         VEN2.NUMERO                = Convert.ToInt32(dataGridView1.CurrentRow.Cells["CODIGO"].Value);
         VEN2.NUMERO_GUIA           = dataGridView1.CurrentRow.Cells["NUMERO_GUIA"].Value.ToString();
         VEN2.MdiParent             = this.ParentForm;
         VEN2.STCODIGO.Text         = STCODIGO.Text;
         VEN2.STNOMBRECOMPLETO.Text = STNOMBRECOMPLETO.Text;
         VEN2.STPERFIL.Text         = STPERFIL.Text;
         VEN2.Show();
         VEN2.FormClosed += VEN2_FormClosed;
     }
 }