Exemplo n.º 1
0
    /// <summary>
    /// Confirms the transaction in the database and displays the transaction info
    /// </summary>
    /// Creator: Olivia Johnson 11-28-12
    private void donateConfirmation()
    {
        BusinessTier bt = new BusinessTier();
        DataSet ds = new DataSet();
        Decimal donationAmount = 0;

        try
        {
            ds = bt.confirmDonation(customerInfo);
            donationAmount = decimal.Parse(ds.Tables[1].Rows[0][10].ToString());
            lblticketType1.Text = " Donation";
            lblprice1.Text = donationAmount.ToString("C");
            lbltotalCost.Text = donationAmount.ToString("C");

            donationAmount = Convert.ToDecimal(ds.Tables[1].Rows[0][9].ToString());

            sendConfirmationEmail("Donation", ds.Tables[1].Rows[0][0].ToString(), ds.Tables[1].Rows[0][5].ToString());
        }
        catch (Exception ex)
        {
            ErrorLog.logError(ex);
            Response.Redirect("Oops.aspx");
        }
    }