<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_FinancialManagement_AssetManagement_AssetMaster, App_Web_ovuixeqj" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DataPickerControl" TagPrefix="HIMS" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="Common" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <style type="text/css">
        input:disabled + input[type=image], input:read-only + a {
            pointer-events: visible;
            cursor: pointer !important;
        }

        #ctl00_CP_AssetCriteriaFormGridView tr:first-child {
            display: none;
        }

        #AssetCriteriaFormGridView.more {
            font-size: 16px;
            color: #252422;
        }
    </style>
    <asp:UpdatePanel ID="AssetMasterUpdatePanel" runat="server">
        <ContentTemplate>
            <div class="hls-bg"></div>
            <div id="dvMainLoadingmsg" class="hls-wrap">
                <div class="hls-container">
                    <div class="hls-content">
                        <div class="dsh-syndicate white-popup" style="display: inline-block; width: 119%; height: 150px">
                            <div class="shippingcard" style="text-align: center; vertical-align: middle; width: 100%;">
                                <span id="spnmain1msg">Loading Details</span><br>
                                <span style="line-height: 2;" id="spnmain2msg"><b>Please Wait ...</b></span><br>
                                <span id="spnloadingimgmain">
                                    <img src="../../../Images/Loading1.gif" /></span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <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="159"
                                            Visible="true" runat="server" />
                                        <%--</div>--%>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>

                <div class="whiteboxpaddingleft row">
                    <asp:HiddenField ID="UploadConfigurationHiddenField" runat="server" />
                    <asp:HiddenField ID="FileAttachmentSizeHiddenField" runat="server" />
                    <asp:HiddenField ID="AssetMasterHiddenField" runat="server" />
                    <asp:HiddenField ID="UserSourceTypeHiddenField" runat="server" />
                    <asp:HiddenField ID="UserSourceIdHiddenField" runat="server" />
                    <asp:HiddenField ID="GUIDHiddenField" runat="server" />
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel2" 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" 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="DetailPanel" runat="server" meta:resourcekey="DetailPanelResource1">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchCriteriaPanel" runat="server"
                                        meta:resourcekey="SearchCriteriaPanelResource1">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchCodeLabel" Text="Asset Tag" runat="server"
                                                    meta:resourcekey="SearchCodeLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchCodeTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" onkeypress="return fnKeyPressForNameField(event)"
                                                    onblur="return fnonTextChangeNameField(this)" MaxLength="50"
                                                    meta:resourcekey="SearchCodeTextBoxResource1"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchNameLabel" Text="Asset Name" runat="server"
                                                    meta:resourcekey="SearchNameLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchNameTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="100"
                                                    onkeypress="return fnKeyPressForNameField(event)"
                                                    onblur="return fnonTextChangeNameField(this)"
                                                    meta:resourcekey="SearchNameTextBoxResource1"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label6" Text="Department" runat="server"
                                                    meta:resourcekey="Label6Resource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchDepartmentDropDownList" SkinID="CustomWidthDropDownList" DataValueField="DepartmentID"
                                                    DataTextField="DepartmentTitle" CssClass="form-control" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="False" runat="server"
                                                    meta:resourcekey="DeptDropDownListResource1">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="LocationLabel" runat="server" Text="Location"
                                                    meta:resourcekey="LocationLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchLocationDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()"
                                                    meta:resourcekey="LocationDropDownListResource1">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <asp:Label ID="SearchCurrentLocationLabel" Text="Current Location" runat="server"
                                            Visible="False" meta:resourcekey="SearchCurrentLocationLabelResource1"></asp:Label>
                                        <asp:DropDownList ID="SearchLocationDropDownList1" DataTextField="Title" SkinID="CustomWidthDropDownList"
                                            CssClass="form-control" DataValueField="ID" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" Visible="False"
                                            meta:resourcekey="SearchLocationDropDownListResource1">
                                        </asp:DropDownList>

                                        <%--     <div class="alignCenter  pTop5">
                                                        <div class="controlLabelWidth">
                                                        </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="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click"
                                                CssClass="btn-examcommon btn fas" SkinID="0" />
                                            <%-- <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Clear" onblur="fnClearTabIndexChange()"
                                                OnClick="ResetButton_Click" SkinID="0" meta:resourcekey="ResetButtonResource1" class="btn-reset btn fas" />--%>
                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Clear" OnClick="ResetButton_Click"
                                                SkinID="0" class="btn-reset btn fas" />
                                        </div>
                                        <%-- </div--%>
                                    </asp:Panel>
                                    <div id="AssetMasterGridViewDiv" visible="False" runat="server">
                                        <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                            <div class="himsBoxHeader card-head inner" id="AssetMasterTotalDiv" runat="server">
                                                <div class="himsBoxTitle">
                                                    <div class="gridHeaderText">
                                                        <header>
                                                            <asp:Label ID="Label7" runat="server" Text="Asset Master"></asp:Label>
                                                        </header>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent col-md-12 pb5">
                                                <div class="col-md-5">
                                                    <asp:Label ID="RecordsPerPage" Text="Records per Page : " runat="server" />
                                                    <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList" Width="60px" runat="server"
                                                        AutoPostBack="true" OnSelectedIndexChanged="AddRowsToGridDropDownList_SelectedIndexChanged">
                                                        <asp:ListItem Text="10" Value="10" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                        <asp:ListItem Text="50" Value="50"></asp:ListItem>
                                                        <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                                <%--<div class="col-md-7">--%>
                                                <div align="right" class="fRight" style="margin-top: 0px;">
                                                    <uc1:GridViewPager ID="AssetMasterGridView_GridViewPager" runat="server" OnFirstRecordClick="AssetMasterGridView_GridViewPager_FirstRecordClick"
                                                        OnLastRecordClick="AssetMasterGridView_GridViewPager_LastRecordClick" OnNextRecordClick="AssetMasterGridView_GridViewPager_NextRecordClick"
                                                        OnPrevRecordClick="AssetMasterGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="AssetMasterGridView_GridViewPager_TextBoxValueChange"
                                                        ParentGridView="AssetMasterGridView" />
                                                </div>
                                                <%-- </div>--%>
                                            </div>
                                            <div class="himsBoxContent width-100 col-md-12">
                                                <div class="himsBoxContentMsg" id="GridMessageDiv" runat="server"
                                                    visible="False">
                                                </div>
                                                <div class="table-responsive">
                                                    <asp:GridView ID="AssetMasterGridView" runat="server" AutoGenerateColumns="False"
                                                        OnRowDataBound="AssetMasterGridView_RowDataBound" OnPageIndexChanging="AssetMasterGridView_PageIndexChanging"
                                                        ShowHeader="True" AllowPaging="True" PageSize="10"
                                                        DataKeyNames="Id" OnDataBinding="AssetMasterGridView_DataBinding"
                                                        meta:resourcekey="AssetMasterGridViewResource1"
                                                        CssClass="table table-bordered table-striped table-hover">
                                                        <Columns>
                                                            <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="EditLinkButton" runat="server" OnClick="LinkButton_Click" Text="Select"
                                                                        CausesValidation="False" CommandArgument='<%# Eval("Id") %>'
                                                                        meta:resourcekey="EditLinkButtonResource1"></asp:LinkButton>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="5%" />
                                                                <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Asset Tag" HeaderStyle-HorizontalAlign="Left"
                                                                meta:resourcekey="TemplateFieldResource2">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="NameLabel" runat="server" Text='<%# Bind("Code") %>'
                                                                        meta:resourcekey="NameLabelResource2"></asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="13%" />
                                                                <ItemStyle Width="5%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Asset Name" HeaderStyle-HorizontalAlign="Left"
                                                                meta:resourcekey="TemplateFieldResource3">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="AssetNameLabel" runat="server" Text='<%# Bind("Title") %>'
                                                                        meta:resourcekey="AssetNameLabelResource2"></asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="13%" />
                                                                <ItemStyle Width="10%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Asset Code" HeaderStyle-HorizontalAlign="Left"
                                                                meta:resourcekey="AssetCodeTemplateFieldResource3">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="AssetCodeLabel" runat="server" Text='<%# Bind("AssetCode") %>'
                                                                        meta:resourcekey="AssetCodeLabelResource2"></asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="13%" />
                                                                <ItemStyle Width="10%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Category" HeaderStyle-HorizontalAlign="Left"
                                                                meta:resourcekey="CategoryTemplateFieldResource3">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="CategoryLabel" runat="server" Text='<%# Bind("CategoryTitle") %>'
                                                                        meta:resourcekey="CategoryLabelResource2"></asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="13%" />
                                                                <ItemStyle Width="10%" />
                                                            </asp:TemplateField>

                                                            <asp:TemplateField HeaderText="Department" HeaderStyle-HorizontalAlign="Left"
                                                                meta:resourcekey="DepartmentTemplateFieldResource3">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="DepartmentLabel" runat="server" Text='<%# Bind("DepartmentTitle") %>'
                                                                        meta:resourcekey="DepartmentLabelResource2"></asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="13%" />
                                                                <ItemStyle Width="10%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Location" HeaderStyle-HorizontalAlign="Left"
                                                                meta:resourcekey="LocationTemplateFieldResource3">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="LocationLabel" runat="server" Text='<%# Bind("LocationTitle") %>'
                                                                        meta:resourcekey="LocationLabelResource3"></asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="13%" />
                                                                <ItemStyle Width="10%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Is Maintenance" HeaderStyle-HorizontalAlign="Left"
                                                                meta:resourcekey="MaintenanceTemplateFieldResource3">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="MaintenanceLabel" runat="server" Text='<%# (bool)Eval("IsMaintanaceDetail") == true ? "Y" : "N" %>'
                                                                        meta:resourcekey="MaintenanceLabelResource3"></asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="10%" />
                                                                <ItemStyle Width="10%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Check Required" HeaderStyle-HorizontalAlign="Left"
                                                                meta:resourcekey="CheckRequireTemplateFieldResource3">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="CheckRequireLabel" runat="server" Text='<%# (bool)Eval("IsCheckRequired") == true ? "Y" : "N" %>'
                                                                        meta:resourcekey="CheckRequireLabelResource3"></asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="10%" />
                                                                <ItemStyle Width="10%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Renew Required" HeaderStyle-HorizontalAlign="Left"
                                                                meta:resourcekey="RenewRequireTemplateFieldResource3">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="RenewRequireLabel" runat="server" Text='<%# (bool)Eval("IsRenewRequired") == true ? "Y" : "N" %>'
                                                                        meta:resourcekey="RenewRequireLabelResource3"></asp:Label>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="10%" />
                                                                <ItemStyle Width="10%" />
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <PagerSettings Visible="False" />
                                                    </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">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <i class="fas fa-info-circle"></i>
                                    <asp:Label ID="NewsDetailLabel" runat="server" Text="Asset Details"></asp:Label>
                                </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:ImageButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                                                OnClick="FirstRecordImageButton_Click" />
                                                            <asp:ImageButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                                                OnClick="PreviousImageButton_Click" />
                                                            <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" />
                                                            <asp:ImageButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                                runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                OnClick="NextImageButton_Click" />
                                                            <asp:ImageButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                                                OnClick="LastRecordImageButton_Click" />
                                                        </div>--%>
                                        </td>
                                        <td>
                                            <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="First Record"
                                                    ID="FirstRecordImageButton" runat="server" OnClick="FirstRecordImageButton_Click">
                                                       <i class="fa fa-fast-backward"></i>
                                                </asp:LinkButton>
                                                <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="Prevous Record"
                                                    ID="PreviousImageButton" runat="server" OnClick="PreviousImageButton_Click">
                                                       <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 CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="Next Record"
                                                        ID="NextImageButtom" runat="server" OnClick="NextImageButton_Click">
                                                       <i class="fa fa-play"></i>
                                                    </asp:LinkButton>
                                                <asp:LinkButton CssClass="btn btn-default gridviewpagerbuttonpadding" ToolTip="Last Record"
                                                    ID="LastRecordImageButton" runat="server" OnClick="LastRecordImageButton_Click">
                                                       <i class="fa fa-fast-forward"></i>
                                                </asp:LinkButton>
                                                &nbsp;&nbsp;&nbsp;  
                                            </div>
                                        </td>
                                        <td>
                                            <asp:Button ID="BackButton" class="btn btn-back fas" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                                Text="&#xf30a; Back" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>

                        <%--                                    <div class="himssuHeader1WireBox">--%>
                        <%--  <div class="himsBoxHeader">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle divcontentpagemargin note note1 box box-danger">
                                                <div class="headerText">
                                                    <asp:Label ID="AssetMasterDetailLabel" runat="server" Text="Asset Details"
                                                        meta:resourcekey="AssetMasterDetailLabelResource1"></asp:Label>
                                                </div>
                                            </div>
                                        </div>--%>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="CodeLabel" runat="server" Text="Asset Tag"
                                            meta:resourcekey="CodeLabelResource2"></asp:Label>
                                    </div>
                                    <div class="fLeft">
                                        <asp:TextBox ID="CodeTextBox" SkinID="CustomWidthTextBox" runat="server"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="50"
                                            AutoPostBack="True" OnTextChanged="CodeTextBox_TextChanged" onkeypress="return fnKeyPressForCodeField(event)"
                                            onblur="return fnonTextChangeCodeField(this)"
                                            meta:resourcekey="CodeTextBoxResource2"></asp:TextBox>
                                        <asp:HiddenField ID="IdHiddenField" runat="server" />
                                        <asp:HiddenField ID="IHiddenFieldAsset" runat="server" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="NameLabel" runat="server" Text="Name" SkinID="MandatoryLabel"
                                            meta:resourcekey="NameLabelResource3"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="NameTextBox" SkinID="CustomWidthTextBox" runat="server"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            MaxLength="100" onkeypress="return fnKeyPressForNameField(event)"
                                            onblur="return fnonTextChangeNameField(this)"
                                            meta:resourcekeAssetCodeLabely="NameTextBoxResource2"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3" runat="server" visible="false" id="AssetCodeDiv">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="AssetCodeLabel" runat="server" Text="Asset Code" SkinID="MandatoryLabel"
                                            meta:resourcekey="AssetCodeLabelResource2"></asp:Label>
                                    </div>
                                    <div class="fLeft">
                                        <asp:TextBox ID="AssetCodeTextBox" SkinID="CustomWidthTextBox" runat="server" Enabled="false"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="50"
                                            meta:resourcekey="AssetCodeTextBoxResource2"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="FACategoryCodeLabel" Text="Asset Category" SkinID="MandatoryLabel"
                                            runat="server" meta:resourcekey="FACategoryCodeLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="CategoryDropDownList" SkinID="CustomWidthDropDownList" CssClass="form-control"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" meta:resourcekey="CategoryDropDownListResource1">
                                        </asp:DropDownList>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ModelNumberLabel" Text="Model Number" runat="server"
                                            meta:resourcekey="ModelNumberLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft">
                                        <asp:TextBox ID="ModelNumberLabelTextBox" SkinID="CustomWidthTextBox"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" meta:resourcekey="ModelNumberLabelTextBoxResource1" MaxLength="50"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="NoofRecordsLabel" Text="Quantity" runat="server"
                                            SkinID="mandatoryLabel" meta:resourcekey="NoofRecordsLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="NoofRecordsTextBox" SkinID="CustomWidthTextBox" MaxLength="4"
                                            runat="server" onblur="javascript:return fnValidateInteger(this,5)" onKeypress="javascript:return MaskInteger(event,5)"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" ToolTip="Max value: 9999"
                                            Style="text-align: right;" meta:resourcekey="NoofRecordsTextBoxResource1"></asp:TextBox>
                                    </div>
                                </div>

                                <div class="outerBox11 Remark pTop5 col-md-3 divcontentpagemargin">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SpecificationLabel" runat="server" Text="Specification"
                                            meta:resourcekey="SpecificationLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft">
                                        <asp:TextBox ID="SpecificationTextBox" runat="server"
                                            TextMode="MultiLine" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            MaxLength="300" onKeypress="javascript:return fnMaxLength(this, 300)"
                                            onblur="javascript:return CheckLength(this, 300)"
                                            meta:resourcekey="SpecificationTextBoxResource1"></asp:TextBox>
                                    </div>
                                </div>

                                <div class="outerBox11 Remark pTop5 col-md-3 divcontentpagemargin">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="AccessoriesLabel" runat="server" Text="Accessories"
                                            meta:resourcekey="AccessoriesLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft">
                                        <asp:TextBox ID="AccessoriesTextBox" runat="server"
                                            TextMode="MultiLine" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            MaxLength="300" onKeypress="javascript:return fnMaxLength(this, 300)"
                                            onblur="javascript:return CheckLength(this, 300)"
                                            meta:resourcekey="AccessoriesTextBoxResource1"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="WarrantyDateLabel" Text="Warranty Date" runat="server"
                                            meta:resourcekey="WarrantyDateLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <HIMS:DataPickerControl autocompletetype="Disabled" ID="WarrantyDatePickerControl" runat="server" DisplayDatePicker="true" />
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                                <div class="outerBox pTop15 col-md-3">
                                    <div class="fLeft">
                                        <asp:CheckBox ID="FileAttachmentCheckBox" Text="File Attachment" runat="server" AutoPostBack="True" OnCheckedChanged="FileAttachmentCheckBox_CheckedChanged" />
                                    </div>
                                </div>

                                <div class="outerBox p-0 col-md-9">
                                    <div class="outerBox pTop5 col-md-4">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="AssetPhotoLabel" Text="Asset Photo" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5" id="Div3" runat="server">
                                            <asp:HiddenField ID="AttachmentSizeHiddenField" runat="server" />
                                            <a href="javascript:;" id="Imglink" onclick="OpenFileUpload();" class="btn btn-browser" runat="server">
                                                <i class="fa fa-arrow-down"></i>Browse</a>
                                            <asp:Button runat="server" ID="RefreshButton" Text="&#xf2f9; Refresh" OnClick="RefreshButton_OnClick"
                                                SkinID="0" CssClass="btn-assign btn fas" />
                                            <asp:Button ID="DeletePhotoButton" runat="server" Text="&#xf2ed; Delete" CssClass="fas btn btn-delete"
                                                SkinID="0" OnClick="DeletePhotoButton_Click" />
                                            <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" AllowMultiple="false" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-2">
                                        <asp:Image ID="Assetimage" runat="server" Height="60px" Width="60px" AlternateText="" />
                                    </div>
                                    <div class="controlLabelWidth mt-2">
                                        <asp:HiddenField ID="UploadLabelHiddenField" runat="server" />
                                        <asp:Label runat="server" ID="UploadLabel" Text=""></asp:Label>
                                    </div>
                                </div>

                                <div class="cBoth">
                                </div>
                                <div id="FileUploaddiv" visible="False" runat="server">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <a href="javascript:;" id="AttachmentImglink" onclick="OpenFileUpload1();" class="btn btn-browser" runat="server">
                                                <i class="fa fa-arrow-down"></i>Browse</a>
                                            <asp:FileUpload ID="FileUpload" runat="server" onChange="readURL1(this);" ClientIDMode="Static" Style="display: none;" />
                                            <asp:Button runat="server" ID="RefreshAttachmentButton" Text="&#xf2f9; Refresh" OnClick="RefreshAttachmentButton_Click"
                                                SkinID="0" CssClass="btn btn-refresh fas" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:HiddenField ID="AttachmentUploadHiddenField" runat="server" />
                                            <asp:Label ID="AttachmentUploadLabel" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div class="pTop5 col-md-12">
                                        <div class="alert alert-info">
                                            <i class="material-icons pos-rel">info</i> |&nbsp;
                                        <asp:Label ID="Label9" Text="Click on refresh button to view current uploaded Files"
                                            runat="server" />
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div id="Div11" class="himssuHeader6WireBox col-md-12" runat="server"
                                        style="width: 100%; margin-right: 5px;">
                                        <div id="UploadDiv" visible="False" runat="server">
                                            <div class="spacer">
                                                <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/spacer.gif" />
                                            </div>
                                            <div class="himsBoxContent">
                                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                    <ContentTemplate>
                                                        <div id="GridViewDiv" runat="server" visible="false">
                                                            <div id="Div2" runat="server" class="table-responsive">
                                                                <asp:GridView ID="FileGridView" runat="server" Width="100%" CssClass="table table-striped table-bordered table-hover"
                                                                    AutoGenerateColumns="False" ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Files Uploaded">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="File Name" ItemStyle-Width="90%" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:HyperLink ID="FileNameHyperLink" runat="server" Text='<%# Eval("FileName") %>'
                                                                                    NavigateUrl='<%# Eval("FilePath") %>' Target="_blank"></asp:HyperLink>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                            ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:ImageButton ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                                    ImageUrl="~/Images/delete.png" ToolTip="Delete" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="himssuHeader1WireBox" style="display: none">
                                    <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <asp:Label ID="AdditionalInformationLabel" runat="server"
                                                    Text="Additional Information"
                                                    meta:resourcekey="AdditionalInformationLabelResource1"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent width-100">
                                        <div class="contentHolder">
                                            <table>
                                                <tr>
                                                    <td class="formLabel">
                                                        <asp:Label ID="StatusLabel" Text="Status:" runat="server"
                                                            meta:resourcekey="StatusLabelResource1"></asp:Label>
                                                    </td>
                                                    <td style="width: 10%">
                                                        <asp:Label ID="StatusDisplayLabel" runat="server"
                                                            meta:resourcekey="StatusDisplayLabelResource1"></asp:Label>
                                                    </td>
                                                    <td class="formLabel pLeft40">
                                                        <asp:Label ID="DocumentNumberLabel" Text="Document No:" runat="server"
                                                            meta:resourcekey="DocumentNumberLabelResource1"></asp:Label>
                                                    </td>
                                                    <td style="width: 20%">
                                                        <asp:Label ID="DocumentNumberDisplayLabel" runat="server"
                                                            meta:resourcekey="DocumentNumberDisplayLabelResource1"></asp:Label>
                                                    </td>
                                                    <td class="formLabel pLeft40">
                                                        <asp:Label ID="DocumentDateLabel" Text="Document Date:" runat="server"
                                                            meta:resourcekey="DocumentDateLabelResource1"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="DocumentDateDisplayLabel" runat="server"
                                                            meta:resourcekey="DocumentDateDisplayLabelResource1"></asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div id="Div" class="himssuHeader1WireBox" visible="False" runat="server">
                                <div class="himsBoxHeader">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-cog"></i>
                                                <asp:Label ID="MaintenanceInformationLabel" runat="server"
                                                    Text="Maintenance Information"
                                                    meta:resourcekey="MaintenanceInformationLabelResource1"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent width-100">
                                    <div class="contentHolder">
                                        <table cellpadding="0" cellspacing="0" style="width: 0%!important;">
                                            <tr>
                                                <td class="formLabel">
                                                    <asp:Label ID="VendorCodeLabel" Text="Vendor Name" SkinID="MandatoryLabel"
                                                        runat="server" meta:resourcekey="VendorCodeLabelResource1"></asp:Label>
                                                </td>
                                                <td>
                                                    <div class="fLeft display-flex">
                                                        <acc:AutoCompleteControl ID="VendorNameAutoCompleteControl" runat="server" MinimumPrefixLength="2"
                                                            FirstRowSelected="true" ContextKey="Maintenance.VendorName" AutoPostBack="true"
                                                            DisplayLoadingStatus="true" AutoComplete="On" ValidateOnTextChanged="true" />
                                                    </div>
                                                    <asp:ImageButton ID="VendorNameImageButton" SkinID="FindImage" ToolTip="Vendor Code Search"
                                                        runat="server" OnClick="VendorNameImageButton_Click"
                                                        meta:resourcekey="VendorNameImageButtonResource1" />
                                                </td>
                                            </tr>

                                            <tr>
                                                <td class="formLabel">
                                                    <asp:Label ID="GRNNoLabel" Text="IRN No" SkinID="MandatoryLabel" runat="server"
                                                        meta:resourcekey="GRNNoLabelResource1"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="GoodsReceiptNumberTextBox" SkinID="CustomWidthTextBox"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="20"
                                                        runat="server" meta:resourcekey="GoodsReceiptNumberTextBoxResource1"></asp:TextBox>
                                                </td>
                                                <td class="formLabel pLeft40">
                                                    <asp:Label ID="GRNDateLabel" Text="IRN Date" SkinID="MandatoryLabel"
                                                        runat="server" meta:resourcekey="GRNDateLabelResource1"></asp:Label>
                                                </td>
                                                <td>
                                                    <HIMS:DataPickerControl autocompletetype="Disabled" ID="GoodsReceiptDateTextBox"
                                                        runat="server" autopostback="true" DisplayDatePicker="true" />
                                                </td>
                                            </tr>

                                            <tr>
                                                <td class="formLabel">
                                                    <asp:Label ID="VendorInvoiceNoLabel" Text="Vendor Invoice No" runat="server"
                                                        meta:resourcekey="VendorInvoiceNoLabelResource1"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="VendorInvoiceNoDisplayLabel" runat="server"
                                                        meta:resourcekey="VendorInvoiceNoDisplayLabelResource1"></asp:Label>
                                                </td>
                                                <td class="formLabel pLeft40">
                                                    <asp:Label ID="VendorInvoiceDateLabel" Text="Vendor Invoice Date"
                                                        runat="server" meta:resourcekey="VendorInvoiceDateLabelResource1"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="VendorInvoiceDateDisplayLabel" runat="server"
                                                        meta:resourcekey="VendorInvoiceDateDisplayLabelResource1"></asp:Label>
                                                </td>
                                            </tr>

                                            <tr>
                                                <td class="formLabel">
                                                    <asp:Label ID="InstallationRequiredLabel" Text="Installation Required" SkinID="MandatoryLabel"
                                                        runat="server" meta:resourcekey="InstallationRequiredLabelResource1"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="InstallationRequiredDropDownList" DataTextField="Title" SkinID="CustomWidthDropDownList"
                                                        Width="100px" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        runat="server" AutoPostBack="True"
                                                        meta:resourcekey="InstallationRequiredDropDownListResource1">
                                                    </asp:DropDownList>
                                                </td>
                                                <td class="formLabel pLeft40">
                                                    <asp:Label ID="InstallationDateLabel" Text="Installation Date" runat="server"
                                                        meta:resourcekey="InstallationDateLabelResource1"></asp:Label>
                                                </td>
                                                <td>
                                                    <HIMS:DataPickerControl autocompletetype="Disabled" ID="InstallationDateTextBox"
                                                        runat="server" autopostback="true" DisplayDatePicker="true" />
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </div>
                            </div>

                            <div class="himssuHeader1WireBox" visible="false">
                                <div class="himsBoxHeader card-head inner">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>

                                                <asp:Label ID="Label1" runat="server" Text="Maintenance Details"
                                                    meta:resourcekey="Label1Resource1"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent width-100">
                                    <div class="contentHolder">
                                        <div class="outerBox pTop15 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:CheckBox ID="chkIsmaintananceDetails" runat="server" Text="Is Maintenance" meta:resourcekey="IsMaintananceCheckBoxResource1"></asp:CheckBox>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="contentHolder pTop5">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ServiceEntryLabel" Text="Service Entry" runat="server"
                                                    SkinID="MandatoryLabel" meta:resourcekey="ServiceEntryLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft">
                                                <HIMS:DataPickerControl ID="ServiceEntryTextBoxDatePicker" Width="100px" DisplayDatePicker="true"
                                                    runat="server" Autopostback="True" OnTextChanged="ServiceEntryTextBoxDatePicker_TextChanged" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="MaintenancePeriodLabel" Text="Maintenance Period (Days)"
                                                    runat="server"
                                                    SkinID="MandatoryLabel" meta:resourcekey="MaintenancePeriodLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="MaintenancePeriodTextBox" SkinID="CustomWidthTextBox"
                                                    MaxLength="5" runat="server" onblur="javascript:return fnValidateInteger(this,5)"
                                                    onKeypress="javascript:return MaskInteger(event,5)" Style="text-align: right;"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnTextChanged="MaintenancePeriodTextBox_TextChanged"
                                                    AutoPostBack="True" meta:resourcekey="MaintenancePeriodTextBoxResource1"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="MaintenanceAlertPeriodLabel" Text="Alert Period (Days)" runat="server"
                                                    SkinID="MandatoryLabel"
                                                    meta:resourcekey="MaintenanceAlertPeriodLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="MaintenanceAlertPeriodTextBox" SkinID="CustomWidthTextBox"
                                                    MaxLength="5" runat="server" onblur="javascript:return fnValidateInteger(this,5)"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" onKeypress="javascript:return MaskInteger(event,5)"
                                                    Style="text-align: right;"
                                                    meta:resourcekey="MaintenanceAlertPeriodTextBoxResource1"></asp:TextBox>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label2" Text="Current Department" runat="server"
                                                    SkinID="MandatoryLabel" meta:resourcekey="Label2Resource1"></asp:Label>
                                            </div>
                                            <div class="fLeft">
                                                <asp:DropDownList ID="DeptDropDownList" SkinID="CustomWidthDropDownList" DataValueField="DepartmentID"
                                                    DataTextField="DepartmentTitle" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="false" CssClass="form-control"
                                                    runat="server" meta:resourcekey="DeptDropDownListResource1">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="CurrentLocationLabel" Text="Current Location" runat="server"
                                                    SkinID="MandatoryLabel" meta:resourcekey="CurrentLocationLabelResource2"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="LocationDropDownList" DataTextField="Title" SkinID="CustomWidthDropDownList"
                                                    DataValueField="ID" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    OnSelectedIndexChanged="Fill_Location_Dropdown" runat="server" CssClass="form-control"
                                                    meta:resourcekey="LocationDropDownListResource2">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="UsageStatusLabel" Text="Usage Status" runat="server"
                                                    meta:resourcekey="UsageStatusLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="UsageStatusDropDownList" DataTextField="Title" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    runat="server" AutoPostBack="True"
                                                    meta:resourcekey="UsageStatusDropDownListResource1">
                                                    <asp:ListItem Selected="True" Value="121" Text="Spare"
                                                        meta:resourcekey="ListItemResource1" />
                                                    <asp:ListItem Value="122" Text="Deployed"
                                                        meta:resourcekey="ListItemResource2" />
                                                    <asp:ListItem Value="123" Text="Maintenance"
                                                        meta:resourcekey="ListItemResource3" />
                                                    <asp:ListItem Value="124" Text="Retired" meta:resourcekey="ListItemResource4" />
                                                    <asp:ListItem Value="125" Text="Removed" meta:resourcekey="ListItemResource5" />
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="fLeft">
                                                <asp:CheckBox ID="IsCriticalCheckBox" runat="server"
                                                    meta:resourcekey="IsCriticalCheckBoxResource1" Text="Is Critical"></asp:CheckBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="fLeft">
                                                <asp:CheckBox ID="CheckBoxIsAmc" Text="Is Amc" AutoPostBack="True" runat="server"
                                                    OnCheckedChanged="CheckBoxIsAmc_CheckedChanged"
                                                    meta:resourcekey="CheckBoxIsAmcResource1"></asp:CheckBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="AmcVendorIdLabel" Text="AmcVendor" runat="server" SkinID="MandatoryLabel"
                                                    Visible="False" meta:resourcekey="AmcVendorIdLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <acc:AutoCompleteControl ID="AmcVendorAutoComplete" runat="server" MinimumPrefixLength="2"
                                                    FirstRowSelected="true" ContextKey="Procurement.VendorName" AutoPostBack="true"
                                                    Visible="False" DisplayLoadingStatus="true"
                                                    AutoComplete="On" ValidateOnTextChanged="true" />
                                                <asp:ImageButton ID="AmcVendorAutoCompleteImageButton" SkinID="FindImage" ToolTip="Vendor Code Search"
                                                    runat="server" OnClick="AmcVendorAutoCompleteImageButton_Click"
                                                    Visible="False" meta:resourcekey="AmcVendorAutoCompleteImageButtonResource1" />
                                            </div>
                                        </div>
                                        <div class="cBoth"></div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="LastServiceCostLabel" Text="Last Service Cost" runat="server"
                                                    meta:resourcekey="LastServiceCostLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft">
                                                <asp:TextBox ID="LastServiceCostTextBox" SkinID="DisabledTextbox" ReadOnly="True"
                                                    runat="server" meta:resourcekey="LastServiceCostTextBoxResource1" MaxLength="23" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="TotalServiceCostLabel" Text="Total Service Cost" runat="server"
                                                    meta:resourcekey="TotalServiceCostLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="TotalServiceCostTextBox" SkinID="DisabledTextbox"
                                                    ReadOnly="True" runat="server"
                                                    meta:resourcekey="TotalServiceCostTextBoxResource1" MaxLength="23" />
                                            </div>
                                        </div>

                                        <asp:Label ID="LastDownTimeLabel" Visible="False" Text="Last Down Time"
                                            runat="server" meta:resourcekey="LastDownTimeLabelResource1"></asp:Label>
                                        <asp:Label ID="LastDownTimeTextBox" Visible="False" runat="server"
                                            meta:resourcekey="LastDownTimeTextBoxResource1"></asp:Label>
                                        <asp:Label ID="TotalDownTimeLabel" Visible="False" Text="Total Down Time"
                                            runat="server" meta:resourcekey="TotalDownTimeLabelResource1"></asp:Label>
                                        <asp:Label ID="TotalDownTimeTextBox" Visible="False" runat="server"
                                            meta:resourcekey="TotalDownTimeTextBoxResource1"></asp:Label>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="LastMaintenanceDateLabel" Text="Last Maintenance Date"
                                                    runat="server" meta:resourcekey="LastMaintenanceDateLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft">
                                                <asp:TextBox ID="LastMaintenanceDataPickerControl" SkinID="DisabledTextbox"
                                                    ReadOnly="True" runat="server"
                                                    meta:resourcekey="LastMaintenanceDataPickerControlResource1" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="TotalMaintenanceDateLabel" Text="Next Maintenance Date"
                                                    runat="server" meta:resourcekey="TotalMaintenanceDateLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="TotalMaintenanceDataPickerControl1" SkinID="DisabledTextbox"
                                                    ReadOnly="True" runat="server"
                                                    meta:resourcekey="TotalMaintenanceDataPickerControl1Resource1" />
                                            </div>
                                        </div>

                                    </div>
                                </div>
                            </div>

                            <%-- </div>--%>

                            <asp:Label ID="MinStockRequiredLabel" Text="Min Stock" runat="server" SkinID="MandatoryLabel"
                                Visible="False" meta:resourcekey="MinStockRequiredLabelResource1"></asp:Label>
                            <asp:TextBox ID="MinStockRequiredTextbox" SkinID="CustomWidthTextBox"
                                MaxLength="5" runat="server" onblur="javascript:return fnValidateInteger(this,5)"
                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" onKeypress="javascript:return MaskInteger(event,5)"
                                Style="text-align: right;" Visible="False" Text="0"
                                meta:resourcekey="MinStockRequiredTextboxResource1"></asp:TextBox>


                            <div class="himsBoxHeader card-head inner">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <asp:Label ID="Label4" runat="server" Text="Checked Details" meta:resourcekey="Label4Resource1"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </div>
                            <div class="outerBox pTop15 col-md-3">
                                <div class="fLeft pRight5">
                                    <asp:CheckBox ID="IsCheckRequiredCheckBox" runat="server" Text="Check Required" meta:resourcekey="IsCheckRequiredCheckBoxResource1"></asp:CheckBox>
                                </div>
                            </div>

                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="CheckFrequencyIdLabel" Text="Check Frequency" runat="server"
                                        meta:resourcekey="CheckFrequencyIdLabelResource1"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:DropDownList ID="CheckFrequencyDropDownList" CssClass="form-control"
                                        runat="server" meta:resourcekey="CheckFrequencyDropDownListResource1" />
                                </div>
                            </div>
                            <div class="outerBox11 pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="CheckListLabel" Text="Check List" runat="server" meta:resourcekey="CheckListLabelResource1"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:TextBox ID="CheckListTextBox" SkinID="MultilineTextBox" TextMode="MultiLine"
                                        runat="server" meta:resourcekey="CheckListResource1"
                                        MaxLength="300" />
                                </div>
                            </div>
                            <div class="cBoth"></div>
                            <div class="pTop15">
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="CheckedLastDateLabel" Text="Checked LastDate" runat="server"
                                            meta:resourcekey="CheckedLastDateLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <HIMS:DataPickerControl autocompletetype="Disabled" ID="CheckedLastDateDataPickerControl" runat="server" DisplayDatePicker="true" />
                                        <%-- <asp:TextBox ID="CheckedLastDateDataPickerControl" SkinID="DisabledTextbox" Width="150px"
                                                            ReadOnly="True" runat="server" meta:resourcekey="CheckedLastDateDataPickerControlResource1" />--%>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="CheckedByUserIdLabel" Text="Checked By UserId" runat="server"
                                            meta:resourcekey="CheckedByUserIdLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="CheckedByUserIdTextBox" SkinID="DisabledTextbox"
                                            ReadOnly="True" runat="server" meta:resourcekey="CheckedByUserIdTextBoxResource1" />
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="CheckedStatusLabel" Text="Checked status" runat="server" Enabled="false"
                                            meta:resourcekey="CheckedByUserIdLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="CheckedStatusDropDownList" CssClass="form-control"
                                            Enabled="false" runat="server" meta:resourcekey="CheckedStatusDropDownListResource1" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="CheckedRemarkLabel" Text="Checked Remark" runat="server"
                                            meta:resourcekey="CheckedRemarkLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="CheckedRemarkTextBox" SkinID="DisabledTextbox"
                                            ReadOnly="True" runat="server" MaxLength="200" meta:resourcekey="CheckedRemarkTextBoxResource1" />
                                    </div>
                                </div>
                            </div>
                            <div class="himsBoxHeader card-head inner">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>

                                            <asp:Label ID="Label5" runat="server" Text="Renew Details" meta:resourcekey="Label5Resource1"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </div>
                            <div class="outerBox pTop15 col-md-3">
                                <div class="fLeft">
                                    <asp:CheckBox ID="IsRenewRequiredCheckBox" Text="Renew Required" runat="server" meta:resourcekey="IsRenewRequiredCheckBoxResource1"></asp:CheckBox>
                                </div>
                            </div>

                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="RenewDateLabel4" Text="Renew LastDate" runat="server"
                                        meta:resourcekey="CheckedLastDateLabelResource1"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <HIMS:DataPickerControl ID="RenewLastDatePickerControl"
                                        runat="server" meta:resourcekey="RenewLastDatePickerControlResource1" DisplayDatePicker="true" />
                                </div>
                            </div>
                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="RNextLabel4" Text="Renew NextDate" runat="server"
                                        meta:resourcekey="RNextLabel4Resource1"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <HIMS:DataPickerControl ID="RenewNextDatePickerControl" DisplayDatePicker="true"
                                        runat="server" meta:resourcekey="RenewNextDatePickerControlResource1" />
                                </div>
                            </div>

                            <div class="outerBox11 col-md-12 pTop5">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="RenewRemarkLabel" Text="Renew Remark" runat="server" meta:resourcekey="RenewRemarkLabelResource1"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:TextBox ID="RenewRemarkTextBox" SkinID="MultilineTextBox" TextMode="MultiLine"
                                        runat="server" meta:resourcekey="RenewRemarkResource1" Height="40"
                                        MaxLength="300" />
                                </div>
                            </div>

                            <div class="outerBox11 pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="RenewCheckListLabel" Text="Renew CheckList" runat="server" meta:resourcekey="RenewCheckListLabelResource1"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:TextBox ID="RenewCheckListTextBox" SkinID="MultilineTextBox" TextMode="MultiLine"
                                        runat="server" meta:resourcekey="RenewCheckListResource1"
                                        MaxLength="300" />
                                </div>
                            </div>
                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="RenewAlertBeforeDaysLabel" Text="Renew Alert BeforeDays" runat="server"
                                        meta:resourcekey="RenewAlertBeforeDaysLabelResource1"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:TextBox ID="RenewAlertBeforeDaysTextBox" SkinID="CustomWidthTextBox"
                                        runat="server" meta:resourcekey="RenewAlertBeforeDaysTextBoxResource1" onblur="javascript:return MaskInteger(event,5) " onKeypress="javascript:return MaskInteger(event,5)" />
                                </div>
                            </div>

                            <div class="himsBoxHeader card-head inner">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <asp:Label ID="Label8" runat="server" Text="Asset Custom Fields" meta:resourcekey="Label5Resource1"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-12 bg-white">
                                <div class="table-responsive padd-5">
                                    <asp:GridView runat="server" ID="AssetCriteriaFormGridView" AutoGenerateColumns="False"
                                        EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="AssetCriteriaFormGridView_RowDataBound"
                                        AllowPaging="false" DataKeyNames="Id,FieldTypeId,FieldList,IsFieldMandatory,FieldData,AutoId" ShowHeader="true"
                                        CssClass="table table-striped table-bordered table-hover more" Oncol-lg-12DataBound="AssetCriteriaFormGridView_col-lg-12DataBound">
                                        <Columns>
                                            <asp:BoundField DataField="FieldGroup" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" />
                                            <asp:BoundField DataField="FieldTitle" ItemStyle-Width="40%" HeaderStyle-HorizontalAlign="Left" />
                                            <asp:TemplateField HeaderText="" ItemStyle-Width="5%" SortExpression="IsFieldMandatory"
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                <ItemTemplate>
                                                    <asp:Label ID="IsFieldMandatoryLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsFieldMandatory").ToString().ToUpper()=="TRUE"?"*":"" %>' class="text-red font-23"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField ItemStyle-Width="40%" HeaderText="" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                <ItemTemplate>

                                                    <asp:DropDownList ID="FieldTypeDropDownList" runat="server" Visible="false" CssClass="form-control" Width="98%"></asp:DropDownList>
                                                    <asp:TextBox ID="FieldTypeTextBox" runat="server" Visible="false" TextMode="MultiLine" CssClass="form-control" Height="50px"></asp:TextBox>

                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <PagerSettings Visible="False" />
                                    </asp:GridView>
                                </div>
                            </div>
                            <br />
                        </div>
                    </div>
                </div>
            </div>




            <%--<div class="whitebox">
                                <div class="himssuHeader2WireBox">
                                    <div class="himsBoxHeader">
                                        <asp:Panel ID="Panel1" runat="server" meta:resourcekey="Panel1Resource1">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle note note1 box box-danger">
                                                <asp:Image ID="Image2" runat="server" class="fLeft"
                                                    meta:resourcekey="Image2Resource1" />
                                                <div class="headerText">
                                                    <asp:Label ID="SearchLabel" runat="server" Text="Search"
                                                        meta:resourcekey="SearchLabelResource1"></asp:Label>
                                                    <cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" TargetControlID="DetailPanel"
                                                        ExpandControlID="Image2" CollapseControlID="Image2" TextLabelID="Label3" Collapsed="True"
                                                        ImageControlID="Image2" ExpandedImage="~/images/buttonCollapse.gif"
                                                        CollapsedImage="~/images/buttonExpand.gif" Enabled="True" />
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>

                                </div>
                                <div class="spacer">
                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif"
                                        meta:resourcekey="Image1Resource1" />
                                </div>
                             
                            </div>--%>
                    
            </div>
            </div>
            
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="Imglink" />
            <asp:PostBackTrigger ControlID="AttachmentImglink" />
        </Triggers>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/asset-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/asset-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">
        function FormatIt(obj) {
            if (obj.value.length == 2)
                obj.value = obj.value + "/";
            if (obj.value.length == 5)
                obj.value = obj.value + "/";
        }
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode;
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;
            return true;
        }
    </script>
</asp:Content>
