<%@ page language="C#" autoeventwireup="true" inherits="Forms_ItemMaster, App_Web_f1guidzd" enableeventvalidation="false" %>

<%@ Register Src="~/UserControls/Notification_List.ascx" TagPrefix="uc3" TagName="NotificationsList" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/TrinetraGrid.ascx" TagName="FleetGrid" TagPrefix="uc5" %>
<%@ Register Src="~/UserControls/TrinetraGrid.ascx" TagName="EmailGrid" TagPrefix="uc4" %>
<%@ Register Src="~/UserControls/New_Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/New_Footer.ascx" TagName="Footer" TagPrefix="uc2" %>
<%--<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>--%>
<%--<%@ Register Assembly="DevExpress.Web.v8.2, Version=8.2.10.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxMenu" TagPrefix="dxm" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v8.2" Namespace="DevExpress.Web.ASPxGridView"
    TagPrefix="dxgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v8.2, Version=8.2.10.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v8.2" Namespace="DevExpress.Web.ASPxEditors"
    TagPrefix="dxe" >%
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v8.2.Export" Namespace="DevExpress.Web.ASPxGridView.Export"
    TagPrefix="exp" %>
<%@ Register Assembly="DevExpress.Web.v8.2" Namespace="DevExpress.Web.ASPxPopupControl"
    TagPrefix="dxpc" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v8.2, Version=8.2.10.0, Culture=neutral, PublicKeyToken=9B171C9FD64DA1D1"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>--%>
<%@ Register Assembly="DevExpress.Web.v14.2" Namespace="DevExpress.Web" TagPrefix="dxw" %>
<!DOCTYPE html>
<html lang="en">
<head runat="server">
    <title>tSense-IoT Item Master</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <%--<meta http-equiv="Page-Enter" content="blendTrans(Duration=0)" />
    <meta http-equiv="Page-Exit" content="blendTrans(Duration=0)" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />--%>
    <link href="../css/CustomeAlert/demos.css" rel="stylesheet" type="text/css" />
    <link href="../css/CustomeAlert/themes/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <link id="reset" runat="server" href="../css/reset.css" rel="stylesheet" type="text/css" />
    <link id="stylesheet2" runat="server" href="../css/stylesheet2.css" rel="stylesheet" type="text/css" />
    <link id="dropdown" runat="server" href="../css/dropdown.css" rel="stylesheet" type="text/css" />
    <link rel="icon" href="../NewDesign/img/favicon.png" type="image/x-icon">
    <link href="../NewDesign/css/bootstrap.css" rel="stylesheet" />
    <link href="../NewDesign/css/font-awesome.css" rel="stylesheet" />
    <link href="../NewDesign/css/responsive.css" rel="stylesheet" />
    <link href="../NewDesign/css/style.css" rel="stylesheet" />
    <script src="../NewDesign/js/jquery.min.js"></script>
    <script src="../js/jquery-3.3.1.min.js"></script>
    <script src="../NewDesign/js/bootstrap.min.js"></script>
    <script src="../NewDesign/js/jquery.js"></script>
    <script src="../NewDesign/js/script.js"></script>
    <link href="../NewDesign/font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet" />
    <link href="../NewDesign/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet" />
    <link id="ieonly" runat="server" rel="stylesheet" type="text/css" href="" />
    <link id="datepicker" runat="server" type="text/css" href="../css/ui.datepicker.css" rel="stylesheet" />
    <link id="uicore" runat="server" type="text/css" href="../css/ui.core.css" rel="stylesheet" />
    <link id="Link1" runat="server" type="text/css" href="../css/ui.theme.css" rel="stylesheet" />
    <%--<link runat="server" type="text/css" href="~/css/bootstrap.css" rel="stylesheet" />--%>
    <%--Custom Theme for DevEx 14.2--%>
    <link id="GridView" runat="server" type="text/css" href="~/App_Themes/Office2003Blue/GridView/grid.css" rel="stylesheet" />
    <link id="Editors" runat="server" type="text/css" href="~/App_Themes/Office2003Blue/Editors/styles.css" rel="stylesheet" />
    <%--********* For Bootstrap Implementation *************--%>
    <%--<link id="BootStrapCss" href="../css/bootstrap.css" runat="server" rel="stylesheet" type="text/css" />--%>
    <link id="mainstyle" runat="server" href="../css/mainstyle.css" rel="stylesheet" type="text/css" />
    <%--********* End of Bootstrap Implementation *************--%>
    <script src="../js/CustomAlert/jquery.min.js" type="text/javascript"></script>
    <script src="../js/CustomAlert/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
    <script src="../js/CustomAlert/jquery-ui-1.10.3.custom.js" type="text/javascript"></script>
    <script src="../js/CustomAlert/CustomAlert.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/jquery-1.5.1.min.js"></script>
    <script type="text/javascript" src="../js/ui.datepicker.js"></script>
    <script type="text/javascript" src="../js/JQQueryDatePicker.js"></script>
    <script lang="JavaScript1.2" type="text/javascript" src="../js/myformvalidations.js"></script>
    <%--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>--%>
    <script src="../JQTimePicker/jquery-2.1.1.min.js"></script>
    <style>
        body {
            font-family: Arial, Helvetica, sans-serif;
        }

        #imgItemImage {
            border-radius: 5px;
            cursor: pointer;
            transition: 0.3s;
        }

            #imgItemImage:hover {
                opacity: 0.7;
            }
        /* The Modal (background) */
        .modal {
            display: none; /* Hidden by default */
            position: fixed; /* Stay in place */
            z-index: 1; /* Sit on top */
            padding-top: 100px; /* Location of the box */
            left: 0;
            top: 0;
            /*width: 100%;*/ /* Full width */
            /*height: 100%;*/ /* Full height */
            overflow: auto; /* Enable scroll if needed */
            background-color: rgb(0,0,0); /* Fallback color */
            background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
        }
        /* Modal Content (image) */
        .modal-content {
            margin: auto;
            display: block;
            /*width: 80%;
            max-width: 700px;*/
        }
        /* Caption of Modal Image */
        #caption {
            margin: auto;
            display: block;
            width: 80%;
            max-width: 700px;
            text-align: center;
            color: #ccc;
            padding: 10px 0;
            height: 150px;
        }
        /* Add Animation */
        .modal-content, #caption {
            -webkit-animation-name: zoom;
            -webkit-animation-duration: 0.6s;
            animation-name: zoom;
            animation-duration: 0.6s;
        }

        @-webkit-keyframes zoom {
            from {
                -webkit-transform: scale(0);
            }

            to {
                -webkit-transform: scale(1);
            }
        }

        @keyframes zoom {
            from {
                transform: scale(0);
            }

            to {
                transform: scale(1);
            }
        }
        /* The Close Button */
        .close {
            position: absolute;
            top: -9px;
            right: 15px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
        }

            .close:hover,
            .close:focus {
                color: #bbb;
                text-decoration: none;
                cursor: pointer;
            }
        /* 100% Image Width on Smaller Screens */
        @media only screen and (max-width: 700px) {
            .modal-content {
                width: 100%;
            }
        }
    </style>
    <script type="text/javascript">
        function onImageClick() {
            var modal = document.getElementById('myModal');
            var img = document.getElementById('imgItemImage');
            var modalImg = document.getElementById("img01");
            modal.style.display = "block";
            modalImg.src = img.src;
            //captionText.innerHTML = this.alt;
        }
        function ClosePop() {
            var modal = document.getElementById('myModal');
            modal.style.display = "none";
        }
        function CloseImport() {
            var pnlCategory1 = document.getElementById("pnlImport");
            pnlCategory1.style.display = "none";
        }
        function OpenPopup() {
            var isIE = CheckBrowser();
            var pnlitemCategory = document.getElementById("pnlImport");
            pnlitemCategory.style.display = "block";
        }
    </script>
    <script src="../js/wow.min.js"></script>
