//tree
//實現第一層資料夾的**sql語句查詢你需要的表資料
public listgettreelist()
sql sql = sqls
.create("select e.`line` as name ,e.`obj_id` as id ,e.`e_type` as type from `t_sd_equipment` e where e.`e_type`='配電室' and e.`station`is not null");
sql.setentity(dao.getentity(nutmap.class));
sql.setcallback(sqls.callback.maps());
dao.execute(sql);
listlist = sql.getlist(nutmap.class);
nutmap m = new nutmap();
try
} catch (exception e)
return retlist;
} //實現第二層資料夾的**sql語句查詢你需要的表資料
public listgetspeclistbydevmaintypeid(string id)
sql sql = sqls
.create("select e.`station` as name ,e.`obj_id` as id ,e.`e_type` as type from `t_sd_equipment` e where e.`obj_id`='"+id+"' and e.`station`is not null");
sql.setentity(dao.getentity(nutmap.class));
sql.setcallback(sqls.callback.maps());
dao.execute(sql);
listlist = sql.getlist(nutmap.class);
try
} catch (exception e)
return retlist;
} //實現第三層資料夾的**sql語句查詢你需要的表資料
public listgetproplistbyspecid(string id)
sql sql = sqls
.create("select distinct e.`e_type` as type,e.`f_id` as fid from `t_sd_equipment` e where e.`f_id`='"+id+"' and e.`station`is not null");
sql.setentity(dao.getentity(nutmap.class));
sql.setcallback(sqls.callback.maps());
dao.execute(sql);
listlist = sql.getlist(nutmap.class);
try
} catch (exception e)
return retlist;
} //實現tree文字的內容
public listgetproplistbyspecidtwo(string id,string type)
sql sql = sqls
.create("select e.`e_name` as name,e.`obj_id` as id ,e.`e_type` as type from `t_sd_equipment` e where e.`f_id`='"+id+"' and e.`e_type`='"+type+"' and e.`station`is not null");
sql.setentity(dao.getentity(nutmap.class));
sql.setcallback(sqls.callback.maps());
dao.execute(sql);
listlist = sql.getlist(nutmap.class);
try
} catch (exception e)
return retlist;
}
package components.ztjc.components.vo
}}
flex的tree之間拖動
tree的xml內容 var company xml treelabel,在tree控制項的屬性中指定,可以根據解析xml的內容顯示所需節點 private function treelabel item object string 繫結tree的dataprovider bindable var ...
Flex中刪除Tree的節點
刪除選單節點 private function deletemenuitem event event void var xml xml mainportal.mytree.selecteditem as xml if xml null return 刪除選單節點的子節點 deletechildren...
Flex中Tree控制項基本用法
img 主要實現了以xml為資料來源將其繫結tree控制項上,新增,修改結點.根據屬性設定結點的圖示.設定tree控制項的水平滾動條等.其實也挺簡單的,只是我這幾天在學習flex過程中,感覺好資料比較少.乙個 很好,但是很快就看完了,對flex有了乙個基本的了解,但是離我們的技術需求還太遠.publ...