Esempio n. 1
0
        //
        private void btnWinLossReport_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                IReports objReports = (isCommonCDOforDeclaration && !string.IsNullOrEmpty(ExchangeConst)) ? ReportsBusinessObject.CreateInstance(ExchangeConst, TicketConst) : ReportsBusinessObject.CreateInstance();

                LogManager.WriteLog("Fetching report data from database...", LogManager.enumLogLevel.Info);

                BatchHistoryListView dr = (BatchHistoryListView)dgBatchBreakdown.SelectedItem;
                _Undeclared = (dr.Zone ?? "") == "UNDECLARED" ? true : false;//checking whether Zone is Undeclared and setting the _Undeclared
                var oReports = new CollectionBatchDetailReports(_BatchID, _WeekID, _SiteConfig, Window.GetWindow(this), _ChkWeek, _Undeclared);
                oReports.ShowDialogEx(this);
            }
            catch (Exception ex)
            {
                LogError("btnWinLossReport_Click", ex);
            }
        }
        //
        private void btnWinLossReport_Click(object sender, RoutedEventArgs e)
        {
            try
            {

                IReports objReports = (isCommonCDOforDeclaration && !string.IsNullOrEmpty(ExchangeConst)) ? ReportsBusinessObject.CreateInstance(ExchangeConst, TicketConst) : ReportsBusinessObject.CreateInstance();

                LogManager.WriteLog("Fetching report data from database...", LogManager.enumLogLevel.Info);

                BatchHistoryListView dr = (BatchHistoryListView)dgBatchBreakdown.SelectedItem;
                _Undeclared = (dr.Zone ?? "") == "UNDECLARED" ? true : false;//checking whether Zone is Undeclared and setting the _Undeclared 
                var oReports = new CollectionBatchDetailReports(_BatchID, _WeekID, _SiteConfig, Window.GetWindow(this), _ChkWeek,_Undeclared);
                oReports.ShowDialogEx(this);
            }
            catch (Exception ex)
            {
                LogError("btnWinLossReport_Click", ex); 
            }
        }