<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="CSEasyWMSynergyIntegrationDef.aspx.vb" Inherits="CSEasyWM.CSEasyWMSynergyIntegrationDef" %>
<%@ register tagprefix="ex" namespace="Exact.Web.UI.Controls" assembly="Exact.Web.UI.Controls" %>
<html>
<head>
    <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">
        $(document).ready(function () {
            $('#ColumnID').change(function () {
                var columnid = $('#ColumnID').val();
                SysSet('DefColumnName', columnid);
            });
        });
    </script>
</head>
<body>
<ep:form id="frm" runat="server">

<ex:CardControl runat="server" ID="Card" Action="Show">
    <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="btnDelete" ButtonStyle="Delete" DataSource="bc" />
        <ex:Button runat="server" ID="btnClose" ButtonStyle="Close" />
    </ex:ButtonBar>

    <ex:BCDataSource runat="server" ID="bc" Component="CSEasyWMIntegrationPageDefs" AddNewProps="IntegrationID" />
    <ex:bcerrormessages runat="server" id="errMsg" />

    <ex:cardrow runat="server" id="crDef">
	    <ex:cardcolumn runat="server" id="ccDef">
		    <ex:cardsection runat="server" id="csGeneral" caption="Integration" captionid="421106">
			    <ex:cardfield runat="server" id="cfIntegrationID" caption="Integration" captionid="421106">
				    <ex:Literal runat="server" ID="IntegrationIDTitle" />
                    <ex:InputField runat="server" Hidden="True" ID="IntegrationID" ValidationAs="Guid" CreateClientControl="True" datasource="bc" />
			    </ex:cardfield>
                <ex:cardfield runat="server" id="cfDefID" caption="WordMerge Definition" captionid="421008">
				    <ex:combobox runat="server" id="DefID" AutoPostBack="True" datasource="bc" AllowEmpty="True" />
			    </ex:cardfield>
                <ex:cardfield runat="server" id="cfColumnID" caption="Definition: Column" captionid="421026">
                    <ex:combobox runat="server" id="ColumnID" />
			    </ex:cardfield>
                <ex:cardfield runat="server" id="cfDefColumnName" caption="Column name" captionid="22703">
                    <ex:inputfield runat="server" id="DefColumnName" inputSize="60" datasource="bc" />
			    </ex:cardfield>
                <ex:cardfield runat="server" id="cfDefColumnType" caption="Type" captionid="3801">
				    <ex:combobox runat="server" id="DefColumnType" AllowEmpty="False" ValidationDefault="N" datasource="bc" />
			    </ex:cardfield>
		    </ex:cardsection>

	    </ex:cardcolumn>
    </ex:cardrow>


</ex:CardControl>

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