<%@ Page Title="" Language="C#" AutoEventWireup="false" Theme="Main_Theme" MasterPageFile="~/OnlineAssessments/OnlineAssessmentMaster.Master"
    CodeBehind="DefaultMethodologiesAssessment.aspx.cs" EnableEventValidation="false" Inherits="MKInsight.Online.RRAM2.OnlineAssessment.DefaultMethodologies.DefaultMethodologiesAssessment" %>

<%@ Register Assembly="UIWebControls" Namespace="UIWebControls" TagPrefix="cc4" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../../UIControls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc1" %>
<%@ Register Src="../../UIControls/Assessment/AssessmentEditorControl.ascx" TagName="AssessmentEditorControl"
    TagPrefix="uc2" %>
<%@ Register Src="../../UIControls/Assessment/AssessmentMessages.ascx" TagName="AssessmentMessages"
    TagPrefix="uc3" %>
<%@ Register Src="../../UIControls/ProgressBar.ascx" TagName="ProgressBar" TagPrefix="uc4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript">
        function setdata(value) {
            PageMethods.SetData(value);
        }
    </script>

    <script type="text/javascript" src="../../scripts/jquery/jquery_min.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/jquery.box-min.js"></script>
    <link rel="stylesheet" type="text/css" href="../../scripts/jquery/jqbox.css" />
    <script type="text/javascript" src="../../scripts/ASTJavascript/astreeview/astreeview_packed.js"></script>
    <link rel="stylesheet" type="text/css" href="../../scripts/ASTJavascript/astreeview/astreeview.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/ASTJavascript/asdropdowntreeview/dropdowntreeview.css" />

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="c_M" runat="server">
    <input id="scrollPos" runat="server" type="hidden" value="0" />
    <cc1:CollapsiblePanelExtender ID="cpe_A" runat="server" CollapseControlID="cpe_AH"
        CollapsedImage="~/images/expand16.png" ExpandControlID="cpe_AH" ExpandedImage="~/images/collapse16.png"
        ImageControlID="img_PA" SuppressPostBack="true" TargetControlID="pnl_A" TextLabelID="lbl_PA"
        Collapsed="false">
    </cc1:CollapsiblePanelExtender>
    <cc1:CollapsiblePanelExtender ID="cpe_PR" runat="server" CollapseControlID="cpe_PRH"
        CollapsedImage="~/images/expand16.png" ExpandControlID="cpe_PRH" ExpandedImage="~/images/collapse16.png"
        ImageControlID="img_PR" SuppressPostBack="true" TargetControlID="pnl_PR" TextLabelID="lbl_PR"
        Collapsed="false">
    </cc1:CollapsiblePanelExtender>



    <div>
        <uc1:MessageBox ID="usc_M" runat="server" />
    </div>
    <asp:Panel ID="pnl_e" runat="server">
        <div style="text-align: center;">

            <asp:LinkButton ID="lnk_ViewAll" ForeColor="Red" runat="server"></asp:LinkButton>

            <hr class="ee" />
        </div>
    </asp:Panel>
    <div style="text-align: center;">
        <asp:Panel ID="pnl_eAll" runat="server" BorderWidth="1" BorderColor="Gray" Visible="false">
            <div>
                <h3>
                    <asp:Label ID="lbl_ETtile" runat="server"></asp:Label></h3>
            </div>
            <div>
                <asp:Panel ID="pnl_eAC" runat="server">
                </asp:Panel>
                <div>
                    <hr class="ee" />
                </div>
                <div>
                    <asp:LinkButton ID="lnk_EHide" runat="server" ForeColor="Green"></asp:LinkButton>
                </div>
            </div>
            <div style="height: 10px;">
            </div>
        </asp:Panel>
    </div>

    <asp:MultiView ID="mv" runat="server">
        <asp:View ID="v_Welcome" runat="server">
            <table style="width: 100%; border-spacing: 2px; padding: 4px;">
                <tr>
                    <td class="wheader">
                        <asp:Label ID="lbl_WelcomeTitle" runat="server" Text="Welcome to the Online Assessment Wizard"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lbl_WelcomeGuide" runat="server" Text="This wizard will guide you through the process of creating a new online assessment."></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <img alt="" runat="server" src="~/images/info24.png" />
                        <asp:Label ID="lbl_WelcomeInfo" runat="server" Font-Bold="True" Text="Note: If you close the browser at any stage of this wizard you need to start again next time."></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="wh2">
                        <asp:Label ID="lbl_WelcomeStart" runat="server" Text="To continue, click Start."></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <hr class="ee" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btn_Start" runat="server" Text="Start" SkinID="_" />
                        &nbsp;<asp:Button ID="btn_Retire" runat="server" SkinID="_" ForeColor="Red" Text="Assessment Complete" Style="min-width: 200px;" />
                        <asp:Label ID="lbl_RetiredInfo" runat="server" Text="If you have finished all the assessment please click ‘Retire button’ below to retire this link."></asp:Label>
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="v_Assessment" runat="server">
            <asp:Panel ID="cpe_PRH" runat="server" CssClass="panelheader"
                Width="100%">
                <div style="padding: 5px; cursor: pointer; vertical-align: middle;">
                    <div style="color: #000000;" class="divfleft">
                        <asp:Label ID="lbl_PRTitle" runat="server" Text="SelectRiskFromTheListToStartYourAssessment"></asp:Label>
                    </div>
                    <div style="margin-left: 20px;" class="divfleft">
                        <asp:Label ID="lbl_PR" runat="server">(Show Details...)</asp:Label>
                    </div>
                    <div style="vertical-align: middle;" class="divfright">
                        <asp:Image ID="img_PR" runat="server" ImageUrl="~/images/expand16.png" />
                    </div>
                </div>
            </asp:Panel>
            <div class="panelouterlines">
                <asp:Panel ID="pnl_PR" runat="server" CssClass="panelbody" Width="99%">
                    <div style="text-align: right;">
                        <table>
                            <tr>
                                <td>
                                    <div style="text-align: left;">
                                        <uc4:ProgressBar ID="pB" runat="server" BGColor="WhiteSmoke" Blocks="20" BorderColor="Black"
                                            BorderSize="1" Cellpadding="1" CellSpacing="1" FillColor="Orange" Height="20" />
                                    </div>
                                </td>
                                <td>
                                    <div style="text-align: left;">
                                        <asp:Label ID="lbl_PInfo" runat="server" Text="Percent Complete"></asp:Label>
                                        <asp:Label ID="lbl_PV" runat="server" Text="Value"></asp:Label>
                                    </div>
                                    <div>
                                        <asp:Label ID="lbl_PBText" runat="server" Text="Value"></asp:Label>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <br />
                    <asp:Panel ID="pnl_RG" runat="server">
                        <cc4:MKGridView ID="dg_Risk" runat="server" AllowPaging="True" AllowSorting="True"
                            AutoGenerateColumns="False" BorderStyle="None" CellPadding="3" DataKeyNames="ID,AssessmentInvitationID"
                            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:TemplateField Visible="false" HeaderStyle-Width="0">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="hdID" runat="server" Value='<%#Eval("ID")%>' />
                                    </ItemTemplate>
                                    <ItemTemplate>
                                        <asp:HiddenField ID="hdInvID" runat="server" Value='<%#Eval("AssessmentInvitationID")%>' />
                                    </ItemTemplate>

                                    <HeaderStyle></HeaderStyle>
                                </asp:TemplateField>
                                <asp:CommandField HeaderText="Select" ShowSelectButton="True" />
                                <asp:BoundField DataField="ID" HeaderText="UniqueReference" SortExpression="ID" ItemStyle-Width="100px" />
                                <asp:BoundField DataField="RiskDetailsName" HeaderText="RiskDetailsName" SortExpression="RiskDetailsName" />
                                <asp:BoundField DataField="RiskDetailsDescription" HeaderText="RiskDetailsDescription"
                                    SortExpression="RiskDetailsDescription" />
                                <asp:BoundField DataField="ActualStatusOfAssessment" HeaderText="ActualStatusOfAssessment"
                                    SortExpression="ActualStatusOfAssessment" />
                                <asp:BoundField DataField="AssessmentLink" HeaderText="AssessmentLink" SortExpression="AssessmentLink" />
                            </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>
                    <asp:Label ID="lbl_NoRisks" runat="server" ForeColor="Blue" Text="No risks found linked to risk universe level"
                        Visible="False" Width="800px"></asp:Label>
                </asp:Panel>
            </div>
            <div style="height: 15px;">
            </div>
            <asp:Panel ID="cpe_AH" runat="server" CssClass="panelheader" Width="100%">
                <div style="padding: 5px; cursor: pointer; vertical-align: middle;">
                    <div style="color: #000000;" class="divfleft">
                        <asp:Label ID="lbl_PATitle" runat="server" Text="Assessment details"></asp:Label>
                    </div>
                    <div style="margin-left: 20px;" class="divfleft">
                        <asp:Label ID="lbl_PA" runat="server">(Show Details...)</asp:Label>
                    </div>
                    <div style="vertical-align: middle;" class="divfright">
                        <asp:Image ID="img_PA" runat="server" ImageUrl="~/images/expand16.png" />
                    </div>
                </div>
            </asp:Panel>


            <div class="panelouterlines" id="assessmentdiv" runat="server" visible="false">
                <asp:Panel ID="pnl_A" runat="server" Width="99%">
                    <uc2:AssessmentEditorControl ID="usc_A" runat="server" />
                </asp:Panel>
            </div>

            <asp:Panel ID="pnl_AssessmentButtons" runat="server" Visible="false">

                <div style="padding-top: 10px;">
                    <asp:Button ID="btn_Welcome" SkinID="_" runat="server" Text="Back to Welcome Page" />


                    <asp:Button ID="btn_Save" SkinID="_" runat="server" Text="Save" ForeColor="Green" />
                    <asp:Button ID="btn_Submit" SkinID="_" runat="server" Text="Submit Assessment 'As Draft'"
                        ForeColor="Blue" />
                    <asp:Button ID="btn_Delete" SkinID="_" runat="server" Text="Delete"
                        ForeColor="Red" />

                   
                            <uc3:AssessmentMessages ID="usc_AM" runat="server" />
                 
                </div>
            </asp:Panel>


        </asp:View>
        <asp:View ID="v_Retired" runat="server">
            <asp:Label ID="lbl_Retired" runat="server" Font-Bold="True" ForeColor="#0000CC"
                Text="This link has been retired."></asp:Label>
        </asp:View>
        <asp:View ID="v_Finished" runat="server">
            <div>
                <asp:Label ID="lbl_CloseBrowser" runat="server" Font-Italic="True"
                    ForeColor="#5C5C5C" Text="The browser can be closed by clicking the close button or X from the active title bar."></asp:Label>
                <br />
                <asp:LinkButton ID="lnk_Close" runat="server" Font-Bold="True">Close</asp:LinkButton>
            </div>
        </asp:View>
    </asp:MultiView>

</asp:Content>
