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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
        <h1>
            Detaljer for abonnement</h1>
        <p>
            Denne siden viser deg detaljer for et abonnement. Klikk på "Rediger" knappen dersom
            du ønsker å redigere abonnementet. Klikk på "Legg til prosess" knappen dersom du
            ønsker å legge prosesser til dette abonnementet.
        </p>
        <table cellspacing="2" cellpadding="5">
            <tr>
                <td>
                    <asp:Label ID="Label4" runat="server">Organisasjon</asp:Label>
                </td>
                <td>
                    <asp:HyperLink ID="lnkConsumer" runat="server"></asp:HyperLink>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server">Skjema</asp:Label>
                </td>
                <td>
                    <asp:HyperLink ID="lnkTemplate" runat="server"></asp:HyperLink>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label5" runat="server">Aktiv</asp:Label>
                </td>
                <td>
                    <asp:CheckBox id="checkActive" runat="server" Enabled="False"></asp:CheckBox>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label12" runat="server">XSL</asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblXsl" runat="server"></asp:Label>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    Sikkerhetsnivå
                </td>
                <td>
                    <asp:Label ID="lblSecurityLevel" runat="server" />
                </td>
                <td>
                </td>
            </tr>
<%--			<tr>
                <td>
                    <asp:Label ID="Label6" runat="server">Signering</asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblDifiSign" runat="server"></asp:Label>
                </td>
                <td>
                </td>
            </tr>
			<tr>
                <td>
                    <asp:Label ID="Label16" runat="server">Driftsmodell</asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblOperationModel" runat="server"></asp:Label>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>Krypteringsmodus</td>
                <td>
                    <asp:Label runat="server" ID="lblEncryptionMode" />
                </td>
            </tr>--%>
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server">XFT</asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblDokumentbankenBlankett" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:HyperLink ID="HyperLink7" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
                </td>
            </tr>
