You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/Areas/Import/Viewsjs/Finance/FinanceModel.js

203 lines
7.4 KiB
JavaScript

Ext.define('Financemb', {
extend: 'Ext.data.Model',
idProperty: 'F_NO',
fields: [
{ name: 'F_NO', type: 'string' },
{ name: 'F_CURRENCY', type: 'string' },
{ name: 'F_AMOUNT', type: 'number' },
{ name: 'CUSTSTLAMOUNT', type: 'number' },
{ name: 'BANKSTLAMOUNT', type: 'number' },
{ name: 'CUSTBALAMOUNT', type: 'number' },
{ name: 'BANKBALAMOUNT', type: 'number' },
{ name: 'CUSTOMER', type: 'string' },
{ name: 'REMARK', type: 'string' },
{ name: 'OP', type: 'string' },
{ name: 'OPREF', type: 'string' },
{ name: 'ENTERDATE', type: 'string' },
{ name: 'STARTDATE', type: 'string' },
{ name: 'ENDDATE', type: 'string' },
{ name: 'BANKENDDATE', type: 'string' },
{ name: 'DAYS', type: 'number' },
{ name: 'MAINNO', type: 'string' },
{ name: 'F_STATUS', type: 'string' },
{ name: 'FINANCE_BANK', type: 'string' },
{ name: 'HTH', type: 'string' },
{ name: 'seller', type: 'string' },
{ name: 'buyer', type: 'string' },
{ name: 'portRef', type: 'string' }, //
{ name: 'BillNo', type: 'string' },
{ name: 'portRef', type: 'string' }, //
{ name: 'ArrivalDate', type: 'string' },
{ name: 'company', type: 'string' },
{ name: 'companyname', type: 'string' },
{ name: 'BANK_INTEREST_RATE', type: 'string' },
{ name: 'BANK_INTEREST', type: 'string' },
{ name: 'CUST_INTEREST_RATE', type: 'string' },
{ name: 'CUST_INTEREST', type: 'string' },
{ name: 'BANK_EXCHANGERATE', type: 'string' },
{ name: 'CUST_EXCHANGERATE', type: 'string' },
{ name: 'CUST_EXCHANGERATE', type: 'string' },
{ name: 'CUST_EXCHANGERATE', type: 'string' },
{ name: 'CUSTSTLSTATUS', type: 'string' },
{ name: 'BANKNAME', type: 'string' }
]
});
Ext.define('ConutryRef', {
extend: 'Ext.data.Model',
fields: [
{ name: 'countryid', type: 'string' },
{ name: 'country', type: 'string' },
{ name: 'country_idandname', type: 'string' }
]
});
Ext.define('MainstateRef', {
extend: 'Ext.data.Model',
fields: [
{ name: 'id', type: 'string' },
{ name: 'name', type: 'string' },
{ name: 'idandname', type: 'string' }
]
});
Ext.define('currRef', {
extend: 'Ext.data.Model',
idProperty: 'id',
fields: [
{ name: 'gid', type: 'string' },
{ name: 'codename', type: 'string' },
{ name: 'defaultrate', type: 'string' }
]
});
Ext.define('Bankmb', {
extend: 'Ext.data.Model',
idProperty: 'bankname',
fields: [
{ name: 'BankName', type: 'string' }
]
});
Ext.define('Tradermb', {
extend: 'Ext.data.Model',
idProperty: 'gid',
fields: [
{ name: 'gid', type: 'string' },
{ name: 'name', type: 'string' },
{ name: 'codename', type: 'string' },
{ name: 'description', type: 'string' }
]
});
Ext.define('FinanceBodymb', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'F_NO', type: 'string' },
{ name: 'F_CURRENCY', type: 'string' },
{ name: 'F_AMOUNT', type: 'number' },
{ name: 'CUSTOMER', type: 'string' },
{ name: 'BANKID', type: 'string' },
{ name: 'ENDDATE', type: 'date' },
{ name: 'DAYS', type: 'number' },
{ name: 'D_INTEREST_RATE', type: 'number' },
{ name: 'INTEREST_RATE', type: 'number' },
{ name: 'Y_INTEREST_RATE', type: 'number' },
{ name: 'INTEREST', type: 'number' },
{ name: 'INTERESTUSD', type: 'number' },
{ name: 'EXCHANGERATE', type: 'number' },
{ name: 'RMBVALUE', type: 'number' },
{ name: 'HANDFEE', type: 'number' },
{ name: 'TELXFEE', type: 'number' },
{ name: 'OTFEE', type: 'number' },
{ name: 'RMBAMOUNT', type: 'number' },
{ name: 'FINEFEE', type: 'number' },
{ name: 'TTLAMOUNTRMB', type: 'number' },
{ name: 'F_TYPE', type: 'string' },
{ name: 'ISFEE', type: 'string' },
{ name: 'ISFEEREF', type: 'string' },
{ name: 'REMARK', type: 'string' },
{ name: 'ENTERDATE', type: 'string' },
{ name: 'OPREF', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'CUSTNO', type: 'string' }
]
});
Ext.define('FinanceTradeBody', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'F_NO', type: 'string' },
{ name: 'CUSTOMER', type: 'string' },
{ name: 'ID', type: 'string' },
{ name: 'CONTRACTNO', type: 'string' },
{ name: 'HTH', type: 'string' },
{ name: 'COMPANYNAME', type: 'string' },
{ name: 'SELLER', type: 'string' },
{ name: 'BUYER', type: 'string' },
{ name: 'BILLNO', type: 'string' },
{ name: 'ARRIVALDATE', type: 'string' },
{ name: 'PORTREF', type: 'string' },
{ name: 'CURR', type: 'string' },
{ name: 'W_AMOUNT', type: 'number' },
{ name: 'S_AMOUNT', type: 'number' },
{ name: 'R_AMOUNT', type: 'number' }
]
});
Ext.define('FinanceBank', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'F_NO', type: 'string' },
{ name: 'BANK', type: 'string' },
{ name: 'AMOUNT', type: 'number' },
{ name: 'DOAMOUNT', type: 'number' }
]
});
Ext.define('Feemb', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'FEENAME', type: 'string' },
{ name: 'AMOUNT', type: 'string' },
{ name: 'CURRENCY', type: 'string' },
{ name: 'FEETYPE_REF', type: 'string' },
{ name: 'FEESTATUS', type: 'string' },
{ name: 'FEESTATUS_REF', type: 'string' },
{ name: 'REMARK', type: 'string' },
{ name: 'F_NO', type: 'string' }
]
});
Ext.define('Bjmb', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'FeeType', type: 'string' },
{ name: 'Amount', type: 'string' },
{ name: 'Currency', type: 'string' }
]
});
Ext.define('companymb', {
extend: 'Ext.data.Model',
fields: [
{ name: 'gid', type: 'string' },
{ name: 'name', type: 'string' }
]
});