Esempio n. 1
0
        //############################################CLASS PatientCharges EVENTS#######################################################
        //event is raised when the class is loaded
        protected virtual void ClassLoad(object sender, EventArgs e)
        {
            if (!DatabaseLib.ProcStatic.IsSystemAccessAdmin(_userInfo) && !DatabaseLib.ProcStatic.IsSystemAccessDentalUser(_userInfo))
            {
                DentalLib.ProcStatic.ShowErrorDialog("You are not allowed to access this module.",
                                                     "Payment Details");

                _hasErrors = true;

                this.Close();
            }
            else if (!DatabaseLib.ProcStatic.IsSystemAccessAdmin(_userInfo))
            {
                this.lnkChange.Visible = false;
            }

            _paymentInfo                      = new CommonExchange.PaymentDetails();
            _paymentInfo.DatePaid             = _chargesManager.ServerDateTime;
            _paymentInfo.RegistrationSystemId = _regInfo.RegistrationSystemId;

            this.lblDate.Text = DateTime.Parse(_paymentInfo.DatePaid).ToLongDateString();

            this.InitializePaymentTypeCombo();

            _summary = _chargesManager.GetPaymentSummary();

            this.lblBalancetoDate.Text   = _summary.Balance.ToString("N");
            this.lblShouldBeBalance.Text = _summary.Balance.ToString("N");
        } //------------------------------------------------------------
Esempio n. 2
0
        } //---------------------------------

        //##########################################END LINKBUTTON lnkPrescription EVENTS###################################################

        #endregion

        #region Programmer-Defined Void Procedures
        //this procedure sets the payment summary
        private void SetPaymentSummary()
        {
            _paymentSummary = _chargesManager.GetPaymentSummary();

            this.lblAmountPayable.Text = _paymentSummary.AmountPayable.ToString("N");
            this.lblAmountPaid.Text    = _paymentSummary.AmountPaid.ToString("N");
            this.lblDiscount.Text      = _paymentSummary.Discount.ToString("N");
            this.lblBalance.Text       = _paymentSummary.Balance.ToString("N");
        } //--------------------------