Пример #1
0
        private bool?ShowReportViewer()
        {
            bool?lBolResult = false;

            FormLoading();

            try
            {
                IList <ReportBatchDTO> lLstObjBatches = mObjReportFactory.GetAuctionsReportsService().GetBatchesBySeller(GetStartDate(), GetEndDate(), GetAuction(), GetSeller(), GetStatusFilter());

                this.Dispatcher.Invoke((Action) delegate
                {
                    if (lLstObjBatches.Count > 0)
                    {
                        WindowDialog lObjWindowDialog = GetWindowsDialog(lLstObjBatches);
                        lBolResult = lObjWindowDialog.ShowDialog();
                    }
                    else
                    {
                        lBolResult = false;
                        ShowMessage("Busqueda de lotes", "No hay lotes para esta subasta");
                        FormDefult();
                    }
                });
            }
            catch (Exception lObjException)
            {
                FormDefult();
                ShowMessage("Error", lObjException.Message);
            }

            return(lBolResult);
        }
Пример #2
0
        private bool?ShowReportViewer()
        {
            bool?lBolResult = false;

            FormLoading();

            try
            {
                IList <ReportBatchDTO> lLstObjBatches = mObjReportFactory.GetAuctionsReportsService().GetBatchesByBuyer(GetStartDate(), GetEndDate(), GetAuction(), GetBuyer());

                this.Dispatcher.Invoke((Action) delegate
                {
                    WindowDialog lObjWindowDialog = GetWindowsDialog(lLstObjBatches);
                    lBolResult = lObjWindowDialog.ShowDialog();
                });
            }
            catch (Exception lObjException)
            {
                FormDefult();
                ShowMessage("Error", lObjException.Message);
            }

            return(lBolResult);
        }