コード例 #1
0
        // Method to Bind Payment Amount
        private void BindPaymentAmount(int courseId)
        {
            _objConsulling = new Consulling();
            var objSecurePage = new SecurePage();


            try
            {
                if (objSecurePage.IsLoggedInUSer)
                {
                    var data = _objConsulling.GetPaymentTransactionStatus(objSecurePage.LoggedInUserId);
                    if (data != null && data.Count > 0)
                    {
                        var data1 = data.FirstOrDefault();
                        if (data1 != null)
                        {
                            lblCheque.Text = data1.PaymentAmount;
                            lblDemand.Text = data1.PaymentAmount;
                            lblCash.Text   = data1.PaymentAmount;
                        }
                    }
                    else
                    {
                        lblCheque.Text = _objConsulling.GetPayemntAmountAccordingToCourse(courseId);
                        lblDemand.Text = lblCheque.Text;
                        lblCash.Text   = lblCheque.Text;
                    }
                }
                else
                {
                    lblCheque.Text = _objConsulling.GetPayemntAmountAccordingToCourse(courseId);
                    lblDemand.Text = lblCheque.Text;
                    lblCash.Text   = lblCheque.Text;
                }
            }
            catch (Exception ex)
            {
                var err = ex.Message;
                if (ex.InnerException != null)
                {
                    err = err + " :: Inner Exception :- " + ex.ToString();
                }
                const string addInfo = "Error while executing BindPaymentAmount in UcStudentPaymentOption.axcs  :: -> ";
                var          objPub  = new ClsExceptionPublisher();
                objPub.Publish(err, addInfo);
            }
        }
コード例 #2
0
ファイル: PaymentOptions.aspx.cs プロジェクト: IryTech/170518
        // Method to Bind Payment Amount
        private void BindPaymentAmount(int courseId)
        {
            _objConsulling = new Consulling();


            try
            {
                lblCheque.Text = _objConsulling.GetPayemntAmountAccordingToCourse(courseId);
                lblDemand.Text = lblCheque.Text;
                lblCash.Text   = lblCheque.Text;
            }
            catch (Exception ex)
            {
                var err = ex.Message;
                if (ex.InnerException != null)
                {
                    err = err + " :: Inner Exception :- " + ex.ToString();
                }
                const string addInfo = "Error while executing BindPaymentAmount in PaymentOption.aspx  :: -> ";
                var          objPub  = new ClsExceptionPublisher();
                objPub.Publish(err, addInfo);
            }
        }