}//------------------------------

        //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;
            }
        }//----------------------
        }//----------------------

        //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;
            }
        }//----------------------
        }//------------------------------

        //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;
            }
        }//----------------------
        }//---------------------------------

        //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,
                                                                                       _cashieringManager.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 = _cashieringManager.StudentTable;

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

                        frmUpdate.ShowDialog(this);

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

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


                        _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;
            }
        }//----------------------