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

<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>


<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage">
                <div>
                    <div class="himssuHeader3WireBox">
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="166"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="row whiteboxpaddingleft">
                        <div class="himssuHeader2WireBox card card-box" id="SearchDiv" runat="server">
                            <div class="himsBoxHeader card-head">
                                <asp:Panel ID="Panel1" runat="server">
                                    <div class="leftdiv">
                                    </div>
                                    <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" SkinID="0"
                                                CssClass="btn btn-add fas" Text="&#xf067; Add" OnClick="AddNewButtonID_Click" />
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                            <div class="himsBoxContent card-body padd-0">
                                <asp:Panel ID="DetailPanel" runat="Server">
                                    <div class="contentHolder">
                                        <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DeviceCodeSearchLabel" Text="Device Code" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="DeviceSearchTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="Server"></asp:TextBox>
                                                </div>
                                            </div>

                                            <div class="alignCenter pTop5 col-md-12 pb5">
                                                <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click" SkinID="0" CssClass="btn btn-search fas" />
                                                <asp:Button ID="ResetButton" runat="server" Text="&#xf021; Reset" OnClick="ResetButton_Click" SkinID="0" CssClass="btn btn-reset fas" />
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                        </asp:Panel>

                                        <div class="col-md-12">
                                            <div id="Div1" class="himssuHeader1WireBox col-md-12 padd-0" runat="server">
                                                <div class="himsBoxContent table-responsive">
                                                    <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                        <ContentTemplate>
                                                            <%--  <div id="Div5" runat="server" visible="true">--%>
                                                            <asp:GridView ID="DeviceMasterGDV" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                AllowPaging="true" PageSize="50" SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                                CssClass="table table-striped table-bordered" DataKeyNames="AutoId" EmptyDataText="No Records Found!!!">
                                                                <Columns>
                                                                    <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="EditLinkButton_Click"
                                                                                Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Device Code" ItemStyle-Width="15%" SortExpression="DeviceCode" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="DeviceCodeLabel" runat="server" Text='<%# Bind("DeviceCode") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Device ID" ItemStyle-Width="15%" SortExpression="DeviceID" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="DeviceIdLabel" runat="server" Text='<%# Bind("DeviceID") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Device SRNo" ItemStyle-Width="15%" SortExpression="DeviceID" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="DeviceSrNoLabel" runat="server" Text='<%# Bind("DeviceSrNo") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Device IP" ItemStyle-Width="15%" SortExpression="DeviceIP" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="DeviceIPLabel" runat="server" Text='<%# Bind("DeviceIP") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Device Port" ItemStyle-Width="10%" SortExpression="DevicePort" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="DevicePortLabel" runat="server" Text='<%# Bind("DevicePort") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="DeviceName" ItemStyle-Width="10%" SortExpression="DeviceName" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="DeviceNameLabel" runat="server" Text='<%# Bind("DeviceName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Mode" ItemStyle-Width="15%" SortExpression="Mode" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ModeLabel" runat="server" Text='<%# Bind("Mode") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                            <%--  </div>--%>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                        <div class="himssuHeader2WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                            <div class="himsBoxHeader card-head">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-cog"></i>
                                            <asp:Label ID="DeviceMasterDetailLabel" runat="server" Text="Device Master Cloud"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27 pagination display-flex">
                                        <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                            <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton" OnClick="FirstRecordImageButton_Click"
                                                runat="server" CommandName="Page" CommandArgument="First"
                                                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" CommandName="Page" CommandArgument="Prev" OnClick="PreviousImageButton_Click"
                                                CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-play fa-rotate-180"></i>
                                            </asp:LinkButton>
                                            <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                            &nbsp; 
                                    <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                            &nbsp; 
                                    <asp:Label ID="ofLabel" Text="of" runat="server" />
                                            &nbsp;  
                                    <asp:Label ID="TotalRecord" runat="server" />
                                            &nbsp;
                                                <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom" OnClick="NextImageButton_Click"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Next">
                                                     <i class="fa fa-play"></i>
                                                </asp:LinkButton>

                                            <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton" OnClick="LastRecordImageButton_Click"
                                                runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Last">
                                                      <i class="fa fa-fast-forward" ></i>
                                            </asp:LinkButton>
                                            &nbsp;  &nbsp; &nbsp;
                                        </div>

                                        <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" />

                                    </div>
                                </div>
                            </div>
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <div class="outerBox pTop5 col-md-3" runat="server" visible="true">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DeviceCodeLabel" runat="server" Text="Device Code" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="DeviceCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DeviceNameLabel" runat="server" Text="Device Name" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="DeviceNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DeviceSRNoLabel" runat="server" Text="Device SR No." SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="DeviceSRNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DeviceIPLabel" runat="server" Text="Device IP" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="DeviceIPTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                            <asp:HiddenField ID="IdHiddenField" runat="server" />
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="PortNumberLabel" runat="server" Text="Port Number" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div>
                                            <asp:TextBox ID="PortNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DevicePasswordLabel" runat="server" Text="Device Password"></asp:Label>
                                        </div>
                                        <div>
                                            <asp:TextBox ID="DevicePasswordLabelTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DeviceIdLabel" runat="server" Text="Device ID"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="DeviceIdTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DeviceModeLabel" runat="server" Text="Device Mode" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="DeviceModeDropDownList" SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/device-master-cloud")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
