<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="InspectionJobView.aspx.cs" Inherits="VMT.InspectionJobView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphJavaScriptContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitleContentPlaceHolder" runat="server">
    <div id="CssPageTitle">
        <h1>
            Inspection View
        </h1>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphMainContentPlaceHolder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
      <asp:UpdatePanel ID="UpdatePanel2" runat="server">
          <ContentTemplate>
               <div id="loaderdiv">
                    <asp:updateprogress id="UpdateProgress1" runat="server" associatedupdatepanelid="UpdatePanel2" dynamiclayout="true">
                        <progresstemplate>

                            <img src="resource_gallery/graphics/loader.gif" class="ajax-loader">

                        </progresstemplate>
                    </asp:updateprogress>
              </div>
              <div style="text-align:right;"><a href="default.aspx">Home</a> <strong>&#8249;&#8249;</strong> <a href="CurrentYTD.aspx">Current</a> <strong>&#8249;&#8249;</strong> Inspection Job View</div>
             <div >
             <fieldset class="masterform">
                <legend>Inspection Job Assigned View</legend> 
                <div style=" width:100%; height:300px; ">
                    <table style=" width:50%;">
                        <tr>
                            <td style="text-align:right"> <asp:Button ID="Button1" runat="server" Text="View"  CssClass="FormButton"  OnClick="Button1_Click" /></td>

                        </tr>
                    </table>
                   
                    <br />
                
             <div style=" width: 99%; overflow-x: scroll; position: relative;" > <br />
               <div style="width: 1590px; height: 240px; overflow-y: scroll;" > <br />
                <asp:GridView ID="gdvBidProcess" runat="server" HeaderStyle-CssClass="FixedHeader" BorderColor="#014567" CellPadding="3" 
                     AutoGenerateColumns="False"  emptydatatext="No data in the data source." 
                     OnSorting="gdvBidProcess_Sorting" AllowSorting="True">
                    <AlternatingRowStyle BackColor="#E9EFF2" />
                    <Columns>
                         <asp:TemplateField SortExpression="GROUND_FL" HeaderStyle-Width="121px" ItemStyle-Width="120px">
                            <HeaderTemplate >
                                <asp:LinkButton ID="LinkButton1"  runat="server" Text="GROUND_FL"  CommandName="Sort" CommandArgument="GROUND_FL" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate >
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("GROUND_FL") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="BUSINESS_UNIT" HeaderStyle-Width="131px" ItemStyle-Width="130px">
                            <HeaderTemplate >
                                <asp:LinkButton ID="LinkButton2"  runat="server" Text="BUSINESS_UNIT"  CommandName="Sort" CommandArgument="BUSINESS_UNIT" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate >
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("BUSINESS_UNIT") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="EVENT_CODE" HeaderStyle-Width="101px" ItemStyle-Width="100px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton3" runat="server" Text="EVENT_CODE"  CommandName="Sort" CommandArgument="EVENT_CODE" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("EVENT_CODE") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="OLD_SECTION_CODE"  HeaderStyle-Width="141px" ItemStyle-Width="140px">
                            <HeaderTemplate>                                      
                                <asp:LinkButton  ID="LinkButton4" runat="server" Text="OLD_SECTIONCODE"  CommandName="Sort" CommandArgument="OLD_SECTION_CODE" ForeColor="Black"/>                       
                            </HeaderTemplate >
                            <ItemTemplate>
                                 <asp:Label ID="Label11" runat="server" Text='<%# Bind("OLD_SECTION_CODE") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>

                        <asp:TemplateField  SortExpression="JOB_NAME" HeaderStyle-Width="181px" ItemStyle-Width="180px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton5" runat="server" Text="JOB_NAME"  CommandName="Sort" CommandArgument="JOB_NAME" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                 <asp:Label ID="Label12" runat="server" Text='<%# Bind("JOB_NAME") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>

                        <asp:TemplateField  SortExpression="EMPLOYEE_NAME" HeaderStyle-Width="151px" ItemStyle-Width="150px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton6" runat="server" Text="EMPLOYEE_NAME"  CommandName="Sort" CommandArgument="EMPLOYEE_NAME" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                 <asp:Label ID="Label12" runat="server" Text='<%# Bind("EMPLOYEE_NAME") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:TemplateField  SortExpression="WORK_STATUS_DESCRIPTION" HeaderStyle-Width="121px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton7" runat="server" Text="WORK_STATUS"  CommandName="Sort" CommandArgument="WORK_STATUS_DESCRIPTION" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                 <asp:Label ID="Label12" runat="server" Text='<%# Bind("WORK_STATUS_DESCRIPTION") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField  SortExpression="INSPECTION_DUE_DATE" HeaderStyle-Width="121px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton8" runat="server" Text="INSP_DUEDATE"  CommandName="Sort" CommandArgument="INSPECTION_DUE_DATE" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                 <asp:Label ID="Label12" runat="server" Text='<%# Bind("INSPECTION_DUE_DATE") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField  SortExpression="WORK_STATUS_DESCRIPTION" HeaderStyle-Width="121px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton9" runat="server" Text="WORK_STATUS"  CommandName="Sort" CommandArgument="WORK_STATUS_DESCRIPTION" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                 <asp:Label ID="Label12" runat="server" Text='<%# Bind("WORK_STATUS_DESCRIPTION") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField  SortExpression="CONTRACTOR_ID" HeaderStyle-Width="121px" ItemStyle-Width="120px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton10" runat="server" Text="CONTRACTOR_ID"  CommandName="Sort" CommandArgument="CONTRACTOR_ID" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                 <asp:Label ID="Label12" runat="server" Text='<%# Bind("CONTRACTOR_ID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField  SortExpression="EVENT_CODE_ID" HeaderStyle-Width="101px" ItemStyle-Width="100px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton11" runat="server" Text="EVENT_CODE_ID"  CommandName="Sort" CommandArgument="EVENT_CODE_ID" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                 <asp:Label ID="Label12" runat="server" Text='<%# Bind("EVENT_CODE_ID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField  SortExpression="WORK_AREA_ID" HeaderStyle-Width="151px" ItemStyle-Width="150px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton12" runat="server" Text="WORK_AREA_ID"  CommandName="Sort" CommandArgument="WORK_AREA_ID" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                 <asp:Label ID="Label12" runat="server" Text='<%# Bind("WORK_AREA_ID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="#98C8DE" Font-Bold="True" Width="1571px"/>
                    <SelectedRowStyle BackColor="#FFE98F" />
                </asp:GridView>
                    <td> </td> 
                </div>
                 </div>
               
            </div>
       </fieldset>
        </div>

                <div style="text-align:left; width: 100%;">
                        <fieldset class="masterform">
                            <legend>Export To Excel</legend>
                            <div style=" width: 100%; height:40px; overflow-y: scroll;">
                            <table>
                                <tr>
                                        <td>
                                            <asp:Button ID="btnExportExcel" runat="server" CssClass="FormButton" Visible="false" OnClick="btnExportExcel_Click" Text="Export To Excel" />
                                    </td> 
                                </tr>
                            </table>
                            </div>
                        </fieldset>
                </div>  
        </ContentTemplate>
     </asp:UpdatePanel>
</asp:Content>

