Project

General

Profile

Specification » History » Version 6

Soh Keong, 05/04/2021 08:40 AM

1 1 Soh Keong
{{toc}}
2
3
h1. Specification
4
5
h2. Programming Guide
6
7
h3. Jar version 
8
9
|_. version |_. Description                    |
10
| 1.0       | Init                             |
11
12
h3. Jar File Download
13
14 2 Soh Keong
"Jar":/redmine/attachments/download/551/orderTrackingService-1.0.jar
15 1 Soh Keong
"Lib":/redmine/attachments/download/548/lib.rar
16
"Properties":/redmine/attachments/download/550/service.properties
17
18
h3. properties file
19
20
* *service.properties*
21
22
# *json.url*                - provided by DotNet team
23
# *connection.timeout*      - set connection timeout
24
# *connection.read.timeout* - set connection read timeout
25
26
27
h1. Methods
28
29
<pre>
30
cosway.eCos2WebApi.service.TrackService service = new cosway.eCos2WebApi.service.TrackService();
31
</pre>
32
33 3 Soh Keong
h2. getTrackingOrderDetail (GetTrackingOrderDetail)
34 1 Soh Keong
35
<pre>
36
cosway.eCos2WebApi.model.ResponseTrack responseBean = service.getTrackingOrderDetail(String orderId)
37
</pre>
38
39
* *cosway.eCos2WebApi.model.ResponseTrack*
40
> * *errorCode*      - String
41
> * *errorMessage*   - String
42
> * *detail*         - TrackOrderDetail
43
>> * *companyName*     - String
44
>> * *trackingNo*      - String
45
>> * *updateDatetime*  - Date
46 4 Soh Keong
47
h2. Live tracking.my
48
49
<pre>
50 5 Soh Keong
<script src="//www.tracking.my/track-button.js"></script>
51
<script>
52 6 Soh Keong
	function inputTrack(num) {
53
		TrackButton.track({
54
				tracking_no: num
55
			});
56
	}
57 5 Soh Keong
</script>
58 4 Soh Keong
59 6 Soh Keong
<input type="button" value="Detail" onclick="inputTrack('<%=trackNo %>')">
60 4 Soh Keong
</pre>