<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Communication_FeedbackAnswerTypeMaster, App_Web_xo24zi45" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="FeedbackAnswerTypeUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
               
                            <div class="dashBoardLeftCont">
                                <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="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                                    <div class="himsBoxHeader card-head">
                                        <asp:Panel ID="Panel1" runat="server">
                                           <div class="himsBoxTitle">
                                                <div class="headerText">
                                                     <header>
                                                    <i class="fas fa-search"></i>
                                                    <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                                         </header>
                                                </div>
                                                <div class="fRight mt-27">
                                                    <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0"
                                                        class="btn btn-add fas" Text="&#xf067; Add" />
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <div class="himsBoxContent card-body">
                                        <asp:Panel ID="SearchPanel" runat="Server">
                                            <div class="contentHolder">
                                                
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Code" Text="Code" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="CodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" runat="Server" MaxLength="100"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchTitleLabel" Text="Title" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="SearchTitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" Width="150px" runat="Server" MaxLength="100"></asp:TextBox>
                                                    </div>
                                                </div>
                                               
                                                <div class="alignCenter pTop5 col-md-12 center">
                                                    <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click"
                                                        SkinID="0" class="btn-search btn fas" />
                                                    <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" 
                                                        SkinID="0" class="btn-reset btn fas"/>
                                                </div>
                                                
                                                <asp:HiddenField ID="ButtonHiddenField" runat="server" />
                                                <div id="Div2" class="himssuHeader7WireBox col-md-12" runat="server">
                                                    <div id="FeedbackAnswerTypeListDetailDiv" runat="server" visible="false">
                                                        
                                                        <div class="himsBoxHeader card-head inner" id="FeedbackAnswerTypeListDiv" runat="server" visible="false" style="display:none">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle" style="width: 99%">
                                                                <div align="right" class="fRight" style="margin-top: -3px;">
                                                                </div>
                                                            </div>
                                                      <%--  <div class="gridHeaderText">
                                                                             <header>
                                                                <asp:Label ID="Label2" Text="Feedback Answer List" runat="server" />
                                                                        </header>
                                                         </div>--%>
                                                        </div>
                                                        <div class="himsBoxContent card-body">
                                                            <div id="Div5" runat="server" visible="false" class="table-responsive">
                                                                <asp:GridView ID="FeedbackAnswerTypeGridView" runat="server" AutoGenerateColumns="False"
                                                                    CssClass="table table-striped table-bordered table-hover" ShowHeader="true" SkinID="" PagerSettings-Visible="false"
                                                                    EmptyDataText="No Records Found !!" DataKeyNames="Id" OnRowDataBound="FeedbackAnswerTypeGridView_RowDataBound"
                                                                    OnPageIndexChanging="FeedbackAnswerTypeGridView_PageIndexChanging">
                                                                    <Columns>
                                                                        <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                            HeaderStyle-HorizontalAlign="Left" HeaderText="">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="SelectLinkButton" runat="server" CommandName="Select" Text="Select"
                                                                                    CausesValidation="false" OnClick="SelectLinkButton_Click"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText ="Code">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="FeedCodeLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                          <asp:TemplateField HeaderText ="Title">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="FeedTitleLabel" runat="server" Text='<%#Eval("Title") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                       
                                                                          <asp:TemplateField HeaderText ="Answer Group">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="AnswerGroupLabel" runat="server" Text='<%#Eval("FeedBackAnswerGroupMaster") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>

                                                                        <asp:BoundField DataField="IsObsolete" HeaderText="InActive" HeaderStyle-HorizontalAlign="Left" />

                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                                <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                                    <div class="himsBoxHeader card-head" id="Div4" runat="server" visible="True">
                                        
                                        <div class="himsBoxTitle">
                                            <div class="headerText fLeft">
                                                <header>
                                                    <i class="fas fa-plus-circle"></i>
                                                <asp:Label ID="Label4" Text="Add" runat="server" />
                                                    </header>
                                            </div>
                                        </div>
                                        <div class="fRight mt-27 pagination display-flex ">
                                            <table>
                                                <tr>
                                                    <td class="formLabel">
                                                        <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                            <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                                                OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-backward"></i>
                                                            </asp:LinkButton>
                                                            <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                                                OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play fa-rotate-180"></i>
                                                            </asp:LinkButton>
                                                            &nbsp;&nbsp;
                                                            <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                            <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                            <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                            <asp:Label ID="TotalRecord" runat="server" />
                                                            &nbsp;&nbsp;
                                                            <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                                runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                OnClick="NextImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play"></i>
                                                            </asp:LinkButton>
                                                            <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                                                OnClick="LastRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-forward"></i>
                                                            </asp:LinkButton>
                                                        </div>
                                                    </td>
                                                    <td>
                                                        &nbsp;&nbsp;<asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                                           class="btn btn-back fas" Text="&#xf30a; Back" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent card-body">
                                        <asp:Panel ID="DetailPanel" runat="Server">
                                            <div class="contentHolder">
                                                <div class="tableContainer">
                                                    <div class="contentHolder">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="RemarkLabel" runat="server" Text="Code" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="RemarkTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextbox"
                                                                   onmouseenter="showHideTooltip()" MaxLength="100"></asp:TextBox>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="TitleLabel" runat="server" Text="Title" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="TitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                                <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                                            </div>
                                                        </div>

                                                        
                                                        <div class="outerBox11 pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="FeedbackGroupLabel" runat="server" SkinID="MandatoryLabel"
                                                                    Text="Feedback Answer Group"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="FeedbackAnswerGroupDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    AutoPostBack="true" onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList"
                                                                    CssClass="form-control" OnSelectedIndexChanged="FeedbackAnswerGroupDropDownList_SelectedIndexChange">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        
                                                        <div class="outerBox pTop15 col-md-3">
                                                              
                                                            <div class="controlLabelWidth">
                                                                <asp:CheckBox ID="ObsoleteCheckBox" runat="server" Text="InActive"/>
                                                            </div>
                                                        </div>

                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                 
                                    <div id="FeedbackTypeDetailDiv" runat="server"
                                            style="padding-top: 0px !important">
                                    <div class="himssuHeader6WireBox col-md-12 pTop5" id="ListDiv" runat="server" visible="false">
                                        <div class="himsBoxHeader card-head inner">
                                           
                                            <div class="himsBoxTitle">
                                                <div class="gridHeaderText">
                                                    <header>
                                                    <asp:Label ID="Label1" runat="server" Text="Feedback Type Detail" meta:resourcekey="Label1Resource1"></asp:Label>
                                                    </header>
                                             </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent card-body">
                                            <div class="contentHolder">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="CodeDetailLabel" runat="server" Text="Title" SkinID="MandatoryLabel" Visible="false"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="CodeDetailTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            onblur="return fnonTextChangeNameField(this)" onkeypress="javascript:uppercase();"
                                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="100" Visible="false"> 
                                                        </asp:TextBox>
                                                    </div>
                                                </div>
                                                                                                
                                                <div class="alignCenter pTop5">
                                                    <asp:Button ID="AddButton" runat="server" class="btn btn-add fas" Text="&#xf067; Add" SkinID="0" OnClick="AddButton_Click" Visible="false"/>
                                                    <asp:Button ID="ClearDetailButton" runat="server" class="btn-reset btn fas" SkinID="0" Text="&#xf0e2; Clear" meta:resourcekey="TestParameterDetaileCleareButtonResource1" Visible="false"
                                                        OnClick="CleareDetaileCutton_Click" />
                                                </div>
                                            </div>
                                            </div>
                                        </div>
                                  </div>
                                    <div id="DrugDetailsDiv" runat="server" visible="False" style="padding-top: 0px !important;">
                                                    
                                        <div id="PatientRelationDiv" runat="server">
                                                <div class="himssuHeader6WireBox col-md-12 pTop5">
                                                    <div class="himsBoxHeader " id="Div1" runat="server">
                                                        <div class="leftdiv">
                                                        </div>
                                                        <div class="himsBoxTitle" id="AddDiv" runat="server">
                                                                <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                       
                                                                        <div class="himsBoxTitle">
                                                                            <div class="headerText">
                                                                                <header>
                                                                                    <asp:Label ID="GridViewLabel" Text="Feedback type Master Detail"
                                                                                    runat="server" />
                                                                                </header>
                                                                            </div>
                                                                       </div>
                                                                    </div>
                                                                <div class="pull-right col display-flex">
                                                                    <asp:DropDownList ID="AddRowsToGridDropDownList" runat="server" Style="margin-right:10px;" SkinID="CustomWidthDropDownList" CssClass="form-control" AutoPostBack="false">
                                                                        <asp:ListItem Text="1" Value="0" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                                        <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                        <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                    <asp:Button ID="Button1" runat="server" class="btn btn-add fas" OnClick="AddListButton_Click"
                                                                            Text="&#xf067; Add" SkinID="0" Style="vertical-align: top;float:right;"/>
                                                                </div>
                                                       </div>
                                                    </div>
                                                <div class="himsBoxContent width-100 pTop5 table-responsive">
                                                           
                                                    <asp:GridView  runat="server" AutoGenerateColumns="False" ID="FeedbacktypedetailGridView"
                                                        OnSelectedIndexChanged="FeedbacktypedetailGridView_SelectedIndexChanged"
                                                        AllowPaging="false"   meta:resourcekey="QuestionAnswerMasterGridViewResource1"
                                                        DataKeyNames="Id,Index" CssClass="table table-bordered table-striped table-hover">
                                                        <Columns>
                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="45%" HeaderText="Name">
                                                                <ItemTemplate>
                                                                    <asp:TextBox ID="NameTextBox" runat="server" Text='<%#Eval("Title") %>'></asp:TextBox>
                                                                           
                                                                </ItemTemplate>
                                                            </asp:TemplateField>

                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="45%" HeaderText="Feedback Point">
                                                                <ItemTemplate>
                                                                    <asp:TextBox ID="FeedBackPointTextBox" runat="server" Text='<%#Eval("FeedbackPoint") %>'></asp:TextBox>
                                                                           
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                                    
                                                                    
                                                            <%--<asp:BoundField HeaderStyle-HorizontalAlign="Left" DataField="Title" HeaderText="Name" meta:resourcekey="BoundFieldResource7" />--%>
                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left"   HeaderText="Delete" meta:resourcekey="TemplateFieldResource7">
                                                                <ItemTemplate >
                                                                    <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                        ToolTip="Delete" meta:resourcekey="DeleteImageButtonResource1" />
                                                                    <asp:HiddenField ID="Id" runat="server" Value='<%# Eval("Id") %>' />
                                                                    <asp:HiddenField ID="TestParameterId" runat="server" />
                                                                </ItemTemplate>
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <ItemStyle HorizontalAlign="Center" />
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <PagerSettings Visible="False" />
                                                    </asp:GridView>
                                                           
                                                </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">
        function Color_Changed(sender) {
            sender.get_element().value = "#" + sender.get_selectedColor();
        }
    </script>
</asp:Content>
