예제 #1
0
        private void llenatablaresumido()
        {
            string test2 = selectBodega.Value;

            string[] palabras2 = test2.Split('/');

            string idcosto = palabras2[0];

            labelFechainicio.InnerText = txtdesde.Value;
            labelfechafin.InnerText    = txthasta.Value;

            try
            {
                var res = Controlasql.Cventasresumidolinea(txtdesde.Value, txthasta.Value, idcosto);
                if (res.Tables[0].Rows.Count > 0)
                {
                    Gridviewresumido.DataSource = res;
                    Gridviewresumido.DataBind();
                }
            }
            catch (Exception ex)
            {
                notificacion.Visible  = true;
                txtnotifica.InnerText = ex.Message;
            }
        }
예제 #2
0
 protected void Ventaslinea_Click(object sender, EventArgs e)
 {
     try
     {
         var res = Controlasql.Cventasresumidolinea(txtdesde.Value, txthasta.Value, Session["CCOSTO"].ToString());
         if (res.Tables[0].Rows.Count > 0)
         {
             Gridviewresumido.DataSource = res;
             Gridviewresumido.DataBind();
         }
     }
     catch (Exception ex)
     {
     }
 }