예제 #1
0
        public StudentScholarshipUpdate(CommonExchange.SysAccess userInfo, CommonExchange.Student studentInfo,
                                        CommonExchange.StudentScholarship studentScholarshipInfo, ScholarshipLogic scholarshipManager, Boolean isRecordLocked)
            : base(userInfo, scholarshipManager)
        {
            this.InitializeComponent();

            _userInfo                   = userInfo;
            _studentInfo                = studentInfo;
            _studentScholarshipInfo     = studentScholarshipInfo;
            _studentScholarshipInfoTemp = (CommonExchange.StudentScholarship)studentScholarshipInfo.Clone();
            _scholarshipManager         = scholarshipManager;

            if (isRecordLocked)
            {
                this.lblStatus.Text = "This record is LOCKED";

                this.btnEdit.Visible = this.btnDelete.Visible = this.btnSearchScholarship.Visible = false;
            }
            else
            {
                this.lblStatus.Text = "This record is OPEN";

                this.btnEdit.Visible = this.btnDelete.Visible = this.btnSearchScholarship.Visible = true;
            }

            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnClose.Click  += new EventHandler(btnCloseClick);
            this.btnEdit.Click   += new EventHandler(btnEditClick);
            this.btnDelete.Click += new EventHandler(btnDeleteClick);
        }
예제 #2
0
        public StudentSearch(CommonExchange.SysAccess userInfo, ScholarshipLogic scholarshipManager, Boolean byPassRecordLocked, Boolean isEnabledYearCombo)
        {
            this.InitializeComponent();

            _userInfo           = userInfo;
            _scholarshipManager = scholarshipManager;
            _byPassRecordLocked = byPassRecordLocked;
            _isEnabledYearCombo = isEnabledYearCombo;

            this.Load += new EventHandler(ClassLoad);
            this.dgvList.MouseDown               += new MouseEventHandler(dgvListMouseDown);
            this.dgvList.MouseDoubleClick        += new MouseEventHandler(dgvListDoubleClick);
            this.dgvList.DataSourceChanged       += new EventHandler(dgvListDataSourceChanged);
            this.dgvList.SelectionChanged        += new EventHandler(dgvListSelectionChanged);
            this.ctlStudentSearch.OnClose        += new RemoteClient.ControlManagerCloseButtonClick(ctlStudentSearchOnClose);
            this.ctlStudentSearch.OnRefresh      += new RemoteClient.ControlManagerRefreshButtonClick(ctlStudentSearchOnRefresh);
            this.ctlStudentSearch.OnTextBoxKeyUp += new RemoteClient.ControlManagerTextBoxSearchKeyUp(ctlStudentSearchOnTextBoxKeyUp);
            this.ctlStudentSearch.OnPressEnter   += new RemoteClient.ControlStudentManagerPressEnter(ctlStudentSearchOnPressEnter);
            this.ctlStudentSearch.OnSchoolYearSelectedIndexChanged +=
                new RemoteClient.ControlStudentManagerSchoolYearSelectedIndexChanged(ctlStudentSearchOnSchoolYearSelectedIndexChanged);
            this.ctlStudentSearch.OnSemesterSelectedIndexChanged +=
                new RemoteClient.ControlStudentManagerSemesterSelectedIndexChanged(ctlStudentSearchOnSemesterSelectedIndexChanged);
            this.ctlStudentSearch.OnCourseSelectedIndexChanged +=
                new RemoteClient.ControlStudentManagerCheckedListBoxSelectedIndexChanged(ctlStudentSearchOnCourseLevelSelectedIndexChanged);
            this.ctlStudentSearch.OnYearLevelSelectedIndexChanged +=
                new RemoteClient.ControlStudentManagerCheckedListBoxSelectedIndexChanged(ctlStudentSearchOnCourseLevelSelectedIndexChanged);
            this.ctlStudentSearch.OnResetLinkClicked += new RemoteClient.ControlStudentManagerResetQueryLinkClicked(ctlStudentSearchOnResetLinkClicked);
        }
예제 #3
0
        public StudentScholarshipSearchOnTextBoxList(CommonExchange.SysAccess userInfo, ScholarshipLogic scholarshipManager)
        {
            this.InitializeComponent();

            _userInfo           = userInfo;
            _scholarshipManager = scholarshipManager;

            this.pbxRefresh.Click += new EventHandler(pbxRefreshClick);
        }
예제 #4
0
        public ScholarshipCreate(CommonExchange.SysAccess userInfo, ScholarshipLogic scholarshipManager)
            : base(userInfo, scholarshipManager)
        {
            this.InitializeComponent();

            _userInfo           = userInfo;
            _scholarshipManager = scholarshipManager;

            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnCancel.Click += new EventHandler(btnCancelClick);
            this.btnCreate.Click += new EventHandler(btnCreateClick);
        }
