コード例 #1
0
        } //-------------------------------

        //############################################END LINKBUTTON lnkChange EVENTS##############################################################

        //############################################BUTTON btnSearch EVENTS#####################################################################
        //event is raised when the button is clicked
        private void btnSearchClick(object sender, EventArgs e)
        {
            try
            {
                using (DentalLib.ProcedureSearchOnTextboxList frmProcedure = new DentalLib.ProcedureSearchOnTextboxList(_userInfo, false))
                {
                    frmProcedure.ShowDialog(this);

                    if (frmProcedure.HasSelected)
                    {
                        CommonExchange.Procedure procInfo = frmProcedure.ProcedureInformation;

                        _detailsInfo.ProcedureSystemId = procInfo.ProcedureSystemId;
                        _detailsInfo.ProcedureName     = procInfo.ProcedureName;

                        this.lblProcedureId.Text   = _detailsInfo.ProcedureSystemId;
                        this.lblProcedureName.Text = _detailsInfo.ProcedureName;

                        Decimal amount = 0;

                        if (Decimal.TryParse(procInfo.Amount.ToString(), out amount))
                        {
                            _detailsInfo.Amount = procInfo.Amount;

                            this.txtAmount.Text = _detailsInfo.Amount.ToString("N");
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                DentalLib.ProcStatic.ShowErrorDialog(ex.Message, "Procedure List Error");
            }
        } //----------------------------------------
コード例 #2
0
        } //--------------------------------

        //event is raised when the procedures button is clicked
        private void ctlMainClickProcedures()
        {
            try
            {
                using (DentalLib.ProcedureSearchOnTextboxList frmProcedure = new DentalLib.ProcedureSearchOnTextboxList(_userInfo, true))
                {
                    frmProcedure.ShowDialog(this);
                }
            }
            catch (Exception ex)
            {
                DentalLib.ProcStatic.ShowErrorDialog(ex.Message, "Procedure Maintenance Error");
            }
        } //--------------------------------