Bottom.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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-msg',
  25. cls: 'main-btn-right',
  26. tooltip:'即时沟通',
  27. margins:'0 5 0 0',
  28. handler:function(){
  29. openTable('即时沟通','jsps/oa/info/pagingSent.jsp');
  30. }
  31. },{
  32. iconCls: 'main-btn-link',
  33. cls: 'main-btn-right',
  34. text: "<font color=blue>http://www.usoftchina.com</font>&nbsp;&nbsp;",
  35. handler: function(){
  36. window.open('http://www.usoftchina.com');
  37. }
  38. }]
  39. });
  40. this.callParent(arguments);
  41. },
  42. update: function(obj) {
  43. if (obj) {
  44. var s = this.down('tbtext[name=sob]');
  45. s.setText('<font color=blue>' + obj.sob + '</font>');
  46. }
  47. }
  48. });