<%@ Page Language="C#" MaintainScrollPositionOnPostback="true" MasterPageFile="~/SiteMaster.Master"
    Theme="Main_Theme" AutoEventWireup="false" CodeBehind="ImpactLikelihoodsPage.aspx.cs"
    Inherits="MKInsight.Online.RRAM2.ImpactLikelihoodsPage" %>

<%@ Register Src="../UIControls/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="../UIControls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc2" %>
<%@ Register Src="../UIControls/PopupsHandler.ascx" TagName="PopupsHandler" TagPrefix="uc4" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../UIControls/PopupPanel.ascx" TagName="PopupPanel" TagPrefix="uc5" %>
<%@ Register Assembly="UIWebControls" Namespace="UIWebControls" TagPrefix="cc4" %>
<%@ Register Src="~/UIControls/Interface/TextBoxEx.ascx" TagPrefix="uc1" TagName="TextBoxEx" %>
<%@ Register Src="~/UIControls/Interface/MultilineTextBoxEx.ascx" TagPrefix="uc1" TagName="MultilineTextBoxEx" %>
<%@ Register Src="~/UIControls/Interface/DropDownListEX.ascx" TagPrefix="uc1" TagName="DropDownListEX" %>
<%@ Register Src="../UIControls/Interface/TextBoxDecimalEx.ascx" TagName="TextBoxDecimalEx" TagPrefix="uc3" %>
<%@ Register Src="../UIControls/Interface/CheckBoxEX.ascx" TagName="CheckBoxEX" TagPrefix="uc6" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="c_M" runat="server">
    <uc1:Header ID="usc_Header" runat="server" />

    <uc2:MessageBox ID="usc_M" runat="server" />

    <asp:MultiView ID="mv" runat="server">
        <asp:View ID="vMain" runat="server">
            <table id="tb_RiskUniverse" runat="server" style="width: 100%">
                <tr>
                    <td colspan="2">
                        <asp:Panel ID="tbM" runat="server" CssClass="w-bar">

                            <asp:LinkButton runat="server" ID="tbl_New" CssClass="w-button" Style="background: url(../images/add32.png); ">
                                <asp:Label ID="tbl_NewLabel" runat="server"></asp:Label>
                            </asp:LinkButton>

                            <asp:LinkButton runat="server" ID="tbl_ImpactGroups" CssClass="w-button" Style="background: url(../images/status32.png); " PostBackUrl="~/ConfigurationPages/ImpactCategoryGroupsPage.aspx">
                                <asp:Label ID="tbl_ImpactGroupsLabel" runat="server"></asp:Label>
                            </asp:LinkButton>

                            <asp:LinkButton runat="server" ID="tbl_VelocityFactors" CssClass="w-button" Style="background: url(../images/velocityfactors32.png); " PostBackUrl="~/ConfigurationPages/VelocityFactorsPage.aspx">
                                <asp:Label ID="tbl_VelocityFactorsLabel" runat="server"></asp:Label>
                            </asp:LinkButton>

                        </asp:Panel>
                    </td>
                </tr>
                <tr>
                    <td class="left" style="width: 290px; vertical-align: top;">
                        <asp:Panel ID="pt" runat="server" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
                            Height="450px" ScrollBars="Both" Width="300px">
                            <cc4:MKGridView ID="dg_CS" runat="server" AllowPaging="True" AllowSorting="True"
                                AutoGenerateColumns="False" BorderStyle="None" CellPadding="3" DataKeyNames="ID"
                                OnRowDataBound="OnRowDataBound" Width="95%">
                                <AlternatingRowStyle CssClass="alternatingrowstyle" />
                                <FooterStyle BackColor="White" ForeColor="#000066" />
                                <HeaderStyle CssClass="headerstyle" Font-Bold="True" HorizontalAlign="Left" Wrap="False" />
                                <PagerStyle HorizontalAlign="Left" />
                                <Columns>
                                    <asp:CommandField HeaderText="Select" ShowSelectButton="True" />
                                    <asp:BoundField DataField="ID" HeaderText="ID" />
                                    <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                                    <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
                                    <asp:CheckBoxField DataField="Archived" HeaderText="Archived" SortExpression="Archived" />
                                </Columns>
                                <PagerTemplate>
                                    <asp:Label ID="lbl_ShowRows" runat="server" Text="Show rows:" /><asp:DropDownList
                                        ID="ddlPageSize" runat="server" AutoPostBack="true" OnSelectedIndexChanged="OnSelectedIndexChanged">
                                        <asp:ListItem Value="5" />
                                        <asp:ListItem Value="10" />
                                        <asp:ListItem Value="15" />
                                        <asp:ListItem Value="20" />
                                    </asp:DropDownList>
                                    &nbsp;&nbsp;<asp:Label ID="lbl_page" runat="server" Text="Page" /><asp:TextBox ID="txtGoToPage"
                                        runat="server" AutoPostBack="true" CssClass="gotopage" OnTextChanged="GoToPageOnTextChanged" /><asp:Label
                                            ID="lbl_Of" runat="server" Text="of" /><asp:Label ID="lblTotalNumberOfPages" runat="server" />&nbsp;&nbsp;<asp:Button
                                                ID="btn_p" runat="server" CommandArgument="Prev" CommandName="Page" CssClass="previous"
                                                SkinID="_" ToolTip="Previous Page" /><asp:Button ID="btn_n" runat="server" CommandArgument="Next"
                                                    CommandName="Page" CssClass="next" SkinID="_" ToolTip="Next Page" />
                                </PagerTemplate>
                                <SelectedRowStyle BackColor="#D6E8FF" />
                            </cc4:MKGridView>
                        </asp:Panel>
                    </td>
                    <td class="left" style="vertical-align: top;">
                        <asp:Panel ID="pv" runat="server" Visible="False">
                            <table>

                                <tr>
                                    <td colspan="2">
                                        <uc1:TextBoxEx runat="server" ID="u_Name" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <uc1:MultilineTextBoxEx runat="server" ID="u_Desc" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <uc1:MultilineTextBoxEx runat="server" ID="u_SG" />
                                    </td>
                                </tr>
                                
                                <tr>
                                    <td colspan="2">

                                        <uc3:TextBoxDecimalEx ID="u_Weight" runat="server" />

                                    </td>
                                </tr>


                                <tr>

                                    <td colspan="2">
                                        <asp:Panel ID="p_flags" runat="server" CssClass="editor">
                                            <div>
                                            <asp:Button ID="btn_Flags" runat="server" Text="View / Edit Linked Flags" />
                                                </div>
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <uc1:DropDownListEX runat="server" ID="u_Group" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">

                                        <uc6:CheckBoxEX ID="u_Archived" runat="server" />

                                    </td>
                                </tr>

                                <tr>
                                    <td class=" " colspan="2" style="vertical-align: top;">
                                        <hr class="ee" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="left" colspan="2" style="vertical-align: top;">
                                        <asp:Button ID="btn_Add" runat="server" Text="Add" Font-Bold="true" />
                                        <asp:Button ID="btn_Update" runat="server" Text="Update" Font-Bold="true" />
                                        <asp:Button ID="btn_Cancel" runat="server" Text="Cancel" />
                                        <span class="tab"></span>
                                        <asp:Button ID="btn_Delete" runat="server" Text="Delete" ForeColor="Red" />
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>
            </table>
            <asp:Button ID="btn_pHandler" runat="server" Text="Button" Style="display: none;" />
            <asp:Panel ID="p" runat="server" CssClass="frame" Style="display: none;">
                <div class="overlay">
                    <div style="float: right; margin-top: -28px; margin-right: -10px;">
                        <asp:ImageButton ID="ImageButton1" ImageUrl="~/images/jq/close.png" runat="server" />
                    </div>
                    <div class="floatright">
                        <asp:Button ID="btn_TopOK" runat="server" OnClick="OnOK" />
                    </div>
                    <uc5:PopupPanel ID="usc_PP" runat="server" />
                    <div class="divpok">
                        <asp:Button ID="btn_POK" runat="server" />
                    </div>
                </div>
            </asp:Panel>
            <cc1:ModalPopupExtender ID="mdp" runat="server" TargetControlID="btn_pHandler" PopupControlID="P"
                BackgroundCssClass="modalBackground">
            </cc1:ModalPopupExtender>
            <cc1:DragPanelExtender ID="dpE" runat="server" DragHandleID="pnlHeader" TargetControlID="p" />
        </asp:View>
        <asp:View ID="vFlags" runat="server">
            <table id="Table1" runat="server" width="100%">
                <tr>
                    <td class="left" colspan="2" style="border-top-width: 1px; border-top-color: black;  height: 42px; background-color: whitesmoke; vertical-align: top;">

                        <asp:Panel ID="pnl_Menu" runat="server" CssClass="w-bar">
                            <asp:LinkButton runat="server" ID="tbl_Back" CssClass="w-button" Style="background: url(../images/back32.png); ">
                                <asp:Label ID="tbl_BackLabel" runat="server"></asp:Label>

                            </asp:LinkButton>

                            <asp:LinkButton runat="server" ID="tbl_NewFlag" CssClass="w-button" Style="background: url(../images/add32.png); ">
                                <asp:Label ID="tbl_NewFlagLabel" runat="server"></asp:Label>
                            </asp:LinkButton>
                        </asp:Panel>

                    </td>
                </tr>
                <tr>
                    <td class="left" style="width: 272px; vertical-align: top;">
                        <asp:Panel ID="pnl_Flags" runat="server" BorderColor="Silver" BorderStyle="Solid"
                            BorderWidth="1px" Height="450px" ScrollBars="Both" Width="300px">
                            <cc4:MKGridView ID="grd_Flags" runat="server" AutoGenerateColumns="False" BorderStyle="None"
                                CellPadding="3" DataKeyNames="ID" OnRowDataBound="OnRowDataBound"
                                Width="95%">
                                <AlternatingRowStyle CssClass="alternatingrowstyle" />
                                <FooterStyle BackColor="White" ForeColor="#000066" />
                                <HeaderStyle CssClass="headerstyle" Font-Bold="True" HorizontalAlign="Left" Wrap="False" />
                                <PagerStyle HorizontalAlign="Left" />
                                <Columns>
                                    <asp:CommandField HeaderText="Select" ShowSelectButton="True" />
                                    <asp:BoundField DataField="ID" HeaderText="ID" />
                                    <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                                    
                                </Columns>
                                <PagerTemplate>
                                    <asp:Label ID="lbl_ShowRows" runat="server" Text="Show rows:" /><asp:DropDownList
                                        ID="ddlPageSize" runat="server" AutoPostBack="true" OnSelectedIndexChanged="OnSelectedIndexChanged">
                                        <asp:ListItem Value="5" />
                                        <asp:ListItem Value="10" />
                                        <asp:ListItem Value="15" />
                                        <asp:ListItem Value="20" />
                                    </asp:DropDownList>
                                    &nbsp;&nbsp;<asp:Label ID="lbl_page" runat="server" Text="Page" /><asp:TextBox ID="txtGoToPage"
                                        runat="server" AutoPostBack="true" CssClass="gotopage" OnTextChanged="GoToPageOnTextChanged" /><asp:Label
                                            ID="lbl_Of" runat="server" Text="of" /><asp:Label ID="lblTotalNumberOfPages" runat="server" />&nbsp;&nbsp;<asp:Button
                                                ID="btn_p" runat="server" CommandArgument="Prev" CommandName="Page" CssClass="previous"
                                                SkinID="_" ToolTip="Previous Page" /><asp:Button ID="btn_n" runat="server" CommandArgument="Next"
                                                    CommandName="Page" CssClass="next" SkinID="_" ToolTip="Next Page" />
                                </PagerTemplate>
                                <SelectedRowStyle BackColor="#D6E8FF" />
                            </cc4:MKGridView>
                        </asp:Panel>
                    </td>
                    <td class="left" style="vertical-align: top;">
                        <asp:Panel ID="pnl_EFlags" runat="server" Visible="False">
                            <table>
                                <tr>
                                    <td class="left" colspan="2" style="height: 20px; vertical-align: top;"></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Literal ID="lit_FName" runat="server"></asp:Literal>
                                        <asp:Label ID="Label1" runat="server" CssClass="mandatory">*</asp:Label>
                                    </td>
                                    <td class="amend_field">
                                        <asp:TextBox ID="txt_FName" runat="server" CssClass="amend" MaxLength="256" Width="300px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <hr class="ee" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:Label ID="lbl_AR" runat="server" Font-Bold="True" Text="Assessment Rows"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <hr class="ee" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:Panel ID="pnl_AssessmentRows" runat="server">
                                            <cc4:MKGridView ID="grd_AR" runat="server" AutoGenerateColumns="False" BorderStyle="None"
                                                CellPadding="3" DataKeyNames="ID" OnRowDataBound="OnRowDataBound"
                                                Width="95%" AutoGenerateCheckBoxColumn="True">
                                                <AlternatingRowStyle CssClass="alternatingrowstyle" />
                                                <FooterStyle BackColor="White" ForeColor="#000066" />
                                                <HeaderStyle CssClass="headerstyle" Font-Bold="True" HorizontalAlign="Left" Wrap="False" />
                                                <PagerStyle HorizontalAlign="Left" />
                                                <Columns>
                                                    <asp:BoundField DataField="ID" HeaderText="ID" />
                                                    <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                                                </Columns>
                                                <PagerTemplate>
                                                    <asp:Label ID="lbl_ShowRows0" runat="server" Text="Show rows:" /><asp:DropDownList
                                                        ID="ddlPageSize0" runat="server" AutoPostBack="true" OnSelectedIndexChanged="OnSelectedIndexChanged">
                                                        <asp:ListItem Value="5" />
                                                        <asp:ListItem Value="10" />
                                                        <asp:ListItem Value="15" />
                                                        <asp:ListItem Value="20" />
                                                    </asp:DropDownList>
                                                    &nbsp;&nbsp;<asp:Label ID="lbl_page0" runat="server" Text="Page" /><asp:TextBox ID="txtGoToPage0"
                                                        runat="server" AutoPostBack="true" CssClass="gotopage" OnTextChanged="GoToPageOnTextChanged" /><asp:Label
                                                            ID="lbl_Of0" runat="server" Text="of" /><asp:Label ID="lblTotalNumberOfPages0" runat="server" />&nbsp;&nbsp;<asp:Button
                                                                ID="btn_p0" runat="server" CommandArgument="Prev" CommandName="Page" CssClass="previous"
                                                                SkinID="_" ToolTip="Previous Page" /><asp:Button ID="btn_n0" runat="server" CommandArgument="Next"
                                                                    CommandName="Page" CssClass="next" SkinID="_" ToolTip="Next Page" />
                                                </PagerTemplate>
                                                <SelectedRowStyle BackColor="#D6E8FF" />
                                            </cc4:MKGridView>
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td class=" " colspan="2" style="vertical-align: top;">
                                        <hr class="ee" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="left" colspan="2" style="vertical-align: top;">
                                        <asp:Button ID="btn_FAdd" runat="server" Text="Add" Font-Bold="true" />
                                        <asp:Button ID="btn_FUpdate" runat="server" Text="Update" Font-Bold="true" />
                                        <asp:Button ID="btn_FCancel" runat="server" Text="Cancel" />
                                        <span class="tab"></span>
                                        <asp:Button ID="btn_FDelete" runat="server" Text="Delete" ForeColor="Red" />

                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>
