PagingDetailForm.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Ext.define('erp.view.oa.info.PagingDetailForm',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.erpPagingDetailFormPanel',
  4. id: 'form',
  5. FormUtil: Ext.create('erp.util.FormUtil'),
  6. region: 'center',
  7. frame : true,
  8. fieldDefaults: {
  9. labelWidth: 75,
  10. cls: 'form-field-border',
  11. fieldStyle: 'background:#f1f1f1;',
  12. readOnly: true
  13. },
  14. layout: {
  15. type: 'vbox',
  16. align: 'stretch'
  17. },
  18. items: [{
  19. xtype: 'textfield',
  20. fieldLabel: '发布人',
  21. id:'pr_releaser',
  22. name: 'pr_releaser'
  23. }, {
  24. xtype: 'datetimefield',
  25. fieldLabel: '发布时间',
  26. id:'pr_date',
  27. name: 'pr_date'
  28. }, {
  29. xtype: 'textfield',
  30. fieldLabel: '接收人',
  31. id:'prd_recipient',
  32. name: 'prd_recipient'
  33. }, {
  34. xtype: 'mfilefield',
  35. fieldLabel: '附件',
  36. name: 'pr_attach',
  37. id: 'pr_attach'
  38. },{
  39. xtype: 'textarea',
  40. height: 160,
  41. name: 'pr_context',
  42. id: 'pr_context',
  43. fieldLabel: '寻呼内容'
  44. },{
  45. xtype: 'textarea',
  46. height: 160,
  47. name: 'pr_context_r',
  48. id: 'pr_context_r',
  49. fieldLabel: '我的回复',
  50. readOnly: false,
  51. fieldStyle: 'background:#FFFAF0;',
  52. },{
  53. xtype: 'hidden',
  54. id: 'pr_id',
  55. name: 'pr_id'
  56. },{
  57. xtype: 'hidden',
  58. id: 'prd_id',
  59. name: 'prd_id'
  60. },{
  61. xtype: 'hidden',
  62. id: 'pr_releaserid',
  63. name: 'pr_releaserid'
  64. },{
  65. xtype: 'hidden',
  66. id: 'prd_recipientid',
  67. name: 'prd_recipientid'
  68. },{
  69. xtype: 'hidden',
  70. id: 'prd_status',
  71. name: 'prd_status'
  72. }],
  73. buttonAlign: 'center',
  74. buttons: [{
  75. id: 'post',
  76. text: '回复',
  77. iconCls: 'group-read',
  78. cls: 'x-btn-gray'
  79. },{
  80. id: 'delete',
  81. text: '删除',
  82. iconCls: 'group-delete',
  83. cls: 'x-btn-gray'
  84. },{
  85. id: 'close',
  86. text: '转发',
  87. iconCls: 'group-post',
  88. cls: 'x-btn-gray'
  89. },{
  90. id: 'draft',
  91. iconCls: 'group-draft',
  92. text: "保留",
  93. cls: 'x-btn-gray'
  94. },{
  95. id: 'close',
  96. text: '关闭',
  97. iconCls: 'group-close',
  98. cls: 'x-btn-gray'
  99. }],
  100. keyField: 'prd_id',
  101. initComponent : function(){
  102. this.callParent(arguments);
  103. this.FormUtil.getFieldsValue('PagingRelease left join PagingReleaseDetail on pr_id=prd_prid',
  104. 'pr_releaser,pr_releaserid,pr_date,pr_context,pr_attach,prd_id,prd_recipientid,prd_recipient,prd_status',
  105. getUrlParam('formCondition').replace(/IS/g, '='),
  106. 'pr_releaser,pr_releaserid,pr_date,pr_context,pr_attach,prd_id,prd_recipientid,prd_recipient,prd_status');
  107. }
  108. });