AutoGetNum.js 986 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * 自动获取编号按钮
  3. */
  4. Ext.define('erp.view.core.button.AutoGetNum',{
  5. extend: 'Ext.Button',
  6. alias: 'widget.erpAutoGetNumButton',
  7. iconCls: 'x-button-icon-submit',
  8. cls: 'x-btn-gray',
  9. text: $I18N.common.button.erpAutoGetNumButton,
  10. style: {
  11. marginLeft: '10px'
  12. },
  13. width: 80,
  14. initComponent : function(){
  15. this.callParent(arguments);
  16. },
  17. handler: function(){
  18. var win = new Ext.window.Window({
  19. id : 'win',
  20. height: "100%",
  21. width: "80%",
  22. maximizable : true,
  23. buttonAlign : 'center',
  24. layout : 'anchor',
  25. items: [{
  26. tag : 'iframe',
  27. frame : true,
  28. anchor : '100% 100%',
  29. layout : 'fit',
  30. html : '<iframe id="iframe" src="' + basePath + 'jsps/scm/product/autoGetNum.jsp" height="100%" width="100%" frameborder="0" scrolling="no"></iframe>'
  31. }]
  32. });
  33. win.show();
  34. }
  35. });