<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_MaterialManagement_Procurement_StockAdjustment, App_Web_bd3hgtdm" 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/CommonSearch.ascx" TagName="CommonSearchUserControl"
    TagPrefix="Common" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ 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">
    <%--<link href="../../../App_Themes/responsiv-popup.css" rel="stylesheet" />
    <div id="dvTestLoadingmsg" class="hls-wrap">
        <div class="hls-container">
            <div class="hls-content">
                <div class="dsh-syndicate white-popup" style="display: inline-block; width: 119%; height: 150px">
                    <div class="shippingcard" style="text-align: center; vertical-align: middle; width: 100%;">
                        <span id="spn1msg">Loading Details</span><br>
                        <span style="line-height: 2;" id="spn2msg"><b>Please Wait ...</b></span><br>
                        <span id="spnloadingimgOPD">
                            <img src="../../../Images/Loading1.gif" /></span>
                    </div>
                </div>
            </div>
        </div>
    </div>--%>
    <asp:UpdatePanel ID="StockAdjustmentUpdatePanel" runat="server">
        <ContentTemplate>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <ACS:AlphabetSearchCommonControl ID="AlphabetCommonSearch" runat="server" Visible="false" />
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont">
                    <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>
                            <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">
                    <Stock:StockControl ID="StockUserControl" runat="server" Visible="true" />
                    <div class="card card-box">
                        <asp:Panel ID="Panel1" runat="server" meta:resourcekey="Panel1Resource1" Visible="true">
                            <div class="himssuHeader1WireBox">
                                <div class="himsBoxHeader card-head">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-adjust"></i>
                                                Adjustment
                                            </header>
                                        </div>
                                        <div class="pull-right mt-27">
                                            <asp:Button ID="SearchButton" runat="server" SkinID="0" CssClass="btn btn-search fas" Text="&#xf002; Search" OnClick="SearchButton_Click" />
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent card-body">
                                    <div class="contentHolder">
                                        <asp:Panel ID="HeaderPanel" runat="server" meta:resourcekey="HeaderPanelResource1">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="AdjustmentNoLabel" runat="server" Text="Adjustment No." meta:resourcekey="AdjustmentNoLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft display-flex">
                                                    <acc:AutoCompleteControl ID="AdjustmentNoTextBox" runat="server" OnTextChanged="AdjustmentNoTextBox_TextChanged"
                                                        AutoPostBack="true" MinimumPrefixLength="2" ContextKey="Procurement.AdjustmentNumber"
                                                        DisplayLoadingStatus="true" ValidateOnTextChanged="false" />
                                                    <asp:ImageButton ID="StockAdjustmentSearchImageButton" runat="server" SkinID="FindImage"
                                                        ToolTip="Stock Adjustment Number Search" OnClick="AjustmentSearchImageButton_Click"
                                                        meta:resourcekey="StockAdjustmentSearchImageButtonResource1" />
                                                    <asp:HiddenField ID="StockAdjustmentIDHiddenField" runat="server" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="InwardDateLabel" runat="server" Text="Adjustment Date" meta:resourcekey="InwardDateLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <DPC:DatePickerControl DisplayDatePicker="true" ID="AdjDate" runat="Server"></DPC:DatePickerControl>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3" 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 pRight5">
                                                    <asp:DropDownList ID="LocationDropDownList" runat="server" AutoPostBack="True" CssClass="form-control"
                                                        SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        meta:resourcekey="LocationDropDownListResource1">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <div class="himssuHeader1WireBox">

                                        <div class="himsBoxHeader divcontentpagemargin col-md-12 card-head inner" id="StockItemheaderDiv" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        Stock Item Details
                                                    </header>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="contentHolder">
                                                <asp:Panel ID="DetailSectionPanel" runat="server" meta:resourcekey="DetailSectionPanelResource1">
                                                    <div id="StockDetailsDiv" runat="server">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="CodeLabel" runat="server" Text="Item Code" SkinID="MandatoryLabel"
                                                                    meta:resourcekey="CodeLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft display-flex">
                                                                <acc:AutoCompleteControl ID="CodeTextBox" runat="server" OnTextChanged="ItemCodeTextBox_TextChanged"
                                                                    IsCacheEnabled="false" AutoPostBack="true" MinimumPrefixLength="2" ContextKey="Ip.StockItemMasterCode"
                                                                    DisplayLoadingStatus="true" ValidateOnTextChanged="false" FirstRowSelected="false" />
                                                                <asp:ImageButton ID="CodeSearchImageButton" runat="server" SkinID="FindImage" ToolTip="Code Search"
                                                                    OnClick="CodeSearchImageButton_Click" meta:resourcekey="CodeSearchImageButtonResource1" />
                                                                <asp:HiddenField ID="CodeIDHiddenField" runat="server" />
                                                            </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 pRight5 display-flex">
                                                                <acc:AutoCompleteControl ID="ItemNameTextBox" runat="server" OnTextChanged="ItemNameTextBox_TextChanged"
                                                                    IsCacheEnabled="false" AutoPostBack="true" MinimumPrefixLength="2" ContextKey="InventoryPlanning.ItemTitleAll"
                                                                    DisplayLoadingStatus="true" ValidateOnTextChanged="false" FirstRowSelected="false" />
                                                                <asp:ImageButton ID="ItemNameSearchImageButton" runat="server" SkinID="FindImage"
                                                                    ToolTip="Item Name Search" OnClick="ItemNameSearchButton_OnClick" meta:resourcekey="ItemNameSearchImageButtonResource1" />
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="SystemQtyLabel" runat="server" Text="System Qty" meta:resourcekey="SystemQtyLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="SystemQtyTextBox" runat="server" SkinID="CustomWidthTextbox"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="SystemQtyTextBoxResource1"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="UOMLabel" runat="server" Text="UOM" meta:resourcekey="UOMLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft">
                                                                <asp:TextBox ID="UOMDisplayLabel" runat="server" ReadOnly="True" SkinID="DisabledTextBox"
                                                                    meta:resourcekey="UOMDisplayLabelResource1"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="PhysicalQtyLabel" runat="server" Text="Physical Qty" SkinID="MandatoryLabel"
                                                                    meta:resourcekey="PhysicalQtyLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="PhysicalQtyTextBox" runat="server" SkinID="CustomWidthTextbox"
                                                                    OnTextChanged="PhysicalQtyTextBox_TexChange" Style="text-align: right;" onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                                    onBlur="javascript:return fnValidateDecimal(this,10,2)" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" meta:resourcekey="PhysicalQtyTextBoxResource1"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ReasonLabel" runat="server" Text="Reason" SkinID="MandatoryLabel"
                                                                    meta:resourcekey="ReasonLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="ReasonDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    CssClass="form-control" SkinID="CustomWidthDropDownList" onmouseenter="showHideTooltip()"
                                                                    meta:resourcekey="ReasonDropDownListResource1">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3" id="BatchDiv" runat="server">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="BatchNoLabel" runat="server" Text="Batch No." meta:resourcekey="BatchNoLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="BatchNoDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    SkinID="CustomWidthDropDownList" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                                    OnSelectedIndexChanged="BatchNoDropDownList_SelectedIndexChanged" AutoPostBack="True"
                                                                    meta:resourcekey="BatchNoDropDownListResource1">
                                                                </asp:DropDownList>
                                                                <asp:HiddenField ID="BatchNoDropDownListHiddenField" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3" visible="false" runat="server" id="Expirydiv">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ExpiryDateLabel" Visible="false" runat="server" Text="Expiry Date" meta:resourcekey="ExpiryDateLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="ExpiryDateTextBox" Visible="false" runat="server" SkinID="CustomWidthTextbox"
                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="ExpiryDateTextBoxResource1"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>
                                                        <div class="outerBox 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" SkinID="MultiLineTextbox"
                                                                    onkeypress="return textboxMultilineMaxNumber(this,300)"
                                                                    onchange="return textboxmultilinetextchangeMaxNumber(this,300)" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" meta:resourcekey="RemarksTextBoxResource1"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="cBoth pTop15">
                                                        </div>
                                                        <div class="spacer">
                                                            <img src="../../../Images/spacer.gif" />
                                                        </div>
                                                        <div class="controlLabelWidth pTop5" style="padding-left: 10px">
                                                            <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                                <i class="fa fa-arrow-down"></i>Browse</a>
                                                            <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" 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" NavigateUrl="~/ContentTemplates/Import/Stock_Adjustment.xls" Text="&#xf101; Stock Adjustment Template" CssClass="pointer fas"></asp:HyperLink>
                                                        </div>
                                                        <div class=" alignCenter pTop5">
                                                            <asp:Button ID="AddToListButton" runat="server" SkinID="0"
                                                                CssClass="btn btn-add fas" Text="&#xf067; Add" OnClick="AddToList_Click" meta:resourcekey="AddToListButtonResource1" />
                                                            <asp:Button ID="ClearDetailButton" runat="server" Text="&#xf12d; Clear" CssClass="btn btn-clear fas" SkinID="0"
                                                                OnClick="ClearDetail_Click" meta:resourcekey="ClearButtonResource1" />
                                                            <asp:Button ID="ImportButton" runat="server" Text="&#xf019; Import" CssClass="btn btn-examcommon fas" SkinID="0"
                                                                OnClick="ImportButton_Click" meta:resourcekey="ClearButtonResource1" />
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                                <asp:Panel ID="AdjustmentListPanel" runat="server" meta:resourcekey="AdjustmentListPanelResource1">
                                                    <div class="himssuHeader6WireBox pTop10 col-md-12 cBoth">
                                                        <div class="himsBoxHeader">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle">
                                                                <div class="headerText" id="codeHeader">
                                                                    <asp:Label ID="Label1" runat="server" Text="" meta:resourcekey="Label1Resource1"></asp:Label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent">
                                                            <!--Grid starts-->
                                                            <asp:UpdatePanel ID="AdjustmentListUpdatePanel" runat="server" UpdateMode="Conditional">
                                                                <ContentTemplate>
                                                                    <div id="Div2" runat="server" class="table-responsive">
                                                                        <asp:GridView ID="AdjustmentGridView" SkinID="" runat="server" Width="100%" EmptyDataText="No Stock Adjustment Details Available!"
                                                                            PageSize="2" ShowHeader="true" DataKeyNames="Code,Name,UOM,StockAdjustmentId,BatchNo,AdjustmentDetailId,stockItemId,PhysicalQuantity,ExpiryDate,StoreLocationId,ReasonId,Remark,GoodsReceiptNoteBatchId,SystemQuantity,AdjustedQuantity,Reason,IsFreezed"
                                                                            AutoGenerateColumns="False" OnRowDataBound="AdjustmentGridView_RowDataBound"
                                                                            
                                                                            CssClass="table table-striped table-bordered table-hover">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="StockAdjustmentId" HeaderText="StockAdjustmentId" Visible="False"
                                                                                    meta:resourcekey="BoundFieldResource1">
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="stockItemId" HeaderText="stockItemId" Visible="False"
                                                                                    meta:resourcekey="BoundFieldResource2">
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="StoreLocationId" HeaderText="StoreLocationId" Visible="False"
                                                                                    meta:resourcekey="BoundFieldResource3">
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="ReasonId" HeaderText="ReasonId" Visible="False" meta:resourcekey="BoundFieldResource4">
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="GoodsReceiptNoteBatchId" HeaderText="GoodsReceiptNoteBatchId"
                                                                                    Visible="False" meta:resourcekey="BoundFieldResource5">
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="Code" HeaderText="Code" HeaderStyle-HorizontalAlign="Left"
                                                                                    meta:resourcekey="BoundFieldResource6">
                                                                                    <HeaderStyle HorizontalAlign="Left" Width="7%" />
                                                                                    <ItemStyle HorizontalAlign="Left" Width="7%" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="Name" HeaderText="Name" HeaderStyle-HorizontalAlign="Left"
                                                                                    meta:resourcekey="BoundFieldResource7">
                                                                                    <HeaderStyle HorizontalAlign="Left" Width="10%" />
                                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="UOM" HeaderText="UOM" HeaderStyle-HorizontalAlign="Left"
                                                                                    meta:resourcekey="BoundFieldResource8">
                                                                                    <HeaderStyle HorizontalAlign="Left" Width="5%" />
                                                                                    <ItemStyle HorizontalAlign="Left" Width="5%" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="BatchNo" HeaderText="Batch No" HeaderStyle-HorizontalAlign="Left"
                                                                                    meta:resourcekey="BoundFieldResource9">
                                                                                    <HeaderStyle HorizontalAlign="Left" Width="5%" />
                                                                                    <ItemStyle HorizontalAlign="Left" Width="5%" />
                                                                                </asp:BoundField>
                                                                                <%--  <asp:TemplateField HeaderText="Expiry Date"  HeaderStyle-HorizontalAlign="Left" 
                                                                                            meta:resourcekey="TemplateFieldResource1">
                                                                                            <EditItemTemplate>
                                                                                                <asp:TextBox ID="ExpiryDateTextBox" runat="server" Text='<%# Bind("ExpiryDate") %>' 
                                                                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Width="8%" 
                                                                                                    meta:resourcekey="ExpiryDateTextBoxResource2"></asp:TextBox>
                                                                                            </EditItemTemplate>
                                                                                            <ItemTemplate>
                                                                                                <asp:Label ID="ExpiryDateLabel" runat="server"  Width="8%" 
                                                                                                    Text='<%# ((DateTime)DataBinder.Eval(Container.DataItem, "ExpiryDate") == DateTime.MinValue) ? " " : ((DateTime)DataBinder.Eval(Container.DataItem, "ExpiryDate")).ToShortDateString() %>' 
                                                                                                    meta:resourcekey="ExpiryDateLabelResource2"></asp:Label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>--%>
                                                                                <%--   <asp:BoundField DataField="ExpiryDate" HeaderText="ExpiryDate" Visible="False" 
                                                                                            meta:resourcekey="BoundFieldResource10"  >
                                                                                            <HeaderStyle HorizontalAlign="Left" Width="5%"/>
                                                                                            <ItemStyle HorizontalAlign="Left" Width="5%"/>
                                                                                        </asp:BoundField>--%>

                                                                                <asp:BoundField DataField="PhysicalQuantity" HeaderText="Physical Quantity" meta:resourcekey="BoundFieldResource11">
                                                                                    <HeaderStyle HorizontalAlign="Left" Width="10%" />
                                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="SystemQuantity" HeaderText="System Quantity" meta:resourcekey="BoundFieldResource11">
                                                                                    <HeaderStyle HorizontalAlign="Left" Width="10%" />
                                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="AdjustedQuantity" HeaderText="Adjusted Quantity" meta:resourcekey="BoundFieldResource11" ItemStyle-HorizontalAlign="Left">
                                                                                    <HeaderStyle HorizontalAlign="Left" Width="10%" />
                                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="Reason" HeaderText="Reason" meta:resourcekey="BoundFieldResource11" ItemStyle-HorizontalAlign="Left">
                                                                                    <HeaderStyle HorizontalAlign="Left" Width="10%" />
                                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                                </asp:BoundField>
                                                                                <asp:TemplateField HeaderText="Delete" meta:resourcekey="TemplateFieldResource2">
                                                                                    <ItemTemplate>
                                                                                        <asp:ImageButton ID="DeleteButton" runat="server" SkinID="DeleteImage" ToolTip="Delete"
                                                                                            OnClick="DeleteButton_Click" meta:resourcekey="DeleteButtonResource1" />
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Center" Width="3%" />
                                                                                    <ItemStyle HorizontalAlign="Center" Width="3%" />
                                                                                </asp:TemplateField>
                                                                                <asp:BoundField DataField="Remark" HeaderText="Remark" Visible="False" meta:resourcekey="BoundFieldResource14">
                                                                                    <HeaderStyle HorizontalAlign="Left" Width="0%" />
                                                                                    <ItemStyle HorizontalAlign="Left" Width="0%" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="PhysicalQuantity" HeaderText="PhysicalQuantity" Visible="False"
                                                                                    meta:resourcekey="BoundFieldResource15">
                                                                                    <HeaderStyle HorizontalAlign="Left" Width="0%" />
                                                                                    <ItemStyle HorizontalAlign="Left" Width="0%" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="IsFreezed" HeaderText="Freezed" Visible="False"
                                                                                    meta:resourcekey="BoundFieldResource17">
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                            </Columns>
                                                                        </asp:GridView>
                                                                    </div>
                                                                </ContentTemplate>
                                                            </asp:UpdatePanel>
                                                            <!--Grid Ends-->
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                    <div class="card card-box">
                        <asp:Panel ID="Panel2" runat="server" meta:resourcekey="Panel1Resource1" Visible="false">
                            <div class="himssuHeader1WireBox">
                                <div class="himsBoxHeader card-head">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fal fa-search"></i>
                                                Search
                                            </header>
                                        </div>
                                        <div class="pull-right mt-27">
                                            <asp:Button ID="Button1" runat="server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a; Back" OnClick="BacButton_Click" />
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent card-body">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="RequestNoLabel" runat="server" Text="Request 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="cBoth">
                                    </div>
                                    <div class="spacer">
                                        <img src="../../../Images/spacer.gif" />
                                    </div>
                                    <div class="alignCenter pTop5">
                                        <asp:Button ID="Search_Button" Text="&#xf002; Search" runat="Server" OnClick="Search_Button_Click" SkinID="0" CssClass="fas btn btn-search" />
                                        <asp:Button ID="ResetButton" runat="server" Text="&#xf12d; Clear" CssClass="btn btn-clear fas" SkinID="0" OnClick="ResetButton_Click" />
                                    </div>
                                    <div class="spacer">
                                        <img src="../../../Images/spacer.gif" />
                                    </div>

                                    <div class="himsBoxContent col-md-12">
                                        <%--<div class="himsBoxHeader 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="StockAdjustmentGridView_GridViewPager" runat="server" OnFirstRecordClick="StockAdjustmentGridView_GridViewPager_FirstRecordClick"
                                                OnLastRecordClick="StockAdjustmentGridView_GridViewPager_LastRecordClick" OnNextRecordClick="StockAdjustmentGridView_GridViewPager_NextRecordClick"
                                                OnPrevRecordClick="StockAdjustmentGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="StockAdjustmentGridView_GridViewPager_TextBoxValueChange"
                                                ParentGridView="StockAdjustmentGridView" Visible="false" />
                                        </div>
                                        <div class="himsBoxContent">
                                            <div id="Div4" runat="server" class="table-responsive">
                                                <asp:GridView ID="StockAdjustmentGridView" runat="server" CssClass="table table-striped table-bordered table-hover"
                                                    AutoGenerateColumns="False" ShowHeader="true" DataKeyNames="AdjustmentId,AdjustmentNumber,CreatedDateTime" AllowPaging="true"
                                                    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="Adjustment No" meta:resourcekey="TemplateFieldResource1">
                                                            <ItemTemplate>
                                                                <asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "AdjustmentNumber") %>' ID="ItemCodeLabel"
                                                                    runat="server" meta:resourcekey="ItemCodeLabelResource2"></asp:Label>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="30%" />
                                                            <ItemStyle Width="30%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Adjustment Date" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "CreatedDateTime","{0:dd/MM/yyyy}") %>' ID="ItemNameLabel"
                                                                    runat="server" meta:resourcekey="ItemNameLabelResource2"></asp:Label>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="30%" />
                                                            <ItemStyle Width="30%" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                        </asp:Panel>
                    </div>
                </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/stock-adjustment" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/stock-adjustment")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
