<%@ Page language="c#" Codebehind="Edit.aspx.cs" AutoEventWireup="True" Inherits="eDocument.Server.Administrator.Subscription.Edit"  MasterPageFile="~/Site.Master" %>
<%@ Register Src="../CultureChooser.ascx" TagName="CultureChooser" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
			<h1>Rediger abonnement</h1>
			<p>
				Fra denne siden kan du redigere et abonnement. Gjør de ønskede endringer og 
				klikk "Oppdater" knappen når du er ferdig.
			</p>
			<table cellspacing="2" cellpadding="5">
				<tr>
					<td style="HEIGHT: 32px">
						<asp:Label id="Label4" runat="server">Organisasjon *</asp:Label>
					</td>
					<td style="HEIGHT: 32px">
						<asp:DropDownList id="ddlConsumer" runat="server" Width="400px" DataTextField="Name" DataValueField="ConsumerID"></asp:DropDownList>
					</td>
					<td style="HEIGHT: 32px">
						<asp:hyperlink id="Hyperlink2" runat="server" Target="_blank" Visible="False">Help</asp:hyperlink>
					</td>
					<td style="HEIGHT: 32px">
						<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="Du må velge en organisasjon."
							ControlToValidate="ddlConsumer" InitialValue="---"></asp:RequiredFieldValidator>
					</td>
				</tr>
				<tr>
					<td>
						<asp:Label id="Label2" runat="server">Skjema *</asp:Label>
					</td>
					<td>
						<asp:DropDownList id="ddlEDocumentTemplate" runat="server" Width="400px" DataTextField="ShortNameWithName" DataValueField="eDocumentTemplateID"></asp:DropDownList>
					</td>
					<td>
						<asp:hyperlink id="Hyperlink1" runat="server" Target="_blank" Visible="False">Help</asp:hyperlink>
					</td>
					<td>
						<asp:RequiredFieldValidator id="Requiredfieldvalidator3" runat="server" ErrorMessage="Du må velge et skjema."
							ControlToValidate="ddlEDocumentTemplate" InitialValue="---"></asp:RequiredFieldValidator>
					</td>
				</tr>
				<tr>
					<td>
						<asp:Label id="Label8" runat="server">Aktiv</asp:Label>
					</td>
					<td>
						<asp:CheckBox id="checkActive" runat="server"></asp:CheckBox>
					</td>
					<td>
						Angir om skjemaet er tilgjengelig for publikum.
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<td>
						<asp:Label id="Label12" runat="server">System</asp:Label>
					</td>
					<td>
						<asp:DropDownList id="ddlDestinationSystem" runat="server" Width="400px" DataTextField="Name"
							DataValueField="DestinationSystemID"></asp:DropDownList>
					</td>
					<td>
					</td>
					<td>
					</td>
				</tr>
	            <tr>
					<td>
						Sikkerhetsnivå
					</td>
					<td>
                        <asp:DropDownList runat="server" ID="ddlSecurityLevel">
                            <asp:ListItem Selected="True" Value="---">---</asp:ListItem>
                            <asp:ListItem Value="1"></asp:ListItem>
                            <asp:ListItem Value="2"></asp:ListItem>
                            <asp:ListItem Value="3"></asp:ListItem>
                            <asp:ListItem Value="4"></asp:ListItem>
                        </asp:DropDownList>
					</td>
					<td>
					</td>
					<td>
					</td>
				</tr>
<%--				<tr>
					<td>
						Signering
					</td>
					<td>
						<asp:CheckBox id="cbDifiSign" runat="server"></asp:CheckBox>
					</td>
					<td>						
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<td>
						<asp:Label id="Label14" runat="server">Driftsmodell</asp:Label>
					</td>
					<td>
						<asp:DropDownList id="ddlOperationModel" runat="server" Width="400px">
							<asp:ListItem Value="">Undefined</asp:ListItem>
							<asp:ListItem Value="0">A - Full ASP hosting</asp:ListItem>
							<asp:ListItem Value="1">A + B - Full ASP hosting og lokal viewer</asp:ListItem>
							<asp:ListItem Value="2">B - Lokal viewer</asp:ListItem>
							<asp:ListItem Value="3">C - Full lokal installasjon</asp:ListItem>
						</asp:DropDownList>
					</td>
					<td>
						<asp:hyperlink id="Hyperlink10" runat="server" Target="_blank" Visible="False">Help</asp:hyperlink>
					</td>
					<td>
					</td>
				</tr>
            <tr>
                <td>Krypteringsmodus</td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlEncryptionMode" Width="400px">
                        <asp:ListItem Value="-1">---</asp:ListItem>
                        <asp:ListItem Value="0">Ingen kryptering</asp:ListItem>
                        <asp:ListItem Value="1">Vedlegg</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td/>
                <td/>
            </tr>--%>
				<tr>
					<td>
						<asp:Label id="lblDokumentbankenBlankett" runat="server">XFT</asp:Label>
					</td>
					<td>
						<asp:DropDownList id="ddlDokumentbankenBlankett" runat="server" DataTextField="Name"
							DataValueField="DokumentbankenBlankettID"></asp:DropDownList>
					</td>
					<td>
						<asp:hyperlink id="HyperLink7" runat="server" Target="_blank" Visible="False">Help</asp:hyperlink>
					</td>
					<td>
					</td>
				</tr>
