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.

259 lines
11 KiB
JavaScript

Ext.define('MsSeaeEdiModel', {
extend: 'Ext.data.Model',
idProperty: 'MFNO',
fields: [
{ name: 'MFNO', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'MASTERNO', type: 'string' },
{ name: 'EDITYPE', type: 'string' },
{ name: 'EDISTATUS', type: 'string' },
{ name: 'INPUTBY', type: 'string' },
{ name: 'INPUTDATE', type: 'string' },
{ name: 'CUSTNO', type: 'string' },
{ name: 'MBLNO', type: 'string' },
{ name: 'HBLNO', type: 'string' },
{ name: 'AMSSCACCODE', type: 'string' },
{ name: 'SHIPPERCODE', type: 'string' },
{ name: 'SHIPPERNAME', type: 'string' },
{ name: 'SHIPPERADDR1', type: 'string' },
{ name: 'SHIPPERADDR2', type: 'string' },
{ name: 'SHIPPERADDR3', type: 'string' },
{ name: 'SHIPPERCITY', type: 'string' },
{ name: 'SHIPPERPROVINCE', type: 'string' },
{ name: 'SHIPPERPOSTCODE', type: 'string' },
{ name: 'SHIPPERCOUNTRY', type: 'string' },
{ name: 'SHIPPERATTN', type: 'string' },
{ name: 'SHIPPERTEL', type: 'string' },
{ name: 'SHIPPEREMAIL', type: 'string' },
{ name: 'CONSIGNEECODE', type: 'string' },
{ name: 'CONSIGNEENAME', type: 'string' },
{ name: 'CONSIGNEEADDR1', type: 'string' },
{ name: 'CONSIGNEEADDR2', type: 'string' },
{ name: 'CONSIGNEEADDR3', type: 'string' },
{ name: 'CONSIGNEECITY', type: 'string' },
{ name: 'CONSIGNEEPROVINCE', type: 'string' },
{ name: 'CONSIGNEEPOSTCODE', type: 'string' },
{ name: 'CONSIGNEECOUNTRY', type: 'string' },
{ name: 'CONSIGNEEATTN', type: 'string' },
{ name: 'CONSIGNEETEL', type: 'string' },
{ name: 'CONSIGNEEEMAIL', type: 'string' },
{ name: 'ISSAMECONSIGNEE', type: 'bool' },
{ name: 'NOTIFYPARTYCODE', type: 'string' },
{ name: 'NOTIFYPARTYNAME', type: 'string' },
{ name: 'NOTIFYPARTYADDR1', type: 'string' },
{ name: 'NOTIFYPARTYADDR2', type: 'string' },
{ name: 'NOTIFYPARTYADDR3', type: 'string' },
{ name: 'NOTIFYPARTYCITY', type: 'string' },
{ name: 'NOTIFYPARTYPROVINCE', type: 'string' },
{ name: 'NOTIFYPARTYPOSTCODE', type: 'string' },
{ name: 'NOTIFYPARTYCOUNTRY', type: 'string' },
{ name: 'NOTIFYPARTYATTN', type: 'string' },
{ name: 'NOTIFYPARTYTEL', type: 'string' },
{ name: 'NOTIFYPARTYEMAIL', type: 'string' },
{ name: 'NOTIFYPARTY2NAME', type: 'string' },
{ name: 'NOTIFYPARTY2ADDR1', type: 'string' },
{ name: 'NOTIFYPARTY2ADDR2', type: 'string' },
{ name: 'NOTIFYPARTY2ADDR3', type: 'string' },
{ name: 'NOTIFYPARTY2CITY', type: 'string' },
{ name: 'NOTIFYPARTY2PROVINCE', type: 'string' },
{ name: 'NOTIFYPARTY2POSTCODE', type: 'string' },
{ name: 'NOTIFYPARTY2COUNTRY', type: 'string' },
{ name: 'NOTIFYPARTY2ATTN', type: 'string' },
{ name: 'NOTIFYPARTY2TEL', type: 'string' },
{ name: 'SHIPPER', type: 'string' },
{ name: 'CONSIGNEE', type: 'string' },
{ name: 'NOTIFYPARTY', type: 'string' },
{ name: 'VESSEL', type: 'string' },
{ name: 'VOYNO', type: 'string' },
{ name: 'ETD', type: 'string' },
{ name: 'ETA', type: 'string' },
{ name: 'PORTLOADID', type: 'string' },
{ name: 'PORTLOAD', type: 'string' },
{ name: 'PLACERECEIPTID', type: 'string' },
{ name: 'PLACERECEIPT', type: 'string' },
{ name: 'PORTDISCHARGEID', type: 'string' },
{ name: 'PORTDISCHARGE', type: 'string' },
{ name: 'PLACEDELIVERYID', type: 'string' },
{ name: 'PLACEDELIVERY', type: 'string' },
{ name: 'DESTINATIONID', type: 'string' },
{ name: 'DESTINATION', type: 'string' },
{ name: 'SERVICE', type: 'string' },
{ name: 'MARKS', type: 'string' },
{ name: 'DESCRIPTION', type: 'string' },
{ name: 'PKGS', type: 'string' },
{ name: 'KINDPKGS', type: 'string' },
{ name: 'KGS', type: 'string' },
{ name: 'CBM', type: 'string' },
{ name: 'CARGOID', type: 'string' },
{ name: 'DCLASS', type: 'string' },
{ name: 'DUNNO', type: 'string' },
{ name: 'REEFERF', type: 'string' },
{ name: 'TEMPID', type: 'string' },
{ name: 'TEMPSET', type: 'string' },
{ name: 'TEMPMAX', type: 'string' },
{ name: 'TEMPMIN', type: 'string' },
{ name: 'DPAGE', type: 'string' },
{ name: 'DLABEL', type: 'string' },
{ name: 'LINKMAN', type: 'string' },
{ name: 'FREIGHTAGMNO', type: 'string' },
{ name: 'HUMIDITY', type: 'string' },
{ name: 'SHIPIMO', type: 'string' },
{ name: 'CARRIERID', type: 'string' },
{ name: 'ORDERNO', type: 'string' },
{ name: 'FILEROLE', type: 'string' },
{ name: 'PACKINGTYPE', type: 'string' },
{ name: 'SHIPSERVICENO', type: 'string' },
{ name: 'TRANSTYPE', type: 'string' },
{ name: 'FILETYPE', type: 'string' },
{ name: 'ISLASTHBL', type: 'bool' },
{ name: 'BLFRT', type: 'string' },
{ name: 'ISSUEPLACE', type: 'string' },
{ name: 'ETDTIME', type: 'string' },
{ name: 'AGENTID', type: 'string' },
{ name: 'CNTRSEALNO', type: 'int' },
{ name: 'SENDTIME', type: 'string' },
{ name: 'STATUS', type: 'string' },
{ name: 'YARD', type: 'string' },
{ name: 'CHANGERESON', type: 'string' },
{ name: 'FORWARD', type: 'string' },
{ name: 'CARRIER', type: 'string' },
{ name: 'DCARRIER', type: 'string' },
{ name: 'REMARKS', type: 'string' },
{ name: 'CNTRNO', type: 'string' },
{ name: 'ARVESSEL', type: 'string' },
{ name: 'ARVOYNO', type: 'string' },
{ name: 'ARSHIPIMO', type: 'string' },
{ name: 'ARSHIPSERVICENO', type: 'string' },
{ name: 'CTNNUM', type: 'number' },
{ name: 'FIRSTPORTOFCALLID', type: 'string' },
{ name: 'FIRSTPORTOFCALLDATE', type: 'string' },
{ name: 'LASTPORTOFCALLID', type: 'string' },
{ name: 'LASTPORTOFCALLDATE', type: 'string' },
{ name: 'ISFIMPORTER_CODE_TYPE', type: 'string' },
{ name: 'ISFIMPORTER_CODE', type: 'string' },
{ name: 'IMPORTER_CODE_TYPE', type: 'string' },
{ name: 'IMPORTER_CODE', type: 'string' },
{ name: 'CONSIGNEE_CODE_TYPE', type: 'string' },
{ name: 'CONSIGNEE_CODE', type: 'string' },
{ name: 'BONDHOLDER_CODE_TYPE', type: 'string' },
{ name: 'BONDHOLDER_CODE', type: 'string' },
{ name: 'CARGOTYPE', type: 'string' },
{ name: 'BONDTYPE', type: 'string' },
{ name: 'BONDACTIVECODE', type: 'string' },
{ name: 'MANIFESTSTATUS', type: 'string' },
{ name: 'SELLERNAME', type: 'string' },
{ name: 'SELLERADDR1', type: 'string' },
{ name: 'SELLERADDR2', type: 'string' },
{ name: 'SELLERCITY', type: 'string' },
{ name: 'SELLERPROVINCE', type: 'string' },
{ name: 'SELLERCOUNTRY', type: 'string' },
{ name: 'SELLEREMAIL', type: 'string' },
{ name: 'BUYERNAME', type: 'string' },
{ name: 'BUYERADDR1', type: 'string' },
{ name: 'BUYERADDR2', type: 'string' },
{ name: 'BUYERCITY', type: 'string' },
{ name: 'BUYERPROVINCE', type: 'string' },
{ name: 'BUYERCOUNTRY', type: 'string' },
{ name: 'BUYEREMAIL', type: 'string' },
{ name: 'MANUFACTURERNAME', type: 'string' },
{ name: 'MANUFACTURERADDR1', type: 'string' },
{ name: 'MANUFACTURERADDR2', type: 'string' },
{ name: 'MANUFACTURERCITY', type: 'string' },
{ name: 'MANUFACTURERPROVINCE', type: 'string' },
{ name: 'MANUFACTURERCOUNTRY', type: 'string' },
{ name: 'MANUFACTUREREMAIL', type: 'string' },
{ name: 'SHIPTOPARTYNAME', type: 'string' },
{ name: 'SHIPTOPARTYADDR1', type: 'string' },
{ name: 'SHIPTOPARTYADDR2', type: 'string' },
{ name: 'SHIPTOPARTYCITY', type: 'string' },
{ name: 'SHIPTOPARTYPROVINCE', type: 'string' },
{ name: 'SHIPTOPARTYCOUNTRY', type: 'string' },
{ name: 'SHIPTOPARTYEMAIL', type: 'string' },
{ name: 'CONTAINERLOCATIONNAME', type: 'string' },
{ name: 'CONTAINERLOCATIONADDR1', type: 'string' },
{ name: 'CONTAINERLOCATIONADDR2', type: 'string' },
{ name: 'CONTAINERLOCATIONCITY', type: 'string' },
{ name: 'CONTAINERLOCATIONPROVINCE', type: 'string' },
{ name: 'CONTAINERLOCATIONCOUNTRY', type: 'string' },
{ name: 'CONTAINERLOCATIONEMAIL', type: 'string' },
{ name: 'CONSOLIDATORNAME', type: 'string' },
{ name: 'CONSOLIDATORADDR1', type: 'string' },
{ name: 'CONSOLIDATORADDR2', type: 'string' },
{ name: 'CONSOLIDATORCITY', type: 'string' },
{ name: 'CONSOLIDATORPROVINCE', type: 'string' },
{ name: 'CONSOLIDATORCOUNTRY', type: 'string' },
{ name: 'CONSOLIDATOREMAIL', type: 'string' },
{ name: 'BOOKINGPARTYNAME', type: 'string' },
{ name: 'BOOKINGPARTYADDR1', type: 'string' },
{ name: 'BOOKINGPARTYADDR2', type: 'string' },
{ name: 'BOOKINGPARTYCITY', type: 'string' },
{ name: 'BOOKINGPARTYPROVINCE', type: 'string' },
{ name: 'BOOKINGPARTYCOUNTRY', type: 'string' },
{ name: 'BOOKINGPARTYEMAIL', type: 'string' },
{ name: 'IMPORTERNAME', type: 'string' },
{ name: 'IMPORTERADDR1', type: 'string' },
{ name: 'IMPORTERADDR2', type: 'string' },
{ name: 'IMPORTERCITY', type: 'string' },
{ name: 'IMPORTERPROVINCE', type: 'string' },
{ name: 'IMPORTERCOUNTRY', type: 'string' },
{ name: 'IMPORTEREMAIL', type: 'string' },
{ name: 'HBLTYPE', type: 'string' },
{ name: 'MASTERHBLNUMBER', type: 'string' },
{ name: 'MASTERHBLPREFIX', type: 'string' },
{ name: 'PORTTERMINALCODETYPE', type: 'string' },
{ name: 'PORTTERMINALCODE', type: 'string' },
{ name: 'DELIVERYPORTTERMINALCODETYPE', type: 'string' },
{ name: 'DELIVERYPORTTERMINALCODE', type: 'string' },
{ name: 'CONTACTNAME', type: 'string' },
{ name: 'CONTACTPHONE', type: 'string' },
{ name: 'COMMENTS', type: 'string' }
]
});
Ext.define('MsSeaeEdiCtn', {
extend: 'Ext.data.Model',
idProperty: 'MFNO,CTN_ID',
fields: [
{ name: 'CTN_ID', type: 'string' },
{ name: 'MFNO', type: 'string' },
{ name: 'CTNCODE', type: 'string' },
{ name: 'CTNALL', type: 'string' },
{ name: 'CNTRNO', type: 'string' },
{ name: 'SEALNO', type: 'string' },
{ name: 'PKGS', type: 'int' },
{ name: 'KGS', type: 'decimal' },
{ name: 'CBM', type: 'decimal' },
{ name: 'KINDPKGS', type: 'string' },
{ name: 'DESCRIPTION', type: 'string' },
{ name: 'MARKS', type: 'string' },
{ name: 'PO', type: 'string' },
{ name: 'SKU', type: 'string' },
{ name: 'SKUDESCRIP', type: 'string' },
{ name: 'DUNNO', type: 'string' },
{ name: 'HTS', type: 'string' },
{ name: 'CTOFORIGIN', type: 'string' },
{ name: 'GOODVALUE', type: 'number' },
{ name: 'CTNOWNER', type: 'string' }
]
});
Ext.define('MsSeaeEdiCtnDetail', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'CTN_ID', type: 'string' },
{ name: 'MFNO', type: 'string' },
{ name: 'GID', type: 'string' },
{ name: 'PKGS', type: 'int' },
{ name: 'KGS', type: 'decimal' },
{ name: 'CBM', type: 'decimal' },
{ name: 'KINDPKGS', type: 'string' },
{ name: 'DUNNO', type: 'string' },
{ name: 'HTS', type: 'string' },
{ name: 'CNTRNO', type: 'string' },
{ name: 'GOODVALUE', type: 'number' }
]
});