FormPanel.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. Ext.define('saas.view.money.fundtransfer.FormPanel', {
  2. extend: 'saas.view.core.form.FormPanel',
  3. xtype: 'money-fundtransfer-formpanel',
  4. controller: 'money-fundtransfer-formpanel',
  5. viewModel: 'money-fundtransfer-formpanel',
  6. viewName: 'money-fundtransfer-formpanel',
  7. caller:'FundTransfer',
  8. //字段属性
  9. _title:'其它收入单',
  10. _idField: 'id',
  11. _codeField: 'ft_code',
  12. _statusField: 'ft_status',
  13. _statusCodeField: 'ft_statuscode',
  14. _relationColumn: 'ftd_ftid',
  15. _readUrl:basePath+'money/fundtransfer/read/',
  16. _saveUrl:basePath+'money/fundtransfer/save',
  17. _deleteUrl:basePath+'money/fundtransfer/delete/',
  18. initId:0,
  19. defaultItems: [{
  20. xtype: 'hidden',
  21. name: 'id',
  22. fieldLabel: 'id'
  23. }, {
  24. format : "Y-m-d",
  25. xtype : "datefield",
  26. name : "ft_date",
  27. fieldLabel : "单据日期"
  28. }, {
  29. name : "detailGridField",
  30. xtype : "detailGridField",
  31. storeModel:'saas.model.money.FundTransfer',
  32. detnoColumn: 'ftd_detno',
  33. _deleteDetailUrl:basePath+'fundtransfer/deleteItem/',
  34. columnWidth : 1,
  35. columns : [
  36. {
  37. text : "id",
  38. dataIndex : "id",
  39. xtype : "numbercolumn",
  40. width:0
  41. }, {
  42. text : "期间",
  43. dataIndex : "ftd_ym ",
  44. editor : {
  45. xtype : "numberfield"
  46. },
  47. width : 120.0,
  48. xtype : "numbercolumn",
  49. items : null
  50. }, {
  51. text : "转出账户ID",
  52. dataIndex : "ftd_bankid",
  53. width : 0
  54. }, {
  55. text : "转出账户编号",
  56. dataIndex : "ftd_bankcode",
  57. width : 0
  58. }, {
  59. text : "转出账户",
  60. width : 200.0,
  61. dataIndex : "ftd_bankname",
  62. xtype : "",
  63. items : null,
  64. editor : {
  65. displayField : "display",
  66. editable : true,
  67. format : "",
  68. hideTrigger : false,
  69. maxLength : 100.0,
  70. minValue : null,
  71. positiveNum : false,
  72. queryMode : "local",
  73. store : null,
  74. valueField : "value",
  75. xtype : "dbfindtrigger"
  76. }
  77. }, {
  78. text : "转入账户ID",
  79. dataIndex : "ftd_inbankid",
  80. width : 0
  81. }, {
  82. text : "转入账户编号",
  83. dataIndex : "ftd_inbankcode",
  84. width : 0
  85. }, {
  86. text : "转入账户",
  87. width : 200.0,
  88. dataIndex : "ftd_inbankname",
  89. xtype : "",
  90. items : null,
  91. editor : {
  92. displayField : "display",
  93. editable : true,
  94. format : "",
  95. hideTrigger : false,
  96. maxLength : 100.0,
  97. minValue : null,
  98. positiveNum : false,
  99. queryMode : "local",
  100. store : null,
  101. valueField : "value",
  102. xtype : "dbfindtrigger"
  103. }
  104. }, {
  105. text : "金额",
  106. dataIndex : "ftd_nowbalance",
  107. editor : {
  108. xtype : "numberfield"
  109. },
  110. width : 120.0,
  111. xtype : "numbercolumn",
  112. format:'0',
  113. items : null,
  114. summaryType: 'sum'
  115. }, {
  116. text : "结算方式号",
  117. dataIndex : "ftd_paycode",
  118. width : 0
  119. }, {
  120. text : "结算方式",
  121. width : 200.0,
  122. dataIndex : "ftd_paymethod",
  123. xtype : "",
  124. items : null,
  125. editor : {
  126. displayField : "display",
  127. editable : true,
  128. format : "",
  129. hideTrigger : false,
  130. maxLength : 100.0,
  131. minValue : null,
  132. positiveNum : false,
  133. queryMode : "local",
  134. store : null,
  135. valueField : "value",
  136. xtype : "dbfindtrigger"
  137. }
  138. }, {
  139. text : "备注",
  140. dataIndex : "ftd_remark",
  141. width : 120.0,
  142. items : null,
  143. ignore:true,
  144. flex : 1.0,
  145. editor : {
  146. xtype : ""
  147. }
  148. }
  149. ]
  150. },{
  151. xtype : "textfield",
  152. name : "ft_remark",
  153. fieldLabel : "备注",
  154. allowBlank : true,
  155. columnWidth : 0.75
  156. }, {
  157. xtype : "textfield",
  158. name : "ft_recorder",
  159. fieldLabel : "录入人",
  160. readOnly:true
  161. }, {
  162. format : "Y-m-d",
  163. xtype : "datefield",
  164. name : "ft_recorddate",
  165. fieldLabel : "录入日期",
  166. readOnly:true
  167. }
  168. ]
  169. });