Esempio n. 1
0
        //#########################################CLASS PatientChargesSummary EVENTS######################################################
        //event is raised when the class is loaded
        private 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.",
                                                     "Patient Charges Summary");

                _hasErrors = true;

                this.Close();
            }

            _chargesManager = new ChargesLogic(_userInfo);

            this.lblSysId.Text = _patientInfo.PatientSystemId;
            this.lblName.Text  = _patientInfo.LastName.ToUpper() + ", " + _patientInfo.FirstName + " " + _patientInfo.MiddleName;

            if (!String.IsNullOrEmpty(_patientInfo.ImagePath))
            {
                this.pbxPatient.Image = Image.FromFile(_patientInfo.ImagePath);
            }

            this.lblRegistrationId.Text   = _regInfo.RegistrationSystemId;
            this.lblRegistrationDate.Text = DateTime.Parse(_regInfo.RegistrationDate).ToLongDateString();

            this.SetProceduresTakenDataGridViewSource(true);
            this.SetPaymentsMadeDataGridViewSource(true);

            DentalLib.ProcStatic.SetDataGridViewColumns(this.dgvProcedures, false);
            DentalLib.ProcStatic.SetDataGridViewColumns(this.dgvPayments, false);

            this.SetPaymentSummary();
        } //---------------------------------
Esempio n. 2
0
        public PaymentDetails(CommonExchange.SysAccess userInfo, CommonExchange.Patient patientInfo, CommonExchange.Registration regInfo,
                              ChargesLogic chargesManager)
        {
            this.InitializeComponent();

            _userInfo       = userInfo;
            _patientInfo    = patientInfo;
            _regInfo        = regInfo;
            _chargesManager = chargesManager;

            _errProvider = new ErrorProvider();

            this.Load += new EventHandler(ClassLoad);
            this.cboPaymentType.SelectedIndexChanged += new EventHandler(cboPaymentTypeSelectedIndexChanged);
            this.txtAmountPaid.KeyPress    += new KeyPressEventHandler(txtAmountPaidKeyPress);
            this.txtAmountPaid.Validating  += new System.ComponentModel.CancelEventHandler(txtAmountPaidValidating);
            this.txtAmountPaid.Validated   += new EventHandler(txtAmountPaidValidated);
            this.txtAmountPaid.KeyUp       += new KeyEventHandler(txtAmountPaidKeyUp);
            this.txtDiscount.KeyPress      += new KeyPressEventHandler(txtDiscountKeyPress);
            this.txtDiscount.Validating    += new System.ComponentModel.CancelEventHandler(txtDiscountValidating);
            this.txtDiscount.Validated     += new EventHandler(txtDiscountValidated);
            this.txtDiscount.KeyUp         += new KeyEventHandler(txtDiscountKeyUp);
            this.lnkChange.LinkClicked     += new LinkLabelLinkClickedEventHandler(lnkChangeLinkClicked);
            this.txtBankName.Validated     += new EventHandler(txtBankNameValidated);
            this.txtCheckNo.Validated      += new EventHandler(txtCheckNoValidated);
            this.txtCardNo.Validated       += new EventHandler(txtCardNoValidated);
            this.txtCardType.Validated     += new EventHandler(txtCardTypeValidated);
            this.txtExpiringDate.Validated += new EventHandler(txtExpiringDateValidated);
        }
Esempio n. 3
0
        public PaymentDetailsCreate(CommonExchange.SysAccess userInfo, CommonExchange.Patient patientInfo, CommonExchange.Registration regInfo,
                                    ChargesLogic chargesManager) : base(userInfo, patientInfo, regInfo, chargesManager)
        {
            this.InitializeComponent();

            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnCreate.Click += new EventHandler(btnCreateClick);
            this.btnCancel.Click += new EventHandler(btnCancelClick);
        }
        public PatientChargesUpdate(CommonExchange.SysAccess userInfo, CommonExchange.Patient patientInfo, CommonExchange.Registration regInfo,
                                    CommonExchange.RegistrationDetails detailsInfo, ChargesLogic chargesManager)
            : base(userInfo, patientInfo, regInfo, chargesManager)
        {
            this.InitializeComponent();

            _detailsInfo     = detailsInfo;
            _detailsInfoTemp = detailsInfo;

            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnUpdate.Click += new EventHandler(btnUpdateClick);
            this.btnDelete.Click += new EventHandler(btnDeleteClick);
            this.btnClose.Click  += new EventHandler(btnCloseClick);
        }
Esempio n. 5
0
        public PatientCharges(CommonExchange.SysAccess userInfo, CommonExchange.Patient patientInfo, CommonExchange.Registration regInfo,
                              ChargesLogic chargesManager)
        {
            this.InitializeComponent();

            _userInfo       = userInfo;
            _patientInfo    = patientInfo;
            _regInfo        = regInfo;
            _chargesManager = chargesManager;

            _errProvider = new ErrorProvider();

            this.Load += new EventHandler(ClassLoad);
            this.lnkChange.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkChangeLinkClicked);
            this.btnSearch.Click       += new EventHandler(btnSearchClick);
            this.txtAmount.KeyPress    += new KeyPressEventHandler(txtAmountKeyPress);
            this.txtAmount.Validating  += new System.ComponentModel.CancelEventHandler(txtAmountValidating);
            this.txtAmount.Validated   += new EventHandler(txtAmountValidated);
            this.txtRemarks.Validated  += new EventHandler(txtRemarksValidated);
            this.txtToothNo.Validated  += new EventHandler(txtToothNoValidated);
        }