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

        //this procedure shows the patient charges summary dialog
        private void ShowPatientChargesSummary()
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                if (!String.IsNullOrEmpty(_primaryId))
                {
                    using (PatientChargesSummary frmSummary = new PatientChargesSummary(_userInfo, _patientInfo,
                                                                                        _regManager.GetPatientRegistrationDetails(_primaryId)))
                    {
                        frmSummary.ShowDialog(this);

                        if (frmSummary.HasUpdated || frmSummary.HasDeleted)
                        {
                            this.SetDataGridViewSource(true);
                        }
                    }
                }

                this.Cursor = Cursors.Arrow;
            }
            catch (Exception ex)
            {
                DentalLib.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading Patient Charges Summary Module");
            }
        } //-----------------------
Exemple #2
0
        } //----------------------------------

        //##########################################END BUTTON btnPrint EVENTS###############################################################
        #endregion

        #region Programmer-Defined Void Procedures

        //this procedure selects the first row in the datagridview
        protected override void OnDoubleClickEnter(String id)
        {
            this.Cursor = Cursors.WaitCursor;

            CommonExchange.Registration regInfo     = _regManager.GetRegistrationDetailsForCashReport(id);
            CommonExchange.Patient      patientInfo = _regManager.SelectByPatientSystemIdPatientInformation(_userInfo,
                                                                                                            _regManager.GetPatientSystemIdForCashReport(id), Application.StartupPath);

            using (DentalLib.PatientChargesSummary frmSummary = new PatientChargesSummary(_userInfo, patientInfo, regInfo))
            {
                frmSummary.ShowDialog(this);

                if (frmSummary.HasUpdated || frmSummary.HasDeleted)
                {
                    this.SetReportData();
                }
            }

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