/// <summary>
        /// Callback method for Security Overview Service call - assigns value to UI Field Properties
        /// </summary>
        /// <param name="securityOverviewData">SecurityOverviewData Collection</param>
        private void RetrieveSecurityDetailsCallBackMethod(ICPresentationOverviewData result)
        {
            string methodNamespace = String.Format("{0}.{1}", GetType().FullName, System.Reflection.MethodInfo.GetCurrentMethod().Name);

            Logging.LogBeginMethod(logger, methodNamespace);
            try
            {
                if (result != null)
                {
                    Logging.LogMethodParameter(logger, methodNamespace, result, 1);
                    ICPresentationOverviewInfo = result;
                    CreateEnabled = SubmitCommandValidationMethod(null);
                    //  RaisePropertyChanged(() => this.SubmitCommand);
                }
                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();
            }
        }
Exemplo n.º 2
0
        /// <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>
        /// Event handler for PortfolioSelection changed Event
        /// </summary>
        /// <param name="PortfolioSelectionData">PortfolioSelectionData</param>
        public void HandlePortfolioReferenceSet(PortfolioSelectionData portfolioSelectionData)
        {
            string methodNamespace = String.Format("{0}.{1}", GetType().FullName, System.Reflection.MethodInfo.GetCurrentMethod().Name);

            Logging.LogBeginMethod(logger, methodNamespace);
            try
            {
                if (portfolioSelectionData != null)
                {
                    Logging.LogMethodParameter(logger, methodNamespace, portfolioSelectionData, 1);
                    PortfolioSelectionInfo = portfolioSelectionData;

                    if (IsActive && entitySelectionInfo != null && PortfolioSelectionInfo != null)
                    {
                        //  RaisePropertyChanged(() => this.SubmitCommand);
                        BusyIndicatorNotification(true, "Retrieving security reference data for '"
                                                  + entitySelectionInfo.LongName + " (" + entitySelectionInfo.ShortName + ")'");

                        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 = DateTime.UtcNow,

                            MeetingClosedDateTime       = DateTime.UtcNow,
                            MeetingVotingClosedDateTime = DateTime.UtcNow,
                        };

                        dbInteractivity.RetrieveSecurityDetails(entitySelectionInfo, ICPresentationOverviewInfo
                                                                , portfolioSelectionInfo, RetrieveSecurityDetailsCallBackMethod);
                    }
                }
                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);
            }
        }
        /// <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
                };
            }
        }