<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="CSEasyWMDefinitionExport.aspx.vb" Inherits="CSEasyWM.CSEasyWMDefinitionExport" %>
<%@ register tagprefix="ex" namespace="Exact.Web.UI.Controls" assembly="Exact.Web.UI.Controls" %>

<html>
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="Exact.css" />
    <script language="javascript" type="text/javascript" src="jquery.js"></script>
    <script language="javascript" type="text/javascript">
        function ExportClicked() {
            if (!lvcCheckCheckedListDefinitions_cCheck()) {
                SysAlert(421174, 'No definitions selected to export.');
                return;
            }
            SysSet('DoExport', 1);
            SysSubmit(1);
        }
    </script>
</head>
<body>
<ep:form id="Baco" runat="server">

<ex:InputField runat="server" ID="DoExport" CreateClientControl="True" Hidden="True" ValidationAs="Int" ValidationDefault="0" />
<ex:InputField runat="server" ID="ExportID" CreateClientControl="True" Hidden="True" ValidationAs="Guid" />

<ex:CardControl runat="server" ID="Card" Action="Show">
    <ex:header id="hdr" caption="WordMerge Definitions" captionid="421004" CaptionSuffix=":Export" CaptionSuffixID="8577" runat="server" showsitemappath="false">
        <ex:headerbutton id="hbFavorite" buttonstyle="Favorite" />
    </ex:header>

    <ex:headerproperties runat="server" id="hdrProps" HeaderPropertiesStyle="Custom" />

    <ex:buttonbar runat="server" id="Buttons">
        <ex:button runat="server" id="btnExport" buttonstyle="Custom" Caption="Export" CaptionID="8577" onClick="ExportClicked();" />
        <ex:button runat="server" id="btnClose" buttonstyle="Close" />
    </ex:buttonbar>

    <ex:bcerrormessages runat="server" id="errmsg" Mode="Notification" />

    <ex:cardrow runat="server" id="crFilter">
        <ex:cardcolumn runat="server" id="ccFilter">
		    <ex:cardsection runat="server" id="csFilter" caption="Filter" captionid="1378">
				<ex:cardfield runat="server" id="cfFilter" caption="Status" captionid="4332">
					<ex:checkboxlist runat="server" id="Status" validationas="domain" validationdomain="Char" autopostback="True">
						<ex:listitem caption="Development" captionid="15760" value="D" />
						<ex:listitem caption="Test mode" captionid="421058" value="T" />
						<ex:listitem caption="Released" captionid="23341" value="R" />
						<ex:listitem caption="Archived" captionid="305" value="A" />
					</ex:checkboxlist>
				</ex:cardfield>
                <ex:cardfield runat="server" id="cfGroup" caption="Definition Group" captionid="421049">
					<ex:checkboxlist runat="server" id="Group" autopostback="True">
                    </ex:checkboxlist>
				</ex:cardfield>
            </ex:cardsection>
        </ex:cardcolumn>
    </ex:cardrow>

    <ex:cardrow runat="server" id="crDefinitions" >
	    <ex:cardcolumn runat="server" id="ccDefinitions" Caption="WordMerge Definitions" CaptionID="421004">
			<ex:cardlistview runat="server" id="csDefinitions" showheader="True" customizecolumns="False" customizerows="False">
				<ex:listview runat="server" id="ListDefinitions" Caption="WordMerge Definitions" CaptionID="421004" showbutton="False" showpagesize="false" ongetdata="ListDefinitionsOnGetData" onquery="ListDefinitionsOnQuery" ruler="false">
                    <Columns>
                        <ex:listviewcheckboxcolumn runat="server" id="cCheck" type="selectall" selectallprefix="chk" align="Center" width="5%" />
                        <ex:listviewcolumn captionid="10189" caption="Title" width="65%" />
                        <ex:listviewcolumn captionid="0" caption="ID" width="5%" />
                        <ex:listviewcolumn captionid="4332" caption="Status" width="25%" />
                    </Columns>
				</ex:listview>
			</ex:cardlistview>
        </ex:cardcolumn>
    </ex:cardrow>

</ex:CardControl>
</ep:form>
</body>
</html>
