示例#1
0
        protected void TicketsButton_Click(object sender, EventArgs e)
        {
            string Condicion            = "";
            EventosDetalleClass Tickets = new EventosDetalleClass();

            Condicion = "1=1";
            TicketsGridView.DataSource = Tickets.Listado("EventoId,DescTicket,CantDisponible,PrecioTicket", Condicion, "");
            TicketsGridView.DataBind();
        }
示例#2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        AccessManager.RedirectIfDisabled(AppSettings.TitanFeatures.InvestmentPlatformHistoryEnabled);

        if (!IsPostBack)
        {
            HistoryGridView.EmptyDataText = L1.NODATA;
            HistoryGridView.DataBind();

            TicketsGridView.EmptyDataText = L1.NODATA;
            TicketsGridView.DataBind();

            if (!AppSettings.InvestmentPlatform.ProofsEnabled)
            {
                HistoryGridView.Columns.RemoveAt(8);
                TicketsGridView.Columns.RemoveAt(7);
            }

            HistoryGridViewPlaceHolder.Visible = !AppSettings.InvestmentPlatform.LevelsEnabled;
            TicketsGridViewPlaceHolder.Visible = AppSettings.InvestmentPlatform.LevelsEnabled;
        }
    }