|
|
@@ -0,0 +1,173 @@
|
|
|
+Ext.define('saas.view.money.fundtransfer.FormPanel', {
|
|
|
+ extend: 'saas.view.core.form.FormPanel',
|
|
|
+ xtype: 'money-fundtransfer-formpanel',
|
|
|
+
|
|
|
+ controller: 'money-fundtransfer-formpanel',
|
|
|
+ viewModel: 'money-fundtransfer-formpanel',
|
|
|
+
|
|
|
+ viewName: 'money-fundtransfer-formpanel',
|
|
|
+ caller:'FundTransfer',
|
|
|
+
|
|
|
+ //字段属性
|
|
|
+ _title:'其它收入单',
|
|
|
+ _idField: 'id',
|
|
|
+ _codeField: 'ft_code',
|
|
|
+ _statusField: 'ft_status',
|
|
|
+ _statusCodeField: 'ft_statuscode',
|
|
|
+ _relationColumn: 'ftd_ftid',
|
|
|
+ _readUrl:basePath+'money/fundtransfer/read/',
|
|
|
+ _saveUrl:basePath+'money/fundtransfer/save',
|
|
|
+ _deleteUrl:basePath+'money/fundtransfer/delete/',
|
|
|
+ initId:0,
|
|
|
+
|
|
|
+ defaultItems: [{
|
|
|
+ xtype: 'hidden',
|
|
|
+ name: 'id',
|
|
|
+ fieldLabel: 'id'
|
|
|
+ }, {
|
|
|
+ format : "Y-m-d",
|
|
|
+ xtype : "datefield",
|
|
|
+ name : "ft_date",
|
|
|
+ fieldLabel : "单据日期"
|
|
|
+ }, {
|
|
|
+ name : "detailGridField",
|
|
|
+ xtype : "detailGridField",
|
|
|
+ storeModel:'saas.model.money.FundTransfer',
|
|
|
+ detnoColumn: 'ftd_detno',
|
|
|
+ _deleteDetailUrl:basePath+'fundtransfer/deleteItem/',
|
|
|
+ columnWidth : 1,
|
|
|
+ columns : [
|
|
|
+ {
|
|
|
+ text : "id",
|
|
|
+ dataIndex : "id",
|
|
|
+ xtype : "numbercolumn",
|
|
|
+ width:0
|
|
|
+ }, {
|
|
|
+ text : "期间",
|
|
|
+ dataIndex : "ftd_ym ",
|
|
|
+ editor : {
|
|
|
+ xtype : "numberfield"
|
|
|
+ },
|
|
|
+ width : 120.0,
|
|
|
+ xtype : "numbercolumn",
|
|
|
+ items : null
|
|
|
+ }, {
|
|
|
+ text : "转出账户ID",
|
|
|
+ dataIndex : "ftd_bankid",
|
|
|
+ width : 0
|
|
|
+ }, {
|
|
|
+ text : "转出账户编号",
|
|
|
+ dataIndex : "ftd_bankcode",
|
|
|
+ width : 0
|
|
|
+ }, {
|
|
|
+ text : "转出账户",
|
|
|
+ width : 200.0,
|
|
|
+ dataIndex : "ftd_bankname",
|
|
|
+ xtype : "",
|
|
|
+ items : null,
|
|
|
+ editor : {
|
|
|
+ displayField : "display",
|
|
|
+ editable : true,
|
|
|
+ format : "",
|
|
|
+ hideTrigger : false,
|
|
|
+ maxLength : 100.0,
|
|
|
+ minValue : null,
|
|
|
+ positiveNum : false,
|
|
|
+ queryMode : "local",
|
|
|
+ store : null,
|
|
|
+ valueField : "value",
|
|
|
+ xtype : "dbfindtrigger"
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text : "转入账户ID",
|
|
|
+ dataIndex : "ftd_inbankid",
|
|
|
+ width : 0
|
|
|
+ }, {
|
|
|
+ text : "转入账户编号",
|
|
|
+ dataIndex : "ftd_inbankcode",
|
|
|
+ width : 0
|
|
|
+ }, {
|
|
|
+ text : "转入账户",
|
|
|
+ width : 200.0,
|
|
|
+ dataIndex : "ftd_inbankname",
|
|
|
+ xtype : "",
|
|
|
+ items : null,
|
|
|
+ editor : {
|
|
|
+ displayField : "display",
|
|
|
+ editable : true,
|
|
|
+ format : "",
|
|
|
+ hideTrigger : false,
|
|
|
+ maxLength : 100.0,
|
|
|
+ minValue : null,
|
|
|
+ positiveNum : false,
|
|
|
+ queryMode : "local",
|
|
|
+ store : null,
|
|
|
+ valueField : "value",
|
|
|
+ xtype : "dbfindtrigger"
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text : "金额",
|
|
|
+ dataIndex : "ftd_nowbalance",
|
|
|
+ editor : {
|
|
|
+ xtype : "numberfield"
|
|
|
+ },
|
|
|
+ width : 120.0,
|
|
|
+ xtype : "numbercolumn",
|
|
|
+ format:'0',
|
|
|
+ items : null,
|
|
|
+ summaryType: 'sum'
|
|
|
+ }, {
|
|
|
+ text : "结算方式号",
|
|
|
+ dataIndex : "ftd_paycode",
|
|
|
+ width : 0
|
|
|
+ }, {
|
|
|
+ text : "结算方式",
|
|
|
+ width : 200.0,
|
|
|
+ dataIndex : "ftd_paymethod",
|
|
|
+ xtype : "",
|
|
|
+ items : null,
|
|
|
+ editor : {
|
|
|
+ displayField : "display",
|
|
|
+ editable : true,
|
|
|
+ format : "",
|
|
|
+ hideTrigger : false,
|
|
|
+ maxLength : 100.0,
|
|
|
+ minValue : null,
|
|
|
+ positiveNum : false,
|
|
|
+ queryMode : "local",
|
|
|
+ store : null,
|
|
|
+ valueField : "value",
|
|
|
+ xtype : "dbfindtrigger"
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text : "备注",
|
|
|
+ dataIndex : "ftd_remark",
|
|
|
+ width : 120.0,
|
|
|
+ items : null,
|
|
|
+ ignore:true,
|
|
|
+ flex : 1.0,
|
|
|
+ editor : {
|
|
|
+ xtype : ""
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },{
|
|
|
+ xtype : "textfield",
|
|
|
+ name : "ft_remark",
|
|
|
+ fieldLabel : "备注",
|
|
|
+ allowBlank : true,
|
|
|
+ columnWidth : 0.75
|
|
|
+ }, {
|
|
|
+ xtype : "textfield",
|
|
|
+ name : "ft_recorder",
|
|
|
+ fieldLabel : "录入人",
|
|
|
+ readOnly:true
|
|
|
+ }, {
|
|
|
+ format : "Y-m-d",
|
|
|
+ xtype : "datefield",
|
|
|
+ name : "ft_recorddate",
|
|
|
+ fieldLabel : "录入日期",
|
|
|
+ readOnly:true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+});
|