Exemplo n.º 1
0
    public void DenetimleriDoldur()
    {
        ProductRecomment.LoadCartRecomment();


        DataTable dt = CartAccess.GetItems();

        if (dt.Rows.Count == 0)
        {
            btnUpdate.Enabled       = false;
            btnCheckOut.Enabled     = false;
            lblNumberOfProduct.Text = "Sepetinizde Ürün Bulunmamaktadır";
            grid.Visible            = false;
            lblTotalAmount.Text     = String.Format("{0:c}", 0);
        }
        else
        {
            grid.Visible    = true;
            grid.DataSource = dt;
            grid.DataBind();

            //string numberOfProduct = "6";
            //lblNumberOfProduct.Text = "Toplam " + numberOfProduct + " ürün seçtiniz.";
            decimal amount = CartAccess.GetTotalAmount();
            lblTotalAmount.Text = String.Format("{0:c}", amount);
        }
    }
Exemplo n.º 2
0
    private void DenetimleriDoldur()
    {
        BankAccounts bnk = CatalogAccess.GetBankAccount();

        lblBankName.Text     = bnk.bankName;
        lblBankNumber.Text   = bnk.iban;
        lblAccountOwner.Text = bnk.owner;
        lblDecription.Text   = bnk.description;
        lblPaymentID.Text    = Request.QueryString["CartID"];
        lblCost.Text         = String.Format("{0:c}", CartAccess.GetTotalAmount());
    }
Exemplo n.º 3
0
    private void DenetimleriDoldur()
    {
        System.Data.DataTable dt = CartAccess.GetItems();

        if (dt.Rows.Count == 0)
        {
            lbltotalAmount.Text = String.Format("{0:c}", 0);
        }
        else
        {
            //  double amount2 = CartAccess.SepetToplam();
            decimal amount = CartAccess.GetTotalAmount();
            lbltotalAmount.Text = String.Format("{0:c}", amount);
        }
    }