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

<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DataPickerControl" TagPrefix="HIMS" %>
<%@ Register Src="~/UserControls/MaterialManagement/Procurement/BatchUpdation.ascx" TagPrefix="BUC" TagName="BatchUserControl" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="Common" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/AlphabetSearchCommonControl.ascx" TagName="AlphabetSearchCommonControl" TagPrefix="ACS" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="DPC" %>
<%@ Register Src="~/UserControls/Common/Stock/StockDetailBoxControl.ascx" TagName="StockControl" TagPrefix="Stock" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <div id="divContentPage" class="divcontentpagemargin">
        <div class="dashBoardLeftCont" valign="top">
            <div class="himssuHeader3WireBox">
                <table>
                    <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>
        </div>

        <div class="whiteboxpaddingleft row">
            <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">
                <ContentTemplate>
                    <asp:HiddenField ID="DetailHiddenField" runat="server" />
                    <asp:HiddenField ID="GUIDHiddenField" runat="server" />
                    <asp:HiddenField ID="UploadConfigurationHiddenField" runat="server" />
                    <asp:HiddenField ID="UserSourceTypeHiddenField" runat="server" />
                    <asp:HiddenField ID="UserSourceIdHiddenField" runat="server" />
                    <asp:HiddenField ID="DocumentNameHiddenField" runat="server" />
                    <Stock:StockControl ID="StockUserControl" runat="server" Visible="true" />
                    <asp:Panel ID="Panel1" runat="server" meta:resourcekey="Panel1Resource1" Visible="true">
                        <div class="himssuHeader1WireBox card card-box">
                            <div class="himsBoxHeader card-head">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText" id="codeHeader">
                                        <header>
                                            <i class="fas fa-database"></i>&nbsp; Stock Inward
                                        </header>
                                    </div>

                                </div>
                                <div class="fRight mt-27">
                                    <asp:Button ID="SearchButton" runat="server" SkinID="0" CssClass="btn btn-search fas" Text="&#xf002;  Search" OnClick="SearchButton_Click" />
                                </div>
                            </div>
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="InwardNoLabel" runat="server" Text="Inward No" meta:resourcekey="InwardNoLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft display-flex">
                                            <acc:AutoCompleteControl ID="InwardNoTextBox" runat="server" MinimumPrefixLength="2"
                                                ContextKey="Procurement.StockInwardNumber" AutoPostBack="true"
                                                DisplayLoadingStatus="true" FirstRowSelected="false" ValidateOnTextChanged="false" />
                                            <asp:ImageButton ID="InwardNoSearchImageButton" ToolTip="Inward No. Search" SkinID="FindImage"
                                                OnClick="InwardNoSearchImageButton_Click" runat="server" meta:resourcekey="InwardNoSearchImageButtonResource1" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="InwardDateLabel" runat="server" Text="Inward Date" meta:resourcekey="InwardDateLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <%--<asp:TextBox SkinID="DisabledTextbox" ID="InwarddDateLabel" runat="server"
                                                meta:resourcekey="InwarddDateLabelResource1"></asp:TextBox>--%>
                                            <DPC:DatePickerControl DisplayDatePicker="true" ID="InwarddDateLabel" runat="Server"></DPC:DatePickerControl>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="InwarddByLabel" runat="server" Text="Inward By" meta:resourcekey="InwarddByLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="InwarddByTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                MaxLength="100" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                meta:resourcekey="InwarddByTextBoxResource1"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3 ">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="RequestNoLabel" runat="server" Text="Req. No" meta:resourcekey="RequestNoLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft display-flex">
                                            <acc:AutoCompleteControl ID="RequestNoTextBox" runat="server" MinimumPrefixLength="2"
                                                ContextKey="Procurement.StockInwardRequestNumber" AutoPostBack="true"
                                                DisplayLoadingStatus="true" FirstRowSelected="false" ValidateOnTextChanged="false" />
                                            <asp:ImageButton ID="RequestNoSearchImageButton" ToolTip="Request No. Search" SkinID="FindImage"
                                                OnClick="RequestNoSearchImageButton_Click" runat="server" meta:resourcekey="RequestNoSearchImageButtonResource1" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3 ">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="RequestDateLabel" runat="server" Text="Req. Date" meta:resourcekey="RequestDateLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox SkinID="DisabledTextbox" ReadOnly="True" ID="RequestedDateDisplayLabel"
                                                runat="server" meta:resourcekey="RequestedDateDisplayLabelResource1"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3 ">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="FromLocationLabel" SkinID="mandatoryLabel" runat="server" Text="To SubLocation"
                                                meta:resourcekey="FromLocationLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft">
                                            <asp:DropDownList ID="ToStoreLocationDropDownList" runat="server" CssClass="form-control" AutoPostBack="True"
                                                SkinID="CustomWidthDropDownList" OnSelectedIndexChanged="ToStoreLocationDropDownList_SelectedIndexChanged"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="ToStoreLocationDropDownListResource1">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <%--<div class="outerBox pTop5 col-md-3 ">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="POReferenceLabel" runat="server" Text="POReference" meta:resourcekey="RequestNoLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft">
                                            <asp:TextBox ID="POReferenceTextBox" runat="server"></asp:TextBox>
                                        </div>
                                    </div>--%>
                                    <%--<div class="outerBox pTop5 col-md-3 ">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="InvoiceReferenceLabel" runat="server" Text="InvoiceReference" meta:resourcekey="RequestNoLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft">
                                            <asp:TextBox ID="InvoiceReferenceTextBox" runat="server"></asp:TextBox>
                                        </div>
                                    </div>--%>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="VendorLabel" runat="server" Text="Vendor Code" meta:resourcekey="InwardNoLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft display-flex">
                                            <acc:AutoCompleteControl ID="VendorCodeAutoCompleteControl" runat="server" MinimumPrefixLength="2"
                                                ContextKey="Procurement.Code" AutoPostBack="true" Enabled="false"
                                                DisplayLoadingStatus="true" FirstRowSelected="false" ValidateOnTextChanged="false" />
                                            <asp:ImageButton ID="Ven_ImageButton" ToolTip="Vendor Code" SkinID="FindImage"
                                                OnClick="Ven_ImageButton_Click" runat="server" meta:resourcekey="InwardNoSearchImageButtonResource1" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="VendorNameLabel" runat="server" Text="Vendor Name" meta:resourcekey="InwardNoLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft">
                                            <asp:TextBox ID="VendorTextBox" runat="server" Enabled="false"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox11 pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="BillNolabel" runat="server" Text="Remark" meta:resourcekey="BillNoRemarksLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="BillNoTextBox" runat="server"
                                                TextMode="MultiLine" CssClass="remark-text"
                                                MaxLength="100" onKeypress="javascript:return fnMaxLength(this, 100)" onblur="javascript:return CheckLength(this, 100)"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="BillNoRemarksTextBoxResource1"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="lbl" runat="server" Text="Transaction Date" meta:resourcekey="InwardNoLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft">
                                            <asp:Label ID="lbltransactionDate" runat="server"></asp:Label>
                                        </div>
                                    </div>
                                    <div class="outerBox11 pTop15 col-md-2">
                                        <div class="fLeft">
                                            <asp:CheckBox ID="FileAttachmentCheckBox" runat="server" Text="File Attachment" AutoPostBack="True" OnCheckedChanged="FileAttachmentCheckBox_CheckedChanged" />
                                        </div>
                                    </div>
                                    <div id="FileUploaddiv" visible="False" runat="server">

                                        <div class="alignCenter pTop5 col-md-3 mt-2">
                                            <div class="controlLabelWidth">
                                                <a href="javascript:;" onclick="OpenFileUpload1();" class="btn btn-browser" id="browselink" runat="server">
                                                    <i class="fa fa-arrow-down"></i>Browse</a>
                                                <asp:FileUpload ID="FileUpload1" runat="server" onChange="readURL1(this);" ClientIDMode="Static" Style="display: none;" />
                                                <asp:Button runat="server" ID="RefreshButton" Text=" Refresh" OnClick="RefreshButton_OnClick"
                                                    SkinID="0" class="btn btn-refresh fas" />

                                            </div>

                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label3" runat="server" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="col-md-12">
                                            <div class="alert alert-info ">
                                                <i class="material-icons">info</i>
                                                <asp:Label ID="Label6" Text=" | Click on refresh button to view current uploaded Files"
                                                    runat="server" />
                                            </div>
                                        </div>
                                        <div id="Div11" class="himssuHeader6WireBox col-md-12" runat="server">
                                            <div id="UploadDiv" visible="False" runat="server">

                                                <div class="himsBoxHeader card-head inner" id="HeaderDiv" visible="False" runat="server">
                                                    <div class="leftdiv">
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent width-100">
                                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                        <ContentTemplate>
                                                            <div id="GridViewDiv" runat="server" visible="false" class="table-responsive">
                                                                <asp:GridView ID="FileGridView" runat="server" CssClass="table table-striped table-bordered table-hover"
                                                                    AutoGenerateColumns="False" ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Files Uploaded" OnRowDataBound="FileGridView_RowDataBound">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="File Name" ItemStyle-Width="90%" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:HyperLink ID="FileNameHyperLink" runat="server" Text='<%# Eval("FileName") %>'
                                                                                    NavigateUrl='<%# Eval("FilePath") %>' Target="_blank"></asp:HyperLink>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                            ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:ImageButton ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_OnClick"
                                                                                    ImageUrl="~/Images/delete.png" ToolTip="Delete" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="himsBoxHeader  card-head inner">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle" id="StockInwardDiv" runat="server" visible="true">
                                        <div class="headerText">
                                            <header>
                                                Stock Inward Add
                                            </header>
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent">
                                    <div class="contentHolder">
                                        <div id="StockInwardDetailDiv1" runat="server" visible="true">
                                            <div runat="server" id="mssg" class="col-md-12">
                                                <div class="alert alert-info">
                                                    <strong>Info!</strong>
                                                    <i class="material-icons">info</i>
                                                    <asp:Label ID="lblmssge" runat="server"
                                                        meta:resourcekey="InwardQtyLabelResource1"></asp:Label>
                                                </div>
                                            </div>
                                            <div class="col-md-12 bg-lghtgrey  radiobtn">
                                                <span class="col-md-4">
                                                    <asp:RadioButton runat="server" ID="rbbrows" Text="Single" GroupName="type" Checked="true" OnCheckedChanged="rbbrows_Click" AutoPostBack="true" />
                                                </span>
                                                <span class="col-md-4">
                                                    <asp:RadioButton runat="server" ID="rbimport" Text="Bulk Import" GroupName="type" OnCheckedChanged="rbimport_CheckedChanged" AutoPostBack="true" />
                                                </span>
                                                <span class="col-md-4">
                                                    <asp:RadioButton runat="server" ID="rbcopy" Text="Bulk Copy" GroupName="type" OnCheckedChanged="rbcopy_Click" AutoPostBack="true" />
                                                </span>
                                            </div>
                                            <div class="col-md-12">
                                                <div id="divcopy" runat="server">

                                                    <div class="pTop15 pb5 ">
                                                        <asp:HyperLink ID="HyperLink2" runat="server" CssClass="pointer" NavigateUrl="~/ContentTemplates/Import/Stock.xls"><i class="fas fa-angle-double-right"></i> Stock Inward Template</asp:HyperLink>
                                                    </div>



                                                    <div class="pTop5">
                                                        <asp:TextBox ID="txtCopied" runat="server" TextMode="MultiLine" AutoPostBack="true"
                                                            OnTextChanged="PasteToGridView" Height="200" placeholder="Copy and Paste data here" />
                                                    </div>


                                                </div>
                                                <div id="divImport" runat="server">

                                                    <div class="controlLabelWidth pTop5" style="padding-left: 10px">
                                                        <a href="javascript:;" class="fas btn btn-browser" onclick="OpenFileUpload();">
                                                            <i class="fas fa-upload" aria-hidden="true"></i>Browse
                                                        </a>
                                                        <asp:FileUpload ID="flUpload" onChange="readURL(this);" ClientIDMode="Static" runat="server" Style="display: none;" />
                                                        <asp:Label ID="Label2" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                                    </div>
                                                    <br />
                                                    <div style="padding-left: 10px">
                                                        <asp:HyperLink ID="HyperLink1" runat="server" CssClass="pointer" NavigateUrl="~/ContentTemplates/Import/Stock.xls"><i class="fas fa-angle-double-right"></i>  Stock Inward Template</asp:HyperLink>
                                                    </div>

                                                </div>
                                                <div id="divBrowser" runat="server" class="col-md-12 padd-0">
                                                    <div runat="server">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ItemCodeLabel" SkinID="mandatoryLabel" runat="server" Text="Item Code"
                                                                    meta:resourcekey="ItemCodeLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft display-flex">
                                                                <acc:AutoCompleteControl ID="StockItemCodeTextBox" runat="server" MinimumPrefixLength="2"
                                                                    IsCacheEnabled="false" ContextKey="Common.ItemTitleAll" AutoPostBack="true"
                                                                    DisplayLoadingStatus="true" FirstRowSelected="false" ValidateOnTextChanged="false" />
                                                                <asp:ImageButton ID="ItemCodeSearchButton" ToolTip="Item Code Search" SkinID="FindImage"
                                                                    OnClick="ItemCodeSearchButton_Click" runat="server" meta:resourcekey="ItemCodeSearchButtonResource1" />
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="NameLabel" runat="server" Text="Item Name" meta:resourcekey="NameLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft display-flex">
                                                                <acc:AutoCompleteControl ID="StockItemNameTextBox" runat="server" MinimumPrefixLength="2"
                                                                    IsCacheEnabled="false" ContextKey="InventoryPlanning.ItemTitleAll"
                                                                    AutoPostBack="true" DisplayLoadingStatus="true" FirstRowSelected="false" MaxLength="300"
                                                                    ValidateOnTextChanged="false" />
                                                                <asp:ImageButton ID="ItemNameSearchButton" ToolTip="Item Name Search" SkinID="FindImage"
                                                                    OnClick="ItemNameSearchButton_Click" runat="server" meta:resourcekey="ItemNameSearchButtonResource1" />
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="RequestedQtyLabel" runat="server" Text="Requested Qty" meta:resourcekey="RequestedQtyLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="RequestedQtyTextBox" runat="server" onblur="javascript:return fnValidateDecimal(this,10,2)"
                                                                    onKeypress="javascript:return MaskDecimal(event,10,2)" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" Style="text-align: right;" meta:resourcekey="RequestedQtyTextBoxResource1"></asp:TextBox>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="InwardQtyLabel" SkinID="mandatoryLabel" runat="server" Text="Inward Qty"
                                                                    meta:resourcekey="InwardQtyLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft">
                                                                <asp:TextBox ID="InwardQtyTextBox" runat="server" onblur="javascript:return fnValidateDecimal(this,10,2)"
                                                                    onKeypress="javascript:return MaskDecimal(event,10,2)" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" Style="text-align: right;" meta:resourcekey="InwardQtyTextBoxResource1"></asp:TextBox>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="Label1" SkinID="mandatoryLabel" runat="server" Text="Inward Value"
                                                                    meta:resourcekey="InwardQtyLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft">
                                                                <asp:TextBox ID="InwardValueTextBox" runat="server" onblur="javascript:return fnValidateDecimal(this,16,6)"
                                                                    onKeypress="javascript:return MaskDecimal(event,16,6)" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" Style="text-align: right;"></asp:TextBox>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3" runat="server" visible="false" id="BatchDiv">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="BatchLabel" SkinID="mandatoryLabel" runat="server" Text="Batch" Visible="false"
                                                                    meta:resourcekey="InwardQtyLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft">
                                                                <asp:TextBox ID="BatchTextBox" runat="server" Visible="false"></asp:TextBox>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3" runat="server" visible="false" id="ExpiryDiv">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ExpiryLabel" SkinID="mandatoryLabel" runat="server" Text="Expiry date" Visible="false"
                                                                    meta:resourcekey="InwardQtyLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft">
                                                                <DPC:DatePickerControl ID="ExpiryDateDatePickerControl" runat="server" DisplayDatePicker="true" Visible="false" />
                                                            </div>
                                                        </div>

                                                        <div class="outerBox11 pTop5 col-md-6">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="RemarksLabel" runat="server" Text="Remarks" meta:resourcekey="RemarksLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="RemarksTextBox" runat="server"
                                                                    TextMode="MultiLine" CssClass="remark-text"
                                                                    MaxLength="300" onKeypress="javascript:return fnMaxLength(this, 300)" onblur="javascript:return CheckLength(this, 300)"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="RemarksTextBoxResource1"></asp:TextBox>
                                                            </div>
                                                        </div>

                                                    </div>
                                                </div>
                                            </div>
                                            <div class=" alignCenter col-md-12 pTop5">
                                                <asp:Button ID="AddToListButton" runat="server" SkinID="0" CssClass="fa btn btn-add mt7" Text="&#xf067; Add" OnClick="AddToListButton_Click" meta:resourcekey="AddToListButtonResource1" Visible="false" />
                                                <asp:Button ID="ClearDetailButton" runat="server"
                                                    Text="&#xf12d; Clear" SkinID="0" class="fas btn btn-clear mt7" OnClick="ClearDetail_Click" meta:resourcekey="ClearButtonResource1" Visible="false" />
                                                <asp:Button ID="ImportButton" Text="&#xf019; Import Detail" CssClass="fas btn btn-examcommon mt7 m-b-10" runat="server" SkinID="0"
                                                    OnClick="ImportButton_Click" Visible="false" />
                                                <asp:Button ID="btnValidate" Text="&#xf00c; Validate" runat="server" SkinID="0"
                                                    CssClass="fas btn btn-validate m-b-10" OnClick="btnValidate_Click" meta:resourcekey="AddToListButtonResource1" />
                                                <asp:Button ID="btnInwardforBoowser" Text="&#xf019;  Import Detail" runat="server" SkinID="0" CssClass="fas btn btn-examcommon mt7 m-b-10 "
                                                    OnClick="btnInwardforBoowser_Click" meta:resourcekey="AddToListButtonResource1" Visible="false" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent">
                                        <asp:GridView ID="gdvImportData" runat="server" EmptyDataText="No Records Found" CssClass="table table-hover table-bordered table-striped" Visible="false" OnRowDataBound="gdvImportData_Grid" AutoGenerateColumns="false">
                                            <Columns>
                                                <asp:BoundField DataField="StockItemCode" HeaderText="Item Code"
                                                    SortExpression="StockItemCode" />
                                                <asp:BoundField DataField="StockItemName" HeaderText="Item Name"
                                                    SortExpression="StockItemName" />
                                                <asp:BoundField DataField="ExpiryDate" HeaderText="Expiry Date"
                                                    SortExpression="ExpiryDate" DataFormatString="{0:dd/MM/yyyy}" />
                                                <asp:BoundField DataField="BatchNo" HeaderText="Batch"
                                                    SortExpression="BatchNo" />
                                                <asp:BoundField DataField="InwardQuantity" HeaderText="Inward Quantity"
                                                    SortExpression="InwardQuantity" DataFormatString="{0:0.00}" />
                                                <asp:BoundField DataField="InwardValue" HeaderText="Inward Value"
                                                    SortExpression="InwardValue" DataFormatString="{0:0.00}" />
                                                <asp:TemplateField HeaderText="Error Message" ShowHeader="True">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblError" runat="server" CausesValidation="false" CommandName="lblError" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                    <div id="StockInwardDetailDiv" runat="server">

                                        <div class="himsBoxHeader card-head inner" id="PatientRelationDiv" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText pLeft10" id="InwardStockListDiv" runat="server" visible="false">
                                                    <div class="fLeft">
                                                        <header>
                                                            <asp:Label ID="GridViewLabel" Text="Inward Stock Items List" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1" />
                                                        </header>
                                                    </div>
                                                </div>
                                                <div class="fRight mt-27">
                                                    <uc1:GridViewPager ID="StockInwardDetailGridView_GridViewPager" runat="server" OnFirstRecordClick="StockInwardDetailGridView_GridViewPager_FirstRecordClick"
                                                        OnLastRecordClick="StockInwardDetailGridView_GridViewPager_LastRecordClick" OnNextRecordClick="StockInwardDetailGridView_GridViewPager_NextRecordClick"
                                                        OnPrevRecordClick="StockInwardDetailGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="StockInwardDetailGridView_GridViewPager_TextBoxValueChange"
                                                        ParentGridView="StockInwardDetailGridView" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent  gridviewfont col-md-12">

                                            <%--<asp:Label CssClass="fRight" runat="server" Font-Bold="true" Visible="false" ID="AvlQtyLabel" style="text-align:left;font-size:16px;padding-right:10px;"></asp:Label>--%>

                                            <asp:GridView ID="StockInwardDetailGridView" runat="server" Width="100%" AutoGenerateColumns="False" CssClass="table table-bordered table-striped"
                                                OnRowDataBound="StockInwardDetailGridView_RowDataBound" OnPageIndexChanging="StockInwardDetailGridView_PageIndexChanging"
                                                AllowPaging="True" PageSize="1000" OnDataBinding="StockInwardDetailGridView_DataBinding"
                                                ShowHeader="true" DataKeyNames="StockItemId,IsBatchWiseTracking,InwardQuantity,IsCSSD,StockInwardBatchId,Id" EmptyDataText="No Records Found"
                                                meta:resourcekey="StockInwardDetailGridViewResource1">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="Item Code" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:Label ID="StockItemCodeLinkButton" runat="server" Text='<%# Bind("StockItemCode") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Left" Width="15%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Item Name" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:Label CssClass="boxEllips" ToolTip='<%# Bind("StockItemName") %>' ID="NameLabel"
                                                                runat="server" Text='<%# Bind("StockItemName") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="20%" />
                                                    </asp:TemplateField>
                                                    <asp:BoundField HeaderStyle-HorizontalAlign="Left" DataField="UOM" HeaderText="UOM" meta:resourcekey="BoundFieldResource1">
                                                        <ItemStyle Width="10%" />
                                                    </asp:BoundField>
                                                    <asp:TemplateField HeaderText="Batch">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="BatchGridTextbox"
                                                                runat="server" Text='<%#Eval("BatchNo")%>' OnTextChanged="BatchGridTextbox_TextChanged"></asp:TextBox>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Right" Width="8%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Expiry Date">
                                                        <ItemTemplate>
                                                            <%--   <DPC:DatePickerControl ID="ExpiryDateGridTextbox" runat="server" DisplayDatePicker="true"
                                                            class="datepick"  style="display: initial !important; width: 80% !important;" Text='<%#Eval("ExpiryDate","{0:dd/MM/yyyy}")%>' />--%>
                                                            <asp:TextBox ID="ExpiryDateGridTextbox"
                                                                runat="server" Text='<%#Eval("ExpiryDate","{0:dd/MM/yyyy}")%>' OnTextChanged="ExpiryDateGridTextbox_TextChanged"></asp:TextBox>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Right" Width="14%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Requested Qty">
                                                        <ItemTemplate>
                                                            <asp:Label ID="RequestedLabel" runat="server" Text='<%#Eval("RequestedQuantity") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Right" Width="8%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Available Qty">
                                                        <ItemTemplate>
                                                            <asp:Label ID="AvailableQuantityLabel" runat="server" Text='<%#Eval("AvailableQuantity") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Right" Width="8%" />
                                                    </asp:TemplateField>
                                                    <%-- <asp:BoundField DataField="AvailableQuantity" HeaderText="Available Quantity" HeaderStyle-HorizontalAlign="Left"
                                                        ItemStyle-Width="8%" />--%>
                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Right" HeaderText="Inward Qty" meta:resourcekey="TemplateFieldResource3">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="InwardQuantityTextBoxGrid"
                                                                runat="server" Text='<%# String.Format("{0:F}", Eval("InwardQuantity")) %>'
                                                                MaxLength="13" onblur="javascript:return fnValidateDecimal(this,10,2)" onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Style="text-align: right;"
                                                                OnTextChanged="InwardQuantityTextBoxGrid_TextChanged"></asp:TextBox>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Right" Width="9%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Right" HeaderText="Inward Value" meta:resourcekey="TemplateFieldResource3">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="InwardUnitPriceTextBoxGrid" runat="server" Text='<%# String.Format("{0:F}", Eval("InwardValue")) %>' Style="text-align: right;"></asp:TextBox>
                                                            <%-- <asp:TextBox ID="InwardUnitPriceTextBoxGrid" runat="server" Text='<%# String.Format("{0:F}", Eval("InwardValue")) %>'
                                                            Width="100px"
                                                            MaxLength="13" onblur="javascript:return fnValidateDecimal(this,10,2)" onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Style="text-align: right;"
                                                             ></asp:TextBox>--%>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Right" Width="9%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Delete" meta:resourcekey="TemplateFieldResource4">
                                                        <ItemTemplate>
                                                            <asp:ImageButton ID="DeleteImageButton" runat="server" CommandName="Delete" CommandArgument='<%# Eval("StockItemId") %>'
                                                                OnClick="DeleteImageButton_Click" SkinID="DeleteImage" ToolTip="Delete"
                                                                meta:resourcekey="DeleteImageButtonResource1" />
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                    </asp:TemplateField>
                                                </Columns>
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>
                                    </div>
                                    <BUC:BatchUserControl ID="BatchUpdationCtrl" runat="server" />
                                </div>

                            </div>
                        </div>
                    </asp:Panel>
                </ContentTemplate>
            </asp:UpdatePanel>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Panel ID="Panel2" runat="server" meta:resourcekey="Panel1Resource1" Visible="false">
                        <div class="himssuHeader1WireBox card card-box ">
                            <div class="himsBoxHeader card-head ">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>Search
                                        </header>

                                    </div>
                                    <div class="pull-right mt-27">
                                        <asp:Button ID="Button" runat="server" SkinID="0" CssClass="fal btn btn-back" Text="&#xf30a; Back" OnClick="BacButton_Click" />
                                    </div>
                                </div>
                            </div>
                            <div class="himsBoxContent card-body">
                                <div class="col-md-12 bg-lghtgrey radiobtn">
                                    <div class="controlLabelWidth">
                                        <asp:RadioButtonList ID="StockInwardRadioButtonList" CssClass="col-md-4" runat="server" RepeatDirection="Horizontal"
                                            Height="20px" OnSelectedIndexChanged="StockInwardRadioButtonList_SelectedIndexChanged" AutoPostBack="true">
                                            <asp:ListItem Text="General" Value="1" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="Item Wise" Value="2"></asp:ListItem>
                                        </asp:RadioButtonList>
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                                <div class="outerBox pTop5 col-md-3 ">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="InwrdNoLabel" runat="server" Text="Inward No" meta:resourcekey="InwarddByLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="ReqNoCompleteControl" runat="server" Text="*"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3 ">
                                    <asp:Label ID="FromDateLable" runat="server" Text="From Date"></asp:Label>
                                    <DPC:DatePickerControl DisplayDatePicker="true" ID="FromDatePickerControl"
                                        Visible="True" runat="Server"></DPC:DatePickerControl>
                                </div>
                                <div class="outerBox pTop5 col-md-3 ">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ToDateLabel" runat="server" Text="To Date"></asp:Label>
                                    </div>
                                    <DPC:DatePickerControl DisplayDatePicker="true" ID="ToDateDatePickerControl"
                                        Visible="True" runat="Server"></DPC:DatePickerControl>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="VendorCodeLabel" runat="server" Text="Vendor Code" meta:resourcekey="InwardNoLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft display-flex">
                                        <acc:AutoCompleteControl ID="VendorAutoCompleteControl" runat="server" MinimumPrefixLength="2"
                                            ContextKey="Procurement.Code" AutoPostBack="true" Enabled="false"
                                            DisplayLoadingStatus="true" FirstRowSelected="false" MaxLength="20" ValidateOnTextChanged="false" />
                                        <asp:ImageButton ID="VendorImageButton" ToolTip="Vendor Code" SkinID="FindImage"
                                            OnClick="VendorImageButton_Click" runat="server" meta:resourcekey="InwardNoSearchImageButtonResource1" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="VendorsearchLabel" runat="server" Text="Vendor Name" meta:resourcekey="InwardNoLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft">
                                        <asp:TextBox ID="VendorsearchTextBox" runat="server" Enabled="false"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3" id="SearchItemCodeDiv" runat="server" visible="false">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SearchItemCodeLable" SkinID="mandatoryLabel" runat="server"
                                            Text="Item Code" meta:resourcekey="ItemCodeLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft display-flex">
                                        <acc:AutoCompleteControl ID="SearchItemCodeAutoCompleteControl" runat="server" MinimumPrefixLength="2"
                                            IsCacheEnabled="false" ContextKey="Common.ItemTitleAll"
                                            AutoPostBack="true" DisplayLoadingStatus="true"
                                            FirstRowSelected="false" MaxLength="20" ValidateOnTextChanged="false" />
                                        <asp:ImageButton ID="SearchiIemCodeImageButton" ToolTip="Item Code Search" SkinID="FindImage"
                                            OnClick="SearchiIemCodeImageButton_Click" runat="server"
                                            meta:resourcekey="ItemCodeSearchButtonResource1" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3" id="SearchItemNameDiv" runat="server" visible="false">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SearchItemNameLable" runat="server" Text="Item Name"
                                            meta:resourcekey="NameLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5 display-flex">
                                        <acc:AutoCompleteControl ID="SearchItemNameAutoCompleteControl" runat="server" MinimumPrefixLength="2"
                                            IsCacheEnabled="false"
                                            ContextKey="InventoryPlanning.ItemTitleAll" AutoPostBack="true"
                                            DisplayLoadingStatus="true" FirstRowSelected="false" MaxLength="300"
                                            ValidateOnTextChanged="false" />
                                        <asp:ImageButton ID="SearchItemNameImageButton" ToolTip="Item Name Search" SkinID="FindImage"
                                            OnClick="SearchItemNameImageButton_Click" runat="server"
                                            meta:resourcekey="ItemNameSearchButtonResource1" />
                                    </div>
                                </div>
                                <div class="alignCenter pTop5 col-md-12">
                                    <asp:Button ID="Search_Button" Text="&#xf002; Search" runat="Server" OnClick="Search_Button_Click" SkinID="0" CssClass="fa btn btn-search" />
                                    <asp:Button ID="ResetButton" runat="server" Text="&#xf12d; Clear" SkinID="0" class="fas btn btn-clear" OnClick="ResetButton_Click" />
                                </div>


                                <div class="himsBoxContent  col-md-12 gridviewfont ">
                                    <%--<div class="card-head inner">
                                        <div class="headerText">
                                            <header>
                                                <asp:Label ID="ListLabel" runat="server" Text="List" CssClass="fLeft"></asp:Label>
                                            </header>
                                        </div>
                                    </div>--%>

                                    <div align="right" class="fRight" style="margin-top: 0px;">
                                        <uc1:GridViewPager ID="StockIssueGridView_GridViewPager" runat="server" OnFirstRecordClick="StockIssueGridView_GridViewPager_FirstRecordClick"
                                            OnLastRecordClick="StockIssueGridView_GridViewPager_LastRecordClick" OnNextRecordClick="StockIssueGridView_GridViewPager_NextRecordClick"
                                            OnPrevRecordClick="StockIssueGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="StockIssueGridView_GridViewPager_TextBoxValueChange"
                                            ParentGridView="StockIssueGridView" Visible="false" />
                                    </div>
                                    <div class="cBoth"></div>
                                    <div class="himsBoxContent pTop10">
                                        <asp:GridView ID="StockIssueGridView" runat="server" CssClass="table table-bordered table-striped"
                                            AutoGenerateColumns="False" ShowHeader="true" DataKeyNames="Id,Number,InwardByName,InwardDate,RequestNumber,RequestedDate,TransactionDate" AllowPaging="true"
                                            OnRowDataBound="StockIssueGridView_RowDataBound" EmptyDataText="No Records Found" PageSize="25">
                                            <Columns>
                                                <asp:TemplateField>
                                                    <ItemStyle Width="1%" />
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="EditLinkButton" runat="server" Enabled="true" OnClick="LinkButton_Click"
                                                            Text="Select"></asp:LinkButton>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Inward Number" meta:resourcekey="TemplateFieldResource1">
                                                    <ItemTemplate>
                                                        <asp:Label Text='<%#Eval("Number") %>' ID="ItemCodeLabel"
                                                            runat="server" meta:resourcekey="ItemCodeLabelResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" />
                                                    <ItemStyle Width="15%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Inward Date" meta:resourcekey="TemplateFieldResource1">
                                                    <ItemTemplate>
                                                        <asp:Label Text='<%#Eval("InwardDate","{0:dd/MM/yyyy}") %>' ID="InwardDateLabel"
                                                            runat="server" meta:resourcekey="ItemCodeLabelResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" />
                                                    <ItemStyle Width="15%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Transaction Date" meta:resourcekey="TemplateFieldResource1">
                                                    <ItemTemplate>
                                                        <asp:Label Text='<%#Eval("TransactionDate","{0:dd/MM/yyyy}") %>' ID="TransactionDateLabel"
                                                            runat="server" meta:resourcekey="ItemCodeLabelResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" />
                                                    <ItemStyle Width="15%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Request Number" meta:resourcekey="TemplateFieldResource1">
                                                    <ItemTemplate>
                                                        <asp:Label Text='<%#Eval("RequestNumber") %>' ID="ReqNumberLabel" Style="text-align: right"
                                                            runat="server" meta:resourcekey="ItemCodeLabelResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" />
                                                    <ItemStyle Width="15%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Requested Date" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label Text='<%#Eval("RequestedDate","{0:dd/MM/yyyy}") %>' ID="RequestedDateLabel"
                                                            runat="server" meta:resourcekey="ItemNameLabelResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" />
                                                    <ItemStyle Width="15%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Inward By" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label Text='<%#Eval("InwardByName") %>' ID="ToStoreLocationCodeLabel"
                                                            runat="server" meta:resourcekey="ItemNameLabelResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" />
                                                    <ItemStyle Width="15%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Item Code" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label Text='<%#Eval("StockItemCode") %>' ID="SearchStockItemCode"
                                                            runat="server" meta:resourcekey="ItemNameLabelResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" />
                                                    <ItemStyle Width="15%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Item Name" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label Text='<%#Eval("StockItemName") %>' ID="SearchStockItemName"
                                                            runat="server" meta:resourcekey="ItemNameLabelResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" />
                                                    <ItemStyle Width="15%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="InwardReturnLinkButton" runat="server" OnClick="InwardReturnLinkButton_Click">Stock Inward Return</asp:LinkButton>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="10%" />
                                                </asp:TemplateField>

                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>
                    <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
                    <ACS:AlphabetSearchCommonControl ID="AlphabetCommonSearch" runat="server" Visible="false" />
                </ContentTemplate>
            </asp:UpdatePanel>

        </div>
        <script data-main='<%= ResolveUrl("~/JavaScript/rjs/stock-inward") %>' src='<%= ResolveUrl("~/JavaScript/rjs/require.js") %>'></script>
        <script type="text/javascript">
            function FormatIt(obj) {
                if (obj.value.length == 2) // Day
                    obj.value = obj.value + "/";
                if (obj.value.length == 5) // month
                    obj.value = obj.value + "/";
            }
        </script>
        <script type="text/javascript">
            window.onload = function () {
                document.getElementById("<%=txtCopied.ClientID %>").onpaste = function () {
                    var txt = this;
                    setTimeout(function () {
                        __doPostBack(txt.name, '');
                    }, 100);
                }
            };
        </script>
</asp:Content>
