/// <summary> /// 开始统计 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void caculate_Click(object sender, EventArgs e) { this.dataGridView.DataSource = VehicleDao.CaculateTaxReport(this.startDate.Value.Date.AddMilliseconds(-1), this.endDate.Value.Date.AddDays(1).AddMilliseconds(-1)).Tables[0]; }