KnowledgeSearchForm.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. Ext.define('erp.view.oa.knowledge.KnowledgeSearchForm',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.erpKnowledgeSearchFormPanel',
  4. id: 'searchform',
  5. region: 'north',
  6. frame : true,
  7. header: false,//不显示title
  8. layout : 'column',
  9. autoScroll : true,
  10. defaultType : 'textfield',
  11. labelSeparator : ':',
  12. buttonAlign : 'center',
  13. fieldDefaults : {
  14. margin : '2 2 2 2',
  15. labelAlign : "left",
  16. blankText : $I18N.common.form.blankText
  17. },
  18. FormUtil: Ext.create('erp.util.FormUtil'),
  19. items:[
  20. {
  21. columnWidth:'0.3',
  22. fieldLabel:'全文检索',
  23. name:'search',
  24. id:'search',
  25. xtype:'textfield',
  26. fieldStyle : 'background:#DEDEDE',
  27. }, {
  28. xtype: 'button',
  29. iconCls : 'prev',
  30. //text:'上一行',
  31. scale : "medium" ,
  32. id:'previous',
  33. width: 24,
  34. style:'margin-left:20px; background:#CDCDB4; height:24px;width:24px; border: 0px ;text-decoration: none ;'
  35. }, {
  36. xtype: 'button',
  37. // text:'下一行',
  38. iconCls : 'next',
  39. scale : "medium" ,
  40. id:'next',
  41. width: 24,
  42. style:'margin-left:20px;background:#CDCDB4; height:24px; border: 0px ;text-decoration: none ;'
  43. }],
  44. initComponent : function(){
  45. this.callParent(arguments);
  46. },
  47. });