public StudentGuidanceUpdate(CommonExchange.SysAccess userInfo, CommonExchange.Student studentInfo, StudentLogic studentManager)
            : base(userInfo)
        {
            this.InitializeComponent();

            _userInfo    = userInfo;
            _studentInfo = studentInfo;

            _studentInfo.ObjectState = System.Data.DataRowState.Modified;

            _studentInfoTemp = (CommonExchange.Student)_studentInfo.Clone();

            _studentManager = studentManager;

            _errProvider = new ErrorProvider();

            this.txtStudentOtherInformation.Validated += new EventHandler(txtStudentOtherInformationValidated);
            this.FormClosing += new FormClosingEventHandler(ClassClosing);
            this.chkForm138.CheckedChanged             += new EventHandler(chkForm138CheckedChanged);
            this.chkHonorableDismissal.CheckedChanged  += new EventHandler(chkHonorableDismissalCheckedChanged);
            this.chkTranscriptOfRecords.CheckedChanged += new EventHandler(chkTranscriptOfRecordsCheckedChanged);
            this.chkGoodMoral.CheckedChanged           += new EventHandler(chkGoodMoralCheckedChanged);
            this.chkBirthCertificate.CheckedChanged    += new EventHandler(chkBirthCertificateCheckedChanged);
            this.chkMarriageContract.CheckedChanged    += new EventHandler(chkMarriageContractCheckedChanged);
            this.chkPhoto.CheckedChanged += new EventHandler(chkPhotoCheckedChanged);
            this.chkNCAE.CheckedChanged  += new EventHandler(chkNCAECheckedChanged);
            this.btnClose.Click          += new EventHandler(btnCloseClick);
            this.btnUpdate.Click         += new EventHandler(btnUpdateClick);
        }
Пример #2
0
        }//--------------------

        //####################################END CLASS StudentScholarship EVENTS####################################

        //##################################BUTTON btnSearchStudent EVENTS##########################################################
        //event is raised when the control is clicked
        private void btnSearchStudentClick(object sender, EventArgs e)
        {
            using (StudentSearch frmSearch = new StudentSearch(_userInfo, _scholarshipManager, false, false))
            {
                frmSearch.ShowDialog(this);

                if (frmSearch.HasSelected)
                {
                    if (this.pbxStudent.Image != null)
                    {
                        this.pbxStudent.Image.Dispose();
                        this.pbxStudent.Image = null;
                    }

                    GC.SuppressFinalize(this);
                    GC.Collect();

                    _studentInfo = _scholarshipManager.GetDetailsStudentInformation(_userInfo, frmSearch.PrimaryId, Application.StartupPath, true);

                    this.lblStdFirstName.Text = _studentInfo.PersonInfo.FirstName;
                    this.lblStdLastName.Text  = _studentInfo.PersonInfo.LastName;
                    this.lblStdStudentId.Text = _studentInfo.StudentId;
                    this.lblMiddleName.Text   = _studentInfo.PersonInfo.MiddleName;

                    _studentScholarshipInfo.StudentEnrolmentLevelInfo.EnrolmentLevelSysId = _scholarshipManager.GetEnrolmentLevelSysId(_studentInfo.StudentSysId);

                    if (!String.IsNullOrEmpty(_studentInfo.PersonInfo.FilePath))
                    {
                        this.pbxStudent.Image = Image.FromFile(_studentInfo.PersonInfo.FilePath);
                    }
                }
            }
        }//---------------------------------
Пример #3
0
        public StudentCourse(CommonExchange.SysAccess userInfo, CommonExchange.Student studentInfo, StudentLogic studentManager, String couseGroupId)
        {
            this.InitializeComponent();

            _userInfo       = userInfo;
            _studentManager = studentManager;

            _errProvider = new ErrorProvider();

            _couseGroupId = couseGroupId;

            _enrolmentCourseInfo = new CommonExchange.StudentEnrolmentCourse();

            if (String.IsNullOrEmpty(studentInfo.StudentSysId))
            {
                _enrolmentCourseInfo.StudentInfo.StudentSysId = "SYSTMP " + studentInfo.StudentId;
            }
            else
            {
                _enrolmentCourseInfo.StudentInfo.StudentSysId = studentInfo.StudentSysId;
            }

            this.Load += new EventHandler(ClassLoad);
            this.cboYear.SelectedIndexChanged      += new EventHandler(cboYearSelectedIndexChanged);
            this.cboSemester.SelectedIndexChanged  += new EventHandler(cboSemesterSelectedIndexChanged);
            this.btnSearchCourse.Click             += new EventHandler(btnSearchCourseClick);
            this.chkIsCurrentCourse.CheckedChanged += new EventHandler(chkIsCurrentCourseCheckedChanged);
        }
