示例#1
0
        public SpecialClass(CommonExchange.SysAccess userInfo, SpecialClassLogic specialManager)
        {
            this.InitializeComponent();

            _userInfo       = userInfo;
            _specialManager = specialManager;

            _errProvider = new ErrorProvider();

            this.Load += new EventHandler(ClassLoad);
            this.cboYearSemester.SelectedIndexChanged += new EventHandler(cboYearSemesterSelectedIndexChanged);
            this.btnSearchSubject.Click         += new EventHandler(btnSearchSubjectClick);
            this.btnSearchEmployee.Click        += new EventHandler(btnSearchEmployeeClick);
            this.txtAmount.KeyPress             += new KeyPressEventHandler(txtAmountKeyPress);
            this.txtAmount.Validating           += new System.ComponentModel.CancelEventHandler(txtAmountValidating);
            this.txtAmount.Validated            += new EventHandler(txtAmountValidated);
            this.lnkEnroll.LinkClicked          += new LinkLabelLinkClickedEventHandler(lnkEnrollLinkClicked);
            this.lnkWithdraw.LinkClicked        += new LinkLabelLinkClickedEventHandler(lnkWithdrawLinkClicked);
            this.dgvEnrolled.MouseDown          += new MouseEventHandler(dgvEnrolledMouseDown);
            this.dgvEnrolled.KeyPress           += new KeyPressEventHandler(dgvEnrolledKeyPress);
            this.dgvEnrolled.KeyUp              += new KeyEventHandler(dgvEnrolledKeyUp);
            this.dgvEnrolled.DataSourceChanged  += new EventHandler(dgvEnrolledDataSourceChanged);
            this.dgvEnrolled.SelectionChanged   += new EventHandler(dgvEnrolledSelectionChanged);
            this.dgvWithdrawn.DataSourceChanged += new EventHandler(dgvWithdrawnDataSourceChanged);
            this.dgvWithdrawn.MouseDown         += new MouseEventHandler(dgvEnrolledMouseDown);
            this.lnkRealoadSpecialClass.Click   += new EventHandler(lnkRealoadSpecialClassClick);
        }
示例#2
0
        public SpecialClassCreate(CommonExchange.SysAccess userInfo, SpecialClassLogic specialManager)
            : base(userInfo, specialManager)
        {
            this.InitializeComponent();

            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnCancel.Click += new EventHandler(btnCancelClick);
            this.btnCreate.Click += new EventHandler(btnCreateClick);
        }
示例#3
0
        public EmployeeSearchOnTextboxList(CommonExchange.SysAccess userInfo, SpecialClassLogic specialManager)
        {
            this.InitializeComponent();

            _userInfo       = userInfo;
            _specialManager = specialManager;

            this.pbxRefresh.Click += new EventHandler(pbxRefreshClick);
        }
        public StudentSearchOnTextboxList(CommonExchange.SysAccess userInfo, SpecialClassLogic specialManager, String dateStart, String dateEnd)
        {
            this.InitializeComponent();

            _userInfo       = userInfo;
            _specialManager = specialManager;

            _dateStart = dateStart;
            _dateEnd   = dateEnd;

            this.pbxRefresh.Click += new EventHandler(pbxRefreshClick);
        }
示例#5
0
        public SpecialClassUpdate(CommonExchange.SysAccess userInfo, CommonExchange.SpecialClassInformation specialInfo,
                                  SpecialClassLogic specialManager)
            : base(userInfo, specialManager)
        {
            this.InitializeComponent();

            _specialInfo     = specialInfo;
            _specialInfoTemp = (CommonExchange.SpecialClassInformation)specialInfo.Clone();

            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnClose.Click  += new EventHandler(btnCloseClick);
            this.btnUpdate.Click += new EventHandler(btnUpdateClick);
            this.btnDelete.Click += new EventHandler(btnDeleteClick);
        }
        //####################################################CLASS SpecialClassManager EVENTS###############################################
        //event is raised when the class is loaded
        private void ClassLoad(object sender, EventArgs e)
        {
            try
            {
                _specialManager = new SpecialClassLogic(_userInfo);

                _frmSpecialClassSearch = new SpecialClassSearchList();
                _frmSpecialClassSearch.OnDoubleClickEnter += new SearchListDataGridDoubleClickEnter(_frmSpecialClassSearchOnDoubleClickEnter);
                _frmSpecialClassSearch.OnCreate           += new SpecialClassSearchListLinkCreateClick(_frmSpecialClassSearchOnCreate);
                _frmSpecialClassSearch.LocationPoint       = new Point(10, 400);
                _frmSpecialClassSearch.AdoptGridSize       = true;
                _frmSpecialClassSearch.MdiParent           = this;

                _specialManager.InitializeSchoolYearCombo(this.ctlManager.SchoolYearComboBox);

                lblRecordDate.Text = "Record Date: " + DateTime.Parse(_specialManager.ServerDateTime).ToString();

                if (!(RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessPayrollMaster(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessCashier(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessVpOfFinance(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessCollegeRegistrar(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessHighSchoolGradeSchoolRegistrar(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessVpOfAcademicAffairs(_userInfo)))
                {
                    throw new Exception("You are not authorized to access this module.");
                }
                else if (RemoteServerLib.ProcStatic.IsSystemAccessPayrollMaster(_userInfo) ||
                         RemoteServerLib.ProcStatic.IsSystemAccessCashier(_userInfo))
                {
                    _frmSpecialClassSearch.DisableCreateLink(false);
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating");

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