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

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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">

    <asp:UpdatePanel ID="StockIssueUpdatePanel" runat="server">

        <ContentTemplate>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <ACS:AlphabetSearchCommonControl ID="AlphabetCommonSearch" runat="server" Visible="false" />
            <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
            <Std:StudentSearch ID="StudentSearch1" Visible="false" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <%-- <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                            <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>    
                                            </div>
                                        </div>
                                    </div>--%>
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="160"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <Stock:StockControl ID="StockUserControl" runat="server" Visible="true" />
                    <!-- Sub Container Box Start -->
                    <div class="himssuHeader5WireBox card card-box">
                        <asp:Panel ID="Panel1" runat="server" meta:resourcekey="Panel1Resource1">
                            <div class="himsBoxHeader card-head">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText" id="codeHeader">
                                        <header>
                                            <i class="fas fa-wrench"></i>
                                            Stock Issue Student
                                        </header>
                                    </div>
                                    <div class="pull-right mt-27">
                                        <asp:Button ID="ViewReceiptButton" class="fas btn btn-report" SkinID="0" runat="server" Text="Print Receipt" Visible="false" OnClick="ViewReceiptButton_Click"></asp:Button>
                                        <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="IssueNoLabel" runat="server" Text="Issue No"
                                                meta:resourcekey="IssueNoLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft display-flex">
                                            <acc:AutoCompleteControl ID="IssueNoTextBox" runat="server" Enabled="false" MinimumPrefixLength="2"
                                                ContextKey="Procurement.StockIssueNumber"
                                                AutoPostBack="true" DisplayLoadingStatus="true"
                                                FirstRowSelected="false" MaxLength="20" ValidateOnTextChanged="false" />
                                            <asp:ImageButton ID="IssueNoSearchImageButton" ToolTip="Issue No. Search" SkinID="FindImage"
                                                OnClick="IssueNoSearchImageButton_Click" runat="server"
                                                meta:resourcekey="IssueNoSearchImageButtonResource1" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <asp:Label ID="IssueDateLabel" runat="server" Text="Issued Date"></asp:Label>
                                        <HIMS:DataPickerControl DisplayDatePicker="true" ID="IssuedDateLabel"
                                            meta:resourcekey="IssuedDateLabelResource1" runat="Server"></HIMS:DataPickerControl>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="IssuedByLabel" runat="server" Text="Issued By"
                                                meta:resourcekey="IssuedByLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="IssuedByTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                MaxLength="100" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" meta:resourcekey="IssuedByTextBoxResource1"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div id="SUIdDiv" class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SUIdLabel" runat="server" Text="SU Id"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SUIdTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                AutoPostBack="true" MaxLength="50" OnTextChanged="SUIdTextBox_TextChanged"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="FromLocationLabel" SkinID="mandatoryLabel" runat="server"
                                                Text="From Location" meta:resourcekey="FromLocationLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft">
                                            <asp:DropDownList ID="FromLocationDropDownList" runat="server" CssClass="form-control" AutoPostBack="True"
                                                SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                meta:resourcekey="FromLocationDropDownListResource1">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="OrganizationLabel" runat="server" Text="Organization"
                                                meta:resourcekey="IssuedByLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="OrganizationDropDownList" runat="server" CssClass="form-control" OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Batch_Label" runat="server" Text="Batch"
                                                meta:resourcekey="IssuedByLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="Batch_DropDownList" runat="server" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="Batch_DropDownList_SelectedIndexChanged"></asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ToLocationLabel" SkinID="mandatoryLabel" runat="server"
                                                Text="To Dept" meta:resourcekey="ToLocationLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="ToDepartmentDropDownList" runat="server" CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true"
                                                SkinID="CustomWidthDropDownList" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="ToDepartmentDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-6 col-sm-4 col-xs-12">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StudentAutoSearchLabel" runat="server" Text="Student Search"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="StudentAutoSearchTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" onkeyup="SearchStudent(this);" onclick="SearchStudent(this);"
                                                SkinID="CustomWidthTextBox" runat="server" CssClass="studentautosearchitem"> </asp:TextBox>
                                            <div id="AutoSearchSuggestion"></div>
                                            <asp:HiddenField ID="SearchListHiddenField" runat="server" />
                                        </div>
                                    </div>
                                    <asp:Panel ID="StudentSearchPanel" runat="server">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SourceCodeLabel" runat="server" Text="ID No" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5 display-flex">
                                                <asp:TextBox ID="SourceCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="server" OnTextChanged="SourceCodeTextBox_TextChanged" AutoPostBack="true"
                                                    MaxLength="200"> 
                                                </asp:TextBox>
                                                <asp:ImageButton SkinID="FindImage" ToolTip="ID Search" ID="SourceCodeImageButton"
                                                    runat="server" ImageUrl="../../Images/icons/icon_find.gif" />
                                                <asp:HiddenField ID="AcademicIdHiddenField" runat="server" />
                                                <asp:HiddenField ID="StudentIdHiddenField" runat="server" />
                                                <asp:HiddenField ID="DepositHeadIdHiddenField" runat="server" />
                                            </div>
                                        </div>
                                    </asp:Panel>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="NameLabel" runat="server"
                                                Text="Name" meta:resourcekey="ToLocationLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="StudentNameTextBox" Enabled="false" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ClassDivLabel" runat="server"
                                                Text="ClassDiv" meta:resourcekey="ToLocationLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="ClassDivTextBox" Enabled="false" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="lbl" runat="server" Text="Transaction Date" meta:resourcekey="InwardNoLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft">
                                            <asp:Label ID="lbltransactionDate" runat="server"></asp:Label>
                                        </div>
                                    </div>

                                    <%-- MAntis - 0032618 --%>
                                    <div class="outerBox11 pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ReferenceRemarkLabel" runat="server" Text="Remark"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="RemarkTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="MultiLineTextBox" TextMode="MultiLine" runat="server"> </asp:TextBox>
                                        </div>
                                    </div>
                                    <%-- mantis - 0032618 --%>



                                    <div runat="server" id="WithReceiptDiv" visible="true">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="PayTypeLabel" runat="server" Text="Pay Type" SkinID="MandatoryLabel"
                                                    meta:resourcekey="PayTypeLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="PayTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="true" OnSelectedIndexChanged="PayTypeDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div runat="server" id="GenrateReceiptDiv" class="outerBox pTop5 col-md-3" visible="false">
                                            <asp:Button ID="GenerateButton" runat="Server" Text="&#xf0e2; Generate Receipt" CssClass="btn-assign btn fas" SkinID="0" OnClick="GenerateButton_Click" />
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ChequeNoLabel" runat="server" Text="Cheque No / Reference No"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="ChequeNoTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                    MaxLength="40">
                                                </asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="BankNameLabel" runat="server" Text="Bank Name"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <acc:AutoCompleteControl ID="BankNameTextBox" runat="server" MinimumPrefixLength="2"
                                                    MaxLength="50" ContextKey="sFinanceCommon.Bank" DisplayLoadingStatus="true" SkinID="CustomWidthTextBox"
                                                    CssClass="form-control" ValidateOnTextChanged="false" />
                                                <asp:HiddenField ID="BankIdHiddenField" runat="server" />
                                            </div>
                                        </div>
                                        <div class="">
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ChequeDateLabelM" runat="server" Text="Cheque Date" SkinID="MandatoryLabel" Visible="false"></asp:Label>
                                                <asp:Label ID="ChequeDateLabel" runat="server" Text="Cheque Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="ChequeDateDatePickerControl"
                                                    runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ReceiptNoLabel" runat="server" Text="Receipt No"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:HiddenField ID="ReceiptIdHiddenField" runat="server" />
                                                <asp:TextBox ID="ReceiptNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Enabled="false"
                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="9" onkeypress="javascript:return isNumberKey(this)"> </asp:TextBox>
                                            </div>
                                        </div>
                                        <div runat="server" id="DepositDetailsDiv" visible="false">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DepositHeadLabel" Text="Deposit Head" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="DepositHeadIdDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" AutoPostBack="true" SkinID="CustomWidthDropDownList"
                                                        class="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ExpenseLabel" runat="server" Text="Expense Type" CssClass="mandatory"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="ExpenseTypeDropDownList" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthDropDownList" runat="server" class="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="himssuHeader1WireBox">
                                        <div class="himsBoxHeader col-md-12 card-head inner">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        Stock Issue Details
                                                    </header>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent pt-0 pb-0">
                                            <div class="contentHolder">
                                                <div class="tableContainer">

                                                    <%--<div class="navgraybackground">
                                                        <ul class="nav nav-tabs">
                                                            <li id="StockIssue" runat="server">
                                                                <a href="#tab_1">
                                                                    <asp:Button Text="Stock Issue" ID="StockIssueButton" CssClass="fas transparenttab" SkinID="0"
                                                                        runat="server" OnClick="StockIssueButton_Click" AutoPostBack="True" />
                                                                </a>
                                                            </li>
                                                            <li id="StockIssueImport" runat="server">
                                                                <a>
                                                                    <asp:Button Text="Stock Issue Import" ID="StockIssueImportButton" CssClass="fas transparenttab" SkinID="0"
                                                                        runat="server" OnClick="StockIssueImportButton_Click" AutoPostBack="True" />
                                                                </a>
                                                            </li>
                                                        </ul>
                                                    </div>--%>

                                                    <div id="StockIssueDiv" runat="server">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="CategoryLabel" runat="server" Text="Main Group"
                                                                    meta:resourcekey="IssuedByLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="CategoryDropDownList" runat="server" CssClass="form-control" OnSelectedIndexChanged="CategoryDropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="SubGroupLabel" runat="server" Text="Sub Group"
                                                                    meta:resourcekey="IssuedByLabelResource1"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:DropDownList ID="SubGroupDropDownList" runat="server" CssClass="form-control" OnSelectedIndexChanged="SubGroupDropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:CheckBox ID="MultipleDataCheckBox" runat="server" Text="Multiple Data" Visible="false" AutoPostBack="true"
                                                                    meta:resourcekey="IssuedByLabelResource1" OnCheckedChanged="MultipleDataCheckBox_CheckedChanged"></asp:CheckBox>
                                                            </div>
                                                        </div>

                                                        <%--changes for mantis id:0046099--%>
                                                        <div id="divBrowser" runat="server" class="col-md-12 padd-0">
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="ItemCodeLabel" runat="server" Text="Item Code"
                                                                        meta:resourcekey="ItemCodeLabelResource1"></asp:Label>
                                                                </div>
                                                                <div class="fLeft display-flex">
                                                                    <acc:AutoCompleteControl ID="StockItemCodeTextBox" runat="server" MinimumPrefixLength="2"
                                                                        IsCacheEnabled="false" ContextKey="Common.ItemTitleAll" AutoPostBack="true"
                                                                        DisplayLoadingStatus="true" FirstRowSelected="false" ValidateOnTextChanged="false" />
                                                                    <asp:ImageButton ID="ItemCodeSearchButton" ToolTip="Item Code Search" SkinID="FindImage"
                                                                        runat="server" meta:resourcekey="ItemCodeSearchButtonResource1" OnClick="ItemCodeSearchButton_Click" />
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="StockItemNameLabel" runat="server" Text="Item Name" meta:resourcekey="NameLabelResource1"></asp:Label>
                                                                </div>
                                                                <div class="fLeft display-flex">
                                                                    <acc:AutoCompleteControl ID="StockItemNameTextBox" runat="server" MinimumPrefixLength="2"
                                                                        IsCacheEnabled="false" ContextKey="InventoryPlanning.ItemTitleAll" AutoPostBack="true"
                                                                        DisplayLoadingStatus="true" FirstRowSelected="false" MaxLength="300" ValidateOnTextChanged="false" />
                                                                    <asp:ImageButton ID="ItemNameSearchButton" ToolTip="Item Name Search" SkinID="FindImage"
                                                                        runat="server" meta:resourcekey="ItemNameSearchButtonResource1" OnClick="ItemNameSearchButton_Click" />
                                                                </div>
                                                            </div>
                                                            <div id="FilterStatusDiv" runat="server" visible="true">
                                                                <div class="outerBox11 pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:CheckBox ID="StockKitCheckBox" runat="server" Visible="true" AutoPostBack="True" OnCheckedChanged="StockKitCheckBox_CheckedChanged" />
                                                                        <asp:Label ID="SubCategoryBulkLabel" runat="server" Text="Stock Kit" class="pLeft5"></asp:Label>
                                                                    </div>
                                                                    <div runat="server" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0">
                                                                        <asp:CheckBoxList ID="StockKitCheckBoxList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="StockKitCheckBoxList_CheckedChanged">
                                                                        </asp:CheckBoxList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="cBoth"></div>
                                                        <div class="himssuHeader6WireBox col-md-12">
                                                            <div class="himsBoxContent">

                                                                <div class="cBoth"></div>
                                                            </div>
                                                            <div class="cBoth pTop5"></div>
                                                            <div class="fRight display-flex col-md-4 pb-1" id="ApplyAlldiv" visible="false" runat="server">
                                                                <div>
                                                                    <asp:Label runat="server" Text="Item Quantity :" />
                                                                </div>
                                                                <div>
                                                                    <asp:TextBox ID="ApplyAllTextBox" runat="server" ClientIDMode="Static" MaxLength="5"
                                                                        SkinID="CustomWidthTextBox"></asp:TextBox>
                                                                </div>
                                                                &nbsp; &nbsp;
                                                                    <asp:Button ID="ApplyAllButton" runat="server" class="btn-apply btn fas mt-11" OnClick="ApplyAllButton1_Click"
                                                                        Text="&#xf058; Apply All" SkinID="0" />
                                                            </div>

                                                            <div class="himsBoxContent">

                                                                <div id="Div2" runat="server" class="table-responsive">
                                                                    <%--Added for mantis : 39348--%>
                                                                    <asp:GridView ID="GridView1" runat="server" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="StockItemId,Quantity,Id" AutoGenerateColumns="false" CssClass="table table-striped table-bordered table-hover" OnRowCommand="GridView1_RowCommand" ShowFooter="true">
                                                                        <Columns>

                                                                            <asp:TemplateField ItemStyle-Width="5%">
                                                                                <ItemTemplate>
                                                                                    <asp:ImageButton ID="ImageButtonAdd" runat="server" CommandArgument='<%# Eval("ItemSubGroupId") %>' />
                                                                                    <asp:ImageButton ID="ImageButtonDelete" runat="server" CommandArgument='<%#  Eval("ItemSubGroupId")  %>' />
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Item Id" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%" Visible="false">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="IdLabel" runat="server" Text='<%#Eval("ItemSubGroupId") %>'></asp:Label>

                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="SubGroup" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="GroupLabel" runat="server" Text='<%#Eval("StockItemName") %>'></asp:Label>

                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderText="Item Name" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%">
                                                                                <ItemTemplate>


                                                                                    <asp:DropDownList ID="Size_DropDownList" runat="server" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="Size_DropDownList_SelectedIndexChanged"></asp:DropDownList><%--Added OnSelectedIndexChanged by Dhananjay For mantis - 0034911--%>
                                                                                    <%--<asp:HiddenField ID="HiddenFieldType" runat="server" />--%>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Item Quantity" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="ItemQuantityTextBox" runat="server" OnTextChanged="QuantityTextBoxGrid_TextChanged" AutoPostBack="true" SkinID="CustomWidthTextBox" MaxLength="100"></asp:TextBox>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <%--add for mantis: 35360--%>
                                                                            <asp:TemplateField HeaderText="Item Price" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="WACCostLabel" runat="server"></asp:Label>
                                                                                </ItemTemplate>
                                                                                <%--Added for mantis : 39348--%>
                                                                                <FooterTemplate>
                                                                                    <asp:Label ID="TotalLabel" ClientIDMode="Static" runat="server" Text="Total" Font-Bold="true"></asp:Label>
                                                                                </FooterTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Amount" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="AmountLabel" runat="server"></asp:Label>
                                                                                </ItemTemplate>
                                                                                <FooterTemplate>
                                                                                    <asp:Label ID="TotalAmountLabel" runat="server" Font-Bold="true"></asp:Label>
                                                                                </FooterTemplate>
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <%--<div id="StockIssueImportDiv" runat="server">
                                                        <div class="cBoth">
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:HyperLink ID="HyperLink3" runat="server" Text="&#xf101; Download Template" NavigateUrl="~/ContentTemplates/Import/Stock_Issue_Import_Templet.xls" CssClass="pointer fas"></asp:HyperLink>--%>
                                                    <%-- <asp:HyperLink ID="HyperLink4" runat="server" Text="&#xf101; Download Template" NavigateUrl="~/ContentTemplates/Import/Students_Import_Template.csv" Visible="false" CssClass="pointer fas"></asp:HyperLink>--%>
                                                    <%--</div>
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                                    <i class="fa fa-arrow-down"></i>Browse</a>
                                                                <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />
                                                            </div>
                                                            <asp:Label ID="Label3" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <asp:Button ID="Button1" Text="&#xf019; Import Detail" CssClass="btn btn-examcommon fas" SkinID="0" runat="server"
                                                                OnClick="ImportButton_Click" meta:resourcekey="AddToListButtonResource1" />
                                                        </div>
                                                    </div>--%>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="himsBoxContent">
                                            <div class="contentHolder">


                                                <%--<div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="CategoryLabel" runat="server" Text="Main Group"
                                                            meta:resourcekey="IssuedByLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="CategoryDropDownList" runat="server" CssClass="form-control" OnSelectedIndexChanged="CategoryDropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SubGroupLabel" runat="server" Text="Sub Group"
                                                            meta:resourcekey="IssuedByLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="SubGroupDropDownList" runat="server" CssClass="form-control" OnSelectedIndexChanged="SubGroupDropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                                    </div>
                                                </div>--%>

                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5 col-md-3" runat="server" visible="false" id="subgroupdiv">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ItemLabel" runat="server" Text="SubGroup" Visible="false"
                                                            meta:resourcekey="IssuedByLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="ItemDropDownList" runat="server" CssClass="form-control" Visible="false"></asp:DropDownList>
                                                    </div>
                                                </div>


                                                <div class="outerBox pTop5 col-md-3" runat="server" visible="false" id="itemnamediv">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SizeLabel" runat="server" Text="Item Name" Visible="false"
                                                            meta:resourcekey="IssuedByLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="SizeDropDownList" runat="server" CssClass="form-control" Visible="false"></asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3" runat="server" visible="false" id="itemQtydiv">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="QuantityLabel" runat="server" Text="Item Quantity" Visible="false"
                                                            meta:resourcekey="IssuedByLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="QuantityTextBox" runat="server" Visible="false"></asp:TextBox>
                                                    </div>
                                                </div>



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

                                                <br />

                                                <div class=" alignCenter pTop5">
                                                    <asp:Button ID="AddToListButton" runat="server" SkinID="CustomWidthButton"
                                                        CssClass="btn btn-add fas" Text="&#xf067; Add" OnClick="AddToListButton_Click" Visible="false"
                                                        meta:resourcekey="AddToListButtonResource1" />
                                                    <asp:Button ID="ClearDetailButton" runat="server" Text="&#xf12d; Clear" CssClass="btn btn-clear fas" SkinID="0"
                                                        OnClick="ClearDetail_Click" meta:resourcekey="ClearButtonResource1" Visible="false" />
                                                    <asp:Button ID="ImportButton" Text="&#xf019; Import Detail" CssClass="btn btn-examcommon fas" SkinID="0" runat="server" Visible="false"
                                                        OnClick="ImportButton_Click" meta:resourcekey="AddToListButtonResource1" />
                                                </div>


                                                <div class="cBoth">
                                                </div>
                                                <div id="StockIssueDetailDiv" class="himssuHeader6WireBox col-md-12 pb-0" runat="server">

                                                    <div class="himsBoxHeader" id="PatientRelationDiv" runat="server">
                                                        <div class="leftdiv">
                                                        </div>
                                                        <div class="himsBoxTitle">
                                                            <div class="headerText">
                                                                <div class="fLeft">
                                                                    <asp:Label ID="GridViewLabel" Text="" runat="server" Font-Bold="True"
                                                                        meta:resourcekey="GridViewLabelResource1" />
                                                                </div>
                                                            </div>
                                                            <div align="right" class="fRight" style="margin-top: -0px;">
                                                                <uc1:GridViewPager ID="StockIssueDetailGridView_GridViewPager" runat="server" OnFirstRecordClick="StockIssueDetailGridView_GridViewPager_FirstRecordClick"
                                                                    OnLastRecordClick="StockIssueDetailGridView_GridViewPager_LastRecordClick" OnNextRecordClick="StockIssueDetailGridView_GridViewPager_NextRecordClick"
                                                                    OnPrevRecordClick="StockIssueDetailGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="StockIssueDetailGridView_GridViewPager_TextBoxValueChange"
                                                                    ParentGridView="StockIssueDetailGridView" Visible="false" />
                                                            </div>
                                                            <%--<div class="cBoth"></div>
                                                            <div class="fRight display-flex col-md-4" id="ApplyAlldiv" visible="false" runat="server">
                                                                <div>
                                                                    <asp:Label runat="server" Text="Item Quantity :" />
                                                                </div>
                                                                <div>
                                                                    <asp:TextBox ID="ApplyAllTextBox" runat="server" ClientIDMode="Static" MaxLength="5"
                                                                        SkinID="CustomWidthTextBox"></asp:TextBox>
                                                                </div>
                                                                &nbsp; &nbsp;
                                                                    <asp:Button ID="ApplyAllButton" runat="server" class="btn-apply btn fas mt-11" OnClick="ApplyAllButton1_Click"
                                                                        Text="&#xf058; Apply All" SkinID="0" />
                                                            </div>--%>
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent">
                                                        <asp:HiddenField ID="GroupeDropDownListHiddenField" runat="server" />
                                                        <%--<div id="Div2" runat="server" class="table-responsive">
                                                            <asp:GridView ID="GridView1" runat="server" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="" AutoGenerateColumns="false" CssClass="table table-striped table-bordered table-hover" OnRowCommand="GridView1_RowCommand">
                                                                <Columns>

                                                                    <asp:TemplateField ItemStyle-Width="5%">
                                                                        <ItemTemplate>
                                                                            <asp:ImageButton ID="ImageButtonAdd" runat="server" CommandArgument='<%# Eval("Id") %>' />
                                                                            <asp:ImageButton ID="ImageButtonDelete" runat="server" CommandArgument='<%#  Eval("Id")  %>' />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Item Id" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%" Visible="false">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="IdLabel" runat="server" Text='<%#Eval("Id") %>'></asp:Label>

                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="SubGroup" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="GroupLabel" runat="server" Text='<%#Eval("StockItemName") %>'></asp:Label>

                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                    <asp:TemplateField HeaderText="Item Name" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%">
                                                                        <ItemTemplate>


                                                                            <asp:DropDownList ID="Size_DropDownList" runat="server" CssClass="form-control"></asp:DropDownList>
                                                                            <asp:HiddenField ID="HiddenFieldType" runat="server" />



                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Item Quantity" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="20%">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="ItemQuantityTextBox" runat="server" SkinID="CustomWidthTextBox" MaxLength="100"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>--%>




                                                        <div id="Div3" runat="server" class="table-responsive">
                                                            <%-- <div id="DivData" class="Container" style="vertical-align: top; height: 100px; width: 99.6%;">--%>
                                                            <asp:GridView ID="StockIssueDetailGridView" runat="server" Width="100%" AutoGenerateColumns="False" Visible="false"
                                                                OnRowDataBound="StockIssueDetailGridView_RowDataBound" OnPageIndexChanging="StockIssueDetailGridView_PageIndexChanging"
                                                                AllowPaging="True" PageSize="5"
                                                                ShowHeader="True" DataKeyNames="Id,StockItemId"
                                                                EmptyDataText="No Records Found"
                                                                meta:resourcekey="StockIssueDetailGridViewResource1" CssClass="table table-striped table-bordered table-hover">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="Item Code" HeaderStyle-HorizontalAlign="Left"
                                                                        meta:resourcekey="TemplateFieldResource1">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="StockItemCodeLinkButton" runat="server" OnClick="StockItemCodeLinkButton_Click"
                                                                                ToolTip='<%# Bind("StockItemCode") %>' Text='<%# Bind("StockItemCode") %>'
                                                                                CausesValidation="False"
                                                                                CommandArgument='<%# Eval("StockItemId") %>'></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" Width="20%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Item Name" HeaderStyle-HorizontalAlign="Left"
                                                                        meta:resourcekey="TemplateFieldResource2">
                                                                        <ItemTemplate>
                                                                            <asp:Label CssClass="boxEllips" ToolTip='<%# Bind("StockItemName") %>' ID="NameLabel"
                                                                                runat="server" Text='<%# Bind("StockItemName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle Width="20%" />
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="UOM" HeaderText="UOM" HeaderStyle-HorizontalAlign="Left"
                                                                        meta:resourcekey="BoundFieldResource1">
                                                                        <ItemStyle Width="20%" />
                                                                    </asp:BoundField>
                                                                    <asp:TemplateField HeaderText="Batch">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="BatchGridTextBox" runat="server" Text='<%#Eval("Number") %>'></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                    <asp:TemplateField HeaderText="RequestedQuantity">
                                                                        <ItemTemplate>
                                                                            <asp:Label CssClass="boxEllips" ToolTip='<%# Bind("RequestedQuantity") %>' ID="RequestedQuantityLabel"
                                                                                runat="server" Text='<%# Bind("RequestedQuantity") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>


                                                                    <asp:TemplateField HeaderText="Issue Qty" HeaderStyle-HorizontalAlign="Right"
                                                                        meta:resourcekey="TemplateFieldResource3">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="IssueQuantityTextBoxGrid"
                                                                                runat="server"
                                                                                Text='<%# String.Format("{0:F}", Eval("IssuedQuantity")) %>'
                                                                                MaxLength="13" onblur="javascript:return fnValidateDecimal(this,10,2)" onKeypress="javascript:return MaskDecimal(event,10,2)"
                                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Style="text-align: right;"
                                                                                OnTextChanged="IssueQuantityTextBoxGrid_TextChanged"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Right" Width="15%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Delete" HeaderStyle-HorizontalAlign="Center"
                                                                        meta:resourcekey="TemplateFieldResource4">
                                                                        <ItemTemplate>
                                                                            <asp:ImageButton ID="DeleteImageButton" runat="server" CommandName="Delete" CommandArgument='<%# Eval("StockItemId") %>'
                                                                                OnClick="DeleteImageButton_Click" SkinID="DeleteImage" ToolTip="Delete"
                                                                                meta:resourcekey="DeleteImageButtonResource1" />
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>

                                            </div>
                                        </div>
                                        <!--Grid starts-->

                                        <!--Grid Ends-->
                                        <BUC:BatchUserControl ID="BatchUpdationCtrl" runat="server" />
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </div>

                    <div class="himssuHeader5WireBox card card-box">

                        <asp:Panel ID="Panel2" runat="server" meta:resourcekey="Panel1Resource1" Visible="false">
                            <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="BacButton" 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="">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label2" runat="server" Text="Issue No" meta:resourcekey="InwarddByLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="ReqNoCompleteControl" runat="server" Text="*"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <asp:Label ID="FromDateLable" runat="server" Text="From Date"></asp:Label>
                                    <HIMS:DataPickerControl DisplayDatePicker="true" ID="FromDatePickerControl"
                                        Visible="True" runat="Server"></HIMS:DataPickerControl>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ToDateLabel" runat="server" Text="To Date"></asp:Label>
                                    </div>
                                    <HIMS:DataPickerControl DisplayDatePicker="true" ID="ToDateDatePickerControl"
                                        Visible="True" runat="Server"></HIMS:DataPickerControl>
                                </div>
                                <div id="SearchSUIDDiv" class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SearchSUIDLabel" runat="server" Text="SU Id"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="SearchSUIDTextBox" runat="server" SkinID="CustomWidthTextBox"
                                            AutoPostBack="true" MaxLength="50" OnTextChanged="SearchSUIDTextBox_TextChanged"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SearchOrgLabel" runat="server" Text="Organization"
                                            meta:resourcekey="IssuedByLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="SearchOrgropDownList" runat="server" CssClass="form-control" OnSelectedIndexChanged="SearchOrgropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SearchBatchLabel" runat="server" Text="Batch"
                                            meta:resourcekey="IssuedByLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="SearchBatchDropDownList" runat="server" CssClass="form-control" AutoPostBack="true"></asp:DropDownList>
                                    </div>
                                </div>

                                <asp:Panel ID="Panel3" runat="server">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchIdNoLabel" runat="server" Text="ID No"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5 display-flex">
                                            <asp:TextBox ID="SearchIdNoTextBox" SkinID="CustomWidthTextBox" runat="server" OnTextChanged="SearchIdNoTextBox_TextChanged" AutoPostBack="true"
                                                MaxLength="200"> 
                                            </asp:TextBox>
                                            <asp:ImageButton SkinID="FindImage" ToolTip="ID Search" ID="SearchIdNoImageButton"
                                                runat="server" ImageUrl="../../Images/icons/icon_find.gif" />
                                            <asp:HiddenField ID="HiddenField1" runat="server" />
                                            <asp:HiddenField ID="HiddenField2" runat="server" />
                                            <asp:HiddenField ID="HiddenField3" runat="server" />
                                        </div>
                                    </div>

                                    <div runat="server" id="SearchPayTypeWithReceiptDiv" visible="true">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchPayTypeLabel1" runat="server" Text="Pay Type"
                                                    meta:resourcekey="PayTypeLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="SearchPayTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

                                <div class="cBoth">
                                </div>
                                <div class="spacer">
                                    <img src="../../../Images/spacer.gif" />
                                </div>
                                <div class="alignCenter pTop5">
                                    <asp:Button ID="Search_Button" Text="&#xf002; Search" runat="Server" OnClick="Search_Button_Click" SkinID="0" CssClass="fas btn btn-search" />
                                    <asp:Button ID="ResetButton" runat="server" Text="&#xf12d; Clear" CssClass="btn btn-clear fas" SkinID="0" OnClick="ResetButton_Click" />

                                </div>


                                <div class="himsBoxContent col-md-12">
                                    <%--<div class="himsBoxHeader card-head inner">
                                        <div class="headerText">

                                            <header>
                                                <asp:Label ID="ListLabel" runat="server" Text="List" CssClass="fLeft"></asp:Label>
                                            </header>
                                        </div>
                                    </div>--%>

                                    <div align="right" class="fRight" style="margin-top: 0px;">
                                        <uc1:GridViewPager ID="StockIssGridView_GridViewPager" runat="server" OnFirstRecordClick="StockIssGridView_GridViewPager_FirstRecordClick"
                                            OnLastRecordClick="StockIssGridView_GridViewPager_LastRecordClick" OnNextRecordClick="StockIssGridView_GridViewPager_NextRecordClick"
                                            OnPrevRecordClick="StockIssGridView_GridViewPager_PrevRecordClick"
                                            ParentGridView="StockIssGridView" Visible="false" />
                                    </div>
                                    <div id="Div4" runat="server" class="table-responsive">
                                        <asp:GridView ID="StockIssGridView" runat="server" CssClass="table table-striped table-bordered table-hover"
                                            AutoGenerateColumns="False" Width="100%" ShowHeader="true" DataKeyNames="StockId,Number,IssuedDate,IssueToSourceId" AllowPaging="true"
                                            EmptyDataText="No Records Found" PageSize="25">
                                            <Columns>
                                                <asp:TemplateField>
                                                    <ItemStyle Width="1%" />
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="EditLinkButton" runat="server" Enabled="true" OnClick="LinkButton_Click"
                                                            Text="Select"></asp:LinkButton>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Issue Number" meta:resourcekey="TemplateFieldResource1">
                                                    <ItemTemplate>
                                                        <asp:Label Text='<%#Eval("Number") %>' ID="NumberLabel"
                                                            runat="server" meta:resourcekey="ItemCodeLabelResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" />
                                                    <ItemStyle Width="15%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Issue Date" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label Text='<%#Eval("IssuedDate","{0:dd/MM/yyyy}") %>' ID="TransferDateLabel"
                                                            runat="server" meta:resourcekey="ItemNameLabelResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" />
                                                    <ItemStyle Width="15%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Issue By" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label Text='<%#Eval("IssuedByName") %>' ID="IssuedByNameLabel"
                                                            runat="server" meta:resourcekey="ItemNameLabelResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" />
                                                    <ItemStyle Width="15%" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>
                                    </div>
                                </div>
                        </asp:Panel>

                        <div id="AllergyGridDiv" runat="server" visible="False">
                            <div class="spacer">
                                <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image3Resource1" />
                            </div>
                            <div class="himssuHeader7WireBox col-md-12" id="Div1" runat="server" style="width: 99%">
                                <div class="himsBoxHeader" id="ListDiv" runat="server" visible="False">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxHeader" style="width: 99%">
                                        <div align="right" class="fRight" style="margin-top: 0px;">
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent">
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>


        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/stock-issue" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/stock-issue")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
