// public BatchBreakdown(int batchID, int WeekID, int WeekNumber, SiteConfig siteConfig, bool ChkWeek) { try { InitializeComponent(); isCommonCDOforDeclaration = Security.SecurityHelper.HasAccess("BMC.Presentation.CommonCDOforDeclaration"); _SiteConfig = (isCommonCDOforDeclaration ? siteConfig : null); _BatchID = batchID; _WeekID = WeekID; _ChkWeek = ChkWeek; _WeekNumber = WeekNumber; ExchangeConst = (siteConfig != null) ? siteConfig.ExchangeConnectionString : ""; TicketConst = (siteConfig != null) ? siteConfig.TicketConnectionString : ""; DisplayButtonVisibility(); //As we dont get Batch ID in Weeks tab hiding expport batch button when week is selected if (ChkWeek) //CR# 193734 btnExport.Visibility = Visibility.Collapsed; BackgroundWorker _bgLoadHistoryScreen = new BackgroundWorker(); _bgLoadHistoryScreen.DoWork += OnHistoryScreenInitialize; _bgLoadHistoryScreen.RunWorkerCompleted += OnHistoryScreenComplete; _bgLoadHistoryScreen.RunWorkerAsync(new BatchBreakDownParams() { _BatchID = batchID, _WeekId = WeekID }); _bgLoadHistoryScreen.WorkerSupportsCancellation = true; } catch (Exception ex) { LogError("BatchBreakdown", ex); } }
public CollectionBatchDetailReports(int BatchId, int WeekNumber, SiteConfig SiteConfig, Window window, bool ChkWeek, bool _Undeclared):this(BatchId, WeekNumber, SiteConfig, window, ChkWeek) { try { this._Undeclared = _Undeclared; } catch (Exception ex) { ExceptionManager.Publish(ex); } }
public CollectionBatchDetailReports(int BatchId, int WeekNumber, SiteConfig SiteConfig, Window window, bool ChkWeek) { try { InitializeComponent(); this._BatchID = BatchId; _WeekNumber = WeekNumber; _SiteConfig = SiteConfig; _Parent = window; _ChkWeek = ChkWeek; } catch (Exception ex) { ExceptionManager.Publish(ex); } }