Esempio n. 1
0
        protected override void ExportToCsv()
        {
            var csv = new GridToCSVBuilder(Usuario.CsvSeparator);

            csv.GenerateHeader(CultureManager.GetMenu(VariableName), GetFilterValues());

            var g           = Grid;
            var allowPaging = Grid.AllowPaging;

            g.AllowPaging = false;

            Bind();

            GenerateCSVColumns(csv);

            GenerateCSVSubColumns(csv);

            GenerateCSVFields(csv);

            SetCsvSessionVars(csv.Build());

            OpenWin(string.Concat(ApplicationPath, "Common/exportCSV.aspx"), CultureManager.GetSystemMessage("EXPORT_CSV_DATA"));

            g.AllowPaging = allowPaging;
        }
Esempio n. 2
0
        protected override void ExportToCsv()
        {
            var builder = new GridToCSVBuilder(Usuario.CsvSeparator);

            var g = Grid;

            g.AllowPaging = false;
            g.DataSource  = GetResults();
            g.DataBind();

            builder.GenerateHeader(CultureManager.GetMenu("COMB_CONSISTENCIA_STOCK"), GetFilterValues());

            builder.GenerateColumns(/*new List<string>(),*/ g);

            builder.GenerateFields(g);

            builder.GenerateColumns(/*null, */ gridSubTotales);

            builder.GenerateFields(gridSubTotales);

            SetCsvSessionVars(builder.Build());

            OpenWin(string.Concat(ApplicationPath, "Common/exportCSV.aspx"), CultureManager.GetSystemMessage("EXPORT_CSV_DATA"));

            g.AllowPaging = true;
        }
Esempio n. 3
0
        protected override void ExportToCsv()
        {
            var builder = new GridToCSVBuilder(Usuario.CsvSeparator);

            var g           = gridResumen;
            var allowPaging = gridResumen.AllowPaging;

            var distribuciones = GetDistribuciones(new[] { -1 });
            var controladas    = distribuciones.Where(d => d.Controlado).Select(d => new ViajeDistribucionVo(d)).ToList();

            g.AllowPaging = false;
            g.DataSource  = controladas;
            g.DataBind();

            builder.GenerateHeader(CultureManager.GetMenu(VariableName), GetFilterValues());
            builder.GenerateColumns(g);
            builder.GenerateFields(g);

            Session["CSV_EXPORT"]    = builder.Build();
            Session["CSV_FILE_NAME"] = CultureManager.GetMenu(Module.Name);

            OpenWin(String.Concat(ApplicationPath, "Common/exportCSV.aspx"), CultureManager.GetSystemMessage("EXPORT_CSV_DATA"));

            g.AllowPaging = allowPaging;
        }
Esempio n. 4
0
        /// <summary>
        /// Exports the Grid to CSV.
        /// Cuidado con esto porque rebindea la grilla sacandole el paging.
        /// </summary>
        protected override void ExportToCsv()
        {
            var builder = new GridToCSVBuilder(Usuario.CsvSeparator);

            builder.GenerateHeader(CultureManager.GetMenu("COMB_REMITOS"), GetFilterValues());
            GenerateCSVBody(builder);

            SetCsvSessionVars(builder.Build());

            OpenWin(string.Concat(ApplicationPath, "Common/exportCSV.aspx"), CultureManager.GetSystemMessage("EXPORT_CSV_DATA"));
        }
Esempio n. 5
0
        /// <summary>
        /// Exports the Grid to CSV.
        /// Cuidado con esto porque rebindea la grilla sacandole el paging.
        /// </summary>
        protected override void ExportToCsv()
        {
            var builder = new GridToCSVBuilder(Usuario.CsvSeparator);

            builder.GenerateHeader(CultureManager.GetMenu("COMB_INGRESOS_POZO"), GetFilterValues());
            GenerateCSVBody(builder);

            Session["CSV_EXPORT"]    = builder.Build();
            Session["CSV_FILE_NAME"] = "report";

            OpenWin(string.Concat(ApplicationPath, "Common/exportCSV.aspx"), CultureManager.GetSystemMessage("EXPORT_CSV_DATA"));
        }
        protected override void ExportToCsv() 
        {
            var builder = new GridToCSVBuilder(Usuario.CsvSeparator);

            BtnSearchClick(null, null);

            builder.GenerateHeader(CultureManager.GetMenu(VariableName), GetFilterValues());
            builder.GenerateColumns(gridViajes);
            builder.GenerateFields(gridViajes);

            SetCsvSessionVars(builder.Build());

            OpenWin(String.Concat(ApplicationPath, "Common/exportCSV.aspx"), CultureManager.GetSystemMessage("EXPORT_CSV_DATA"));
        }
Esempio n. 7
0
        /// <summary>
        /// Exports the Grid to CSV.
        /// Cuidado con esto porque rebindea la grilla sacandole el paging.
        /// </summary>
        protected override void ExportToCsv()
        {
            var builder = new GridToCSVBuilder(Usuario.CsvSeparator);

            var g           = Grid;
            var allowPaging = Grid.AllowPaging;

            var list = GridUtils.Search(Data, SearchString);

            g.AllowPaging = false;
            g.DataSource  = list;
            g.DataBind();

            builder.GenerateHeader(CultureManager.GetMenu(VariableName), GetFilterValues());

            builder.GenerateColumns(g);
            builder.GenerateFields(g);

            SetCsvSessionVars(builder.Build());

            OpenWin(String.Concat(ApplicationPath, "Common/exportCSV.aspx"), CultureManager.GetSystemMessage("EXPORT_CSV_DATA"));

            g.AllowPaging = allowPaging;
        }
        protected override void ExportToCsv()
        {
            var builder = new GridToCSVBuilder(Usuario.CsvSeparator);

            var g = Grid;

            g.AllowPaging = false;
            g.DataSource  = GetResults();
            g.DataBind();

            builder.GenerateHeader(CultureManager.GetMenu("COMB_CONSISTENCIA_STOCK"), GetFilterValues());

            builder.GenerateColumns(/*null,*/ g);

            builder.GenerateFields(g);

            builder.GenerateColumns(/*null,*/ gridSubTotales);

            builder.GenerateFields(gridSubTotales);

            Session["CSV_EXPORT"]    = builder.Build();
            Session["CSV_FILE_NAME"] = "report";
            g.AllowPaging            = true;
        }