예제 #5
0
        public StudentScholarship(CommonExchange.SysAccess userInfo, ScholarshipLogic scholarshipManager)
        {
            this.InitializeComponent();

            _errProvidre = new ErrorProvider();

            _userInfo           = userInfo;
            _scholarshipManager = scholarshipManager;

            this.Load += new EventHandler(ClassLoad);
            this.btnSearchScholarship.Click += new EventHandler(btnSearchScholarshipClick);
            this.btnSearchStudent.Click     += new EventHandler(btnSearchStudentClick);
        }
예제 #6
0
        public ScholarshipUpdate(CommonExchange.SysAccess userInfo, CommonExchange.ScholarshipInformation scholarshipInfo,
                                 ScholarshipLogic scholarshipManager)
            : base(userInfo, scholarshipManager)
        {
            this.InitializeComponent();

            _userInfo           = userInfo;
            _scholarshipManager = scholarshipManager;
            _scholarshipInfo    = scholarshipInfo;

            this.FormClosing    += new System.Windows.Forms.FormClosingEventHandler(ClassClosed);
            this.btnClose.Click += new EventHandler(btnCloseClick);
            this.btnEdit.Click  += new EventHandler(btnEditClick);
        }
예제 #7
0
        public Scholarship(CommonExchange.SysAccess userInfo, ScholarshipLogic scholarshipManager)
        {
            this.InitializeComponent();

            _userInfo           = userInfo;
            _scholarshipManager = scholarshipManager;

            _errProvider = new ErrorProvider();

            this.Load += new EventHandler(ClassLoad);
            this.cboCourseGroup.SelectedIndexChanged += new EventHandler(cboCourseGroupSelectedIndexChanged);
            this.cboDepartment.SelectedIndexChanged  += new EventHandler(cboDepartmentSelectedIndexChanged);
            this.chkNonAcademic.CheckedChanged       += new EventHandler(chkNonAcademicCheckedChanged);
            this.txtScholarship.Validated            += new EventHandler(txtScholarshipValidated);
        }
        public SearchListStudentScholarship(CommonExchange.SysAccess userInfo, ScholarshipLogic scholarshipManager)
        {
            InitializeComponent();

            _userInfo           = userInfo;
            _scholarshipManager = scholarshipManager;

            this.Load += new EventHandler(ClassLoad);
            this.dgvList.MouseDown         += new MouseEventHandler(dgvListMouseDown);
            this.dgvList.DoubleClick       += new EventHandler(dgvListDoubleClick);
            this.dgvList.KeyPress          += new KeyPressEventHandler(dgvListKeyPress);
            this.dgvList.KeyDown           += new KeyEventHandler(dgvListKeyDown);
            this.dgvList.DataSourceChanged += new EventHandler(dgvListDataSourceChanged);
            this.dgvList.SelectionChanged  += new EventHandler(dgvListSelectionChanged);
            this.btnCreate.Click           += new EventHandler(btnCreateClick);
        }
예제 #9
0
        //###########################################CLASS ScholarshipManager EVENTS#####################################################
        //event is raised when the class is loaded
        private void ClassLoad(object sender, EventArgs e)
        {
            try
            {
                if (!(RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessVpOfAcademicAffairs(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessSecretaryOftheVpOfAcademicAffairs(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessCollegeRegistrar(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessCashier(_userInfo)))
                {
                    throw new Exception("You are not authorized to access this module.");
                }

                if (RemoteServerLib.ProcStatic.IsSystemAccessCashier(_userInfo))
                {
                    this.ctlManager.DisableScholarshipButton(true);
                }

                _scholarshipManager = new ScholarshipLogic(_userInfo);

                _frmStudentScholarshipSearch                     = new SearchListStudentScholarship(_userInfo, _scholarshipManager);
                _frmStudentScholarshipSearch.OnCreate           += new StudentSearchButtonCreateSchoolshipClick(_frmStudentScholarshipSearchOnCreate);
                _frmStudentScholarshipSearch.OnDoubleClickEnter +=
                    new SearchListDataGridDoubleClickEnterStudentScholarship(_frmStudentScholarshipSearchOnDoubleClickEnter);
                _frmStudentScholarshipSearch.LocationPoint = new Point(14, 300);
                _frmStudentScholarshipSearch.AdoptGridSize = false;
                _frmStudentScholarshipSearch.MdiParent     = this;

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

                _scholarshipManager.InitializeSchoolYearComboManager(this.ctlManager.SchoolYearComboBox);
                _scholarshipManager.InitializeDepartmentCheckedListBox(this.ctlManager.DepartmentCheckedListBox);
                _scholarshipManager.InitializeYearLevelCheckedListBox(this.ctlManager.YearLevelCheckedListBox);
                _scholarshipManager.InitializeScholarshipListBox(this.ctlManager.ScholarshipCheckedListBox);
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating");

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