Installation
Install the bundle
In the karaf console type the folowing command:
bundle:install mvn:one.erp/one.erp.awb/1.0-SNAPSHOT
API
Methods
createAwb
function createAwb(provider as awbprovider, params as list of awbparam) as string
getAwbStatus
function getStatusAwb(provider as awbprovider, awbid as string) as awbstatus
getAwbStatusAll
function getStatusAwbAll(provider as awbprovider, awbids as list of string) as list of awbstatus
getAwbStatusHistory
function getStatusAwbAll(provider as awbprovider, awbids as list of string) as list of awbstatus
deleteAwb
function deleteAwb(provider as awbprovider, awbid as string) as boolean
saveAwbDocument
function saveAwbDocument(url as string, fileName as string) as awbdownloadresult
updateAwbDocument
function updateAwbDocument(url as string, fileName as string, int key) as awbdownloadresult
saveAndWriteToPDFDocument
function saveAndWriteToPDFDocument(url as string, fileName as string, text as list of pdftext) as awbdownloadresult
splitPDFFromList
function splitPDFFromList(storageFileKey as int, splitRanges as list of pdfsplitrange) as awbdownloadresult
Scalar types
awbprovider
Property | Type | Description |
---|
name | string |
|
urlCreate | string |
|
urlDelete | string |
|
urlStatus | string |
|
apiKey | string |
|
user | string |
|
password | string |
|
awbparam
Property | Type | Description |
---|
name | string | denumire camp |
value | string | valoare camp |
awbstatus
Property | Type | Description |
---|
awbId | string | awb-ul |
status | string | starea preluata de la curier |
date | string | data ultimei procesari |
hour | string | ora ulimei procesari |
location | string | locatia ultimei procesari |
details | string | detalii privind ultima procesare |
awbdownloadresult
Property | Type | Description |
---|
idFile | int | id-ul fisierului din storage, doar daca isError = false |
isError | bool | daca fisierul nu s-a putut salva, isError va fi true |
errorMessage | string | daca isError = true, detaliile erorii |
pdftext
Property | Type | Description |
---|
text | string | text-ul care se scrie |
tx | double | pozitia x |
ty | double | pozitia y |
fontName | string | numele fontului |
fontSize | double | marimea fontului |
color | string | culoare in cod hexa, cu # in fata |
pdfsplitrange
Property | Type | Description |
---|
fileName | string | numele noului document care va fi salvat in storage |
pageStart | int | pagina de unde va incepe split-ul |
pageEnd | int | pagina unde se va sfarsi split-ul |