/// <summary> /// Initializes view /// </summary> public void Initialize() { UploadFileData = null; UploadFileStreamData = null; SelectedUploadFileName = null; ICPresentationOverviewData presentationInfo = ICNavigation.Fetch(ICNavigationInfo.PresentationOverviewInfo) as ICPresentationOverviewData; if (presentationInfo != null) { SelectedPresentationOverviewInfo = presentationInfo; if (SelectedPresentationOverviewInfo != null) { EditEnabled = SelectedPresentationOverviewInfo.StatusType == StatusType.IN_PROGRESS; } if (dbInteractivity != null) { BusyIndicatorNotification(true, "Retrieving updated upload documentation..."); dbInteractivity.RetrievePresentationAttachedFileDetails(SelectedPresentationOverviewInfo.PresentationID, RetrievePresentationAttachedDetailsCallback); } } else { RetrievePresentationAttachedDetailsCallback(new List <FileMaster>()); } }
/// <summary> /// UpdatePresentationAttachedFileStreamData Callback Method /// </summary> /// <param name="result">True if successful else false</param> private void UpdatePresentationAttachedFileStreamDataCallbackMethod(Boolean?result) { string methodNamespace = String.Format("{0}.{1}", GetType().FullName, System.Reflection.MethodInfo.GetCurrentMethod().Name); Logging.LogBeginMethod(logger, methodNamespace); try { if (result == true) { Logging.LogMethodParameter(logger, methodNamespace, result, 1); ICNavigation.Update(ICNavigationInfo.PresentationOverviewInfo, selectedPresentationOverviewInfo); Initialize(); // BusyIndicatorNotification(); } else { Logging.LogMethodParameterNull(logger, methodNamespace, 1); BusyIndicatorNotification(); } } catch (Exception ex) { Prompt.ShowDialog("Message: " + ex.Message + "\nStackTrace: " + Logging.StackTraceToString(ex), "Exception", MessageBoxButton.OK); Logging.LogException(logger, ex); BusyIndicatorNotification(); } Logging.LogEndMethod(logger, methodNamespace); }
/// <summary> /// Initializes view /// </summary> public void Initialize() { PresentationVoterInfo = null; PresentationPreMeetingVoterInfo = null; PresentationPostMeetingVoterInfo = null; isSecurityHeld = false; SecurityPFVMeasureCurrentPrices = null; SelectedPresentationOverviewInfo = ICNavigation.Fetch(ICNavigationInfo.PresentationOverviewInfo) as ICPresentationOverviewData; }
/// <summary> /// Initialize view /// </summary> public void Initialize() { if (IsActive) { SelectedPresentationOverviewInfo = ICNavigation.Fetch(ICNavigationInfo.PresentationOverviewInfo) as ICPresentationOverviewData; // ViewPluginFlagEnumeration flag = (ViewPluginFlagEnumeration)ICNavigation.Fetch(ICNavigationInfo.ViewPluginFlagEnumerationInfo); if (UserSession.SessionManager.SESSION != null) { if (UserSession.SessionManager.SESSION.Roles.Contains(MemberGroups.IC_ADMIN)) { PreviewReportVisibility = Visibility.Visible; } else { PreviewReportVisibility = Visibility.Collapsed; } } } }
/// <summary> /// Initializes view /// </summary> public void Initialize() { MeetingInfo meetingInfo = ICNavigation.Fetch(ICNavigationInfo.MeetingInfo) as MeetingInfo; if (meetingInfo != null) { ICPresentationOverviewInfo = new ICPresentationOverviewData() { AcceptWithoutDiscussionFlag = true, StatusType = StatusType.IN_PROGRESS, Presenter = SessionManager.SESSION.UserName.ToLower(), CreatedBy = SessionManager.SESSION.UserName.ToLower(), CreatedOn = DateTime.UtcNow, ModifiedBy = SessionManager.SESSION.UserName.ToLower(), ModifiedOn = DateTime.UtcNow, MeetingDateTime = meetingInfo.MeetingDateTime, CommitteeRangeEffectiveThrough = meetingInfo.MeetingDateTime.Date.AddMonths(3), MeetingClosedDateTime = meetingInfo.MeetingClosedDateTime, MeetingVotingClosedDateTime = meetingInfo.MeetingVotingClosedDateTime }; } }
/// <summary> /// /// </summary> /// <param name="result"></param> private void CreatePresentationCallBackMethod(PresentationFile result) { string methodNamespace = String.Format("{0}.{1}", GetType().FullName, System.Reflection.MethodInfo.GetCurrentMethod().Name); Logging.LogBeginMethod(logger, methodNamespace); try { if (result != null && result.PresentationId > 0) { Logging.LogMethodParameter(logger, methodNamespace, result, 1); /* eventAggregator.GetEvent<ToolboxUpdateEvent>().Publish(DashboardCategoryType.INVESTMENT_COMMITTEE_PRESENTATIONS); * ICNavigation.Update(ICNavigationInfo.MeetingInfo, iCPresentationOverviewInfo); * regionManager.RequestNavigate(RegionNames.MAIN_REGION, "ViewDashboardICPresentation", UriKind.Relative);*/ iCPresentationOverviewInfo.PresentationID = result.PresentationId; DownloadStream.Write(result.FileStream, 0, result.FileStream.Length); DownloadStream.Close(); DownloadStream = null; ICNavigation.Update(ICNavigationInfo.PresentationOverviewInfo, iCPresentationOverviewInfo); eventAggregator.GetEvent <ToolboxUpdateEvent>().Publish(DashboardCategoryType.INVESTMENT_COMMITTEE_IC_PRESENTATION); regionManager.RequestNavigate(RegionNames.MAIN_REGION, new Uri("ViewDashboardICPresentation", UriKind.Relative)); } else { Logging.LogMethodParameterNull(logger, methodNamespace, 1); } } catch (Exception ex) { Prompt.ShowDialog("Message: " + ex.Message + "\nStackTrace: " + Logging.StackTraceToString(ex), "Exception", MessageBoxButton.OK); Logging.LogException(logger, ex); } finally { Logging.LogEndMethod(logger, methodNamespace); BusyIndicatorNotification(); } }