workflow表单中checkbox全选全不选功能

workflow表单中checkbox全选全不选功能

var t_val = GetValue('cb_menuALL');
var t     = GetObject('tree1');
//alert(t_val);
if(t_val=='true')
{
    t.SetCheckedALL(true);
}
else{
    t.SetCheckedALL(false);
}

获取树节点的checked的节点集合的功能

var fbsj=GetDateY_M_D_JS();
var zc_pid = GetValue('textbox1');
var nodes  = GetObject('tree2').GetNodesChecked();
for(var i=0;i<nodes.length;i++)
{
    var nd       = nodes[i];
    var cgpath   = nd.id;
    var fb_title = nd.text;
    //ShowAlert(fb_title);  
    var tID=GetNewGuid2();
    var dbFdStr = "id,parentid,fb_title,fbsj,is_doc,cgpath,xh";                     
    var dbFdV   = "'"+tID+"'";                     
    dbFdV+=",'"+zc_pid +"'";                     
    dbFdV+=",'"+fb_title+"'";                     
    dbFdV+=",'"+fbsj+"'";                     
    dbFdV+=",'1'";                     
    dbFdV+=",'"+cgpath+"'";
    dbFdV+=","+i+"";
    DataInsert("xcgh_cg",dbFdStr,dbFdV,null,null,"");
}
已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页