public void Listarventastotal() { try { var registros16 = Controlasql.CSale_supermarkets(txtfechaini.Value.ToUpper(), txtfechafin.Value, "000001"); if (registros16.Tables[0].Rows.Count > 0) { Gridsuper16total.DataSource = registros16; Gridsuper16total.DataBind(); } else { Gridsuper16total.DataSource = null; Gridsuper16total.DataBind(); } } catch (Exception e) { notificacion.Visible = true; txtnotifica.InnerText = "" + e.Message; } try { var registros13 = Controlasql.CSale_supermarkets(txtfechaini.Value.ToUpper(), txtfechafin.Value, "000002"); if (registros13.Tables[0].Rows.Count > 0) { GridViewtotal13.DataSource = registros13; GridViewtotal13.DataBind(); } else { GridViewtotal13.DataSource = null; GridViewtotal13.DataBind(); } } catch (Exception e) { notificacion.Visible = true; txtnotifica.InnerText = "" + e.Message; } try { var registrosversa = Controlasql.CSale_supermarkets(txtfechaini.Value.ToUpper(), txtfechafin.Value, "000004"); if (registrosversa.Tables[0].Rows.Count > 0) { GridViewtotalversa.DataSource = registrosversa; GridViewtotalversa.DataBind(); } else { GridViewtotalversa.DataSource = null; GridViewtotalversa.DataBind(); } } catch (Exception e) { notificacion.Visible = true; txtnotifica.InnerText = "" + e.Message; } try { var registrosciud = Controlasql.CSale_supermarkets(txtfechaini.Value.ToUpper(), txtfechafin.Value, "000005"); if (registrosciud.Tables[0].Rows.Count > 0) { GridViewtotalCiudadela.DataSource = registrosciud; GridViewtotalCiudadela.DataBind(); } else { GridViewtotalCiudadela.DataSource = null; GridViewtotalCiudadela.DataBind(); } } catch (Exception e) { notificacion.Visible = true; txtnotifica.InnerText = "" + e.Message; } }