示例#1
0
        }//---------------------------

        //####################################################END LINKLABEL lnkVerify EVENTS###############################################

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

                using (PersonSearchOnTextBoxList frmSearch = new PersonSearchOnTextBoxList(_userInfo, _baseServiceManager,
                                                                                           _isForStudentVerification, _isForNewUserVerification, this.pbxPerson))
                {
                    frmSearch.CreatePersonVisible = false;
                    frmSearch.ShowDialog(this);

                    if (frmSearch.HasSelected)
                    {
                        _rowIndex = frmSearch.RowIndex;

                        _personInfo = _baseServiceManager.GetPersonDetails(_userInfo,
                                                                           _baseServiceManager.GetPersonSysId(frmSearch.RowIndex), Application.StartupPath);

                        if (!_isForStudentVerification && !_isForNewUserVerification)
                        {
                            _empInfo = frmSearch.EmployeeInfo;
                        }

                        if (_isForNewUserVerification && !_isForStudentVerification)
                        {
                            _newUserInfo = frmSearch.NewUserInfo;
                        }

                        this.AssingControlsValue();
                        this.SetPersonInformationControls(true);

                        _hasSelectedForPersonUpdate = true;
                    }
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading");
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        }//--------------------------
示例#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;
            }
        }//-----------------------------