js中对树的操作
//选择分类指标后赋值
function AfterSelDetailCode(sender,selectObjs,data)
{
var result = new Array();
var lstResult = <%=WgEvalClass.StrClientOprEntityList %>;
var lstOldResult = objArrClone(<%=WgEvalClass.StrClientOprEntityList %>);
for(var i in selectObjs)
{
var no = new Object();
no.indicatorCategoryCode = selectObjs[i].indicatorCategoryCode;
no.indicatorCategoryName = selectObjs[i].indicatorCategoryName;
no.indicatorCategoryId=selectObjs[i].id;
no.score=0;
if(!wisdom.isEmpty(selectObjs[i].parentIndicatorCategory_id)){
no.parentTemplateIndicatorCategoryId= selectObjs[i].parentIndicatorCategory_id;
}
else{
if(lstResult != null && lstResult.length > 0 && !wisdom.isEmpty(selectObjs[i].parentIndicatorCategory_indicatorCategoryCode)){
for(var numj in lstResult)
{
if(lstResult[numj].indicatorCategoryCode == selectObjs[i].parentIndicatorCategory_indicatorCategoryCode)
{
no.parentTemplateIndicatorCategoryId= lstResult[numj].id;
break;
}
}
}
&nb
相关新闻>>
- 发表评论
-
- 最新评论 更多>>