<%@ page language="C#" autoeventwireup="true" inherits="System_Settings_ExportData_FieldNameForORCL, App_Web_t5ktsc5o" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Export Data - Custom Fields</title>
    <link rel="stylesheet" href="../../css/stylesheet.css" />

    <script type="text/javascript" language="javascript">
    function DenySpace(e)
    {
        if (!e) e = window.event;
        var c = (window.event) ? e.keyCode : e.which;
        if (c == 32) 
        {
          return false;
        }
        else
        {
           return true;
        }
     }
    </script>

</head>
<body style="background-color: #d3dbe7">
    <form id="aspnetForm" runat="server">
        <table border="0" cellspacing="0" cellpadding="0" align="center" width="400">
            <tr>
                <td valign="top">
                    <img src="../../Images/corner1<%=Session["Direction"] %>.gif" width="15" height="15" /></td>
                <td valign="top" background="../../Images/sideline.gif" bgcolor="#EAEAEA" style="width: 247px">
                    <img src="../../Images/spacer.gif" width="1" height="1" /></td>
                <td valign="top" style="width: 16px">
                    <img src="../../Images/corner2<%=Session["Direction"] %>.gif" width="15" height="15" /></td>
            </tr>
            <tr>
                <td background="../../Images/line<%=Session["Direction"] %>.gif">
                    &nbsp;</td>
                <td valign="top" bgcolor="#EAEAEA">
                    <table border="0" align="center" cellpadding="0" cellspacing="1" width="400">
                        <tr>
                            <td valign="top" colspan="3" class="ModuleTitle">
                                <asp:Label ID="lbl_Header" runat="server" Text="Export Data - Custom Fields"></asp:Label></td>
                        </tr>
                        <tr>
                            <td class="td" valign="top">
                                <asp:Label ID="lblCompany" runat="server"></asp:Label>
                            </td>
                            <td class="td" valign="top" colspan="3">
                                <asp:DropDownList ID="ddlCompany" runat="server" AppendDataBoundItems="true" CssClass="dlist"
                                    AutoPostBack="true" OnSelectedIndexChanged="ddlCompany_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="td">
                                <asp:Label ID="lblDateFormat" runat="server" Text="Date Format"></asp:Label>
                            </td>
                            <td class="td" colspan="2">
                                <asp:DropDownList ID="ddlDateFormat" runat="server">
                                    <asp:ListItem Text="dd/MM/yyyy" Value="dd/MM/yyyy"></asp:ListItem>
                                    <asp:ListItem Text="DD-MMM-YYYY" Value="DD-MMM-YYYY"></asp:ListItem>
                                    <asp:ListItem Text="dd-MMM-yyyy" Value="dd-MMM-yyyy"></asp:ListItem>
                                    <asp:ListItem Text="MM-dd-yyyy" Value="MM-dd-yyyy"></asp:ListItem>
                                    <asp:ListItem Text="MM/dd/yyyy" Value="MM/dd/yyyy"></asp:ListItem>
                                    <asp:ListItem Text="yyyy-dd-MM" Value="yyyy-dd-MM"></asp:ListItem>
                                    <asp:ListItem Text="yyyy/dd/MM" Value="yyyy/dd/MM"></asp:ListItem>
                                    <asp:ListItem Text="yyyy-MM-dd" Value="yyyy-MM-dd"></asp:ListItem>
                                    <asp:ListItem Text="yyyy/MM/dd" Value="yyyy/MM/dd"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="td">
                                <asp:Label ID="lblTimeFormat" runat="server" Text="Time Format"></asp:Label>
                            </td>
                            <td class="td" colspan="2">
                                <asp:DropDownList ID="ddlTimeFormat" runat="server">
                                    <asp:ListItem Text="hh:mm" Value="hh:mm"></asp:ListItem>
                                    <asp:ListItem Text="hh:mm tt" Value="hh:mm tt"></asp:ListItem>
                                    <asp:ListItem Text="hh:mm:ss" Value="hh:mm:ss"></asp:ListItem>
                                    <asp:ListItem Text="hh:mm:ss tt" Value="hh:mm:ss tt"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="td">
                                <asp:Label ID="lblDateTimeFormat" runat="server" Text="Date & Time Format"></asp:Label>
                            </td>
                            <td class="td" colspan="2">
                                <asp:DropDownList ID="ddlDateTimeFormat" runat="server">
                                    <asp:ListItem Text="dd/MM/yyyy hh:mm" Value="dd/MM/yyyy hh:mm"></asp:ListItem>
                                    <asp:ListItem Text="DD-MMM-YYYY hh:mm" Value="DD-MMM-YYYY hh:mm"></asp:ListItem>
                                    <asp:ListItem Text="dd-MMM-yyyy hh:mm" Value="dd-MMM-yyyy hh:mm"></asp:ListItem>
                                    <asp:ListItem Text="MM-dd-yyyy hh:mm" Value="MM-dd-yyyy hh:mm"></asp:ListItem>
                                    <asp:ListItem Text="MM/dd/yyyy hh:mm" Value="MM/dd/yyyy hh:mm"></asp:ListItem>
                                    <asp:ListItem Text="yyyy-dd-MM hh:mm" Value="yyyy-dd-MM hh:mm"></asp:ListItem>
                                    <asp:ListItem Text="yyyy/dd/MM hh:mm" Value="yyyy/dd/MM hh:mm"></asp:ListItem>
                                    <asp:ListItem Text="yyyy-MM-dd hh:mm" Value="yyyy-MM-dd hh:mm"></asp:ListItem>
                                    <asp:ListItem Text="yyyy/MM/dd hh:mm" Value="yyyy/MM/dd hh:mm"></asp:ListItem>
                                    <asp:ListItem Text="dd/MM/yyyy hh:mm tt" Value="dd/MM/yyyy hh:mm tt"></asp:ListItem>
                                    <asp:ListItem Text="DD-MMM-YYYY hh:mm tt" Value="DD-MMM-YYYY hh:mm tt"></asp:ListItem>
                                    <asp:ListItem Text="dd-MMM-yyyy hh:mm tt" Value="dd-MMM-yyyy hh:mm tt"></asp:ListItem>
                                    <asp:ListItem Text="MM-dd-yyyy hh:mm tt" Value="MM-dd-yyyy hh:mm tt"></asp:ListItem>
                                    <asp:ListItem Text="MM/dd/yyyy hh:mm tt" Value="MM/dd/yyyy hh:mm tt"></asp:ListItem>
                                    <asp:ListItem Text="yyyy-dd-MM hh:mm tt" Value="yyyy-dd-MM hh:mm tt"></asp:ListItem>
                                    <asp:ListItem Text="yyyy/dd/MM hh:mm tt" Value="yyyy/dd/MM hh:mm tt"></asp:ListItem>
                                    <asp:ListItem Text="yyyy-MM-dd hh:mm tt" Value="yyyy-MM-dd hh:mm tt"></asp:ListItem>
                                    <asp:ListItem Text="yyyy/MM/dd hh:mm tt" Value="yyyy/MM/dd hh:mm tt"></asp:ListItem>
                                    <asp:ListItem Text="dd/MM/yyyy hh:mm:ss" Value="dd/MM/yyyy hh:mm:ss"></asp:ListItem>
                                    <asp:ListItem Text="DD-MMM-YYYY hh:mm:ss" Value="DD-MMM-YYYY hh:mm:ss"></asp:ListItem>
                                    <asp:ListItem Text="dd-MMM-yyyy hh:mm:ss" Value="dd-MMM-yyyy hh:mm:ss"></asp:ListItem>
                                    <asp:ListItem Text="MM-dd-yyyy hh:mm:ss" Value="MM-dd-yyyy hh:mm:ss"></asp:ListItem>
                                    <asp:ListItem Text="MM/dd/yyyy hh:mm:ss" Value="MM/dd/yyyy hh:mm:ss"></asp:ListItem>
                                    <asp:ListItem Text="yyyy-dd-MM hh:mm:ss" Value="yyyy-dd-MM hh:mm:ss"></asp:ListItem>
                                    <asp:ListItem Text="yyyy/dd/MM hh:mm:ss" Value="yyyy/dd/MM hh:mm:ss"></asp:ListItem>
                                    <asp:ListItem Text="yyyy-MM-dd hh:mm:ss" Value="yyyy-MM-dd hh:mm:ss"></asp:ListItem>
                                    <asp:ListItem Text="yyyy/MM/dd hh:mm:ss" Value="yyyy/MM/dd hh:mm:ss"></asp:ListItem>
                                    <asp:ListItem Text="dd/MM/yyyy hh:mm:ss tt" Value="dd/MM/yyyy hh:mm:ss tt"></asp:ListItem>
                                    <asp:ListItem Text="DD-MMM-YYYY hh:mm:ss tt" Value="DD-MMM-YYYY hh:mm:ss tt"></asp:ListItem>
                                    <asp:ListItem Text="dd-MMM-yyyy hh:mm:ss tt" Value="dd-MMM-yyyy hh:mm:ss tt"></asp:ListItem>
                                    <asp:ListItem Text="MM-dd-yyyy hh:mm:ss tt" Value="MM-dd-yyyy hh:mm:ss tt"></asp:ListItem>
                                    <asp:ListItem Text="MM/dd/yyyy hh:mm:ss tt" Value="MM/dd/yyyy hh:mm:ss tt"></asp:ListItem>
                                    <asp:ListItem Text="yyyy-dd-MM hh:mm:ss tt" Value="yyyy-dd-MM hh:mm:ss tt"></asp:ListItem>
                                    <asp:ListItem Text="yyyy/dd/MM hh:mm:ss tt" Value="yyyy/dd/MM hh:mm:ss tt"></asp:ListItem>
                                    <asp:ListItem Text="yyyy-MM-dd hh:mm:ss tt" Value="yyyy-MM-dd hh:mm:ss tt"></asp:ListItem>
                                    <asp:ListItem Text="yyyy/MM/dd hh:mm:ss tt" Value="yyyy/MM/dd hh:mm:ss tt"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="td" colspan="3">
                                <b>
                                    <asp:Label ID="lblXMLTag" runat="server" Text="XML Tag"></asp:Label></b>
                            </td>
                        </tr>
                        <tr>
                            <td class="td">
                                <asp:Label ID="lblRootName" runat="server" Text="Root Name"></asp:Label>
                            </td>
                            <td class="td" colspan="2">
                                <asp:TextBox onpaste="return true" ID="txtRootName" MaxLength="50" runat="server"
                                    onkeypress="return DenySpace(event)"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="td">
                                <asp:Label ID="lblFirstChildName" runat="server" Text="First Child Name"></asp:Label>
                            </td>
                            <td class="td" colspan="2">
                                <asp:TextBox onpaste="return true" ID="txtFirstChildName" MaxLength="50" runat="server"
                                    onkeypress="return DenySpace(event)"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="td" colspan="3">
                                <div style="table-layout: fixed; overflow: auto; height: 160px">
                                    <asp:GridView ID="gvFieldData" runat="server" AutoGenerateColumns="false" BorderColor="white"
                                        Width="350px" BorderWidth="1px">
                                        <Columns>
                                            <asp:TemplateField>
                                                <HeaderTemplate>
                                                    <asp:Label Text="Field Name" runat="server" ID="lblFieldName"></asp:Label>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="lblFieldName" runat="server" Text='<%# Eval("FieldName") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField>
                                                <HeaderTemplate>
                                                    <asp:Label Text="User Defined Field Name" runat="server" ID="lblUserDefinedFieldName"></asp:Label>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:TextBox onpaste="return true" ID="txtUserDEfinedField" MaxLength="50" onkeypress="return DenySpace(event)"
                                                        runat="server" Text='<%# Eval("UserDefinedFieldName") %>'></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField Visible="false">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblFieldType" runat="server" Text='<%# Eval("FieldType") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField>
                                                <HeaderTemplate>
                                                    <asp:Label Text="Field Type" runat="server" ID="lblFieldType"></asp:Label>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:DropDownList ID="ddlFieldType" runat="server">
                                                        <asp:ListItem Text="Normal" Value="Normal"></asp:ListItem>
                                                        <asp:ListItem Text="Date" Value="Date"></asp:ListItem>
                                                        <asp:ListItem Text="Time" Value="Time"></asp:ListItem>
                                                        <asp:ListItem Text="Date&Time" Value="Date&Time"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                </div>
                            </td>
                        </tr>
                        <tr align="center">
                            <td colspan="3" class="td">
                                <asp:Button ID="btnSave" Text="Save" CssClass="but" runat="server" OnClick="btnSave_Click" />
                                <asp:Button ID="btnClear" Visible="false" Text="Clear" CssClass="but" runat="server"
                                    OnClick="btnClear_Click" />
                                <asp:Button ID="btnCancel" Text="Cancel" CssClass="but" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
                <td background="../../Images/line1<%=Session["Direction"] %>.gif" style="width: 16px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td valign="bottom">
                    <img src="../../Images/corner3<%=Session["Direction"] %>.gif" width="15" height="16" /></td>
                <td valign="bottom" background="../../Images/sideline1.gif" bgcolor="#EAEAEA" style="width: 247px">
                    <img src="../../Images/spacer.gif" width="1" height="1" /></td>
                <td valign="bottom" style="width: 16px">
                    <img src="../../Images/corner4<%=Session["Direction"] %>.gif" width="15" height="16" /></td>
            </tr>
        </table>
    </form>
</body>
</html>
