锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
Ext.getCmp("Relation_Combo").store.load({ params: { action: 'GetDictInfoListByDictType', dictType: 'ServiceRelativeType' },
callback: function(r, options, success) {
var filterType = [1, 2, 6, 7];
var defaultType = 3;
for (var i = 0; i < r.length; i++) {
var record = r[i];
if (filterType.contains(record.data.DictCode)) {
Ext.getCmp("Relation_Combo").store.remove(record);
}
}
if (defaultType) {
Ext.getCmp("Relation_Combo").store.remove(r[0]);
Ext.getCmp("Relation_Combo").setValue(defaultType);
}
}
});
*/
]);
榪欎釜鏄痝rid鐨勫垪琛ㄥ瓧孌靛拰鏄劇ず鏂瑰紡
function Funurl(value, p, record) {
return "<a href='" + value + "' target='_blank'>" + value + "</a>";
}
//榪欎釜鏄痝rid璁劇疆
var MemberGrid = new Ext.grid.GridPanel({
renderTo: Ext.getBody(),
title: "鍏徃鍒楄〃",
frame: true,
id: "MemberGrid",
store: MemberStore,
sm: sm,
cm: cm,
clicksToEdit: 1,
autoHeight: true,
tbar: [
{ xtype: "button", text: "鏂板緩", handler: function() { win.show(); } },
{ xtype: "label", html: "|" },
{ xtype: "button", text: "鍒鋒柊", handler: function() { } }
],
viewConfig: {
layout: function() {
if (!this.mainBody) {
return; // not rendered
}
var g = this.grid;
var c = g.getGridEl();
var csize = c.getSize(true);
var vw = csize.width;
if (!g.hideHeaders && (vw < 20 || csize.height < 20)) { // display:
// none?
return;
}
if (g.autoHeight) {
if (this.innerHd) {
this.innerHd.style.width = (vw) + 'px';
}
} else {
this.el.setSize(csize.width, csize.height);
var hdHeight = this.mainHd.getHeight();
var vh = csize.height - (hdHeight);
this.scroller.setSize(vw, vh);
if (this.innerHd) {
this.innerHd.style.width = (vw) + 'px';
}
}
if (this.forceFit) {
if (this.lastViewWidth != vw) {
this.fitColumns(false, false);
this.lastViewWidth = vw;
}
} else {
this.autoExpand();
this.syncHeaderScroll();
}
this.onLayout(vw, vh);
}
}
});