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

<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->
                
                            <div class="dashBoardLeftCont" >
                                <div class="himssuHeader3WireBox">
                                    <%--<div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>
                                            </div>
                                        </div>
                                    </div>--%>
                                    <table>
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="169"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <%--   <div class="contentHolder" style="padding-left: 0px; padding-right: 0px">--%>
                                <div class="himssuHeader5WireBox card card-box">
                                    <div class="himsBoxHeader card-head">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <header>
                                                    <i class="fas fa-chart-bar"></i>
                                                    <asp:Label ID="Label1" runat="server" Text="Immunization Chart"></asp:Label>
                                                </header>
                                                
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent card-body">
                                        <div class="contentHolder">
                                            <asp:Panel ID="DetailPanel" runat="Server">
                                                <%--<div id="Div1" class="himssuHeader1WireBox" runat="server" visible="true" style="width: 99%; height:100%" >--%>
                                                <div class="himssuHeader7WireBox col-md-12 pb5 mt2" id="Div1" runat="server">
                                                    <div class="himsBoxHeader">
                                                        <div class="leftdiv">
                                                        </div>
                                                        <div class="himsBoxTitle">
                                                         
                                                            <div class="fRight mt-27 display-flex">
                                                                <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList"
                                                                    Width="80px" runat="server" AutoPostBack="false" class="form-control">
                                                                    <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>&nbsp;
                                                                <asp:Button ID="AddButton" runat="server"  OnClick="AddButton_Click" SkinID="0"
                                                                    Text="&#xf067; Add" class="btn btn-add fas"></asp:Button>
                                                                    
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent">
                                              
                                                       <div class="table-responsive">
                                                        <asp:GridView ID="ImmunizationChartGridView" runat="server"  AutoGenerateColumns="False"
                                                           CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="True" DataKeyNames="Id"
                                                            OnRowDataBound="ImmunizationChartGridView_OnRowDataBound" OnRowDeleting="ImmunizationChartGridView_RowDeleting">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="Name *" ItemStyle-Width="17%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="NameTextBox" runat="server" MaxLength="100" Text='<%# Bind("Title") %>'
                                                                            Width="150px" SkinID="CustomWidthTextBox"></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Disease" ItemStyle-Width="20%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="DiseaseTextBox" runat="server" Width="250px" SkinID="CustomWidthTextBox"
                                                                            Text='<%# Eval("Disease") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="From Age*" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="FromAgeTextBox" runat="server" Width="50px" SkinID="CustomWidthTextBox"
                                                                            onkeypress="return isNumberKey(event)" Text='<%# Eval("FromAge") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="To Age*" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="ToAgeTextBox" runat="server" Width="50px" SkinID="CustomWidthTextBox"
                                                                            onkeypress="return isNumberKey(event)" Text='<%# Eval("ToAge") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Duration Unit *" ItemStyle-Width="7%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="UnitDropDownList" runat="server" SkinID="CustomWidthDropDownList" class="form-control"
                                                                            Width="100px">
                                                                        </asp:DropDownList>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Remark" ItemStyle-Width="22%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="RemarkTextBox" runat="server" Width="250px" SkinID="CustomWidthTextBox"
                                                                            Text='<%# Eval("Remark") %>'></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="InActive" ItemStyle-Width="8%"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox ID="IsObsoleteCheckBox" runat="server" Checked='<%# Bind("IsObsolete") %>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField ShowHeader="true" HeaderText="Delete" HeaderStyle-HorizontalAlign="Center">
                                                                    <ItemTemplate>
                                                                        <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                          ImageUrl="~/Images/icons/icon_delete.gif"  ToolTip="Delete" />
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" Width="7%" />
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                           </div>
                                                        <%-- </div>--%>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                    </div>
                                </div>
                                
                            </div>
                        </tr>
                    </table>
                </div>
            </div>
            
        </ContentTemplate>
    </asp:UpdatePanel>
    <%-- <script data-main="../../JavaScript/rjs/encrypt/immunization-chart-encrypt" src="../../JavaScript/rjs/require.js"></script> --%>
     <script data-main='<%=ResolveUrl("~/JavaScript/rjs/immunization-chart")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script> 
</asp:Content>
