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

        //############################################END CONTROLCLASSROOMSUBJECTMANAGER ctlManager EVENTS##########################################

        //##########################################CLASS StudentSearchList EVENTS#######################################################
        //event is raised when the datagrid is double clicked or enter
        private void _frmStudentSearchOnDoubleClickEnter(string id)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                _cashieringManager.SetServerDateTime(_userInfo);

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

                using (StudentTab frmShow = new StudentTab(_userInfo, _cashieringManager.GetDetailsStudentInformation(_userInfo, id,
                                                                                                                      Application.StartupPath), _cashieringManager, CashieringLogic.ReceiptDate))
                {
                    _frmStudentSearch.WindowState = FormWindowState.Minimized;

                    frmShow.ShowDialog(this);

                    _frmStudentSearch.WindowState = FormWindowState.Normal;

                    this.ctlManager.SetFocusOnSearchTextBox();
                    this.ctlManager.ReceiptNo = CashieringLogic.ReceiptNumber;
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message + "\n\nError Loading Student Tab Mudule.", "Error Loading");
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        }//------------------------
        }//--------------------------

        //##########################################END CLASS StudentSearchList EVENTS#######################################################
        #endregion

        #region Programers-Defined Procedures
        //this procedure shows the search result
        private void ShowSearchResultDialog()
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                String queryString = RemoteClient.ProcStatic.TrimStartEndString(this.ctlManager.GetSearchString);

                if (!String.IsNullOrEmpty(queryString))
                {
                    if (_cashieringManager.GetSearchedStudentDetails(_userInfo, queryString) == 1)
                    {
                        try
                        {
                            this.Cursor = Cursors.WaitCursor;

                            using (StudentTab frmShow = new StudentTab(_userInfo, _cashieringManager.GetDetailsStudentInformation(_userInfo,
                                                                                                                                  _cashieringManager.GetStudentIdForSingleInstance(), Application.StartupPath), _cashieringManager, CashieringLogic.ReceiptDate))
                            {
                                frmShow.ShowDialog(this);

                                this.ctlManager.SetFocusOnSearchTextBox();
                                this.ctlManager.ReceiptNo = CashieringLogic.ReceiptNumber;
                            }
                        }
                        catch (Exception ex)
                        {
                            RemoteClient.ProcStatic.ShowErrorDialog("\n\nError Loading Student Tab Mudule. \n\n" + ex.Message, "Error Loading");
                        }
                        finally
                        {
                            this.Cursor = Cursors.Arrow;
                        }
                    }
                    //else
                    //{
                    _frmStudentSearch.DataSource = _cashieringManager.PopulateStudentSearchedList();
                    //}
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Retrieving Data");
            }
            finally
            {
                this.ctlManager.SetFocusOnSearchTextBox();

                this.Cursor = Cursors.Arrow;
            }
        }//---------------------------------
Example #3
0
        public TestRunnerClass()
        {
            //Step-2 Initialize the Run-Time vars from the Config File
            RunTimeVars.ReadAppConfig();


            //Step-3 Create a reference to the UIMap(s)/Page Object(s)

            //**************************
            // Test Context Section
            //************************
            testContext                = new ProgramTestContext();
            providerApplicationData    = new ProviderApplicationData();
            scholarshipApplicationData = new ScholarshipApplicationData();

            //************************
            // Page Objects Section
            //************************
            adminPrograms             = new AdminPrograms();
            advancedStudentSearchPage = new AdvancedStudentSearchPage();
            applicationTab            = new ApplicationTab();
            commentsHistory           = new CommentsHistoryTab();
            creditHoursTab            = new CreditHoursTab();
            docsTab                   = new DocsTab();
            general                   = new GeneralTab();
            headerPage                = new HeaderPage();
            iepTab                    = new IEPTab();
            loginPage                 = new LoginPage();
            menu                      = new Menu();
            newProviderApplication    = new NewProviderApplication();
            newScholarshipApplication = new NewScholarshipApplication();
            parentGuardianTab         = new ParentGuardianTab();
            parentStudentTab          = new ParentStudentTab();
            personnel                 = new PersonnelTab();
            programSelectionPage      = new ProgramSelectionPage();
            providerSearchPage        = new ProviderSearchPage();
            renewProviderApplication  = new RenewProviderApplication();
            safePage                  = new SafePage();
            servicesTab               = new ServicesTab();
            staffTab                  = new StaffTab();
            statusFlagsTab            = new StatusFlagsTab();
            student                   = new Student();
            studentFinanceSearchPage  = new StudentFinanceSearchPage();
            studentSearchPage         = new StudentSearchPage();
            studentTab                = new StudentTab();
            testPage1                 = new TestPage1();
            testPage2                 = new TestPage2();
            verifyPageTabs            = new VerifyPageTabs();
        } //end Constructor
        }//----------------------

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