예제 #1
0
        private void RenderReport(PerformSearchMessage message)
        {
            log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

            try
            {
                RenderReport();
            }
            catch (Exception ex)
            {
                page.DisplayErrorAlert(ex);
                log.Error(ex);
            }
        }
        private void FillGrid(PerformSearchMessage message)
        {
            log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

            try
            {
                Grid.MasterTableView.CurrentPageIndex = 0;
                FillGrid();
                Grid.DataBind();
                this.Visible = true;
            }
            catch (Exception ex)
            {
                page.DisplayErrorAlert(ex);
                log.Error(ex);
            }
        }
예제 #3
0
        public void ExecuteCommand()
        {
            log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

            try
            {
                PerformSearchMessage search = new PerformSearchMessage();

                Page.MessageBus.Publish(search);
            }
            catch (Exception ex)
            {
                Page.DisplayErrorAlert(ex);

                log.Error(ex);
            }
        }