コード例 #1
0
        private DataTable QuerySumInfo()
        {
            PushInfoHelper helper = new PushInfoHelper();

            sumHelper = helper.QuerySumInfo(Start, cboPeriod.SelectedIndex, chkSchedule.IsChecked.Value);
            return(helper.ListToDataTable(sumHelper));
        }
コード例 #2
0
        private void ResultSumData()
        {
            PushInfoHelper   helper = new PushInfoHelper();
            List <SumHelper> lst    = helper.QuerySumInfo(Start, cboPeriod.SelectedIndex, chkSchedule.IsChecked.Value);

            dgSum.ItemsSource = null;
            dgSum.ItemsSource = lst;
            if (lst == null || lst.Count == 0)
            {
                return;
            }
            dgSum1.ItemsSource = null;
            dgSum1.ItemsSource = helper.AddLastRow(lst).DefaultView;
        }