IcqForm.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Ext.define('erp.view.oa.info.IcqForm',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.icqform',
  4. id: 'form',
  5. title: '<font color=#000800>网络寻呼</font>',
  6. frame : true,
  7. autoScroll: true,
  8. layout: 'column',
  9. fieldDefaults: {
  10. labelWidth: 55
  11. },
  12. keyField: 'pr_id',
  13. items: [{
  14. xtype: 'hidden',
  15. id: 'pr_id',
  16. name: 'pr_id'
  17. },{
  18. xtype: 'displayfield',
  19. fieldLabel: '发布人',
  20. columnWidth: 1,
  21. msgTarget: 'side',
  22. allowBlank: true,
  23. readOnly: true,
  24. fieldStyle: 'color:#668B8B;',
  25. blankText : '发布人不能为空',
  26. id: 'pr_releaser',
  27. name: 'pr_releaser',
  28. value: em_name + "(" + em_code + ")"
  29. },{
  30. xtype: 'textarea',
  31. fieldLabel: '接收人',
  32. columnWidth: 1,
  33. msgTarget: 'side',
  34. fieldStyle: 'background:#FFFAF0;',
  35. allowBlank: false,
  36. blankText : '接收人不能为空',
  37. id: 'prd_recipient',
  38. height: 23,
  39. readOnly: true,
  40. name: 'prd_recipient'
  41. }, {
  42. xtype: 'hidden',
  43. fieldLabel: '接收人ID',
  44. msgTarget: 'side',
  45. fieldStyle: 'background:#FFFAF0;',
  46. allowBlank: false,
  47. readOnly: true,
  48. blankText : '接收人不能为空',
  49. id: 'prd_recipientid',
  50. name: 'prd_recipientid'
  51. }, {
  52. xtype: 'checkbox',
  53. boxLabel: '发短信',
  54. columnWidth: 1
  55. }, {
  56. xtype: 'textarea',
  57. fieldLabel: '手机',
  58. columnWidth: 1,
  59. msgTarget: 'side',
  60. fieldStyle: 'background:#FFFAF0;',
  61. allowBlank: true,
  62. readOnly: true,
  63. height: 23,
  64. blankText : '手机号码不能为空',
  65. id: 'prd_mobile',
  66. name: 'prd_mobile'
  67. },{
  68. xtype: 'mfilefield',
  69. columnWidth: 1,
  70. id: 'pr_attach',
  71. name: 'pr_attach'
  72. },{
  73. xtype: 'textarea',
  74. height: 200,
  75. columnWidth: 1,
  76. fieldLabel: '内容',
  77. fieldStyle: 'background:#FFFAF0;',
  78. maxLength: 100,
  79. maxLengthText: '限50字以内',
  80. name: 'pr_context',
  81. id: 'pr_context'
  82. }],
  83. buttonAlign: 'center',
  84. buttons: [{
  85. id: 'post',
  86. text: '呼叫',
  87. iconCls: 'x-button-icon-save',
  88. cls: 'x-btn-gray'
  89. },{
  90. id: 'close',
  91. text: '取消',
  92. iconCls: 'x-button-icon-close',
  93. cls: 'x-btn-gray'
  94. }],
  95. initComponent : function(){
  96. this.callParent(arguments);
  97. }
  98. });