using System.Windows.Forms;
System.Windows.Forms.ComboBox comboName = new System.Windows.Forms.ComboBox();
this.comboName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboName.FormattingEnabled = true;
this.comboName.Items.AddRange(new object[] {
"今日进货",
"本月进货",
"本季度进货",
"本年度进货"});
DateTime beginDate = DateTime.Today, endDate = DateTime.Today;
int year = DateTime.Now.Year;
int month = DateTime.Now.Month;
switch (comboName.SelectedIndex)
{
case 0:
break;
case 1:
beginDate = new DateTime(year, month, 1);
endDate = new DateTime(year, month