JprocessTemplateSet.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Ext.define('erp.view.ma.jprocess.JprocessTemplateSet',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. id: 'Viewport',
  10. layout: 'auto',
  11. autoScroll: true,
  12. xtype: 'panel',
  13. style: {
  14. background: '#FFFFFF'
  15. },
  16. items: [{
  17. id: 'app-header',
  18. xtype: 'box',
  19. height: 5,
  20. style: 'background: #D4D4D4;color: #596F8F;font-size: 16px;font-weight: 200;padding: 5px 5px;text-shadow: 0 1px 0 #fff'
  21. },{
  22. xtype: 'toolbar',
  23. id: 'currentNodeToolbar',
  24. layout: {
  25. type: 'hbox',
  26. align: 'right'
  27. },
  28. bodyStyle: {
  29. background: "#D4D4D4",
  30. border: 'none'
  31. },
  32. style: {
  33. background: "#D4D4D4",
  34. border: 'none'
  35. },
  36. items: [
  37. '->', {
  38. xtype: 'tbtext',
  39. id: 'label1',
  40. text: '<span style="font-weight: bold !important;font-size:18px">普通流程模板</span>'
  41. },'->']
  42. },{
  43. xtype:'tabpanel',
  44. bodyStyle:{
  45. border:'none'
  46. },
  47. bodyBorder:false,
  48. items: [{
  49. xtype: 'erpFormPanel',
  50. anchor: '100% 100%',
  51. saveUrl: 'common/saveJprocessTemplate.action',
  52. deleteUrl: 'common/deleteJprocessTemplate.action',
  53. updateUrl: 'common/updateJprocessTemplate.action',
  54. auditUrl: 'common/auditJprocessTemplate.action',
  55. resAuditUrl: 'common/resAuditJprocessTemplate.action',
  56. submitUrl: 'common/submitJprocessTemplate.action',
  57. resSubmitUrl: 'common/resSubmitJprocessTemplate.action',
  58. getIdUrl: 'common/getId.action?seq=JPROCESSTEMPLATE_SEQ',
  59. keyField: 'pt_id',
  60. statuscodeField: 'pt_statuscode'
  61. },{
  62. title:'审批流程',
  63. frame:true,
  64. id:'workflow'
  65. }]
  66. }]
  67. }]
  68. });
  69. me.callParent(arguments);
  70. }
  71. });