1 {header:'括号',dataIndex:'leftbrackets',width:40,editor:new Ext.grid.GridEditor(new Ext.form.ComboBox({
2 store: new Ext.data.SimpleStore({
3 fields:['value','text'],
4 data: leftBracketsComboData
5 }),
6 mode: 'local',
7 triggerAction: 'all',
8 editable:false,
9 valueField: 'value',
10 displayField: 'text',
11 readOnly:true
12 // lazyInit:false,
13 // listeners: {
14 // 'focus' :
15 // function(){
16 // this.expand();
17 // }
18 // }
19 })),
20 renderer: function(value, cellmeta, record){
21 if(value == null || value == ""){
22 return "";
23 }
24 return leftBracketsComboData[value][1];
25 },scope:this}
26 ,{header:'表名称',dataIndex:'tablename',width:80,editor:new Ext.grid.GridEditor(new Ext.form.ComboBox({
27 store: new Ext.data.SimpleStore({
28 fields:['value','text'],
29 data: baseTableData
30 }),
31 id:'baseTableNameID',
32 tpl: '<tpl for="."><div ext:qtip="{text}" class="x-combo-list-item">{text}</div></tpl>',
33 mode: 'local',
34 triggerAction: 'all',
35 editable:false,
36 valueField: 'value',
37 displayField: 'text',
38 lazyInit:false,
39 listeners: {
40 'expand':function(combo){
41 combo.clearValue();
42 combo.store.loadData(baseTableData);
43 }
44 ,'select':function(){
45
46 }
47 ,'focus' :function(){
48 this.expand();
49 }
50 }
51 })),
52 renderer: function(value, cellmeta, record, row, col, store){
53 if(value == null || value == ""){
54 return;
55 }
56 return record.get("tablenamestring");
57 }}
58 ,{header:'查询条件列',dataIndex:'fieldname',width:90,editor:new Ext.grid.GridEditor(new Ext.form.ComboBox({
59 id:'fieldnameID'
60 ,store : new Ext.data.Store({
61 proxy : new Ext.data.HttpProxy({url : '../SearchTableColumns/extlistKV.do'})
62 ,reader : new Ext.data.JsonReader({}, ['name','chinese'])
63 ,baseParams:{s_tablename:'0'}
64 })
65 ,tpl: '<tpl for="."><div ext:qtip="{chinese}" class="x-combo-list-item">{chinese}</div></tpl>'
66 ,valueField :'name'
67 ,displayField :'chinese'
68 ,mode : 'remote'
69 ,forceSelection : true
70 ,triggerAction : 'all'
71 ,typeAhead : false
72 ,selectOnFocus : true
73 ,resizable:true
74 ,width : 120
75 ,lazyInit:false
76 ,listeners: {
77 'focus' :
78 function(){
79 this.expand();
80 }
81 }
82 }
83 )),
84 renderer: function(value, cellmeta, record, row, col, store){
85 if(value == null || value == ""){
86 return "";
87 }
88 return record.get("fieldnamestring");
89 }}
90 ,{header:'逻辑运算符',dataIndex:'relationsign',width:70,editor:new Ext.grid.GridEditor(new Ext.form.ComboBox({
91 store: new Ext.data.SimpleStore({
92 fields:['value','text'],
93 data: relationSignComboData
94 }),
95 mode: 'local',
96 triggerAction: 'all',
97 editable:false,
98 valueField: 'value',
99 displayField: 'text',
100 readOnly:true,
101 lazyInit:false,
102 listeners: {
103 'focus' :
104 function(){
105 this.expand();
106 }
107 }
108 })),
109 renderer: function(value, cellmeta, record, row, col, store){
110 if(value == null || value == ""){
111 return;
112 }
113 return relationSignComboData[value][1];
114 },scope:this}
115 ,{header:'查询条件值',dataIndex:'expressvalue',width:125,editor:new Ext.grid.GridEditor(new Ext.form.TextField({ }))
116 , renderer: function(value, cellmeta, record, row, col, store){
117 if(value == null || value == ""){
118 return "";
119 }
120 return record.get("expressvaluestring");
121 }
122 }
123 ,{header:'括号',dataIndex:'rightbrackets',width:40,editor:new Ext.grid.GridEditor(new Ext.form.ComboBox({
124 store: new Ext.data.SimpleStore({
125 fields:['value','text'],
126 data: rightBracketsComboData
127 }),
128 mode: 'local',
129 &