110,960
社区成员
发帖
与我相关
我的任务
分享
string uInfo = userInfo.ProviderUserKey.ToString();
string uText = userInfo.Comment + "<input style='display:none;' type='text' value='" + uInfo + "' title='" + userInfo.Comment + "' />";
TreeNode mannode = new TreeNode(uText, userInfo.ProviderUserKey.ToString());
function ShowCheckBox()
{
var ele = event.srcElement;
//单击节点上的CheckBox获取所有子节点
if(ele.type=='checkbox')
{
var childrenDivID = ele.id.replace('CheckBox','Nodes');
var div = document.getElementById(childrenDivID);
if(div!=null)
{
var checkBoxs = div.getElementsByTagName('INPUT');
for(var i=0;i<checkBoxs.length;i++)
{
if(checkBoxs[i].type=='checkbox')
{
checkBoxs[i].checked=ele.checked;
var ml=document.getElementById(checkBoxs[i].id).parentElement.parentElement.parentElement.getElementsByTagName("INPUT");
if(ml.length>1)
{
if(ele.checked)
{
SelectUser(ml[1].value,ml[1].title);
}
else
{
RemoveUser(ml[1].value,ml[1].title);
}
}
}
}
}
else
{
var ml=document.getElementById(ele.id).parentElement.parentElement.parentElement.getElementsByTagName("INPUT");
if(ele.checked)
SelectUser(ml[ml.length-1].value,ml[ml.length-1].title);
else
RemoveUser(ml[ml.length-1].value,ml[ml.length-1].title);
}
}
}