コード例 #1
0
 private int Idp;//LO USO PARA OBTENER EL ID COMO RESULTADO DE LA BUSQUEDA
 #region Comportamientos de los controles
 #region Busquedas
 private void bttn_Consultar_Click(object sender, EventArgs e)
 {
     if (dataGridView_Produccion.CurrentRow == null)
     {
         MessageBox.Show("Seleccione un producto al cual se va a realizar la consulta", "Error de selección", MessageBoxButtons.OK, MessageBoxIcon.Stop);
     }
     else
     {
         if (dataGridView_Produccion.RowCount > 0)
         {
             int dato = Convert.ToInt32(dataGridView_Produccion.CurrentRow.Cells["Id_ProduccionC"].Value);
             Reporte_Produccion rc = new Reporte_Produccion();
             rc.recibe(dato);
             rc.Show();
         }
     }
 }
コード例 #2
0
 private void bttn_Consultar_Click(object sender, EventArgs e)
 {
     if (dataGridView_Produccion.CurrentRow == null)
     {
         MessageBox.Show("Seleccione un producto al cual se va a realizar la consulta", "Error de selección", MessageBoxButtons.OK, MessageBoxIcon.Stop);
     }
     else
     {
         if (dataGridView_Produccion.RowCount > 0)
         {
             int dato = Convert.ToInt32(dataGridView_Produccion.CurrentRow.Cells["Id_ProduccionC"].Value);
             Reporte_Produccion rc = new Reporte_Produccion();
             rc.recibe(dato);
             rc.Show();
         }
     }
 }