<%@ page language="C#" masterpagefile="~/APC.master" autoeventwireup="true" inherits="TaskList, App_Web_yu00t16c" title="APC Management System" enableEventValidation="false" %>

<%@ Register Assembly="DevExpress.Web.ASPxNavBar.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4"
    Namespace="DevExpress.Web.ASPxNavBar" TagPrefix="dxwn" %>

<%@ Register Assembly="DevExpress.Web.ASPxDataControls.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4"
    Namespace="DevExpress.Web.ASPxDataControls" TagPrefix="dxwdc" %>
<%@ Register Assembly="DevExpress.Web.ASPxGrid.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4"
    Namespace="DevExpress.Web.ASPxGrid" TagPrefix="dxwg" %>
<% @Outputcache Location="none" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <dxwdc:ASPxLookAndFeelController ID="ASPxLookAndFeelController1" runat="server" AutoFormatName="Office2003 Silver">
        <LookAndFeel Kind="Office2003">
            <ElementsSettings DropDownButtonWidth="17px" ScrollBarBackColor="240, 242, 246" ScrollBarMargin="1"
                ScrollBarSize="17px" />
            <PopupStyle BorderColor="#9595AA" Font-Names="Verdana" Font-Size="8pt">
            </PopupStyle>
            <ButtonStyle BackColor="#9997B6" BorderColor="#9595AA" Font-Names="Verdana" Font-Size="8pt"
                ForeColor="Black" Margin="1" UseHotTrackStyle="True" UsePressedStyle="True" Wrap="False">
                <PressedStyle BackColor="#FFCA86" BorderColor="Navy" ForeColor="Black">
                    <Filters>
                        <dxwdc:LookAndFeelStyleGradientFilter EndColor="255, 202, 134" StartColor="254, 148, 80" />
                    </Filters>
                </PressedStyle>
                <Filters>
                    <dxwdc:LookAndFeelStyleGradientFilter EndColor="153, 151, 182" StartColor="242, 243, 249" />
                </Filters>
                <HotTrackStyle BackColor="#FFD599" BorderColor="Navy" ForeColor="Black">
                    <Filters>
                        <dxwdc:LookAndFeelStyleGradientFilter EndColor="255, 213, 153" StartColor="255, 243, 202" />
                    </Filters>
                </HotTrackStyle>
            </ButtonStyle>
            <LabelStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" />
            <EditorStyle BackColor="White" BorderColor="#9595AA" Font-Names="Verdana" Font-Size="8pt"
                ForeColor="Black">
            </EditorStyle>
            <ScrollBarButtonStyle>
                <Filters>
                    <dxwdc:LookAndFeelStyleGradientFilter EndColor="153, 151, 182" GradientMode="Horizontal"
                        StartColor="242, 243, 249" />
                </Filters>
            </ScrollBarButtonStyle>
        </LookAndFeel>
    </dxwdc:ASPxLookAndFeelController>
    <div style="width: 100%; height: 100%; background-color: #339966">
        <table border=0 cellpadding=0 cellspacing=0>
        <tr>
            <td style="width: 69px; height: 28px;">
                <dxwdc:ASPxLabel ID="headerLabel" runat="server" Font-Bold="True" Text="Task List" ForeColor="White">
                </dxwdc:ASPxLabel>
            </td>
            <td style="width: 254px; height: 28px;">
                <input id="Criteria" name="Criteria" type="hidden" />
                <input id="SendCriteria" name="SendCriteria" type="hidden" value='<%=Session["SendCriteria"]%>' />
                <input id="TaskType" name="TaskType" type="hidden" value='<%=Session["TaskType"]%>' /></td>            
        </tr>
    </table>
        </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="DynamicBody" Runat="Server">
    <dxwg:aspxgrid id="aspGridTaskList" runat="server" bordercolor="#9595AA" borderstyle="Solid"
        expandbtnheight="11px" expandbtnwidth="11px" headerheight="25px" height="491px"
        rowbtnwidth="18px" searchbtnwidth="17px" selectedbackcolor="178, 180, 191"
        statusbaritemspacing="0" tabindex="0" PageSize="0" AutoGenerateColumns="False" ReadOnly="True" TitleText="Hell" Width="100%">
<ExpandBtnStyle BorderStyle="Solid" BorderWidth="1px" BorderColor="#9595AA" BackColor="#F9F9F9">
<PressedStyle BorderColor="Navy" ForeColor="Black" BackColor="#D0D0D0"></PressedStyle>

<HotTrackStyle BorderColor="Navy" BackColor="White"></HotTrackStyle>
</ExpandBtnStyle>

<RowBtnStyle BorderStyle="None"></RowBtnStyle>

<FooterStyle FixedHeight="True" BackColor="#D5D4E3" Wrap="False" FixedWidth="True" Font-Bold="True"></FooterStyle>
<StatusBars>
<dxwg:StatusBar><BarItems>
<dxwdc:BarStatusSection Caption="Filter Criteria" ToolTip="Current Filter being Applied"></dxwdc:BarStatusSection>
</BarItems>
</dxwg:StatusBar>
</StatusBars>

