CmDetailQuery.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Ext.define('erp.view.fa.ars.CmDetailQuery',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. xtype: 'form',
  10. anchor: '100% 5%',
  11. layout: 'column',
  12. bodyStyle: 'background:#f1f1f1;',
  13. buttonAlign: 'center',
  14. bbar: ['期间:', {
  15. xtype: 'tbtext',
  16. id: 'gl_info_ym',
  17. updateInfo: function(args) {
  18. this.setText(args.cm_yearmonth.begin.toString().substr(0,4)+ '年第' +
  19. args.cm_yearmonth.begin.toString().substr(4,5) + '期 到 ' +
  20. args.cm_yearmonth.end.toString().substr(0,4)+ '年第' +
  21. args.cm_yearmonth.end.toString().substr(4,5) + '期');
  22. }
  23. },'-' ,'->',{
  24. name: 'query',
  25. id: 'query',
  26. text: $I18N.common.button.erpQueryButton,
  27. iconCls: 'x-button-icon-query',
  28. cls: 'x-btn-gray',
  29. margin: '0 4 0 0',
  30. handler: function(){
  31. }
  32. },{
  33. name: 'export',
  34. text: $I18N.common.button.erpExportButton,
  35. iconCls: 'x-button-icon-excel',
  36. cls: 'x-btn-gray',
  37. margin: '0 4 0 0'
  38. },{
  39. name: 'print',
  40. text: $I18N.common.button.erpPrintButton,
  41. iconCls: 'x-button-icon-print',
  42. margin: '0 4 0 0',
  43. cls: 'x-btn-gray'
  44. },{
  45. text: $I18N.common.button.erpCloseButton,
  46. iconCls: 'x-button-icon-close',
  47. cls: 'x-btn-gray',
  48. margin: '0 4 0 0',
  49. handler: function(){
  50. var main = parent.Ext.getCmp("content-panel");
  51. main.getActiveTab().close();
  52. }
  53. },'->']
  54. },{
  55. xtype: 'querygrid',
  56. anchor: '100% 95%'
  57. }]
  58. });
  59. me.callParent(arguments);
  60. }
  61. });