Пример #4
0
        }//------------------------------

        //this procedure shows the view update student Information
        private void ShowUpdateStudentInformationDialog(CommonExchange.Student studentInfo)
        {
            try
            {
                DataTable tempTable = _cashieringManager.StudentTable;

                using (StudentCashierUpdate frmUpdate = new StudentCashierUpdate(_userInfo, studentInfo, _studentManager, false, true, ref tempTable))
                {
                    _frmStudentSearch.WindowState = FormWindowState.Minimized;

                    frmUpdate.ShowDialog(this);

                    if (frmUpdate.HasUpDated)
                    {
                        _cashieringManager.StudentTable = tempTable;

                        this.ShowSearchResultDialog();
                    }

                    _frmStudentSearch.WindowState = FormWindowState.Normal;

                    this.ctlManager.SetFocusOnSearchTextBox();
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading Update Student Information Module");
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        }//----------------------
Пример #5
0
        }//---------------------

        //event is raised when the key is pressed
        protected override void dgvListKeyPress(object sender, KeyPressEventArgs e)
        {
            base.dgvListKeyPress(sender, e);

            if (_hasSelected)
            {
                if (_pbxBase != null && _pbxBase.Image != null)
                {
                    _pbxBase.Image.Dispose();
                    _pbxBase.Image = null;
                }

                GC.SuppressFinalize(this);
                GC.Collect();

                if (_isForStudentVerificaion && !_isForNewUserVerification)
                {
                    _studentInfo = _baseServiceManager.SelectBySysIDPersonStudentInformation(_userInfo,
                                                                                             _baseServiceManager.GetPersonSysId(_rowIndex), Application.StartupPath);
                }
                else if (!_isForStudentVerificaion && _isForNewUserVerification)
                {
                    _newUserInfo = _baseServiceManager.SelectBySysIDPersonSystemUserInfo(_userInfo,
                                                                                         _baseServiceManager.GetPersonSysId(_rowIndex), Application.StartupPath);
                }
                else
                {
                    _empInfo = _baseServiceManager.SelectBySysIDPersonEmployeeInformation(_userInfo,
                                                                                          _baseServiceManager.GetPersonSysId(_rowIndex), Application.StartupPath);
                }


                this.Close();
            }
        }//--------------------
Пример #6
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);
        }
        public LogInLogOutStudentInformation(CommonExchange.SysAccess userInfo, CommonExchange.Student studentInfo, AttendanceLogic attendanceManager)
            : base(userInfo, attendanceManager)
        {
            this.InitializeComponent();

            _studentInfo = studentInfo;
        }
Пример #8
0
        }//---------------------------

        //event is raised when the mouse is double clicked
        private void dgvListMouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (_rowIndex >= 0)
            {
                _hasSelected = true;

                if (!_isForPersonVerification)
                {
                    if (_pbxPerson.Image != null)
                    {
                        _pbxPerson.Image.Dispose();
                        _pbxPerson.Image = null;
                    }

                    GC.SuppressFinalize(this);
                    GC.Collect();

                    if (_isForStudentVerification)
                    {
                        _studentInfo = _baseServicesManager.SelectBySysIDPersonStudentInformation(_userInfo,
                                                                                                  _baseServicesManager.GetPersonSysId(_rowIndex), Application.StartupPath);
                    }
                    else
                    {
                        _employeeInfo = _baseServicesManager.SelectBySysIDPersonEmployeeInformation(_userInfo,
                                                                                                    _baseServicesManager.GetPersonSysId(_rowIndex), Application.StartupPath);
                    }
                }

                this.Close();
            }
        }//---------------------------
        //###########################################CLASS IDENTIFICATIONEMPLOYEEUPDATE ClassLoad EVENTS#####################################################
        //event is raised when the class is loaded
        protected override void ClassLoad(object sender, EventArgs e)
        {
            _studentInfo = new CommonExchange.Student();

            this.txtIdName.Text = _employeeInfo.EmployeeId;
            this.txtName.Text   = RemoteClient.ProcStatic.GetCompleteNameMiddleInitial(_employeeInfo.PersonInfo.LastName,
                                                                                       _employeeInfo.PersonInfo.FirstName, _employeeInfo.PersonInfo.MiddleName);
            this.txtTypeName.Text    = _employeeInfo.SalaryInfo.DepartmentInfo.DepartmentName;
            this.txtAddressName.Text = _employeeInfo.PersonInfo.PresentAddress;

            CommonExchange.PersonRelationship emrContact = _identificationManager.GetPersonEmergencyContact(_employeeInfo.PersonInfo.PersonRelationshipList);

            this.txtEmerName.Text = RemoteClient.ProcStatic.GetCompleteNameMiddleInitial(emrContact.PersonInRelationshipWith.LastName,
                                                                                         emrContact.PersonInRelationshipWith.FirstName, emrContact.PersonInRelationshipWith.MiddleName);
            this.txtEmerAddress.Text  = emrContact.PersonInRelationshipWith.PresentAddress;
            this.txtEmerPhone.Text    = emrContact.PersonInRelationshipWith.PresentPhoneNos;
            this.txtRelationship.Text = emrContact.RelationshipTypeInfo.RelationshipDescription;

            this.txtCardNumber.Text = _employeeInfo.CardNumber;

            if (!String.IsNullOrEmpty(_employeeInfo.PersonInfo.FilePath))
            {
                this.pbxPhoto.Image = Image.FromFile(_employeeInfo.PersonInfo.FilePath);
            }
        }
