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

<%@ Register Src="../UIControls/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="../UIControls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc2" %>
<%@ Register Assembly="UIWebControls" Namespace="UIWebControls" TagPrefix="cc4" %>
<%@ Register Assembly="UIWebControls" Namespace="UIWebControls" TagPrefix="cc4" %>

<%@ Register Src="../UIControls/Interface/TextBoxEx.ascx" TagName="TextBoxEx" TagPrefix="uc3" %>

<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 class="left" colspan="3" style="border-top-width: 1px; border-top-color: black; height: 42px; background-color: whitesmoke; vertical-align: top;">

                        <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: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" />
                                </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>
                                    &#160;&#160;<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" colspan="2" style="vertical-align: top;">
                        <asp:Panel ID="pv" runat="server" Visible="False">
                            <table>
                                <tr>
                                    <td class="left" colspan="2" style="height: 20px; vertical-align: top;"></td>
                                </tr>
                                <tr>
                                    <td colspan="2">

                                        <uc3:TextBoxEx ID="u_Name" runat="server" />

                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lbl_TotalImpactLabel" runat="server" Text="Total Impact:"></asp:Label>
                                    </td>
                                    <td class="amend_field">
                                        <asp:DropDownList ID="drp_TotalImpact" runat="server">
                                            <asp:ListItem Value="True">&gt;=</asp:ListItem>
                                            <asp:ListItem Value="False">&lt;=</asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:TextBox ID="txt_totalImpactValue" runat="server" Width="45px"></asp:TextBox>
                                        <asp:RangeValidator ID="rv_TotalImpact" runat="server"
                                            ControlToValidate="txt_totalImpactValue" ErrorMessage="RangeValidator"
                                            MaximumValue="100" MinimumValue="0" Type="Integer"></asp:RangeValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lbl_LikelihoodLabel" runat="server" Text="Likelihood:"></asp:Label>
                                    </td>
                                    <td class="amend_field">
                                        <asp:DropDownList ID="drp_Likelihood" runat="server">
                                            <asp:ListItem Value="True">&gt;=</asp:ListItem>
                                            <asp:ListItem Value="False">&lt;=</asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:TextBox ID="txt_LikelihoodValue" runat="server" Width="45px"></asp:TextBox>
                                        <asp:RangeValidator ID="rv_Likelihood" runat="server"
                                            ControlToValidate="txt_LikelihoodValue" ErrorMessage="RangeValidator"
                                            MaximumValue="100" MinimumValue="0" Type="Integer"></asp:RangeValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <hr class="ee" runat="server" id="hr_ta" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lbl_TotalAssessmentLabel" runat="server" Text="TotalAssessment"></asp:Label>
                                    </td>
                                    <td class="amend_field">
                                        <asp:DropDownList ID="drp_TotalAssessment" runat="server">
                                            <asp:ListItem Value="True">&gt;=</asp:ListItem>
                                            <asp:ListItem Value="False">&lt;=</asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:TextBox ID="txt_TotalAssessmentValue" runat="server" Width="45px"></asp:TextBox>
                                        <asp:RangeValidator ID="rv_TotalAssessment" runat="server"
                                            ControlToValidate="txt_TotalAssessmentValue" ErrorMessage="RangeValidator"
                                            MaximumValue="100" MinimumValue="0" Type="Integer"></asp:RangeValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:CheckBox ID="mki_UseTotalAssessmentFlag" runat="server" />
                                        &nbsp;<asp:Label ID="lbl_TotalAssessmentInfo" runat="server" Font-Italic="True"
                                            ForeColor="#666666"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <hr class="ee" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lbl_AssessmentLabel" runat="server" Text="Assessment Label:"></asp:Label>
                                    </td>
                                    <td class="amend_field">
                                        <asp:DropDownList ID="drp_AssessmentLabel" runat="server" DataTextField="Name"
                                            DataValueField="Order">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:CheckBox ID="mki_UseDefault" runat="server" Visible="false" />
                                    </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:View>

        <asp:View ID="vOrder" runat="server">
            <div>
                <h5></h5>
            </div>
            <asp:UpdatePanel ID="sup" runat="server">
                <ContentTemplate>
                    <div style="text-align: left;">
                        <asp:Button ID="btn_Up" runat="server" Text="Up" />
                        <asp:Button ID="btn_Down" runat="server" Text="Down" />
                        <asp:ListBox ID="lst_RTFs" runat="server" Width="400px" Height="227px"
                            SelectionMode="Multiple"></asp:ListBox>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>

            <div>
                <hr class="ee" />
            </div>
            <div style="text-align: left;">
                <asp:Button ID="btn_SaveOrder" runat="server" Text="Save Order" />
            </div>
        </asp:View>

    </asp:MultiView>
</asp:Content>
