private void btnStat_Click(object sender, EventArgs e) { string startDate = this.dtmStart.Value.ToString("yyyy-MM-dd"); string endDate = this.dtmEnd.Value.ToString("yyyy-MM-dd"); if (Convert.ToDateTime(startDate) > Convert.ToDateTime(endDate)) { MessageBox.Show("开始时间不能大于结束时间。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); this.dtmStart.Focus(); return; } clsDcl_Account dcl = new clsDcl_Account(); this.dataGridView.DataSource = dcl.StatMedSend(startDate, endDate, this.MedStoreId); dcl = null; }
/// <summary> /// 构造函数 /// </summary> public clsCtl_Account() { m_objDomain = new clsDcl_Account(); }