private void btnQuery_Click(object sender, EventArgs e) { try { this.Cursor = GWMHIS.BussinessLogicLayer.Classes.PublicStaticFun.WaitCursor(); string queryDrugType = cobQueryType.Text; int queryYear = Convert.ToInt32(cobQueryYear.Text); int queryMonth = Convert.ToInt32(cobQueryMonth.Text); dgrdDrugIOS.DataSource = _accountQuery.QueryDrugIOS(queryDrugType, queryYear, queryMonth, (int)_currentDept); } catch (Exception error) { MessageBox.Show(error.Message); } finally { this.Cursor = DefaultCursor; } }