//----turn from page
var selPost='';
Ext.onReady(function () {
var OrgTreeStore=Ext.create('Ext.data.TreeStore', {
id : 'OrgTreeStore',
autoLoad : false,
fields : ['id', 'text']
});
var OrgTree = Ext.create('Ext.tree.Panel', {
id : 'OrgTree',
region : 'west',
width:'100%',
store : OrgTreeStore,
rootVisible : false,
autoScroll: true,
listeners: {
itemclick : OnClickTreeDept
}
});
Ext.create('Ext.container.Viewport', {
id: "id",
layout: 'border',
items: [OrgTree]
});
treeload()
});
function treeload() {
Ext.getCmp('OrgTree').store.setProxy({
type: 'ajax',
actionMethods: {
read: 'POST'
},
url: AppUrl + 'Jrule00/depart',
extraParams: {
v_supercode_in: "-1"
}
});
Ext.getCmp('OrgTree').store.load();
}
function OnClickTreeDept(view, record, item, index, e, eOpts) {
var selOrgid=record.data.id;
var selOrgname=record.data.text;
window.parent.setQueryPost(selOrgid, selOrgname);
window.parent.iframeHide();
}
//-------turn to page
var turnWind=Ext.create("Ext.window.Window",{
id:"turnWind",
title:"主责部门",
modal:true,
width: 980,
height: 450,
closeAction:'hide',
html:"<iframe src='../../../JRULE/page/JRULE00/JRULE0002.html' height='100%' width='100%' id='ifrwin'>"
});
});
//----GETvalue
function renderText(p){
p.getEl().on('click',function(p){
Ext.getCmp('turnWind').show();
});
}
function setQueryPost(selOrgid, selOrgname){
depid=selOrgid;
Ext.getCmp('departid').setValue(selOrgname);
Ext.getCmp('choduty').setValue(selOrgname); //
Ext.getCmp('uzzbm').setValue(selOrgname);
}
function iframeHide() {
Ext.getCmp('turnWind').close();
}
var selPost='';
Ext.onReady(function () {
var OrgTreeStore=Ext.create('Ext.data.TreeStore', {
id : 'OrgTreeStore',
autoLoad : false,
fields : ['id', 'text']
});
var OrgTree = Ext.create('Ext.tree.Panel', {
id : 'OrgTree',
region : 'west',
width:'100%',
store : OrgTreeStore,
rootVisible : false,
autoScroll: true,
listeners: {
itemclick : OnClickTreeDept
}
});
Ext.create('Ext.container.Viewport', {
id: "id",
layout: 'border',
items: [OrgTree]
});
treeload()
});
function treeload() {
Ext.getCmp('OrgTree').store.setProxy({
type: 'ajax',
actionMethods: {
read: 'POST'
},
url: AppUrl + 'Jrule00/depart',
extraParams: {
v_supercode_in: "-1"
}
});
Ext.getCmp('OrgTree').store.load();
}
function OnClickTreeDept(view, record, item, index, e, eOpts) {
var selOrgid=record.data.id;
var selOrgname=record.data.text;
window.parent.setQueryPost(selOrgid, selOrgname);
window.parent.iframeHide();
}
//-------turn to page
var turnWind=Ext.create("Ext.window.Window",{
id:"turnWind",
title:"主责部门",
modal:true,
width: 980,
height: 450,
closeAction:'hide',
html:"<iframe src='../../../JRULE/page/JRULE00/JRULE0002.html' height='100%' width='100%' id='ifrwin'>"
});
});
//----GETvalue
function renderText(p){
p.getEl().on('click',function(p){
Ext.getCmp('turnWind').show();
});
}
function setQueryPost(selOrgid, selOrgname){
depid=selOrgid;
Ext.getCmp('departid').setValue(selOrgname);
Ext.getCmp('choduty').setValue(selOrgname); //
Ext.getCmp('uzzbm').setValue(selOrgname);
}
function iframeHide() {
Ext.getCmp('turnWind').close();
}