<%@ page language="C#" autoeventwireup="true" inherits="FinancialManagement_AssetManagement_MaintananceAlerts, App_Web_ovuixeqj" 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/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DataPickerControl" TagPrefix="HIMS" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="StockEnquiryUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="159"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader5WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-asterisk"></i>
                                        Criteria
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="RequestNumberLabel" runat="server" Text="As On Date"
                                            meta:resourcekey="RequestNumberLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft">
                                        <HIMS:DataPickerControl ID="FromDatePicker" DisplayDatePicker="true"
                                            runat="server" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-12 center">
                                    <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="server"
                                        OnClick="SearchButton_Click" SkinID="0" class="btn-search btn fas" />&nbsp;&nbsp;
                                              
                                      <asp:Button ID="SendButton" runat="server" OnClick="SendButton_Click" Text="&#xf1d8; Send Alert" CssClass="btn-send btn fas" SkinID="0" />
                                </div>

                                <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                    <div id="PurchaseOrderListDetailDiv" runat="server">
                                        <div class="himsBoxHeader card-head inner" id="PurchaseOrderDiv" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle" style="width: 99%">
                                                <div class="headerText">
                                                    <div class="gridHeaderText">
                                                        <header>
                                                            <asp:Label ID="AssignRouteLabel" runat="server" Text="Asset Maintenance Alerts"></asp:Label>
                                                        </header>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent col-md-12 pb5">
                                            <div align="right" class="fRight" style="margin-top: 0px;">
                                                <uc1:GridViewPager ID="StockEnquirySearchListGridView_GridViewPager" runat="server"
                                                    OnFirstRecordClick="StockEnquirySearchListGridView_GridViewPager_FirstRecordClick"
                                                    OnLastRecordClick="StockEnquirySearchListGridView_GridViewPager_LastRecordClick"
                                                    OnNextRecordClick="StockEnquirySearchListGridView_GridViewPager_NextRecordClick"
                                                    OnPrevRecordClick="StockEnquirySearchListGridView_GridViewPager_PrevRecordClick"
                                                    OnTextBoxValueChange="StockEnquirySearchListGridView_GridViewPager_TextBoxValueChange"
                                                    ParentGridView="StockEnquirySearchListGridView" />
                                            </div>
                                        </div>

                                        <div class="himsBoxContent table-responsive col-md-12">
                                            <asp:GridView ID="StockEnquirySearchListGridView" runat="server" AutoGenerateColumns="False"
                                                AllowPaging="True" OnRowDataBound="StockEnquirySearchListGridView_RowDataBound" DataKeyNames="IsCritical"
                                                EmptyDataText="No records available for the search criteria"
                                                CssClass="table table-bordered table-striped table-hover">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="Category" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:Label ID="CategoryLabel" runat="server" CssClass="boxEllips"
                                                                Text='<%# DataBinder.Eval(Container.DataItem, "Category") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="10%" />
                                                        <ItemStyle Width="10%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Asset Tag" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="AssetLinkButton" Text='<%# Bind("CODE") %>' runat="server"
                                                                CommandArgument='<%# Bind("AssetTag") %>' OnClick="AssetTagNumberLinkButton_Click"></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="10%" />
                                                        <ItemStyle Width="10%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Asset Name" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left"
                                                        meta:resourcekey="TemplateFieldResource4">
                                                        <ItemTemplate>
                                                            <asp:Label ID="DepartmentNameLabel" runat="server" CssClass="boxEllips" Width="250px"
                                                                Text='<%# DataBinder.Eval(Container.DataItem, "AssetDescription") %>' ToolTip='<%# Eval("AssetDescription") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="20%" />
                                                        <ItemStyle Width="20%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Maintenance Due Date" HeaderStyle-HorizontalAlign="Left"
                                                        meta:resourcekey="TemplateFieldResource10">
                                                        <ItemTemplate>
                                                            <asp:Label ID="DueDateNameLabel" runat="server"
                                                                Text='<%# DataBinder.Eval(Container.DataItem, "DueDate","{0:d}") %>'
                                                                meta:resourcekey="DepartmentNameLabelResource1"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="10%" />
                                                        <ItemStyle Width="10%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Model No" HeaderStyle-HorizontalAlign="Left"
                                                        meta:resourcekey="TemplateFieldResource5">
                                                        <ItemTemplate>
                                                            <asp:Label ID="ItemNameLabel" runat="server" CssClass="boxEllips" Width="180px"
                                                                Text='<%# DataBinder.Eval(Container.DataItem,"ModelNo") %>' ToolTip='<%# Eval("ModelNo") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="15%" />
                                                        <ItemStyle Width="15%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Status" HeaderStyle-HorizontalAlign="Left"
                                                        meta:resourcekey="TemplateFieldResource6">
                                                        <ItemTemplate>
                                                            <asp:Label ID="StatusLabel" runat="server"
                                                                Text='<%# DataBinder.Eval(Container.DataItem, "status") %>'
                                                                meta:resourcekey="IdLabelResource3"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="15%" />
                                                        <ItemStyle Width="15%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Dept" meta:resourcekey="TemplateFieldResource7" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:Label ID="DepartmentNameLabel12" runat="server" CssClass="boxEllips"
                                                                Text='<%# DataBinder.Eval(Container.DataItem, "DepartmentTitle") %>'
                                                                meta:resourcekey="DepartmentNameLabelResource2"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="10%" />
                                                        <ItemStyle Width="10%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Location" HeaderStyle-HorizontalAlign="Left"
                                                        meta:resourcekey="TemplateFieldResource8">
                                                        <ItemTemplate>
                                                            <asp:Label ID="LocationItemNameLabel" runat="server" CssClass="boxEllips"
                                                                Text='<%# DataBinder.Eval(Container.DataItem,"Location") %>'
                                                                meta:resourcekey="ItemNameLabelResource2"></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="10%" />
                                                        <ItemStyle Width="10%" />
                                                    </asp:TemplateField>
                                                </Columns>
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                </tr>
                    </table>             
            </div>
            </div>           
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/asset-maintanancealerts-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/asset-maintanancealerts")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
