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

<%@ 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/CommonSearch/AlphabetSearchCommonControl.ascx" TagName="AlphabetSearchCommonControl"
    TagPrefix="ACS" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ 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">

    <asp:UpdatePanel ID="StockIssueRequestUpnl" 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" 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>
                </div>
                <div class="whiteboxpaddingleft row">
                    <Stock:StockControl ID="StockUserControl" runat="server" Visible="true" />
                    <asp:Panel ID="Panel1" runat="server" meta:resourcekey="Panel1Resource1" Visible="true">
                        <div class="card card-box">
                            <div class="himssuHeader1WireBox">

                                <div class="himsBoxHeader card-head">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-bookmark"></i>
                                                Request
                                            </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">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="RequestNumberLabel" runat="server" Text="Request No"
                                                    meta:resourcekey="RequestNumberLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft display-flex">
                                                <acc:AutoCompleteControl ID="RequestNumberTextBox" runat="server" AutoPostBack="true"
                                                    MinimumPrefixLength="2" FirstRowSelected="false" ContextKey="sProcurement.StockIssueRequestNumber"
                                                    DisplayLoadingStatus="true" ValidateOnTextChanged="false" OnTextChanged="RequestNumberTextBox_TextChanged" />
                                                <asp:ImageButton ID="RequestNumberSearchButton" runat="server" SkinID="FindImage"
                                                    ToolTip="Request Number Search"
                                                    OnClick="RequestNumberSearchButton_OnClick"
                                                    meta:resourcekey="RequestNumberSearchButtonResource1" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="RequestedDateLabel" runat="server" Text="Requested Date"
                                                    meta:resourcekey="RequestedDateLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="RequestedDateDisplayLabel" ReadOnly="True" SkinID="CustomWidthDisabledTextBox"
                                                    runat="server"
                                                    meta:resourcekey="RequestedDateDisplayLabelResource1"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="RequestedByLabel" runat="server" Text="Requested By"
                                                    CssClass="mandatory" meta:resourcekey="RequestedByLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="RequestedByTextBox" runat="server" SkinID="CustomWidthTextbox"
                                                    AutoPostBack="True" MaxLength="100" AutoCompleteType="Disabled" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()"
                                                    meta:resourcekey="RequestedByTextBoxResource1"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ToDepartmentLabel" runat="server" SkinID="MandatoryLabel" Text="To Department"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="ToDepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" CssClass="form-control">
                                                </asp:DropDownList>
                                            </div>

                                        </div>
                                        <div class="cBoth">
                                        </div>
                                        <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="FromLocationLabel" runat="server" Text="From Location"
                                                    CssClass="mandatory" meta:resourcekey="FromLocationLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft">
                                                <asp:DropDownList ID="FromLocationDropDownList" runat="server" AutoPostBack="True"
                                                    CssClass="form-control" SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()"
                                                    meta:resourcekey="FromLocationDropDownListResource1">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ToLocationLabel" runat="server" Text="To Department"
                                                    CssClass="mandatory" meta:resourcekey="ToLocationLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ToLocationDropDownList" runat="server" AutoPostBack="True"
                                                    CssClass="form-control" SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()"
                                                    meta:resourcekey="ToLocationDropDownListResource1">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <%-- <div class="outerBox pTop5 col-md-3">
                            <div class="controlLabelWidth">
                                <asp:Label ID="Label1" runat="server" Text="To First Aid" 
                                     ></asp:Label>
                            </div>
                            <div class="fLeft pRight5">
                                <asp:DropDownList ID="FirstAidDropDownList" runat="server" AutoPostBack="True"
                                    Width="154px" SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()"
                                    onmouseenter="showHideTooltip()" 
                                    OnSelectedIndexChanged="FirstAidDropDownList_SelectedIndexChanged" >
                                </asp:DropDownList>
                            </div>
                        </div>--%>

                                        <div class="cBoth">
                                        </div>
                                    </div>



                                    <!-- Sub Container Box Start -->
                                    <div class="himssuHeader1WireBox pTop15">
                                        <div class="himsBoxHeader card-head inner">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        Request Item details
                                                    </header>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="contentHolder">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ItemCodeLabel" runat="server" Text="Item Code"
                                                            CssClass="mandatory" meta:resourcekey="ItemCodeLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft display-flex">
                                                        <acc:AutoCompleteControl ID="ItemCodeTextBox" runat="server" OnTextChanged="ItemCodeTextBox_TextChanged"
                                                            IsCacheEnabled="false" AutoPostBack="true" MinimumPrefixLength="2" ContextKey="Ip.StockItemMasterCode"
                                                            DisplayLoadingStatus="true" ValidateOnTextChanged="false" />
                                                        <asp:ImageButton ID="ItemCodeSearchButton" runat="server" SkinID="FindImage" ToolTip="Item Code Search"
                                                            OnClick="ItemCodeSearchButton_OnClick"
                                                            meta:resourcekey="ItemCodeSearchButtonResource1" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ItemNameLabel" runat="server" Text="Item Name" CssClass="mandatory"
                                                            meta:resourcekey="ItemNameLabelResource1"></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" MaxLength="50" />
                                                        <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="UOMLabel" runat="server" Text="UOM"
                                                            meta:resourcekey="UOMLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="UOMDisplayLabel" SkinID="CustomWidthDisabledTextBox" runat="server"
                                                            ReadOnly="True" meta:resourcekey="UOMDisplayLabelResource1"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="RequestedQtyLabel" runat="server" Text="Requested Qty"
                                                            CssClass="mandatory" meta:resourcekey="RequestedQtyLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft">
                                                        <asp:TextBox ID="RequestedQtyTextBox" runat="server" SkinID="CustomWidthTextbox"
                                                            AutoPostBack="True" MaxLength="12" AutoCompleteType="Disabled" Style="text-align: right;"
                                                            OnTextChanged="RequestedQtyTextBox_TexChange" onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                            onBlur="javascript:return fnValidateDecimal(this,10,2)" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()"
                                                            meta:resourcekey="RequestedQtyTextBoxResource1"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox11 pTop5 col-md-3">
                                                    <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" SkinID="MultiLineTextbox"
                                                            MaxLength="300" TextMode="MultiLine" Height="44px" onkeypress="return textboxMultilineMaxNumber(this,300)"
                                                            onchange="return textboxmultilinetextchangeMaxNumber(this,300)" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()"
                                                            meta:resourcekey="RemarksTextBoxResource1"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>

                                                <div class=" alignCenter pTop5">
                                                    <asp:Button ID="AddButton" runat="server" CssClass="btn btn-add fas" Text="&#xf067; Add" SkinID="0" TabIndex="15"
                                                        OnClick="AddButton_Click" meta:resourcekey="AddButtonResource1" />
                                                    <asp:Button ID="ClearDetailButton" runat="server" Text="&#xf12d; Clear" CssClass="btn btn-clear fas" SkinID="0"
                                                        OnClick="ClearDetail_Click" meta:resourcekey="ClearButtonResource1" />
                                                </div>
                                                <div class="cBoth">
                                                </div>

                                                <div id="StockIssueRequestDetailsDiv" class="himssuHeader7WireBox pTop10 col-md-12" runat="server" visible="false">
                                                    <div class="himsBoxHeader">
                                                        <div class="leftdiv">
                                                        </div>
                                                        <div class="himsBoxTitle">
                                                            <div class="headerText">
                                                                <div class="fLeft">
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent">
                                                        <div id="Div2" runat="server" class="table-responsive">
                                                            <asp:GridView ID="StockIssueRequestDetailsGridView" runat="server" SkinID=""
                                                                AutoGenerateColumns="False" Width="100%" ShowHeader="True" DataKeyNames="Id"
                                                                OnDataBound="StockIssueRequestDetailsGridView_DataBound" OnRowDataBound="StockIssueRequestDetailsGridView_RowDataBound"
                                                                EmptyDataText="No Records Found"
                                                                meta:resourcekey="StockIssueRequestDetailsGridViewResource1"
                                                                CssClass="table table-striped table-bordered table-hover">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="Item Code" HeaderStyle-HorizontalAlign="Left"
                                                                        meta:resourcekey="TemplateFieldResource1">
                                                                        <ItemTemplate>
                                                                            <asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "ItemCode") %>' ID="ItemCodeLabel"
                                                                                runat="server" meta:resourcekey="ItemCodeLabelResource2"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="30%" />
                                                                        <ItemStyle Width="30%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Item Name" HeaderStyle-HorizontalAlign="Left"
                                                                        meta:resourcekey="TemplateFieldResource2">
                                                                        <ItemTemplate>
                                                                            <asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "ItemTitle") %>' ID="ItemNameLabel"
                                                                                runat="server" meta:resourcekey="ItemNameLabelResource2"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="30%" />
                                                                        <ItemStyle Width="30%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="UOM" meta:resourcekey="TemplateFieldResource3" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "UomTitle") %>' ID="UomLabel"
                                                                                runat="server" meta:resourcekey="UomLabelResource2"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Width="20%" />
                                                                        <ItemStyle Width="20%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Requested Qty" HeaderStyle-HorizontalAlign="Left"
                                                                        meta:resourcekey="TemplateFieldResource4">
                                                                        <HeaderStyle HorizontalAlign="Left" Width="15%" />
                                                                        <ItemStyle HorizontalAlign="Left" Width="15%" />
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="RequestedQtyLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "RequestedQuantity") %>'
                                                                                Style="text-align: Left; border-style: none; background-color: Transparent;"
                                                                                ReadOnly="True" meta:resourcekey="RequestedQtyLabelResource2"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <%--add for mantis: 30883--%>
                                                                    <asp:TemplateField HeaderText="Remark" HeaderStyle-HorizontalAlign="Left"
                                                                        meta:resourcekey="TemplateFieldResource4">
                                                                        <HeaderStyle HorizontalAlign="Left" Width="15%" />
                                                                        <ItemStyle HorizontalAlign="Left" Width="15%" />
                                                                        <ItemTemplate>
                                                                            <asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "Remark") %>' ID="RemarkLabel"
                                                                                runat="server" meta:resourcekey="RemarkLabelResource2"></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Delete"
                                                                        meta:resourcekey="TemplateFieldResource5" HeaderStyle-HorizontalAlign="Center">
                                                                        <HeaderStyle HorizontalAlign="Center" Width="5%" />
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                        <ItemTemplate>
                                                                            <asp:ImageButton ID="DeleteImageButton" SkinID="DeleteImage" ToolTip="Delete" runat="server"
                                                                                OnClick="DeleteImageButton_OnClick"
                                                                                meta:resourcekey="DeleteImageButtonResource1"></asp:ImageButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>
                    <asp:Panel ID="Panel2" runat="server" meta:resourcekey="Panel1Resource1" Visible="false">
                        <div class="card card-box">

                            <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="Button" 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="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="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 class="himsBoxContent">
                                            <div id="Div3" runat="server" class="table-responsive">
                                                <asp:GridView ID="StockIssueGridView" runat="server" CssClass="table table-striped table-bordered table-hover"
                                                    AutoGenerateColumns="False" ShowHeader="true" DataKeyNames="RequestNumber,Id" AllowPaging="true" PageSize="25"
                                                    EmptyDataText="No Records Found" OnRowDataBound="StockIssueGridView_RowDataBound">
                                                    <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="Number" meta:resourcekey="TemplateFieldResource1">
                                                            <ItemTemplate>
                                                                <asp:Label Text='<%#Eval("RequestNumber") %>' ID="ItemCodeLabel"
                                                                    runat="server" meta:resourcekey="ItemCodeLabelResource2"></asp:Label>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="20%" />
                                                            <ItemStyle Width="20%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Requested Date" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label Text='<%# DataBinder.Eval(Container.DataItem, "RequestedDate","{0:dd/MM/yyyy}") %>' ID="ItemNameLabel"
                                                                    runat="server" meta:resourcekey="ItemNameLabelResource2"></asp:Label>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="25%" />
                                                            <ItemStyle Width="25%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Requested By" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label Text='<%#  Eval( "RequestedByName" ) %>' ID="RequestedByNameLabel"
                                                                    runat="server" meta:resourcekey="ItemNameLabelResource2"></asp:Label>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="25%" />
                                                            <ItemStyle Width="25%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="IssueLinkButton" runat="server" OnClick="IssueLinkButton_Click">Stock Issue</asp:LinkButton>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="10%" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/stockissue-request-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/stockissue-request")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