Пример #10
0
        }//-------------------------

        //this fucntion will returns Student Details
        public CommonExchange.Student GetDetailsStudentInformation(CommonExchange.SysAccess userInfo, String studentEmployeeId, String startUp)
        {
            CommonExchange.Student studentInfo = new CommonExchange.Student();

            String strFilter = "student_employee_id = '" + studentEmployeeId + "'";

            DataRow[] selectRow = _studentEmployeeTable.Select(strFilter, "student_employee_id ASC");

            foreach (DataRow row in selectRow)
            {
                studentInfo.StudentSysId           = RemoteServerLib.ProcStatic.DataRowConvert(row, "sysid_student_employee", "");
                studentInfo.StudentId              = RemoteServerLib.ProcStatic.DataRowConvert(row, "student_employee_id", "");
                studentInfo.CardNumber             = RemoteServerLib.ProcStatic.DataRowConvert(row, "card_number", "");
                studentInfo.PersonInfo.PersonSysId = RemoteServerLib.ProcStatic.DataRowConvert(row, "sysid_person", "");
                studentInfo.PersonInfo.LastName    = RemoteServerLib.ProcStatic.DataRowConvert(row, "last_name", "");
                studentInfo.PersonInfo.FirstName   = RemoteServerLib.ProcStatic.DataRowConvert(row, "first_name", "");
                studentInfo.PersonInfo.MiddleName  = RemoteServerLib.ProcStatic.DataRowConvert(row, "middle_name", "");

                break;
            }

            studentInfo.PersonInfo.FilePath = this.GetPersonImagePath(userInfo, studentInfo.PersonInfo.PersonSysId,
                                                                      studentInfo.PersonInfo.PersonImagesFolder(startUp));

            return(studentInfo);
        }//------------------------
Пример #11
0
        public StudentCourseCreate(CommonExchange.SysAccess userInfo, CommonExchange.Student studentInfo, StudentLogic studentManager, String couseGroupId)
            : base(userInfo, studentInfo, studentManager, couseGroupId)
        {
            this.InitializeComponent();

            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnCancel.Click += new EventHandler(btnCancelClick);
            this.btnCreate.Click += new EventHandler(btnCreateClick);
        }
Пример #12
0
        public StudentEnrolmentHistory(CommonExchange.SysAccess userInfo, StudentLogic studentManager, CommonExchange.Student studentInfo, Boolean isForRegistrar)
            : base(userInfo, studentManager, isForRegistrar)
        {
            this.InitializeComponent();

            _studentInfo = studentInfo;

            this.btnClose.Click += new EventHandler(btnCloseClick);
        }
Пример #13
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);
        }
Пример #14
0
        }//---------------------------

        //########################################END TREEVIEW trvStudentEnrolment EVENTS#####################################################

        //########################################LINKLABEL lnkVerify EVENTS#####################################################
        //event is raised when the link is clicked
        protected virtual void lnkVerifyLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                DataTable resultTable = _studentManager.GetSearchPersonInformation(_userInfo, String.Empty, _studentInfo.PersonInfo.LastName,
                                                                                   _studentInfo.PersonInfo.FirstName, String.Empty, true);

                if (resultTable.Rows.Count > 0)
                {
                    using (BaseServices.VerifyPersonExistenceList frmVerify = new BaseServices.VerifyPersonExistenceList(_userInfo, _studentManager,
                                                                                                                         RemoteClient.ProcStatic.GetCompleteNameMiddleInitial(_studentInfo.PersonInfo.LastName,
                                                                                                                                                                              _studentInfo.PersonInfo.FirstName, _studentInfo.PersonInfo.MiddleName), resultTable, true, false, ref this.pbxStudent))
                    {
                        frmVerify.ShowDialog(this);

                        if (frmVerify.HasSelected)
                        {
                            _studentInfo = frmVerify.StudentInfo;

                            if (!String.IsNullOrEmpty(_studentInfo.StudentSysId))
                            {
                                _isForUpdateStudent = true;

                                this.Close();
                            }
                        }
                    }
                }
                else
                {
                    MessageBox.Show("The system has successfully verified that " + RemoteClient.ProcStatic.GetCompleteNameMiddleInitial(
                                        _studentInfo.PersonInfo.LastName, _studentInfo.PersonInfo.FirstName, _studentInfo.PersonInfo.MiddleName) +
                                    " does NOT currently exist on the database." +
                                    "\n\nClick OK to proceed.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }

                _isVerified = true;

                this.SetStudentCashierControls();
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading Person Verify Module");
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        }//---------------------------
Пример #15
0
        }//---------------------

        //this function will get student information by person system id
        public CommonExchange.Student SelectBySysIDPersonStudentInformation(CommonExchange.SysAccess userInfo, String personSysId, String startUp)
        {
            CommonExchange.Student studentInfo = new CommonExchange.Student();

            using (RemoteClient.RemCntStudentManager remClient = new RemoteClient.RemCntStudentManager())
            {
                studentInfo = remClient.SelectBySysIDPersonStudentInformation(userInfo, personSysId);
            }

            studentInfo.PersonInfo.FilePath = this.GetPersonImagePath(userInfo, studentInfo.PersonInfo.PersonSysId,
                                                                      studentInfo.PersonInfo.PersonImagesFolder(startUp));

            return(studentInfo);
        }//------------------
