Ejemplo n.º 1
0
        }//--------------------------------

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