示例#1
0
        private void _query_Click(object sender, RoutedEventArgs e)
        {
            DataTable table = operationService.ExecuteProSjhc(PubClass.userInfo.ID,
                                                              ((DateTime)dtpStartDate.SelectedDate).ToString(
                                                                  "yyyy-MM-dd"),
                                                              ((DateTime)dtpEndDate.SelectedDate).ToString("yyyy-MM-dd"));

            lvlist.DataContext = table;
            exporttable        = table;

            _sj.Visibility = Visibility.Visible;
            _hj.Visibility = Visibility.Visible;
            _title.Text    = table.Rows.Count.ToString();

            if (table.Rows.Count == 0)
            {
                Toolkit.MessageBox.Show("没有查询到数据!", "系统提示", MessageBoxButton.OK, MessageBoxImage.Information);
                return;
            }
        }