<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Receipt.aspx.cs" Inherits="TruxWebPortal.OnlineBin.Receipt" %>

<%@ Register TagPrefix="ucHeader" TagName="truxHeader" Src="../header.ascx" %>
<%@ Register TagPrefix="ucHeader2" TagName="truxHeader2" Src="../header2.ascx" %>
<%@ PreviousPageType TypeName="TruxWebPortal.TruxBasePage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Payment Receipt</title>
    <link rel="stylesheet" type="text/css" href="../_style/stylesheet.css" title="TRUX7" />

    <script src="../styleswitch.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server" autocomplete="off">
    <% 
    if (!string.IsNullOrWhiteSpace(sCompanyCode))
    {
    %>
        <ucHeader:truxHeader ID="Hdr1" runat="server" />
    <%
    }
    else
    { 
    %>
        <ucHeader2:truxHeader2 ID="Hdr2" runat="server" />
    <%
    }
    %>
        <div id="main_area">
            <div id="work_area">
                <h1>Payment Received</h1>
                <p class="intro_text">A copy of this page has been emailed to your registered email address.</p>
                <div id="payment_results">

                    <div id="company_logo">
                        <img src="../_images/company_logoOnReceipt.png" /></div>

                    <div id="company_address">
                        <p>
                            <asp:Label ID="lblcmpAddr" CssClass="data" runat="server" />
                            <br />
                            <span class="label">Phone:</span>
                            <asp:Label ID="lblPhone" CssClass="data" runat="server" />
                            <span class="label">Fax:</span>
                            <asp:Label ID="lblFax" CssClass="data" runat="server" />
                            <br />
                            <span class="label">Email:</span>
                            <asp:HyperLink ID="lblEmail" CssClass="data" runat="server" />
                            <span class="label">Web:</span>
                            <asp:HyperLink ID="lblWeb" CssClass="data" runat="server" />
                        </p>
                    </div>

                    <div id="center_title">
                        <p>PAYMENT RECEIPT</p>
                    </div>

                    <div id="payment_details">
                        <p><span class="label">Payment Date:</span><asp:Label ID="lblPaymentDate" CssClass="data" runat="server" />
                        </p>

                        <p>
                            <span class="label">Account No.:</span>
                            <asp:Label ID="lblAccount" CssClass="data" runat="server" />
                            <span class="label">Phone:</span>
                            <asp:Label ID="lblAccountPhone" CssClass="data" runat="server" />
                        </p>

                        <p><span class="label">Total Amount Charged:</span><asp:Label ID="lblTotalCharge" CssClass="data" runat="server" /></p>
                        <p><span class="label">Payment Method:</span>
                            <asp:Label ID="lblPaymentMethod" CssClass="data" runat="server" /></p>
                        <p><span class="label">Authorization Code:</span>
                            <asp:Label ID="lblAuthorizationCode" CssClass="data" runat="server" /></p>
                    </div>


                    <div class="mGrid_titlebar">
                        <p></p>
                    </div>

                    <div style="margin: 5px">
                        <table class="tableForm">
                            <asp:Repeater ID="workOrderRepeater" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <label>Work Order:</label></td>
                                        <td><%# Eval("WorkOrderNumber").ToString() %></td>
                                    </tr>
                                    <tr>
                                        <td><span class="label">Address:</span></td>
                                        <td><%# Eval("SiteAddress").ToString() %></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td><span class="label"><%# Eval("Size").ToString() + " " + Eval("UOM").ToString() + " Bin:" %></span></td>
                                        <td>1</td>
                                    </tr>
                                    <tr>
                                        <td><span class="label">Material:</span></td>
                                        <td><%# Eval("Material").ToString() %></td>
                                    </tr>
                                    <tr>
                                        <td><span class="label">Activity:</span></td>
                                        <td><%# Eval("Activity").ToString() %></td>
                                    </tr>
                                    <tr>
                                        <td><span class="label">Job Date:</span></td>
                                        <td><%# ((DateTime)Eval("JobDate")).ToShortDateString() %></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </div>


                </div>
                <!-- close Payment Results -->

                <p id="bottom_links"><a href="javascript:window.print();">Print This Page</a></p>

            </div>
        </div>
        <div style="clear: both;"></div>
    </form>

</body>
</html>
