<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WorkflowInfo.ascx.cs" Inherits="APC.Forms.BaseUserControls.WorkflowInfo" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
    <ext:FormPanel 
        ID="Info" 
        runat="server"
        AutoWidth="true"
        BodyPadding="0"
        DefaultAnchor="100%" BodyBorder="0" Border="true" Collapsible="true" Layout="ColumnLayout" Height="130" Header="true" Icon="GroupGo" Title="Workflow and Notes Information" PaddingSpec="0 0 10 0">
        <Items>
            <ext:FormPanel runat="server" ID="WorkflowPanel" ColumnWidth=".60" Border="false" BodyBorder="0" AutoScroll="true" Height="70" Frame="true" Header="false" PaddingSpec="0 0 0 5">
            <FieldDefaults LabelAlign="Top" LabelStyle="font-weight:bold"/>
            <Items>
                <ext:DisplayField ID="txtLastNotes" FieldLabel="Last Notes:" runat="server" AnchorHorizontal="99%"/>
                <ext:DisplayField ID="txtRequestor" runat="server" FieldLabel="Requested By:" runat="server" AnchorHorizontal="99%"/>
                <ext:DisplayField ID="txtRequestDate" runat="server" FieldLabel="Requested Date:" runat="server" AnchorHorizontal="99%" />
                <ext:DisplayField ID="txtAssignedUser" runat="server" FieldLabel="Assigned To:" runat="server" AnchorHorizontal="99%"/>
                <ext:DisplayField ID="txtAssignedDate" runat="server" FieldLabel="Assigned Date:" runat="server" AnchorHorizontal="99%"/>
                <ext:DisplayField ID="txtDocProcess" runat="server" FieldLabel="Process:" runat="server" AnchorHorizontal="99%"/>
                <ext:DisplayField ID="txtStepStatus" runat="server" FieldLabel="Step:" runat="server" AnchorHorizontal="99%"/>
                <ext:DisplayField ID="txtLastUser" runat="server" FieldLabel="Last User:" runat="server" AnchorHorizontal="99%"/>
                <ext:DisplayField ID="txtLastUpdate" runat="server" FieldLabel="Last Update:" runat="server" AnchorHorizontal="99%"/>
            </Items>
            </ext:FormPanel>
            <ext:FormPanel runat="server" ID="NotesPanel" ColumnWidth=".40" Border="false" Height="70" AutoScroll="true" Frame="true" Header="false">
            <FieldDefaults LabelAlign="Top" LabelStyle="font-weight:bold"/>
            <Items>
                 <ext:TextArea ID="txtNotes" runat="server" FieldLabel="Notes" AnchorHorizontal="99%" Height="50" AutoScroll="true"></ext:TextArea>
            </Items>
            </ext:FormPanel>
            </Items>
            <TopBar>
             <ext:Toolbar ID="toolWorkflow" runat="server">
            <Items>
                <ext:Button ID="btnViewHistory" runat="server" Text="View History..." Icon="NoteGo">
                <Listeners>
                <Click Handler="#{winAudit}.show();"/>
                </Listeners>
                </ext:Button>
                <ext:Button ID="btnViewAudit" runat="server" Text="View Audit Document..." Icon="PageMagnify" ToolTip="click here to View the Audit Document for this Request">
                <DirectEvents>
                <Click OnEvent="btnViewAudit_Click" />
                </DirectEvents>
                </ext:Button>

            </Items>
            </ext:Toolbar>
 </TopBar>
 
   </ext:FormPanel>
    <ext:Window ID="winAudit" Height="330" Width="700" Title="Audit Information" Closable="true" CloseAction="Hide" Plain=true runat="server" Hidden="true" Modal="true" Layout="FitLayout" X="0" Y="80" AutoScroll="true">
    </ext:Window>
