Scan.js 693 B

12345678910111213141516171819202122232425
  1. /**
  2. * 查找按钮
  3. */
  4. Ext.define('erp.view.core.button.Scan',{
  5. extend: 'Ext.Button',
  6. alias: 'widget.erpScanButton',
  7. iconCls: 'x-button-icon-scan',
  8. cls: 'x-btn-gray',
  9. text: $I18N.common.button.erpScanButton,
  10. style: {
  11. marginLeft: '10px'
  12. },
  13. width: 60,
  14. initComponent : function(){
  15. this.callParent(arguments);
  16. },
  17. handler: function(btn){
  18. var form = Ext.getCmp('form');
  19. var url = 'jsps/common/datalist.jsp?_noc=1&whoami=' + caller;
  20. if(btn.urlcondition){
  21. url += '&urlcondition=' + btn.urlcondition;
  22. }
  23. form.FormUtil.onAdd(caller + '_scan', parent.Ext.getCmp('content-panel').getActiveTab().title + 'DataList', url);
  24. }
  25. });