<%@ page language="C#" autoeventwireup="true" inherits="Forms_UnScheduledVehicleRequisition, App_Web_kob0wgzu" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/New_Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/New_Footer.ascx" TagName="Footer" TagPrefix="uc2" %>

<%--<%@ Register Assembly="DevExpress.Web.ASPxGridView.v8.2, Version=8.2.10.0, Culture=neutral, PublicKeyToken=9B171C9FD64DA1D1"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v8.2, Version=8.2.10.0, Culture=neutral, PublicKeyToken=9B171C9FD64DA1D1"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v8.2" Namespace="DevExpress.Web.ASPxEditors"
    TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v8.2.Export, Version=8.2.10.0, Culture=neutral, PublicKeyToken=9B171C9FD64DA1D1" Namespace="DevExpress.Web.ASPxGridView.Export"
    TagPrefix="exp" %>--%>

<%@ Register Assembly="DevExpress.Web.v14.2" Namespace="DevExpress.Web" TagPrefix="dxw" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>tSense-IoT Unscheduled Vehicle Requisition Page</title>
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Page-Enter" content="blendTrans(Duration=0)" />
    <meta http-equiv="Page-Exit" content="blendTrans(Duration=0)" />
    <link href="../css/reset.css" rel="stylesheet" type="text/css" />
    <link href="../css/stylesheet2.css" rel="stylesheet" type="text/css" />
    <link href="../css/Updated_css.css" rel="stylesheet" type="text/css" />
    <link href="../css/dropdown.css" rel="stylesheet" type="text/css" />
    <link rel="SHORTCUT ICON" href="../images/favicon.ico" />
    <script src="../js/wow.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScmVehicleRequisition1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="upVehicleRequisition1" runat="server" UpdateMode="Always">
            <ContentTemplate>
                <div id="container">
                    <!-- Header Starts Here -->
                    <uc1:Header ID="ucHeader" runat="server" />
                    <!-- Nav Ends Here -->
                    <!-- Content Starts Here -->
                    <div id="outer">
                        <div id="inner">
                            <div id="float-wrap">
                                <!-- Main Content Starts Here -->
                                <!-- Main Content Starts Here -->
                                <div id="content">
                                    <div class="content-wrap">
                                        <div id="top-content">
                                            <div id="heading">
                                                <img class="icon" src="../images/CSC/rostering-icon.jpg" alt="" />
                                                <h1>Rostering</h1>

                                                <a href="Dashboard.aspx">Home</a><span>&gt;</span><span><a href="RosteringPanel.aspx">Rostering</a></span><span>&gt;</span><span><a
                                                    href="UnScheduledVehicleRequisition.aspx">UnScheduled</a></span>
                                            </div>
                                            <div id="control-box">
                                                <table border="0" cellpadding="0" cellspacing="0" id="control-tbl" width="100%">
                                                    <tr height="20px">
                                                        <td>&nbsp;
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div id="control-btn">
                                                                <table cellpadding="0" cellspacing="0" border="0" align="right">
                                                                    <tr>
                                                                        <td colspan="3">&nbsp;
                                                                        </td>
                                                                        <td>
                                                                            <asp:ImageButton ID="btnAddUnScheduledReq" runat="server" ImageUrl="~/images/CSC/btn-add-unscheduled-vehiclerequisition.jpg"
                                                                                OnClick="btnAddUnScheduledReq_Click" />

                                                                        </td>
                                                                        <td>
                                                                            <asp:ImageButton ID="ibtBackToRosterManagement" PostBackUrl="~/Forms/RosteringPanel.aspx"
                                                                                runat="server" ImageUrl="~/images/CSC/btn-backto-rostering.jpg" />
                                                                        </td>
                                                                        <td>&nbsp;&nbsp;
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                            <div class="clear clearfix">
                                            </div>
                                        </div>
                                        <div class="clear clearfix">
                                        </div>
                                        <asp:Panel ID="pnlUserInfo" runat="server" CssClass="ControlShow">
                                            <div class="form-box">
                                                <h1>
                                                    <span class="icon">
                                                        <img src="../images/CSC/icn-unscheduled-vehicle-requisition.gif" align="top" alt="" /></span> Request Details</h1>
                                                <table border="0" cellpadding="0" cellspacing="0" class="form-tbl">
                                                    <tr>
                                                        <td class="split"></td>
                                                        <td valign="top">
                                                            <asp:Label ID="lblReqForm" runat="server" CssClass="label" Text="Requisition From"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" Font-Bold="true" ID="lblRequisitionFrom" Text="IND/CSC" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>&nbsp;
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblEmpId" Text="Employee ID" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" Font-Bold="true" ID="lblEmployeeId" Text="1112750" CssClass="label"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="split"></td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblCubicle" Text="Cubicle Number" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" Font-Bold="true" ID="lblCubicleNo" Text="43F8545" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>&nbsp;
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblExtention" Text="Extention Number" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" Font-Bold="true" ID="lblExtentionNo" Text="74524" CssClass="label"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="split"></td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblMobile" Text="Mobile Number" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblMobileNo" Font-Bold="true" runat="server" Text="9856542352" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>&nbsp;
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblCost" Text="Cost Center" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblCostCenter" Font-Bold="true" runat="server" Text="Sarma" CssClass="label"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="split"></td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblLocate" Text="Location" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" Font-Bold="true" ID="lblLocation" Text="Coimbatore" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>&nbsp;
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblBuild" Text="Building" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" Font-Bold="true" ID="lblBuilding" Text="B4" CssClass="label"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="split"></td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lbldiv" Text="Division/Service Line" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" Font-Bold="true" ID="lbldivision" Text="Testing" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>&nbsp;
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblorg" Text="Org Unit-3" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" Font-Bold="true" ID="lblOrgUnit" Text="Finance" CssClass="label"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="split"></td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblManager" Text="Manager Name" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" Font-Bold="true" ID="lblManagerName" Text="Raja Sekar" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>&nbsp;
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lbldate" Text="Date" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" Font-Bold="true" ID="lblDateTime" Text="10/10/2009" CssClass="label"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="split"></td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblRequiredplace" Text="Where Vehicle Is Required"
                                                                CssClass="label"></asp:Label>
                                                            &nbsp;<asp:Label ID="Label6" runat="server" ForeColor="Red">*</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlOfficeLocation" runat="server" TabIndex="1">
                                                            </asp:DropDownList>
                                                            <asp:Label ID="lblOfficeLocation" Font-Bold="true" runat="server" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>&nbsp;
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lbltype" Text="Type Of Requisition" CssClass="label"></asp:Label>
                                                            &nbsp;<asp:Label ID="Label7" runat="server" ForeColor="Red">*</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:RadioButton ID="rbtServiceBoth" Text="Both" runat="server" GroupName="ServiceType"
                                                                TabIndex="2" />
                                                            <asp:RadioButton ID="rbtServicePickup" Text="Only Pickup" runat="server" GroupName="ServiceType" />
                                                            <asp:RadioButton ID="rbtServiceDrop" Text="Only Drop" runat="server" GroupName="ServiceType" />
                                                            <asp:Label ID="lblServiceType" runat="server" Font-Bold="true" CssClass="label"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="split"></td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblreqOn" Text="Vehicle Required On" CssClass="label"></asp:Label>
                                                            &nbsp;<asp:Label ID="Label8" runat="server" ForeColor="Red">*</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtFromDate" runat="server" TabIndex="3"></asp:TextBox>
                                                            <asp:Label ID="lblReqDate" Font-Bold="true" runat="server" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>&nbsp;
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblNoOfPeople" Text="Number Of People Travelling" CssClass="label"></asp:Label>
                                                            &nbsp;<asp:Label ID="Label9" runat="server" ForeColor="Red">*</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtNoOfPeopleTravelled" onkeypress="return chkNumeric_only(this)" MaxLength="2" runat="server" TabIndex="4"></asp:TextBox>
                                                            <asp:Label ID="lblNoOfPeopleTravelled" Font-Bold="true" runat="server" CssClass="label"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="split"></td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblFrom" Text="From Time" CssClass="label"></asp:Label>
                                                            &nbsp;<asp:Label ID="Label10" runat="server" ForeColor="Red">*</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlFromTime" runat="server" CssClass="time" onchange="ValidTime('ddlFromTime','ddlToTime');"
                                                                TabIndex="5">
                                                            </asp:DropDownList>
                                                            <asp:DropDownList ID="ddlFromTimeMinutes" runat="server" CssClass="time" onchange="ValidTime('ddlFromTime','ddlToTime');"
                                                                TabIndex="6">
                                                                <asp:ListItem>00</asp:ListItem>
                                                                <asp:ListItem>15</asp:ListItem>
                                                                <asp:ListItem>30</asp:ListItem>
                                                                <asp:ListItem>45</asp:ListItem>
                                                            </asp:DropDownList>
                                                            <asp:Label ID="lblFromTime" Font-Bold="true" runat="server" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>&nbsp;
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblTo" Text="To Time" CssClass="label"></asp:Label>
                                                            &nbsp;<asp:Label ID="Label11" runat="server" ForeColor="Red">*</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlToTime" runat="server" CssClass="time" onchange="ValidTime('ddlFromTime','ddlToTime');"
                                                                TabIndex="7">
                                                            </asp:DropDownList>
                                                            <asp:DropDownList ID="ddlToTimeMinutes" runat="server" CssClass="time" onchange="ValidTime('ddlFromTime','ddlToTime');"
                                                                TabIndex="8">
                                                                <asp:ListItem>00</asp:ListItem>
                                                                <asp:ListItem>15</asp:ListItem>
                                                                <asp:ListItem>30</asp:ListItem>
                                                                <asp:ListItem>45</asp:ListItem>
                                                            </asp:DropDownList>
                                                            <asp:Label ID="lblToTime" Font-Bold="true" runat="server" CssClass="label"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="split"></td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblFplace" Text="From Place" CssClass="label"></asp:Label>
                                                            &nbsp;<asp:Label ID="Label12" runat="server" ForeColor="Red">*</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtFromPlace" TextMode="MultiLine" onkeypress="return chkDescription(event,this,199);" MaxLength="200" runat="server" TabIndex="9"></asp:TextBox>
                                                            <asp:Label ID="lblFromPlace" Font-Bold="true" runat="server" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>&nbsp;
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblTplace" Text="To Place" CssClass="label"></asp:Label>
                                                            &nbsp;<asp:Label ID="Label13" runat="server" ForeColor="Red">*</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtToPlace" onkeypress="return chkDescription(event,this,199);" TextMode="MultiLine" MaxLength="200" runat="server" TabIndex="10"></asp:TextBox>
                                                            <asp:Label ID="lblToPlace" Font-Bold="true" runat="server" CssClass="label"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="split"></td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblpur" Text="Purpose" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtPurpose" runat="server" MaxLength="100" onkeypress="return chkDescription(event,this,99);" TextMode="MultiLine" TabIndex="11"></asp:TextBox>
                                                        </td>
                                                        <td>&nbsp;
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblGen" Text="Gender" CssClass="label"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblGender" Font-Bold="true" runat="server" CssClass="label" Text="M"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="split"></td>
                                                        <td colspan="5">
                                                            <asp:Label ID="lblWarningMsg" runat="server" Text="Request is being submitted less than 2 hours in advance.Hence.Please note that arranging transport by the requested time is subject to availability..!"
                                                                CssClass="label" ForeColor="Red"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td></td>
                                                        <td colspan="3">
                                                            <asp:Label ID="lblManitary" runat="server" ForeColor="Red">*</asp:Label>
                                                            &nbsp;
                                                            <asp:Label ID="lblIndicates" runat="server">Required Fields</asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="6">&nbsp;
                                                        </td>
                                                    </tr>
                                                    <tr id="trActions" runat="server">
                                                        <td colspan="2" valign="top">&nbsp;
                                                        </td>
                                                        <td valign="top">
                                                            <asp:ImageButton ID="btnAddRequisition" runat="server" OnClientClick="return UnscheduledRequisitionValidation();"
                                                                ImageUrl="~/images/btn-save.jpg" OnClick="btnAddRequisition_Click" TabIndex="12" />
                                                            &nbsp;&nbsp;
                                                        <asp:ImageButton ID="btnCancelRequisition" runat="server" ImageUrl="~/images/btn-cancel.jpg"
                                                            OnClick="btnCancelRequisition_Click" TabIndex="13" />
                                                        </td>
                                                        <td>&nbsp;
                                                        </td>
                                                    </tr>
                                                    </tr>
                                                </table>
                                            </div>
                                        </asp:Panel>
                                        <asp:Panel ID="pnlEmployeeView" runat="server" CssClass="ControlShow">
                                            <div class="form-box">
                                                <h1>
                                                    <span class="icon">
                                                        <img src="../images/CSC/icn-unscheduled-vehicle-requisition.gif" align="top" alt="" /></span>
                                                    My Own UnScheduled Requisition Details</h1>
                                            </div>
                                            <div id="grid-dsply">
                                                <dxw:ASPxGridView ID="gvVehicleRequisition" ClientInstanceName="gvVehicleRequisition"
                                                    KeyFieldName="RequisitionId" runat="server" Width="100%" AutoGenerateColumns="False"
                                                    EnableTheming="true" Theme="Office2003Blue"
                                                    CssFilePath="~/App_Themes/Office2003 Blue/{0}/grid.css" CssPostfix="Office2003_Blue">
                                                    <Images ImageFolder="~/App_Themes/Office2003 Blue/{0}/">
                                                        <CollapsedButton Height="12px" Url="~/App_Themes/Office2  003 Blue/GridView/gvCollapsedButton.png"
                                                            Width="11px" />
                                                        <ExpandedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvExpandedButton.png"
                                                            Width="11px" />
                                                        <DetailCollapsedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvCollapsedButton.png"
                                                            Width="11px" />
                                                        <DetailExpandedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvExpandedButton.png"
                                                            Width="11px" />
                                                    </Images>
                                                    <Styles AlternatingRow-Enabled="True" CssFilePath="~/App_Themes/Office2003 Blue/{0}/styles.css"
                                                        CssPostfix="Office2003_Blue">
                                                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                        </Header>
                                                        <LoadingPanel ImageSpacing="10px">
                                                        </LoadingPanel>
                                                        <PagerBottomPanel CssClass="PageFooter">
                                                        </PagerBottomPanel>
                                                        <PagerTopPanel CssClass="PageFooter">
                                                        </PagerTopPanel>
                                                    </Styles>
                                                    <SettingsPager PrevPageButton-Image-Url="../App_Themes/Office2003 Blue/GridView/pPrev.gif"
                                                        PrevPageButton-Image-UrlDisabled="../App_Themes/Office2003 Blue/GridView/pPrevDisabled.gif"
                                                        NextPageButton-Image-UrlDisabled="../App_Themes/Office2003 Blue/GridView/pNextDisabled.gif"
                                                        NextPageButton-Image-Url="../App_Themes/Office2003 Blue/GridView/pNext.gif" AlwaysShowPager="true">
                                                    </SettingsPager>
                                                    <Columns>

                                                        <dxw:GridViewDataColumn Caption="RequiredFrom" FieldName="FromTime">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/CSC/icn-requisition-fromdate.gif" align="top" alt="" /></span>
                                                                <span class="label">Required From</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataColumn Caption="RequiredTo" FieldName="ToTime">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/CSC/icn-requisition-todate.gif" align="top" alt="" /></span>
                                                                <span class="label">Required To</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataColumn Caption="RequiredService" FieldName="RequisitionService">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/CSC/icn-requsition-service.gif" align="top" alt="" /></span>
                                                                <span class="label">Required Service</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataColumn Caption="RequisitionDate" FieldName="RequisitionDate">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/CSC/icn-requisited-date.gif" align="top" alt="" /></span>
                                                                <span class="label">Requisition Date</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <%--<dxw:GridViewDataTextColumn Caption="ManagerAction" FieldName="ManagerActions">
                                                        <HeaderTemplate>
                                                        <span class="icon">
                                                            <img src="../images/CSC/icn-manager-action.gif"  align="top" alt="" /></span> 
                                                            <span class="label">Manager Action</span>
                                                        </HeaderTemplate>
                                                    </dxw:GridViewDataTextColumn>--%>
                                                        <dxw:GridViewDataTextColumn Caption="ManagerAction" FieldName="ManagerActions">
                                                            <HeaderTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/CSC/icn-approval-status.gif" align="top" alt="" /></span>
                                                                <span class="label">Approval Status</span>
                                                            </HeaderTemplate>
                                                        </dxw:GridViewDataTextColumn>
                                                        <%-- <dxw:GridViewDataTextColumn Caption="TransporterAction" FieldName="TransporterActions">
                                                        <HeaderTemplate>
                                                            <span class="label">Transporter Action</span>
                                                        </HeaderTemplate>
                                                    </dxw:GridViewDataTextColumn>--%>
                                                    </Columns>
                                                    <Settings ShowStatusBar="Auto" ShowFilterRow="false" ShowGroupPanel="false" />
                                                    <SettingsText EmptyDataRow="No Data Identified" />
                                                    <%-- <ClientSideEvents EndCallback="function(s, e) {document.getElementById('btnTest').click();}" />--%>
                                                    <SettingsBehavior ColumnResizeMode="NextColumn" AllowSort="true" AllowDragDrop="true"
                                                        AllowGroup="true" AllowFocusedRow="false" AllowMultiSelection="true" />
                                                    <SettingsPager PageSize="10" Mode="ShowPager">
                                                    </SettingsPager>
                                                </dxw:ASPxGridView>
                                            </div>
                                        </asp:Panel>
                                        <div class="clear clearfix"></div>
                                        <div style="height: 30px;" class="clear clearfix">
                                        </div>
                                        <asp:Panel ID="pnlManagerView" runat="server" CssClass="ControlShow">
                                            <asp:HiddenField ID="hdnAccepted" Value="" runat="server" />
                                            <asp:HiddenField ID="hdnEmailId" Value="" runat="server" />
                                            <div class="form-box">
                                                <h1>
                                                    <span class="icon">
                                                        <img src="../images/CSC/icn-manager-action.gif" align="top" alt="" /></span>
                                                    Manager&#39;s Action (Waiting For Your Approval)</h1>
                                            </div>
                                            <div id="grid-dsply">
                                                <dxw:ASPxGridView ID="gvManagerView" ClientInstanceName="gvManagerView" KeyFieldName="RequisitionId"
                                                    runat="server" Width="100%" AutoGenerateColumns="False" EnableTheming="true" Theme="Office2003Blue"
                                                    CssFilePath="~/App_Themes/Office2003 Blue/{0}/grid.css" CssPostfix="Office2003_Blue">
                                                    <ClientSideEvents SelectionChanged="function(s,e){ OnGridSelectionChanged(); }" />
                                                    <Images ImageFolder="~/App_Themes/Office2003 Blue/{0}/">
                                                        <CollapsedButton Height="12px" Url="~/App_Themes/Office2  003 Blue/GridView/gvCollapsedButton.png"
                                                            Width="11px" />
                                                        <ExpandedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvExpandedButton.png"
                                                            Width="11px" />
                                                        <DetailCollapsedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvCollapsedButton.png"
                                                            Width="11px" />
                                                        <DetailExpandedButton Height="12px" Url="~/App_Themes/Office2003 Blue/GridView/gvExpandedButton.png"
                                                            Width="11px" />
                                                    </Images>
                                                    <Styles AlternatingRow-Enabled="True" CssFilePath="~/App_Themes/Office2003 Blue/{0}/styles.css"
                                                        CssPostfix="Office2003_Blue">
                                                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                        </Header>
                                                        <LoadingPanel ImageSpacing="10px">
                                                        </LoadingPanel>
                                                        <PagerBottomPanel CssClass="PageFooter">
                                                        </PagerBottomPanel>
                                                        <PagerTopPanel CssClass="PageFooter">
                                                        </PagerTopPanel>
                                                    </Styles>
                                                    <SettingsPager PrevPageButton-Image-Url="../App_Themes/Office2003 Blue/GridView/pPrev.gif"
                                                        PrevPageButton-Image-UrlDisabled="../App_Themes/Office2003 Blue/GridView/pPrevDisabled.gif"
                                                        NextPageButton-Image-UrlDisabled="../App_Themes/Office2003 Blue/GridView/pNextDisabled.gif"
                                                        NextPageButton-Image-Url="../App_Themes/Office2003 Blue/GridView/pNext.gif" AlwaysShowPager="true">
                                                    </SettingsPager>
                                                    <Columns>
                                                        <dxw:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0" Name="Accepted"
                                                            Width="10%">
                                                            <HeaderTemplate>
                                                                <input type="checkbox" style="vertical-align: middle;" onclick="gvManagerView.SelectAllRowsOnPage(this.checked);"
                                                                    title="Select All"></input>
                                                            </HeaderTemplate>
                                                            <HeaderStyle Paddings-PaddingTop="1" Paddings-PaddingBottom="1" HorizontalAlign="Center" />
                                                        </dxw:GridViewCommandColumn>
                                                        <dxw:GridViewDataColumn Caption="EmployeeName" FieldName="DisplayName">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/CSC/icn-employee-name.gif" align="top" alt="" /></span>
                                                                <span class="label">Employee Name</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>

                                                        <dxw:GridViewDataColumn Caption="RequiredFrom" FieldName="FromTime">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/CSC/icn-requisition-fromdate.gif" align="top" alt="" /></span>
                                                                <span class="label">Required From</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataColumn Caption="RequiredTo" FieldName="ToTime">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/CSC/icn-requisition-todate.gif" align="top" alt="" /></span>
                                                                <span class="label">Required To</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataColumn Caption="RequiredService" FieldName="RequisitionService">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/CSC/icn-requsition-service.gif" align="top" alt="" /></span>
                                                                <span class="label">Required Service</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataColumn Caption="RequisitionDate" FieldName="RequisitionDate">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/CSC/icn-requisited-date.gif" align="top" alt="" /></span>
                                                                <span class="label">Requisition Date</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataColumn>
                                                        <dxw:GridViewDataTextColumn Caption="ClosedDate" FieldName="EmailId" Visible="false">
                                                            <HeaderCaptionTemplate>
                                                                <span class="label">EmailId</span>
                                                            </HeaderCaptionTemplate>
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="Edit" Width="10px" HeaderStyle-HorizontalAlign="Center"
                                                            CellStyle-HorizontalAlign="Center">
                                                            <HeaderTemplate>
                                                                <span class="icon">
                                                                    <img src="../images/CSC/icn-view-request.gif" align="top" alt="" /></span>
                                                                <span class="label">View Request</span>
                                                            </HeaderTemplate>
                                                            <DataItemTemplate>
                                                                <asp:ImageButton ID="btnView" runat="server" CommandArgument='<%# Eval("RequisitionId")+","+ Eval("EmailId") %>'
                                                                    AlternateText="Edit" ImageUrl="~/images/icn-view.gif" OnClick="btnViewReq_click"
                                                                    ToolTip="Click here to View" />
                                                            </DataItemTemplate>
                                                        </dxw:GridViewDataTextColumn>
                                                    </Columns>
                                                    <Settings ShowStatusBar="Auto" ShowFilterRow="false" ShowGroupPanel="false" />
                                                    <SettingsText EmptyDataRow="No Data Identified" />
                                                    <%-- <ClientSideEvents EndCallback="function(s, e) {document.getElementById('btnTest').click();}" />--%>
                                                    <SettingsBehavior ColumnResizeMode="NextColumn" AllowSort="true" AllowDragDrop="true"
                                                        AllowGroup="true" AllowFocusedRow="false" AllowMultiSelection="true" />
                                                    <SettingsPager PageSize="10" Mode="ShowPager">
                                                    </SettingsPager>
                                                </dxw:ASPxGridView>
                                                <div class="clear clearfix">
                                                </div>
                                                <div class="form-box">
                                                    <table width="100%" class="form-tbl">
                                                        <tr>
                                                            <td width="9%">
                                                                <center>
                                                                    <asp:ImageButton ID="btnAccept" runat="server" OnClientClick="return confirm('Do you Accept the employee(s) request.!');" ToolTip="Accept" OnClick="btnAccept_click"
                                                                        TabIndex="14" ImageUrl="~/images/CSC/icn-accept-requisition.gif" />
                                                                    <asp:ImageButton ID="btnReject" runat="server" OnClientClick="return confirm('Do you Reject the employee(s) request.!');" OnClick="btnReject_click"
                                                                        TabIndex="15" ToolTip="Reject" ImageUrl="~/images/CSC/icn-reject-requisition.gif" />
                                                                </center>
                                                            </td>
                                                            <td></td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                <div class="clear clearfix">
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                            </div>
                            <!-- Main Content Ends Here -->
                            <div id="left">
                            </div>
                            <div class="clear clearfix">
                            </div>
                        </div>
                        <div id="right">
                        </div>
                    </div>
                </div>
                <asp:HiddenField ID="hdnLocationDetails" runat="server" />
                <asp:HiddenField ID="hdnAddressStatus" runat="server" />
                <asp:TextBox ID="txtLatitude" runat="server" Style="display: none;"></asp:TextBox>
                <asp:TextBox ID="txtlongitude" runat="server" Style="display: none;"></asp:TextBox>
                <asp:Button ID="btnTest" Text="Test" CssClass="ControlHide" runat="server" />
            </ContentTemplate>
            <Triggers>
                <asp:PostBackTrigger ControlID="btnTest" />
            </Triggers>
        </asp:UpdatePanel>
        <!-- Content Ends Here -->
        <uc2:Footer ID="ucFooter" runat="server" />
        <%-- <script src="http://www.google.com/jsapi?key=ABQIAAAAadK4QC_stKG_N-fgpmjS2xQA_4E2fCCMSvystwZnewY94nMSzBSJVaeoWL6-saco8uIUmXZXGqtarw" type="text/javascript" ></script>
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAadK4QC_stKG_N-fgpmjS2xQA_4E2fCCMSvystwZnewY94nMSzBSJVaeoWL6-saco8uIUmXZXGqtarw"></script>--%>
        <script language="javascript" type="text/javascript" src="../js/FormValidations.js"></script>
        <script language="javascript" type="text/javascript" src="../js/myformvalidations.js"></script>
        <script language="javascript" type="text/javascript" src="../js/GoogleSearch.js"></script>

        <script language="javascript" type="text/javascript">

            function Disable() {
                document.getElementById("lblWarningMsg").style.visibility = "hidden";
            }
            function ValidTime(FromTime, ToTime) {

                if ((document.getElementById(FromTime).value != 'Hr') && (document.getElementById(FromTime).value != "")) {

                    var currentTime = new Date().getHours();


                    if (currentTime >= eval(document.getElementById(FromTime).value)) {
                        if ((currentTime == eval(document.getElementById(FromTime).value)) && (new Date().getMinutes() > eval(document.getElementById("ddlFromTimeMinutes").value))) {
                            alert("Current time - " + new Date().getHours() + ":" + new Date().getMinutes() + ". From Time should be greater than the current time.");
                            document.getElementById(FromTime).value = 'Hr';
                            document.getElementById(FromTime).focus();
                        }
                        else if ((currentTime != eval(document.getElementById(FromTime).value))) {
                            alert("Current time - " + new Date().getHours() + ":" + new Date().getMinutes() + ". From Time should be greater than the current time.");
                            document.getElementById(FromTime).value = 'Hr';
                            document.getElementById(FromTime).focus();
                        }
                    }
                    else if ((document.getElementById(FromTime).value != 'Hr') && (document.getElementById(FromTime).value != "")
                    && (document.getElementById(ToTime).value != 'Hr') && (document.getElementById(ToTime).value != "")) {
                        if (eval(document.getElementById(FromTime).value) >= eval(document.getElementById(ToTime).value)) {
                            if (eval(document.getElementById("ddlFromTimeMinutes").value) >= eval(document.getElementById("ddlToTimeMinutes").value) && (eval(document.getElementById(FromTime).value) == eval(document.getElementById(ToTime).value))) {
                                alert("To Time should be greater than the From Time.");
                                document.getElementById(ToTime).value = 'Hr';
                                document.getElementById(ToTime).focus();
                            }
                            else if (eval(document.getElementById(FromTime).value) != eval(document.getElementById(ToTime).value)) {
                                alert("To Time should be greater than the From Time.");
                                document.getElementById(ToTime).value = 'Hr';
                                document.getElementById(ToTime).focus();
                            }

                        }
                    }
                    else if ((eval(document.getElementById(FromTime).value) - 2) <= currentTime) {
                        if ((eval(document.getElementById("ddlFromTimeMinutes").value) < new Date().getMinutes()) && ((eval(document.getElementById(FromTime).value) - 2) == currentTime)) {
                            document.getElementById('lblWarningMsg').style.visibility = "visible";
                        }
                        else {
                            document.getElementById('lblWarningMsg').style.visibility = "hidden";
                        }
                        if ((eval(document.getElementById(FromTime).value) - 2) != currentTime) {
                            document.getElementById('lblWarningMsg').style.visibility = "visible";
                        }
                        else {
                            document.getElementById('lblWarningMsg').style.visibility = "hidden";
                        }
                    }
                    else {
                        document.getElementById('lblWarningMsg').style.visibility = "hidden";
                    }
                }
                else {
                    alert("Please select the From Time first.");
                    document.getElementById(FromTime).value = 'Hr';
                    document.getElementById(FromTime).focus();
                }
            }


            function OnGridSelectionChanged() {

                gvManagerView.GetSelectedFieldValues('RequisitionId', OnGridSelectionComplete);
                gvManagerView.GetSelectedFieldValues('EmailId', OnGridSelectionCompleteEmail);
            }

            function OnGridSelectionComplete(values) {
                var counter = document.getElementById("hdnAccepted");
                counter.value = '';
                for (var i = 0; i < values.length; i++) {
                    counter.value = counter.value + values[i] + ',';
                }
            }

            function OnGridSelectionCompleteEmail(values) {
                var counter = document.getElementById("hdnEmailId");
                counter.value = '';
                for (var i = 0; i < values.length; i++) {
                    counter.value = counter.value + values[i] + ',';
                }
            }
            function SetScrollbar() {
                setTimeout("window.scrollTo(0,0)", 0);

            }
            function OpenPopup() {
                window.open("EmployeeLocation.aspx", "List", "scrollbars=no,resizable=no,width=400px,height=350px");
                return false;
            }
        </script>
        <asp:HiddenField ID="hdnLogout" runat="server" />
    </form>
</body>
</html>
