示例#1
0
        /// <summary>
        ///  Get PAP Valuation Summery Negotiated Amount
        /// </summary>
        /// <param name="TotalValuation"></param>
        /// <param name="NegotiatedAmount"></param>
        private void GetPAPValuationSummery_NegotiatedAmount(decimal TotalValuation, decimal NegotiatedAmount)
        {
            PaymentBLL oPaymentBLL = new PaymentBLL();
            PaymentBO  oPaymentBO  = new PaymentBO();

            oPaymentBO = oPaymentBLL.getPapValuation(SessionHHID);

            if (oPaymentBO != null && oPaymentBO.NegotiatedAmountApproved.ToUpper() == "Y")
            {
                trNegotiatedAmount.Visible = true;
                hdnNegotiatedAmount.Value  = "1";
                trNegotiatedAmount.BgColor = "#E4e4e4";
                txtTotalAmount.Text        = UtilBO.CurrencyFormat(NegotiatedAmount);
            }
            else
            {
                trNegotiatedAmount.Visible = false;
                hdnNegotiatedAmount.Value  = "0";
                //trNegotiatedAmount.Visible = true;
                trNegotiatedAmount.BgColor = "#F0F8FF";
                txtTotalAmount.Text        = UtilBO.CurrencyFormat(TotalValuation);
            }
        }