AssWindow.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /**
  2. *辅助核算窗口
  3. **/
  4. Ext.define('erp.view.core.window.AssWindow',{
  5. id:'erpasswin_'+caller,
  6. extend: 'Ext.window.Window',
  7. alias: 'widget.erpAssWindow',
  8. height: screen.height*0.7*0.7,
  9. width: screen.width*0.7*0.6,
  10. condition:'',
  11. GridUtil: Ext.create('erp.util.GridUtil'),
  12. BaseUtil: Ext.create('erp.util.BaseUtil'),
  13. layout : 'anchor',
  14. items:[{
  15. autoScroll : true,
  16. anchor: '100% 100%',
  17. id:'windowgrid',
  18. xtype:'assgrid',
  19. condition:caller+'_main'
  20. }],
  21. buttonAlign : 'center',
  22. buttons:[{
  23. name: 'confirm',
  24. text: $I18N.common.button.erpConfirmButton,
  25. iconCls: 'x-button-icon-confirm',
  26. cls: 'x-btn-gray',
  27. style: {
  28. marginLeft: '10px'
  29. },
  30. handler:function(){
  31. var grid = Ext.getCmp('windowgrid');
  32. grid.beforeUpdate();
  33. }
  34. },'-','-',{
  35. text: $I18N.common.button.erpDeleteButton,
  36. iconCls: 'x-button-icon-delete',
  37. cls: 'x-btn-gray',
  38. handler: function(btn){
  39. var grid = Ext.getCmp('windowgrid');
  40. grid.beforeDelete(btn,grid);
  41. }
  42. },'-','-',{
  43. text: $I18N.common.button.erpCloseButton,
  44. iconCls: 'x-button-icon-close',
  45. cls: 'x-btn-gray',
  46. handler: function(){
  47. var main = Ext.getCmp('erpasswin_'+caller);
  48. main.close();
  49. }
  50. }],
  51. initComponent : function(){
  52. this.callParent();
  53. }
  54. });