<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Components_Biometric_DeviceMaster, App_Web_fo2mhtxy" title="Device Master" 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/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="timePicker" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <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="whiteboxpaddingleft row">
                        <div class="himssuHeader2WireBox card card-box">
                            <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>
                                </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="lblrganization" Text="Device Code" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="txtdeviceCodeSerch" 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 id="Div1" class="himssuHeader1WireBox col-md-12 padd-0" runat="server">
                                            <div id="ReasonMasterDetailDiv" visible="false" runat="server">

                                                <div id="PatientRelationDiv" visible="false" runat="server">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <div class="fRight mt-27">
                                                            <uc1:GridViewPager ID="DeviceMasterGDV_GridViewPager" runat="server" OnFirstRecordClick="DeviceMasterGDV_GridViewPager_FirstRecordClick"
                                                                OnLastRecordClick="DeviceMasterGDV_GridViewPager_LastRecordClick" OnNextRecordClick="DeviceMasterGDV_GridViewPager_NextRecordClick"
                                                                OnPrevRecordClick="DeviceMasterGDV_GridViewPager_PrevRecordClick"
                                                                ParentGridView="DeviceMasterGDV" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent table-responsive">
                                                    <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                        <ContentTemplate>
                                                            <div id="Div5" runat="server" visible="false">
                                                                <asp:GridView ID="DeviceMasterGDV" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    OnRowDataBound="DeviceMasterGDV_RowDataBound" OnPageIndexChanging="DeviceMasterGDV_PageIndexChanging"
                                                                    AllowPaging="true" PageSize="5" SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                                    CssClass="table table-striped table-bordered" DataKeyNames="DeviceCode" 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="LinkButton_Click"
                                                                                    Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="Device ID" ItemStyle-Width="15%" SortExpression="DeviceID" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblDeviceID" runat="server" Text='<%# Bind("DeviceID") %>'></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="ShiftNameLabel" 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="StartTimeLabel" 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="EndTimeLabel" 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="Mode" 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="himssuHeader1WireBox  card card-box">
                            <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="ShiftMasterDetailLabel" runat="server" Text="Device Master"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </div>
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="lblDeviceCode" runat="server" Text="Device Code" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="txtDeviceCode" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" onkeypress="NumberOnly()" MaxLength="10" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="lblDeviceName" runat="server" Text="Device Name" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="txtDeviceName" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="10" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="lblDecviceIp" runat="server" Text="Device IP" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="txtDeviceIP" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="100" 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="lblPortnumver" runat="server" Text="Port Number" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div>
                                            <asp:TextBox ID="txtPortnumver" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="100" AutoPostBack="false" SkinID="CustomWidthTextbox" onkeypress="NumberOnly()"></asp:TextBox>
                                            <asp:HiddenField ID="HiddenField1" runat="server" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="lblDevicePassword" runat="server" Text="Device Password" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div>
                                            <asp:TextBox ID="txtDevicePassword" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="100" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                            <asp:HiddenField ID="HiddenField2" runat="server" />
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="lnlDeviceID" runat="server" Text="Device ID" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="txtDeviceID" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" AutoPostBack="false" SkinID="CustomWidthTextbox"
                                                onkeypress="NumberOnly()"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="lblDeviceMode" runat="server" Text="Device Mode" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="ddldeviceMode"  SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="lblDeviceCompany" runat="server" Text="Device Company" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="ddlDeviceCompany" SkinID="CustomWidthDropDownList" CssClass="form-control" runat="server">
                                                
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../../JavaScript/rjs/encrypt/shift-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/shift-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
