FinalCheckCheckForm.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Ext.define('erp.view.fa.ars.FinalCheckCheckForm',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.FinalCheckCheck',
  4. id: 'form',
  5. // title: '期末结账检查',
  6. region: 'center',
  7. frame : true,
  8. autoScroll : true,
  9. buttonAlign : 'center',
  10. FormUtil: Ext.create('erp.util.FormUtil'),
  11. confirmUrl:'',
  12. fieldDefaults : {
  13. margin : '4 2 4 2',
  14. fieldStyle : "background:#FFFAFA;color:#515151;",
  15. labelAlign : "right",
  16. // msgTarget: 'side',
  17. blankText : $I18N.common.form.blankText
  18. },
  19. initComponent : function(){
  20. this.callParent(arguments);
  21. /*this.title = this.FormUtil.getActiveTab().title;*/
  22. },
  23. layout: 'anchor',
  24. items: [
  25. {
  26. // anchor: '100% 30%',
  27. boxLabel: null,
  28. checked: false,
  29. cls: "form-field-allowBlank",
  30. columnWidth: 0.33333334,
  31. displayField: null,
  32. editable: false,
  33. fieldStyle: "background:#FFFAFA;color:#515151;",
  34. xtype: 'textfield',
  35. fieldLabel: '',
  36. allowBlank: false,
  37. id: 'labelbuttontext',
  38. name: 'labelbuttontext',
  39. readOnly :true,
  40. value:'期末结账检查'
  41. // xtype: 'textfield',
  42. // fieldLabel: '',
  43. // allowBlank: false,
  44. // id: 'text',
  45. // name: 'text',
  46. // readOnly :true,
  47. // value:'期末结账检查'
  48. }, Ext.create('Ext.grid.Panel', {
  49. id : 'grid',
  50. emptyText : '无数据',
  51. columnLines : true,
  52. autoScroll : true,
  53. store : new Ext.data.Store({
  54. fields:[
  55. {'name':'test1','type':'string'},
  56. {'name':'test2','type':'string'},
  57. {'name':'test3','type':'string'},
  58. {'name':'test4','type':'string'},
  59. {'name':'test5','type':'string'}
  60. ],
  61. data:[['','','','',''],['','','','',''],['','','','','']],
  62. autoLoad:true
  63. }),
  64. columns : [
  65. {'text':'test1','width':100,'cls':'x-grid-header-1','dataIndex':'test1','sortable':false},
  66. {'text':'test2','width':100,'cls':'x-grid-header-1','dataIndex':'test2','sortable':false},
  67. {'text':'test3','width':100,'cls':'x-grid-header-1','dataIndex':'test3','sortable':false},
  68. {'text':'test4','width':100,'cls':'x-grid-header-1','dataIndex':'test4','sortable':false},
  69. {'text':'test5','width':100,'cls':'x-grid-header-1','dataIndex':'test5','sortable':false}
  70. ]
  71. })
  72. ],
  73. buttons: [
  74. {
  75. name: 'confirm',
  76. text: $I18N.common.button.erpConfirmButton,
  77. iconCls: 'x-button-icon-confirm',
  78. cls: 'x-btn-gray',
  79. style: {
  80. marginLeft: '10px'
  81. }
  82. },'-','-',{
  83. text: $I18N.common.button.erpCloseButton,
  84. iconCls: 'x-button-icon-close',
  85. cls: 'x-btn-gray',
  86. handler: function(){
  87. var main = parent.Ext.getCmp("content-panel");
  88. main.getActiveTab().close();
  89. }
  90. }
  91. /*{
  92. xtype: 'erpConfirmButton'
  93. },'-','-',{
  94. xtype:'erpCloseButton'
  95. }*/]
  96. });