private void cmb_temporadaid_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (cmb_temporadaid.SelectedIndex != -1)
            {
                tb_pt_temporadaBL BL = new tb_pt_temporadaBL();
                tb_pt_temporada BE = new tb_pt_temporada();
                DataTable dt = new DataTable();
                BE.temporadaid = cmb_temporadaid.SelectedValue.ToString();

                try
                {
                    dt = BL.GetAll(EmpresaID, BE).Tables[0];
                    if (dt.Rows.Count > 0)
                    {
                        lbl01.Text = dt.Rows[0]["mes01"].ToString();
                        lbl02.Text = dt.Rows[0]["mes02"].ToString();
                        lbl03.Text = dt.Rows[0]["mes03"].ToString();
                        lbl04.Text = dt.Rows[0]["mes04"].ToString();
                        lbl05.Text = dt.Rows[0]["mes05"].ToString();
                        lbl06.Text = dt.Rows[0]["mes06"].ToString();
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }

                CargarDatos();
            }
        }
 void CargarCmbTemporada()
 {
     tb_pt_temporadaBL BL = new tb_pt_temporadaBL();
     tb_pt_temporada BE = new tb_pt_temporada();
     DataTable dt = new DataTable();
     dt = BL.GetAll(EmpresaID, BE).Tables[0];
     if (dt.Rows.Count > 0)
     {
         cmb_temporadaid.DataSource = dt;
         cmb_temporadaid.ValueMember = "temporadaid";
         cmb_temporadaid.DisplayMember = "temporadaname";
     }
 }
        private void data_Tablatemporada()
        {
            try
            {
                if (Tablatemporada.Rows.Count > 0)
                {
                    Tablatemporada.Rows.Clear();
                }
                var BL = new tb_pt_temporadaBL();
                var BE = new tb_pt_temporada();

                BE.temporadaname = txt_criterio.Text.Trim().ToUpper();

                Tablatemporada = BL.GetAll(EmpresaID, BE).Tables[0];
                if (Tablatemporada.Rows.Count > 0)
                {
                    btn_imprimir.Enabled = true;
                    gridtemporada.DataSource = Tablatemporada;
                    gridtemporada.Rows[0].Selected = false;
                    gridtemporada.Focus();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 void data_cbo_temporadaid()
 {
     try
     {
         tb_pt_temporadaBL BL = new tb_pt_temporadaBL();
         tb_pt_temporada BE = new tb_pt_temporada();
         temporadaid.DataSource = BL.GetAll(EmpresaID, BE).Tables[0];
         temporadaid.ValueMember = "temporadaid";
         temporadaid.DisplayMember = "temporadaname";
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void data_cbo_temporadaid()
 {
     try
     {
         var BL = new tb_pt_temporadaBL();
         var BE = new tb_pt_temporada();
         var dt = new DataTable();
         dt = BL.GetAll(EmpresaID, BE).Tables[0];
         if (dt.Rows.Count > 0 )
         {
             temporadaid.DataSource = dt;
             temporadaid.ValueMember = "temporadaid";
             temporadaid.DisplayMember = "temporadaname";
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }