Example #1
0
        public PersonRelationship(CommonExchange.SysAccess userInfo, BaseServicesLogic baseServiceManager, String personSysIdExcludeList)
        {
            this.InitializeComponent();

            _userInfo               = userInfo;
            _baseServiceManager     = baseServiceManager;
            _personSysIdExcludeList = personSysIdExcludeList;

            _errProvider = new ErrorProvider();

            this.Load += new EventHandler(ClassLoad);
            this.cboRelationshipType.SelectedIndexChanged += new EventHandler(cboRelationshipTypeSelectedIndexChanged);
            this.chkEmergencyContact.CheckedChanged       += new EventHandler(chkEmergencyContactCheckedChanged);
            this.btnSearchPerson.Click += new EventHandler(btnSearchPersonClick);

            if (RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessPayrollMaster(_userInfo) ||
                RemoteServerLib.ProcStatic.IsSystemAccessStudentDataController(_userInfo))
            {
                this.lnkViewFullDetails.Visible = true;

                this.lnkViewFullDetails.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkViewFullDetailsLinkClicked);
            }
            else
            {
                this.lnkViewFullDetails.Visible = false;
            }
        }
        public PersonRelationshipCreate(CommonExchange.SysAccess userInfo, BaseServicesLogic baseServiceManager, String personSysIdExcludeList)
            : base(userInfo, baseServiceManager, personSysIdExcludeList)
        {
            this.InitializeComponent();

            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnCancel.Click += new EventHandler(btnCancelClick);
            this.btnAdd.Click    += new EventHandler(btnAddClick);
        }
Example #3
0
        //####################################################CLASS PersonalInformation EVENTS###############################################
        //event is raised when the class is loaded
        protected virtual void ClassLoad(object sender, EventArgs e)
        {
            _baseServiceManager = new BaseServicesLogic(_userInfo);

            _personInfo = new CommonExchange.Person();

            _baseServiceManager.InitializeCodeReferenceCombo(this.cboGender, CommonExchange.CodeEntityId.Gender);
            _baseServiceManager.InitializeCodeReferenceCombo(this.cboLifeStatus, CommonExchange.CodeEntityId.LifeStatus);
            _baseServiceManager.InitializeCodeReferenceCombo(this.cboMaritalStatus, CommonExchange.CodeEntityId.MaritalStatus);
        }//----------------------
Example #4
0
        public PersonSearchOnTextBoxList(CommonExchange.SysAccess userInfo, BaseServicesLogic baseServiceManager, String personSysIdExcludeList)
        {
            this.InitializeComponent();

            _userInfo               = userInfo;
            _baseServiceManager     = baseServiceManager;
            _personSysIdExcludeList = personSysIdExcludeList;

            this.pbxRefresh.Click            += new EventHandler(pbxRefreshClick);
            this.lnkCreatePerson.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkCreatePersonLinkClicked);
        }
Example #5
0
        public PersonInformationCreateUpdate(CommonExchange.SysAccess userInfo)
            : base(userInfo)
        {
            this.InitializeComponent();

            _userInfo = userInfo;

            _baseServiceManager     = new BaseServicesLogic(_userInfo);
            _personInfo             = new CommonExchange.Person();
            _personInfo.ObjectState = DataRowState.Added;

            this.btnClose.Click  += new EventHandler(btnCloseClick);
            this.btnRecord.Click += new EventHandler(btnRecordClick);
        }
Example #6
0
        public PersonSearchOnTextBoxList(CommonExchange.SysAccess userInfo, BaseServicesLogic baseServiceManager,
                                         Boolean isForStudentVerification, Boolean isForNewUserVerification, PictureBox pbxBase)
        {
            this.InitializeComponent();

            _userInfo           = userInfo;
            _baseServiceManager = baseServiceManager;

            _isForStudentVerificaion  = isForStudentVerification;
            _isForNewUserVerification = isForNewUserVerification;
            _pbxBase = pbxBase;

            this.pbxRefresh.Click            += new EventHandler(pbxRefreshClick);
            this.lnkCreatePerson.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkCreatePersonLinkClicked);
        }
        public PersonRelationshipUpdate(CommonExchange.SysAccess userInfo, BaseServicesLogic baseServiceManager,
                                        CommonExchange.PersonRelationship personRelationshipInfo, String personSysId)
            : base(userInfo, baseServiceManager, personSysId)
        {
            this.InitializeComponent();

            _userInfo                   = userInfo;
            _baseServiceManager         = baseServiceManager;
            _personRelationshipInfo     = personRelationshipInfo;
            _personRelationshipInfoTemp = (CommonExchange.PersonRelationship)personRelationshipInfo.Clone();

            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnClose.Click  += new EventHandler(btnCloseClick);
            this.btnUpdate.Click += new EventHandler(btnUpdateClick);
            this.btnDelete.Click += new EventHandler(btnDeleteClick);
        }
Example #8
0
        public VerifyPersonExistenceList(CommonExchange.SysAccess userInfo, BaseServicesLogic baseServicesManager, String personName,
                                         DataTable dataSource, Boolean isForStudentVerification, Boolean isForPersonVerification, ref PictureBox pbxPerson)
        {
            this.InitializeComponent();

            _userInfo               = userInfo;
            _baseServicesManager    = baseServicesManager;
            _dataSource             = dataSource;
            this.lblPersonName.Text = personName;

            _isForStudentVerification = isForStudentVerification;
            _isForPersonVerification  = isForPersonVerification;

            _pbxPerson = pbxPerson;

            this.Load += new EventHandler(ClassLoad);
            this.dgvList.MouseDown         += new MouseEventHandler(dgvListMouseDown);
            this.dgvList.DataSourceChanged += new EventHandler(dgvListDataSourceChanged);
            this.dgvList.MouseDoubleClick  += new MouseEventHandler(dgvListMouseDoubleClick);
            this.pbxProceed.Click          += new EventHandler(pbxProceedClick);
        }