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.
178 lines
6.1 KiB
JavaScript
178 lines
6.1 KiB
JavaScript
Ext.define('CRM_QUOTATIONmb', {
|
|
extend: 'Ext.data.Model',
|
|
idProperty: 'BSNO',
|
|
fields: [
|
|
{ name: 'GID', type: 'string' },
|
|
{ name: 'BLTYPE', type: 'string' },
|
|
{ name: 'BLSTATUS', type: 'string' },
|
|
{ name: 'BLSTATUS_REF', type: 'string' },
|
|
{ name: 'CLIENTGID', type: 'string' },
|
|
{ name: 'SHORTNAME', type: 'string' },
|
|
{ name: 'DESCRIPTION', type: 'string' },
|
|
{ name: 'SALE', type: 'string' },
|
|
{ name: 'QUOTATIONDATE', type: 'date' },
|
|
{ name: 'CORPID', type: 'string' },
|
|
{ name: 'PORTLOAD', type: 'string' },
|
|
{ name: 'PORTDISCHARGE', type: 'string' },
|
|
{ name: 'PORTLOAD_REF', type: 'string' },
|
|
{ name: 'PORTDISCHARGE_REF', type: 'string' },
|
|
{ name: 'LANE', type: 'string' },
|
|
{ name: 'CARRIER', type: 'string' },
|
|
{ name: 'ETD', type: 'date' },
|
|
{ name: 'ETA', type: 'date' },
|
|
{ name: 'ENTREPORT', type: 'string' },
|
|
{ name: 'TT', type: 'string' },
|
|
{ name: 'GOODSNAME', type: 'string' },
|
|
{ name: 'REMARK', type: 'string' },
|
|
{ name: 'CREATEUSER', type: 'string' },
|
|
{ name: 'CREATETIME', type: 'string' },
|
|
{ name: 'MODIFIEDUSER', type: 'string' },
|
|
{ name: 'MODIFIEDTIME', type: 'string' },
|
|
{ name: 'CONTACTNAME', type: 'string' },
|
|
{ name: 'ASKDATE', type: 'date' },
|
|
{ name: 'VALIDDATE', type: 'date' },
|
|
{ name: 'WEEK', type: 'string' },
|
|
{ name: 'TimeMark', type: 'string' },
|
|
{ name: 'TEL', type: 'string' },
|
|
{ name: 'EMAIL', type: 'string' },
|
|
{ name: '_20GP', type: 'string' },
|
|
{ name: '_40GP', type: 'string' },
|
|
{ name: '_40HC', type: 'string' },
|
|
{ name: '_45', type: 'string' },
|
|
{ name: 'VALIDDATE_END', type: 'date' },
|
|
{ name: 'CTN', type: 'string' },
|
|
{ name: 'CTNNUM', type: 'string' },
|
|
{ name: 'CTN2', type: 'string' },
|
|
{ name: 'CTNNUM2', type: 'string' },
|
|
{ name: 'GETBJ', type: 'string' }
|
|
]
|
|
});
|
|
/*
|
|
CFREIGHT
|
|
CVALUEFEE
|
|
CCARRIEROT
|
|
COTFREIGHT
|
|
CTOTAL
|
|
*/
|
|
|
|
Ext.define('OpSeaeShipper', {
|
|
extend: 'Ext.data.Model',
|
|
idProperty: 'SHIPPERID',
|
|
fields: [
|
|
{ name: 'SHIPPERID', type: 'string' },
|
|
{ name: 'CODENAME', type: 'string' },
|
|
{ name: 'SHORTNAME', type: 'string' },
|
|
{ name: 'CodeAndName', type: 'string' },
|
|
{ name: 'SHIPPERDETAIL', type: 'string' },
|
|
{ name: 'SHIPPERTYPE', type: 'int' },
|
|
{ name: 'LOADADDRESS', type: 'string' },
|
|
{ name: 'DELIVERADDRESS', type: 'string' },
|
|
{ name: 'ISPUBLIC', type: 'bool' }
|
|
]
|
|
});
|
|
|
|
Ext.define('MsCodeOpService', {
|
|
extend: 'Ext.data.Model',
|
|
idProperty: 'OS_ID',
|
|
fields: [
|
|
{ name: 'OS_ID', type: 'string' },
|
|
{ name: 'OPField', type: 'string' },
|
|
{ name: 'CORPID', type: 'string' },
|
|
{ name: 'SERVICENAME', type: 'string' },
|
|
{ name: 'OPTYPE', type: 'string' },
|
|
{ name: 'OPTYPESTR', type: 'string' },
|
|
{ name: 'REMARK', type: 'string' }
|
|
]
|
|
});
|
|
|
|
Ext.define('CRM_QUOTATION_DETAILmb', {
|
|
extend: 'Ext.data.Model',
|
|
idProperty: 'GID',
|
|
fields: [
|
|
{ name: 'GID', type: 'string' },
|
|
{ name: 'LINKGID', type: 'string' },
|
|
{ name: 'LINKGID2', type: 'string' },
|
|
{ name: 'FEETYPE', type: 'string' },
|
|
{ name: 'FEENAME', type: 'string' },
|
|
{ name: 'UNIT', type: 'string' },
|
|
{ name: 'UNITPRICE', type: 'string' },
|
|
{ name: 'CURRENCY', type: 'string' },
|
|
{ name: 'CARRIER', type: 'string' },
|
|
{ name: 'CARRIER_REF', type: 'string' },
|
|
{ name: 'SHORTNAME', type: 'string' },
|
|
{ name: 'REMARK', type: 'string' },
|
|
{ name: 'CREATEUSER', type: 'string' },
|
|
{ name: 'CREATETIME', type: 'string' },
|
|
{ name: 'MODIFIEDUSER', type: 'string' },
|
|
{ name: 'MODIFIEDTIME', type: 'string' },
|
|
{ name: 'CTN', type: 'string' },
|
|
{ name: 'CTN2', type: 'string' },
|
|
{ name: 'CTNPRICE', type: 'string' },
|
|
{ name: 'CTNPRICE2', type: 'string' },
|
|
{ name: 'ISUSE', type: 'string' },
|
|
{ name: '_20GP', type: 'string' },
|
|
{ name: '_40GP', type: 'string' },
|
|
{ name: '_40HC', type: 'string' },
|
|
{ name: '_45', type: 'string' }
|
|
]
|
|
});
|
|
|
|
Ext.define('CRM_QUOTATION_CARRIERmb', {
|
|
extend: 'Ext.data.Model',
|
|
idProperty: 'GID',
|
|
fields: [
|
|
{ name: 'GID', type: 'string' },
|
|
{ name: 'LINKGID', type: 'string' },
|
|
{ name: 'LINKGID2', type: 'string' },
|
|
{ name: 'CARRIER', type: 'string' },
|
|
{ name: 'FREEDAYS', type: 'string' },
|
|
{ name: 'REMARK', type: 'string' },
|
|
{ name: 'VALIDDATE', type: 'date' },
|
|
{ name: 'VALIDDATE_END', type: 'date' }
|
|
]
|
|
});
|
|
|
|
|
|
Ext.define('MsFeeUnit', {
|
|
extend: 'Ext.data.Model',
|
|
idProperty: 'UNIT',
|
|
fields: [
|
|
{ name: 'UNIT', type: 'string' },
|
|
{ name: 'SUNIT', type: 'string' },
|
|
{ name: 'QUANTITY', type: 'number' }
|
|
]
|
|
});
|
|
|
|
Ext.define('MsFeeCurr', {
|
|
extend: 'Ext.data.Model',
|
|
idProperty: 'CURR',
|
|
fields: [
|
|
{ name: 'CURR', type: 'string' },
|
|
{ name: 'DEFRATE', type: 'number' },
|
|
{ name: 'CRDEFRATE', type: 'number' }
|
|
]
|
|
});
|
|
|
|
Ext.namespace('Shipping');
|
|
Shipping.GetRowClass = function (ISUSE) {
|
|
if (ISUSE == 1) {
|
|
return 'feestatus_settle';
|
|
} else {
|
|
return '';
|
|
}
|
|
|
|
return '';
|
|
}
|
|
|
|
Shipping.GetAuditClass = function (BLSTATUS) {
|
|
if (BLSTATUS == "2") {
|
|
return 'feestatus_refer';
|
|
} else
|
|
if (BLSTATUS == "3") {
|
|
return 'feestatus_settle';
|
|
} else {
|
|
return '';
|
|
}
|
|
|
|
return '';
|
|
} |