示例#1
0
        }//------------------------

        //event is raised when the control is double clicked
        private void dgvStudentEnrolledDoubleClick(object sender, EventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                StudentLoadingLogic studentManager = new StudentLoadingLogic(_userInfo);

                studentManager.GetSearchedStudentInformation(_userInfo, _sysIdStudent, String.Empty, String.Empty, String.Empty, String.Empty);

                using (StudentLoading frmShow = new StudentLoading(_userInfo,
                                                                   _scheduleManager.GetDetailsStudentInformation(_userInfo, _sysIdStudent, Application.StartupPath), studentManager))
                {
                    frmShow.ShowDialog(this);

                    _scheduleManager.SelectBySysIDScheduleListStudentLoad(_userInfo, _schedInfo.ScheduleSysId);

                    this.dgvStudentEnrolled.DataSource  = _scheduleManager.GetStudentEnrolled(true);
                    this.dgvStudentWithdrawn.DataSource = _scheduleManager.GetStudentEnrolled(false);

                    this.tblStudentEnrolled.Text  = "Student Enrolled  (" + this.dgvStudentEnrolled.Rows.Count.ToString() + ")";
                    this.tblStudentWithdrawn.Text = "Student Withdrawn  (" + this.dgvStudentWithdrawn.Rows.Count.ToString() + ")";
                }
            }
            catch
            {
                RemoteClient.ProcStatic.ShowErrorDialog("Error Loading Student Loading Mudule.", "Error Loading");
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        }//------------------------
示例#2
0
        public OptinalFeeSearchOnTextBoxList(StudentLoadingLogic studentManager)
        {
            this.InitializeComponent();

            _studentManager = studentManager;

            this.pbxRefresh.Click += new EventHandler(pbxRefreshClick);
        }
        public StudentEnrolmentHistory(StudentLoadingLogic studentManager)
        {
            this.InitializeComponent();

            _studentManger = studentManager;

            this.Load           += new EventHandler(ClassLoad);
            this.btnClose.Click += new EventHandler(btnCloseClick);
        }
        public FilteredStudentSearch(CommonExchange.SysAccess userInfo, StudentLoadingLogic studentManager)
        {
            this.InitializeComponent();

            _userInfo       = userInfo;
            _studentManager = studentManager;

            this.dgvList.CellContentClick += new DataGridViewCellEventHandler(dgvListCellContentClick);
            this.btnPrint.Click           += new EventHandler(btnPrintClick);
        }
示例#5
0
        public StudentGrades(CommonExchange.SysAccess userInfo, StudentLoadingLogic studentManager, CommonExchange.Student studentInfo)
        {
            this.InitializeComponent();

            _userInfo       = userInfo;
            _studentManager = studentManager;

            _studentInfo = studentInfo;

            this.Load           += new EventHandler(ClassLoad);
            this.btnClose.Click += new EventHandler(btnCloseClick);
            this.btnPrint.Click += new EventHandler(btnPrintClick);
        }
        //###########################################CLASS StudentManager EVENTS#####################################################
        //event is raised when the class is loaded
        private void ClassLoad(object sender, EventArgs e)
        {
            _studentManager = new StudentLoadingLogic(_userInfo);

            try
            {
                if (!(RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessOfficeUser(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessCashier(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessVpOfFinance(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessVpOfAcademicAffairs(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessCollegeRegistrar(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessStudentDataController(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessSecretaryOftheVpOfAcademicAffairs(_userInfo)))
                {
                    throw new Exception("You are not authorized to access this module.");
                }

                _studentManager.InitializeSchoolYearComboManager(this.ctlManager.SchoolYearComboBox);
                _studentManager.InitializeCourseCheckedListBox(this.ctlManager.CourseCheckedListBox);
                _studentManager.InitializeYearLevelCheckedListBox(this.ctlManager.YearLevelCheckedListBox);

                _frmStudentSearch = new SearchListForStudent();
                _frmStudentSearch.OnDoubleClickEnter               += new SearchListDataGridDoubleClickEnterStudent(_frmStudentSearchOnDoubleClickEnter);
                _frmStudentSearch.OnDataSourceChange               += new SearchListDataSourceChange(_frmStudentSearchOnDataSourceChange);
                _frmStudentSearch.OnPrintStudentLoadClick          += new SearchListPrintButtonClick(_frmStudentSearchOnPrintStudentLoadClick);
                _frmStudentSearch.OnPrintStatementOfAccountClick   += new SearchListPrintButtonClick(_frmStudentSearchOnPrintStatementOfAccountClick);
                _frmStudentSearch.OnPrintStudentMasterListClick    += new SearchListPrintButtonClick(_frmStudentSearchOnPrintStudentMasterListClick);
                _frmStudentSearch.OnPrintStudentInsuranceListClick += new SearchListPrintButtonClick(_frmStudentSearchOnPrintStudentInsuranceListClick);
                _frmStudentSearch.OnPrintStudentEnrolmentListClick += new SearchListPrintButtonClick(_frmStudentSearchOnPrintStudentEnrolmentListClick);
                _frmStudentSearch.OnPrintStudentListClick          += new SearchListPrintButtonClick(_frmStudentSearchOnPrintStudentListClick);
                _frmStudentSearch.OnPrintStudentQuickCountClick    += new SearchListPrintButtonClick(_frmStudentSearchOnPrintStudentQuickCountClick);

                _frmStudentSearch.LocationPoint = new Point(14, 300);
                _frmStudentSearch.AdoptGridSize = false;
                _frmStudentSearch.MdiParent     = this;

                lblRecordDate.Text = "Record Date: " + DateTime.Parse(_studentManager.ServerDateTime).ToString();
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating");

                this.Close();
            }
        }//-------------------------------
        public ChangeStudentEnrollmentLevel(CommonExchange.SysAccess userInfo, CommonExchange.StudentEnrolmentLevel enrolmentLevelInfo,
                                            StudentLoadingLogic studentManager, String enrolmentLevelSysIdExcludeLIst, String studentSysId, String yearId, String sysIdSemester)
        {
            this.InitializeComponent();

            _userInfo           = userInfo;
            _enrolmentLevelInfo = enrolmentLevelInfo;
            _studentManager     = studentManager;
            _studentSysId       = studentSysId;
            _yearId             = yearId;
            _sysIdSemester      = sysIdSemester;

            _enrolmentLevelSysIdExcludeList = enrolmentLevelSysIdExcludeLIst;

            this.Load += new EventHandler(ClassLoad);
            this.cboYearLevel.SelectedIndexChanged += new EventHandler(cboYearLevelSelectedIndexChanged);
            this.btnClose.Click  += new EventHandler(btnCloseClick);
            this.btnUpdate.Click += new EventHandler(btnUpdateClick);
        }
示例#8
0
        public SubjectSearchOnTextBoxListStudentLoading(CommonExchange.SysAccess userInfo,
                                                        StudentLoadingLogic studentManager, Int32 primaryIndex, Boolean isInternational)
        {
            this.InitializeComponent();

            this.PrimaryIndex = primaryIndex;

            _isInternational = isInternational;

            _userInfo       = userInfo;
            _studentManager = studentManager;

            this.FormClosing += new FormClosingEventHandler(ClassClosing);
            this.dgvList.CellContentClick      += new DataGridViewCellEventHandler(dgvListCellContentClick);
            this.dgvList.CellEnter             += new DataGridViewCellEventHandler(dgvListCellEnter);
            this.pbxRefresh.Click              += new EventHandler(pbxRefreshClick);
            this.pbxChecked.Click              += new EventHandler(pbxCheckedClick);
            this.pbxInsertSubjects.Click       += new EventHandler(pbxInsertSubjectsClick);
            this.chkIsIrregular.CheckedChanged += new EventHandler(chkIsIrregularCheckedChanged);
        }
示例#9
0
        public MajorExamSchedule(CommonExchange.SysAccess userInfo, StudentLoadingLogic studentManager, Boolean showFilterLink)
        {
            this.InitializeComponent();

            _userInfo       = userInfo;
            _studentManager = studentManager;

            this.Load                     += new EventHandler(ClassLoad);
            this.btnClose.Click           += new EventHandler(btnClose_lick);
            this.lsvMajorExam.ItemChecked += new ItemCheckedEventHandler(lsvMajorExamItemChecked);
            this.lsvMajorExam.MouseDown   += new MouseEventHandler(lsvMajorExamMouseDown);
            this.btnPrint.Click           += new EventHandler(btnPrintClick);
            this.lblChangeExamDate.Click  += new EventHandler(lblChangeExamDateClick);

            if (showFilterLink)
            {
                this.lnkFilter.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkFilterLinkClicked);
                this.lnkFilter.Visible      = true;
            }
        }