?? 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("您已經(jīng)添加了該人員!");
else
alert("您不能同時發(fā)送、密送給同一人!");
}
else
{
if("1" == type)
alert("您不能同時發(fā)送、密送給同一人!");
else
alert("您已經(jīng)添加了該人員!");
}
}
else
{
arguments.IsValid = true;
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -