<%@ page language="C#" autoeventwireup="true" inherits="Pages_MaterialManagement_Procurement_GoodsReceiptNote, App_Web_vwjowgv1" 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="cc1" TagName="BatchUserControl" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl"
    TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl"
    TagPrefix="Common" %>
<asp:Content ID="GoodsReceiptNoteContent" runat="server" ContentPlaceHolderID="CP">

    <asp:UpdatePanel ID="GoodsReceiptUpdatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <cc1:BatchUserControl ID="BatchUpdationCtrl" runat="server" />
            <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%" class="whitebox">
                                <!-- Sub Container Box Start -->
                                <div class="himssuHeader1WireBox">
                                    <div class="himsBoxHeader note note1 box box-danger">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                Maintenance
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent">
                                        <div class="contentHolder">
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="PONoLabel" SkinID="MandatoryLabel" Text="PO No" runat="server"
                                                        meta:resourcekey="PONoLabelResource1" />
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <acc:AutoCompleteControl ID="PONoTextBox" runat="server" MinimumPrefixLength="2"
                                                        MaxLength="20" ContextKey="Procurement.PurchaseOrderNumberForGrn" AutoPostBack="true"
                                                        DisplayLoadingStatus="true" OnTextChanged="PONoTextBox_TextChanged" ValidateOnTextChanged="false"
                                                        Width="130px" />
                                                    <asp:ImageButton ID="PONoSearchImageButton" runat="server" ImageUrl="~/Images/icons/icon_find.gif"
                                                        OnClick="PONoSearchImageButton_Click" ToolTip="PO No Search"
                                                        meta:resourcekey="PONoSearchImageButtonResource1"></asp:ImageButton>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label1" Text="PO Date" runat="server"
                                                        meta:resourcekey="Label1Resource1" />
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="PODateLabel" runat="server" SkinID="CustomWidthDisabledTextbox"
                                                        Width="130px" ReadOnly="True" meta:resourcekey="PODateLabelResource1" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label2" Text="Goods Receipt No" runat="server"
                                                        meta:resourcekey="Label2Resource1" />
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <acc:AutoCompleteControl ID="GoodsReceiptNoTextBox" runat="server" MinimumPrefixLength="2"
                                                        MaxLength="20" ContextKey="Procurement.GoodsReceiptNote" AutoPostBack="true"
                                                        DisplayLoadingStatus="true" OnTextChanged="GoodsReceiptNoTextBox_TextChanged" FirstRowSelected="false"
                                                        ValidateOnTextChanged="false" Width="130px" />
                                                    <asp:ImageButton ID="GoodsReceiptNoImageButton" runat="server" ImageUrl="~/Images/icons/icon_find.gif"
                                                        OnClick="GoodsReceiptNoImageButton_Click"
                                                        ToolTip="Goods Receipt No Search"
                                                        meta:resourcekey="GoodsReceiptNoImageButtonResource1"></asp:ImageButton>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label3" Text="Vendor" runat="server"
                                                        meta:resourcekey="Label3Resource1" />
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox SkinID="CustomWidthDisabledTextbox" Width="130px" ReadOnly="True" ID="VendorLabel"
                                                        runat="server" meta:resourcekey="VendorLabelResource1" />
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label4" SkinID="MandatoryLabel" Text="DC No" runat="server"
                                                        meta:resourcekey="Label4Resource1" />
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="DCNoTextBox" SkinID="CustomWidthTextBox" Width="130px" runat="server"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        meta:resourcekey="DCNoTextBoxResource1" />
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                </div>
                                                <div class="fLeft pRight5">
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5" runat="server" visible="false">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label5" Text="Ordering Location" runat="server"
                                                        meta:resourcekey="Label5Resource1" />
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox SkinID="CustomWidthDisabledTextbox" Width="130px" ReadOnly="True" ID="OrderingLocationLabel"
                                                        runat="server" meta:resourcekey="OrderingLocationLabelResource1" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5" runat="server" visible="false">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label6" Text="Receiving Location" SkinID="MandatoryLabel"
                                                        runat="server" meta:resourcekey="Label6Resource1" />
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="ReceivingLocationDropDownList" AutoPostBack="false"
                                                        runat="server" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" Width="135px"
                                                        meta:resourcekey="ReceivingLocationDropDownListResource1">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label7" SkinID="MandatoryLabel" Text="DC Date" runat="server"
                                                        meta:resourcekey="Label7Resource1" />
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <HIMS:DataPickerControl ID="DCDateTextBox" DisplayDatePicker="true" runat="server"
                                                        SkinID="CustomWidthTextBox" Width="100px" />
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5" runat="server" visible="false">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label8" Text="Received By" runat="server"
                                                        meta:resourcekey="Label8Resource1" />
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="ReceivedByTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        runat="server" SkinID="CustomWidthTextbox" Width="130px"
                                                        meta:resourcekey="ReceivedByTextBoxResource1" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label9" Text="Receiving Date" runat="server"
                                                        meta:resourcekey="Label9Resource1" />
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox SkinID="CustomWidthDisabledTextbox" Width="130px" ReadOnly="True" ID="ReceivingDateLabel"
                                                        runat="server" meta:resourcekey="ReceivingDateLabelResource1" />
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>

                                        </div>
                                    </div>
                                </div>
                                <!-- Sub Container Box Ends -->
                                <div class="spacer">
                                    <img src="../../../images/spacer.gif" />
                                </div>
                                <div class="himssuHeader7WireBox">
                                    <div class="himsBoxHeader divcontentpagemargin">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText fLeft">
                                                <asp:Label ID="HeaderLable" runat="server" Text="Item List"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent box-body box-solid gridviewfont">
                                        <!--Grid starts-->
                                        <div id="tableContainer2">
                                            <!--Table starts TODO:Remove Comment-->
                                            <%--<div id="DivHeader" style="vertical-align: top; width: 100%;">
                            <asp:Table ID="GoodsReceiptNoteViewTable" runat="server" CellPadding="0" CellSpacing="0"
                                BackColor="#E8E8E8" ForeColor="Black" Width="100%" GridLines="Both" CssClass="GridViewTableRow"
                                meta:resourcekey="GoodsReceiptNoteViewTableResource1">
                            </asp:Table>
                        </div>--%>
                                            <!--Table ends-->
                                            <!--Grid starts-->
                                            <div id="Div1">
                                                <asp:GridView ID="GoodsReceiptNoteGridView" runat="server" Width="100%"
                                                    AutoGenerateColumns="False" SkinID="" ShowHeader="True" DataKeyNames="Id"
                                                    OnRowDataBound="GoodsReceiptNoteGridView_RowDataBound"
                                                    GridLines="Vertical" EmptyDataText="No PO Details Found"
                                                    meta:resourcekey="GoodsReceiptNoteGridViewResource1"
                                                    CssClass="table table-striped table-bordered">
                                                    <Columns>
                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                                                            <ItemTemplate>
                                                                <asp:Label ID="PurchaseOrderDetailIdLabel" Visible="False" runat="server"
                                                                    Text='<%# Bind("Id") %>' meta:resourcekey="PurchaseOrderDetailIdLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="0%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Select"
                                                            meta:resourcekey="TemplateFieldResource2">
                                                            <ItemTemplate>
                                                                <asp:CheckBox ID="SelectCheckBox" runat="server" AutoPostBack="True" OnCheckedChanged="SelectCheckBox_CheckedChanged"
                                                                    Checked='<%# Bind("IsSelected") %>'
                                                                    meta:resourcekey="SelectCheckBoxResource1" />
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" Width="4%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Item Code" HeaderStyle-HorizontalAlign="Left"
                                                            meta:resourcekey="TemplateFieldResource3">
                                                            <ItemTemplate>
                                                                <asp:LinkButton CssClass="boxEllips" ToolTip='<%# Bind("PurchaseItemData.Title") %>'
                                                                    ID="CodeLabel" runat="server" Text='<%# Bind("PurchaseItemData.Code") %>' OnClick="ItemCodeLinkButton_Click"
                                                                    Enabled='<%# Bind("PurchaseItemData.IsBatchWiseTracking") %>'></asp:LinkButton>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="7%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="UOM" meta:resourcekey="TemplateFieldResource4" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label ID="UOMLabel" runat="server" CssClass="boxEllips" ToolTip='<%# Bind("PurchaseItemData.PurchaseUomData.Code") %>'
                                                                    Text='<%# Bind("PurchaseItemData.PurchaseUomData.Code") %>'></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="5%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Conv. Factor" HeaderStyle-HorizontalAlign="Left"
                                                            meta:resourcekey="TemplateFieldResource5">
                                                            <ItemTemplate>
                                                                <asp:Label ID="ConversionFactorLabel" runat="server"
                                                                    Text='<%# Bind("PurchaseItemData.PurchaseUomData.ConversionFactor") %>'
                                                                    meta:resourcekey="ConversionFactorLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="5%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="PO Qty." HeaderStyle-HorizontalAlign="Left"
                                                            meta:resourcekey="TemplateFieldResource6">
                                                            <ItemTemplate>
                                                                <asp:Label ID="POQuantityLabel" runat="server"
                                                                    Text='<%# Bind("OrderQuantity") %>' meta:resourcekey="POQuantityLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="5%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="PO Bonus Qty." HeaderStyle-HorizontalAlign="Left"
                                                            meta:resourcekey="TemplateFieldResource7">
                                                            <ItemTemplate>
                                                                <asp:Label ID="POBonusQuantityLabel" runat="server"
                                                                    Text='<%# Bind("BonusQuantity") %>'
                                                                    meta:resourcekey="POBonusQuantityLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="5%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Rec Qty." HeaderStyle-HorizontalAlign="Left"
                                                            meta:resourcekey="TemplateFieldResource8">
                                                            <ItemTemplate>
                                                                <asp:Label ID="ReceievedQuantityLabel" runat="server"
                                                                    Text='<%# Bind("ReceivedOrderQuantity") %>'
                                                                    meta:resourcekey="ReceievedQuantityLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="5%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Rec Bonus Qty." HeaderStyle-HorizontalAlign="Left"
                                                            meta:resourcekey="TemplateFieldResource9">
                                                            <ItemTemplate>
                                                                <asp:Label ID="ReceievedBonusQuantityLabel" runat="server"
                                                                    Text='<%# Bind("ReceivedBonusQuantity") %>'
                                                                    meta:resourcekey="ReceievedBonusQuantityLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="5%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Cur. Receipt" HeaderStyle-HorizontalAlign="Left"
                                                            meta:resourcekey="TemplateFieldResource10">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="CurrentReceiptQuantityTextBox" SkinID="CustomWidthTextBox" Width="30px"
                                                                    Text='<%# Bind("CurrentReceiptQuantity") %>' Style="text-align: right;" runat="server"
                                                                    OnTextChanged="CurrentReceiptQuantityTextBox_TextChanged" onKeypress="javascript:return MaskDecimal(event,26,2)"
                                                                    onBlur="javascript:return fnValidateDecimal(this,26,2)"
                                                                    AutoPostBack="True" meta:resourcekey="CurrentReceiptQuantityTextBoxResource1"></asp:TextBox>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="5%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Cur. Bonus Qty" HeaderStyle-HorizontalAlign="Left"
                                                            meta:resourcekey="TemplateFieldResource11">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="CurrentReceiptBonusQuantityTextBox" SkinID="CustomWidthTextBox"
                                                                    Text='<%# Bind("CurrentReceiptBonusQuantity") %>' Width="30px" runat="server"
                                                                    OnTextChanged="CurrentReceiptBonusQuantityTextBox_TextChanged" Style="text-align: right;"
                                                                    AutoPostBack="True" onKeypress="javascript:return MaskDecimal(event,26,2)"
                                                                    onBlur="javascript:return fnValidateDecimal(this,26,2)"
                                                                    meta:resourcekey="CurrentReceiptBonusQuantityTextBoxResource1"></asp:TextBox>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="5%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Unit Price" HeaderStyle-HorizontalAlign="Right"
                                                            meta:resourcekey="TemplateFieldResource12">
                                                            <ItemTemplate>
                                                                <asp:Label ID="UnitPriceLabel" runat="server"
                                                                    Text='<%# String.Format("{0:F2}", Eval("UnitPrice")) %>'
                                                                    meta:resourcekey="UnitPriceLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Right" Width="5%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Amount" HeaderStyle-HorizontalAlign="Right"
                                                            meta:resourcekey="TemplateFieldResource13">
                                                            <ItemTemplate>
                                                                <asp:Label ID="AmountLabel" runat="server"
                                                                    Text='<%# String.Format("{0:F2}", Eval("Amount")) %>'
                                                                    meta:resourcekey="AmountLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Right" Width="7%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Disc. %" HeaderStyle-HorizontalAlign="Right"
                                                            meta:resourcekey="TemplateFieldResource14">
                                                            <ItemTemplate>
                                                                <asp:Label ID="DiscountPercentageLabel" runat="server"
                                                                    Text='<%# Bind("PurchaseDiscountData.DiscountPercentage") %>'
                                                                    meta:resourcekey="DiscountPercentageLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Right" Width="4%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Disc. Amt" HeaderStyle-HorizontalAlign="Right"
                                                            meta:resourcekey="TemplateFieldResource15">
                                                            <ItemTemplate>
                                                                <asp:Label ID="DiscountAmountLabel" runat="server"
                                                                    Text='<%# String.Format("{0:F2}", Eval("PurchaseDiscountData.DiscountAmount")) %>'
                                                                    meta:resourcekey="DiscountAmountLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Right" Width="5%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Tax Code" HeaderStyle-HorizontalAlign="Left"
                                                            meta:resourcekey="TemplateFieldResource16">
                                                            <ItemTemplate>
                                                                <asp:Label ID="TaxCodeLabel" runat="server"
                                                                    Text='<%# Bind("PurchaseItemData.PurchaseUomData.PurchaseTaxData.TaxCode") %>'
                                                                    meta:resourcekey="TaxCodeLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="5%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Tax Amt" HeaderStyle-HorizontalAlign="Right"
                                                            meta:resourcekey="TemplateFieldResource17">
                                                            <ItemTemplate>
                                                                <asp:Label ID="TaxAmountLabel" runat="server"
                                                                    Text='<%# String.Format("{0:F2}", Eval("TaxAmount")) %>'
                                                                    meta:resourcekey="TaxAmountLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Right" Width="5%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Other Tax" HeaderStyle-HorizontalAlign="Right"
                                                            meta:resourcekey="TemplateFieldResource18">
                                                            <ItemTemplate>
                                                                <asp:Label ID="OtherTaxLabel" runat="server"
                                                                    Text='<%# String.Format("{0:F2}", Eval("OtherTaxAmount")) %>'
                                                                    meta:resourcekey="OtherTaxLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Right" Width="5%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Add-On" HeaderStyle-HorizontalAlign="Right"
                                                            meta:resourcekey="TemplateFieldResource19">
                                                            <ItemTemplate>
                                                                <asp:Label ID="AddOnLabel" runat="server"
                                                                    Text='<%# String.Format("{0:F2}", Eval("AddOnCharges")) %>'
                                                                    meta:resourcekey="AddOnLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Right" Width="5%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Net.Amt" HeaderStyle-HorizontalAlign="Right"
                                                            meta:resourcekey="TemplateFieldResource20">
                                                            <ItemTemplate>
                                                                <asp:Label ID="NetAmountLabel" runat="server"
                                                                    Text='<%# String.Format("{0:F2}", Eval("NetAmount")) %>'
                                                                    meta:resourcekey="NetAmountLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Right" Width="7%" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                            </div>
                                            <!--Grid Ends-->
                                        </div>
                                        <!--Grid Ends-->
                                    </div>
                                </div>
                                <!-- Message Box Start -->
                                <div class="himsDisplayBoxBottom alignRight pTop5">
                                    <div class="himsBoxContent ">
                                        <div class="topdisplayContainer">
                                            <table cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td class="bold pLeft40" style="text-align: right">
                                                        <asp:Label ID="Label14" Text="Packaging & Forwarding Charges:" runat="server"
                                                            meta:resourcekey="Label14Resource1" />
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="PackagingForwardingChargeTextBox" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" Style="text-align: right;" onKeypress="javascript:return MaskDecimal(event,26,2)"
                                                            onBlur="javascript:return fnValidateDecimal(this,26,2)" OnTextChanged="PackagingForwardingChargeTextBox_TextChanged"
                                                            AutoPostBack="True" runat="server"
                                                            meta:resourcekey="PackagingForwardingChargeTextBoxResource1" />
                                                        <asp:Label ID="PackagingCurrencyLabel" runat="server"
                                                            meta:resourcekey="PackagingCurrencyLabelResource1"></asp:Label>
                                                    </td>
                                                </tr>
                                                <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>
                                                        <asp:Label ID="NetTotalValueLabel" runat="server" Width="130px"
                                                            meta:resourcekey="NetTotalValueLabelResource1"></asp:Label>
                                                        <asp:Label ID="NetTotalCurrencyLabel" runat="server"
                                                            meta:resourcekey="NetTotalCurrencyLabelResource1"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="bold pLeft40" style="text-align: right">
                                                        <asp:Label ID="RoundedAmountLabel" Visible="False" Text="Rounded Amount:"
                                                            runat="server" meta:resourcekey="RoundedAmountLabelResource1"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="RoundedAmountValueLabel" Visible="False" runat="server"
                                                            Width="130px" meta:resourcekey="RoundedAmountValueLabelResource1"></asp:Label>
                                                        <asp:Label ID="RoundedAmountCurrencyLabel" Visible="False" runat="server"
                                                            meta:resourcekey="RoundedAmountCurrencyLabelResource1"></asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                    <asp:HiddenField ID="GoodsReceiptNoteIdHiddenField" runat="server" />
                                    <asp:HiddenField ID="PurchaseOrderIdHiddenField" runat="server" />
                                    <asp:HiddenField ID="StoreLocationIdHiddenField" runat="server" />
                                </div>

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