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

<%@ Register Src="../UIControls/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="FormulaGrammerControl.ascx" TagName="FormulaGrammerControl" TagPrefix="uc2" %>
<%@ Register Src="../UIControls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc3" %>
<%@ Register Assembly="UIWebControls" Namespace="UIWebControls" TagPrefix="cc4" %>
<%@ Register Src="~/UIControls/Interface/TextBoxEx.ascx" TagPrefix="uc1" TagName="TextBoxEx" %>
<%@ Register Src="~/UIControls/Interface/TextBoxDecimalEx.ascx" TagPrefix="uc1" TagName="TextBoxDecimalEx" %>
<%@ Register Src="~/UIControls/Interface/ColorBoxEx.ascx" TagPrefix="uc1" TagName="ColorBoxEx" %>

<%@ Register Src="../UIControls/Interface/MultilineTextBoxEx.ascx" TagName="MultilineTextBoxEx" TagPrefix="uc4" %>

<%@ Register Src="../UIControls/Interface/DropDownListEX.ascx" TagName="DropDownListEX" TagPrefix="uc5" %>

<%@ Register Src="../UIControls/PopupMessageBox.ascx" TagName="PopupMessageBox" TagPrefix="uc6" %>

<%@ Register Src="../UIControls/Interface/CheckBoxEX.ascx" TagName="CheckBoxEX" TagPrefix="uc7" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <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" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="c_M" runat="server">
    <uc1:Header ID="u_H" runat="server" />
    <asp:UpdatePanel ID="up" runat="server">
        <ContentTemplate>

            <uc3:MessageBox ID="u_M" runat="server" />

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

            </asp:Panel>

            <asp:MultiView ID="mv" runat="server">


                <asp:View ID="v_f" runat="server">

                    <table>

                        <tr>
                            <td style="vertical-align: top">
                                <asp:Label ID="lbl_List" runat="server"></asp:Label>

                            </td>
                            <td style="vertical-align: top">
                                <asp:Label ID="lbl_Options" runat="server" Visible="False"></asp:Label>
                            </td>
                            <td style="vertical-align: top" class="auto-style1">
                                <asp:Label ID="lbl_Formula" runat="server" Visible="False"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="vertical-align: top">
                                <asp:ListBox ID="lst_Assessments" runat="server" Width="220px" Height="500" AutoPostBack="True"></asp:ListBox>
                            </td>
                            <td style="vertical-align: top">
                                <asp:ListBox ID="lst_Options" runat="server" Width="300" Height="500" Visible="false"></asp:ListBox>
                            </td>
                            <td style="vertical-align: top; padding-top: 120px; width: 26px;">
                                <asp:ImageButton ID="img_Add" runat="server" ImageUrl="../images/next24.png" Visible="false" /></td>
                            <td style="vertical-align: top">

                                <asp:Panel ID="tb_Config" runat="server" CssClass="w-bar" Visible="false">

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

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

                                </asp:Panel>

                                <table id="tbl_formula" runat="server" visible="false" style="border: 1px solid #E3E3E3; width: 100%;">

                                    <tr>
                                        <td>
                                            <uc1:TextBoxEx ID="u_NewAssessment" runat="server" Visible="false" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table style="width: 100%">
                                                <tr>
                                                    <td>
                                                        <uc4:MultilineTextBoxEx ID="u_Formula" runat="server" />
                                                    </td>
                                                    <td style="padding-left: 5px;">
                                                        <asp:ImageButton ID="btn_Formula" runat="server" ImageUrl="../images/sum24.png" />

                                                    </td>
                                                </tr>
                                            </table>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>

                                            <uc5:DropDownListEX ID="u_Grids" runat="server" />

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <uc7:CheckBoxEX ID="u_Archive" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <uc7:CheckBoxEX ID="u_DisableScore" runat="server" />
                                        </td>
                                    </tr>                                    
                                    <tr>
                                        <td>
                                            <hr class="ee" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Panel ID="pn_Formula" runat="server" Visible="false">
                                                <uc2:FormulaGrammerControl ID="u_functions" runat="server" />

                                            </asp:Panel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div style="padding-left: 10px;">
                                                <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>
                                            </div>
                                        </td>
                                    </tr>
                                </table>

                                <asp:Panel ID="p_Labels" runat="server" Visible="false" Style="border: 1px solid #E3E3E3; width: 100%">
                                    <div>
                                        <asp:Button ID="btn_NewLabel" runat="server" />
                                    </div>
                                    <table>
                                        <tr>
                                            <td style="vertical-align: top;">
                                                <table>


                                                    <tr>
                                                        <td>
                                                            <asp:CheckBox ID="chk_UnboundedLower" runat="server" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:CheckBox ID="chk_UnboundedUpper" runat="server" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="vertical-align: top;">
                                                            <cc4:MKGridView ID="dg_Labels" runat="server" AllowPaging="false" AllowSorting="false"
                                                                AutoGenerateColumns="False" BorderStyle="None" CellPadding="3" DataKeyNames="ID"
                                                                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 HeaderStyle-Width="0">
                                                                        <ItemTemplate>
                                                                            <asp:HiddenField ID="hdID" runat="server" Value='<%#Eval("ID")%>' />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                    <asp:CommandField HeaderText="Select" ShowSelectButton="True" />

                                                                    <asp:BoundField DataField="Name" HeaderText="Name" />
                                                                    <asp:BoundField DataField="Lower" HeaderText="FromValue" />
                                                                    <asp:BoundField DataField="Upper" HeaderText="ToValue" />
                                                                    <asp:BoundField DataField="Colour" HeaderText="Colour" />

                                                                </Columns>

                                                                <SelectedRowStyle BackColor="#D6E8FF" />
                                                            </cc4:MKGridView>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td>
                                                <asp:Panel ID="pn_C" runat="server" Visible="false">
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <uc1:TextBoxEx runat="server" ID="u_Name" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <uc1:TextBoxDecimalEx runat="server" ID="u_Lower" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <uc1:TextBoxDecimalEx runat="server" ID="u_Upper" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <uc1:ColorBoxEx runat="server" ID="u_Color" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Button ID="btn_AddLable" runat="server" Text="Add" Font-Bold="true" />
                                                                <asp:Button ID="btn_UpdateLabel" runat="server" Text="Update" Font-Bold="true" />
                                                                <asp:Button ID="btn_CancelLabel" runat="server" Text="Cancel" />
                                                                <span class="tab"></span>
                                                                <asp:Button ID="btn_DeleteLabel" runat="server" Text="Delete" ForeColor="Red" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </asp:Panel>
                                            </td>
                                        </tr>

                                    </table>

                                </asp:Panel>

                            </td>
                        </tr>

                    </table>

                </asp:View>


            </asp:MultiView>

        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
