Exemplo 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;
            }
        }//---------------------------
Exemplo n.º 2
0
        }//-------------------

        //####################################END CLASS PersonSearchOnTextBoxList EVENTS####################################

        //##################################DATAGRIDVIEW dgvList EVENTS##########################################################
        //event is raised when the control is double clicked
        protected override void dgvListDoubleClick(object sender, EventArgs e)
        {
            if (_pbxBase != null && _pbxBase.Image != null)
            {
                _pbxBase.Image.Dispose();
                _pbxBase.Image = null;
            }

            GC.SuppressFinalize(this);
            GC.Collect();

            if (_isForStudentVerificaion && !_isForNewUserVerification)
            {
                _studentInfo = _baseServiceManager.SelectBySysIDPersonStudentInformation(_userInfo,
                                                                                         _baseServiceManager.GetPersonSysId(_rowIndex), Application.StartupPath);
            }
            else if (!_isForStudentVerificaion && _isForNewUserVerification)
            {
                _newUserInfo = _baseServiceManager.SelectBySysIDPersonSystemUserInfo(_userInfo,
                                                                                     _baseServiceManager.GetPersonSysId(_rowIndex), Application.StartupPath);
            }
            else
            {
                _empInfo = _baseServiceManager.SelectBySysIDPersonEmployeeInformation(_userInfo,
                                                                                      _baseServiceManager.GetPersonSysId(_rowIndex), Application.StartupPath);
            }

            base.dgvListDoubleClick(sender, e);
        }//---------------------
Exemplo n.º 3
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;
            }
        }//-----------------------------
Exemplo n.º 4
0
        }//---------------------------

        //event is raised when the mouse is double clicked
        private void dgvListMouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (_rowIndex >= 0)
            {
                _hasSelected = true;

                if (!_isForPersonVerification)
                {
                    if (_pbxPerson.Image != null)
                    {
                        _pbxPerson.Image.Dispose();
                        _pbxPerson.Image = null;
                    }

                    GC.SuppressFinalize(this);
                    GC.Collect();

                    if (_isForStudentVerification)
                    {
                        _studentInfo = _baseServicesManager.SelectBySysIDPersonStudentInformation(_userInfo,
                                                                                                  _baseServicesManager.GetPersonSysId(_rowIndex), Application.StartupPath);
                    }
                    else
                    {
                        _employeeInfo = _baseServicesManager.SelectBySysIDPersonEmployeeInformation(_userInfo,
                                                                                                    _baseServicesManager.GetPersonSysId(_rowIndex), Application.StartupPath);
                    }
                }

                this.Close();
            }
        }//---------------------------