<%@ Page Title="" Language="C#" MasterPageFile="~/masterpages/eDashboard.master"
    AutoEventWireup="true" CodeBehind="AnswerDetails.aspx.cs" Inherits="WebSite.site.Administrative.OnlineClaimsConfig.AnswerDetails" %>

<%@ Register Src="~/Controls/ScriptingHelper.ascx" TagName="ScriptingHelper" TagPrefix="uc" %>
<%@ Register Src="~/Controls/DefaultHeader.ascx" TagName="DefaultHeader" TagPrefix="uc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="server">
    <uc:ScriptingHelper ID="ScriptingHelper1" runat="server" />
    <script src="../../../script/eSetFormControls.js" type="text/javascript"></script>
    <div class="mastersearch">
        <table cellspacing="0" cellpadding="0" width="100%">
            <tr>
                <td align="left">
                    <h1>
                        <asp:Label ID="lblAnswersDetails" Font-Bold="false" runat="server" Text="Answer Details :"></asp:Label>
                        <asp:Label ID="lblAnswers" runat="server" Font-Bold="false"></asp:Label>
                    </h1>
                </td>
            </tr>
        </table>
    </div>
    <div> <div>
        <table cellspacing="0" cellpadding="0" width="100%">
            <tr>
                <td align="right">
                    <asp:LinkButton ID="lnkReturn" runat="server" onclick="lnkReturn_Click">Return</asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>
        <table>
            <tr>
                <td>
                    <asp:Panel ID="Panel1" runat="server" Visible="true">
                        <table>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <table>
                                        <tr>
                                            <td align="right">
                                                &nbsp;
                                            </td>
                                            <td align="right">
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="lblComponentId" runat="server" Text="Question:"></asp:Label>
                                            </td>
                                            <td align="right">
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="lblQuestion" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr id="trAnswerText" runat="server">
                                            <td align="right" valign="middle">
                                                <asp:Label ID="lblComponentName" runat="server" Text="Answer Text:"></asp:Label>
                                            </td>
                                            <td align="right">
                                                &nbsp;
                                            </td>
                                            <td align="left" valign="middle">
                                                <asp:DropDownList ID="ddlResources" runat="server" Width="354px">
                                                </asp:DropDownList>
                                                <asp:Button ID="btnAddNewText" runat="server" Text="Add New Text" OnClick="btnAddNewText_Click" />
                                            </td>
                                        </tr>
                                        <tr id="trNewText" runat="server" visible="false">
                                            <td align="right">
                                                &nbsp;
                                            </td>
                                            <td align="right">
                                                &nbsp;
                                            </td>
                                            <td align="left">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <asp:TextBox ID="txtnewQuestiom" runat="server" Width="315px"></asp:TextBox>
                                                        </td>
                                                        <td>
                                                            <asp:Button ID="btnSaveText0" runat="server" Text="Save Text" />
                                                            <asp:Button ID="btnCancelNewText" runat="server" OnClick="btnCancelNewText_Click"
                                                                Text="Cancel" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="lblComponentDescription" runat="server" Text="Display Order:"></asp:Label>
                                            </td>
                                            <td align="right">
                                                &nbsp;
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtDisplayOrderEdit" runat="server"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="lblActionCode" runat="server" Text="Action Type:"></asp:Label>
                                            </td>
                                            <td align="right">
                                                &nbsp;
                                            </td>
                                            <td align="left">
                                                <asp:DropDownList ID="ddlActionTypeEdit" runat="server" Height="16px" Width="169px">
                                                    <asp:ListItem Value="1">None</asp:ListItem>
                                                    <asp:ListItem Value="2">SetDamaged</asp:ListItem>
                                                    <asp:ListItem Value="3">SetLost</asp:ListItem>
                                                    <asp:ListItem Value="4">SetStolen</asp:ListItem>
                                                    <asp:ListItem Value="5">Reject</asp:ListItem>
                                                    <asp:ListItem Value="6">CallCS</asp:ListItem>
                                                    <asp:ListItem Value="7">Begin</asp:ListItem>
                                                    <asp:ListItem Value="8">Cancel</asp:ListItem>
                                                    <asp:ListItem Value="9">Decision</asp:ListItem>                                                    
                                                    <asp:ListItem Value="10">Capture Description</asp:ListItem>
                                                    <asp:ListItem Value="11">Capture Loss Date</asp:ListItem>
                                                    <asp:ListItem Value="12">SetMalfunction</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr style="visibility:hidden">
                                            <td align="right">
                                                <asp:Label ID="lblIsRequired" runat="server" Text="Is Required:"></asp:Label>
                                            </td>
                                            <td align="right">
                                                &nbsp;
                                            </td>
                                            <td align="left">
                                                <asp:CheckBox ID="chkIsRequiredEdit" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="lblLinkedTo" runat="server">Linked To:</asp:Label>
                                            </td>
                                            <td align="right">
                                                &nbsp;
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="lblQuestionLinkedTo" runat="server"></asp:Label>
                                                <asp:Label ID="lblSelectedQuestion" runat="server"></asp:Label>
                                                <asp:Label ID="lblFlowLinkedTo" runat="server"></asp:Label>
                                                <asp:Label ID="lblSelectedFlow" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="lblLinkedToQuestions" runat="server" Visible="False">Available Questions:</asp:Label>
                                                <asp:Label ID="lblLinkedToFlows" runat="server">Available Flows:</asp:Label>
                                            </td>
                                            <td align="right">
                                                &nbsp;</td>
                                            <td align="left">
                                                <asp:DropDownList ID="ddlAvailableFlows" runat="server" Visible="False">
                                                </asp:DropDownList>
                                                <asp:DropDownList ID="ddlAvailableQuestions" runat="server" Visible="False">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                &nbsp;
                                            </td>
                                            <td align="right">
                                                &nbsp;
                                            </td>
                                            <td align="left">
                                                <asp:Button ID="btnLinkToFlow" runat="server" Height="26px" 
                                                    OnClick="btnLinkToFlow_Click" Text="Link To Flow" Width="129px" />
                                                <asp:Button ID="btnLinkToQuestion" runat="server" Height="27px" 
                                                    OnClick="btnLinkToQuestion_Click" Text="Link To Question" Width="163px" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                &nbsp;</td>
                                            <td align="right">
                                                &nbsp;</td>
                                            <td align="left">
                                                &nbsp;</td>
                                        </tr>
                                        <tr id="trSave" runat="server">
                                            <td>
                                            </td>
                                            <td>
                                            </td>
                                            <td align="left">
                                                <asp:Button ID="btnCanvcel" runat="server" ForeColor="Black" Text="Cancel" Width="147px"
                                                    OnClick="btnCanvcel_Click" />
                                                <asp:Button ID="btnSaveAnswer" runat="server" ForeColor="Black" Text="Save" Width="147px"
                                                    OnClick="btnSaveAnswer_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td class="style13">
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
