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.

242 lines
8.7 KiB
JavaScript

12 months ago
Ext.define('Mainmb', {
extend: 'Ext.data.Model',
idProperty: 'id',
fields: [
{ name: 'ContractNo', type: 'string' },
{ name: 'Seller', type: 'string' },
{ name: 'Buyer', type: 'string' },
{ name: 'HTH', type: 'string' },
{ name: 'Country', type: 'string' },
{ name: 'portRef', type: 'string' },
{ name: 'boxcount', type: 'string' },
{ name: 'price', type: 'string' },
{ name: 'weight', type: 'string' },
{ name: 'amount', type: 'string' },
{ name: 'codename', type: 'string' },
{ name: 'MainStateRef', type: 'string' },
{ name: 'arrivalDate', type: 'string' },
{ name: 'FinanceStatus', type: 'string' },
{ name: 'FinanceStatusRef', 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('Cargomb', {
extend: 'Ext.data.Model',
idProperty: 'id',
fields: [
{ name: 'id', type: 'string' },
{ name: 'ContractNo', type: 'string' },
{ name: 'cargoinfo_id', type: 'string' },
{ name: 'cargociq_id', type: 'string' },
{ name: 'name', type: 'string' },
{ name: 'Unit', type: 'string' },
{ name: 'UnitRate', type: 'string' },
{ name: 'U_PRICE', type: 'number' },
{ name: 'U_weight', type: 'number' },
{ name: 'weight', type: 'number' },
{ name: 'm_weight', type: 'number' },
{ name: 'price', type: 'number' },
{ name: 'price_agio', type: 'number' },
{ name: 'price_limit', type: 'number' },
{ name: 'Amount', type: 'number' },
{ name: 'tax_Amount', type: 'number' },
{ name: 'pay_Amount', type: 'number' },
{ name: 'BoxCount', type: 'number' },
{ name: 'BoxWeight', type: 'number' },
{ name: 'Exporter', type: 'string' },
{ name: 'FactoryNo', type: 'string' },
{ name: 'Productiondate', type: 'string' },
{ name: 'currid', type: 'string' },
{ name: 'prepayments', type: 'number' },
{ name: 'balance', type: 'number' },
{ name: 'Paypart', type: 'string' },
{ name: 'cicode', type: 'string' },
{ name: 'ciname', type: 'string' },
{ name: 'cicodeandname', type: 'string' },
{ name: 'ciqcode', type: 'string' },
{ name: 'ciqname', type: 'string' },
{ name: 'ciqcodeandname', type: 'string' },
{ name: 'codename', type: 'string' },
{ name: 'defaultrate', type: 'string' },
{ name: 'UnitRef', type: 'string' },
{ name: 'paypartRef', type: 'string' },
{ name: 'baolv', type: 'string' },
{ name: 'tariff', type: 'string' },
{ name: 'tax', type: 'number' },
{ name: 'tax_zz', type: 'number' },
{ name: 'tax_cl', type: 'number' },
{ name: 'Declarenumber', type: 'string' },
{ name: 'Exchangerate', type: 'number' }
]
});
Ext.define('CargoRef', {
extend: 'Ext.data.Model',
fields: [
{ name: 'id', type: 'string' },
{ name: 'name', type: 'string' },
{ name: 'codeandname', type: 'string' }
]
});
Ext.define('CargociqRef', {
extend: 'Ext.data.Model',
fields: [
{ name: 'id', type: 'string' },
{ name: 'ciqname', type: 'string' },
{ name: 'codeandname', 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('companymb', {
extend: 'Ext.data.Model',
fields: [
{ name: 'gid', type: 'string' },
{ name: 'name', type: 'string' }
]
});
Ext.define('remind', {
extend: 'Ext.data.Model',
fields: [
{ name: 'RemindName', type: 'string' },
{ name: 'RemindSql', type: 'string' }
]
});
Ext.define('FinanceOutmb', {
extend: 'Ext.data.Model',
idProperty: 'gid',
fields: [
{ name: 'gid', type: 'string' },
{ name: 'FinanceStatus', type: 'string' },
{ name: 'FinanceStatusRef', type: 'string' },
{ name: 'ContractNo', type: 'string' },
{ name: 'Customer', type: 'string' },
{ name: 'Currency', type: 'string' },
{ name: 'ExchangeRate', type: 'string' },
{ name: 'Amount', type: 'string' },
{ name: 'RMBAmount', type: 'string' },
{ name: 'Starttime', type: 'string' },
{ name: 'Endtime', type: 'string' },
{ name: 'Days', type: 'string' },
{ name: 'InterestRate', type: 'string' },
{ name: 'Interest', type: 'string' },
{ name: 'PI', type: 'string' },
{ name: 'TimeMark', type: 'number' },
{ name: 'Remark', type: 'string' },
{ name: 'Shouxu', type: 'string' }
]
});
Ext.define('FOutListmb', {
extend: 'Ext.data.Model',
idProperty: 'gid',
fields: [
{ name: 'gid', type: 'string' },
{ name: 'HTH', type: 'string' },
{ name: 'Customer', type: 'string' },
{ name: 'FinanceStatus', type: 'string' },
{ name: 'ExchangeRate', type: 'string' },
{ name: 'Amount', type: 'string' },
{ name: 'RMBAmount', type: 'string' },
{ name: 'Starttime', type: 'string' },
{ name: 'Endtime', type: 'string' },
{ name: 'Days', type: 'string' },
{ name: 'InterestRate', type: 'string' },
{ name: 'Interest', type: 'string' },
{ name: 'PI', type: 'string' },
{ name: 'TimeMark', type: 'number' },
{ name: 'Remark', type: 'string' }
]
});
Ext.define('FinanceInmb', {
extend: 'Ext.data.Model',
idProperty: 'gid',
fields: [
{ name: 'gid', type: 'string' },
{ name: 'Financestatus', type: 'string' },
{ name: 'FinancestatusRef', type: 'string' },
{ name: 'ContractNo', type: 'string' },
{ name: 'Bank', type: 'string' },
//{ name: 'BankRef', type: 'string' },
{ name: 'Currency', type: 'string' },
{ name: 'ExchangeRate', type: 'string' },
{ name: 'Amount', type: 'string' },
{ name: 'RMBAmount', type: 'string' },
{ name: 'Starttime', type: 'string' },
{ name: 'Endtime', type: 'string' },
{ name: 'Days', type: 'string' },
{ name: 'InterestRate', type: 'string' },
{ name: 'Interest', type: 'string' },
{ name: 'PI', type: 'string' },
{ name: 'TimeMark', type: 'number' },
{ name: 'Remark', type: 'string' }
]
});
/*financestate gid ContractNo
Customer,BankGid,Currency,
inExchangeRate,inAmount,inRMBAmount,
inStart,inEnd,inDays,
inInterestRate,inInterest,inPI
outExchangeRate,outAmount,outRMBAmount,
outStart,outEnd,outDays,
outInterestRate,outInterest,outPI
timemark
remark*/
Ext.define('FOBodymb', {
extend: 'Ext.data.Model',
idProperty: 'id',
fields: [
{ name: 'id', type: 'string' },
{ name: 'ContractNo', type: 'string' },
{ name: 'Repaymentdate', type: 'date' },
{ name: 'Amount', type: 'string' },
{ name: 'Remark', type: 'string' }
]
});
Ext.define('Bankmb', {
extend: 'Ext.data.Model',
idProperty: 'bankname',
fields: [
{ name: 'BankName', type: 'string' }
]
});