//###########################################CLASS AdministationManager EVENTS#####################################################
        //event is raised when the class is loaded
        protected virtual void ClassLoad(object sender, EventArgs e)
        {
            try
            {
                if (!RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo))
                {
                    throw new Exception("You are not authorized to access this module.");
                }

                _administrationManager = new AdministrtationLogic(_userInfo);

                _administrationManager.SelectUserInformation(_userInfo, "*");

                this.SetDataGridViewSource(_administrationManager.UserInformationTable);

                RemoteClient.ProcStatic.SetDataGridViewColumns(this.dgvList, false);

                ttpTool = new ToolTip();

                ttpTool.SetToolTip(pbxDone, "Close");
                ttpTool.SetToolTip(pbxRefresh, "Refresh");
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating");

                this.Close();
            }
        }//------------------------
Ejemplo n.º 2
0
        //###########################################CLASS AdministationManagerLog EVENTS#####################################################
        //event is raised when the class is loaded
        private void ClassLoad(object sender, EventArgs e)
        {
            try
            {
                if (!RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo))
                {
                    throw new Exception("You are not authorized to access this module.");
                }

                _administrationManager = new AdministrtationLogic(_userInfo);

                _transactionLogInfo = new CommonExchange.TransactionLog();

                _administrationManager.SelectUserInformation(_userInfo, "*");

                _administrationManager.InitializeUserCombo(this.cboUser);

                this.SetDataGridViewSource(_administrationManager.TransactionLogTable);

                RemoteClient.ProcStatic.SetDataGridViewColumns(this.dgvList, false);

                DateTime serverDateTime = DateTime.MinValue;

                if (DateTime.TryParse(_administrationManager.ServerDateTime, out serverDateTime))
                {
                    this.dtpStart.Value = this.dtpEnd.Value = serverDateTime;
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating");

                this.Close();
            }
        }//------------------------------
Ejemplo n.º 3
0
        public TransactionDone(CommonExchange.SysAccess userInfo, AdministrtationLogic adminitrationManager, CommonExchange.TransactionLog transactionLogInfo)
        {
            this.InitializeComponent();

            _userInfo = userInfo;
            _administrationManager = adminitrationManager;
            _transactionLogInfo    = transactionLogInfo;

            this.Load           += new EventHandler(ClassLoad);
            this.btnClose.Click += new EventHandler(btnCloseClick);
            this.btnPrint.Click += new EventHandler(btnPrintClick);
        }
Ejemplo n.º 4
0
        public UserInfoAdminCreate(CommonExchange.SysAccess userInfo, AdministrtationLogic administarationManager)
            : base(userInfo, administarationManager)
        {
            this.InitializeComponent();

            _userInfo = userInfo;
            _administarationManager = administarationManager;

            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnCancel.Click += new EventHandler(btnCancelClick);
            this.btnCreate.Click += new EventHandler(btnCreateClick);
        }
Ejemplo n.º 5
0
        public UserInfoAdminUpdate(CommonExchange.SysAccess userInfo, AdministrtationLogic administarationManager, CommonExchange.SysAccess newUserInfo)
            : base(userInfo, administarationManager)
        {
            this.InitializeComponent();

            _userInfo = userInfo;
            _administarationManager = administarationManager;
            _newUserInfo            = newUserInfo;
            _newUserInfoTemp        = (CommonExchange.SysAccess)newUserInfo.Clone();

            _errProvider = new ErrorProvider();

            this.FormClosing        += new FormClosingEventHandler(ClassClosing);
            this.btnClose.Click     += new EventHandler(btnCloseClick);
            this.txtLastName.KeyUp  += new KeyEventHandler(textBoxKeyUp);
            this.txtFirstName.KeyUp += new KeyEventHandler(textBoxKeyUp);
            this.btnUpdate.Click    += new EventHandler(btnUpdateClick);
        }
Ejemplo n.º 6
0
        public UserInfoAdmin(CommonExchange.SysAccess userInfo, AdministrtationLogic administrationManager)
            : base(userInfo)
        {
            this.InitializeComponent();

            _userInfo = userInfo;
            _administarationManager = administrationManager;

            base.IsForPersonVerification  = true;
            base.IsForNewUserVerification = true;
            base.IsForStudentVerification = false;

            this.txtUserName.Validated += new EventHandler(txtUserNameValidated);
            this.txtPassword.Validated += new EventHandler(txtPasswordValidated);
            this.txtUserName.KeyPress  += new KeyPressEventHandler(textBoxKeyPress);
            this.lblStatus.Click       += new EventHandler(lblStatusClick);
            this.dgvList.RowValidated  += new DataGridViewCellEventHandler(dgvListRowValidated);
        }