<GroupItemStyle BorderColor="#9595AA" BackColor="#D7D7E5" Wrap="False" FixedWidth="True"></GroupItemStyle>

<HeaderStyle BorderStyle="None" FixedWidth="True" Wrap="False" Font-Bold="True" FixedHeight="True"></HeaderStyle>

<GroupedHeaderStyle BorderStyle="Solid" BorderWidth="1px" BorderColor="#9595AA">
<PressedStyle BorderColor="Navy"></PressedStyle>

<HotTrackStyle BorderColor="Navy"></HotTrackStyle>
</GroupedHeaderStyle>

<SearchEditorStyle BorderColor="White"></SearchEditorStyle>

<BarBtnEditorStyle BorderStyle="None"></BarBtnEditorStyle>

<AppearanceOptions ShowNavigator="False" ShowStatusBar="False" ShowSearchItem="True"></AppearanceOptions>

<TitleStyle ForeColor="White" BackColor="#9595AA"></TitleStyle>

<ButtonBarStyle BorderStyle="Solid" BorderColor="#9595AA" BorderWidth="1px"></ButtonBarStyle>

<HeaderDraggedStyle BorderStyle="Solid" BorderColor="LightGray" BorderWidth="1px"><Filters>
    <dxwdc:LookAndFeelStyleAlphaFilter FinishOpacity="50" FinishX="50">
    </dxwdc:LookAndFeelStyleAlphaFilter>
</Filters>
</HeaderDraggedStyle>

<StatusBarStyle BorderStyle="None" BackColor="#F2F3F9" Font-Bold="False"><Filters>
    <dxwdc:LookAndFeelStyleGradientFilter EndColor="153, 151, 182" StartColor="242, 243, 249">
    </dxwdc:LookAndFeelStyleGradientFilter>
</Filters>
</StatusBarStyle>

<FooterItemStyle BackColor="#D5D4E3"></FooterItemStyle>

<BarBtnStyle BorderStyle="None">
<PressedStyle BorderStyle="Solid"></PressedStyle>

<HotTrackStyle BorderStyle="Solid"></HotTrackStyle>
</BarBtnStyle>

<PreviewStyle ForeColor="#A3A5B1" BackColor="#FAFAFD"></PreviewStyle>

<SearchItemStyle BackColor="#D7D7E5"></SearchItemStyle>

<BehaviorOptions AllowInsert="False" AllowEdit="False" AllowDelete="False" AllowAppend="False"></BehaviorOptions>

<GroupIndentStyle BackColor="#D7D7E5"></GroupIndentStyle>

<SearchBtnStyle FixedWidth="True"></SearchBtnStyle>

<StatusBarSections TotalVisible="False" VisibleInterval="False" TotalRows="False"></StatusBarSections>

<GroupPanelStyle ForeColor="#F3F4FA" BackColor="#8583A1" Font-Bold="True"></GroupPanelStyle>

<ItemStyle VerticalAlign="Middle" BackColor="White" Wrap="False" FixedWidth="True" Font-Size="7.5pt"></ItemStyle>

<AlternatingItemStyle BackColor="#F3F4FA"></AlternatingItemStyle>
        <Columns>
            <dxwg:BoundColumn DataField="ListDesc" GroupIndex="0" HeaderText="Task Status" Visible="False"
                Width="200px">
            </dxwg:BoundColumn>
            <dxwg:BoundColumn DataField="AssignDate" HeaderText="Assigned Date" ReadOnly="True"
                VisibleIndex="0" Width="150px" MinWidth="10">
            </dxwg:BoundColumn>
            <dxwg:BoundColumn DataField="DocumentDesc" HeaderText="Type" ReadOnly="True" VisibleIndex="1"
                Width="150px">
            </dxwg:BoundColumn>
            <dxwg:BoundColumn DataField="DocumentId" HeaderText="Reference" ReadOnly="True" VisibleIndex="2"
                Width="80px">
            </dxwg:BoundColumn>
            <dxwg:BoundColumn DataField="DocumentInfo" HeaderText="Information" ReadOnly="True"
                VisibleIndex="3" Width="200px">
            </dxwg:BoundColumn>
            <dxwg:BoundColumn DataField="DocumentStatus" HeaderText="Request Status" ReadOnly="True"
                VisibleIndex="4" Width="200px">
            </dxwg:BoundColumn>
            <dxwg:BoundColumn DataField="CurrentUser" HeaderText="Current User" ReadOnly="True"
                VisibleIndex="6" Width="170px">
            </dxwg:BoundColumn>
            <dxwg:BoundColumn DataField="LastUpdateDate" HeaderText="Last Updated" ReadOnly="True"
                VisibleIndex="5" Width="150px">
            </dxwg:BoundColumn>
        </Columns>
        <ClientSideEvents>
            <FocusedRowClick>
                function(source,e) { var pkid = e.row.GetDataControllerRow().GetValueByColumnName("DocumentId");
                var type = e.row.GetDataControllerRow().GetValueByColumnName("DocumentType"); viewRequestInfo(pkid,
                type);
                }</FocusedRowClick>
        </ClientSideEvents>
