Beispiel #1
0
        /// <summary>
        /// Binds the grid unbilled transactions.
        /// </summary>
        /// <param name="accountNumber">The account number.</param>
        /// <remarks></remarks>
        public void BindGridLoanTransactions(string accountNumber)
        {
            lblMessage.Text = "";
            int pRecordCount = 0;
            int SkipCount    = (this.Pager1.CurrentIndex - 1) * this.Pager1.PageSize;

            List <CH_LOAN_TransactionsDTO> lst = new List <CH_LOAN_TransactionsDTO>();
            TransactionManager             tm  = new TransactionManager();
            CHRequestDetailManager         cdm = new CHRequestDetailManager();

            lst = tm.GetTransactionsForLoan(SkipCount, this.Pager1.PageSize, ref pRecordCount, accountNumber);

            if (lst != null)
            {
                if (lst.Count() > 0)
                {
                    lblSuccessMsg.Visible  = true;
                    lblSuccessMsg.Text     = Constants.LoanSuccess + lst[0].PreApproved_Limit.ToString() + " )";
                    lblSuccessMsg.CssClass = "msgsuccess";
                    btnSubmit.Visible      = true;
                    btndisabled.Visible    = false;
                    btnReset.Visible       = true;
                    gridheader.Visible     = true;
                    RecordCount            = pRecordCount;
                    Pager1.Visible         = RecordCount > this.Pager1.PageSize;
                    gvLoantxn.DataSource   = lst;

                    lstEMIDTO = cdm.GetEMILoanRequests(accountNumber.Encrypt(), "L");
                    gvLoantxn.DataBind();
                }
                else
                {
                    Reset();
                }
            }
            else
            {
                Reset();
            }
        }
Beispiel #2
0
        /// <summary>
        /// Binds the grid unbilled transactions.
        /// </summary>
        /// <param name="accountNumber">The account number.</param>
        /// <remarks></remarks>
        public void BindGridUnbilledTransactions(string accountNumber)
        {
            lblMessage.Text = "";
            int pRecordCount    = 0;
            int SkipCount       = (this.Pager1.CurrentIndex - 1) * this.Pager1.PageSize;
            int TransactionType = 1;

            TransactionManager     tm  = new TransactionManager();
            CHRequestDetailManager cdm = new CHRequestDetailManager();

            lst = tm.GetUnbilledTransactionsForEMI(SkipCount, this.Pager1.PageSize, ref pRecordCount, accountNumber, TransactionType);

            if (lst != null)
            {
                if (lst.Count() > 0)
                {
                    btnSubmit.Visible               = true;
                    btndisabled.Visible             = false;
                    btnReset.Visible                = true;
                    gridheader.Visible              = true;
                    RecordCount                     = pRecordCount;
                    Pager1.Visible                  = RecordCount > this.Pager1.PageSize;
                    lstViewCardStatement.DataSource = lst;

                    lstEMIDTO = cdm.GetEMILoanRequests(accountNumber.Encrypt(), "E");
                    lstViewCardStatement.DataBind();
                }
                else
                {
                    Reset();
                }
            }
            else
            {
                Reset();
            }
        }