AutoJprocess.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. Ext.define('erp.view.common.JProcess.AutoJprocess',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. initComponent : function(){
  5. var me = this;
  6. Ext.apply(me, {
  7. items: [{
  8. }]
  9. });
  10. me.callParent(arguments);
  11. },
  12. createTaskForm : function() {
  13. var me = this;
  14. return Ext.create('Ext.form.Panel', {
  15. bodyStyle : 'background:#f1f2f5;border:none;',
  16. layout : 'column',
  17. anchor:'100% 100%',
  18. defaults : {
  19. columnWidth : 1/3,
  20. margin : '2 2 2 2'
  21. },
  22. items : [{
  23. xtype : 'textfield',
  24. name : 'ap_title',
  25. fieldLabel : '主题',
  26. allowBlank : false,
  27. fieldStyle:'border:true'
  28. },{
  29. xtype : 'textfield',
  30. name : 'ap_code',
  31. fieldLabel: '申请单号',
  32. readOnly : true
  33. },{
  34. xtype : 'textfield',
  35. name : 'ap_kind',
  36. fieldLabel: '流程类别',
  37. readOnly : true
  38. },{
  39. xtype : 'textfield',
  40. name : 'ap_feedbackman',
  41. fieldLabel: '实施反馈人',
  42. readOnly : true
  43. },{
  44. xtype : 'textfield',
  45. name : 'ap_name',
  46. fieldLabel: '流程名称',
  47. readOnly : true
  48. },{
  49. xtype : 'datetimefield',
  50. name : 'ap_date',
  51. fieldLabel : '创建时间',
  52. value : new Date()
  53. },{
  54. xtype : 'textfield',
  55. name : 'ap_man',
  56. fieldLabel: '申请人',
  57. readOnly : true
  58. },{
  59. xtype : 'textfield',
  60. name : 'ap_depart',
  61. fieldLabel: '申请部门',
  62. readOnly : true
  63. },{
  64. xtype : 'textfield',
  65. name : 'ap_description',
  66. fieldLabel: '简要说明',
  67. readOnly : true
  68. },{
  69. xtype : 'textfield',
  70. name : 'ap_readpersons',
  71. fieldLabel: '阅读人员',
  72. readOnly : true
  73. },{
  74. xtype : 'textfield',
  75. name : 'ap_readjobs',
  76. fieldLabel: '阅读人员岗位',
  77. readOnly : true
  78. },{
  79. xtype : 'textfield',
  80. name : 'ap_flowpersons',
  81. fieldLabel: '阅读审批人员',
  82. readOnly : true
  83. },{
  84. xtype : 'textfield',
  85. name : 'ap_flowjobs',
  86. fieldLabel: '阅读审批人员岗位',
  87. readOnly : true
  88. },{
  89. xtype : 'mfilefield',
  90. name : 'ap_attach',
  91. fieldLabel : '附件信息',
  92. value : 24
  93. },{
  94. xtype : 'textfield',
  95. name : 'ap_keywords',
  96. fieldLabel: '知识关联',
  97. readOnly : true
  98. },{
  99. xtype : 'textfield',
  100. name : 'ap_caller',
  101. readOnly:true
  102. }],
  103. buttonAlign : 'center',
  104. buttons : [{
  105. text : '重置',
  106. cls : 'x-btn-blue',
  107. handler : function(b) {
  108. b.ownerCt.ownerCt.getForm().reset();
  109. }
  110. },{
  111. text : '确定',
  112. cls : 'x-btn-blue',
  113. formBind: true,
  114. handler : function(b) {
  115. me.onTaskAdd(b.ownerCt.ownerCt);
  116. }
  117. },{
  118. text : '关闭',
  119. cls : 'x-btn-blue',
  120. handler : function(b) {
  121. b.ownerCt.ownerCt.ownerCt.hide();
  122. }
  123. }]
  124. });
  125. }
  126. });