Пример #16
0
        }//-----------------------------

        //this function returns the student details
        public CommonExchange.Student GetDetailsStudentInformation(CommonExchange.SysAccess userInfo, String query, String startUp, Boolean isCreate)
        {
            CommonExchange.Student studentInfo = new CommonExchange.Student();

            if (isCreate)
            {
                String    strFilter = "student_id = '" + query + "'";
                DataRow[] selectRow = _studentTable.Select(strFilter);

                foreach (DataRow studRow in selectRow)
                {
                    studentInfo.StudentSysId           = RemoteServerLib.ProcStatic.DataRowConvert(studRow, "sysid_student", "");
                    studentInfo.StudentId              = RemoteServerLib.ProcStatic.DataRowConvert(studRow, "student_id", "");
                    studentInfo.PersonInfo.FirstName   = RemoteServerLib.ProcStatic.DataRowConvert(studRow, "first_name", "");
                    studentInfo.PersonInfo.LastName    = RemoteServerLib.ProcStatic.DataRowConvert(studRow, "last_name", "");
                    studentInfo.PersonInfo.MiddleName  = RemoteServerLib.ProcStatic.DataRowConvert(studRow, "middle_name", "");
                    studentInfo.PersonInfo.PersonSysId = RemoteServerLib.ProcStatic.DataRowConvert(studRow, "sysid_person", "");
                    studentInfo.CourseInfo.CourseTitle = RemoteServerLib.ProcStatic.DataRowConvert(studRow, "course_title", String.Empty);
                    studentInfo.CourseInfo.DepartmentInfo.DepartmentName = RemoteServerLib.ProcStatic.DataRowConvert(studRow, "department_name", String.Empty);

                    break;
                }
            }
            else
            {
                String    strFilter = "sysid_studentscholarship = '" + query + "'";
                DataRow[] selectRow = _studentScholarshipTable.Select(strFilter);

                foreach (DataRow studRow in selectRow)
                {
                    if (studRow.RowState != DataRowState.Deleted)
                    {
                        studentInfo.StudentSysId           = RemoteServerLib.ProcStatic.DataRowConvert(studRow, "sysid_student", "");
                        studentInfo.StudentId              = RemoteServerLib.ProcStatic.DataRowConvert(studRow, "student_id", "");
                        studentInfo.PersonInfo.FirstName   = RemoteServerLib.ProcStatic.DataRowConvert(studRow, "first_name", "");
                        studentInfo.PersonInfo.LastName    = RemoteServerLib.ProcStatic.DataRowConvert(studRow, "last_name", "");
                        studentInfo.PersonInfo.MiddleName  = RemoteServerLib.ProcStatic.DataRowConvert(studRow, "middle_name", "");
                        studentInfo.PersonInfo.PersonSysId = RemoteServerLib.ProcStatic.DataRowConvert(studRow, "sysid_person", "");

                        break;
                    }
                }
            }

            studentInfo.PersonInfo.FilePath = base.GetPersonImagePath(userInfo, studentInfo.PersonInfo.PersonSysId,
                                                                      studentInfo.PersonInfo.PersonImagesFolder(startUp));

            return(studentInfo);
        }//----------------------------
Пример #17
0
        }//-------------------------

        //###########################################END CLASS StudentManager EVENTS#####################################################

        //##########################################CLASS StudentSearchList EVENTS#######################################################
        //event is raised when the link open is clicked
        private void _frmStudentSearchOnCreate()
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                CommonExchange.Student studentInfoTemp = new CommonExchange.Student();
                Boolean hasUpdated = false;

                using (StudentCashierCreate frmCreate = new StudentCashierCreate(_userInfo, _studentManager, false))
                {
                    _frmStudentSearch.WindowState = FormWindowState.Minimized;

                    frmCreate.ShowDialog(this);

                    if (frmCreate.HasCreated)
                    {
                        this.ShowSearchResultDialog();
                    }
                    else if (frmCreate.IsForStudentUpdate)
                    {
                        this.ShowUpdateStudentInformationDialog(frmCreate.StudentInfo);
                    }

                    studentInfoTemp = frmCreate.StudentInfo;
                    hasUpdated      = frmCreate.HasCreated;

                    _frmStudentSearch.WindowState = FormWindowState.Normal;
                }

                if (hasUpdated &&
                    (RemoteServerLib.ProcStatic.IsSystemAccessCashier(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessVpOfFinance(_userInfo)))
                {
                    this.ConfirmRedirect(studentInfoTemp);
                }

                this.ctlManager.SetFocusOnSearchTextBox();
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Creating A Student Information");
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        }//----------------------
Пример #18
0
        }//------------------

        //this fucntion will returns Student Detailss
        public CommonExchange.Student GetDetailsStudentInformation(CommonExchange.SysAccess userInfo, String studentEmployeeId, String startUp)
        {
            CommonExchange.Student studentInfo = new CommonExchange.Student();

            String strFilter = "student_employee_id = '" + studentEmployeeId + "'";

            DataRow[] selectRow = _studentEmployeeTable.Select(strFilter, "student_employee_id ASC");

            foreach (DataRow row in selectRow)
            {
                studentInfo.StudentSysId              = RemoteServerLib.ProcStatic.DataRowConvert(row, "sysid_student_employee", "");
                studentInfo.StudentId                 = RemoteServerLib.ProcStatic.DataRowConvert(row, "student_employee_id", "");
                studentInfo.CardNumber                = RemoteServerLib.ProcStatic.DataRowConvert(row, "card_number", "");
                studentInfo.PersonInfo.LastName       = RemoteServerLib.ProcStatic.DataRowConvert(row, "last_name", "");
                studentInfo.PersonInfo.FirstName      = RemoteServerLib.ProcStatic.DataRowConvert(row, "first_name", "");
                studentInfo.PersonInfo.MiddleName     = RemoteServerLib.ProcStatic.DataRowConvert(row, "middle_name", "");
                studentInfo.PersonInfo.PresentAddress = RemoteServerLib.ProcStatic.DataRowConvert(row, "present_address", "");
                studentInfo.CourseInfo.CourseTitle    = RemoteServerLib.ProcStatic.DataRowConvert(row, "course_title_department_name", "");
                studentInfo.CourseInfo.Acronym        = RemoteServerLib.ProcStatic.DataRowConvert(row, "acronym_employment_type", "");
                studentInfo.PersonInfo.PersonSysId    = RemoteServerLib.ProcStatic.DataRowConvert(row, "sysid_person", "");

                if (studentInfo.PersonInfo.PersonRelationshipList.Count < 1)
                {
                    CommonExchange.PersonRelationship personRelationshipInfo = new CommonExchange.PersonRelationship();

                    personRelationshipInfo.IsEmergencyContact = true;
                    personRelationshipInfo.PersonInRelationshipWith.LastName            = RemoteServerLib.ProcStatic.DataRowConvert(row, "emer_last_name", "");
                    personRelationshipInfo.PersonInRelationshipWith.FirstName           = RemoteServerLib.ProcStatic.DataRowConvert(row, "emer_first_name", "");
                    personRelationshipInfo.PersonInRelationshipWith.MiddleName          = RemoteServerLib.ProcStatic.DataRowConvert(row, "emer_middle_name", "");
                    personRelationshipInfo.PersonInRelationshipWith.PresentAddress      = RemoteServerLib.ProcStatic.DataRowConvert(row, "emer_present_address", "");
                    personRelationshipInfo.PersonInRelationshipWith.PresentPhoneNos     = RemoteServerLib.ProcStatic.DataRowConvert(row, "emer_present_phone_nos", "");
                    personRelationshipInfo.PersonInRelationshipWith.HomeAddress         = RemoteServerLib.ProcStatic.DataRowConvert(row, "emer_home_address", "");
                    personRelationshipInfo.PersonInRelationshipWith.HomePhoneNos        = RemoteServerLib.ProcStatic.DataRowConvert(row, "emer_home_phone_nos", "");
                    personRelationshipInfo.RelationshipTypeInfo.RelationshipDescription =
                        RemoteServerLib.ProcStatic.DataRowConvert(row, "emer_relationship_description", "");

                    studentInfo.PersonInfo.PersonRelationshipList.Add(personRelationshipInfo);
                }

                break;
            }

            studentInfo.PersonInfo.FilePath = this.GetPersonImagePath(userInfo, studentInfo.PersonInfo.PersonSysId,
                                                                      studentInfo.PersonInfo.PersonImagesFolder(startUp));

            return(studentInfo);
        }//------------------------
Пример #19
0
        public ReceiptInformationCancelRecord(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager,
                                              CommonExchange.StudentPayments studentPaymentInfo, CommonExchange.Student studentInfo, String dateEnd)
            : base(userInfo, cashieringManager, studentPaymentInfo, studentInfo, dateEnd)
        {
            this.InitializeComponent();

            _userInfo           = userInfo;
            _cashieringManager  = cashieringManager;
            _studentPaymentInfo = studentPaymentInfo;
            _studentInfo        = studentInfo;

            _dateEnd = dateEnd;

            this.FormClosing      += new FormClosingEventHandler(ClassClossing);
            this.btnCancel.Click  += new EventHandler(btnCancelClick);
            this.btnProceed.Click += new EventHandler(btnProceedClick);
        }
Пример #20
0
        }//----------------------

        //this procedure shows the view update student Information
        private void ShowUpdateStudentInformationDialog(CommonExchange.Student studentInfo)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                Boolean isForStudentUpdate = false;

                DataTable tempTable = new DataTable("");

                using (StudentCashierUpdate frmUpdate = new StudentCashierUpdate(_userInfo, studentInfo, _studentManager, false, false, ref tempTable))
                {
                    _frmStudentSearch.WindowState = FormWindowState.Minimized;

                    frmUpdate.ShowDialog(this);

                    if (frmUpdate.HasUpDated)
                    {
                        this.ShowSearchResultDialog();

                        _frmStudentSearch.WindowState = FormWindowState.Normal;
                    }
                    else if (frmUpdate.IsForStudentUpdate)
                    {
                        isForStudentUpdate = true;

                        studentInfo = frmUpdate.StudentInfo;
                    }

                    this.ctlManager.SetFocusOnSearchTextBox();
                }

                if (isForStudentUpdate)
                {
                    this.ShowUpdateStudentInformationDialog(studentInfo);
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading Update Student Information Module");
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        }//----------------------
Пример #21
0
        public StudentCashierUpdate(CommonExchange.SysAccess userInfo, CommonExchange.Student studentInfo,
                                    StudentLogic studentManager, Boolean isForRegistrar, Boolean fromCashiering, ref DataTable studentTable)
            : base(userInfo, studentManager, isForRegistrar)
        {
            this.InitializeComponent();

            _studentInfo             = studentInfo;
            _studentInfo.ObjectState = System.Data.DataRowState.Modified;
            _studentInfoTemp         = (CommonExchange.Student)_studentInfo.Clone();

            _fromCashiering = fromCashiering;
            _studentTable   = studentTable;

            this.FormClosing += new FormClosingEventHandler(StudentCashierUpdateFormClosing);

            this.btnClose.Click  += new EventHandler(btnCloseClick);
            this.btnUpdate.Click += new EventHandler(btnUpdateClick);
        }
Пример #22
0
        public ReceiptNumberInformation(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager,
                                        CommonExchange.StudentPayments studentPaymentInfo, CommonExchange.Student studentInfo, String dateEnd)
        {
            this.InitializeComponent();

            _userInfo           = userInfo;
            _cashieringManager  = cashieringManager;
            _studentInfo        = studentInfo;
            _studentPaymentInfo = studentPaymentInfo;

            _dateEnd = dateEnd;

            _errProvider = new ErrorProvider();

            this.Load += new EventHandler(ClassLoad);
            this.txtRemarks.Validated += new EventHandler(txtRemarksValidated);
            this.lblReceiptDate.Click += new EventHandler(lblReceiptDateClick);
        }
        public IdentificationStudentUpdate(CommonExchange.SysAccess userInfo, CommonExchange.Student studentInfo,
                                           IdentificationLogic identificationManager)
            : base(userInfo, identificationManager)
        {
            this.InitializeComponent();

            _studentInfo     = studentInfo;
            _studentInfoTemp = (CommonExchange.Student)studentInfo.Clone();

            this.FormClosing     += new System.Windows.Forms.FormClosingEventHandler(IdentificationStudentUpdateFormClosing);
            this.btnClose.Click  += new EventHandler(btnCloseClick);
            this.btnUpdate.Click += new EventHandler(btnUpdateClick);

            if (!String.IsNullOrEmpty(_studentInfo.PersonInfo.FilePath))
            {
                this.pbxPhoto.Image = Image.FromFile(_studentInfo.PersonInfo.FilePath);
            }
        }
        //####################################CLASS StudentAdditionalFee EVENTS####################################
        //event is raised when the class is loaded
        private void ClassLoad(object sender, EventArgs e)
        {
            _studentInfo = new CommonExchange.Student();

            _studentInfo = _cashieringManager.GetDetailsStudentInformation(_userInfo, _index, Application.StartupPath.ToString());

            this.Text = "  " + RemoteClient.ProcStatic.GetCompleteNameMiddleInitial(_studentInfo.PersonInfo.LastName,
                                                                                    _studentInfo.PersonInfo.FirstName, _studentInfo.PersonInfo.MiddleName);

            _studentAdditionalFeeInfo     = _cashieringManager.GetDetailsStudentAdditionalFeeByStudent(_index);
            _studentAdditionalFeeInfoTemp = (CommonExchange.StudentAdditionalFee)_studentAdditionalFeeInfo.Clone();

            this.lblParticularDescription.Text   = _studentAdditionalFeeInfo.SchoolFeeParticularInfo.ParticularDescription;
            this.txtAdditionalPaymentAmount.Text = _studentAdditionalFeeInfo.Amount.ToString("N");
            this.txtAdditionalFeeRemarks.Text    = _studentAdditionalFeeInfo.Remarks;

            this.txtAdditionalPaymentAmount.Focus();

            this.IsRecordLocked();
        }//----------------
Пример #25
0
        //#########################################CLASS Course EVENTS###########################################################
        //event is raised when the class is loaded
        protected virtual void ClassLoad(object sender, EventArgs e)
        {
            _studentInfo = new CommonExchange.Student();

            if (!_isForRegistrar)
            {
                _studentManager.InitializeStudentEnrolmentCourseLevelTable(_userInfo, _studentInfo.StudentSysId);

                _studentManager.InitializeTreeViewControl(this.trvStudentEnrolment, this.mnuCreateCourse,
                                                          this.mnuUpdateCourse, this.mnuDelete, this.mnuCreateEntryLevel, _hasGenerateStudentId, _courseGroupId);
            }
            else
            {
                _studentManager.SelectBySysIDStudentForEnrolmentHistoryEnrolmentCourseLevel(_userInfo, _studentInfo.StudentSysId);

                _studentManager.InitializeTreeViewControl(_userInfo, this.trvStudentEnrolment);
            }

            _studentInfo.PersonInfo.BirthDate = _studentManager.ServerDateTime;
        }//-------------------------
