QueryWin.js 1.3 KB

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