Bottom.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. xtype: 'tbtext',
  25. text: "<font color=#4D4D4D size=2>售后电话:400-830-1818</font>&nbsp;&nbsp;",
  26. },{
  27. xtype: 'tbtext',
  28. text: "<font color=#4D4D4D size=2>售后邮箱:info@usoftchina.com</font>&nbsp;&nbsp;",
  29. },{
  30. xtype:'tbtext',
  31. html:'<a href="javascript:window.open(\'http://www.usoftchina.com\');"style=text-decoration:none>联系我们</a>'
  32. }]
  33. });
  34. this.callParent(arguments);
  35. },
  36. update: function(obj) {
  37. if (obj) {
  38. var s = this.down('tbtext[name=sob]');
  39. s.setText('<font color=blue>' + obj.sob + '</font>');
  40. }
  41. }
  42. });