Project

General

Profile

Specification » History » Version 4

Soh Keong, 05/04/2021 08:30 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
function inputTrack() {
51
	var num = document.getElementById("TrackNo").value;
52
	TrackButton.track({
53
			tracking_no: num
54
		});
55
}
56
57
<input type="text" id="TrackNo" value="<%=trackNo%>" readonly> <input type="button" value="Detail" onclick="inputTrack()">
58
</pre>