Bottom.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Ext.define('erp.view.common.main.Bottom',{
  2. extend: 'Ext.Toolbar',
  3. alias: 'widget.erpBottom',
  4. collapsible : true,
  5. initComponent : function(){
  6. Ext.apply(this, {
  7. id:"bottom",
  8. region:"south",
  9. height:25,
  10. items: [{
  11. iconCls: 'main-btn-user',
  12. cls: 'main-btn-left',
  13. text: "<font size='2' class='bottom_left'>" + $I18N.common.main.activeUser + "</font><a id='activeUser' style='color:blue;cursor:pointer;' class='bottom_left' >" + username + "(" + em_name + ")" + "</a>"
  14. },'-','账套:',{
  15. xtype: 'tbtext',
  16. name: 'sob',
  17. text: '<font color=blue>' + sobText + '</font>'
  18. },'->',{
  19. cls: 'process-lazy',
  20. xtype: 'tbtext',
  21. id: 'process-lazy',
  22. text: ''
  23. },{
  24. iconCls: 'main-btn-link',
  25. cls: 'main-btn-right',
  26. text: "<font color=blue>http://www.usoftchina.com</font>&nbsp;&nbsp;",
  27. handler: function(){
  28. window.open('http://www.usoftchina.com');
  29. }
  30. }]
  31. });
  32. this.callParent(arguments);
  33. },
  34. update: function(obj) {
  35. if (obj) {
  36. var s = this.down('tbtext[name=sob]');
  37. s.setText('<font color=blue>' + obj.sob + '</font>');
  38. }
  39. }
  40. });