📄 func.js
字号:
function buttontype(type)
{
document.all.item("uctrlResive_txtbox").value = type;
if(document.all.item("txtTitle").value == "")
{
document.all.item("txtTitle").value = "<>";
}
}
function personvalid(source, arguments)
{
var flag1 = false;
var flag2 = false;
var u_count = document.all.item("uctrlResive_LisBoxUser").length;
var send_count = document.all.item("uctrlResive_LisBoxSendTo").lenght;
var secret_count = document.all.item("uctrlResive_LisBoxSecretTo").lenght;
var type = document.all.item("uctrlResive_txtbox").value;
if(type == "2" || type == "1")
{
var c_count = document.all.item("uctrlResive_LisBoxSendTo").length;
var s_count = document.all.item("uctrlResive_LisBoxSecretTo").length;
var index = document.all.item("uctrlResive_LisBoxUser").selectedIndex;
var persondepart = document.all.item("uctrlResive_LisBoxUser").options[index].value;
var pos = persondepart.indexOf("*");
if(pos != -1)
{
var persondepartid = persondepart.split("*");
}
for(i = 0; i < c_count && flag1 == false; i ++)
{
if(-1 != pos)
{
if((document.all.item("uctrlResive_LisBoxSendTo").options[i].value == persondepartid[0]
|| document.all.item("uctrlResive_LisBoxSendTo").options[i].value == persondepart))
{
flag1 = true;
}
}
else
{
if(document.all.item("uctrlResive_LisBoxSendTo").options[i].value == persondepart)
{
flag1 = true;
}
}
}
for(j = 0; j < s_count && flag2 == false; j ++)
{
if(-1 != pos)
{
if((document.all.item("uctrlResive_LisBoxSecretTo").options[j].value == persondepartid[0]
|| document.all.item("uctrlResive_LisBoxSecretTo").options[j].value == persondepart))
{
flag2 = true;
}
}
else
{
if(document.all.item("uctrlResive_LisBoxSecretTo").options[j].value == persondepart)
{
flag2 = true;
}
}
}
if( true == flag1 || true == flag2)
{
arguments.IsValid=false;
if(true == flag1)
{
if("1" == type)
alert("您已经添加了该人员!");
else
alert("您不能同时发送、密送给同一人!");
}
else
{
if("1" == type)
alert("您不能同时发送、密送给同一人!");
else
alert("您已经添加了该人员!");
}
}
else
{
arguments.IsValid = true;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -