Пример #1
0
        private void DatePicker_SelectedDateChanged(object sender, SelectionChangedEventArgs e)
        {
            var reports = BaoCaoTonSachBUS.loadReportBook(Global.Books, startDate.SelectedDate.Value.ToString(), endDate.SelectedDate.Value.ToString());

            Global.BookReport = reports;
            ListViewBookReports.ItemsSource = Global.BookReport;
        }
Пример #2
0
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            var reports = BaoCaoTonSachBUS.loadReportBook(Global.Books, "1990-01-01", DateTime.Now.ToString());

            Global.BookReport = reports;
            ListViewBookReports.ItemsSource = Global.BookReport;

            var reportCustomer = BaoCaoCongNoBUS.loadReport(Global.Customers, "1990-01-01", DateTime.Now.ToString());

            Global.CustomerReport = reportCustomer;
            if (reportCustomer != null)
            {
                ListViewCustomerReports.ItemsSource = Global.CustomerReport;
            }
        }
Пример #3
0
        private void DatePicker_SelectedDateChanged(object sender, SelectionChangedEventArgs e)
        {
            List <BaoCaoTonSachDTO> reports;

            if (startDate.SelectedDate == null)
            {
                reports = BaoCaoTonSachBUS.loadReportBook(Global.Books, "1990-01-01", endDate.SelectedDate.Value.ToString());
            }
            else
            {
                reports = BaoCaoTonSachBUS.loadReportBook(Global.Books, startDate.SelectedDate.Value.ToString(), endDate.SelectedDate.Value.ToString());
            }
            Global.BookReport = reports;
            ListViewBookReports.ItemsSource = Global.BookReport;
        }