<%@ Import Namespace="MTCUN" %>

<%@ Page Language="c#" CodeBehind="PostPotential.aspx.cs" AutoEventWireup="True"
    Inherits="MTCUN.Consultant.PostPotential" Title="咨询信息-顾问" %>

<%@ Register Src="../UserCol/Dictionary.ascx" TagName="Dictionary" TagPrefix="uc1" %>
<!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 runat="server">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
    <script type="text/javascript">
        function OldStudent() {
            var value = document.getElementById("ddlOldStudent").value;
            if (value == 0) {
                document.getElementById("spanStudentID").style.visibility = "hidden";
                document.getElementById("tbxStudentID").value = "";
            }
            else
            { document.getElementById("spanStudentID").style.visibility = "visible"; }
        }
    </script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    &nbsp;<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="divpanel">
        <table class="table" cellspacing="0">
            <tr>
                <th colspan="2" height="25">
                    学员咨询
                </th>
            </tr>
            <tr>
                <td width="112">
                    姓名：
                </td>
                <td width="813">
                    <asp:TextBox ID="tbxPotentialName" runat="server" Width="149px"></asp:TextBox>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="112">
                    性别：
                </td>
                <td style="height: 11px" width="813">
                    <asp:RadioButtonList ID="rblSex" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="0" Text="女"></asp:ListItem>
                        <asp:ListItem Value="1" Text="男"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td width="112">
                    称呼：
                </td>
                <td>
                    <asp:TextBox ID="tbxAppellation" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%">
                    空闲时间：</td>
                <td style="height: 15px" width="67%">
                    <asp:TextBox ID="tbxFreeTimes" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%">
                    出生：
                </td>
                <td style="height: 15px" width="67%">
                    <asp:TextBox ID="tbxBirthday" runat="server"></asp:TextBox>
                    <script type="text/javascript">                        Calendar("tbxBirthday");</script>
                </td>
            </tr>
            <tr>
                <td width="112">
                    老学员：
                </td>
                <td>
                    <asp:DropDownList ID="ddlOldStudent" runat="server">
                        <asp:ListItem Value="0">否</asp:ListItem>
                        <asp:ListItem Value="1">是</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td width="112">
                    隶属正式学员学号：</td>
                <td>
                    <asp:TextBox ID="tbxStudentID" runat="server" Width="95px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="112">
                    校区：
                </td>
                <td>
                    <asp:DropDownList ID="ddlSchool" runat="server" DataTextField="SchoolName" DataValueField="SchoolID">
                    </asp:DropDownList>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="112">
                    咨询时间：
                </td>
                <td>
                    <asp:TextBox ID="tbxDateAndTime" runat="server" Width="144px"></asp:TextBox>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="125">
                    课程：
                </td>
                <td width="702">
                    <asp:DropDownList ID="ddlCourse" DataTextField="CourseName" DataValueField="CourseID"
                        runat="server">
                    </asp:DropDownList>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="125">
                    上课规律：
                </td>
                <td width="702">
                    <div style="float: left">
                    </div>
                    <div style="float: left">
                        <asp:TextBox ID="tbxTimeRule" runat="server" Width="274px"></asp:TextBox></div>
                </td>
            </tr>
            <tr>
                <td width="13%">
                    电话：
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxTel" runat="server" Width="141px"></asp:TextBox>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="13%" style="height: 27px">
                    手机：
                </td>
                <td width="823" style="height: 27px">
                    <asp:TextBox ID="tbxMobileTel" runat="server" Width="141px"></asp:TextBox>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="13%" style="height: 26px">
                    其它电话1：
                </td>
                <td width="823" style="height: 26px">
                    <asp:TextBox ID="tbxTel1" runat="server" Width="141px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%" style="height: 26px">
                    其它电话2：
                </td>
                <td width="823" style="height: 26px">
                    <asp:TextBox ID="tbxTel2" runat="server" Width="141px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%" style="height: 26px">
                    其它电话3：
                </td>
                <td width="823" style="height: 26px">
                    <asp:TextBox ID="tbxTel3" runat="server" Width="141px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%" style="height: 26px">
                    QQ：
                </td>
                <td width="823" style="height: 26px">
                    <asp:TextBox ID="tbxQQ" runat="server" Width="141px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%" style="height: 26px">
                    电子邮箱：
                </td>
                <td width="823" style="height: 26px">
                    <asp:TextBox ID="tbxEmail" runat="server" Width="274px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%">
                    地址：
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxHomeAddress" runat="server" Width="285px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%">
                    邮编：
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxPostCode" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%">
                    原学校：
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxSchool" runat="server" Width="185px"></asp:TextBox>
                    年级：<asp:TextBox ID="tbxGrade" runat="server" Width="84px"></asp:TextBox>
                    班级：<asp:TextBox ID="tbxClass" runat="server" Width="79px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%" style="background-color: #FFE7B5">
                    检测重复：
                </td>
                <td width="823" style="background-color: #FFE7B5">
                    <asp:Label ID="labDetectMsg" runat="server" ForeColor="Red"></asp:Label><br />
                    <asp:ListBox ID="lbxVMsg" runat="server" Width="302px"></asp:ListBox>
                    <label class="lab_button">
                        <asp:Button ID="btnDetect" runat="server" OnClick="btnDetect_Click" Text="检测重复" />
                    </label>
                    &nbsp;(系统根据手机、电话、Email、QQ检查是否有重复信息)
                </td>
            </tr>
            <tr runat="server" id="c1">
                <td width="13%">
                    <asp:Label ID="labCustom1" runat="server"></asp:Label>
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxCustom1" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="c2">
                <td width="13%">
                    <asp:Label ID="labCustom2" runat="server"></asp:Label>
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxCustom2" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="c3">
                <td width="13%">
                    <asp:Label ID="labCustom3" runat="server"></asp:Label>
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxCustom3" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="c4">
                <td width="13%">
                    <asp:Label ID="labCustom4" runat="server"></asp:Label>
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxCustom4" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="c5">
                <td width="13%">
                    <asp:Label ID="labCustom5" runat="server"></asp:Label>
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxCustom5" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="112">
                    获知广告方式：
                </td>
                <td width="813">
                    <asp:DropDownList ID="ddlMedia" runat="server" DataTextField="MediaName" DataValueField="MediaID">
                    </asp:DropDownList>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td style="height: 16px" width="112">
                    状态：
                </td>
                <td style="height: 16px" width="813">
                    <asp:DropDownList ID="ddlStatus" runat="server" DataTextField="StatusName" DataValueField="StatusID">
                    </asp:DropDownList>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="112">
                    备注：
                </td>
                <td width="813">
                    <asp:TextBox ID="tbxRemark" runat="server" Width="501px" Height="56px" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="112">
                    下次回访日期：
                </td>
                <td width="813">
                    <asp:TextBox ID="tbxNextReplyDate" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="112">
                    数据采集人：
                </td>
                <td width="813">
                    <asp:TextBox ID="tbxGatherers" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="112">
                    咨询顾问：
                </td>
                <td width="813">
                    <asp:DropDownList ID="ddlUser" runat="server" DataTextField="TrueName" DataValueField="UserID">
                    </asp:DropDownList>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="112">
                </td>
                <td width="813">
                    <label class="lab_button">
                        <asp:Button ID="btnPost" runat="server" Text="提交" OnClick="btnPost_Click"></asp:Button>
                    </label>
                    <label class="lab_button" id="__mt_labBack" runat="server">
                        <input causesvalidation="false" type="button" runat="server" onclick="back(this)" value="返回" />
                    </label>
                    &nbsp; (新增咨询时，点击“检测重复“后才能提交)
                </td>
            </tr>
        </table>
    </div>
    <!------usercol ajax-------->
    <asp:UpdatePanel ID="up" runat="server">
        <ContentTemplate>
            <uc1:Dictionary ID="Dictionary1" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <!-------usercol ajax------->
    </form>
</body>
</html>
