void QueryBihReg() { string beginDate = string.Empty; string endDate = string.Empty; beginDate = dteStart.Text.Trim(); endDate = dteEnd.Text.Trim(); if (beginDate != string.Empty && endDate != string.Empty) { if (Function.Datetime(beginDate + " 00:00:00") > Function.Datetime(endDate + " 00:00:00")) { DialogBox.Msg("开始时间不能大于结束时间。"); return; } } dbBiz biz = new dbBiz(); if (this.radioGroup1.SelectedIndex == 0) { this.gcData.DataSource = biz.GetBihRegState(beginDate, endDate, 1); } else { this.gcData.DataSource = biz.GetBihRegState(beginDate, endDate, 2); } }
void QueryBxgy() { string beginDate = string.Empty; string endDate = string.Empty; beginDate = dteStart.Text.Trim(); endDate = dteEnd.Text.Trim(); if (beginDate != string.Empty && endDate != string.Empty) { if (Function.Datetime(beginDate + " 00:00:00") > Function.Datetime(endDate + " 00:00:00")) { DialogBox.Msg("开始时间不能大于结束时间。"); return; } } dbBiz biz = new dbBiz(); this.gcData.DataSource = biz.GetBxgy(beginDate, endDate, 1); }
/// <summary> /// Query /// </summary> void Query() { dbBiz biz = new dbBiz(); this.gcData.DataSource = biz.GetPreInfo(); }