<%--            <tr>
                <td>
                    <asp:Label ID="Label5" runat="server">Prosessmodus</asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblProcessMode" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:HyperLink ID="Hyperlink3" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label9" runat="server">Fremovervalideringsmodus</asp:Label></td>
                <td>
                    <asp:Label ID="lblForwardValidationMode" runat="server"></asp:Label></td>
                <td>
                    <asp:HyperLink ID="Hyperlink5" runat="server" Target="_blank" NavigateUrl="~/Help/ValidationMode.aspx"
                        Visible="False">Help</asp:HyperLink></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label10" runat="server">Bakovervalideringsmodus</asp:Label></td>
                <td>
                    <asp:Label ID="lblBackwardValidationMode" runat="server"></asp:Label></td>
                <td>
                    <asp:HyperLink ID="Hyperlink8" runat="server" Target="_blank" NavigateUrl="~/Help/ValidationMode.aspx"
                        Visible="False">Help</asp:HyperLink></td>
            </tr>--%>
            <tr>
                <td valign="top">
                    <asp:Label ID="Label3" runat="server">Kommentar</asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblComment" runat="server"></asp:Label>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <asp:Label ID="Label14" runat="server">Egenskaper</asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblPropertyBag" runat="server"></asp:Label>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <asp:Label ID="Label15" runat="server">Språk</asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblCultures" runat="server"></asp:Label>
                </td>
                <td>
                </td>
            </tr>            
            <tr>
                <td>
                    <asp:Label ID="Label11" runat="server">Fra dato</asp:Label></td>
                <td>
                    <asp:Label ID="lblFromDate" runat="server"></asp:Label></td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label13" runat="server">Til dato</asp:Label></td>
                <td>
                    <asp:Label ID="lblToDate" runat="server"></asp:Label></td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="3" align="right">
                    <asp:Button ID="btnEdit" runat="server" Text="Rediger" OnClick="btnEdit_Click"></asp:Button>
                </td>
            </tr>
        </table>
        <p>&nbsp;</p>
        <h2>Prosesser:</h2>
        <asp:DataGrid ID="dgProcesses" runat="server" Width="100%" AlternatingItemStyle-CssClass="AlternatingItemStyle"
            ItemStyle-CssClass="ItemStyle" HeaderStyle-CssClass="HeaderStyle" AutoGenerateColumns="False">
            <AlternatingItemStyle CssClass="AlternatingItemStyle"></AlternatingItemStyle>
            <ItemStyle CssClass="ItemStyle"></ItemStyle>
            <HeaderStyle CssClass="HeaderStyle"></HeaderStyle>
            <Columns>
                <asp:BoundColumn Visible="False" DataField="ProcessOnSubscriptionID"></asp:BoundColumn>
                <asp:BoundColumn Visible="False" DataField="ProcessID"></asp:BoundColumn>
                <asp:BoundColumn HeaderText="Navn"></asp:BoundColumn>
                <asp:HyperLinkColumn HeaderText="Detaljer" Text="Detaljer" DataNavigateUrlFormatString="../Process/Details.aspx?ProcessID={0}" DataNavigateUrlField="ProcessID"/>
                <asp:BoundColumn DataField="Sequence" HeaderText="Rekkefølge"></asp:BoundColumn>
                <asp:BoundColumn DataField="IsAsync" HeaderText="IsAsync" Visible="False"></asp:BoundColumn>
                <asp:BoundColumn HeaderText="Mode" Visible="False"></asp:BoundColumn>
                <asp:ButtonColumn Text="Flytt opp" CommandName="MoveUp"></asp:ButtonColumn>
                <asp:ButtonColumn Text="Flytt ned" CommandName="MoveDown"></asp:ButtonColumn>
                <asp:ButtonColumn Text="Rediger" CommandName="Edit" Visible="False"></asp:ButtonColumn>
                <asp:ButtonColumn Text="Fjern" CommandName="Delete"></asp:ButtonColumn>
            </Columns>
        </asp:DataGrid>
	    <asp:Label ID="lblNoProcessesMessage" runat="server">Ingen prosesser.</asp:Label>
        <p>
            <asp:Button ID="btnAttachProcess" runat="server" Text="Legg til prosess" OnClick="btnAttachProcess_Click"></asp:Button>
        </p>
	    <p>&nbsp;</p>
	    <h2>Søknadsrunder:</h2>
		<asp:DataGrid ID="dgPeriodOnSubscription" runat="server" Width="100%" AlternatingItemStyle-CssClass="AlternatingItemStyle"
					  ItemStyle-CssClass="ItemStyle" HeaderStyle-CssClass="HeaderStyle" AutoGenerateColumns="False">
			<AlternatingItemStyle CssClass="AlternatingItemStyle"></AlternatingItemStyle>
			<ItemStyle CssClass="ItemStyle"></ItemStyle>
			<HeaderStyle CssClass="HeaderStyle"></HeaderStyle>
			<Columns>
				<asp:BoundColumn Visible="False" DataField="Id"></asp:BoundColumn>
				<asp:BoundColumn Visible="False" DataField="SubscriptionId"></asp:BoundColumn>
				<asp:BoundColumn HeaderText="Navn" DataField="Name" ItemStyle-Width="10%"></asp:BoundColumn>
				<asp:BoundColumn HeaderText="Startdato (f.o.m.)" DataField="StartDate" DataFormatString="{0:d}" ItemStyle-Width="15%"></asp:BoundColumn>
				<asp:BoundColumn HeaderText="Stoppdato (t.o.m.)" DataField="StopDate" DataFormatString="{0:d}" ItemStyle-Width="15%"></asp:BoundColumn>
				<asp:BoundColumn HeaderText="Melding før start" DataField="BeforeStartMessage" ItemStyle-Width="20%"></asp:BoundColumn>
				<asp:BoundColumn HeaderText="Melding etter stopp" DataField="AfterStopMessage" ItemStyle-Width="20%"></asp:BoundColumn>
				<asp:BoundColumn HeaderText="Påminnelse antall dager før søknadsfrist" DataField="ReminderDaysBeforeStopDate" ItemStyle-Width="20%"></asp:BoundColumn>
				<asp:ButtonColumn Text="Rediger" CommandName="Edit"></asp:ButtonColumn>
				<asp:ButtonColumn Text="Slett" CommandName="Delete"></asp:ButtonColumn>
			</Columns>
		</asp:DataGrid>
		<asp:Label ID="lblNoPeriodOnSubscription" runat="server">Ingen søknadsrunder.</asp:Label>
		<p>
			<asp:Button ID="btnNewPeriodOnSubscription" runat="server" Text="Legg til søknadsrunde" OnClick="btnNewPeriodOnSubscription_OnClick"></asp:Button>
		</p>

	    <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
</asp:Content>

