<%@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" CodeFile="Tools.aspx.cs" inherits="Maintenance_TEC_Tools" title="<%$ Resources: SiteMapLocalizations, Maintenance_ToolEdit %>" theme="white" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<%--    <script type="text/javascript" language="javascript">       
        location.replace('http://172.16.25.138/ses-t/')">
    </script>
--%>
<center>
<p class="masterpageContentTop" >
    <table style="height: 50px;" class="SelectCondition" id="TABLE1">
        <tr>
            <td>
                <asp:Label ID="Label6" runat="server" Text="<%$Resources:Universal, Comm_FABID %>"></asp:Label>
                :
            </td>
            <td>
                <asp:TextBox ID="txtSelConditionFABID" runat="Server" Width="90px"></asp:TextBox></td>
            <td>
                <asp:Label ID="Label5" runat="server" Text="<%$Resources:Universal, SES_ToolNo %>"></asp:Label>
                :
            </td>
            <td>
                <asp:TextBox ID="txtSelConditionToolNo" runat="Server" Width="90px"></asp:TextBox></td>
            <td>
                <asp:Label ID="Label1" runat="server" Text="<%$Resources:Universal, Comm_StartDate %>"></asp:Label>
                :
            </td>
            <td style="width: 120px;">
                <asp:TextBox ID="txtSelConditionStartDate" runat="Server" Width="90px"></asp:TextBox>
<%--                <asp:HyperLink ImageUrl="~\imanges\more.gif" ID="HyperLink1" Target="_blank" runat="Server"></asp:HyperLink>
--%>            </td>
            <td>
                <asp:Label ID="Label2" runat="server" Text="<%$Resources:Universal, Comm_EndDate %>"></asp:Label>
                :
            </td>
            <td style="width: 120px;">
                <asp:TextBox ID="txtSelConditionEndDate" runat="Server" Width="90px"></asp:TextBox>
<%--                <asp:HyperLink ID="HyperLink2" runat="server" ImageUrl="~\imanges\more.gif" Target="_blank"></asp:HyperLink>
--%>            </td>
        </tr>
        <tr>
            <td align="right" colspan="8" class="bottomRow">
                <asp:Button ID="btnSearch" runat="server" Width="60px" Text="<%$ resources:Universal,Data_Search %>" OnClick="btnSearch_Click" />                
            </td>
        </tr>
    </table>
    
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" PageSize="40"
        AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" DataKeyNames="SES_ToolNo" DataSourceID="ObjectDataSource1" OnRowDataBound="GridView1_RowDataBound" OnDataBound="GridView1_DataBound">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" BorderStyle="Dashed" />
        <Columns>
            <asp:BoundField DataField="SES_ToolNo" HeaderText="<%$ resources:Universal,SES_ToolNo %>" ReadOnly="True" SortExpression="SES_ToolNo" />
            <asp:BoundField DataField="Customer_ToolNo" HeaderText="<%$ resources:Universal,Customer_ToolNo %>" SortExpression="Customer_ToolNo" />
            <asp:BoundField DataField="FABID" HeaderText="<%$ resources:Universal,Comm_FABID %>" SortExpression="FABID" />
            <asp:BoundField DataField="ToolType" HeaderText="<%$ resources:Universal,Tools_ToolType %>" />
            <asp:BoundField DataField="ReleasedDate" HeaderText="<%$ resources:Universal,Tools_ReleasedDate %>" />
            <asp:BoundField DataField="MovingDate" HeaderText="<%$ resources:Universal,Tools_MovingDate %>" />
            <asp:BoundField DataField="InstalledDate" HeaderText="<%$ resources:Universal,Tools_InstalledDate %>" />
            <asp:BoundField DataField="Guarantee" HeaderText="<%$ resources:Universal,Tools_Guarantee %>" />
            <asp:HyperLinkField DataNavigateUrlFields="SES_ToolNo"  DataNavigateUrlFormatString="ToolsDetail.aspx?SES_ToolNo={0}"
                HeaderText="<%$ resources:Universal,Data_Detail %>" Text="<%$ resources:Universal,Data_Detail %>" />
<%--            <asp:TemplateField>
                <ItemTemplate>
                    <asp:Button OnClientClick='<%# "javascript:location.replace(ToolDetail.aspx?SES_ToolNo=" + Eval("SES_ToolNo") + ")" %>' Text="test" runat="Server" />
                </ItemTemplate>
            </asp:TemplateField>
--%>        </Columns>
       <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <EditRowStyle BackColor="#999999" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
<%--    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=ROY-EC;Initial Catalog=SEST;User ID=sa;Password=!love123"
        ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [HR_Employees]">
    </asp:SqlDataSource>
--%>    
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" TypeName="TEC_ToolsData" SelectMethod="Select">
    </asp:ObjectDataSource>
</p>
</center>
</asp:Content>

