Пример #1
0
 private void BuscarPMV()
 {
     if (txt_PMV.Text != "")
     {
         if (int.Parse(txt_PMV.Text) > 12 | int.Parse(txt_PMV.Text) == 0)
         {
             MessageBox.Show("Ingrese un mes correcto");
             txt_MesTPMV.Focus();
             return;
         }
         else
         {
             TablaProductos = producto.ReportePMV(txt_PMV.Text);
             if (TablaProductos.Rows.Count == 0)
             {
                 MessageBox.Show("No hubo ventas en el mes ingresado", "ATENCIÓN");
             }
         }
     }
     else
     {
         MessageBox.Show("Ingresar Mes", "ATENCIÓN");
         txt_PMV.Focus();
     }
 }