<%--				<tr>
					<td>
						<asp:Label id="Label5" runat="server">Prosessmodus</asp:Label>
					</td>
					<td>
						<asp:DropDownList id="ddlProcessMode" runat="server" Width="400px">
							<asp:ListItem Value="0">Isteden for</asp:ListItem>
							<asp:ListItem Value="1">Før</asp:ListItem>
							<asp:ListItem Value="2">Etter</asp:ListItem>
						</asp:DropDownList>
					</td>
					<td>
						<asp:hyperlink id="Hyperlink3" runat="server" Target="_blank" Visible="False">Help</asp:hyperlink>
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<td>
						<asp:Label id="Label8" runat="server">Fremovervalideringsmodus</asp:Label>
					</td>
					<td>
						<asp:DropDownList id="ddlForwardValidationMode" runat="server" Width="400px">
							<asp:ListItem Value="-1">Undefined</asp:ListItem>
							<asp:ListItem Value="1" Selected="True">Elmer</asp:ListItem>
							<asp:ListItem Value="3">Mandatory</asp:ListItem>
							<asp:ListItem Value="0">Strict</asp:ListItem>
							<asp:ListItem Value="2">None</asp:ListItem>
						</asp:DropDownList>
					</td>
					<td>
						<asp:hyperlink id="Hyperlink5" runat="server" NavigateUrl="~/Help/ValidationMode.aspx" Target="_blank"
							Visible="False">Help</asp:hyperlink>
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<td>
						<asp:Label id="Label9" runat="server">Bakovervalideringsmodus</asp:Label>
					</td>
					<td>
						<asp:DropDownList id="ddlBackwardValidationMode" runat="server" Width="400px">
							<asp:ListItem Value="-1">Undefined</asp:ListItem>
							<asp:ListItem Value="1" Selected="True">Elmer</asp:ListItem>
							<asp:ListItem Value="3">Mandatory</asp:ListItem>
							<asp:ListItem Value="0">Strict</asp:ListItem>
							<asp:ListItem Value="2">None</asp:ListItem>
						</asp:DropDownList>
					</td>
					<td>
						<asp:hyperlink id="Hyperlink8" runat="server" NavigateUrl="~/Help/ValidationMode.aspx" Target="_blank"
							Visible="False">Help</asp:hyperlink>
					</td>
					<td>
					</td>
				</tr>--%>
				<tr>
					<td valign="top">
						<asp:Label id="Label3" runat="server">Kommentar</asp:Label>
					</td>
					<td>
						<asp:TextBox id="txtComment" runat="server" TextMode="MultiLine" Height="50px" Width="500px"></asp:TextBox>
					</td>
					<td>
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<td valign="top">
						<asp:Label id="Label13" runat="server">Egenskaper</asp:Label>
					</td>
					<td>
						<asp:TextBox id="txtPropertyBag" runat="server" TextMode="MultiLine" Height="70px" Width="500px"></asp:TextBox>
					</td>
					<td>
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<td vAlign="top"><asp:label id="Label29" runat="server">Språk</asp:label></td>
					<td>
						&nbsp; &nbsp;
						<uc1:CultureChooser ID="CultureChooser1" runat="server" />
					</td>
					<td></td>
					<td></td>
				</tr>											
				<tr>
					<td valign="top">
						<asp:Label id="Label1" runat="server">Fra dato</asp:Label>
					</td>
					<td>
						<asp:TextBox ID="txtFromDate" runat="server"></asp:TextBox>
					</td>
					<td>
					</td>
					<td>
						<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtFromDate"
							ErrorMessage="Feil datoformat, riktig format er dd.mm.åååå" Operator="DataTypeCheck" Type="Date"></asp:CompareValidator>
					</td>
				</tr>
				<tr>
					<td valign="top">
						<asp:Label id="Label11" runat="server">Til dato</asp:Label>
					</td>
					<td>
						<asp:TextBox ID="txtToDate" runat="server"></asp:TextBox>
					</td>
					<td></td>
					<td>
						<asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="txtToDate"
							ErrorMessage="Feil datoformat, riktig format er dd.mm.åååå" Operator="DataTypeCheck" Type="Date"></asp:CompareValidator>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="right">
						<asp:Button id="btnUpdate" runat="server" Text="Oppdater" onclick="btnUpdate_Click"></asp:Button>
					</td>
					<td>
					</td>
					<td>
					</td>
				</tr>
			</table>
  
			<asp:Label id="lblMessage" runat="server" ForeColor="Red"></asp:Label>
</asp:Content>