コード例 #1
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            if (rbtnDay.Checked)
            {
                DataTable dt = queryRepository.GetOperationReport(this.dateTimePicker1.Value, 1).Data;

                this.dataGridView1.DataSource = queryRepository.GetOperationReport(this.dateTimePicker1.Value, 1).Data;
            }
            else if (rbtnMonth.Checked)
            {
                this.dataGridView2.DataSource = queryRepository.GetOperationReport(this.dateMoth1.StartDate, 2).Data;
            }
            else if (rbtnYear.Checked)
            {
                this.dataGridView3.DataSource = queryRepository.GetOperationReport(this.dateYear1.StartDate, 3).Data;
            }
        }