| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- Ext.define('erp.view.common.main.Bottom',{
- extend: 'Ext.Toolbar',
- alias: 'widget.erpBottom',
- collapsible : true,
- initComponent : function(){
- Ext.apply(this, {
- id:"bottom",
- region:"south",
- height:25,
- items: [{
- iconCls: 'main-btn-user',
- cls: 'main-btn-left',
- 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>"
- },'-','账套:',{
- xtype: 'tbtext',
- name: 'sob',
- text: '<font color=blue>' + sobText + '</font>'
- },'->',{
- cls: 'process-lazy',
- xtype: 'tbtext',
- id: 'process-lazy',
- text: ''
- },{
- iconCls: 'main-btn-link',
- cls: 'main-btn-right',
- text: "<font color=blue>http://www.usoftchina.com</font> ",
- handler: function(){
- window.open('http://www.usoftchina.com');
- }
- }]
- });
- this.callParent(arguments);
- },
- update: function(obj) {
- if (obj) {
- var s = this.down('tbtext[name=sob]');
- s.setText('<font color=blue>' + obj.sob + '</font>');
- }
- }
- });
|