<%@ Page Language="C#" MasterPageFile="~/Dialog/DialogMaster.Master" AutoEventWireup="true" CodeBehind="SearchFormFieldEdit.aspx.cs" Inherits="OAWeb.Modules.SearchFormFieldEdit" Title="无标题页" Theme="Default" EnableViewState="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <div style="width: 600px; height: 300px; padding: 10px;">
    <table class="table_form">
        <tr>
            <td colspan="2" class="tb-caption">
                编辑视图字段属性
            </td>
        </tr>
        <tr>
            <td class="tb-label">
                <font class="c-red">*</font> 字段类型：
            </td>
            <td class="tb-editor">
                <asp:DropDownList ID="ddlFieldType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlFieldType_SelectedIndexChanged">
                    <asp:ListItem Value="TextBox">文本框</asp:ListItem>
                    <asp:ListItem Value="ListBox">列表框</asp:ListItem>
                    <asp:ListItem Value="DropDownList">下拉框</asp:ListItem>
                    <asp:ListItem Value="CheckBox">复选框</asp:ListItem>
                    <asp:ListItem Value="CheckBoxList">复选列表</asp:ListItem>
                    <asp:ListItem Value="RadioList">单选列表</asp:ListItem>
                    <asp:ListItem Value="ChangeButton">选择输入</asp:ListItem>
                    <asp:ListItem Value="DateTime">时间选择</asp:ListItem>
                    <asp:ListItem Value="ProvinceCity">省市地区</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="tb-label">
                <font class="c-red">*</font> 字段：
            </td>
            <td class="tb-editor">
                <asp:TextBox ID="txtFieldName" runat="server"></asp:TextBox>
                <asp:DropDownList ID="ddlFieldName" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="tb-label">
                <font class="c-red">*</font> 显示名称：
            </td>
            <td class="tb-editor">
                <asp:TextBox ID="txtDataLabel" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr id="trRelationshipTable" runat="server" visible="false">
            <td class="tb-label">
                关联表：
            </td>
            <td class="tb-editor">
                <asp:DropDownList ID="ddlRelationshipTable" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlRelationshipTable_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>
        <tr id="trText_field" runat="server" visible="false">
            <td class="tb-label">
                Text字段：
            </td>
            <td class="tb-editor">
                <asp:DropDownList ID="ddlDataTextField" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr id="trValue_field" runat="server" visible="false">
            <td class="tb-label">
                Value字段：
            </td>
            <td class="tb-editor">
                <asp:DropDownList ID="ddlDataValueField" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr id="trLinkageControl" runat="server" visible="false">
            <td class="tb-label">
                联动目标控件：
            </td>
            <td class="tb-editor">
                <asp:TextBox ID="txtLinkageControlID" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr id="trLinkageUrl" runat="server" visible="false">
            <td class="tb-label">
                联动URL：
            </td>
            <td class="tb-editor">
                <asp:TextBox ID="txtLinkageUrl" runat="server" Width="280px"></asp:TextBox>
                <br />
                参数用{0}表示。例：/ajax/city.aspx?provinceid={0}
            </td>
        </tr>
        <tr id="trDialogUrl" runat="server" visible="false">
            <td class="tb-label">
                弹出框URL：
            </td>
            <td class="tb-editor">
                <asp:TextBox ID="txtDialogUrl" runat="server" Width="280px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="tb-label">
                子表查询：
            </td>
            <td class="tb-editor">
                <asp:CheckBox ID="chkIsChildQuery" runat="server" Text="子表反查询" />
                &nbsp; 子表：<asp:TextBox ID="txtChildTable" runat="server" Width="60px"></asp:TextBox>
                &nbsp;父表主键：<asp:TextBox ID="txtPrimaryKey" runat="server" Width="60px"></asp:TextBox>
                子表外键：<asp:TextBox ID="txtChildForeignKey" runat="server" Width="60px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="tb-editor algin-center" colspan="2">
                <asp:Button ID="btnSave" runat="server" Text="保 存" CssClass="btn_77px" OnClick="btnSave_Click" />
                <asp:Button ID="Button1" runat="server" Text="返 回" CssClass="btn_77px" OnClientClick="art.dialog.close();" />
            </td>
        </tr>
    </table>
    </div>
</asp:Content>
