<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="WorkRecordDetail.aspx.cs" Inherits="TEC_Forms_WorkRecordDetail" Title="<%$ resources:SiteMapLocalizations, TEC_Forms_WorkRecordDetail %>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script language="javascript" type="text/javascript" src="/SEST/Script/OpenSubPage.js">
        // open sub page
    </script>
    
<center>
    <asp:RadioButton ID="rdoAddNew" Text="<%$ resources:Universal, WorkRecord_AddNewWorkID %>" GroupName="selectFunc" runat="server" OnCheckedChanged="rdoAddNew_CheckedChanged" />
    <asp:RadioButton ID="rdoSelectWorkID" Text="<%$ resources:Universal, WorkRecord_SelectExistWorkID %>" GroupName="selectFunc" runat="server" />
    <br />
    <table id="tblNewInfo" runat="server" cellpadding="0" cellspacing="0" style="background-color: #eeeeee; border: solid 3px #3399ff">
        <tr>
            <td style="color: Red" colspan="4" class="whiteEdgeLeftTop" >
                <asp:Label ID="lblTitle" Text="<%$ Resources: Universal, WorkRecord_Step2Title %>" runat="Server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 60px" class="whiteEdgeLeftTop">
                <asp:Label ID="lblDescript" Text="<%$ Resources: Universal, Comm_Description %>" runat="Server"></asp:Label>
            </td>
            <td align="left" colspan="3" class="whiteEdgeLeftTop">
                <asp:TextBox ID="txtDescription" TextMode="MultiLine" Rows="4" runat="Server" Width="600px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 60px" class="whiteEdgeLeftTop">
                <asp:Label ID="lblCause" Text="<%$ Resources: Universal, WorksList_RootCause %>" runat="Server"></asp:Label>
            </td>
            <td align="left" colspan="3" class="whiteEdgeLeftTop">
                <asp:TextBox ID="txtRootCause" TextMode="MultiLine" Rows="4" runat="Server" Width="600px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 60px" rowspan="2" class="whiteEdgeLeftTop">
                <asp:Label ID="lblResposibility" Text="<%$ Resources: Universal, WorksList_Responsibility %>" runat="Server"></asp:Label>
            </td>
            <td align="left" rowspan="2" class="whiteEdgeLeftTop">
                <asp:TextBox ID="txtResponsibility" TextMode="MultiLine" Rows="4" runat="Server"></asp:TextBox>
                <asp:HyperLink ImageUrl="~\imanges\more.gif" ID="hlResponsibility" Target="_blank" runat="Server"></asp:HyperLink>
            </td>
            <td style="width: 60px" class="whiteEdgeLeftTop" >
                <asp:Label ID="Label1" Text="<%$ Resources: Universal, Comm_StartDate %>" runat="Server"></asp:Label>
            </td>
            <td align="left" class="whiteEdgeLeftTop">
                <asp:TextBox ID="txtExpectStartDate" runat="Server" Width="80px"></asp:TextBox>
                <asp:Label Text=" (2001/01/01)" ForeColor="red" runat="Server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 60px" class="whiteEdgeLeftTop">
                <asp:Label ID="Label2" Text="<%$ Resources: Universal, Comm_EndDate %>" runat="Server"></asp:Label>
            </td>
            <td align="left" class="whiteEdgeLeftTop">
                <asp:TextBox ID="txtExpectEndDate" runat="Server" Width="80px"></asp:TextBox>
                <asp:Label Text=" (2001/01/01)" ForeColor="red" runat="Server"></asp:Label>
            </td>
        </tr>
    </table>
    
    
    <asp:GridView ID="GridView1" DataSourceID="ObjectDataSource1" runat="server" CellPadding="4" AutoGenerateColumns="false"
    ForeColor="#333333" GridLines="None" OnDataBound="GridView1_DataBound" OnRowDataBound="GridView1_RowDataBound">
        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" />

        <Columns>
            <asp:CommandField ShowSelectButton="True" HeaderText="<%$ resources:Universal, Comm_Select %>" SelectText="<%$ resources:Universal, Comm_Select %>" />
            
            <asp:BoundField DataField="WorkID" HeaderText="<%$ resources:Universal, WorksList_WorkID %>" />
            <asp:BoundField DataField="CreateDate" HeaderText="<%$ resources:Universal, Comm_CreateDate %>" />
            <asp:BoundField DataField="JobNo" HeaderText="<%$ resources:Universal, JobNo_ID %>" />
            <asp:BoundField DataField="FABID" HeaderText="<%$ resources:Universal, Comm_FABID %>" />
            <asp:BoundField DataField="SES_ToolNo" HeaderText="<%$ resources:Universal, SES_ToolNo %>" />
            <asp:BoundField DataField="Description" HeaderText="<%$ resources:Universal, Comm_Description %>" />

        </Columns>
    </asp:GridView>
    <asp:Label ID="lblSelectWorkIDPrompt" ForeColor="red" Text="<%$ resources:Universal, WorkRecord_SelectWorkID %>" runat="Server"></asp:Label>
    <asp:Button ID="btnNext" runat="server" Text="<%$ resources:Universal, Comm_NextStep %>" OnClick="btnNext_Click" />

    
    
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" TypeName="TEC_MainWorksData" SelectMethod="SelectFromWorkRecord" >
        <SelectParameters>
            <asp:QueryStringParameter Name="JobNo" QueryStringField="JobNo" DefaultValue="" Type="String" />
            <asp:QueryStringParameter Name="FABID" QueryStringField="FABID" DefaultValue="" Type="String" />
            <asp:QueryStringParameter Name="ToolID" QueryStringField="ToolID" DefaultValue="" Type="String" />
            
<%--            <asp:Parameter Name="Condition" DefaultValue="1=0" Type="String" />
            <asp:Parameter Name="OrderBy" DefaultValue="WorkID" Type="String" />
--%>        </SelectParameters>
    </asp:ObjectDataSource>    
</center>
</asp:Content>

