Empdbfind.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Ext.define('erp.view.ma.update.Empdbfind', {
  2. extend : 'Ext.Viewport',
  3. layout : 'anchor',
  4. hideBorders : true,
  5. initComponent : function() {
  6. var me = this;
  7. Ext.apply(me, {
  8. layout:'border',
  9. items : [ {
  10. xtype : "empgridleft",
  11. region: 'west',
  12. flex:1,
  13. tbar: [{ xtype: 'button',id:'addEmp', text: '添加',iconCls : 'x-button-icon-add',cls: 'x-btn-gray' ,
  14. handler : function(b){
  15. var gridL=Ext.getCmp('dbfindGridPanel');
  16. gridL.addToRight();
  17. }
  18. }],
  19. bbar : {
  20. xtype : 'erpMultiDbfindToolbar',
  21. id : 'pagingtoolbar',
  22. displayInfo : true
  23. }
  24. },{
  25. region: 'center',
  26. xtype: 'empgridright',
  27. id:'selectgrid',
  28. flex:1,
  29. emptyText : $I18N.common.grid.emptyText,
  30. tbar: [
  31. { xtype: 'button',id:'removeAll', text: '移除',iconCls : 'x-button-icon-close',cls: 'x-btn-gray' ,
  32. handler : function(b){
  33. var gridL=Ext.getCmp('selectgrid');
  34. gridL.removeFromRight();
  35. }}
  36. ]
  37. }]
  38. });
  39. me.callParent(arguments);
  40. }
  41. });