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

        //##################################END BUTTON btnRecord EVENTS######################################################
        #endregion

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

                String queryString = RemoteClient.ProcStatic.TrimStartEndString(ctlPayment.GetSearchString);

                if (!String.IsNullOrEmpty(queryString) && !String.IsNullOrEmpty(_dateStart) && !String.IsNullOrEmpty(_dateEnd))
                {
                    dgvList.DataSource = _cashieringManager.GetSearchedStudentInformation(_userInfo, queryString, _dateStart, _dateEnd,
                                                                                          _cashieringManager.GetCourseYearLevelStringFormat(ctlPayment.YearLevelCheckedListBox, false),
                                                                                          _cashieringManager.GetCourseYearLevelStringFormat(ctlPayment.CourseCheckedListBox, true), this.ctlPayment.IsForApply);

                    if (this.ctlPayment.IsForApply)
                    {
                        this.dgvList.Columns["checkbox_column"].ReadOnly = false;
                    }

                    this.dgvList.ReadOnly = this.ctlPayment.IsForApply ? false : true;
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Retrieving Data");
            }
            finally
            {
                this.ctlPayment.SetFocusOnSearchTextBox();

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