相思资源网 Design By www.200059.com
function flushDataTree()
{
dataset_mainMenuTemp.setShowLoadingTip(true);
var rootNode = tree_Menu.getFirstRootNode();
tree_Menu.setCurrentNode(rootNode);
tree_Menu.expandNode(rootNode);
dataset_mainMenu.clearData();
dataset_mainMenuTemp.flushData();
dataset_mainMenuTemp.flushDataAsync(function(succeed)
{
if (!succeed) return;
dataset_mainMenuTemp.disableControls();
try {
dataset_mainMenuTemp.moveFirst();
while (!dataset_mainMenuTemp.isLast())
{
var record=dataset_mainMenuTemp.getCurrent();
var node = new RecordTreeNode(record, rootNode.getTreeLevel().getTreeLevel("level_menu"));
rootNode.addNode(node);
dataset_mainMenuTemp.moveNext();
}
}catch(e)
{
alert(e.message);
}
finally {
dataset_mainMenuTemp.enableControls();
flushThirdLevelNode();
}
});
}
function flushThirdLevelNode(){
try {
dataset_myMailBox.parameters().setValue("myBoxCoding","box03");
dataset_myMailBox.flushData();
//将当前节点展开
var currentNode=getCurrentNodeNum(3);
tree_Menu.expandNode(currentNode);
//向dataset中新增一条节点数据
dataset_myMailBox.disableControls();
dataset_myMailBox.moveFirst();
while (!dataset_myMailBox.isLast())
{
record=dataset_myMailBox.getCurrent();
var node = new RecordTreeNode(record, currentNode.getTreeLevel().getTreeLevel("level_myMailBox"));
//新增节点
currentNode.addNode(node);
dataset_myMailBox.moveNext();
}
}catch(e)
{
alert(e.message);
} finally {
dataset_myMailBox.enableControls();
}
}
{
dataset_mainMenuTemp.setShowLoadingTip(true);
var rootNode = tree_Menu.getFirstRootNode();
tree_Menu.setCurrentNode(rootNode);
tree_Menu.expandNode(rootNode);
dataset_mainMenu.clearData();
dataset_mainMenuTemp.flushData();
dataset_mainMenuTemp.flushDataAsync(function(succeed)
{
if (!succeed) return;
dataset_mainMenuTemp.disableControls();
try {
dataset_mainMenuTemp.moveFirst();
while (!dataset_mainMenuTemp.isLast())
{
var record=dataset_mainMenuTemp.getCurrent();
var node = new RecordTreeNode(record, rootNode.getTreeLevel().getTreeLevel("level_menu"));
rootNode.addNode(node);
dataset_mainMenuTemp.moveNext();
}
}catch(e)
{
alert(e.message);
}
finally {
dataset_mainMenuTemp.enableControls();
flushThirdLevelNode();
}
});
}
function flushThirdLevelNode(){
try {
dataset_myMailBox.parameters().setValue("myBoxCoding","box03");
dataset_myMailBox.flushData();
//将当前节点展开
var currentNode=getCurrentNodeNum(3);
tree_Menu.expandNode(currentNode);
//向dataset中新增一条节点数据
dataset_myMailBox.disableControls();
dataset_myMailBox.moveFirst();
while (!dataset_myMailBox.isLast())
{
record=dataset_myMailBox.getCurrent();
var node = new RecordTreeNode(record, currentNode.getTreeLevel().getTreeLevel("level_myMailBox"));
//新增节点
currentNode.addNode(node);
dataset_myMailBox.moveNext();
}
}catch(e)
{
alert(e.message);
} finally {
dataset_myMailBox.enableControls();
}
}
标签:
dorado,js
相思资源网 Design By www.200059.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
相思资源网 Design By www.200059.com
暂无动态刷新 dorado树的js代码的评论...