<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_BaseFramework_Utilities_Import_ImportStockitemDynamic, App_Web_pmiwz1qu" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/MessageBox/MessageBoxControl.ascx" TagName="MessageBoxControl" TagPrefix="uc1" %>
<%@ 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="HREmployeeMasterSearchUpdatePanel" runat="server" UpdateMode="Conditional" class="col-md-12">
        <ContentTemplate>
            <Stock:StockControl ID="StockUserControl" runat="server" Visible="true" />
            <input type="hidden" id="hdnSessionid" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <table 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="row padd-lr-14">
                    <div class="card card-box">
                        <div class="himsBoxHeader card-head" id="Div4" runat="server" visible="True">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText fLeft">
                                    <header>
                                        <i class="fas fa-download"></i>
                                        <asp:Label ID="Label4" Text="Import Stock Item" runat="server" />
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="help-tableformat">
                                <div class="helppadding">
                                    <div class="col-md-12 pb15">
                                        <div class="alert alert-info ">
                                            <i class="material-icons pos-rel">info</i> |&nbsp;
                                        <asp:Label ID="Label3" Text="Notes : Text data to be Separated" runat="server" /></br>
                                         <i class="material-icons pos-rel">info</i> |&nbsp;
                                            <asp:Label ID="Label" Text="Mandatoy Fields: Code,Name" runat="server" /></br>
                                         <i class="material-icons pos-rel">info</i> |&nbsp;
                                            <asp:Label ID="lblfiledName" Text="Filed Name For Update Like : Code,Name,SubGroup,StockItemCategory,IssueUOM,Bin,IsBatchStandardPrice" runat="server"></asp:Label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-12  bg-lghtgrey  radiobtn">
                                <div class="controlLabelWidth">
                                    <asp:RadioButton ID="rbUpdateEmployee" runat="server" GroupName="Select" Text=" Update Stock Item" Checked="true" />&nbsp;&nbsp;&nbsp;
                                    <asp:RadioButton ID="rbInsertNewEmployee" runat="server" GroupName="Select" Text=" New Stock Item" Visible="false" />
                                </div>
                            </div>
                            <div class="cBoth"></div>
                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:HyperLink ID="HyperLink1" runat="server" Text="&#xf101; Download Template" NavigateUrl="~/ContentTemplates/Import/StockItemsDynamic.xls" 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" onChange="readURL(this);" ClientIDMode="Static" runat="server" Style="display: none;" />
                                </div>
                            </div>
                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Button ID="ImportStockitem" runat="server" OnClick="ImportStockitem_OnClick" Text="&#xf019; Import" CssClass="btn btn-examcommon fas"
                                        SkinID="0" />
                                    <asp:Button ID="ClearButton" runat="server" OnClick="ClearButton_OnClick" Text="&#xf12d; Clear" CssClass="btn btn-clear fas"
                                        SkinID="0" Visible="false" />
                                </div>
                            </div>
                            <div class="cBoth"></div>
                            <div class="cBoth"></div>

                            <div class="himssuHeader1WireBox col-md-12">
                                <div class="himsBoxHeader card-head inner" id="HREmployeeMasterGridViewPagerDiv" runat="server" visible="true">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="gridHeaderText fLeft">
                                            <header>
                                                <asp:Label ID="GridViewLabel" Text="List" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1" />
                                            </header>
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent">
                                    <div id="Div3" runat="server" class="table-responsive">
                                        <asp:GridView runat="server" ID="HREmployeeMasterGridView" Width="100%" AutoGenerateColumns="False"
                                            EmptyDataText="No records available for the seacrh criteria!" DataKeyNames="Code"
                                            AllowPaging="false" ShowHeader="true"
                                            CssClass="table table-striped table-bordered table-hover">
                                            <Columns>
                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Code">
                                                    <ItemTemplate>
                                                        <asp:Label ID="code" runat="server" Text='<%# Eval("Code") %>' CssClass="boxEllips"
                                                            Width="100px"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle HorizontalAlign="Left" Width="20%" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Name">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Name" runat="server" Text='<%# Eval("Name") %>' CssClass="boxEllips"
                                                            Width="100px"></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle HorizontalAlign="Left" Width="20%" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerSettings Visible="true" />
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

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