private DataTable QuerySumInfo() { PushInfoHelper helper = new PushInfoHelper(); sumHelper = helper.QuerySumInfo(Start, cboPeriod.SelectedIndex, chkSchedule.IsChecked.Value); return(helper.ListToDataTable(sumHelper)); }
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; }