</head>
<body class="white">
    <div class="page-wrapper">
        <div class="preloader"></div>
        <form id="form1" runat="server" defaultbutton="lbtnAddItem">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:UpdatePanel runat="server" ID="updVenDetails" UpdateMode="Conditional">
                <ContentTemplate>
                    <!-- Header Starts Here -->
                    <uc1:Header ID="ucHeader" runat="server" />
                    <!-- Nav Ends Here -->
                    <!-- Content Starts Here -->
                    <div class="vlive-reports-section maintenance">
                        <div class="container-fluid">
                            <div class="row clearfix">
                                <div class="col-ks-16">
                                    <div class="col-ks-8 HeaderTest">
                                        <div class="col-ks-16">
                                            <h2 class="pull-left">
                                                <asp:Literal ID="lblConfigurationCaption" runat="server">Configuration</asp:Literal>
                                            </h2>
                                        </div>
                                        <div class="col-ks-16">
                                            
                                            <asp:SiteMapPath ID="site" runat="server" CssClass="breadcrumb">
                                                <NodeStyle CssClass="active" />
                                            </asp:SiteMapPath>
                                        </div>
                                    </div>
                                    <div class="col-ks-8 HeaderTopButton">
                                        <asp:LinkButton ID="btnImport" runat="server" CssClass="btn btn-primary btn-fa-upload" CausesValidation="false"
                                            OnClientClick="OpenPopup(); return false;" Text="&nbsp;&nbsp;Import bulk Items">
                                        </asp:LinkButton>
                                        <asp:LinkButton ID="lbtnAddItem" runat="server" CssClass="btn btn-primary btn-fa-plus" CausesValidation="false"
                                            OnClick="lbtnAddItem_Click" OnClientClick="ShowPopUp();" Text="&nbsp;&nbsp;Add Items">
                                        </asp:LinkButton>
                                        <asp:LinkButton ID="btnBack" runat="server" CssClass="fa-arrow-left btn btn-primary" CausesValidation="false"
                                            PostBackUrl="~/Forms/ConfigurationSetup.aspx" Text="&nbsp;&nbsp;Back to Configuration">
                                        </asp:LinkButton>
                                    </div>
                                </div>

                                <div class="col-ks-10 HeaderTopButton ControlHide">
                                    <div class="col-ks-4_5">
                                    </div>
                                    <div class="col-ks-4">
                                        <asp:ImageButton ID="lbtnAddVendor1" runat="server" CausesValidation="false" OnClick="lbtnAddItem_Click"
                                            ImageUrl="~/images/btn-add-vehicle.jpg" Visible="false" />

                                    </div>
                                    <div class="col-ks-3">

                                        <asp:ImageButton ID="lbtnVehSeveritySetting1" PostBackUrl="MsgSeveritySettings.aspx"
                                            runat="server" CausesValidation="false" ImageUrl="~/images/btn-vehicle-msg.jpg"
                                            Visible="false" />
                                        <asp:LinkButton ID="lbtnVehSeveritySetting" runat="server" CssClass="MultilingualBtn"
                                            CausesValidation="false" PostBackUrl="~/Forms/VendorVehicleMapping.aspx" Visible="false">
                                            <span id="Span3" runat="server" class="MultilingualBtnspan">
                                                <div class="SeveritySettings">
                                                    <div id="SeveritySettingsDiv" runat="server" class="MultilingualBtnTextAlign">
                                                        Vehicle Assignment
                                                    </div>
                                                </div>
                                            </span>
                                        </asp:LinkButton>
                                    </div>
                                    <div class="col-ks-4_5">
                                        <asp:ImageButton ID="btnBack1" runat="server" OnClick="btnBack_Click" CausesValidation="false"
                                            ImageUrl="~/images/btn-back-to-configuration.jpg" Visible="false" />

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="clear clearfix"></div>
                    <asp:Panel ID="pnlItemInfo" runat="server" Visible="false">
                        <div class="vlive-filter">
                            <div class="container-fluid">
                                <div class="vlive-centrifugal-fan maintenance-plan">
                                    <div class="col-ks-16 vlive-header_VXL">
                                        <div class="col-ks-16">
                                            <asp:Label ID="lblVenInfoHeading" runat="server" CssClass="pnlhearder" Text="Item Details"></asp:Label>
                                        </div>
                                    </div>
                                    <div class="row ftop">
                                        <div class="col-ks-8">
                                            <div class="col-md-12">
                                                <div class="col-ks-6">
                                                    <asp:Label ID="lblItemCode" runat="server" Text="Item Code" CssClass="label"></asp:Label>
                                                    <%--<span style="color: red">*</span>--%>
                                                </div>
                                                <div class="col-ks-9">
                                                    <asp:TextBox ID="txtItemcode" runat="server" MaxLength="150" onkeypress="return chkDescription(event,this,149);"
                                                        CssClass="form-control man-dat" TabIndex="1"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <div class="col-ks-6">
                                                    <asp:Label ID="lblItemName" runat="server" Text="Item Name"></asp:Label>
                                                    <%--<span style="color: red">*</span>--%>
                                                </div>
                                                <div class="col-ks-9">
                                                    <asp:TextBox ID="txtItemName" runat="server" MaxLength="150" onkeypress="return chkDescription(event,this,149);"
                                                        CssClass="form-control man-dat" TabIndex="2"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <div class="col-ks-6">
                                                    <asp:Label ID="lblItemDesc" runat="server" Text="Item Description"></asp:Label>
                                                    <%--<span style="color: red">*</span>--%>
                                                </div>
                                                <div class="col-ks-9">
                                                    <asp:TextBox ID="txtItemDesc" runat="server" oncopy="return false" TabIndex="3" TextMode="MultiLine"
                                                        CssClass="form-control" ondrop="return false" MaxLength="250"
                                                        onkeypress="return chkDescription(event, this,250);" />
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <div class="col-ks-6">
                                                    <asp:Label ID="lblDHT" runat="server" Text="Item  Category" CssClass="label"></asp:Label>
                                                    <%--<span style="color: red">*</span>--%>
                                                </div>
                                                <div class="col-ks-9">
                                                    <span class="dropdown">
                                                        <asp:DropDownList ID="ddlDHT" runat="server" TabIndex="4" CssClass="form-control man-dat">
                                                            <asp:ListItem Text="- Select -" Value="- Select -"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="col-ks-1">
                                                    <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
                                                        <ContentTemplate>
                                                            <div id="Div1" runat="server">
                                                                <asp:LinkButton ID="imgAdd" runat="server" ToolTip="Add Item Category" CssClass="btn-fa-plus-circle" OnClientClick="AddItemCategory(); return false;"></asp:LinkButton>
                                                                <asp:ImageButton ID="imgAdd1" runat="server" ToolTip="Add Item Category" Style="width: auto; display: block" Visible="false"
                                                                    ImageUrl="../images/add-icon.gif" OnClientClick="AddItemCategory(); return false;"></asp:ImageButton>
                                                            </div>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <div class="col-ks-6">
                                                    <asp:Label ID="lblSerialNo" runat="server" Text="Serial No"></asp:Label>
                                                </div>
                                                <div class="col-ks-9">
                                                    <span class="dropdown">
                                                        <%--<div style="position: relative;">--%>
                                                        <asp:TextBox ID="txtSNo" runat="server" CssClass="form-control man-dat" MaxLength="3" onkeypress="return chkNumeric_only(event);"></asp:TextBox>
                                                        <%--</div>--%>
                                                    </span>
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <div class="col-ks-6">
                                                    <asp:Label ID="Label3" runat="server" Text="Unit of Measure(UoM)"></asp:Label>
                                                </div>
                                                <div class="col-ks-9">
                                                    <span class="dropdown">
                                                        <%--<div style="position: relative;">--%>
                                                        <asp:DropDownList ID="ddlUOMCategory" runat="server" TabIndex="4" CssClass="form-control"
                                                            OnSelectedIndexChanged="ddlCategory_SelectedIndexChanged">
                                                            <asp:ListItem Text="- Select -" Value="0"></asp:ListItem>
                                                        </asp:DropDownList>
                                                        <%--</div>--%>
                                                    </span>
                                                </div>
                                                <div class="col-ks-1">
                                                    <asp:UpdatePanel ID="updLndCat" UpdateMode="Conditional" runat="server">
                                                        <ContentTemplate>
                                                            <div id="AddLandmarkCategory" runat="server">
                                                                <asp:LinkButton ID="lnkAdd" runat="server" ToolTip="Add UOM" OnClientClick="AddCategory(); return false;" CssClass="btn-fa-plus-circle"></asp:LinkButton>
                                                                <asp:ImageButton ID="lnkAdd1" runat="server" ToolTip="Add UOM" Style="width: auto; display: block" Visible="false"
                                                                    ImageUrl="../images/add-icon.gif" OnClientClick="AddCategory(); return false;"></asp:ImageButton>
                                                            </div>
                                                            <div id="EditLandmarkCategory" runat="server">
                                                                <asp:ImageButton ID="lnkEdit" ToolTip="" runat="server" ImageUrl="../images/icn-edit.gif"
                                                                    Style="width: auto; display: none" OnClick="lnkEdit_Click" OnClientClick="ShowPopUp();"></asp:ImageButton>
                                                            </div>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <div class="col-ks-6">
                                                    <%--<span class="redtxt">|</span>&nbsp;--%>
                                                    <asp:Label ID="Label8" runat="server" Text="Select Image"></asp:Label>
                                                    <%--<span style="color: red">*</span>--%>
                                                </div>
                                                <div class="col-ks-9">
                                                    <asp:FileUpload ID="fupImage" runat="server" onchange="readURL(this);" TabIndex="5" />
                                                    <span style="color: red;">Note : We accept jpg, png, gif and bmp, 500 KB maximum size.</span>
                                                </div>
                                            </div>
                                            <div class="col-md-12" style="display: none;">
                                                <div class="col-ks-6">
                                                    <asp:Label ID="Label2" runat="server" Text="Unit Price"></asp:Label>
                                                </div>
                                                <div class="col-ks-9">
                                                    <asp:TextBox ID="txtunitprz" runat="server" onkeypress="return chkDecNums(event, this);"
                                                        CssClass="form-control" MaxLength="10" TabIndex="6" Text="0.00"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" WatermarkText="0.00"
                                                        TargetControlID="txtunitprz">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </div>
                                            </div>
                                            <div class="col-md-12" style="display: none;">
                                                <div class="col-ks-6">
                                                    <asp:Label ID="lblopenQty" runat="server" Text="Open Stock"></asp:Label>
                                                </div>
                                                <div class="col-ks-9">
                                                    <asp:TextBox ID="txtOpenQty" runat="server" onkeypress="return chkNumeric_only(event);"
                                                        TabIndex="5" CssClass="form-control" MaxLength="6" Text="0"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="wtxtLocationName" runat="server" WatermarkText="0"
                                                        TargetControlID="txtOpenQty">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </div>
                                            </div>
                                            <div class="col-md-12" runat="server" id="trAvailableQty" style="display: none;">
                                                <div class="col-ks-6">
                                                    <asp:Label ID="lblAvailQty" runat="server" Text="Available Stock"></asp:Label>
                                                </div>
                                                <div class="col-ks-9">
                                                    <asp:TextBox ID="txtAvailQty" runat="server" onkeypress="return chkNumeric_only(event);"
                                                        TabIndex="6" CssClass="form-control" MaxLength="6" Text="0"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="col-md-12" style="display: none;">
                                                <div class="col-ks-6">
                                                    <asp:Label ID="Label11" runat="server" Text="Reorder Quantity"></asp:Label>
                                                </div>
                                                <div class="col-ks-9">
                                                    <asp:TextBox ID="TextBox1" runat="server" onkeypress="return chkNumeric_only(event);"
                                                        CssClass="form-control" MaxLength="6" TabIndex="7" Text="0"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" runat="server" WatermarkText="0"
                                                        TargetControlID="txtReorderQty">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </div>
                                            </div>
                                            <div class="col-md-12" style="display: none;">
                                                <div class="col-ks-6">
                                                    <asp:Label ID="lblReorderQty" runat="server" Text="Reorder Quantity"></asp:Label>
                                                </div>
                                                <div class="col-ks-9">
                                                    <asp:TextBox ID="txtReorderQty" runat="server" onkeypress="return chkNumeric_only(event);"
                                                        CssClass="form-control" MaxLength="6" TabIndex="7" Text="0"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" WatermarkText="0"
                                                        TargetControlID="txtReorderQty">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </div>
                                            </div>
                                            <div class="col-md-12" style="display: none;">
                                                <div class="col-xs-3 col-md-2"></div>
                                                <div class="col-xs-9">
                                                    <asp:LinkButton ID="btnAddNotifictions" runat="server" CssClass="MultilingualBtn"
                                                        OnClientClick="ShowPopUp();" OnClick="btnAddNotifictions_Click">
                                                        <span runat="server" class="MultilingualBtnspan">
                                                            <div class="ManageNotification">
                                                                <div id="AddNotifictionsButDiv" runat="server" class="MultilingualBtnTextAlign">
                                                                    Reorder Notifications
                                                                </div>
                                                            </div>
                                                        </span>
                                                    </asp:LinkButton>
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <div class="col-ks-16" colspan="2">
                                                    <%--<asp:Label ID="Label1" runat="server" ForeColor="Red">*</asp:Label>--%>&nbsp;
                                                               <span class="redtxt">|</span>&nbsp;<asp:Label ID="lblIndicatesMandatory" runat="server">Required Fields</asp:Label>
                                                </div>
                                            </div>
                                            <div class="col-md-12">
                                                <div class="col-ks-15" align="right">
                                                    <asp:LinkButton ID="ibtnUpdateItem" ValidationGroup="vgVeh" runat="server" CssClass="btn btn-primary btn-fa-floppy-o"
                                                        CausesValidation="false" OnClientClick="return ValidateItemInfo();" OnClick="ibtnUpdateItem_Click" Text="&nbsp;&nbsp;Update" TabIndex="7">
                                                    </asp:LinkButton>
                                                    <asp:LinkButton ID="ibtnAddItem" runat="server" CssClass="btn btn-primary btn-fa-floppy-o" ValidationGroup="vgVeh"
                                                        TabIndex="8" OnClientClick="return ValidateItemInfo();" OnClick="ibtnAddItem_Click" Text="&nbsp;&nbsp;Save">
                                                    </asp:LinkButton>
                                                    <asp:LinkButton ID="btnUserCancel" runat="server" CssClass="btn btn-primary btn-fa-ban" OnClick="btnUserCancel_Click"
                                                        CausesValidation="false" TabIndex="9" OnClientClick="ShowPopUp();" Text="&nbsp;&nbsp;Cancel">
                                                    </asp:LinkButton>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-ks-8">
                                            <div class="col-md-12">
                                                <img id="imgItemImage" runat="server" style="max-height: 300px; margin-top: 5px; cursor: zoom-in;" onclick="onImageClick();" />
                                                <asp:HiddenField ID="hdfImage" runat="server" />
                                            </div>
                                            <div id="myModal" class="modal">
                                                <span class="close" onclick="ClosePop();">&times;</span>
                                                <img class="modal-content" id="img01">
                                                <div id="caption"></div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                    </asp:Panel>
                    <div class="clear clearfix"></div>
                    <asp:Panel ID="pnlItemDetailsList" runat="server">
                        <div class="vlive-filter">
                            <div class="container-fluid">
                                <div class="vlive-centrifugal-fan maintenance-plan">
                                    <div class="col-ks-16 vlive-header_VXL">
                                        <div class="col-ks-13">
                                            <asp:Label ID="lblItmMstCation" runat="server" CssClass="pnlhearder" Text="Item Master Details"></asp:Label>
                                        </div>
                                        <div class="col-ks-1">
                                            <dxw:ASPxComboBox ID="ASPxCboExport" runat="server" ValueType="System.String" CssClass="form-control exportddl"
                                                ShowImageInEditBox="false" ItemImage-Height="12px" ClientInstanceName="ASPxCboExport" SelectedIndex="0"
                                                CssFilePath="~/App_Themes/Office2003Blue/Editors/styles.css" CssPostfix="Office2003_Blue"
                                                EnableTheming="true" Theme="Office2003Blue">
                                                <Items>
                                                    <dxw:ListEditItem ImageUrl="../images/icn-pdf.jpg" Text="pdf" Value="pdf" />
                                                    <dxw:ListEditItem ImageUrl="../images/icn-excel.jpg" Text="xls" Value="xls" />
                                                    <dxw:ListEditItem ImageUrl="../images/icn-excel-xlsx.png" Text="xlsx" Value="xlsx" />
                                                    <dxw:ListEditItem ImageUrl="../images/icn-word.jpg" Text="rtf" Value="rtf" />
                                                </Items>
                                            </dxw:ASPxComboBox>
                                        </div>
                                        <div class="col-ks-2">
                                            <asp:ImageButton ID="btnExport1" runat="server" ImageUrl="~/images/btn-export.jpg"
                                                OnClick="btnExport_Click" Visible="false" />
                                            <asp:LinkButton ID="btnExport" runat="server" CssClass="fa-file-excel-o btn btn-primary" Text="&nbsp;&nbsp;Export" OnClick="btnExport_Click">
                                            </asp:LinkButton>
                                        </div>
                                    </div>
                                    <div class="row ftop">
                                        <div class="col-md-12">
                                            <dxw:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" GridViewID="gvItems"
                                                ReportHeader="{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}
                                                    {\f1\fnil\fcharset0 Arial;}}\viewkind4\uc1\pard\f0\fs20\b\f1\fs28 Item Details\par\par\par}"
                                                DetailHorizontalOffset="1" DetailVerticalOffset="1" MaxColumnWidth="120">
                                                <Styles>
                                                    <Default VerticalAlign="Middle">
                                                    </Default>
                                                    <Header BackColor="#D1D1D1" Font-Bold="True" Font-Names="Arial" Font-Size="10pt"
                                                        ForeColor="Black" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false">
                                                    </Header>
                                                    <Cell VerticalAlign="Middle" Wrap="True" Font-Size="8pt" Font-Names="Arial" HorizontalAlign="Left"
                                                        ForeColor="Black">
                                                    </Cell>
                                                </Styles>
                                                <PageHeader Center="Item Details" VerticalAlignment="Far">
                                                    <Font Bold="True" Names="Arial" Size="10pt" Underline="True"></Font>
                                                </PageHeader>
                                                <PageFooter Right="[Page # of Pages #]">
                                                </PageFooter>
                                            </dxw:ASPxGridViewExporter>
                                            <dxw:ASPxGridView ID="gvItems" runat="server" Width="100%" EnableViewState="true" KeyFieldName="ItemSNo"
                                                EnableTheming="true" Theme="Office2003Blue" OnHtmlRowCreated="gvItems_OnHtmlRowCreated" OnDataBinding="gvItems_DataBinding">
                                                <%--CssFilePath="~/App_Themes/Office2003Blue/GridView/styles.css" CssPostfix="Office2003_Blue" 
                                                <Images ImageFolder="~/App_Themes/Office2003Blue/GridView/">
                                                <CollapsedButton Height="12px" Url="~/App_Themes/Office2003Blue/GridView/gvCollapsedButton.png"
                                                    Width="11px" />
                                                <ExpandedButton Height="12px" Url="~/App_Themes/Office2003Blue/GridView/gvExpandedButton.png"
                                                    Width="11px" />
                                                <DetailCollapsedButton Height="12px" Url="~/App_Themes/Office2003Blue/GridView/gvCollapsedButton.png"
                                                    Width="11px" />
                                                <DetailExpandedButton Height="12px" Url="~/App_Themes/Office2003Blue/GridView/gvExpandedButton.png"
                                                    Width="11px" />
                                            </Images>--%>
                                                <Styles CssFilePath="~/App_Themes/Office2003Blue/GridView/grid.css" AlternatingRow-Enabled="True"
                                                    CssPostfix="Office2003_Blue">
                                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                    </Header>
                                                    <LoadingPanel ImageSpacing="10px">
                                                    </LoadingPanel>
                                                    <PagerBottomPanel CssClass="PageFooter">
                                                    </PagerBottomPanel>
                                                    <PagerTopPanel CssClass="PageFooter">
                                                    </PagerTopPanel>
                                                </Styles>
                                                <SettingsPager PageSize="15" PrevPageButton-Image-Url="../App_Themes/Office2003Blue/GridView/pPrev.gif"
                                                    PrevPageButton-Image-UrlDisabled="../App_Themes/Office2003Blue/GridView/pPrevDisabled.gif"
                                                    NextPageButton-Image-UrlDisabled="../App_Themes/Office2003Blue/GridView/pNextDisabled.gif"
                                                    NextPageButton-Image-Url="../App_Themes/Office2003Blue/GridView/pNext.gif" AlwaysShowPager="true">
                                                </SettingsPager>
                                                <Columns>
                                                    <dxw:GridViewDataColumn FieldName="ItemCategoryName" Caption="Item Category" VisibleIndex="0"
                                                        Width="10%" HeaderStyle-HorizontalAlign="Center" CellStyle-HorizontalAlign="Left">
                                                        <HeaderCaptionTemplate>
                                                            <asp:Label ID="lblCntrctprdCaption" runat="server" Text="Item Category"></asp:Label>
                                                        </HeaderCaptionTemplate>
                                                        <Settings AllowAutoFilter="True" AllowSort="True" ShowFilterRowMenu="True" />
                                                    </dxw:GridViewDataColumn>
                                                    <dxw:GridViewDataColumn FieldName="Itemcode" Caption="Item Code" VisibleIndex="1"
                                                        Width="9%">
                                                        <HeaderCaptionTemplate>
                                                            <asp:Label ID="lblVendorNameCaption" runat="server" Text="Item Code"></asp:Label>
                                                        </HeaderCaptionTemplate>
                                                    </dxw:GridViewDataColumn>
                                                    <dxw:GridViewDataColumn FieldName="ItemName" Caption="Item Name" VisibleIndex="2"
                                                        CellStyle-Wrap="True" Width="9%" CellStyle-HorizontalAlign="Left">
                                                        <HeaderCaptionTemplate>
                                                            <asp:Label ID="lblWrkOdrCaption" runat="server" Text="Item Name"></asp:Label>
                                                        </HeaderCaptionTemplate>
                                                    </dxw:GridViewDataColumn>
                                                    <dxw:GridViewDataColumn FieldName="ItemDesc" Caption="Item Desc" VisibleIndex="3"
                                                        CellStyle-Wrap="True" Width="10%" HeaderStyle-HorizontalAlign="Center" CellStyle-HorizontalAlign="Left">
                                                        <HeaderCaptionTemplate>
                                                            <asp:Label ID="lblCntrctprdCaption" runat="server" Text="Item Description"></asp:Label>
                                                        </HeaderCaptionTemplate>
                                                        <Settings AllowAutoFilter="False" />
                                                    </dxw:GridViewDataColumn>
                                                    <dxw:GridViewDataColumn FieldName="SerialNo" Caption="Serial No" VisibleIndex="3"
                                                        CellStyle-Wrap="True" Width="6%" HeaderStyle-HorizontalAlign="Center" CellStyle-HorizontalAlign="Center">
                                                        <HeaderCaptionTemplate>
                                                            <asp:Label ID="lblserialNo" runat="server" Text="SerialNo"></asp:Label>
                                                        </HeaderCaptionTemplate>
                                                        <Settings AllowAutoFilter="True" />
                                                    </dxw:GridViewDataColumn>
                                                    <dxw:GridViewDataColumn FieldName="AvailQty" Caption="Available Qty" VisibleIndex="4"
                                                        Width="6%" HeaderStyle-HorizontalAlign="Center" CellStyle-HorizontalAlign="Right" Visible="false">
                                                        <HeaderCaptionTemplate>
                                                            <asp:Label ID="lblCntrctprdCaption" runat="server" Text="Available Qty"></asp:Label>
                                                        </HeaderCaptionTemplate>
                                                        <Settings AllowAutoFilter="False" />
                                                    </dxw:GridViewDataColumn>
                                                    <dxw:GridViewDataColumn FieldName="UnitPrice" Caption="Unit Price" VisibleIndex="5"
                                                        Width="8%" HeaderStyle-HorizontalAlign="Center" CellStyle-HorizontalAlign="Left" Visible="false">
                                                        <HeaderCaptionTemplate>
                                                            <asp:Label ID="lblCntrctprdCaption" runat="server" Text="Unit Price"></asp:Label>
                                                        </HeaderCaptionTemplate>
                                                        <Settings AllowAutoFilter="False" />
                                                    </dxw:GridViewDataColumn>
                                                    <dxw:GridViewDataColumn FieldName="EmailUserNameList" Caption="Email Users" VisibleIndex="5"
                                                        Width="10%" HeaderStyle-HorizontalAlign="Center" CellStyle-HorizontalAlign="Right" Visible="false">
                                                        <HeaderCaptionTemplate>
                                                            <asp:Label ID="lblCntrctprdCaption" runat="server" Text="Email Users"></asp:Label>
                                                        </HeaderCaptionTemplate>
                                                        <Settings AllowAutoFilter="False" />
                                                    </dxw:GridViewDataColumn>
                                                    <dxw:GridViewDataTextColumn Caption="View" Width="2%" Name="View" VisibleIndex="6"
                                                        CellStyle-HorizontalAlign="Center">
                                                        <HeaderTemplate>
                                                        </HeaderTemplate>
                                                        <DataItemTemplate>
                                                            <asp:LinkButton ID="ibView" runat="server" OnClick="ibtViewItem_click" CommandArgument='<%# Eval("ItemSNo") %>' CssClass="Grid-btn-fa-binoculars" ToolTip="Click here to view"
                                                                Style="text-decoration: none;" OnClientClick="return ShowPopUp();"></asp:LinkButton>
                                                            <%--<img src="../images/icn-view.gif"/>--%>
                                                        </DataItemTemplate>
                                                    </dxw:GridViewDataTextColumn>
                                                    <dxw:GridViewDataTextColumn Caption="Edit" VisibleIndex="7" Width="2%" Name="Edit"
                                                        CellStyle-HorizontalAlign="Center">
                                                        <HeaderTemplate>
                                                        </HeaderTemplate>
                                                        <DataItemTemplate>
                                                            <asp:LinkButton ID="btnUpdateItem" runat="server" CommandArgument='<%# Eval("ItemSNo") %>' CssClass="Grid-btn-fa-pencil-square-o" ToolTip="Click here to Edit"
                                                                OnClientClick="return ShowPopUp();" OnClick="btnUpdateItem_Click" Style="text-decoration: none;"></asp:LinkButton>
                                                            <%--<img src="../images/icn-edit.gif" alt="View" title="Click here to Edit"/>--%>
                                                        </DataItemTemplate>
                                                    </dxw:GridViewDataTextColumn>
                                                    <dxw:GridViewDataTextColumn Caption="Delete" VisibleIndex="8" Width="2%" HeaderStyle-HorizontalAlign="Center"
                                                        CellStyle-HorizontalAlign="Center">
                                                        <HeaderTemplate>
                                                        </HeaderTemplate>
                                                        <DataItemTemplate>
                                                            <%--Delete();--%>
                                                            <asp:LinkButton ID="lbtnDelete" runat="server" OnClientClick="return ShowPopUp();" CssClass="Grid-btn-fa-trash-o" ToolTip="Click here to Delete"
                                                                CommandArgument='<%#Eval("ItemSNo") %>' OnClick="lbtnDelete_click"></asp:LinkButton>
                                                            <%--<img src="../images/delete-icon.gif" alt="Delete" title="Click here to Delete"/>--%>
                                                        </DataItemTemplate>
                                                    </dxw:GridViewDataTextColumn>
                                                </Columns>
                                                <Settings ShowVerticalScrollBar="true" VerticalScrollableHeight="270" />
                                                <Settings ShowFilterRow="true" ShowFilterRowMenu="True" />
                                                <SettingsText EmptyDataRow="No Items details found" />
                                                <SettingsBehavior AllowFocusedRow="false" />
                                            </dxw:ASPxGridView>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>
                    <asp:Button ID="btnLoadModel" runat="server" CssClass="btn" Style="display: none"></asp:Button>
                    <asp:Button ID="btnTest" runat="server" OnClick="btnTest_click" CssClass="ControlHide"
                        Text="Test" />
                    <asp:HiddenField ID="hdnCancelsts" runat="server" />
                    <asp:HiddenField ID="hdnselectedays" runat="server" />
                </ContentTemplate>
                <Triggers>
                    <asp:PostBackTrigger ControlID="ibtnAddItem" />
                    <%--<asp:PostBackTrigger ControlID="btnUserCancel" />--%>
                    <asp:PostBackTrigger ControlID="ibtnUpdateItem" />
                    <asp:PostBackTrigger ControlID="btnExport" />
                    <asp:PostBackTrigger ControlID="btnTest" />
                    <%--<asp:AsyncPostBackTrigger ControlID="fupImage" />--%>
                </Triggers>
            </asp:UpdatePanel>
            <asp:Button ID="btnTesting" Style="display: none;" runat="server" />
            <asp:Panel ID="pnlNotificationsList" runat="server" Style="display: none;" CssClass="manageNotificationPanel col-xs-9 nullpadding">
                <asp:UpdatePanel ID="updNotify" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <uc3:NotificationsList ID="ucNotificationList" runat="server" NotificationType="16" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </asp:Panel>
            <cc1:ModalPopupExtender ID="mpeProgressIndicator" runat="server" PopupControlID="pnlProgress"
                TargetControlID="Button1" BackgroundCssClass="modalBackground">
            </cc1:ModalPopupExtender>
            <asp:Button ID="Button1" Style="display: none;" runat="server" />
            <asp:Panel ID="pnlProgress" runat="server" CssClass="processMessage" Style="z-index: 1000;">
                <center>
                    <br />
                    <img id="imgLoad" runat="server" alt="Please Wait ..." src="../images/47.gif" /><br />
                    <br />
                    <asp:Label ID="lbl_msg12" Text="Processing... Please Wait..." runat="server" CssClass="specialdisplay"></asp:Label>
                    <br />
                    <br />
                </center>
            </asp:Panel>
            <asp:Panel ID="pnlAddEditUoMCategory" runat="server" Style="display: none;" CssClass="edit-LandmarkPanel col-sm-8 col-md-6 col-lg-5">
                <asp:UpdatePanel ID="upLandmarkCate" runat="server">
                    <ContentTemplate>
                        <div class="popup">
                            <div class="top">
                                <h1>
                                    <asp:Label ID="lblResetPwd" Text="Add / Delete Unit of Measure" runat="server"></asp:Label>
                                </h1>
                                <div class="close">
                                    <asp:ImageButton ID="ibtClose1" runat="server" OnClientClick="CloseCategoryPopup(); return false;"
                                        ImageUrl="~/Images/popup-close.gif" Visible="false" />
                                    <asp:LinkButton ID="ibtClose" runat="server" CssClass="Map-btn-fa-times-circle-o" OnClientClick="CloseCategoryPopup(); return false;"></asp:LinkButton>
                                </div>
                                <div class="clear clearfix"></div>
                            </div>
                            <div class="popup-content">
                                <div class="form-tbl">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <div class="col-ks-6">
                                                <asp:Label ID="lblCategoryName" runat="server" Text="UoM" CssClass="label"></asp:Label>
                                                <%--<span style="color: Red">*</span>--%>
                                            </div>
                                            <div class="col-sm-9 col-md-5 padding-width-sm">
                                                <asp:TextBox ID="txtCategoryName" runat="server" MaxLength="25"
                                                    ondrop="return false" onkeypress="return chkAlphaNumericWithSpace(event,this,15);"
                                                    CssClass="form-control man-dat" TabIndex="1"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-ks-6">
                                                <asp:Label ID="lblDescription" runat="server" Text="Description" CssClass="label"></asp:Label>
                                            </div>
                                            <div class="col-sm-9 col-md-5 padding-width-sm">
                                                <asp:TextBox ID="txtDescription" TextMode="MultiLine" runat="server" Rows="5" TabIndex="2"
                                                    CssClass="form-control" MaxLength="500" onkeypress="return chkDescription(event,this,100);"
                                                    onblur="return disallowScriptTags(this);"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-sm-4"></div>
                                            <div class="col-sm-8">
                                                <asp:LinkButton ID="btnSaveUoMCategory" runat="server" CausesValidation="true" Text="&nbsp;&nbsp;Save"
                                                    ValidationGroup="vgLandmark" CssClass="btn btn-primary btn-fa-floppy-o" OnClientClick="return ValidateUOM();"
                                                    OnClick="btnSaveUoMCategory_Click">                                                    
                                                </asp:LinkButton>
                                                <%--<span runat="server" class="MultilingualBtnspan">
                                                        <div class="Save">
                                                            <div id="SaveButDivCategory" runat="server" class="MultilingualBtnTextAlign">
                                                                Save
                                                            </div>
                                                        </div>
                                                    </span>--%>
                                                <asp:LinkButton ID="btnDeleteCategory" runat="server" CssClass="btn btn-primary btn-fa-remove"
                                                    OnClick="btnDeleteCategory_Click" OnClientClick="return ValidateUOM();" Text="&nbsp;&nbsp;Delete">                                                   
                                                </asp:LinkButton>
                                                <%--<span id="Span2" runat="server" class="MultilingualBtnspan">
                                                        <div class="Delete">
                                                            <div id="DeleteButDivCategory" runat="server" class="MultilingualBtnTextAlign">
                                                                Delete
                                                            </div>
                                                        </div>
                                                    </span>--%>
                                                <asp:LinkButton ID="btnCancelPwd" runat="server" CssClass="btn btn-primary btn-fa-ban" Text="&nbsp;&nbsp;Cancel" CausesValidation="false"
                                                    OnClientClick="CloseCategoryPopup(); return false;">                                                    
                                                </asp:LinkButton>
                                                <%-- <span runat="server" class="MultilingualBtnspan">
                                                        <div class="Cancel">
                                                            <div id="CancelButDivCategory" runat="server" class="MultilingualBtnTextAlign">
                                                                Cancel
                                                            </div>
                                                        </div>
                                                    </span>--%>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-sm-12 padding-width-sm icon-img">
                                                <asp:Label ID="lblMsg" runat="server" Text="* To Delete UoM please enter the UoM.">
                                                </asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <asp:HiddenField ID="hdnLandmarkImage" runat="server" />
                    </ContentTemplate>
                    <Triggers>
                        <asp:PostBackTrigger ControlID="btnSaveUoMCategory" />
                        <%--<asp:PostBackTrigger ControlID="btnDeleteCategory" />           --%>
                    </Triggers>
                </asp:UpdatePanel>
            </asp:Panel>
            <asp:Panel ID="pnlAddEditCategory" runat="server" Style="display: none;" CssClass="edit-LandmarkPanel col-sm-8 col-md-6 col-lg-5">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                        <div class="popup">
                            <div class="top">
                                <h1>
                                    <asp:Label ID="Label4" Text="Add / Delete Item Category" runat="server"></asp:Label>
                                </h1>
                                <div class="close">
                                    <asp:LinkButton ID="lnkclose" runat="server" OnClientClick="CloseCategory(); return false;"
                                        CssClass="Map-btn-fa-times-circle-o" />
                                    <asp:ImageButton ID="ImageButton2" runat="server" OnClientClick="CloseCategory(); return false;"
                                        ImageUrl="~/Images/popup-close.gif" Visible="false" />
                                </div>
                                <div class="clear clearfix"></div>
                            </div>
                            <div class="popup-content">
                                <div class="form-tbl">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <div class="col-ks-6">
                                                <asp:Label ID="Label5" runat="server" Text="Item Category" CssClass="label"></asp:Label>
                                                <%--<span style="color: Red">*</span>--%>
                                            </div>
                                            <div class="col-sm-9 col-md-5 padding-width-sm">
                                                <asp:TextBox ID="txtcategory" runat="server" MaxLength="25"
                                                    ondrop="return false" onkeypress="return chkAlphaNumericWithSpace(event,this,15);"
                                                    CssClass="form-control man-dat" TabIndex="1"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-ks-6">
                                                <asp:Label ID="Label6" runat="server" Text="Description" CssClass="label"></asp:Label>
                                            </div>
                                            <div class="col-sm-9 col-md-5 padding-width-sm">
                                                <asp:TextBox ID="txtCategorydesc" TextMode="MultiLine" runat="server" Rows="5" TabIndex="2"
                                                    CssClass="form-control" MaxLength="500" onkeypress="return chkDescription(event,this,100);"
                                                    onblur="return disallowScriptTags(this);"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-sm-4"></div>
                                            <div class="col-sm-8">
                                                <asp:LinkButton ID="btnSaveCategory" runat="server" CausesValidation="true"
                                                    ValidationGroup="vgLandmark" CssClass="btn btn-primary btn-fa-floppy-o" OnClientClick="return ValidateItemCat();" Text="&nbsp;&nbsp;Save"
                                                    OnClick="btnSaveCategory_Click">                                                    
                                                </asp:LinkButton>
                                                <%--<span runat="server" class="MultilingualBtnspan">
                                                        <div class="adSave">
                                                            <div id="Div2" runat="server" class="MultilingualBtnTextAlign">
                                                                Save
                                                            </div>
                                                        </div>
                                                    </span>--%>
                                                <asp:LinkButton ID="btndeleteCate" runat="server" CssClass="btn btn-primary btn-fa-remove"
                                                    OnClick="btnDeleteCat_Click" OnClientClick="return ValidateItemCat();" Text="&nbsp;&nbsp;Delete">                                                    
                                                </asp:LinkButton>
                                                <%-- <span id="Span5" runat="server" class="MultilingualBtnspan">
                                                        <div class="Delete">
                                                            <div id="Div3" runat="server" class="MultilingualBtnTextAlign">
                                                                Delete
                                                            </div>
                                                        </div>
                                                    </span>--%>
                                                <asp:LinkButton ID="btncancelCategory" runat="server" CssClass="btn btn-primary btn-fa-ban" CausesValidation="false"
                                                    OnClientClick="CloseCategory(); return false;" Text="&nbsp;&nbsp;Cancel">                                                    
                                                </asp:LinkButton>
                                                <%-- <span runat="server" class="MultilingualBtnspan">
                                                        <div class="Cancel">
                                                            <div id="Div4" runat="server" class="MultilingualBtnTextAlign">
                                                                Cancel
                                                            </div>
                                                        </div>
                                                    </span>--%>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-sm-12 padding-width-sm icon-img">
                                                <asp:Label ID="Label7" runat="server" Text="* To Delete Category please enter the Category Name."></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <asp:HiddenField ID="HiddenField1" runat="server" />
                    </ContentTemplate>
                    <Triggers>
                        <asp:PostBackTrigger ControlID="btnSaveCategory" />
                        <%--<asp:PostBackTrigger ControlID="btnDeleteCategory" />           --%>
                    </Triggers>
                </asp:UpdatePanel>
            </asp:Panel>
            <asp:Panel ID="pnlImport" runat="server" Style="display: none;" CssClass="Shift-edit-LandmarkPanel col-sm-8 col-md-6 col-lg-5">
                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <ContentTemplate>
                        <div class="popup">
                            <div class="top">
                                <h1>
                                    <asp:Label ID="Label9" Text="Import bulk Items" runat="server"></asp:Label>
                                </h1>
                                <div class="close">
                                    <asp:ImageButton ID="ImageButton1" runat="server" OnClientClick="CloseImport(); return false;"
                                        ImageUrl="~/Images/popup-close.gif" Visible="false" />
                                    <asp:LinkButton ID="lnk" runat="server" OnClientClick="CloseImport(); return false;" CssClass="Map-btn-fa-times-circle-o"></asp:LinkButton>
                                </div>
                                <div class="clear clearfix"></div>
                            </div>
                            <div class="popup-content">
                                <div class="form-tbl">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <div class="col-ks-6">
                                                <span class="redtxt">|</span>&nbsp;<asp:Label ID="Label10" runat="server" Text="Select Import File" CssClass="label"></asp:Label>
                                                <%--<span style="color: Red">*</span>--%>
                                            </div>
                                            <div class="col-sm-9 col-md-5 padding-width-sm">
                                                <asp:FileUpload runat="server" ID="fp_ImportFilePath" />
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-md-12">
                                                <span style="font-size: 10px; font-weight: bold;"><span class="redtxt">|</span>&nbsp;Import bulk Items details in .csv format</span>
                                                <span style="font-size: 10px; font-weight: bold;">
                                                    <asp:LinkButton ID="lnkdownloadItem" runat="server" Text="Download Template" OnClick="lnkdownloadItem_Click" Visible="true"></asp:LinkButton></span>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-sm-4"></div>
                                            <div class="col-sm-8">
                                                <asp:LinkButton ID="btn_Upload" runat="server" CausesValidation="true" Text="&nbsp;&nbsp;Import" CssClass="btn btn-primary btn-fa-upload" OnClick="btn_Upload_Click" OnClientClick="return ValidateImportItemInfo();">
                                                    <%--<span runat="server" class="MultilingualBtnspan">
                                                        <div class="Import">
                                                            <div id="Div5" runat="server" class="MultilingualBtnTextAlign">
                                                                Import
                                                            </div>
                                                        </div>
                                                    </span>--%>
                                                </asp:LinkButton>
                                                <asp:LinkButton ID="LinkButton3" runat="server" CssClass="btn btn-primary btn-fa-ban" Text="&nbsp;&nbsp;Cancel" CausesValidation="false"
                                                    OnClientClick="CloseImport(); return false;">
                                                   <%-- <span runat="server" class="MultilingualBtnspan">
                                                        <div class="Cancel">
                                                            <div id="Div7" runat="server" class="MultilingualBtnTextAlign">
                                                                Cancel
                                                            </div>
                                                        </div>
                                                    </span>--%>
                                                </asp:LinkButton>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <asp:HiddenField ID="HiddenField2" runat="server" />
                    </ContentTemplate>
                    <Triggers>
                        <asp:PostBackTrigger ControlID="btn_Upload" />
                        <asp:PostBackTrigger ControlID="lnkdownloadItem" />
                        <%--<asp:PostBackTrigger ControlID="btnDeleteCategory" />           --%>
                    </Triggers>
                </asp:UpdatePanel>
            </asp:Panel>
            <script src="../js/ScriptToClearCtrls.js" type="text/javascript"></script>
            <script type="text/javascript" src="../js/GridCheckBoxMaintaining.js"></script>
            <%--<script type="text/javascript" src="../js/DriverManagementScript.js"></script>--%>
            <script type="text/javascript" src="../js/myformvalidations.js"></script>
            <script type="text/javascript" src="../js/FormValidations.js"></script>
            <script src="../js/InventoryMgmt.js" type="text/javascript"></script>
            <script lang="javascript" type="text/javascript">
                function HidePopUp() {
                    if ($find('mpeProgressIndicator') != undefined) {
                        $find('mpeProgressIndicator').hide();
                    }
                }
                function ShowPopUp() {
                    if ($find('mpeProgressIndicator') != undefined) {
                        $find('mpeProgressIndicator').show();
                    }
                }
            </script>
            <script type="text/javascript">
                Sys.Browser.WebKit = {}; //Safari 3 is considered WebKit
                if (navigator.userAgent.indexOf('WebKit/') > -1) {
                    Sys.Browser.agent = Sys.Browser.WebKit;
                    Sys.Browser.version = parseFloat(navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/)[1]);
                    Sys.Browser.name = 'WebKit';
                }
            </script>
            <script type="text/javascript">
                var keyValue;
                function OnMoreInfoClick(element) {
                    popup.ShowAtElement(element);
                }
                function popup_Shown(s, e) {
                    popup.ShowAtPos(s, e);
                }
                function ClearCategoryDetails() {
                    document.getElementById("txtCategoryName").value = "";
                    document.getElementById("txtDescription").value = "";
                }
                function LoadCategoryPopup(IsDuplicateCatName) {
                    var isIE = CheckBrowser();
                    var pnlCategory = document.getElementById("pnlAddEditUoMCategory");
                    pnlCategory.style.display = "block";
                    if (IsDuplicateCatName == "True") {
                        //TrinetraCustomAlerts(categoryNameExists);
                        document.getElementById("txtCategoryName").focus();
                        document.getElementById('txtCategoryName').style.backgroundColor = 'lightyellow';
                    }
                    else {
                        document.getElementById('txtCategoryName').style.backgroundColor = 'white';
                    }
                }
                function CloseCategoryPopup() {
                    var pnlCategory = document.getElementById("pnlAddEditUoMCategory");
                    var lnkadd = document.getElementById("lnkAdd");
                    pnlCategory.style.display = "none";
                    //setFocusToControl('ddlCategory');
                    lnkadd.style.display = "block";
                    document.getElementById('lblMsg').innerHTML = "* To Delete UoM please enter the UoM.";
                    document.getElementById('lblMsg').style.color = "black";
                    ShowHideCategoryIcons();
                }
                function CloseCategory() {
                    var pnlCategory1 = document.getElementById("pnlAddEditCategory");
                    var lnkadd1 = document.getElementById("imgAdd");
                    pnlCategory1.style.display = "none";
                    //setFocusToControl('ddlCategory');
                    lnkadd1.style.display = "block";
                    document.getElementById('Label7').innerHTML = "* To Delete Category please enter the Category Name.";
                    document.getElementById('Label7').style.color = "black";
                    $('#imgAdd').show();
                    // $('#btndeleteCate').hide();
                }

                function ShowHideCategoryIcons() {
                    //var categoryId = $("#ddlCategory > option[selected]").attr("value");
                    var categoryId = "";
                    //categoryId = ddlCategory.GetSelectedItem().text;
                    //if (categoryId == "- Select -") {
                    $('#lnkAdd').show();
                    $('#lnkEdit').hide();
                    $('#btnDeleteCategory').show();
                    //}
                    //else if (categoryId != "") {
                    //    $('#lnkEdit').show();
                    //    $('#btnDeleteCategory').show();
                    //    $('#lnkAdd').hide();
                    //}
                    //else {
                    //    // Nothing
                    //}
                }
                function AddCategory() {
                    var isIE = CheckBrowser();
                    document.getElementById('lblMsg').innerHTML = "* To Delete UoM please enter the UoM.";
                    document.getElementById('lblMsg').style.color = "black";
                    ClearCategoryDetails();
                    LoadCategoryPopup("False");
                }
                function ValidateUOM() {
                    if (Trim(document.getElementById('txtCategoryName').value) == null || Trim(document.getElementById('txtCategoryName').value) == "") {
                        TrinetraCustomAlerts("Please enter the UoM."); return false;
                    }
                }

                function ValidateItemCat() {
                    var txtcategroy = document.getElementById('txtcategory');
                    if (txtcategroy.value == "") {
                        TrinetraCustomAlerts("Please enter the Category Name."); return false;
                    }
                    //if (Trim(document.getElementById('txtCategory').value) == null) {
                    //    TrinetraCustomAlerts("Please enter the Category Name."); return false;
                    //}
                }
                function AddItemCategory() {
                    var isIE = CheckBrowser();
                    document.getElementById('Label7').innerHTML = "* To Delete Category please enter the Category Name.";
                    document.getElementById('Label7').style.color = "black";
                    document.getElementById("txtcategory").value = "";
                    document.getElementById("txtCategorydesc").value = "";
                    var pnlitemCategory = document.getElementById("pnlAddEditCategory");
                    pnlitemCategory.style.display = "block";
                    var IsDuplicateCatName = false;
                    if (IsDuplicateCatName) {
                        //TrinetraCustomAlerts(categoryNameExists);
                        document.getElementById("txtcategory").focus();
                        document.getElementById('txtcategory').style.backgroundColor = 'lightyellow';
                    }
                    else {
                        document.getElementById('txtcategory').style.backgroundColor = 'white';
                    }
                }
                function readURL(input) {
                    var isvalid;
                    isvalid = ValidateExtension();
                    if (isvalid == true) {
                        if (input.files && input.files[0]) {
                            var size = input.files[0].size;
                            if (size > 500000) {
                                alert("Maximum file size exceeds");
                                return;
                            }
                            else {
                                var reader = new FileReader();
                                reader.onload = function (e) {
                                    $('#imgItemImage').attr('src', e.target.result);
                                };
                                reader.readAsDataURL(input.files[0]);
                            }
                        }
                    }
                }
                function ValidateExtension() {
                    var allowedFiles = [".jpg", ".jpeg", ".png", ".gif", ".bmp"];
                    var fileUpload = document.getElementById("fupImage");
                    var regex = new RegExp("([a-zA-Z0-9\s_\\.\-:])+(" + allowedFiles.join('|') + ")$");
                    if (!regex.test(fileUpload.value.toLowerCase())) {
                        TrinetraCustomAlerts("Please upload files having extensions: " + allowedFiles.join(', ') + " only.");
                        return false;
                    }
                    return true;
                }
            </script>
        </form>
    </div>
    <!-- Content Ends Here -->
    <uc2:Footer ID="ucFooter" runat="server" />
</body>
</html>
