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

<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="CountryMasterUpdatePanel" runat="server">
        <ContentTemplate>
            <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="114"
                                                        Visible="true" runat="server" />
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                </div>
                </td>
                <div class="whiteboxpaddingleft row">
                    <!-- Sub Container2 Box Start -->
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <%--<asp:Image ID="Image2" runat="server" class="fLeft" 
                                meta:resourcekey="Image2Resource1" />--%>
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                        <asp:Label ID="Label1" runat="server" Text="Search"></asp:Label>
                                        </header>
                                        <%--<cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" TargetControlID="DetailPanel"
                                    ExpandControlID="Image2" CollapseControlID="Image2" TextLabelID="Label1" Collapsed="True"
                                    CollapsedText="Search" ExpandedText="Search" ImageControlID="Image2" ExpandedImage="~/images/buttonCollapse.gif"
                                    CollapsedImage="~/images/buttonExpand.gif" Enabled="True" />--%>
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0"
                                            class="btn btn-add fas" Text="&#xf067; Add" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <asp:Panel ID="DetailPanel" runat="server" meta:resourcekey="DetailPanelResource1">
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchPanel" runat="server" meta:resourcekey="SearchPanelResource1">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchRequestFromTimeLabel" runat="server" Text="RequestFromTime" meta:resourcekey="SearchCountryTitleLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="RequestFromTimeDatePicker" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchRequestToTimeLabel" runat="server" Text="RequestToTime" meta:resourcekey="SearchCountryTitleLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="SearchRequestToTimeDatePickerControl" runat="server" />
                                            </div>
                                        </div>

                                        <asp:HiddenField ID="ResourceRequestHiddenField" runat="server" />
                                       
                                        <div class="alignCenter pTop5 col-md-12">
                                            <asp:Button ID="SearchButton" runat="server" OnClick="SearchButton_Click" Text="&#xf002; Search"
                                                TabIndex="2" SkinID="0" class="btn-search btn fas" />
                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click"
                                                SkinID="0" class="btn-reset btn fas" />
                                        </div>
                                       
                                        <asp:HiddenField ID="ButtonHiddenField" runat="server" />
                                    </asp:Panel>
                                    <div id="AvailableCountriesGridViewDiv" runat="server" visible="False">
                                        
                                        <div class="himssuHeader7WireBox box-body box-solid gridviewfont" id="PatientRelationDiv"
                                            runat="server" style="width: 99%; margin-right: 5px;">
                                            <div class="himsBoxHeader" id="GridHeaderDiv" runat="server">
                                               
                                                <div class="himsBoxTitle" style="width: 99%">
                                                    <%-- <div class="headerText">
                                                <div class="fLeft">
                                                    <asp:Label ID="AvailableCountriesGridViewLabel" Text="Country List" 
                                                        runat="server" meta:resourcekey="AvailableCountriesGridViewLabelResource1" />
                                                </div>
                                            </div>--%>
                                                    <div align="right" class="fRight" style="margin-top: 0px;">
                                                        <%--<uc1:GridViewPager ID="AvailableCountriesGridViewPager" runat="server" OnFirstRecordClick="GridViewPager_FirstRecordClick"
                                                    OnLastRecordClick="GridViewPager_LastRecordClick" OnNextRecordClick="GridViewPager_NextRecordClick"
                                                    OnPrevRecordClick="GridViewPager_PrevRecordClick" OnTextBoxValueChange="GridViewPager_TextBoxValueChange"
                                                    ParentGridView="AvailableCountriesGridView" />--%>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent card-body">
                                                <%--  <div id="DivHeader" style="vertical-align: top; width: 100%;">
                                            <asp:Table ID="AvailableCountriesGridViewTable" runat="server" CellPadding="0" CellSpacing="0"
                                                BackColor="#E8E8E8" ForeColor="Black" Width="100%" GridLines="Both" 
                                                CssClass="GridViewTableRow" 
                                                meta:resourcekey="AvailableCountriesGridViewTableResource1">
                                            </asp:Table>
                                        </div>--%>
                                                <div class="himsBoxContentMsg" id="GridContentDiv" runat="server" visible="False">
                                                </div>
                                                <%--    <div id="DivData" class="Container" style="vertical-align: top; height: 109px; width: 99.6%;">--%>
                                                <asp:GridView ID="AvailableResourceGridView" runat="server" AutoGenerateColumns="False"
                                                    class="himssuHeader7WireBox col-md-12 table-responsive" OnRowDataBound="AvailableResourceGridView_RowDataBound" CssClass="table table-striped table-bordered"
                                                    ShowHeader="True" OnPageIndexChanging="AvailableResourceGridView_OnPageIndexChanging"
                                                    EmptyDataText="No Area Available" meta:resourcekey="AvailableCountriesGridViewResource1">
                                                    <Columns>
                                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="EditLinkButton" runat="server" OnClick="LinkButton_Click" Text="Select"
                                                                    CausesValidation="False" CommandName="Select" meta:resourcekey="EditLinkButtonResource1"></asp:LinkButton>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="RequestDate" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label ID="RequestDate_Label" runat="server" CssClass="boxEllips" ToolTip='<%# Bind("RequestDate","{0:dd/MM/yyyy}") %>'
                                                                    Width="100px" Text='<%# Bind("RequestDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Left" Width="15%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="RequestFromTime" meta:resourcekey="TemplateFieldResource2" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:Label ID="RequestFromTime_Label" runat="server" CssClass="boxEllips" ToolTip='<%# Bind("RequestFromTime","{0:dd/MM/yyyy}") %>'
                                                                    Width="100px" Text='<%# Bind("RequestFromTime","{0:dd/MM/yyyy}") %>'></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Left" Width="15%" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="RequestToTime" HeaderStyle-HorizontalAlign="Center" meta:resourcekey="TemplateFieldResource4">

                                                            <ItemTemplate>
                                                                <asp:Label ID="RequestToTimeLabel" runat="server" Text='<%# Bind("RequestToTime","{0:dd/MM/yyyy}") %>'
                                                                    meta:resourcekey="ObsoleteLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="RequestedBy" HeaderStyle-HorizontalAlign="Center" meta:resourcekey="TemplateFieldResource4">

                                                            <ItemTemplate>
                                                                <asp:Label ID="RequestedByLabel" runat="server" Text='<%# Bind("RequestedBy") %>'
                                                                    meta:resourcekey="ObsoleteLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField Visible="False" meta:resourcekey="TemplateFieldResource5">
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="IdTextBox" runat="server" Text='<%# Bind("Id") %>' meta:resourcekey="CountryIdTextBoxResource1"></asp:TextBox>
                                                            </EditItemTemplate>
                                                            <ItemTemplate>
                                                                <asp:Label ID="IdLabel" runat="server" Text='<%# Bind("Id") %>' meta:resourcekey="CountryIdLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="0%" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField  HeaderText="Status" meta:resourcekey="TemplateFieldResource5">
                                                          
                                                            <ItemTemplate>
                                                                <asp:Label ID="StatusLabel" runat="server" Text='<%# Bind("Status") %>' meta:resourcekey="CountryIdLabelResource1"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="5%" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                                <%--</div>--%>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                    <!-- Sub Container2 Box Ends -->
                    <%--<div class="spacer">
                <asp:Image ID="spacerImage" runat="server" ImageUrl="~/Images/spacer.gif" 
                    meta:resourcekey="spacerImageResource1" />
            </div>--%>
                    <!-- Sub Container1 Box Start -->
                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-cog"></i>
                                    <asp:Label ID="CountryDetailsLabel" runat="server" Text="Maintenance" meta:resourcekey="CountryDetailsLabelResource1"></asp:Label>
                                    </header>
                                </div>
                            </div>

                            <div class="fRight mt-27 pagination display-flex">
                                <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                    <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                        runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                        OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                        <i class="fa fa-fast-backward"></i>
                                    </asp:LinkButton>
                                    <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                        runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                        OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                        <i class="fa fa-play fa-rotate-180"></i>
                                    </asp:LinkButton>
                                    &nbsp; &nbsp;
                                    <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                    <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                    <asp:Label ID="ofLabel" Text="of" runat="server" />
                                    <asp:Label ID="TotalRecord" runat="server" />
                                     &nbsp; &nbsp;
                                    <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                        runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                        OnClick="NextImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                        <i class="fa fa-play"></i>
                                    </asp:LinkButton>
                                    <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                        runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                        OnClick="LastRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                        <i class="fa fa-fast-forward"></i>
                                    </asp:LinkButton>
                                     &nbsp; &nbsp;<asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                        class="btn btn-back fas" Text="&#xf30a; Back" />
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="RequestDateLabel" runat="server" Text="RequestDate" SkinID="MandatoryLabel"
                                            meta:resourcekey="HeaderCountryTitleLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="RequestDate_DatePicker" runat="server" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="RequestFromTimeLabel" runat="server" Text="RequestFromTime" SkinID="MandatoryLabel"
                                            meta:resourcekey="HeaderCountryTitleLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="RequestFromTimeDatePickerControl" runat="server" />
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="RequestToTimeLabel" runat="server" Text="RequestToTime" SkinID="MandatoryLabel"
                                            meta:resourcekey="HeaderCountryTitleLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="RequestToTimeDatePickerControl" runat="server" />
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ResourceIdLabel" runat="server" Text="Resource" SkinID="MandatoryLabel"
                                            meta:resourcekey="HeaderCountryTitleLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="ResourceIdDropDownList" runat="server" CssClass="form-control"></asp:DropDownList>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="RequestedByLabel" runat="server" Text="RequestedBy" SkinID="MandatoryLabel"
                                            meta:resourcekey="HeaderCountryTitleLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="RequestedByTextBox" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                              
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="RequestedRemarkLabel" runat="server" Text="RequestedRemark" SkinID="MandatoryLabel"
                                            meta:resourcekey="HeaderCountryTitleLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="RequestedRemarkTextBox" runat="server" TextMode="MultiLine"></asp:TextBox>
                                    </div>
                                </div>
  
                            </div>
                        </div>
                    </div>
                    <!-- Sub Container1 Box Ends -->
                </div>
              
                <%--HEDP History Ends Here--%>
            </div>
            </div>
           
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/country-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/country-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>    
</asp:Content>
