Exemplo n.º 1
0
        protected override void OnNavigatedFrom(NavigationEventArgs e)
        {
            if (Constants.ExternalURI.Equals(e.Uri.ToString()))
            {
                this.PreviousSource = this.Source;
                this.Source         = Source.EXTERNAL;
                return;
            }
            ViewNotePage viewNote = e.Content as ViewNotePage;

            if (viewNote != null)
            {
                viewNote.Note      = ViewNoteInput;
                viewNote.IsInvoice = IsInvoice;
            }
            InvoiceCommonDetails commonDetails = e.Content as InvoiceCommonDetails;

            if (commonDetails != null)
            {
                commonDetails.Source = Source.BACK_TO_INVOICE_SUMMARY_FROM_NOTES;
            }
            LineItemSummary lineItemSummary = e.Content as LineItemSummary;

            if (lineItemSummary != null)
            {
                lineItemSummary.Source = Source.BACK_TO_LINE_ITEM_SUMMARY_FROM_NOTES;
            }
            base.OnNavigatedFrom(e);
        }
Exemplo n.º 2
0
        protected override void OnNavigatedFrom(NavigationEventArgs e)
        {
            if (Constants.ExternalURI.Equals(e.Uri.ToString()))
            {
                this.PreviousSource = this.Source;
                this.Source         = Source.EXTERNAL;
                return;
            }
            InvoiceCommonDetails commonDetailsPage = e.Content as InvoiceCommonDetails;

            if (commonDetailsPage != null)
            {
                if (Source == Model.Base.Source.INVOICE_SINGLE_ADJUST)
                {
                    commonDetailsPage.Source = Model.Base.Source.BACK_TO_INVOICE_SUMMARY;
                    commonDetailsPage.InvoiceSummaryDetails = InvoiceDetails;
                }
                else if (Source == Model.Base.Source.LINE_ITEM_MULTI_ADJUST_CONFIRMATION)
                {
                    commonDetailsPage.Source            = Model.Base.Source.BACK_TO_LINE_ITEM_LIST;
                    commonDetailsPage.MultiConfirmation = LineItemAdjustDetails;
                }
            }
            LineItemSummary lineItemSummary = e.Content as LineItemSummary;

            if (lineItemSummary != null)
            {
                lineItemSummary.Source             = Source.BACK_TO_LINE_ITEM_SUMMARY;
                lineItemSummary.SelectedLineItemId = LineItemAdjustDetails.SelectedLineItemIds[0];
            }
        }
Exemplo n.º 3
0
        protected override void OnNavigatedFrom(NavigationEventArgs e)
        {
            if (Constants.ExternalURI.Equals(e.Uri.ToString()))
            {
                this.PreviousSource = this.Source;
                this.Source         = Source.EXTERNAL;
                return;
            }
            if (userdata.IsMultipleInvoiceReject)
            {
                userdata.IsMultipleInvoiceReject = false;
            }
            InvoiceApproveError approveError = e.Content as InvoiceApproveError;

            if (approveError != null)
            {
                approveError.Source               = Source;
                approveError.InvoiceDetails       = InvoiceErrorDetails;
                approveError.InvoiceInputDetails  = InvoiceDetails;
                approveError.LineItemInputDetails = LineItemRejectDetails;
                NavigationService.RemoveBackEntry();
            }
            InvoiceCommonDetails commonDetailsPage = e.Content as InvoiceCommonDetails;

            if (commonDetailsPage != null)
            {
                if (Source == Model.Base.Source.INVOICE_SINGLE_REJECT)
                {
                    commonDetailsPage.Source = Model.Base.Source.BACK_TO_INVOICE_SUMMARY;
                    commonDetailsPage.InvoiceSummaryDetails = InvoiceDetails;
                }
                else if (Source == Model.Base.Source.LINE_ITEM_MULTI_REJECT_CONFIRMATION)
                {
                    commonDetailsPage.Source            = Model.Base.Source.BACK_TO_LINE_ITEM_LIST;
                    commonDetailsPage.MultiConfirmation = LineItemRejectDetails;
                }
            }
            LineItemSummary lineItemSummary = e.Content as LineItemSummary;

            if (lineItemSummary != null)
            {
                lineItemSummary.Source             = Source.BACK_TO_LINE_ITEM_SUMMARY;
                lineItemSummary.SelectedLineItemId = LineItemRejectDetails.SelectedLineItemIds[0];
            }
            base.OnNavigatedFrom(e);
        }