var location = this.options.location; var cr = FR.cellStr2ColumnRow(location);//把单元格地址传入后就得到一个控件 var col = cr.col; //获取控件对象的列号 var ro = cr.row; //获取控件对象的行号 var c= contentPane.getWidgetByCell(FR.columnRow2CellStr({col: col-4, row: ro}));//获取它前面第3列控件对象 var b =this.getValue(); if (b!="0"){ c.setVisible(true);}//可用 else { c.setVisible(false);//不可用 } |