Beispiel #1
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();
            }
        }//------------------------------
        //###########################################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();
            }
        }//------------------------
Beispiel #3
0
        }//-------------------------

        //####################################################END BUTTON btnSearch EVENTS####################################################

        //####################################################LINKLABEL lnkResset EVENTS####################################################
        //event is raised when the control is clicked
        private void lnkResetLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.txtSearch.Clear();

            _administrationManager.SelectUserInformation(_userInfo, "*");
            _administrationManager.InitializeUserCombo(this.cboUser);

            _transactionLogInfo.UserInfo.UserId = String.Empty;

            this.dtpEnd.Checked = this.dtpStart.Checked = false;

            this.txtSearch.Focus();
        }//-------------------------