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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DataPickerControl"
    TagPrefix="HIMS" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/Stock/StockDetailBoxControl.ascx" TagName="StockControl" TagPrefix="Stock" %>

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

    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server">
        <ContentTemplate>
            <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" />
                    <!-- Sub Container1 Box Start -->
                    <div class="himssuHeader2WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server" meta:resourcekey="Panel1Resource1">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-asterisk"></i>
                                            <asp:Label ID="Label3" runat="server" Text="Criteria" meta:resourcekey="Label3Resource1"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="server" meta:resourcekey="DetailPanelResource1">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchCriteriaPanel" runat="server" meta:resourcekey="SearchCriteriaPanelResource1">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchCodeLabel" Text="Status" runat="server" meta:resourcekey="SearchCodeLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft">
                                                <asp:DropDownList ID="StatusDropDownList" SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                    OnSelectedIndexChanged="StatusDropDownList_IndexChanged" AutoPostBack="True"
                                                    runat="server" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    meta:resourcekey="StatusDropDownListResource1">
                                                    <asp:ListItem Selected="True" Value="0" Text="All" meta:resourcekey="ListItemResource1" />
                                                    <asp:ListItem Value="1" Text="Pending" meta:resourcekey="ListItemResource2" />
                                                    <asp:ListItem Value="2" Text="Completed" meta:resourcekey="ListItemResource3" />
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="FromDateLabel" runat="server" Text="From Date" CssClass="mandatory"
                                                    meta:resourcekey="FromDateLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <HIMS:DataPickerControl ID="FromDatePicker" OnTextChanged="FromDateTextBox_TextChanged"
                                                    DisplayDatePicker="true" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ToDateLabel" runat="server" Text="To Date" CssClass="mandatory" meta:resourcekey="ToDateLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <HIMS:DataPickerControl ID="ToDatePicker" DisplayDatePicker="true" runat="server"
                                                    OnTextChanged="ToDateTextBox_TextChanged" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="TypeLabel" Text="Type" runat="server" meta:resourcekey="TypeLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft">
                                                <asp:DropDownList ID="TypeDropDownList" SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                    OnSelectedIndexChanged="TypeDropDownList_IndexChanged" AutoPostBack="True" runat="server"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="TypeDropDownListResource1">
                                                    <asp:ListItem Selected="True" Value="All" Text="All" meta:resourcekey="ListItemResource4" />
                                                    <asp:ListItem Value="Tran" Text="Tran" meta:resourcekey="ListItemResource5" />
                                                    <asp:ListItem Value="Issue" Text="Issue" meta:resourcekey="ListItemResource6" />
                                                </asp:DropDownList>
                                            </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="col-md-12 pTop5">
                                            <div class="alert alert-info col-md-12">

                                                <div><i class="material-icons pos-rel">info</i> | &nbsp;<asp:Label ID="NoteLabel1" runat="server" Text="Data display only from login employee department on search button."></asp:Label></div>
                                                <div>
                                                    <i class="material-icons pos-rel">info</i> |&nbsp;
                                                        <asp:Label ID="NoteLabel2" runat="server" Text="To department selection is used to Approve only."></asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                        <div class="outerBox pTop5">
                                            <div class=" alignCenter pTop5">
                                                <asp:Button ID="SearchButton" CssClass="btn btn-search fas" Text="&#xf002; Search" runat="server" OnClick="SearchButton_Click"
                                                    SkinID="0" />
                                                <asp:Button ID="ClearButton" Text="&#xf12d; Reset" CssClass="btn btn-reset fas" SkinID="0" runat="server" OnClick="ClearButton_Click"
                                                    meta:resourcekey="ClearButtonResource1" />
                                                <asp:Button ID="SearchAllButton" CssClass="btn btn-search fas" Text="&#xf002; Search All" runat="server" OnClick="SearchAllButton_Click"
                                                    SkinID="0" />
                                                <asp:Button ID="ApproveButton" TabIndex="3" runat="Server"
                                                    SkinID="0" CssClass="fas btn btn-save " Text="Approve All" Visible="true" OnClick="ApproveButton_Click" />
                                            </div>
                                        </div>
                                    </asp:Panel>
                                    <div id="StockQueueSearchListDiv" class="himssuHeader7WireBox pTop15 col-md-12" runat="server" style="width: 100%; margin-right: 5px;">
                                        <!--Grid Starts-->

                                        <div class="himsBoxHeader" id="PurchaseOrderDiv" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle" style="width: 99%">
                                                <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="StockQueueGridView_GridViewPager" runat="server" OnFirstRecordClick="StockQueueGridView_GridViewPager_FirstRecordClick"
                                                        OnLastRecordClick="StockQueueGridView_GridViewPager_LastRecordClick" OnNextRecordClick="StockQueueGridView_GridViewPager_NextRecordClick"
                                                        OnPrevRecordClick="StockQueueGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="StockQueueGridView_GridViewPager_TextBoxValueChange"
                                                        ParentGridView="StockQueueGridView" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="himsBoxContentMsg" id="GridMessageDiv" runat="server" visible="False">
                                            </div>
                                            <div id="Div1" runat="server" class="table-responsive">
                                                <asp:GridView ID="StockQueueGridView" runat="server" Width="100%" AutoGenerateColumns="False" DataKeyNames="DepartmentId,ReqId"
                                                    OnRowDataBound="StockQueueGridView_RowDataBound" OnPageIndexChanging="StockQueueGridView_PageIndexChanging"
                                                    AllowPaging="True" EmptyDataText="No Records Found" meta:resourcekey="StockQueueGridViewResource1" CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:TemplateField ItemStyle-Wrap="true" Visible="false">
                                                            <HeaderTemplate>
                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                    <asp:CheckBox ID="HeaderIsSendMailCheckBox" runat="server" onClick="checkAll(this);" Text="" />
                                                                    <span></span>
                                                                </label>
                                                            </HeaderTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                            <ItemTemplate>
                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                    <asp:CheckBox ID="IsIssueStockCheckBox" runat="server" onClick="checkUncheckHeaderCheckBox(this);" />
                                                                    <span></span>
                                                                </label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Req No." meta:resourcekey="TemplateFieldResource1">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="RequestNumberLinkButton" Text='<%# Bind("RequestNumber") %>'
                                                                    CommandName='<%# Bind("Type") %>' runat="server" CommandArgument='<%# Bind("ReqId") %>'
                                                                    OnClick="RequestNumberLinkButton_Click" meta:resourcekey="RequestNumberLinkButtonResource1"></asp:LinkButton>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="15%" />
                                                            <ItemStyle Width="15%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Date" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label ID="DateLabel" runat="server" Text='<%# Bind("RequestedDate","{0:d}") %>'
                                                                    meta:resourcekey="DateLabelResource2"></asp:Label>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="15%" />
                                                            <ItemStyle Width="15%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Requested By" HeaderStyle-HorizontalAlign="Left" meta:resourcekey="TemplateFieldResource3">
                                                            <ItemTemplate>
                                                                <asp:Label ID="RequestedByLabel" runat="server" Text='<%# Bind("RequestedByName") %>'
                                                                    meta:resourcekey="RequestedByLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="15%" />
                                                            <ItemStyle Width="15%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Type" meta:resourcekey="TemplateFieldResource4" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="TypeLinkButton" Text='<%# Bind("Type") %>' runat="server" OnClick="TransferNumberLinkButton_Click"
                                                                    CommandArgument='<%# Bind("RequestNumber") %>' meta:resourcekey="TypeLinkButtonResource1"></asp:LinkButton>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="15%" />
                                                            <ItemStyle Width="15%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Dept/Location" HeaderStyle-HorizontalAlign="Left"
                                                            meta:resourcekey="TemplateFieldResource5">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LocationLabel" runat="server" Text='<%# Bind("StoreLocation") %>'
                                                                    meta:resourcekey="LocationLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="15%" />
                                                            <ItemStyle Width="15%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Transfer/Issue No." HeaderStyle-HorizontalAlign="Left"
                                                            meta:resourcekey="TemplateFieldResource6">
                                                            <ItemTemplate>
                                                                <asp:Label ID="TransferLabel" runat="server" Text='<%# Bind("TransferNumber") %>'
                                                                    meta:resourcekey="TransferLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="15%" />
                                                            <ItemStyle Width="15%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Status" HeaderStyle-HorizontalAlign="Left" meta:resourcekey="TemplateFieldResource7">
                                                            <ItemTemplate>
                                                                <asp:Label ID="StatusLabel" runat="server" Text='<%# Bind("Status") %>' meta:resourcekey="StatusLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="15%" />
                                                            <ItemStyle Width="15%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Id" SortExpression="Id" Visible="False" meta:resourcekey="TemplateFieldResource8">
                                                            <ItemTemplate>
                                                                <asp:Label ID="IdLabel1" runat="server" Text='<%# Bind("PendingQty") %>' meta:resourcekey="IdLabel1Resource1"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Id" SortExpression="Id" Visible="False" meta:resourcekey="TemplateFieldResource9">
                                                            <ItemTemplate>
                                                                <asp:Label ID="IdLabel2" runat="server" Text='<%# Bind("ReqId") %>' meta:resourcekey="IdLabel2Resource1"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                        <!--Grid Ends-->
                                    </div>
                                </div>
                            </asp:Panel>

                            <div id="DivItemDetails" visible="False" class="himssuHeader7WireBox pTop15 col-md-12" runat="server"
                                style="width: 100%; margin-right: 5px;">
                                <!--Grid Starts-->
                                <div class="spacer">
                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image1Resource1" />
                                </div>
                                <div class="himsBoxHeader" id="Div2" runat="server">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle" style="width: 99%">
                                        <div class="headerText">
                                            <div class="fLeft">
                                                <asp:Label ID="ContentLabel" runat="server" Font-Bold="True" meta:resourcekey="ContentLabelResource1" />
                                            </div>
                                        </div>
                                        <div align="right" class="fRight" style="margin-top: 0px;">
                                            <uc1:GridViewPager ID="StockQueue_GridViewPager_Item" runat="server" OnFirstRecordClick="StockQueue_GridViewPager_Item_FirstRecordClick"
                                                OnLastRecordClick="StockQueue_GridViewPager_Item_LastRecordClick" OnNextRecordClick="StockQueue_GridViewPager_Item_NextRecordClick"
                                                OnPrevRecordClick="StockQueue_GridViewPager_Item_PrevRecordClick" OnTextBoxValueChange="StockQueue_GridViewPager_Item_TextBoxValueChange"
                                                ParentGridView="StockQueue_GridView_Item" />
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent">
                                    <div class="himsBoxContentMsg" id="GridMessageDivItem" runat="server" visible="False">
                                    </div>
                                    <div id="Div3" runat="server" class="table-responsive">
                                        <asp:GridView ID="StockQueue_GridView_Item" runat="server" Width="100%" AutoGenerateColumns="False"
                                            OnRowDataBound="StockQueue_GridView_Item_RowDataBound" OnPageIndexChanging="StockQueueGridView_PageIndexChanging"
                                            AllowPaging="True" PageSize="5" EmptyDataText="No Records Found" meta:resourcekey="StockQueue_GridView_ItemResource1"
                                            CssClass="table table-striped table-bordered table-hover">
                                            <Columns>
                                                <asp:TemplateField HeaderText="Item Name" meta:resourcekey="TemplateFieldResource10">
                                                    <ItemTemplate>
                                                        <asp:Label ID="LocationLabel" runat="server" Text='<%# Bind("ItemName") %>' meta:resourcekey="LocationLabelResource2"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" HorizontalAlign="Left" />
                                                    <ItemStyle Width="15%" HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Requested Quantity" meta:resourcekey="TemplateFieldResource11">
                                                    <ItemTemplate>
                                                        <asp:Label ID="LocationLabel" runat="server" Text='<%# Bind("RequestedQuantity") %>'
                                                            meta:resourcekey="LocationLabelResource3"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" HorizontalAlign="Left" />
                                                    <ItemStyle Width="15%" HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Tran/Issued Quantity" meta:resourcekey="TemplateFieldResource12">
                                                    <ItemTemplate>
                                                        <asp:Label ID="LocationLabel" runat="server" Text='<%# Bind("TransferredQuantity") %>'
                                                            meta:resourcekey="LocationLabelResource4"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" HorizontalAlign="Left" />
                                                    <ItemStyle Width="15%" HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Balance Quantity" meta:resourcekey="TemplateFieldResource13">
                                                    <ItemTemplate>
                                                        <asp:Label ID="LocationLabel" runat="server" Text='<%# Bind("PendingQty") %>' meta:resourcekey="LocationLabelResource5"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="15%" HorizontalAlign="Left" />
                                                    <ItemStyle Width="15%" HorizontalAlign="Left" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                            <!--Grid Ends-->
                        </div>
                    </div>
                </div>

            </div>
            <div class="spacer">
                <img src="../../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../../../JavaScript/rjs/encrypt/stock-transfer-listing-encrypt" src="../../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%= ResolveUrl("~/JavaScript/rjs/stock-transfer-listing") %>' src='<%= ResolveUrl("~/JavaScript/rjs/require.js") %>'></script>
    <script type="text/javascript">
        
    </script>
</asp:Content>
