<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Communication_MyFeedback, App_Web_b0t5aiw0" 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="114"
                                                            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-comment"></i>
                                                <asp:Label ID="Label4" Text="Feedback Response" runat="server" />
                                                    </header>
                                            </div>
                                            <div class="headerText fRight">
                                                <asp:Button ID="BackButton" runat="server" class="btn btn-back fas" Text="&#xf30a; Back" SkinID="0" 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" visible="false">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="StudentIdNoLabel" runat="server" Text="Id No"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5 display-flex">
                                                    <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" Visible="false">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="EmployeeCodeLabel" runat="server" Text="Employee Code"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5 display-flex">
                                                    <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>
                                     
                                        <div ID="FrontPanel" runat="server">

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

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

                                            </div>
                                          
                                            <div class="contentHolder">
                                                <div class="himssuHeader6WireBox col-md-12">
                                                    <div class="himsBoxContent card-body table-responsive">
                                                        <asp:GridView runat="server" ID="FrontGridView" AutoGenerateColumns="False"
                                                            EmptyDataText="No records available for the seacrh criteria!"
                                                            AllowPaging="false"   OnRowDataBound="FrontGridView_RowDataBound" DataKeyNames="FeedbackForId,FeedbackTemplateId"
                                                            ShowHeader="true" meta:resourcekey="CircularListGridViewResource1" CssClass="table table-striped table-bordered table-hover">
                                                            <Columns>
                                                                <asp:TemplateField Visible="false">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="FeedbackIdLabel" runat="server" Text='<%#Eval("FeedbackId") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Feedback Name">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="FeedbackNameLabel" runat="server" Text='<%#Eval("Title") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Id No">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="CodeLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Feedback For Name">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="FeedbackForNameLabel" runat="server" Text='<%#Eval("name") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField Visible="false">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="IdLabel" runat="server" Text='<%#Eval("Id") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField>
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="FeedbackLinkButton" runat="server" OnClick="FeedbackLinkButton_Click">Feedback</asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                       
                                                         
                                    <div ID="DetailPanel" runat="Server" Visible="false">
                                            <div class="contentHolder">
                                                <div class="himssuHeader6WireBox col-md-12">
                                                    <div class="himsBoxHeader card-head inner" id="CircularListGridViewPagerDiv" runat="server">
                                                        <div class="leftdiv">
                                                        </div>
                                                        <div class="himsBoxTitle">
                                                            <div class="gridHeaderText">
                                                                <header>
                                                                <asp:Label ID="Label1" Text="List" runat="server" />
                                                                </header>
                                                            </div>
                                                            <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" Visible="false"/>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="himsBoxContent card-body">
                                                        <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="false"   DataKeyNames="FeedbackTemplateQuestionId,FeedbackAnswerTypeDetailId,FeedbackAnswerDescription"
                                                            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="10%" HeaderText="Answer Type" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="AnswerTypeDetailDropDownList" runat="server" Visible="false" Width="100px"></asp:DropDownList>
                                                                        <asp:TextBox ID="TypeTextBox" runat="server" Visible="false"></asp:TextBox>
                                                                        <asp:TextBox ID="NumericTextBox" runat="server" Visible="false" onkeypress="return isNumber(event)"></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                               
                                            </div>
                                        </div>
                                    </div>
                             
                          
                                </div>
                            </div>
                       
                </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 type="text/javascript" language="javascript"> 
         function isNumber(evt) {
             evt = (evt) ? evt : window.event;
             var charCode = (evt.which) ? evt.which : evt.keyCode;
             if (charCode > 31 && (charCode < 48 || charCode > 57)) {
                 return false;
             }
             return true;
         }
    </script>
</asp:Content>
