<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Communication_FeedbackAnalysisReport, App_Web_yitrogwh" 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>
               <Std:StudentSearch ID="StudentSearch1" Visible="false" runat="server" />
            <Std:StudentSearch ID="StudentSearchAssign" Visible="false" runat="server" />
            <hims:EmployeeSearchControl ID="EmployeeSearchControl1" runat="server" Visible="false" />
            <hims:EmployeeSearchControl ID="EmployeeSearchAssign" runat="server" Visible="false" />

            <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="DetailPanel" runat="server">
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="">
                                        <asp:Label ID="ReportLabel" runat="server" Text="Report" SkinID="MandatoryLabel" Font-Bold="true"></asp:Label>
                                        &nbsp;<asp:Label ID="ClientSpecificReportLabel" runat="server" ForeColor="BlueViolet" Text=" (CS)" visible="false"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="ReportDropDownList" runat="server" DataTextField="Name" DataValueField="Id"
                                            CssClass="form-control" SkinID="CustomWidthDropDownList" AutoPostBack="true" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()" OnSelectedIndexChanged="ReportDropDownList_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ViewModeLabel" runat="server" Text="View Mode"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="ViewModeDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="ViewModeDropDownListResource" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Label2" runat="server" Text="Feedback"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="FeedbackDropDownList" runat="server" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="FeedbackDropDownList_SelectedIndexChanged"
                                             ></asp:DropDownList>
                                    </div>

                                </div>

                                <div class="outerBox pTop25 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Label1" runat="server" Text="Source Type"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="SourceDropDownList" CssClass="form-control" runat="server" OnSelectedIndexChanged="SourceDropDownList_SelectedIndexChanged"
                                             AutoPostBack="true"></asp:DropDownList>
                                  
                                    </div>

                                </div>

                                <asp:Panel ID="Panel1" runat="server" Visible="false">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StudentLabel" runat="server" Text="Id No"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="StudentTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnTextChanged="StudentTextBox_TextChanged"
                                                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="StudentIdHiddenField" runat="server" />
                                            <asp:HiddenField ID="StudentNameHiddenField1" runat="server" />
                                        </div>
                                    </div>

                                    </asp:Panel>
                                <asp:Panel ID="Panel2" runat="server" Visible="false">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="EmployeeLabel" runat="server" Text="Employee Code"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="EmployeeTextBox" SkinID="CustomWidthTextBox" runat="server" OnTextChanged="EmployeeTextBox_TextChanged"
                                                MaxLength="100" AutoPostBack="true"> </asp:TextBox>
                                            <asp:ImageButton SkinID="FindImage" ToolTip="Employee Search" ID="EmployeeCodeImageButton"
                                                runat="server" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                            <asp:HiddenField ID="EmployeeIdHiddenField1" runat="server" />
                                            <asp:HiddenField ID="EmployeeNameHiddenField" runat="server" />
                                        </div>
                                    </div>
                                                                           
                                </asp:Panel>
                                <asp:Panel ID="OtherPanel" runat="server" Visible="false">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="OtherLabel" runat="server" Text="Other"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="OtherTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                onblur="return fnonTextChangeNameField(this)" onkeypress="javascript:uppercase();"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="100"> 
                                            </asp:TextBox>
                                        </div>
                                    </div>
                                                                         
                                </asp:Panel>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SourcetypeLabel" runat="server" Text="FeedBack For"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="SourceTypeDropDownList" runat="server" OnSelectedIndexChanged="SourceTypeDropDownList_SelectedIndexChanged" CssClass="form-control"></asp:DropDownList>
                                        </div>
                                    </div>
                                
                                    <div class="alignCenter col-md-12 pTop5 pb5">
                                        <asp:Button ID="PrintButton" Text="&#xf15b; View Report" runat="server" SkinID="0" CssClass="btn btn-print fas" OnClick="PrintButton_Click" />
                                        <asp:Button ID="ClearButton" Text="&#xf12d; Clear" runat="server" OnClick="ClearButton_Click"
                                            meta:resourcekey="ClearButtonResource1" SkinID="0" CssClass="btn btn-clear fas" />
                                    </div>
                                    <div class="contentHolder">
                                        <div class="himssuHeader6WireBox col-md-12" runat="server" visible="false">
                                            <div class="himsBoxHeader card-head inner" id="CircularListGridViewPagerDiv" runat="server">

                                                <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>

                                            <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"
                                                    AllowPaging="True" PageSize="10" 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>

                                                <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"
                                                    AllowPaging="True" PageSize="10" 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"
                                                    AllowPaging="True" PageSize="10"
                                                    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>
    <script language="javascript" type="text/javascript">
        function validate() {
            var himsValidator = [new hims_ctl_val('<%= ReportDropDownList.ClientID %>', 'Report', "T", "", "", "", "")
            ];
            if (fnDoValidate(himsValidator))
                return true;
            else
                return false;
        }
    </script>
    <script type="text/javascript" language="javascript">
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode
            if (charCode != 46 && charCode > 31
            && (charCode < 48 || charCode > 57))
                return false;
            return true;
        }
    </script>
     <script type="text/javascript">
         function Color_Changed(sender) {
             sender.get_element().value = "#" + sender.get_selectedColor();
         }
    </script>
</asp:Content>
