<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_MaterialManagement_Procurement_StockAudit, App_Web_juwaiqy3" title="Untitled Page" 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/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl"
    TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/AlphabetSearchCommonControl.ascx" TagName="AlphabetSearchCommonControl"
    TagPrefix="ACS" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">

    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server">
        <ContentTemplate>
            <ACS:AlphabetSearchCommonControl ID="AlphabetCommonSearch" runat="server" Visible="false" />
            <div id="divContentPage">
                <!-- ContentPlaceHolder Box Starts -->
                <div style="width: 100%; padding: 2px; margin: 2px">
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px" cellpadding="0"
                        cellspacing="0">

                        <tr>
                            <td class="dashBoardLeftCont" valign="top">
                                <div class="himssuHeader3WireBox">
                                    <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                    <table width="200px" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="160"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                            <td style="vertical-align: top; padding-left: 10px" width="99%">
                                <!-- Sub Container Box1 Start -->
                                <div class="himssuHeader2WireBox">
                                    <div class="himsBoxHeader">
                                        <asp:Panel ID="Panel1" runat="server" meta:resourcekey="Panel1Resource1">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <asp:Image ID="Image2" runat="server" class="fLeft"
                                                    meta:resourcekey="Image2Resource1" />
                                                <div class="headerText">
                                                    <asp:Label ID="Label3" runat="server" Text="Criteria"
                                                        meta:resourcekey="Label3Resource1"></asp:Label>
                                                    <cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" TargetControlID="DetailPanel"
                                                        ExpandControlID="Image2" CollapseControlID="Image2" TextLabelID="Label3"
                                                        ImageControlID="Image2" ExpandedImage="~/images/buttonCollapse.gif"
                                                        CollapsedImage="~/images/buttonExpand.gif" Enabled="True" />
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <div class="himsBoxContent">
                                        <asp:Panel ID="DetailPanel" runat="server"
                                            meta:resourcekey="DetailPanelResource1">
                                            <div class="contentHolder">
                                                <div class="outerBox pTop5" runat="server" visible="false">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="LocationLabel" runat="server" Text="Location"
                                                            SkinID="MandatoryLabel" meta:resourcekey="LocationLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft">
                                                        <asp:DropDownList ID="LocationDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                            Width="120px" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()"
                                                            meta:resourcekey="LocationDropDownListResource1">
                                                        </asp:DropDownList>
                                                        <asp:HiddenField ID="IdHiddenField" runat="server" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ItemMainCategoryLabel" runat="server" Text="Main Group"
                                                            meta:resourcekey="ItemMainCategoryLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="ItemMainCategoryDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                            AutoPostBack="True" Width="120px" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            OnSelectedIndexChanged="ItemMainCategoryDropDownList_SelectedIndexChanged"
                                                            meta:resourcekey="ItemMainCategoryDropDownListResource1">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SubCategoryLabel" runat="server" Text="Item Name"
                                                            meta:resourcekey="SubCategoryLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <acc:AutoCompleteControl ID="ItemNameTextBox" runat="server" MinimumPrefixLength="2"
                                                            IsCacheEnabled="false" Width="115px" ContextKey="InventoryPlanning.ItemTitleAll"
                                                            AutoPostBack="true" DisplayLoadingStatus="true"
                                                            FirstRowSelected="false" MaxLength="20" ValidateOnTextChanged="false" />
                                                        <asp:ImageButton ID="StockAuditNoSearchImageButton" ToolTip="Stock Item Name Search"
                                                            SkinID="FindImage" OnClick="StockAuditNoSearchImageButton_Click"
                                                            runat="server" meta:resourcekey="StockAuditNoSearchImageButtonResource1" />
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="alignCenter pTop5">
                                                    <asp:Button ID="RetrievePrintButton" Text="Retrieve & View Report" runat="server"
                                                        SkinID="CustomWidthButton" Width="150px"
                                                        OnClick="RetrievePrintButton_Click"
                                                        meta:resourcekey="RetrievePrintButtonResource1" />
                                                    <asp:Button ID="RetrieveButton" Text="Search" runat="server" SkinID="CustomWidthButton"
                                                        Width="100px" OnClick="SearchButton_Click"
                                                        meta:resourcekey="RetrieveButtonResource1" />
                                                    <asp:Button ID="ClearButton" Text="Clear" runat="server" SkinID="CustomWidthButton"
                                                        Width="100px" OnClick="ClearButton_Click"
                                                        meta:resourcekey="ClearButtonResource1" />
                                                </div>


                                                <!-- Sub Container Box1 Ends -->
                                                <!-- Sub Container Box2 Start -->
                                                <div id="StockAuditRetrieveGridViewDiv" class="himssuHeader7WireBox" runat="server"
                                                    style="width: 100%; margin-right: 5px;">
                                                    <!--StockAuditRetrieveGridView starts-->
                                                    <div id="StockAuditDiv" runat="server">

                                                        <div class="himsBoxHeader" id="Div100" runat="server">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle" style="width: 99%">
                                                                <div class="headerText">
                                                                    <div class="fLeft">
                                                                        <asp:Label ID="OutstandingBillLabel" runat="server" Text=""
                                                                            Font-Bold="True" meta:resourcekey="OutstandingBillLabelResource1"></asp:Label>
                                                                    </div>
                                                                </div>
                                                                <div align="right" class="fRight" style="margin-top: -3px;">
                                                                    <%--  <uc1:GridViewPager ID="StockAuditDetailGridViewPager" runat="server"  
                                        ParentGridView="StockAuditDetailGridView" />--%>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent">
                                                            <asp:GridView ID="StockAuditDetailGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                OnDataBound="StockAuditDetailGridView_DataBound" OnRowDataBound="StockAuditDetailGridView_RowDataBound"
                                                                OnPageIndexChanging="StockAuditDetailGridView_PageIndexChanging"
                                                                OnDataBinding="StockAuditDetailGridView_DataBinding"
                                                                DataKeyNames="StockVerificationId" EmptyDataText="No Records Found"
                                                                meta:resourcekey="StockAuditDetailGridViewResource1">
                                                                <Columns>
                                                                    <asp:TemplateField Visible="False" meta:resourcekey="TemplateFieldResource1">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ApprovalLableLabel" runat="server" Text='<%# Bind("ApprovalStatus") %>'
                                                                                Visible="False" meta:resourcekey="ApprovalLableLabelResource1"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="0%" />
                                                                        <ItemStyle Width="0%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="False" meta:resourcekey="TemplateFieldResource2">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="IdLabel" runat="server" Text='<%# Bind("StockVerificationId") %>'
                                                                                Visible="False" meta:resourcekey="IdLabelResource1"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="0%" />
                                                                        <ItemStyle Width="0%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="False" meta:resourcekey="TemplateFieldResource3">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="StockItemFreezeIdLabel" runat="server" Text='<%# Bind("StockItemFreezeId") %>'
                                                                                Visible="False" meta:resourcekey="StockItemFreezeIdLabelResource1"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="0%" />
                                                                        <ItemStyle Width="0%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="False" meta:resourcekey="TemplateFieldResource4">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="StockBatchIdLabel" runat="server" Text='<%# Bind("StockBatchId") %>'
                                                                                Visible="False" meta:resourcekey="StockBatchIdLabelResource1"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="0%" />
                                                                        <ItemStyle Width="0%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="False" meta:resourcekey="TemplateFieldResource5">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="IsObsoleteLabel" runat="server" Text='<%# Bind("IsObsolete") %>'
                                                                                Visible="False" meta:resourcekey="IsObsoleteLabelResource1"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="0%" />
                                                                        <ItemStyle Width="0%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField meta:resourcekey="TemplateFieldResource6">


                                                                        <HeaderTemplate>
                                                                            <itemstyle horizontalalign="Center" />
                                                                            <itemtemplate>
                                        <asp:CheckBox ID="HeaderSelectCheckBox"   OnCheckedChanged ="HeaderSelectCheckBox_OnCheckedChanged" runat="server"  AutoPostBack="True"/>
                                    </itemtemplate>
                                                                        </HeaderTemplate>
                                                                        <ItemTemplate>
                                                                            <asp:CheckBox ID="StockPVCheckBox" runat="server" meta:resourcekey="StockPVCheckBoxResource1"
                                                                                OnCheckedChanged="StockPVCheckBox_CheckedChanged" />
                                                                        </ItemTemplate>
                                                                        <ItemStyle Width="2%" HorizontalAlign="Center" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Item Code" HeaderStyle-HorizontalAlign="Left"
                                                                        meta:resourcekey="TemplateFieldResource7">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ItemCodeLabel" runat="server" Text='<%# Bind("ItemCode") %>'
                                                                                meta:resourcekey="ItemCodeLabelResource1"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="8%" />
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Item Type" HeaderStyle-HorizontalAlign="Left"
                                                                        meta:resourcekey="TemplateFieldResource8">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ItemTypeLabel" runat="server" Text='<%# Bind("ItemType") %>'
                                                                                meta:resourcekey="ItemTypeLabelResource1"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="10%" />
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Item Name" HeaderStyle-HorizontalAlign="Left"
                                                                        meta:resourcekey="TemplateFieldResource9">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ItemNameLabel" ToolTip='<%# Bind("ItemName") %>' runat="server"
                                                                                Text='<%# ((Eval("ItemName").ToString()).Length) > 25 ? (Eval("ItemName").ToString().Substring(0,25)) + "..." : (Eval("ItemName").ToString()) %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="15%" />
                                                                        <ItemStyle Width="15%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="UOM" meta:resourcekey="TemplateFieldResource10" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="UOMLabel" runat="server" Text='<%# Bind("UOM") %>'
                                                                                meta:resourcekey="UOMLabelResource1"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="12%" />
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Batch No." HeaderStyle-HorizontalAlign="Left"
                                                                        meta:resourcekey="TemplateFieldResource11">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="BatchNoLabel" runat="server" Text='<%# Bind("BatchNo") %>'
                                                                                meta:resourcekey="BatchNoLabelResource1"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="10%" />
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Expiry Date" HeaderStyle-HorizontalAlign="Left"
                                                                        meta:resourcekey="TemplateFieldResource12">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ExpiryLabel" runat="server"
                                                                                Text='<%# FormatDate1(Eval("ExpiryDate")) %>'
                                                                                meta:resourcekey="ExpiryLabelResource1"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="10%" />
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="System Qty" HeaderStyle-HorizontalAlign="Left"
                                                                        meta:resourcekey="TemplateFieldResource13">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="SystemQtyLabel" runat="server" Text='<%# String.Format("{0:F2}",Eval("SystemQuantity")) %>'
                                                                                Style="text-align: Left; border-style: none; background-color: Transparent;"
                                                                                ReadOnly="True" meta:resourcekey="SystemQtyLabelResource1" MaxLength="13"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="10%" />
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Physical Qty" HeaderStyle-HorizontalAlign="Left"
                                                                        meta:resourcekey="TemplateFieldResource14">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="PhysicalQtyTextBox" Width="95%" runat="server" Text='<%# String.Format("{0:F2}",Eval("PhysicalQuantity")) %>'
                                                                                AutoPostBack="True"
                                                                                OnTextChanged="PhysicalQuantityTextBoxGrid_TextChanged" Style="text-align: right;"
                                                                                onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                                                onBlur="javascript:return fnValidateDecimal(this,10,2)"
                                                                                meta:resourcekey="PhysicalQtyTextBoxResource1"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="10%" />
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Time" meta:resourcekey="TemplateFieldResource15" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="TimeLabel" runat="server"
                                                                                Text='<%# FormatDate(Eval("CreatedDateTime")) %>'
                                                                                meta:resourcekey="TimeLabelResource1"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="8%" />
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                                <!--StockAuditRetrieveGridView Ends-->
                                                <!--StockAuditNoSearchGridView starts-->
                                                <div id="StockAuditNoDiv" class="himssuHeader1WireBox" runat="server" style="width: 100%; margin-right: 5px;">
                                                    <div id="StockAuditNoDiv2" runat="server">
                                                        <div class="spacer">
                                                            <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif"
                                                                meta:resourcekey="Image1Resource1" />
                                                        </div>
                                                        <div class="himsBoxHeader" id="Div3" runat="server">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle" style="width: 99%">
                                                                <div class="headerText">
                                                                    <div class="fLeft">
                                                                        <asp:Label ID="ListLabel" Text="List" runat="server" Font-Bold="True"
                                                                            meta:resourcekey="ListLabelResource1" />
                                                                    </div>
                                                                </div>
                                                                <%--<div align="right" class="fRight" style="margin-top: -3px;">
                                    <uc1:GridViewPager ID="StockAuditListGridView_GridViewPager" runat="server" OnFirstRecordClick="StockAuditListGridView_GridViewPager_FirstRecordClick"
                                        OnLastRecordClick="StockAuditListGridView_GridViewPager_LastRecordClick" OnNextRecordClick="StockAuditListGridView_GridViewPager_NextRecordClick"
                                        OnPrevRecordClick="StockAuditListGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="StockAuditListGridView_GridViewPager_TextBoxValueChange"
                                        ParentGridView="StockAuditListGridView" />
                                </div>--%>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent">
                                                            <div class="himsBoxContentMsg" id="StockAuditGridMessageDiv" runat="server"
                                                                visible="False">
                                                            </div>
                                                            <asp:GridView ID="StockAuditListGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                OnRowDataBound="StockAuditListGridView_RowDataBound" OnPageIndexChanging="StockAuditListGridView_PageIndexChanging"
                                                                AllowPaging="false" OnDataBinding="StockAuditListGridView_DataBinding"
                                                                DataKeyNames="StockVerificationId" EmptyDataText="No Records Found"
                                                                meta:resourcekey="StockAuditListGridViewResource1">
                                                                <Columns>
                                                                    <asp:TemplateField Visible="False" meta:resourcekey="TemplateFieldResource16">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ApprovalLableLabel" runat="server" Text='<%# Bind("ApprovalStatus") %>'
                                                                                Visible="False" meta:resourcekey="ApprovalLableLabelResource2"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="0%" />
                                                                        <ItemStyle Width="0%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="False" meta:resourcekey="TemplateFieldResource17">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="IdLabel" runat="server" Text='<%# Bind("StockVerificationId") %>'
                                                                                Visible="False" meta:resourcekey="IdLabelResource2"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="0%" />
                                                                        <ItemStyle Width="0%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="False" meta:resourcekey="TemplateFieldResource18">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="StockItemFreezeIdLabel" runat="server" Text='<%# Bind("StockItemFreezeId") %>'
                                                                                Visible="False" meta:resourcekey="StockItemFreezeIdLabelResource2"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="0%" />
                                                                        <ItemStyle Width="0%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="False" meta:resourcekey="TemplateFieldResource19">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="StockBatchIdLabel" runat="server" Text='<%# Bind("StockBatchId") %>'
                                                                                Visible="False" meta:resourcekey="StockBatchIdLabelResource2"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="0%" />
                                                                        <ItemStyle Width="0%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField Visible="False" meta:resourcekey="TemplateFieldResource20">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="IsObsoleteLabel" runat="server" Text='<%# Bind("IsObsolete") %>'
                                                                                Visible="False" meta:resourcekey="IsObsoleteLabelResource2"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="0%" />
                                                                        <ItemStyle Width="0%" />
                                                                    </asp:TemplateField>


                                                                    <asp:TemplateField meta:resourcekey="TemplateFieldResource21">
                                                                        <HeaderTemplate>
                                                                            <itemstyle horizontalalign="Center" />
                                                                            <itemtemplate>
                                        <asp:CheckBox ID="HeaderSelectCheckBox"   OnCheckedChanged ="HeaderSelectCheckBox_OnCheckedChanged" runat="server"  AutoPostBack="True"/>
                                    </itemtemplate>
                                                                        </HeaderTemplate>
                                                                        <ItemTemplate>
                                                                            <asp:CheckBox ID="StockPVCheckBox" runat="server" meta:resourcekey="StockPVCheckBoxResource2" />
                                                                        </ItemTemplate>
                                                                        <ItemStyle Width="2%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Item Code"
                                                                        meta:resourcekey="TemplateFieldResource22">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ItemCodeLabel" runat="server" Text='<%# Bind("ItemCode") %>'
                                                                                meta:resourcekey="ItemCodeLabelResource2"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="8%" />
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Item Type"
                                                                        meta:resourcekey="TemplateFieldResource23">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ItemTypeLabel" runat="server" Text='<%# Bind("ItemType") %>'
                                                                                meta:resourcekey="ItemTypeLabelResource2"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="10%" />
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Item Name"
                                                                        meta:resourcekey="TemplateFieldResource24">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ItemNameLabel" ToolTip='<%# Bind("ItemName") %>' runat="server"
                                                                                Text='<%# Bind("ItemName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="15%" />
                                                                        <ItemStyle Width="15%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="UOM" meta:resourcekey="TemplateFieldResource25">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="UOMLabel" runat="server" Text='<%# Bind("UOM") %>'
                                                                                meta:resourcekey="UOMLabelResource2"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="12%" />
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Batch No."
                                                                        meta:resourcekey="TemplateFieldResource26">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="BatchNoLabel" runat="server" Text='<%# Bind("BatchNo") %>'
                                                                                meta:resourcekey="BatchNoLabelResource2"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="10%" />
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Expiry Date"
                                                                        meta:resourcekey="TemplateFieldResource27">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ExpiryLabel" runat="server"
                                                                                Text='<%# FormatDate1(Eval("ExpiryDate")) %>'
                                                                                meta:resourcekey="ExpiryLabelResource2"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="10%" />
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="System Qty"
                                                                        meta:resourcekey="TemplateFieldResource28">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="SystemQtyLabel" runat="server" Text='<%# String.Format("{0:F2}",Eval("SystemQuantity")) %>'
                                                                                Style="text-align: right; border-style: none; background-color: Transparent;"
                                                                                ReadOnly="True" meta:resourcekey="SystemQtyLabelResource2" MaxLength="13"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="10%" />
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Physical Qty"
                                                                        meta:resourcekey="TemplateFieldResource29">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="PhysicalQtyTextBox" Width="95%" runat="server" Text='<%# String.Format("{0:F2}",Eval("PhysicalQuantity")) %>'
                                                                                AutoPostBack="True"
                                                                                OnTextChanged="PhysicalQuantityTextBoxGrid_TextChanged" Style="text-align: right;"
                                                                                onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                                                onBlur="javascript:return fnValidateDecimal(this,10,2)"
                                                                                meta:resourcekey="PhysicalQtyTextBoxResource2"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="10%" />
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Time" meta:resourcekey="TemplateFieldResource30">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="TimeLabel" runat="server"
                                                                                Text='<%# FormatDate(Eval("CreatedDateTime")) %>'
                                                                                meta:resourcekey="TimeLabelResource2"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="8%" />
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                                <!--StockAuditNoSearchGrid Ends-->


                                            </div>
                                        </asp:Panel>
                                    </div>

                                </div>

                            </td>
                        </tr>
                    </table>
                    <%--HEDP History Ends Here--%>
                </div>
            </div>
            <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/stock-physicalverification-encrypt" src="../../../JavaScript/rjs/require.js"></script> --%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/stock-physicalverification")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
