<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_FinancialManagement_AssetManagement_AssetAdjustment, App_Web_cyxtv4hn" 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/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DataPickerControl" TagPrefix="HIMS" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="Common" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" 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" id="Div1">
                                                <header>
                                                    <i class="fas fa-list-ul"></i>
                                                Asset Adjustment
                                                </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="AssetAdjustmentNoLabel" runat="server"
                                                        Text="Asset Adjustment No." meta:resourcekey="AssetAdjustmentNoLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft display-flex">
                                                    <acc:AutoCompleteControl ID="AssetAdjustmentNoAutoCompleteControl" runat="server"
                                                        MinimumPrefixLength="2" ContextKey="AssetAdjustment.AdjustmentNumber"
                                                        AutoPostBack="true" DisplayLoadingStatus="true" FirstRowSelected="false" MaxLength="20"
                                                        ValidateOnTextChanged="false"
                                                        OnTextChanged="AssetAdjustmentNoAutoCompleteControl_TextChanged" />
                                                    <asp:ImageButton ID="AssetAdjustmentNoSearchImageButton" ToolTip="Asset Adjustment Number Search"
                                                        SkinID="FindImage" OnClick="AssetAdjustmentNoSearchImageButton_Click"
                                                        runat="server" meta:resourcekey="AssetAdjustmentNoSearchImageButtonResource1" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="FromDateLabel" runat="server" Text="From Date"
                                                        SkinID="MandatoryLabel" meta:resourcekey="FromDateLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <HIMS:DataPickerControl autocompletetype="Disabled" ID="FromDateDatePickerControl"
                                                        OnTextChanged="FromDateDatePickerControl_TextChanged" runat="server"
                                                        autopostback="true" DisplayDatePicker="true" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ToDateLabel" runat="server" Text="To Date"
                                                        SkinID="MandatoryLabel" meta:resourcekey="ToDateLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <HIMS:DataPickerControl autocompletetype="Disabled" ID="ToDateDatePickerControl"
                                                        OnTextChanged="ToDateDatePickerControl_TextChanged" runat="server"
                                                        autopostback="true" DisplayDatePicker="true" />
                                                </div>
                                            </div>
                                          
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="CategoryLabel" runat="server" Text="Category"
                                                        meta:resourcekey="CategoryLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft">
                                                    <asp:DropDownList ID="CategoryDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                        AutoPostBack="True" OnSelectedIndexChanged="CategoryDropDownList_SelectedIndexChanged"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()"
                                                        meta:resourcekey="CategoryDropDownListResource1">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label1" runat="server" Text="Asset Tag"
                                                        meta:resourcekey="Label1Resource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5 display-flex">
                                                    <acc:AutoCompleteControl ID="ItemCodeAutoCompleteControl" runat="server" MinimumPrefixLength="2"
                                                        AutoPostBack="true" DisplayLoadingStatus="true" FirstRowSelected="true"
                                                        OnTextChanged="ItemCodeAutoCompleteControl_TextChanged" ContextKey="SAssetManagement.AllCode"
                                                        MaxLength="20" ValidateOnTextChanged="false" />
                                                    <asp:ImageButton ID="ItemCodeSearchImageButton" ToolTip="Asset Tag Search" SkinID="FindImage"
                                                        OnClick="ItemCodeSearchImageButton_Click" runat="server"
                                                        meta:resourcekey="ItemCodeSearchImageButtonResource1" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label2" runat="server" Text="Asset Name"
                                                        meta:resourcekey="Label2Resource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5 display-flex">
                                                    <acc:AutoCompleteControl ID="ItemNameAutoCompleteControl" runat="server" MinimumPrefixLength="2"
                                                        AutoPostBack="true" DisplayLoadingStatus="true" FirstRowSelected="true"
                                                        OnTextChanged="ItemNameAutoCompleteControl_TextChanged" ContextKey="SAssetManagement.AllTitle"
                                                        MaxLength="50" ValidateOnTextChanged="false" />
                                                    <asp:ImageButton ID="ItemNameSearchImageButton" ToolTip="Asset Name Search" SkinID="FindImage"
                                                        OnClick="ItemNameSearchImageButton_Click" runat="server"
                                                        meta:resourcekey="ItemNameSearchImageButtonResource1" />
                                                </div>
                                            </div>
                                          
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Label6" Text="Department" runat="server"
                                                        meta:resourcekey="Label6Resource1"></asp:Label>
                                                </div>
                                                <div class="fLeft">
                                                    <asp:DropDownList ID="DeptDropDownList" SkinID="CustomWidthDropDownList" DataValueField="DepartmentID"
                                                        DataTextField="DepartmentTitle" CssClass="form-control" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" AutoPostBack="False" runat="server"
                                                        meta:resourcekey="DeptDropDownListResource1">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="LocationLabel" runat="server" Text="Location"
                                                        meta:resourcekey="LocationLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="LocationDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                       CssClass="form-control" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()"
                                                        meta:resourcekey="LocationDropDownListResource1">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                           
                                            <div class=" alignCenter pTop5 col-md-12 center">
                                                <asp:Button ID="RetrieveButton" Text="&#xf002; Search" runat="server" SkinID="0" class="btn-search btn fas"
                                                    OnClick="RetrieveButton_Click" />
                                                <asp:Button ID="SearchClearButton" Text="&#xf0e2; Reset" runat="server" SkinID="0" class="btn-reset btn fas"
                                                    OnClick="SearhClearButton_Click" />
                                            </div>
                                           
                                            <div id="AssetAdjustmentRetrieveGridViewDiv" class="himssuHeader6WireBox col-md-12" runat="server">
                                                <div id="StockAuditDiv" runat="server">
                                                    <div id="BillingListDiv" runat="server">
                                                        <div class="himssuHeader7WireBox">
                                                            <div class="himsBoxHeader card-head inner">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxTitle">
                                                                    <div class="headerText" id="Div4">
                                                                    </div>
                                                                </div>
                                                                <div class="gridHeaderText">
                                                                <header>
                                                                <asp:Label ID="AssignRouteLabel" runat="server" Text="Asset Adjustment"></asp:Label>
                                                                </header>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent card-body table-responsive">
                                                                <asp:GridView ID="AssetAdjustmentListGridView" runat="server" AutoGenerateColumns="False"
                                                                    OnRowDataBound="AssetAdjustmentListGridView_RowDataBound" DataKeyNames="Id,AssetAuditDetailId"
                                                                    OnDataBound="grid_DataBound" EmptyDataText="No Records Found"
                                                                    ShowHeader="True" meta:resourcekey="AssetAdjustmentListGridViewResource1"
                                                                    CssClass="table table-bordered table-striped table-hover">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="Audit Number" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="AuditNumberLabel" runat="server" Text='<%# Bind("AuditNumber") %>' Width="125px" CssClass="boxEllips"
                                                                                    meta:resourcekey="AssetCodeLabelResource1"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle Width="10%" />
                                                                            <ItemStyle Width="10%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Asset Tag" HeaderStyle-HorizontalAlign="Left"
                                                                            meta:resourcekey="TemplateFieldResource2">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="AssetCodeLabel" runat="server" Text='<%# Bind("AssetCode") %>' CssClass="boxEllips"
                                                                                    meta:resourcekey="AssetCodeLabelResource1"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle Width="10%" />
                                                                            <ItemStyle Width="10%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Asset Code" HeaderStyle-HorizontalAlign="Left"
                                                                            meta:resourcekey="AssetCodeTemplateFieldResource2">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="NewAssetCodeLabel" runat="server" Text='<%# Bind("NewAssetCode") %>' CssClass="boxEllips"
                                                                                    meta:resourcekey="AssetCodeLabelResource1"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle Width="10%" />
                                                                            <ItemStyle Width="10%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Asset Name" HeaderStyle-HorizontalAlign="Left"
                                                                            meta:resourcekey="TemplateFieldResource3">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="AssetNameLabel" runat="server" Text='<%# Bind("AssetName") %>' Width="180px" CssClass="boxEllips" ToolTip='<%# Eval("AssetName") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle Width="15%" />
                                                                            <ItemStyle Width="15%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Category" HeaderStyle-HorizontalAlign="Left"
                                                                            meta:resourcekey="TemplateFieldResource1">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="CategoryLabel" runat="server" Text='<%# Bind("Category") %>' CssClass="boxEllips"
                                                                                    meta:resourcekey="CategoryLabelResource2"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle Width="8%" />
                                                                            <ItemStyle Width="8%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="ModelNo" HeaderStyle-HorizontalAlign="Left"
                                                                            meta:resourcekey="TemplateFieldResource4">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ModelNoLabel" runat="server" Text='<%# Bind("ModelNo") %>' CssClass="boxEllips" Width="100px"
                                                                                    meta:resourcekey="ModelNoLabelResource1"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle Width="8%" />
                                                                            <ItemStyle Width="8%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Department" HeaderStyle-HorizontalAlign="Left"
                                                                            meta:resourcekey="TemplateFieldResource40">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="DepartmentLabel" runat="server" Text='<%# Bind("Department") %>' CssClass="boxEllips"
                                                                                    meta:resourcekey="ModelNoLabelResource1"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle Width="8%" />
                                                                            <ItemStyle Width="8%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Location" HeaderStyle-HorizontalAlign="Left"
                                                                            meta:resourcekey="TemplateFieldResource5">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="LocationLabel" runat="server" Text='<%# Bind("LocationCode") %>' CssClass="boxEllips"
                                                                                    meta:resourcekey="LocationLabelResource2"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle Width="10%" />
                                                                            <ItemStyle Width="10%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Old Status" HeaderStyle-HorizontalAlign="Left"
                                                                            meta:resourcekey="TemplateFieldResource6">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="OldStatusLabel" runat="server" Text='<%# Bind("OldStatus") %>' CssClass="boxEllips"
                                                                                    meta:resourcekey="OldStatusLabelResource1"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle Width="10%" />
                                                                            <ItemStyle Width="10%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="New Status" HeaderStyle-HorizontalAlign="Left"
                                                                            meta:resourcekey="TemplateFieldResource7">
                                                                            <ItemTemplate>
                                                                                <asp:DropDownList ID="AssetCheckDropdownList" runat="server" onmouseleave="showHideTooltip()" CssClass="boxEllips"
                                                                                    onmouseenter="showHideTooltip()"
                                                                                    meta:resourcekey="AssetCheckDropdownListResource1">
                                                                                </asp:DropDownList>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" Width="10%" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Reason" HeaderStyle-HorizontalAlign="Left"
                                                                            meta:resourcekey="TemplateFieldResource8">
                                                                            <ItemTemplate>
                                                                                <asp:DropDownList ID="ReasonDropdownList" runat="server" onmouseleave="showHideTooltip()" CssClass="boxEllips"
                                                                                    onmouseenter="showHideTooltip()"
                                                                                    meta:resourcekey="ReasonDropdownListResource1">
                                                                                </asp:DropDownList>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Left" Width="10%" />
                                                                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </tr>
                    </table>
                </div>
            </div>           
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/asset-adjustment-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/asset-adjustment")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>