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.

355 lines
13 KiB
JavaScript

Ext.define('MsPrice_ContractIndexmb', {
extend: 'Ext.data.Model',
idProperty: 'BSNO',
fields: [
{ name: 'BSNO', type: 'string' },
{ name: 'CONTRACTNO', type: 'string' },
{ name: 'CARRIER', type: 'string' },
{ name: 'EFFECTIVEDATE', type: 'string' },
{ name: 'VALIDDATE', type: 'string' },
{ name: 'PORTLOADCOMMASTR', type: 'string' },
{ name: 'PORTDISCHARGECOMMASTR', type: 'string' },
{ name: 'VIACOMMASTR', type: 'string' },
{ name: 'CREATOR', type: 'string' },
{ name: 'CREATETIME', type: 'string' },
{ name: 'REMARK', type: 'string' },
{ name: 'CSTATUS', type: 'string' },
{ name: 'CSTATUSREF', type: 'string' },
{ name: 'TIMEMARK', type: 'string' },
{ name: 'MadePrice', type: 'string' }
]
});
Ext.define('MsPrice_Contract_Detailmb', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'SEQUENCE', type: 'number' },
{ name: 'FEENAME', type: 'string' },
{ name: 'CTN0', type: 'number' },
{ name: 'CTN1', type: 'number' },
{ name: 'CTN2', type: 'number' },
{ name: 'CTN3', type: 'number' },
{ name: 'CTN4', type: 'number' },
{ name: 'PODLOAD', type: 'string' },
{ name: 'PORTDISCHARGE', type: 'string' },
{ name: 'VIA', type: 'string' },
{ name: 'VIA2', type: 'string' }
]
});
Ext.define('PORTLOADmb', {
extend: 'Ext.data.Model',
idProperty: 'PORT',
fields: [
{ name: 'PORT', type: 'string' }
]
});
Ext.define('PORTDISCHARGEmb', {
extend: 'Ext.data.Model',
idProperty: 'PORT',
fields: [
{ name: 'PORT', type: 'string' }
]
});
Ext.define('Waymb', {
extend: 'Ext.data.Model',
idProperty: 'ID',
fields: [
{ name: 'ID', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'PODLOAD', type: 'string' },
{ name: 'PORTDISCHARGE', type: 'string' },
{ name: 'VIA', type: 'string' },
{ name: 'VIA2', type: 'string' },
{ name: 'ETD', type: 'string' },
{ name: 'TT', type: 'number' } ]
});
Ext.define('PortDetentionmb', {
extend: 'Ext.data.Model',
idProperty: 'ID',
fields: [
{ name: 'ID', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'PORTDISCHARGE', type: 'string' },
{ name: 'CTN0', type: 'string' },
{ name: 'CTN1', type: 'string' },
{ name: 'CTN2', type: 'string' },
{ name: 'CTN3', type: 'string' },
{ name: 'CTN4', type: 'string' }
]
});
Ext.define('MsPrice_QuotationIndexmb', {
extend: 'Ext.data.Model',
idProperty: 'BSNO',
fields: [
{ name: 'BSNO', type: 'string' },
{ name: 'CUSTOMERNAME', type: 'string' },
{ name: 'EFFECTIVEDATE', type: 'string' },
{ name: 'VALIDDATE', type: 'string' },
{ name: 'CREATOR', type: 'string' },
{ name: 'CREATETIME', type: 'string' },
{ name: 'PDFURL', type: 'string' },
{ name: 'TIMEMARK', type: 'string' },
{ name: 'REMARK', type: 'string' }
]
});
Ext.define('MsPrice_Quotation_Detailmb', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'SEQUENCE', type: 'string' },
{ name: 'LANE', type: 'string' },
{ name: 'PODLOAD', type: 'string' },
{ name: 'PORTDISCHARGE', type: 'string' },
{ name: 'CARRIER', type: 'string' },
{ name: 'VIA', type: 'string' },
{ name: 'VIA2', type: 'string' },
{ name: 'ETD', type: 'string' },
{ name: 'TT', type: 'string' },
{ name: 'EFFECTIVEDATE', type: 'date' },
{ name: 'VALIDDATE', type: 'date' },
{ name: 'COMMODITY', type: 'string' },
{ name: 'REMARK', type: 'string' },
{ name: 'INPUTBY', type: 'string' },
{ name: 'INPUTTIME', type: 'string' },
{ name: 'MODIFIEDUSER', type: 'string' },
{ name: 'MODIFYTIME', type: 'string' },
{ name: 'FEE0', type: 'string' },
{ name: 'FEE1', type: 'string' },
{ name: 'FEE2', type: 'string' },
{ name: 'FEE3', type: 'string' },
{ name: 'FEE4', type: 'string' },
{ name: 'CTN00', type: 'string' },
{ name: 'CTN10', type: 'string' },
{ name: 'CTN20', type: 'string' },
{ name: 'CTN30', type: 'string' },
{ name: 'CTN40', type: 'string' },
{ name: 'CTN50', type: 'string' },
{ name: 'CTN60', type: 'string' },
{ name: 'CTN70', type: 'string' },
{ name: 'CTN80', type: 'string' },
{ name: 'CTN90', type: 'string' },
{ name: 'CTN01', type: 'string' },
{ name: 'CTN11', type: 'string' },
{ name: 'CTN21', type: 'string' },
{ name: 'CTN31', type: 'string' },
{ name: 'CTN41', type: 'string' },
{ name: 'CTN51', type: 'string' },
{ name: 'CTN61', type: 'string' },
{ name: 'CTN71', type: 'string' },
{ name: 'CTN81', type: 'string' },
{ name: 'CTN91', type: 'string' },
{ name: 'CTN02', type: 'string' },
{ name: 'CTN12', type: 'string' },
{ name: 'CTN22', type: 'string' },
{ name: 'CTN32', type: 'string' },
{ name: 'CTN42', type: 'string' },
{ name: 'CTN52', type: 'string' },
{ name: 'CTN62', type: 'string' },
{ name: 'CTN72', type: 'string' },
{ name: 'CTN82', type: 'string' },
{ name: 'CTN92', type: 'string' },
{ name: 'CTN03', type: 'string' },
{ name: 'CTN13', type: 'string' },
{ name: 'CTN23', type: 'string' },
{ name: 'CTN33', type: 'string' },
{ name: 'CTN43', type: 'string' },
{ name: 'CTN53', type: 'string' },
{ name: 'CTN63', type: 'string' },
{ name: 'CTN73', type: 'string' },
{ name: 'CTN83', type: 'string' },
{ name: 'CTN93', type: 'string' },
{ name: 'CTN04', type: 'string' },
{ name: 'CTN14', type: 'string' },
{ name: 'CTN24', type: 'string' },
{ name: 'CTN34', type: 'string' },
{ name: 'CTN44', type: 'string' },
{ name: 'CTN54', type: 'string' },
{ name: 'CTN64', type: 'string' },
{ name: 'CTN74', type: 'string' },
{ name: 'CTN84', type: 'string' },
{ name: 'CTN94', type: 'string' },
{ name: 'PORTDISCHARGEID', type: 'string' },
{ name: 'CONTRACTNO', type: 'string' },
{ name: 'CONTRACTBSNO', type: 'string' },
{ name: 'CTN0PRICESTR', type: 'string' },
{ name: 'CTN1PRICESTR', type: 'string' },
{ name: 'CTN2PRICESTR', type: 'string' },
{ name: 'CTN3PRICESTR', type: 'string' },
{ name: 'CTN4PRICESTR', type: 'string' },
{ name: 'CTN0DETENTION', type: 'string' },
{ name: 'CTN1DETENTION', type: 'string' },
{ name: 'CTN2DETENTION', type: 'string' },
{ name: 'CTN3DETENTION', type: 'string' },
{ name: 'CTN4DETENTION', type: 'string' }
]
});
Ext.define('MsPrice_Quotation_Addmb', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'LANE', type: 'string' },
{ name: 'PODLOAD', type: 'string' },
{ name: 'PORTDISCHARGE', type: 'string' },
{ name: 'CARRIER', type: 'string' },
{ name: 'VIA', type: 'string' },
{ name: 'VIA2', type: 'string' },
{ name: 'ETD', type: 'string' },
{ name: 'TT', type: 'string' },
{ name: 'EFFECTIVEDATE', type: 'string' },
{ name: 'VALIDDATE', type: 'string' },
{ name: 'COMMODITY', type: 'string' },
{ name: 'REMARK', type: 'string' },
{ name: 'INPUTBY', type: 'string' },
{ name: 'INPUTTIME', type: 'string' },
{ name: 'MODIFIEDUSER', type: 'string' },
{ name: 'MODIFYTIME', type: 'string' },
{ name: 'FEE0', type: 'string' },
{ name: 'FEE1', type: 'string' },
{ name: 'FEE2', type: 'string' },
{ name: 'FEE3', type: 'string' },
{ name: 'FEE4', type: 'string' },
{ name: 'CTN00', type: 'string' },
{ name: 'CTN10', type: 'string' },
{ name: 'CTN20', type: 'string' },
{ name: 'CTN30', type: 'string' },
{ name: 'CTN40', type: 'string' },
{ name: 'CTN50', type: 'string' },
{ name: 'CTN60', type: 'string' },
{ name: 'CTN70', type: 'string' },
{ name: 'CTN80', type: 'string' },
{ name: 'CTN90', type: 'string' },
{ name: 'CTN01', type: 'string' },
{ name: 'CTN11', type: 'string' },
{ name: 'CTN21', type: 'string' },
{ name: 'CTN31', type: 'string' },
{ name: 'CTN41', type: 'string' },
{ name: 'CTN51', type: 'string' },
{ name: 'CTN61', type: 'string' },
{ name: 'CTN71', type: 'string' },
{ name: 'CTN81', type: 'string' },
{ name: 'CTN91', type: 'string' },
{ name: 'CTN02', type: 'string' },
{ name: 'CTN12', type: 'string' },
{ name: 'CTN22', type: 'string' },
{ name: 'CTN32', type: 'string' },
{ name: 'CTN42', type: 'string' },
{ name: 'CTN52', type: 'string' },
{ name: 'CTN62', type: 'string' },
{ name: 'CTN72', type: 'string' },
{ name: 'CTN82', type: 'string' },
{ name: 'CTN92', type: 'string' },
{ name: 'CTN03', type: 'string' },
{ name: 'CTN13', type: 'string' },
{ name: 'CTN23', type: 'string' },
{ name: 'CTN33', type: 'string' },
{ name: 'CTN43', type: 'string' },
{ name: 'CTN53', type: 'string' },
{ name: 'CTN63', type: 'string' },
{ name: 'CTN73', type: 'string' },
{ name: 'CTN83', type: 'string' },
{ name: 'CTN93', type: 'string' },
{ name: 'CTN04', type: 'string' },
{ name: 'CTN14', type: 'string' },
{ name: 'CTN24', type: 'string' },
{ name: 'CTN34', type: 'string' },
{ name: 'CTN44', type: 'string' },
{ name: 'CTN54', type: 'string' },
{ name: 'CTN64', type: 'string' },
{ name: 'CTN74', type: 'string' },
{ name: 'CTN84', type: 'string' },
{ name: 'CTN94', type: 'string' },
{ name: 'PORTDISCHARGEID', type: 'string' },
{ name: 'CONTRACTNO', type: 'string' },
{ name: 'CONTRACTBSNO', type: 'string' },
{ name: 'CTN0PRICESTR', type: 'string' },
{ name: 'CTN1PRICESTR', type: 'string' },
{ name: 'CTN2PRICESTR', type: 'string' },
{ name: 'CTN3PRICESTR', type: 'string' },
{ name: 'CTN4PRICESTR', type: 'string' },
{ name: 'CTN0DETENTION', type: 'string' },
{ name: 'CTN1DETENTION', type: 'string' },
{ name: 'CTN2DETENTION', type: 'string' },
{ name: 'CTN3DETENTION', type: 'string' },
{ name: 'CTN4DETENTION', type: 'string' }
]
});
Ext.define('MsPrice_Quotation_MblnoListmb', {
extend: 'Ext.data.Model',
idProperty: 'ID',
fields: [
{ name: 'ID', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'MBLNO', type: 'string' },
{ name: 'CREATOR', type: 'string' },
{ name: 'CREATETIME', type: 'data' }
]
});
Ext.define('PriceCTNTYPE', {
extend: 'Ext.data.Model',
fields: [
{ name: 'NAME', type: 'string' },
{ name: 'ID', type: 'string' }
]
});
function getPriceCtnTypeStore() {
storeCT = Ext.create('Ext.data.Store', {
model: 'PriceCTNTYPE',
remoteSort: false
});
var CTN0 = Ext.create('PriceCTNTYPE', { 'NAME': '小柜', 'ID': 'CTN0' });
var CTN1 = Ext.create('PriceCTNTYPE', { 'NAME': '大柜', 'ID': 'CTN1' });
var CTN2 = Ext.create('PriceCTNTYPE', { 'NAME': '超高', 'ID': 'CTN2' });
var CTN3 = Ext.create('PriceCTNTYPE', { 'NAME': '小冻', 'ID': 'CTN3' });
var CTN4 = Ext.create('PriceCTNTYPE', { 'NAME': '超冻', 'ID': 'CTN4' });
var _blank = Ext.create('PriceCTNTYPE', { 'NAME': '', 'ID': '' });
storeCT.add(_blank);
storeCT.add(CTN0);
storeCT.add(CTN1);
storeCT.add(CTN2);
storeCT.add(CTN3);
storeCT.add(CTN4);
return storeCT;
}
Ext.define('MsPrice_Quotation_ZaFeiListmb', {
extend: 'Ext.data.Model',
idProperty: 'ID',
fields: [
{ name: 'ID', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'SEQUENCE', type: 'number' },
{ name: 'MBLNO', type: 'string' },
{ name: 'FEENAME', type: 'string' },
{ name: 'CURRENCY', type: 'string' },
{ name: 'AMOUNT', type: 'number' },
{ name: 'NEEDHIDE', type: 'string' },
{ name: 'NEEDSHOW', type: 'string' },
{ name: 'UNIT', type: 'string' }
]
});