private void button1_Click(object sender, RoutedEventArgs e)
        {
            List <EquilendExcelDataObjectTimeTable> EQDataTimeTable = new List <EquilendExcelDataObjectTimeTable>();

            foreach (var item in EQData)
            {
                EQDataTimeTable.Add(new EquilendExcelDataObjectTimeTable(item));
            }


            var Exporter = new ExportToExcelLocal <EquilendExcelDataObjectTimeTable, List <EquilendExcelDataObjectTimeTable> >();

            Exporter.dataToPrint = EQDataTimeTable;

            Exporter.GenerateReport();
        }
        private void ButtonExportExcel_Click(object sender, RoutedEventArgs e)
        {
            if (ComboBoxSelectedLegalEntity == null)
            {
                MessageBox.Show("Please select a Legal Entity");
                return;
            }

            List <EquilendExcelDataObjectSingleCtpy> EQDataSingle = new List <EquilendExcelDataObjectSingleCtpy>();

            foreach (var item in EQData)
            {
                EQDataSingle.Add(new EquilendExcelDataObjectSingleCtpy(item));
            }


            List <EquilendExcelDataObjectSingleCtpy> FilteredEQData = EQDataSingle.Where(x => x.CPTY_LEGAL_ENTITY_ID == ComboBoxSelectedLegalEntity).ToList();

            var Exporter = new ExportToExcelLocal <EquilendExcelDataObjectSingleCtpy, List <EquilendExcelDataObjectSingleCtpy> >();

            Exporter.dataToPrint = FilteredEQData;

            Exporter.GenerateReport();
        }
Example #3
0
        private void ButtonExportExcel_Click(object sender, RoutedEventArgs e)
        {
            if (ComboBoxSelectedLegalEntity == null)
            {
                MessageBox.Show("Please select a Legal Entity");
                return;
            }

            List<EquilendExcelDataObjectSingleCtpy> EQDataSingle = new List<EquilendExcelDataObjectSingleCtpy>();
            foreach (var item in EQData)
            {
                EQDataSingle.Add(new EquilendExcelDataObjectSingleCtpy(item));
            }

            List<EquilendExcelDataObjectSingleCtpy> FilteredEQData = EQDataSingle.Where(x => x.CPTY_LEGAL_ENTITY_ID == ComboBoxSelectedLegalEntity).ToList();

            var Exporter = new ExportToExcelLocal<EquilendExcelDataObjectSingleCtpy, List<EquilendExcelDataObjectSingleCtpy>>();
            Exporter.dataToPrint = FilteredEQData;

            Exporter.GenerateReport();
        }
Example #4
0
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            List<EquilendExcelDataObjectTimeTable> EQDataTimeTable = new List<EquilendExcelDataObjectTimeTable>();
            foreach (var item in EQData)
            {
                EQDataTimeTable.Add(new EquilendExcelDataObjectTimeTable(item));
            }

            var Exporter = new ExportToExcelLocal<EquilendExcelDataObjectTimeTable, List<EquilendExcelDataObjectTimeTable>>();
            Exporter.dataToPrint = EQDataTimeTable;

            Exporter.GenerateReport();
        }