Esempio n. 1
0
        }//------------------------

        //####################################################END LINKLABEL lnkMarriageDate EVENTS###############################################

        //####################################################LINKLABEL lnkVerify EVENTS###############################################
        //event is raised when the control is clicked
        protected virtual void lnkVerifyLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                DataTable resultTable = _baseServiceManager.GetSearchPersonInformation(_userInfo, String.Empty, _personInfo.LastName,
                                                                                       _personInfo.FirstName, String.Empty, true);

                if (resultTable.Rows.Count > 0)
                {
                    using (VerifyPersonExistenceList frmVerify = new VerifyPersonExistenceList(_userInfo, _baseServiceManager,
                                                                                               RemoteClient.ProcStatic.GetCompleteNameMiddleInitial(_personInfo.LastName, _personInfo.FirstName, _personInfo.MiddleName),
                                                                                               resultTable, _isForStudentVerification, _isForPersonVerification, ref this.pbxPerson))
                    {
                        frmVerify.ShowDialog(this);

                        if (frmVerify.HasSelected)
                        {
                            _personInfo = _baseServiceManager.GetPersonDetails(_userInfo,
                                                                               _baseServiceManager.GetPersonSysId(frmVerify.RowIndex), Application.StartupPath);

                            this.AssingControlsValue();
                            this.SetPersonInformationControls(true);
                        }
                        else if (frmVerify.IsVerified && _isForPersonVerification)
                        {
                            this.SetPersonInformationControls(true);
                        }

                        _hasSelectedPersonFromVerification = true;
                    }
                }
                else
                {
                    MessageBox.Show("The system has successfully verified that " + RemoteClient.ProcStatic.GetCompleteNameMiddleInitial(
                                        _personInfo.LastName, _personInfo.FirstName, _personInfo.MiddleName) + " does NOT currently exist on the database." +
                                    "\n\nClick OK to proceed.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);

                    if (_isForPersonVerification)
                    {
                        this.SetPersonInformationControls(true);
                    }
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message + "\n Error loading person verify module.", "Error Loading");
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        }//---------------------------
Esempio n. 2
0
        }//------------------------------

        //####################################################END CHECKEDBOX chkEmergencyContact EVENTS###############################################

        //####################################################BUTTON bntSearchPerson EVENTS###############################################
        //event is raised when the control is clicked
        private void btnSearchPersonClick(object sender, EventArgs e)
        {
            using (PersonSearchOnTextBoxList frmSearch = new PersonSearchOnTextBoxList(_userInfo, _baseServiceManager, _personSysIdExcludeList))
            {
                frmSearch.ShowDialog(this);

                if (frmSearch.HasSelected)
                {
                    this.SetPersonRelationshipControls(_baseServiceManager.GetPersonDetails(_userInfo,
                                                                                            _baseServiceManager.GetPersonSysId(frmSearch.RowIndex), Application.StartupPath));
                }
                else if (frmSearch.HasRecorded)
                {
                    this.SetPersonRelationshipControls(frmSearch.PersonInfo);
                }

                this.lnkViewFullDetails.Enabled = true;
            }
        }//-----------------------------