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/MvcShipping/Viewsjs/MsChDui/MsChDuiModel.js

159 lines
6.7 KiB
JavaScript

2 years ago
Ext.define('MsChDui', {
extend: 'Ext.data.Model',
idProperty: 'DUINO',
fields: [
{ name: 'DUINO', type: 'string' },
{ name: 'CUSTNAME', type: 'string' },
{ name: 'DUIDATE', type: 'string' },
{ name: 'OP', type: 'string' },
{ name: 'DUINAME', type: 'string' },
{ name: 'DM_ID', type: 'string' },
{ name: 'DC', type: 'string' },
{ name: 'ISNOSTL', type: 'string' },
{ name: 'ISNOTAX', type: 'string' },
{ name: 'BILLSTATUS', type: 'string' },
{ name: 'BILLSTATUSREF', type: 'string' },
{ name: 'RMBDR', type: 'number' },
{ name: 'RMBCR', type: 'number' },
{ name: 'BALRMBDR', type: 'number' },
{ name: 'BALRMBCR', type: 'number' },
{ name: 'USDDR', type: 'number' },
{ name: 'USDCR', type: 'number' },
{ name: 'BALUSDDR', type: 'number' },
{ name: 'BALUSDCR', type: 'number' },
{ name: 'OTDR', type: 'number' },
{ name: 'OTCR', type: 'number' },
{ name: 'BALOTDR', type: 'number' },
{ name: 'BALOTCR', type: 'number' },
{ name: 'TTLDR', type: 'number' },
{ name: 'TTLCR', type: 'number' },
{ name: 'BALTTLDR', type: 'number' },
{ name: 'BALTTLCR', type: 'number' },
{ name: 'REMARKS', type: 'string' },
{ name: 'ISINVOICE', type: 'string' }
]
});
Ext.define('MsChDuiBill', {
extend: 'Ext.data.Model',
fields: [
{ name: 'DUINO', type: 'string' },
{ name: 'OPLBNAME', type: 'string' },
{ name: 'ISDEBIT', type: 'string' },
{ name: 'DUIFEESTATUS', type: 'string' },
{ name: 'FEESTATUSREF', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'MBLNO', type: 'string' },
{ name: 'HBLNO', type: 'string' },
{ name: 'CUSTNO', type: 'string' },
{ name: 'ORDERNO', type: 'string' },
{ name: 'CUSTOMNO', type: 'string' },
{ name: 'CUSTOMERNAME', type: 'string' },
{ name: 'VESSEL', type: 'string' },
{ name: 'VOYNO', type: 'string' },
{ name: 'ETD', type: 'date', dateFormat: 'Y-m-d' },
{ name: 'ACCDATE', type: 'string' },
{ name: 'SALE', type: 'string' },
{ name: 'SALECORP', type: 'string' },
{ name: 'OP', type: 'string' },
{ name: 'CNTRTOTAL', type: 'string' },
{ name: 'FEEOBJNAME', type: 'string' },
{ name: 'PORTLOAD', type: 'string' },
{ name: 'PORTDISCHARGE', type: 'string' },
{ name: 'INPUTBY', type: 'string' },
{ name: 'RMBDR', type: 'number' },
{ name: 'RMBCR', type: 'number' },
{ name: 'BALRMBDR', type: 'number' },
{ name: 'BALRMBCR', type: 'number' },
{ name: 'USDDR', type: 'number' },
{ name: 'USDCR', type: 'number' },
{ name: 'BALUSDDR', type: 'number' },
{ name: 'BALUSDCR', type: 'number' },
{ name: 'OTDR', type: 'number' },
{ name: 'OTCR', type: 'number' },
{ name: 'BALOTDR', type: 'number' },
{ name: 'BALOTCR', type: 'number' },
{ name: 'TTLDR', type: 'number' },
{ name: 'TTLCR', type: 'number' },
{ name: 'BALTTLDR', type: 'number' },
{ name: 'BALTTLCR', type: 'number' },
{ name: 'RMBORDERINVOICEDR', type: 'number' },
{ name: 'USDORDERINVOICEDR', type: 'number' },
{ name: 'RMBORDERAMOUNTCR', type: 'number' },
{ name: 'USDORDERAMOUNTCR', type: 'number' }
]
});
Ext.define('MsChDuiDetail', {
extend: 'Ext.data.Model',
idProperty: 'DUINO,BSNO',
fields: [
{ name: 'DUINO', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'CH_ID', type: 'string' },
{ name: 'FeeType_Ref', type: 'string' },
{ name: 'FeeName', type: 'string' },
{ name: 'CustomerName', type: 'string' },
{ name: 'Amount', type: 'number' },
{ name: 'NoTaxAmount', type: 'number' },
{ name: 'BalAmount', type: 'number' },
{ name: 'Currency', type: 'string' },
{ name: 'ExChangerate', type: 'number' },
{ name: 'Remark', type: 'string' }
]
});
Ext.define('MsDuiBill', {
extend: 'Ext.data.Model',
idProperty: 'BSNO,DUINO',
fields: [
{ name: 'BSNO', type: 'string' },
{ name: 'BSSTATUS', type: 'boolean' },
{ name: 'ISDEBIT', type: 'string' },
{ name: 'DUINO', type: 'string' },
{ name: 'ACCDATE', type: 'string' },
{ name: 'OPLB', type: 'string' },
{ name: 'OPLBNAME', type: 'string' },
{ name: 'MBLNO', type: 'string' },
{ name: 'HBLNO', type: 'string' },
{ name: 'ORDERNO', type: 'string' },
{ name: 'CUSTNO', type: 'string' },
{ name: 'CUSTOMERNAME', type: 'string' },
{ name: 'VESSEL', type: 'string' },
{ name: 'VOYNO', type: 'string' },
{ name: 'ETD', type: 'date' },
{ name: 'PORTLOAD', type: 'string' },
{ name: 'PORTDISCHARGE', type: 'string' },
{ name: 'INPUTBY', type: 'string' },
{ name: 'OP', type: 'string' },
{ name: 'CNTRTOTAL', type: 'string' },
{ name: 'CUSTSERVICE', type: 'string' },
{ name: 'DOC', type: 'string' },
{ name: 'SALE', type: 'string' }
]
});
Ext.define('MsChDuiSelectSum', {
extend: 'Ext.data.Model',
idProperty: 'CURRENCY',
fields: [
{ name: 'CURRENCY', type: 'string' },
{ name: 'DR', type: 'number' },
{ name: 'NODR', type: 'number' },
{ name: 'CR', type: 'number' },
{ name: 'NOCR', type: 'number' }
]
});
Ext.define('MsFeeCurr', {
extend: 'Ext.data.Model',
idProperty: 'CURR',
fields: [
{ name: 'CURR', type: 'string' },
{ name: 'DEFRATE', type: 'number' },
{ name: 'CRDEFRATE', type: 'number' }
]
});