<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="entityedit.aspx.cs" Inherits="HySoft.BaseCallCenter.Web.formmanage.entityedit" %>

<!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>实体信息</title>
    <link href="../../scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <link href="../images/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../scripts/jquery/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/jquery.form.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/jquery.validate.min.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/messages_cn.js"></script>
    <script type="text/javascript" src="../../scripts/ui/js/ligerBuild.min.js"></script>
    <script type="text/javascript" src="../../scripts/function.js"></script>
    <script src="../scripts/calendar.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/core/base.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/plugins/ligerDialog.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/plugins/ligerDrag.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/ligerui.all.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/ligerui.min.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/plugins/ligerRadioList.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
        });

        function CloseThis() {
            var dialog = frameElement.dialog;
            dialog.close();
        }
        function validate() {
            var i = 0;
            if (!validate_name()) {
                i++;
            }
            if (!validatedb_name()) {
                i++;
            }
            if (i > 0) {
                return false;
            }
            return true;
        }
        function validate_name() {
            if ($("#txtF_Name").val() == "" || $("#txtF_Name").val() == undefined) {
                document.getElementById("lbtxtF_Name").innerHTML = "* 实体名称不为空！";
                document.getElementById("lbtxtF_Name").style.color = "red";
                return false;
            }
            else {
                document.getElementById("lbtxtF_Name").innerHTML = "*";
                document.getElementById("lbtxtF_Name").style.color = "#414141";
                return true;
            }
        }
        function validatedb_name() {
            if ($("#txtF_DBTableName").val() == "" || $("#txtF_DBTableName").val() == undefined) {
                document.getElementById("lbF_DBTableName").innerHTML = "* 数据表名不为空！";
                document.getElementById("lbF_DBTableName").style.color = "red";
                return false;
            }
            else {
                document.getElementById("lbF_DBTableName").innerHTML = "*";
                document.getElementById("lbF_DBTableName").style.color = "#414141";
                return true;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="contentTab">
        <asp:HiddenField ID="hdradiolist" runat="server" />
        <asp:HiddenField ID="hdF_ParentId" runat="server" />
        <ul class="tab_nav">
            <li class="selected"><a onclick="tabs('#contentTab',0);" href="javascript:;">实体信息</a></li>
        </ul>
        <div class="tab_con" style="display: block;">
            <table class="form_table">
                <col width="100px" />
                <col />
                <tbody>
                    <tr>
                        <th>
                            <span style="color: red">实体名称：</span>
                        </th>
                        <td>
                            <div style="float: left;"><asp:TextBox ID="txtF_Name" runat="server" Width="200px" CssClass="txtInput normal"></asp:TextBox></div><div style="float: left;"><label
                                id="lbtxtF_Name" for="txtF_Name"></label></div>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <span style="color: red">数据表名：</span>
                        </th>
                        <td>
                            <div style="float: left;width: 60px;">
                                <input id="txtF_DBTableNamePre" runat="server" readonly style="width: 56px; text-align: right;
                                    background-color: #dcdcdc; border-right-width: 0px;" name="txtF_DBTableNamePre" class="txtInput normal"
                                    value="T_Entity_" /></div>
                            <div style="float: left;width: 140px;">
                                <input id="txtF_DBTableName" runat="server" style="width: 140px;" name="txtF_DBTableName"
                                    class="txtInput normal" /></div><div style="float: left;">
                                        <label id="lbF_DBTableName" for="txtF_DBTableName">
                                        </label>
                                    </div>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            备注：
                        </th>
                        <td>
                            <asp:TextBox ID="txtF_Remark" runat="server" CssClass="txtInput normal" TextMode="MultiLine"
                                Style="width: 300px; height: 50px;"></asp:TextBox>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="foot_btn_box">
            <asp:Button ID="btnSubmit" runat="server" Text="保&nbsp;&nbsp;存" CssClass="btnSubmit"
                OnClientClick="return validate();" OnClick="btnSubmit_Click" />
        </div>
    </div>
    </form>
</body>
</html>
