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

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DataPickerControl"
    TagPrefix="HIMS" %>
<%@ Register Src="~/UserControls/MaterialManagement/Procurement/BatchUpdation.ascx"
    TagPrefix="uBatch" TagName="BatchUserControl" %>
<%@ 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" %>
<asp:Content ID="GoodsReturnNoteContent" runat="server" ContentPlaceHolderID="CP">
    <asp:UpdatePanel ID="GoodsReturnNoteUpdatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->
                <div style="width: 100%; padding: 2px; margin: 2px">
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px" cellpadding="0"
                        cellspacing="0">
                        <tr>
                            <td class="dashBoardLeftCont" valign="top">
                                <div class="himssuHeader3WireBox">
                                    <%-- <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                            <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>    
                                            </div>
                                        </div>
                                    </div>--%>
                                    <table width="0px" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="160"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                            <td style="vertical-align: top;" width="100%">
                                <div class="whitebox">
                                <div class="himssuHeader1WireBox">
                                    <div class="himsBoxHeader note note1 box box-danger">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <asp:Label ID="MaintenanceLabel" runat="server" Text="Detail"
                                                    meta:resourcekey="MaintenanceLabelResource1"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent">
                                        <div class="contentHolder">
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="GoodsReceiptNoteNumberLabel" runat="server" Text="Goods Receipt No"
                                                        SkinID="MandatoryLabel"
                                                        meta:resourcekey="GoodsReceiptNoteNumberLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <acc:AutoCompleteControl ID="GoodsReceiptNoteNumberTextBox" runat="server" AutoPostBack="true"
                                                        OnTextChanged="GoodsReceiptNoteNumberTextBox_TextChanged" SkinID="CustomWidthTextBox"
                                                        Width="130px" MinimumPrefixLength="2" MaxLength="20" ContextKey="Procurement.GoodsReceiptNoteSearch"
                                                        DisplayLoadingStatus="true" ValidateOnTextChanged="false" />
                                                    <asp:ImageButton ID="GoodsReceiptNumberSearchButton" runat="server" SkinID="FindImage"
                                                        ToolTip="Goods Receipt Number Search" Style="height: 16px"
                                                        OnClick="GoodsReceiptNoteNumberSearchButton_Click"
                                                        meta:resourcekey="GoodsReceiptNumberSearchButtonResource1" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="GoodsReceiptNoteDateLabel" runat="server"
                                                        Text="Goods Receipt Date" meta:resourcekey="GoodsReceiptNoteDateLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft">
                                                    <asp:TextBox SkinID="DisabledTextbox" ReadOnly="True" ID="GoodsReceiptNoteDateValueLabel"
                                                        runat="server" 
                                                        meta:resourcekey="GoodsReceiptNoteDateValueLabelResource1"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="GoodsReturnNoteNumberLabel" runat="server"
                                                        Text="Goods Return No" meta:resourcekey="GoodsReturnNoteNumberLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <acc:AutoCompleteControl ID="GoodsReturnNoteNumberTextBox" runat="server" AutoPostBack="true"
                                                        OnTextChanged="GoodsReturnNoteNumberTextBox_TextChanged" SkinID="CustomWidthTextBox"
                                                        Width="130px" MinimumPrefixLength="2" MaxLength="20" ContextKey="Procurement.GoodsReceiptNoteReturn"
                                                        DisplayLoadingStatus="true" ValidateOnTextChanged="false" />
                                                    <asp:ImageButton ID="GoodsReturnNoteNumberSearchButton" runat="server" SkinID="FindImage"
                                                        ToolTip="Goods Return Number Search" Style="height: 16px"
                                                        OnClick="GoodsReturnNoteNumberSearchButton_Click"
                                                        meta:resourcekey="GoodsReturnNoteNumberSearchButtonResource1" />
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DeliveryOrderNumberLabel" runat="server" Text="DC No"
                                                        meta:resourcekey="DeliveryOrderNumberLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft">
                                                    <asp:TextBox SkinID="CustomWidthDisabledTextbox" ReadOnly="True" ID="DeliveryOrderNumberValueLabel"
                                                        runat="server" Width="130px"
                                                        meta:resourcekey="DeliveryOrderNumberValueLabelResource1"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DeliveryDateLabel" runat="server" Text="Delivery Date"
                                                        meta:resourcekey="DeliveryDateLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft">
                                                    <asp:TextBox SkinID="DisabledTextbox" ReadOnly="True" ID="DeliveryDateValueLabel"
                                                        runat="server" 
                                                        meta:resourcekey="DeliveryDateValueLabelResource1"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ReturnDateLabel" runat="server" Text="Return Date"
                                                        meta:resourcekey="ReturnDateLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <HIMS:DataPickerControl ID="ReturnDateTextBox" DisplayDatePicker="true" runat="server"
                                                        OnTextChanged="ReturnDateTextBox_TextChanged" Width="100px" />
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="VendorNameLabel" runat="server" Text="Vendor Name"
                                                        meta:resourcekey="VendorNameLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft">
                                                    <asp:TextBox SkinID="CustomWidthDisabledTextbox" ReadOnly="True" ID="VendorNameValueLabel"
                                                        runat="server" Width="130px"
                                                        meta:resourcekey="VendorNameValueLabelResource1"></asp:TextBox>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5" runat="server" visible="false">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ReceivedLocationLabel" runat="server" Text="Received Location"
                                                        meta:resourcekey="ReceivedLocationLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft">
                                                    <asp:TextBox SkinID="CustomWidthDisabledTextbox" ReadOnly="True" ID="ReceivedLocationValueLabel"
                                                        runat="server" Width="130px"
                                                        meta:resourcekey="ReceivedLocationValueLabelResource1"></asp:TextBox>
                                                </div>
                                            </div>

                                            <div class="outerBoxRemark pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="RemarksLabel" runat="server" Text="Remarks"
                                                        meta:resourcekey="RemarksLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft">
                                                    <asp:TextBox ID="RemarksTextBox" runat="server" TextMode="MultiLine" SkinID="MultiLineTextbox"
                                                        Width="390px" Height="60px" meta:resourcekey="RemarksTextBoxResource1"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="spacer">
                                    <asp:Image ID="Image5" runat="server" ImageUrl="~/Images/spacer.gif"
                                        meta:resourcekey="Image5Resource1" />
                                </div>
                                <asp:Panel ID="grviewPanel" runat="server"
                                    meta:resourcekey="grviewPanelResource1">
                                    <div class="himssuHeader7WireBox">
                                        <div class="himsBoxHeader">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <div class="fLeft">
                                                        <asp:Label ID="ItemListLabel" runat="server" Text=""
                                                            meta:resourcekey="ItemListLabelResource1"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent box-body box-solid gridviewfont">
                                            <asp:GridView ID="GoodsReturnNoteGridView" runat="server" Width="100%"
                                                AutoGenerateColumns="False" SkinID="FixedHeaderGridView" ShowHeader="True" DataKeyNames="GoodsReceiptDetailId,GoodsReturnNoteDetailId"
                                                OnPageIndexChanging="GoodsReturnNoteGridView_PageIndexChanging" OnRowDataBound="GoodsReturnNoteGridView_RowDataBound"
                                                OnRowCreated="GoodsReturnNoteGridView_RowCreated"
                                                meta:resourcekey="GoodsReturnNoteGridViewResource1"
                                                CssClass="table table-striped table-bordered">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="Select"
                                                        meta:resourcekey="TemplateFieldResource1">
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="SelectCheckBox" runat="server" AutoPostBack="True" OnCheckedChanged="SelectCheckBox_CheckedChanged"
                                                                Checked='<%# Bind("IsSelected") %>'
                                                                meta:resourcekey="SelectCheckBoxResource1" />
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" Width="3%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Item Code" HeaderStyle-HorizontalAlign="Left"
                                                        meta:resourcekey="TemplateFieldResource2">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="ItemCodeLinkButton" runat="server" Text='<%# Bind("ItemCode") %>'
                                                                OnClick="ItemCodeLinkButton_Click" CssClass="boxEllips" ToolTip='<%# Bind("ItemName") %>'></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="10%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Name" Visible="False"
                                                        meta:resourcekey="TemplateFieldResource3">
                                                        <ItemTemplate>
                                                            <asp:Label ID="NameLabel" runat="server" Text='<%# Bind("ItemName") %>'
                                                                meta:resourcekey="NameLabelResource2"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="UOM" meta:resourcekey="TemplateFieldResource4" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:Label ID="UOMLabel" runat="server" Text='<%# Bind("UOM") %>'
                                                                meta:resourcekey="UOMLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="4%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Conv. Factor"
                                                        meta:resourcekey="TemplateFieldResource5">
                                                        <ItemTemplate>
                                                            <asp:Label ID="ConversionFactorLabel" runat="server" Text='<%# Bind("ConversionFactor") %>'
                                                                Item meta:resourcekey="ConversionFactorLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" Width="5%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Rec. Qty."
                                                        meta:resourcekey="TemplateFieldResource6">
                                                        <ItemTemplate>
                                                            <asp:Label ID="ReceievedQuantityLabel" runat="server" Text='<%# String.Format("{0:F2}", Eval("ReceiptQuantity")) %>'
                                                                dir="rtl" meta:resourcekey="ReceievedQuantityLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" Width="4%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Ret. Qty."
                                                        meta:resourcekey="TemplateFieldResource7">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="ReturnedQuantityTextBox" runat="server" OnTextChanged="ReturnedQuantityTextBox_TextChanged"
                                                                SkinID="CustomWidthTextbox" Width="70px" AutoPostBack="True" onKeypress="javascript:return fnMaskDecimal(event,26,2)"
                                                                onBlur="javascript:return fnValidateDecimal(this,26,2)" Style="text-align: right;"
                                                                Text='<%# String.Format("{0:F2}", Eval("ReturnedQuantity")) %>'
                                                                meta:resourcekey="ReturnedQuantityTextBoxResource1"></asp:TextBox>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" Width="7%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Bal. Qty."
                                                        meta:resourcekey="TemplateFieldResource8">
                                                        <ItemTemplate>
                                                            <asp:Label ID="BalanceQuantityLabel" runat="server" Text='<%# String.Format("{0:F2}", Eval("BalanceQuantity")) %>'
                                                                dir="rtl" meta:resourcekey="BalanceQuantityLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" Width="5%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Unit Price"
                                                        meta:resourcekey="TemplateFieldResource9">
                                                        <ItemTemplate>
                                                            <asp:Label ID="UnitPriceLabel" runat="server"
                                                                Text='<%# String.Format("{0:F2}", Eval("UnitPrice")) %>'
                                                                meta:resourcekey="UnitPriceLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" Width="8%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Amount"
                                                        meta:resourcekey="TemplateFieldResource10">
                                                        <ItemTemplate>
                                                            <asp:Label ID="AmountLabel" runat="server"
                                                                Text='<%# String.Format("{0:F2}", Eval("NetUnitPrice")) %>'
                                                                meta:resourcekey="AmountLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" Width="8%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Disc. %"
                                                        meta:resourcekey="TemplateFieldResource11">
                                                        <ItemTemplate>
                                                            <asp:Label ID="DiscountPercentageLabel" runat="server"
                                                                Text='<%# Bind("DiscountPercentage") %>'
                                                                meta:resourcekey="DiscountPercentageLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" Width="4%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Disc. Amount"
                                                        meta:resourcekey="TemplateFieldResource12">
                                                        <ItemTemplate>
                                                            <asp:Label ID="DiscountAmountLabel" runat="server"
                                                                Text='<%# String.Format("{0:F2}", Eval("DiscountAmount")) %>'
                                                                meta:resourcekey="DiscountAmountLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" Width="5%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Tax Code"
                                                        meta:resourcekey="TemplateFieldResource13">
                                                        <ItemTemplate>
                                                            <asp:Label ID="TaxCodeLabel" runat="server" Text='<%# Bind("TaxCode") %>'
                                                                meta:resourcekey="TaxCodeLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle Width="4%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Tax Rate" Visible="False"
                                                        meta:resourcekey="TemplateFieldResource14">
                                                        <ItemTemplate>
                                                            <asp:Label ID="TaxRateLabel" runat="server" Text='<%# Bind("TaxRate") %>'
                                                                meta:resourcekey="TaxRateLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Tax Amount"
                                                        meta:resourcekey="TemplateFieldResource15">
                                                        <ItemTemplate>
                                                            <asp:Label ID="TaxAmountLabel" runat="server"
                                                                Text='<%# String.Format("{0:F2}", Eval("TaxAmount")) %>'
                                                                meta:resourcekey="TaxAmountLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" Width="8%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Other Tax"
                                                        meta:resourcekey="TemplateFieldResource16">
                                                        <ItemTemplate>
                                                            <asp:Label ID="OtherTaxLabel" runat="server"
                                                                Text='<%# String.Format("{0:F2}", Eval("OtherTaxAmount")) %>'
                                                                meta:resourcekey="OtherTaxLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" Width="6%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Add- On"
                                                        meta:resourcekey="TemplateFieldResource17">
                                                        <ItemTemplate>
                                                            <asp:Label ID="AddOnLabel" runat="server"
                                                                Text='<%# String.Format("{0:F2}", Eval("AddOnCharges")) %>'
                                                                meta:resourcekey="AddOnLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" Width="6%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Reason"
                                                        meta:resourcekey="TemplateFieldResource18">
                                                        <ItemTemplate>
                                                            <asp:DropDownList ID="ReasonNameDropDownList" runat="server" OnSelectedIndexChanged="ReasonNameDropDownList_SelectedIndexChanged"
                                                                SkinID="CustomWidthDropDownList" Width="80px" AutoPostBack="True" onmouseenter="showHideTooltip()"
                                                                onmouseleave="showHideTooltip()"
                                                                meta:resourcekey="ReasonNameDropDownListResource1">
                                                            </asp:DropDownList>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" Width="6%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Net Amount"
                                                        meta:resourcekey="TemplateFieldResource19">
                                                        <ItemTemplate>
                                                            <asp:Label ID="NetAmountLabel" runat="server"
                                                                Text='<%# String.Format("{0:F2}", Eval("NetAmount")) %>'
                                                                meta:resourcekey="NetAmountLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" Width="7%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Goods Receipt Note Detail Id" Visible="False"
                                                        meta:resourcekey="TemplateFieldResource20">
                                                        <ItemTemplate>
                                                            <asp:Label ID="GoodsReceiptNoteDetailIdLabel" runat="server"
                                                                Text='<%# Bind("GoodsReceiptDetailId") %>'
                                                                meta:resourcekey="GoodsReceiptNoteDetailIdLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Goods Return Note Detail Id" Visible="False"
                                                        meta:resourcekey="TemplateFieldResource21">
                                                        <ItemTemplate>
                                                            <asp:Label ID="GoodsReturnDetailIdLabel" runat="server"
                                                                Text='<%# Bind("GoodsReturnNoteDetailId") %>'
                                                                meta:resourcekey="GoodsReturnDetailIdLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="IsBatchWiseTracking" Visible="False"
                                                        meta:resourcekey="BoundFieldResource1" />
                                                    <asp:TemplateField HeaderText="Item Id" Visible="False"
                                                        meta:resourcekey="TemplateFieldResource22">
                                                        <ItemTemplate>
                                                            <asp:Label ID="ItemIdLabel" runat="server" Text='<%# Bind("ItemId") %>'
                                                                meta:resourcekey="ItemIdLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                            <%-- </div>--%>
                                        </div>
                                        <div class="himsDisplayBoxBottom alignRight" style="margin-bottom:15px;">
                                            <div class="himsBoxContent messageMessage">
                                                <div class="topdisplayContainer alignRight" style="padding-right: 3px;">
                                                    <table cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td class="bold pLeft40" style="text-align: right">
                                                                <asp:Label ID="NetTotalLabel" Text="Net Total:" runat="server"
                                                                    meta:resourcekey="NetTotalLabelResource1"></asp:Label>
                                                            </td>
                                                            <td class="pLeft10" style="width: 130px">
                                                                <asp:TextBox ID="NetTotalValueLabel" dir="rtl" SkinID="DisabledTextbox" Width="130px"
                                                                    ReadOnly="True" runat="server"
                                                                    meta:resourcekey="NetTotalValueLabelResource1" />
                                                            </td>
                                                            <td align="left">
                                                                <asp:Label ID="CurrencyCodeLabel" runat="server"
                                                                    meta:resourcekey="CurrencyCodeLabelResource1"></asp:Label>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </div>
                                            <asp:HiddenField ID="GoodsReceiptNoteIdHiddenField" runat="server" />
                                            <asp:HiddenField ID="GoodsReturnNoteIdHiddenField" runat="server" />
                                            <asp:HiddenField ID="StoreLocationIdHiddenField" runat="server" />
                                            <asp:HiddenField ID="POCreatedDateTimeHiddenField" runat="server" />
                                            <asp:HiddenField ID="VendodIdHiddenField" runat="server" />
                                        </div>
                                    </div>
                                </asp:Panel>
                                    </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="GoodsReturnNoteBatchUpdatePanel" runat="server">
        <ContentTemplate>
            <uBatch:BatchUserControl ID="GoodsReturnNoteBatchUserControl" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/goods-return-note-encrypt" src="../../../JavaScript/rjs/require.js"></script>  --%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/goods-return-note")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>    
</asp:Content>