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

<html>
<head>
	<meta name="save" content="history" />
	<link rel="stylesheet" type="text/css" href="Exact.css" />
    <style type="text/css">
        #Criteria, #Script
        {
            font-family: Consolas, Courier New, Courier, monospace !important;
        }
    </style>
    <script type="text/javascript">
        function AddProperty(comboID, textareaID) {
            var PropName = $('#' + comboID).val();
            if (PropName != '') {
                var c = document.getElementById(textareaID);
                if (c != null) {
                    var s = '@' + PropName + ' ';
                    SysInsertAtCaret(c, s);
                    c.focus();
                }
                $('#' + comboID).val('');
            }
        }


        var textElementName;
        function ShowInsert(elementName) {
            textElementName = elementName;

            SysShowModalPopup('CSEasyVerifyInsertProp.aspx?PageID=' + SysGet('PageID') + '&Action=' + SysGet('Action'), "", "800px", "600px", function () { ModalWindowClosed(); }, null);
        }
        function ModalWindowClosed() {
            var res = SysDialog.returnValue;
            if (res == null || res.length == 0) return;

            var selector = '#' + textElementName;
            $(selector).val($(selector).val() + res[0]);
        }
    </script>
</head>
<body>

	<ep:form id="frm" runat="server">
        <ex:inputfield runat="server" ID="MakeCopy" Hidden="True" ValidationAs="Int" ValidationDefault="0" />

        <ex:CardControl runat="server" ID="Card" Action="Show" Customizable="false">

            <ex:Header runat="server" ID="hdr">
            </ex:Header>

            <ex:headerproperties runat="server" id="hdrProps" headerpropertiesstyle="CreatedModified" datasource="bc" 
                datafieldcreated="Created" datafieldcreator="Creator" datafieldcreatorname="CreatorFullName"
	            datafieldmodified="Modified" datafieldmodifier="Modifier" datafieldmodifiername="ModifierFullName" />

            <ex:ButtonBar runat="server" ID="Buttons">
                <ex:Button runat="server" ID="btnSave" ButtonStyle="Save" DataSource="bc" />
                <ex:Button runat="server" ID="btnSaveNew" ButtonStyle="SaveNew" DataSource="bc" />
                <ex:Button runat="server" ID="btnDelete" ButtonStyle="Delete" DataSource="bc" />
                <ex:Button runat="server" ID="btnCopy" ButtonStyle="Custom" Caption="Copy" CaptionID="5255" />
                <ex:Button runat="server" ID="btnClose" ButtonStyle="Close" />
            </ex:ButtonBar>

            <ex:bcerrormessages runat="server" id="errMsg" />

            <ex:BCDataSource runat="server" ID="bc" Component="CSEasyVerifyVerifications" AddNewProps="PageID,CategoryID,Action" />
                
              <ex:cardrow runat="server" id="cr1">
	            <ex:cardcolumn runat="server" id="cr1cc1">
                    <ex:cardsection runat="server" id="csGeneral" caption="General" captionid="8606">
                        <ex:cardfield runat="server" id="cfCategoryID" caption="Category" captionid="1205">
				            <ex:combobox runat="server" id="CategoryID" datasource="bc" ListValues="select ID, Description from CSEasyVerifyCategories order by Description" />
			            </ex:cardfield>
			            <ex:cardfield runat="server" id="cfDescription" caption="Description" captionid="4243">
				            <ex:inputfield runat="server" id="Description" datasource="bc" InputSize="100" />
			            </ex:cardfield>
                        <ex:cardfield runat="server" id="cfRemarks" caption="Remarks" captionid="228">
                            <ex:memofield runat="server" id="Remarks" datasource="bc" width="100%" height="4" htmlencoded="False" />
			            </ex:cardfield>
			            <ex:cardfield runat="server" id="cfPage" caption="Page" captionid="8435">
				            <ex:combobox runat="server" id="PageID" datasource="bc" AutoPostBack="True" />
			            </ex:cardfield>
                        <ex:cardfield runat="server" id="cfConnection" caption="Connection" captionid="27055">
                            <ex:combobox id="Connection" runat="server" datasource="bc" />
			            </ex:cardfield>
			            <ex:cardfield runat="server" id="cfCriteria" caption="Criteria" captionid="9822">
                            <ex:memofield runat="server" id="Criteria" datasource="bc" width="100%" height="10" htmlencoded="False" />
                            <ex:combobox runat="server" id="cmbPropsCriteria" AllowEmpty="True" /><ex:button runat="server" id="btnPropsCriteria" buttonstyle="Custom" Caption="Add" CaptionID="8343" OnClick="AddProperty('cmbPropsCriteria', 'Criteria');" />
			            </ex:cardfield>
                        <ex:cardfield runat="server" id="cfAction" caption="Action" captionid="10221">
                            <ex:combobox runat="server" id="Action" datasource="bc" Autopostback="True" />
                        </ex:cardfield>
                    </ex:cardsection>
                </ex:cardcolumn>
            </ex:cardrow>
            <ex:cardrow runat="server" id="cr2">
                <ex:cardcolumn runat="server" id="cr2cc1">
                    <ex:cardsection runat="server" id="csOptions1" caption="Options" captionid="231">
                        <ex:cardfield runat="server" id="cfActive" caption="Active" captionid="9086">
		                    <ex:checkbox runat="server" id="Active" datasource="bc" />
	                    </ex:cardfield>
                        <ex:cardfield runat="server" id="cfMessageTiming" caption="Display options" captionid="34348">
                            <ex:combobox runat="server" id="MessageTiming" datasource="bc" Autopostback="True" />
			            </ex:cardfield>
                        <ex:cardfield runat="server" id="cfMessageFormat" caption="Format" captionid="2411">
                            <ex:combobox runat="server" id="MessageFormat" datasource="bc" Autopostback="False" />
			            </ex:cardfield>
                        <ex:cardfield runat="server" id="cfMessageType" caption="Type" captionid="3801">
                            <ex:combobox runat="server" id="MessageType" datasource="bc" Autopostback="False" />
			            </ex:cardfield>
                    </ex:cardsection>
                </ex:cardcolumn>
            </ex:cardrow>
            <ex:cardrow runat="server" id="cr3">
                <ex:cardcolumn runat="server" id="cr3cc1">
                    <ex:cardsection runat="server" id="csValidation" caption="Validation" captionid="442">
			            <ex:cardfield runat="server" id="cfMessage" caption="Message" captionid="1778">
                            <ex:memofield runat="server" id="Message" datasource="bc" width="100%" height="10" htmlencoded="False" />
                            <ex:combobox runat="server" id="cmbPropsMessage" AllowEmpty="True" /><ex:button runat="server" id="btnPropsMessage" buttonstyle="Custom" Caption="Add" CaptionID="8343" OnClick="AddProperty('cmbPropsMessage', 'Message');" />
			            </ex:cardfield>
			            <ex:cardfield runat="server" id="cfActionDetails">
                            <ex:combobox runat="server" id="ActionDetails" Autopostback="True" />
                            <ex:memofield runat="server" id="ActionData" datasource="bc" visible="False" />
			            </ex:cardfield>
                        <ex:cardfield runat="server" id="cfSortOrder" caption="Priority" captionid="3217">
                            <ex:inputfield runat="server" id="SortOrder" datasource="bc" />
			            </ex:cardfield>
                        <ex:cardfield runat="server" id="cfExecuteTable" caption="Tabel uitvoeren" captionid="0">
                            <ex:combobox runat="server" id="ExecuteTable" datasource="bc" />
                        </ex:cardfield>
                    </ex:cardsection>
                    <ex:cardsection runat="server" id="csParameters" caption="Parameters" captionid="26031" Visible="False">
                    </ex:cardsection>
	            </ex:cardcolumn>
            </ex:cardrow>
        </ex:CardControl>
    </ep:form>
</body>
</html>
