private void buttonContinue_Click(object sender, EventArgs e)
        {
            try
            {
                if (_numberOfSelections > 0)
                {
                    getSelectedTransactions();
                    string strUserId = GlobalDataAccessor.Instance.DesktopSession.UserName;
                    bool   retVal    = ServiceLoanProcedures.CheckCurrentTempStatus(ref _selectedTransactions, strUserId, ServiceTypes.CUSTHOLD);
                    if (_selectedTransactions.Count == 0)
                    {
                        return;
                    }
                    GlobalDataAccessor.Instance.DesktopSession.HoldsData = _selectedTransactions;

                    if (retVal)
                    {
                        this.NavControlBox.Action = NavBox.NavAction.BACKANDSUBMIT;
                    }
                    else
                    {
                        throw new Exception("Error when trying to update temp status on selected loans");
                    }
                }
            }
            catch (Exception ex)
            {
                BasicExceptionHandler.Instance.AddException("Error when trying to put hold on selected transactions", new ApplicationException(ex.Message));
                this.NavControlBox.Action = NavBox.NavAction.CANCEL;
            }
        }
        private void buttonReleaseHold_Click(object sender, EventArgs e)
        {
            if (_numberOfSelections > 0)
            {
                try
                {
                    GetSelectedTransactions();
                    string strUserId = GlobalDataAccessor.Instance.DesktopSession.UserName;
                    bool   retVal    = ServiceLoanProcedures.CheckCurrentTempStatus(ref _selectedTransactions, strUserId, ServiceTypes.CUSTHOLD);
                    if (_selectedTransactions.Count == 0)
                    {
                        return;
                    }
                    GlobalDataAccessor.Instance.DesktopSession.HoldsData = _selectedTransactions;


                    if (retVal)
                    {
                        bool containsJewelry = false;
                        foreach (HoldData holdData in GlobalDataAccessor.Instance.DesktopSession.HoldsData)
                        {
                            Item itemi = holdData.Items.Find(item => item.IsJewelry);
                            if (itemi != null)
                            {
                                if (itemi.ItemStatus == ProductStatus.PFI)
                                {
                                    containsJewelry = true;
                                    break;
                                }
                            }
                        }
                        if (containsJewelry)
                        {
                            MultiJewelryCaseNumber multiJcase = new MultiJewelryCaseNumber();
                            multiJcase.ShowDialog();
                        }
                        this.NavControlBox.IsCustom     = true;
                        this.NavControlBox.CustomDetail = "HoldReleaseInfo";
                        this.NavControlBox.Action       = NavBox.NavAction.BACKANDSUBMIT;
                    }
                    else
                    {
                        throw new Exception("Error when trying to update temp status on selected loans");
                    }
                }
                catch (Exception ex)
                {
                    BasicExceptionHandler.Instance.AddException("Error when trying to put hold on selected transactions", new ApplicationException(ex.Message));
                    this.NavControlBox.Action = NavBox.NavAction.CANCEL;
                }
            }
            else
            {
                MessageBox.Show("No transactions selected for update.");
                return;
            }
        }