📄 d_sciencesubfrm.asp
字号:
AdoRS4.Open lcSql,PubConn,1,1
statevalue=Adors4("NumValue")
if not isNull(statevalue) then
state=Split(stateValue,",")
end if
Set Adors4=Nothing%>
<%'###########################得到效益状况#############################
set AdoRs4=Server.CreateObject("AdoDB.RecordSet")
lcsql="select NumValue from A_ConfigInfo Where Subject='benefitstatus'"
AdoRS4.Open lcSql,PubConn,1,1
statevalue=Adors4("NumValue")
if not isNull(statevalue) then
benefit=Split(stateValue,",")
end if
Set Adors4=Nothing%>
<%function getYGName(aa) ''取员工姓名
set rs1=server.CreateObject("adodb.recordset")
if rs1.State=1 then rs1.Close
rs1.Open "select * from A_stuffinfo where stuffnum='"& aa &"'",pubconn,1,3
if rs1.RecordCount<=0 then
getYGName=""
else
getYGName=rs1.Fields("name")
end if
end function%>
<script language = "JavaScript">
var count1; //*********************88选择业务员
var count2;
count2=0;
Stuffarray = new Array();
<%count1=0
set rs=server.CreateObject("adodb.recordset")
rs.open "SELECT * FROM A_StuffInfo where SaleFlag='1'",pubconn,1,3
if rs.recordcount> 0 then
do while not rs.eof %>
Stuffarray [<%=count1%>] = new Array("<%= trim(rs("DepartCode"))%>","<%= trim(rs("StuffNum"))%>","<%= trim(rs("Name"))%>");
<%count1 = count1 + 1
rs.movenext
loop
end if
rs.close
set rs=nothing%>
count2=<%=count1%>;
function changelocation()
{
document.form1.m_Careeror.length = 0;
var locationid=locationid;
var i;
document.form1.m_Careeror.options[0] = new Option('请选择','');
for (i=0;i < count2; i++)
{
if (Stuffarray [i][0] == document.form1.m_BelongDepart.value)
{
document.form1.m_Careeror.options[document.form1.m_Careeror.length] = new Option(Stuffarray [i][2], Stuffarray [i][1]);
}
}
}
function changelocation2()
{
document.form1.m_Careeror.length = 0;
var i;
document.form1.m_Careeror.options[0] = new Option('请选择','');
for (i=0;i < count2; i++)
{
if (Stuffarray [i][0] == document.form1.m_BelongDepart.value)
{
document.form1.m_Careeror.options[document.form1.m_Careeror.length] = new Option(Stuffarray [i][2], Stuffarray [i][1]);
}
}
}
</script>
<script language="vbscript">
sub NewHB()
window.location="D_ScienceSubFrm.asp?tag2="&document.form1.tag2.value&"&m_name="&document.form1.par_name.value&"&m_level="&document.form1.par_level.value&""
end sub
</script>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<META NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
<title></title>
<link href="../cread.css" rel="stylesheet" type="text/css">
</HEAD>
<%''''''''''''B1表示新建伙伴,来自D_ScienceMainFrm.asp%>
<%if Request("B1")="新建" or Request("tag2")="continue" then%>
<script language="vbscript">
sub NewZyry()
window.location="zyrysubfrm.asp?par_id="&document.form1.m_id.value&"&tag1="&document.form1.tag1.value&""
end sub
</script>
<script language = "JavaScript">
var count1; //*********************88选择业务员
var count2;
count2=0;
Stuffarray = new Array();
<%count1=0
set rs=server.CreateObject("adodb.recordset")
rs.open "SELECT * FROM A_StuffInfo where SaleFlag='1' and delflag='0'",pubconn,1,3
if rs.recordcount> 0 then
do while not rs.eof %>
Stuffarray [<%=count1%>] = new Array("<%= trim(rs("DepartCode"))%>","<%= trim(rs("StuffNum"))%>","<%= trim(rs("Name"))%>");
<%count1 = count1 + 1
rs.movenext
loop
end if
rs.close
set rs=nothing%>
count2=<%=count1%>;
function changelocation()
{
document.form1.m_Careeror.length = 0;
var locationid=locationid;
var i;
document.form1.m_Careeror.options[0] = new Option('请选择','');
for (i=0;i < count2; i++)
{
if (Stuffarray [i][0] == document.form1.m_BelongDepart.value)
{
document.form1.m_Careeror.options[document.form1.m_Careeror.length] = new Option(Stuffarray [i][2], Stuffarray [i][1]);
}
}
}
function changelocation2()
{
document.form1.m_Careeror.length = 0;
var i;
document.form1.m_Careeror.options[0] = new Option('请选择','');
for (i=0;i < count2; i++)
{
if (Stuffarray [i][0] == document.form1.m_BelongDepart.value)
{
document.form1.m_Careeror.options[document.form1.m_Careeror.length] = new Option(Stuffarray [i][2], Stuffarray [i][1]);
}
}
}
</script>
<script language="javascript">
function datacheck()
{
var i;
var tag=0;
if (document.form1.m_id.value=="")
{
alert("伙伴序号不能为空!");
tag=1;
}
if (document.form1.m_name1.value=="")
{
if (tag==0){
alert("伙伴名称不能为空!");
tag=1;}
}
if(document.form1.m_Area.value=="")
{
if (tag==0)
alert("区域不能为空!");
tag=1;
}
if(document.form1.m_Occupation.value=="")
{
if (tag==0)
alert("行业不能为空!");
tag=1;
}
if(document.form1.m_Careeror.value=="")
{
if (tag==0)
alert("业务员不能为空!");
tag=1;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -