Init.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. Ext.define('erp.view.common.init.Init',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. layout: 'border',
  10. items: [{
  11. region: 'north',
  12. height: "6%",
  13. xtype: 'panel',
  14. layout: {
  15. type: 'hbox'
  16. },
  17. items: [{
  18. xtype: 'panel',
  19. height: '100%',
  20. border: '0 0 0 0',
  21. frame: false,
  22. layout: 'hbox',
  23. layoutConfig: {
  24. padding: '5',
  25. align: 'middle'
  26. },
  27. flex: 0.204,
  28. items: [{
  29. xtype: 'tbtext',
  30. width: 95,
  31. margins: '0 5 0 0',
  32. html: '<img src="' + basePath + 'resource/images/uas.png" width="95" height="45px;" style="padding-left: 10px;padding-top: 0px;padding-bottom: 8px;float: left;"/>'
  33. },{
  34. xtype: 'tbtext',
  35. align: 'stretch',
  36. margins: '10 5 0 0',
  37. text: '<font size="4" >初始化向导</font>'
  38. }]
  39. },{
  40. layout: {
  41. type: 'hbox',
  42. align: 'middle',
  43. pack: 'center'
  44. },
  45. flex: 1,
  46. id: 'northbtn',
  47. items: [{
  48. xtype: 'displayfield',
  49. height: 35,
  50. fieldLabel: '<img src="' + basePath + 'resource/images/init/sign.png">',
  51. labelSeparator: ''
  52. },{
  53. xtype: 'button',
  54. text: '开始',
  55. cls: 'stepon',
  56. step: 1
  57. },{
  58. xtype: 'button',
  59. text: '选择账套',
  60. cls: 'stepoff',
  61. step: 2
  62. },{
  63. xtype: 'button',
  64. text: '启用前检测',
  65. cls: 'stepoff',
  66. step: 3
  67. },{
  68. xtype: 'button',
  69. text: '初始数据引入',
  70. cls: 'stepoff',
  71. step: 4
  72. },{
  73. xtype: 'button',
  74. text: '完成',
  75. cls: 'stepoff',
  76. step: 5
  77. }]
  78. }],
  79. },{
  80. height: "94%",
  81. xtype: 'panel',
  82. region: 'center',
  83. autoScroll: true,
  84. id: 'centerpanel',
  85. items: [{
  86. xtype: 'panel',
  87. height: '100%',
  88. step: 1,
  89. url: 'jsps/common/rule.jsp',
  90. loaded: true,
  91. html: '<iframe height="100%" width="100%" scrolling="auto" src="' + basePath + 'jsps/common/rule.jsp"></iframe>'
  92. },{
  93. xtype: 'panel',
  94. height: '100%',
  95. hidden: true,
  96. step: 2,
  97. url: 'jsps/common/master.jsp',
  98. html: '<iframe height="100%" width="100%" scrolling="auto" src="#"></iframe>'
  99. },{
  100. xtype: 'panel',
  101. height: '100%',
  102. hidden: true,
  103. step: 3,
  104. url: 'jsps/common/checkbase.jsp',
  105. html: '<iframe height="100%" width="100%" scrolling="auto" src="#"></iframe>'
  106. },{
  107. xtype: 'panel',
  108. height: '100%',
  109. hidden: true,
  110. step: 4,
  111. url: 'jsps/common/initstep.jsp',
  112. html: '<iframe height="100%" width="100%" scrolling="auto" src="#"></iframe>'
  113. },{
  114. xtype: 'panel',
  115. height: '100%',
  116. hidden: true,
  117. step: 5,
  118. url: 'jsps/common/afterinit.jsp',
  119. html: '<iframe height="100%" width="100%" scrolling="auto" src="#"></iframe>'
  120. }]
  121. }]
  122. }]
  123. });
  124. me.callParent(arguments);
  125. }
  126. });