Пример #26
0
        }//---------------------------

        //########################################LINKLABEL lnkVerify EVENTS#####################################################

        //########################################LINKLABEL lnkPersonArchive EVENTS#####################################################
        //event is raised when the link is clicked
        private void lnkPersonArchiveLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                using (BaseServices.PersonSearchOnTextBoxList frmSearch = new BaseServices.PersonSearchOnTextBoxList(_userInfo, _studentManager,
                                                                                                                     true, false, this.pbxStudent))
                {
                    frmSearch.CreatePersonVisible = false;
                    frmSearch.ShowDialog(this);

                    if (frmSearch.HasSelected)
                    {
                        if (!String.IsNullOrEmpty(frmSearch.StudentInfo.StudentSysId))
                        {
                            _studentInfo = frmSearch.StudentInfo;

                            _isForUpdateStudent = true;

                            this.Close();
                        }
                        else
                        {
                            _studentInfo.PersonInfo = _studentManager.GetPersonDetails(_userInfo, _studentManager.GetPersonSysId(frmSearch.RowIndex),
                                                                                       Application.StartupPath);

                            this.SetStudentCashierControls();
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading");
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        }//--------------------------
Пример #27
0
        }//----------------------

        //this procedure will asked the user he/she whants to redicrect the page into the student tab page
        private void ConfirmRedirect(CommonExchange.Student studentInfo)
        {
            String strMsg = "Do you want to be redirected to the STUDENT TAB of " +
                            RemoteClient.ProcStatic.GetCompleteNameMiddleInitial(studentInfo.PersonInfo.LastName,
                                                                                 studentInfo.PersonInfo.FirstName, studentInfo.PersonInfo.MiddleName) + "?";

            DialogResult msgResult = MessageBox.Show(strMsg, "Confirm Redirect", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question,
                                                     MessageBoxDefaultButton.Button2);

            if (msgResult == DialogResult.Yes)
            {
                CashieringLogic cashieringManager = new CashieringLogic(_userInfo);

                String receiptDate = DateTime.Parse(String.IsNullOrEmpty(BaseServices.BaseServicesLogic.ReceiptDate) ?
                                                    _studentManager.ServerDateTime : BaseServices.BaseServicesLogic.ReceiptDate).ToLongDateString() + " 12:00:00 AM";

                using (StudentTab frmShow = new StudentTab(_userInfo, studentInfo, cashieringManager, receiptDate))
                {
                    frmShow.ShowDialog(this);
                }
            }
        }//----------------------
Пример #28
0
        }//--------------------------

        //this procedure will Edit StudentEmployee Data Table
        private void EditStudentEmployeeDataTable(CommonExchange.Student studentInfo, CommonExchange.Employee employeeInfo, Boolean isStudent)
        {
            if (_studentEmployeeTable != null)
            {
                Int32 index = 0;

                foreach (DataRow studentRow in _studentEmployeeTable.Rows)
                {
                    if (isStudent && String.Equals(studentInfo.StudentSysId,
                                                   RemoteServerLib.ProcStatic.DataRowConvert(studentRow, "sysid_student_employee", String.Empty)))
                    {
                        DataRow editRow = _studentEmployeeTable.Rows[index];

                        editRow.BeginEdit();

                        editRow["sysid_student_employee"] = studentInfo.StudentSysId;
                        editRow["student_employee_id"]    = studentInfo.StudentId;
                        editRow["card_number"]            = studentInfo.CardNumber;
                        editRow["last_name"]       = studentInfo.PersonInfo.LastName;
                        editRow["first_name"]      = studentInfo.PersonInfo.FirstName;
                        editRow["middle_name"]     = studentInfo.PersonInfo.MiddleName;
                        editRow["present_address"] = studentInfo.PersonInfo.PresentAddress;
                        editRow["course_title_department_name"] = studentInfo.CourseInfo.CourseTitle;
                        editRow["acronym_employment_type"]      = studentInfo.CourseInfo.Acronym;

                        CommonExchange.PersonRelationship personRelationship = this.GetPersonEmergencyContact(studentInfo.PersonInfo.PersonRelationshipList);

                        editRow["emer_last_name"]                = personRelationship.PersonInRelationshipWith.LastName;
                        editRow["emer_first_name"]               = personRelationship.PersonInRelationshipWith.FirstName;
                        editRow["emer_middle_name"]              = personRelationship.PersonInRelationshipWith.MiddleName;
                        editRow["emer_present_address"]          = personRelationship.PersonInRelationshipWith.PresentAddress;
                        editRow["emer_present_phone_nos"]        = personRelationship.PersonInRelationshipWith.PresentPhoneNos;
                        editRow["emer_relationship_description"] = personRelationship.RelationshipTypeInfo.RelationshipDescription;

                        editRow["is_student"] = true;

                        editRow.EndEdit();

                        break;
                    }
                    else if (!isStudent && String.Equals(employeeInfo.EmployeeSysId,
                                                         RemoteServerLib.ProcStatic.DataRowConvert(studentRow, "sysid_student_employee", String.Empty)))
                    {
                        DataRow editRow = _studentEmployeeTable.Rows[index];

                        editRow.BeginEdit();

                        editRow["sysid_student_employee"] = employeeInfo.EmployeeSysId;
                        editRow["student_employee_id"]    = employeeInfo.EmployeeId;
                        editRow["card_number"]            = employeeInfo.CardNumber;
                        editRow["last_name"]       = employeeInfo.PersonInfo.LastName;
                        editRow["first_name"]      = employeeInfo.PersonInfo.FirstName;
                        editRow["middle_name"]     = employeeInfo.PersonInfo.MiddleName;
                        editRow["present_address"] = employeeInfo.PersonInfo.PresentAddress;
                        editRow["course_title_department_name"] = employeeInfo.SalaryInfo.DepartmentInfo.DepartmentName;
                        editRow["acronym_employment_type"]      = employeeInfo.SalaryInfo.DepartmentInfo.Acronym;

                        CommonExchange.PersonRelationship personRelationship = this.GetPersonEmergencyContact(employeeInfo.PersonInfo.PersonRelationshipList);

                        editRow["emer_last_name"]                = personRelationship.PersonInRelationshipWith.LastName;
                        editRow["emer_first_name"]               = personRelationship.PersonInRelationshipWith.FirstName;
                        editRow["emer_middle_name"]              = personRelationship.PersonInRelationshipWith.MiddleName;
                        editRow["emer_present_address"]          = personRelationship.PersonInRelationshipWith.PresentAddress;
                        editRow["emer_present_phone_nos"]        = personRelationship.PersonInRelationshipWith.PresentPhoneNos;
                        editRow["emer_relationship_description"] = personRelationship.RelationshipTypeInfo.RelationshipDescription;

                        editRow["is_student"] = false;

                        editRow.EndEdit();

                        break;
                    }

                    index++;
                }

                _studentEmployeeTable.AcceptChanges();
            }
        }//-----------------
