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

<%@ 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">
    <script src="../../../script/eSetFormControls.js" type="text/javascript"></script>
    <uc:ScriptingHelper ID="ScriptingHelper1" runat="server" />
    <div class="mastersearch">
        <table cellspacing="0" cellpadding="0" width="100%">
            <tr>
                <td align="left">
                    <h1>
                        <asp:Label ID="lblProgramFlow" Font-Bold="False" runat="server" 
                            Text="Program Flow for Program:"></asp:Label>
                        <asp:Label ID="lblProgramName" runat="server" Font-Bold="false"></asp:Label>
                    </h1>
                </td>
            </tr>
        </table>
    </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>
    <asp:Panel ID="pnlFlowDetails" runat="server">
        <div class="greyblock">
            <table width="100%">
                <tr align="left">
                    <td style="height: 29px; text-align: center">
                        <asp:Label ID="lblMsg" runat="server" ForeColor="#B90000"></asp:Label>
                    </td>
                </tr>
                <tr align="left">
                    <td style="height: 29px; text-align: center">
                        <asp:Label ID="lblPFlowDetails" runat="server" Font-Size="Medium">Flow Details</asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <table style="width: 36%">
                            <tr>
                                <td align="right" style="width: 160px">
                                    <asp:Label ID="literalName" runat="server" Font-Bold="True" Text="Flow Name:"></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtFlowName" runat="server" Visible="False"></asp:TextBox>
                                    <asp:Label ID="lblFlowNameView" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="literalDescription" runat="server" Font-Bold="True" Text="Description:"></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtFlowDesc" runat="server" Visible="False"></asp:TextBox>
                                    <asp:Label ID="lblDescriptionEdit" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="lblComponent" runat="server" Font-Bold="True" Text="Component:"></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:Label ID="lblComponentText" runat="server" Visible="False"></asp:Label>
                                    <asp:DropDownList ID="ddlComponents" runat="server">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="literalActive" runat="server" Font-Bold="True" Text="Active:"></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:CheckBox ID="chkActive" runat="server" Enabled="False" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:Button ID="btnCancel" runat="server" ForeColor="Black" OnClick="btnCancel_Click"
                            Text="Cancel" Width="147px" Visible="False" />
                        <asp:Button ID="btnSaveFlow" runat="server" ForeColor="Black" OnClick="btnSaveFlow_Click"
                            Text="Save" Width="147px" Visible="False" />
                        <asp:Button ID="btnEditFlow" runat="server" ForeColor="Black" OnClick="btnEditFlow_Click"
                            Text="Edit" Width="147px" />
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>
    <asp:Panel ID="pnlQuestions" runat="server">
     <div class="mastersearch">
        <table cellspacing="0" cellpadding="0" width="100%">
            <tr>
                <td align="left">
                    <h1>
                        <asp:Label ID="Label1" Font-Bold="False" runat="server" 
                            Text="Flow Questions"></asp:Label>
                        <asp:Label ID="Label2" runat="server" Font-Bold="false"></asp:Label>
                    </h1>
                </td>
            </tr>
        </table>
    </div>
        <div >
            <table width="100%">              
                <tr>
                    <td>
                        &nbsp;
                    </td>
                     <td>
                    </td>
                      <td>
                        &nbsp;
                    </td>
                      <td>
                        &nbsp;
                    </td>
                    <td align="right">
                        <asp:Button ID="btnAddNewQuestion" runat="server" Height="27px" Text="Add New Question"
                            Width="163px" OnClick="btnAddNewQuestion_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <table width="100%">
            <tr>
                <td colspan="2">
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td align="center">
                    <asp:GridView ID="grdProgramQuestions" runat="server" 
                        AutoGenerateColumns="False" DataKeyNames="FlowQuestionId" 
                        OnRowDataBound="grdProgramQuestions_RowDataBound" 
                        OnSelectedIndexChanged="grdProgramQuestions_SelectedIndexChanged">
                        <Columns>
                            <asp:TemplateField ItemStyle-Height="25px" ItemStyle-Width="12%">
                                <HeaderTemplate>
                                    <asp:Literal ID="m_litQuestionTextColumnHeader" runat="server" Text="Question"></asp:Literal>
                                    <br />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:HyperLink ID="m_hlkQuestion" runat="server"></asp:HyperLink>
                                </ItemTemplate>
                                <ItemStyle Height="25px" Width="12%" />
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Height="25px" ItemStyle-Width="12%">
                                <HeaderTemplate>
                                    <asp:Literal ID="m_litDisplayTypeColumnHeader" runat="server" 
                                        Text="Display Type"></asp:Literal>
                                    <br />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="m_lblDisplayType" runat="server"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Height="25px" Width="12%" />
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Height="25px" ItemStyle-Width="12%">
                                <HeaderTemplate>
                                    <asp:Literal ID="m_litDisplayOrderColumnHeader" runat="server" 
                                        Text="Display Order"></asp:Literal>
                                    <br />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <table width="100%">
                                        <tr>
                                            <td align="center">
                                                <asp:Label ID="m_lblDisplayOrder" runat="server" />
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                                <ItemStyle Height="25px" Width="12%" />
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle HorizontalAlign="Left" VerticalAlign="Top" />
                        <EditRowStyle HorizontalAlign="Left" VerticalAlign="Top" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
