/// <summary> /// Raise do search event. /// </summary> private void RaiseDoExcel() { _isInquiring = true; DoSearchEventArgs args = new DoSearchEventArgs(DoExcelEvent, this) { PageIndex = PageIndex, PageSize = PageSize, ProductName = GetSelectedProductName(), StartDate = StartDate, EndDate = EndDate.AddDays(1).AddSeconds(-1), OrdersTypeString = GetOrdersTypeString(), AccountName = AccountName, StockCode = this.CbStockCode.SelectedItem.ToString(), }; RaiseEvent(args); _isInquiring = false; }
/// <summary> /// Raise do search event. /// </summary> private void RaiseDoExcel() { _isInquiring = true; DoSearchEventArgs args = new DoSearchEventArgs(DoExcelEvent, this) { PageIndex = PageIndex, PageSize = PageSize, ProductName = GetSelectedProductName(), StartDate = StartDate, EndDate = EndDate.AddDays(1).AddSeconds(-1), OrdersTypeString = GetOrdersTypeString(), AccountName = AccountName, StockCode= this.CbStockCode.SelectedItem.ToString(), }; RaiseEvent(args); _isInquiring = false; }