Пример #29
0
        }//-----------------

        //this procedure will Update Student Information
        public void UpdateForIdMakerStudentInformation(CommonExchange.SysAccess userInfo, CommonExchange.Student studentInfo)
        {
            using (RemoteClient.RemCntIdMakerManager remClient = new RemoteClient.RemCntIdMakerManager())
            {
                remClient.UpdateForIdMakerStudentInformation(userInfo, studentInfo);
            }

            EditStudentEmployeeDataTable(studentInfo, null, this.IsStudent(studentInfo.StudentId));
        }//--------------------------
Пример #30
0
        }//------------------------------

        //this procedure shows the view update student Information
        private void ShowUpdateStudentInformationDialog(String id, Boolean isAdvance)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                if (isAdvance)
                {
                    using (StudentGuidanceUpdate frmUpdate = new StudentGuidanceUpdate(_userInfo,
                                                                                       _studentManager.GetDetailsStudentInformation(_userInfo, id, Application.StartupPath), _studentManager))
                    {
                        _frmStudentSearch.WindowState = FormWindowState.Minimized;

                        frmUpdate.ShowDialog(this);

                        if (frmUpdate.HasUpDated)
                        {
                            this.ShowSearchResultDialog();
                        }

                        _frmStudentSearch.WindowState = FormWindowState.Normal;

                        this.ctlManager.SetFocusOnSearchTextBox();
                    }
                }
                else
                {
                    DataTable tempTable = new DataTable("");

                    CommonExchange.Student studentInfoTemp = new CommonExchange.Student();
                    Boolean hasUpdated = false;

                    using (StudentCashierUpdate frmUpdate = new StudentCashierUpdate(_userInfo,
                                                                                     _studentManager.GetDetailsStudentInformation(_userInfo, id, Application.StartupPath), _studentManager, false, false, ref tempTable))
                    {
                        _frmStudentSearch.WindowState = FormWindowState.Minimized;

                        frmUpdate.ShowDialog(this);

                        if (frmUpdate.HasUpDated)
                        {
                            this.ShowSearchResultDialog();
                        }
                        else if (frmUpdate.IsForStudentUpdate)
                        {
                            this.ShowUpdateStudentInformationDialog(frmUpdate.StudentInfo);
                        }

                        studentInfoTemp = frmUpdate.StudentInfo;
                        hasUpdated      = frmUpdate.HasUpDated;

                        _frmStudentSearch.WindowState = FormWindowState.Normal;

                        this.ctlManager.SetFocusOnSearchTextBox();
                    }

                    if (hasUpdated &&
                        (RemoteServerLib.ProcStatic.IsSystemAccessCashier(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessVpOfFinance(_userInfo)))
                    {
                        this.ConfirmRedirect(studentInfoTemp);
                    }
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading Update Student Information Module");
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        }//----------------------