📄 all_checked.js
字号:
function setAllChecked( resultlist )
{
if( resultlist != null )
{
for( var i = 0; i < resultlist.length; i++ )
{
if( resultlist[ i ].checked )
{
resultlist[ i ].checked = false
}
else
{
resultlist[ i ].checked = true
}
}
}
if( resultlist.value != 0 )
{
if( resultlist.checked )
{
resultlist.checked = false
}
else
{
resultlist.checked = true
}
}
}
function checkdelete( resultlist )
{
var tag = false;
if( resultlist.value != 0 )
{
if( resultlist.checked )
tag = true;
}
if (resultlist != null)
{
for( var i = 0; i < resultlist.length; i++ )
if( resultlist[ i ].checked )
tag = true;
}
if (tag == false)
{
alert("请先选择要删除的记录!");
return false;
}
else
return confirm('确认删除记录吗?');
}
function checkallpass( resultlist )
{
var tag = false;
if( resultlist.value != 0 )
{
if( resultlist.checked )
tag = true;
}
if (resultlist != null)
{
for( var i = 0; i < resultlist.length; i++ )
if( resultlist[ i ].checked )
tag = true;
}
if (tag == false)
{
alert("请先选择要审批的记录!");
return false;
}
else
return confirm('确认审批通过?请稍后填写审批意见');
}
function checkallunpass( resultlist )
{
var tag = false;
if( resultlist.value != 0 )
{
if( resultlist.checked )
tag = true;
}
if (resultlist != null)
{
for( var i = 0; i < resultlist.length; i++ )
if( resultlist[ i ].checked )
tag = true;
}
if (tag == false)
{
alert("请先选择要审批的记录!");
return false;
}
else
return confirm('确认修改为审批未通过?');
}
function checkallexp( resultlist )
{
var tag = false;
if( resultlist.value != 0 )
{
if( resultlist.checked )
tag = true;
}
if (resultlist != null)
{
for( var i = 0; i < resultlist.length; i++ )
if( resultlist[ i ].checked )
tag = true;
}
if (tag == false)
{
alert("请先选择要导出的项目计划!");
return false;
}
else
return confirm('确认要导出此项目计划?');
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -