📄 g_plan.asp
字号:
<!--#include file="../include/Pubconn.asp"-->
<!--#include file="../include/PubFun.asp"-->
<% username=Getuser()
userclass=TableVisitor("G_TblClosePlan",username)
if userclass<2 then
response.write"<br>"
response.write"<br>"
response.write "<center><font size=2>抱歉,您没有此项操作权限!<a href=G_mainplan.asp>返回</a>"
response.end
end if
%>
<%
'***********************************
'Author:Ruphi Update Time:2001-08-19
'功能说明: 客户跟进计划录入界面
'***********************************
'*******************************************
'得出跟进时间的下拉菜单
set rssj=Server.CreateObject("ADODB.RecordSet")
sql="select NumValue from A_ConfigInfo Where Subject='CloseTime'"
rssj.open sql,Pubconn,1,1
if not rssj.eof then
if not isnull(rssj("NumValue")) then
CloseTime=Split(trim(rssj("NumValue")),",")
end if
end if
set rssj=nothing
'得出跟进方式的下拉菜单
set rsdc=Server.CreateObject("ADODB.RecordSet")
sql="select NumValue from A_ConfigInfo Where Subject='CloseMode'"
rsdc.open sql,Pubconn,1,1
if not rsdc.eof then
if not isnull(rsdc("NumValue")) then
CloseMode=Split(trim(rsdc("NumValue")),",")
end if
end if
set rsdc=nothing
'***************************************
'得出跟进目的下拉菜单
set rswt=Server.CreateObject("ADODB.RecordSet")
sql="select NumValue from A_ConfigInfo Where Subject='ClosePurpose'"
rswt.open sql,Pubconn,1,1
if not rswt.eof then
if not isnull(rswt("NumValue")) then
ClosePurpose=Split(trim(rswt("NumValue")),",")
end if
end if
set rswt=nothing
'***************************************
'读入通过按扭选中的客户的序号和名称,级别
khxh=request("khxh")
if khxh<>"" then
set mykh=Server.CreateObject("ADODB.RecordSet")
sql="select * from D_ClientInfo where ClientNum='"&khxh&"'"
mykh.open sql,Pubconn,1
if not mykh.eof then
khmc=mykh("ClientName")
khjb=mykh("Level")
end if
end if
'保存后传回的值,此时录入界面年月日不变,只有当按新增时,才清空
T_year=request("tyear")
T_month=request("tmonth")
T_date=request("tdate")
kfkhlx=request("kfkhlx") '开发的是新老客户
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>客户跟进计划</title>
<link href="cread.css" rel="stylesheet" type="text/css">
</head>
<script language="javascript">
//输入客户序号时,产生其对应的名称以及该客户的所有重要人员名单
var onecount;
var tj;
tj=0;
onecount=0;
subcat = new Array();
shu = new Array();
<%count = 0
set rs5=server.CreateObject("adodb.recordset")
rs5.open "SELECT * FROM D_clientinfo where ( tag='khindex'or (type='潜在客户' and tag='kh') or (type='预期客户' and tag='kh')or (type='首次购买客户' and tag='kh') or (type='忠诚客户'and tag='kh') or (type='重复购买客户' and tag='kh') or tag='hbdealer' ) and stuffnum='"&Session("UserID")&"' and delflag<>'1'",Pubconn,1,3
if rs5.recordcount> 0 then
do while not rs5.eof%>
subcat[<%=count%>] = new Array("<%= trim(rs5("clientnum"))%>","<%=trim(rs5("clientname"))%>");
<%count = count + 1
rs5.movenext
loop
end if
rs5.close
set rs5=nothing%>
onecount=<%=count%>;
<%count1 = 0
set rs9=server.CreateObject("adodb.recordset")
rs9.open "SELECT * FROM D_LinkMan where Onoroff='1' ",Pubconn,1,3
if rs9.recordcount> 0 then
do while not rs9.eof%>
shu[<%=count1%>] = new Array("<%= trim(rs9("clientnum"))%>","<%=trim(rs9("LinkMan"))%>");
<%count1 = count1 + 1
rs9.movenext
loop
end if
rs9.close
set rs9=nothing%>
tj=<%=count1%>;
function keyup()
{
//客户名称响应
var tag;
tag=0;
if (document.form1.kfkhlx.value=="")
{
alert("请先选择“开发新/已有客户”!"); //要先选择
document.form1.khxh.value="";
document.form1.kfkhlx.focus();
}
for (i=0;i<onecount;i++)
{
if(document.form1.khxh.value==subcat[i][0])
{
document.form1.khmc.value=subcat[i][1];
tag=1;
break;
}
}
if (tag==0)
document.form1.khmc.value="";
//跟进对象下拉菜单
document.form1.txtobject.length = 0;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -