<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Communication_FeedbackAnalysis, App_Web_sqnaqmtm" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">

        <ContentTemplate>

            <div id="divContentPage" class="divcontentpagemargin">
                <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
                <hims:EmployeeSearchControl ID="EmployeeSearch" runat="server" Visible="false" />

                <div class="dashBoardLeftCont" runat="server" id="ScreenGroupTableId" visible="true">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="157"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head" id="Div4" runat="server" visible="True">

                            <div class="himsBoxTitle">
                                <div class="headerText fLeft">
                                    <header>
                                        <i class="fas fa-list-ul"></i>
                                        <asp:Label ID="Label4" Text="Feedback Analysis" runat="server" />
                                    </header>
                                </div>

                                <div class="headerText fRight mt-27">
                                    <asp:Button ID="BackButton" runat="server" Text="&#xf30a; Back" class="btn btn-back fas" SkinID="0" Visible="false" OnClick="BackButton_Click" />
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">

                            <asp:Panel ID="StudentSearchPanel" runat="server" Visible="false">
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="StudentIdNoLabel" runat="server" Text="Id No"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="StudentIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="200" AutoPostBack="true">
                                        </asp:TextBox>
                                        <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="StudentIdNoImageButton"
                                            ImageUrl="~/Images/icons/icon_find.gif" runat="server" />
                                        <asp:HiddenField ID="SourceIdHiddenField" runat="server" />
                                        <asp:HiddenField ID="StudentNameHiddenField" runat="server" />
                                    </div>
                                </div>

                            </asp:Panel>
                            <asp:Panel ID="EmpPanel" runat="server" Visible="false">
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="EmployeeCodeLabel" runat="server" Text="Employee Code"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="EmployeeCodeTextBox" SkinID="CustomWidthTextBox" runat="server"
                                            MaxLength="100" AutoPostBack="false"> </asp:TextBox>
                                        <asp:ImageButton SkinID="FindImage" ToolTip="Employee Search" ID="EmployeeCodeImageButton"
                                            runat="server" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                        <asp:HiddenField ID="EmployeeIdHiddenField" runat="server" />
                                        <asp:HiddenField ID="EmpNameHiddenField" runat="server" />
                                    </div>
                                </div>

                            </asp:Panel>

                            <asp:Panel ID="DetailPanel" runat="server">
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Label2" runat="server" Text="Feedback" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="FeedbackDropDownList" runat="server" CssClass="form-control" OnSelectedIndexChanged="FeedbackDropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                    </div>

                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SourcetypeLabel" runat="server" Text="Feedback For" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="SourceTypeDropDownList" runat="server" OnSelectedIndexChanged="SourceTypeDropDownList_SelectedIndexChanged" AutoPostBack="true" CssClass="form-control"></asp:DropDownList>
                                    </div>

                                </div>

                                <div class="cBoth"></div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth" style="font-size: small;">
                                        <b>
                                            <asp:Label ID="Label3" runat="server" Text="Total Participants : "></asp:Label></b>
                                        <asp:Label ID="CountLabel" runat="server"></asp:Label>
                                    </div>

                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth" style="font-size: small;">
                                        <b>
                                            <asp:Label ID="Label7" runat="server" Text="Answered : "></asp:Label></b>
                                        <asp:Label ID="AnswerLabel" runat="server"></asp:Label>
                                        <asp:Label ID="RateLabel" runat="server"></asp:Label>
                                    </div>

                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth" style="font-size: small;">
                                        <b>
                                            <asp:Label ID="Label5" runat="server" Text="Not Answered : "></asp:Label></b>
                                        <asp:Label ID="NotAnsweredLabel" runat="server"></asp:Label>
                                    </div>

                                </div>


                                <div class="himsBoxContent card-body table-responsive">

                                    <asp:GridView runat="server" ID="GridView2" AutoGenerateColumns="False"
                                        EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="CircularListGridView_RowDataBound"
                                        DataKeyNames="Id"
                                        ShowHeader="true" meta:resourcekey="CircularListGridViewResource1" CssClass="table table-striped table-bordered table-hover">
                                        <Columns>
                                            <asp:TemplateField HeaderText="QuestionNumber" ItemStyle-Width="20%">
                                                <ItemTemplate>
                                                    <asp:Label ID="QuestionNumberLabel" runat="server" Text='<%#Eval("QuestionNumber") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Question" ItemStyle-Width="40%">
                                                <ItemTemplate>
                                                    <asp:Label ID="QuestionLabel" runat="server" Text='<%#Eval("Question") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Response Count" ItemStyle-Width="20%">
                                                <ItemTemplate>
                                                    <asp:Label ID="CountDataLabel" runat="server" Text='<%#Eval("CountData") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <PagerSettings Visible="False" />
                                    </asp:GridView>

                                    <div class="contentHolder">
                                        <div class="himssuHeader6WireBox col-md-12">
                                            <div class="himsBoxHeader card-head inner" id="CircularListGridViewPagerDiv" runat="server" visible="false">

                                                <div class="himsBoxTitle">
                                                    <div class="fRight">
                                                        <uc1:GridViewPager ID="CircularListGridViewPager" ParentGridView="CircularListGridView"
                                                            runat="server" OnFirstRecordClick="CircularListGridViewPager_FirstRecordClick" OnLastRecordClick="CircularListGridViewPager_LastRecordClick"
                                                            OnNextRecordClick="CircularListGridViewPager_NextRecordClick" OnPrevRecordClick="CircularListGridViewPager_PrevRecordClick"
                                                            OnTextBoxValueChange="CircularListGridViewPager_TextBoxValueChange" />
                                                    </div>
                                                    <%--<div class="gridHeaderText">
                                                                <header>
                                                                    <asp:Label ID="Label1" Text="List" runat="server" />
                                                                </header>
                                                            </div>--%>
                                                </div>
                                            </div>

                                            <asp:GridView runat="server" ID="CircularListGridView" class="himssuHeader7WireBox col-md-12 table-responsive" AutoGenerateColumns="False"
                                                EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="CircularListGridView_RowDataBound"
                                                DataKeyNames="Id"
                                                ShowHeader="true" meta:resourcekey="CircularListGridViewResource1" CssClass="table table-striped table-bordered">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="Code">
                                                        <ItemTemplate>
                                                            <asp:Label ID="FeedbackAssignCodeLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Name">
                                                        <ItemTemplate>
                                                            <asp:Label ID="FeedbackAssignNameLabel" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="SelectLinkButton" runat="server" OnClick="SelectLinkButton_Click" CommandArgument="SelectLinkButton">Select</asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <PagerSettings Visible="false" />
                                            </asp:GridView>
                                        </div>
                                    </div>

                                </div>
                            </asp:Panel>

                            <asp:Panel ID="ViewDetail" runat="server">
                                <div class="contentHolder">
                                    <div class="himssuHeader6WireBox col-md-12">
                                        <div class="himsBoxContent">
                                            <asp:GridView runat="server" ID="GridView1" class="himssuHeader7WireBox col-md-12 table-responsive" AutoGenerateColumns="False"
                                                EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="CircularListGridView_RowDataBound"
                                                ShowHeader="true" meta:resourcekey="CircularListGridViewResource1" CssClass="table table-striped table-bordered">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="FeedbackAnswerTypeId" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:Label ID="FeedbackAnswerTypeIdLabel" runat="server" Text='<%# Bind("FeedbackAnswerTypeId") %>' Visible="false"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Question Number" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%">
                                                        <ItemTemplate>
                                                            <asp:Label ID="QuestionNumberLabel" runat="server" Text='<%# Bind("QuestionNumber") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="Question" HeaderText="Question" ItemStyle-Width="20px" HeaderStyle-HorizontalAlign="Left" />
                                                    <asp:TemplateField ItemStyle-Width="20%" HeaderText="Answer Type" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:Label ID="AnswerLabel" runat="server" Text='<%#Eval("FeedbackAnswerDescription") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                </Columns>
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
                </tr>
                    </table>
            </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