</dxwg:aspxgrid>
    <a href="App_Code/TaskListData.xsd"></a><a href="App_Code/TaskListData.xsd"></a>
</asp:Content>
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <dxwn:aspxnavbar id="navBar" runat="server" backcolor="#A2A2B5" groupspacing="5px"
        width="200px"><Groups>
            <dxwn:NavBarGroup AllowDragging="False" Name="HomeGroup" NavigateUrl="~/Login.aspx"
                Text="Logout" ToolTip="click here to Logout your session">
                <ContentStyle Font-Underline="False">
                </ContentStyle>
                <Items>
                    <dxwn:NavBarItem Name="TaskList" Selected="True" Text="Tasks">
                    </dxwn:NavBarItem>
                    <dxwn:NavBarItem Name="TaskOut" Text="Task List - Outstanding" ToolTip="click here to View Outstanding Tasks">
                    </dxwn:NavBarItem>
                    <dxwn:NavBarItem Name="TaskFilter" Text="Task List - Filter" ToolTip="click here to Filter your Task List">
                    </dxwn:NavBarItem>
                    <dxwn:NavBarItem Name="ViewDocs" Text="View Documentation" ToolTip="click here to view Documentation Available">
                    </dxwn:NavBarItem>
                </Items>
            </dxwn:NavBarGroup>
            <dxwn:NavBarGroup AllowDragging="False" Name="ExtLinks" Text="External Links">
                <ItemStyle Font-Underline="False" />
                <Items>
                    <dxwn:NavBarItem Name="XE" NavigateUrl="http://www.xe.com" Target="_blank" Text="XE.COM"
                        ToolTip="click here to go to www.xe.com">
                    </dxwn:NavBarItem>
                </Items>
            </dxwn:NavBarGroup>
</Groups>

<ItemStyle ForeColor="Black" Height="22px">
<Paddings PaddingTop="3px" PaddingBottom="3px" PaddingLeft="9px"></Paddings>

<HoverStyle BackColor="#FFEEC2">
<BackgroundImage ImageUrl="~/Images/Office2003 Silver/nbHBack.gif"></BackgroundImage>

<Border BorderWidth="1px" BorderColor="#002D96"></Border>
</HoverStyle>

<SelectedStyle BackColor="#FFAD55">
<BackgroundImage Repeat="RepeatX" VerticalPosition="top" ImageUrl="~/Images/Office2003 Silver/nbSBack.gif"></BackgroundImage>

<Border BorderWidth="1px" BorderColor="#002D96"></Border>
</SelectedStyle>
</ItemStyle>

<GroupHeaderStyleCollapsed>
<BorderBottom BorderWidth="1px" BorderColor="#7C7C94"></BorderBottom>
</GroupHeaderStyleCollapsed>

<LoadingPanelImage Url="~/Images/Office2003 Silver/nbLoading.gif"></LoadingPanelImage>

<GroupHeaderStyle BackColor="#F0F0F8" ForeColor="Black">
<Paddings PaddingTop="6px" PaddingRight="7px" PaddingBottom="5px"></Paddings>

<BackgroundImage Repeat="RepeatX" VerticalPosition="bottom" ImageUrl="~/Images/Office2003 Silver/nbGroupHeaderBack.gif"></BackgroundImage>

<Border BorderWidth="1px" BorderColor="#7C7C94"></Border>
</GroupHeaderStyle>

<Paddings Padding="5px"></Paddings>

<BackgroundImage Repeat="RepeatX" VerticalPosition="top" ImageUrl="~/Images/Office2003 Silver/nbBack.gif"></BackgroundImage>

<LoadingPanelStyle ForeColor="#7C7C94" ImageSpacing="6px"></LoadingPanelStyle>

<GroupContentStyle ItemSpacing="1px" BackColor="#E3E3EC">
<Paddings Padding="1px" PaddingLeft="1px"></Paddings>

<BackgroundImage Repeat="RepeatX" VerticalPosition="bottom" ImageUrl="~/Images/Office2003 Silver/nbGroupBack.gif"></BackgroundImage>

<Border BorderWidth="1px" BorderColor="#7C7C94"></Border>
</GroupContentStyle>
        <ClientSideEvents ItemClick="function(s, e) 
{
e.processOnServer = false;
if (e.item.name == 'PayReq')
   newPayRequest('');	
if (e.item.name == 'IntPayReq')
    newIntPayRequest('');
if (e.item.name == 'PastelExp')
	viewPastelExports();
if (e.item.name == 'ImportExcel')
    importPaymentRequests();
if (e.item.name == 'TaskFilter')
   selectFilter(); 
if (e.item.name == 'TaskOut')
{
   document.forms[0].TaskType.value = 'Out';
   document.forms[0].submit();
}
if (e.item.name == 'REP002')
{
    document.forms[0].TaskType.value = 'REP002';
    document.forms[0].submit();
}
if (e.item.name == 'REP004')
{
    document.forms[0].TaskType.value = 'REP004';
    document.forms[0].submit();
}
if (e.item.name == 'ViewDocs')
{
	viewDocuments();
}
}
" />
</dxwn:aspxnavbar>
</asp:Content>

