QueryWin.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /**
  2. *辅助核算窗口
  3. **/
  4. Ext.define('erp.view.fa.fix.mQuery.QueryWin',{
  5. id:'erpquerywin_'+caller,
  6. extend: 'Ext.window.Window',
  7. alias: 'widget.erpMQueryWindow',
  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:'cmqueryform_'+caller,
  18. xtype:'erpMQueryFormPanel',
  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 form = Ext.getCmp('mqueryform_'+caller);
  32. form.onQuery();
  33. var win = Ext.getCmp('erpquerywin_'+caller);
  34. win.close();
  35. }
  36. },'-','-',{
  37. text: $I18N.common.button.erpDeleteButton,
  38. iconCls: 'x-button-icon-delete',
  39. cls: 'x-btn-gray',
  40. handler: function(btn){
  41. var form = Ext.getCmp('mqueryform_'+caller);
  42. form.beforeDelete(btn,grid);
  43. }
  44. },'-','-',{
  45. text: $I18N.common.button.erpCloseButton,
  46. iconCls: 'x-button-icon-close',
  47. cls: 'x-btn-gray',
  48. handler: function(){
  49. var main = Ext.getCmp('erpquerywin_'+caller);
  50. main.close();
  51. }
  52. }],
  53. initComponent : function(){
  54. this.callParent();
  55. }
  56. });