<%@ Page language="c#" Codebehind="Details.aspx.cs" AutoEventWireup="True" Inherits="eDocument.Server.Administrator.AbortedProcess.Details"  MasterPageFile="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
			<h1>Avbrutte prosess-instanser for prosess:
				<asp:Label id="lblProcessName" runat="server"></asp:Label></h1>
			<p>
				Denne siden viser deg de avbrutte prosess-instansene for en prosess. Du kan gjenoppta, restarte og kansellere en avbrutt prosess-instans. 
			</p>
			<asp:datagrid id="dgAbortedProcess" runat="server" AutoGenerateColumns="False" Width="100%" HeaderStyle-CssClass="HeaderStyle"
				ItemStyle-CssClass="ItemStyle" AlternatingItemStyle-CssClass="AlternatingItemStyle" AllowSorting="False">
				<AlternatingItemStyle CssClass="AlternatingItemStyle"></AlternatingItemStyle>
				<ItemStyle CssClass="ItemStyle"></ItemStyle>
				<HeaderStyle CssClass="HeaderStyle"></HeaderStyle>
				<Columns>
					<asp:BoundColumn Visible="False" DataField="AbortedProcessID"></asp:BoundColumn>
					<asp:BoundColumn Visible="False" DataField="ProcessID"></asp:BoundColumn>
					<asp:BoundColumn Visible="False" DataField="eDocumentInstanceID"></asp:BoundColumn>
					<asp:BoundColumn Visible="False" DataField="EventLogItemID"></asp:BoundColumn>
					<asp:BoundColumn Visible="False" DataField="LastSuccessfulActionID"></asp:BoundColumn>
					<asp:BoundColumn Visible="False" DataField="LastSuccessfulActionIndex"></asp:BoundColumn>
					<asp:BoundColumn HeaderText="Process" Visible="False"></asp:BoundColumn>
					<asp:BoundColumn Visible=False HeaderText="Skjema"></asp:BoundColumn>
					<asp:BoundColumn Visible=False HeaderText="Melding"></asp:BoundColumn>
					<asp:BoundColumn Visible=False HeaderText="Siste vellykkede handling"></asp:BoundColumn>
					<asp:BoundColumn DataField="AbortedOn" HeaderText="Tidspunkt for avbrytelse"></asp:BoundColumn>
					<asp:ButtonColumn Text="Gjenoppta" CommandName="Resume"></asp:ButtonColumn>
					<asp:ButtonColumn Text="Restart" CommandName="Restart"></asp:ButtonColumn>
					<asp:ButtonColumn Text="Kanseler" CommandName="Cancel"></asp:ButtonColumn>
					<asp:ButtonColumn Text="Detaljer" CommandName="Details" Visible=False></asp:ButtonColumn>
					<asp:HyperLinkColumn Visible="False" Target="_blank" DataNavigateUrlFormatString="~/eDocumentInstance/DownloadXmlResponse.aspx?eDocumentInstanceID={0}" DataNavigateUrlField="eDocumentInstanceID" Text="Vis XML"/>
					<asp:HyperLinkColumn Visible="False" Target="_blank" DataNavigateUrlFormatString="~/eDocumentInstance/DownloadPdfResponse.aspx?eDocumentInstanceID={0}" DataNavigateUrlField="eDocumentInstanceID" Text="Vis PDF"/>
					<asp:BoundColumn Visible=False HeaderText="Referansenummer"></asp:BoundColumn>
				</Columns>
			</asp:datagrid>
			<P>
				<asp:Label id="lblNoAbortedProcessMessage" runat="server">Ingen avbrutte prosess-instanser.</asp:Label>
				<asp:Label id="lblAbortedProcessCount" runat="server"></asp:Label>
				<asp:label id="lblMessage" runat="server" ForeColor="Red"></asp:label></P>
			<P>
				<asp:Button id="btnRefresh" runat="server" Text="Oppdater" onclick="btnRefresh_Click"></asp:Button></P>
			<h2>Oppgaver:</h2>
			<asp:Button id="btnResumeAll" runat="server" Text="Gjenoppta alle" onclick="btnResumeAll_Click"></asp:Button>
			<asp:Button id="btnRestartAll" runat="server" Text="Restart alle" onclick="btnRestartAll_Click"></asp:Button>
			<asp:Button id="btnCancelAll" runat="server" Text="Kanseler alle" onclick="btnCancelAll_Click"></asp:Button>
</asp:Content>