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

<%@ Register TagPrefix="ucHeader" TagName="truxHeader" Src="header.ascx" %>
<%@ Register TagPrefix="ucFooter" TagName="truxFooter" Src="footer.ascx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="HeadServices" runat="server">

    <title>My Work Orders</title>
    <link rel="stylesheet" type="text/css" href="_style/stylesheet.css" title="TRUX7" />
    <script src="Services.js" type="text/javascript"></script>
</head>
<body>
    <ucHeader:truxHeader ID="Hdr1" runat="server"></ucHeader:truxHeader>
    <div id="main_area">
        <div id="work_area">
            <form id="form1" runat="server" autocomplete="off">
                <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

                <h1>My Work Orders</h1>

                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <p class="description" style="margin-bottom: 20px">
                            <span id="Span19">
                                <asp:Label ID="lblDesc" runat="server"></asp:Label><a href="_help/my_workorders.aspx" target="_blank"><img style="margin-left: 5px; vertical-align: middle; width: 18px;" src="_images/help.png" /></a>
                            </span>
                        </p>
                        <div class="toolbar_icons">
                            <a href="#" onclick=" ShowAllPanel() ">
                                <img src="_images/expand_all_icon.png" alt="Expand All" /></a> <a href="#" onclick=" HideAllPanel() ">
                                    <img src="_images/collapse_all_icon.png" alt="Collapse All" /></a>
                        </div>
                        <asp:CheckBox ID="chkShowClosed" runat="server" AutoPostBack="true" />
                        <p style="display: inline">Show Closed Locations</p>

                        <asp:CheckBox ID="chkFinishedWorkOrders" runat="server" AutoPostBack="true" />
                        <p style="display: inline">Show Finished Work Orders</p>
                        <asp:Label ID="lblInvoicePeriod" runat="server" Text="(* Months)"></asp:Label>
                        <asp:GridView ID="gvSiteList" runat="server" AllowPaging="True"
                            AutoGenerateColumns="False" GridLines="None"
                            DataKeyNames="CM04_SITE" Width="100%" ShowHeader="false" OnDataBound="gvSiteList_DataBound" OnPageIndexChanging="gvSiteList_PageIndexChanging">
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <Columns>
                                <asp:BoundField DataField="SiteInfo" ReadOnly="True"
                                    ItemStyle-ForeColor="Black">
                                    <ItemStyle ForeColor="Black"></ItemStyle>
                                </asp:BoundField>
                            </Columns>
                            <RowStyle CssClass="mGrid_titlebar" />
                        </asp:GridView>
                    </ContentTemplate>
                </asp:UpdatePanel>


            </form>
        </div>
    </div>

    <ucFooter:truxFooter ID="Ftr1" runat="server"></ucFooter:truxFooter>
</body>
</html>
