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

        //####################################END BUTTON btnClose EVENTS####################################

        //####################################BUTTON btnSearchAdditionalFee EVENTS####################################
        //event is raised when the the control is clicked
        private void btnSearchAdditionalFeeClick(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            try
            {
                using (AdditionalFeeSearchOnTextBoxList frmSearch = new AdditionalFeeSearchOnTextBoxList(_cashieringManager))
                {
                    frmSearch.AdoptGridSize = false;
                    frmSearch.ShowDialog(this);

                    if (frmSearch.HasSelected)
                    {
                        CommonExchange.StudentAdditionalFee studentAdditionalFeeTemp = _cashieringManager.GetDetailsAdditionalFee(frmSearch.PrimaryId);

                        _studentAdditionalFeeInfo.SchoolFeeParticularInfo.FeeParticularSysId =
                            studentAdditionalFeeTemp.SchoolFeeParticularInfo.FeeParticularSysId;
                        _studentAdditionalFeeInfo.SchoolFeeParticularInfo.ParticularDescription =
                            studentAdditionalFeeTemp.SchoolFeeParticularInfo.ParticularDescription;

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

                        this.txtAdditionalPaymentAmount.Focus();
                        this.txtAdditionalPaymentAmount.Select();
                    }
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading");
            }

            this.Cursor = Cursors.Arrow;
        }//-----------------------------
示例#2
0
        }//-----------------------

        //##################################END PICTUREBOX pbxChecked EVENTS######################################################

        //##################################BUTTON btnAdditionalFee EVENTS######################################################
        //event is raised when the picture box is clicked
        private void btnSearchAdditionalFeeClick(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            try
            {
                using (AdditionalFeeSearchOnTextBoxList frmSearch = new AdditionalFeeSearchOnTextBoxList(_cashieringManager))
                {
                    frmSearch.AdoptGridSize = false;
                    frmSearch.ShowDialog(this);

                    if (frmSearch.HasSelected)
                    {
                        _additionalFeeInfo = _cashieringManager.GetDetailsAdditionalFee(frmSearch.PrimaryId);

                        this.lblParticularDescription.Text = _additionalFeeInfo.SchoolFeeParticularInfo.ParticularDescription;

                        this.txtAmount.Focus();
                        this.txtAmount.Select();

                        this.ctlPayment.Enabled = this.pbxChecked.Enabled = this.btnRecord.Enabled = true;
                    }
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading");
            }

            this.Cursor = Cursors.Arrow;
        }//---------------------