Project

General

Profile

Specification » History » Revision 5

Revision 4 (Soh Keong, 05/04/2021 08:30 AM) → Revision 5/8 (Soh Keong, 05/04/2021 08:32 AM)

{{toc}} 

 h1. Specification 

 h2. Programming Guide 

 h3. Jar version  

 |_. version |_. Description                      | 
 | 1.0         | Init                               | 

 h3. Jar File Download 

 "Jar":/redmine/attachments/download/551/orderTrackingService-1.0.jar 
 "Lib":/redmine/attachments/download/548/lib.rar 
 "Properties":/redmine/attachments/download/550/service.properties 

 h3. properties file 

 * *service.properties* 

 # *json.url*                  - provided by DotNet team 
 # *connection.timeout*        - set connection timeout 
 # *connection.read.timeout* - set connection read timeout 


 h1. Methods 

 <pre> 
 cosway.eCos2WebApi.service.TrackService service = new cosway.eCos2WebApi.service.TrackService(); 
 </pre> 

 h2. getTrackingOrderDetail (GetTrackingOrderDetail) 

 <pre> 
 cosway.eCos2WebApi.model.ResponseTrack responseBean = service.getTrackingOrderDetail(String orderId) 
 </pre> 

 * *cosway.eCos2WebApi.model.ResponseTrack* 
 > * *errorCode*        - String 
 > * *errorMessage*     - String 
 > * *detail*           - TrackOrderDetail 
 >> * *companyName*       - String 
 >> * *trackingNo*        - String 
 >> * *updateDatetime*    - Date 

 h2. Live tracking.my 

 <pre> 
 <script src="//www.tracking.my/track-button.js"></script> 
 <script> 
   function inputTrack() { 
	 var num = document.getElementById("TrackNo").value; 
	 TrackButton.track({ 
			 tracking_no: num 
		 }); 
   
 } 
 </script> 

 <input type="text" id="TrackNo" value="<%=trackNo%>" readonly> <input type="button" value="Detail" onclick="inputTrack()"> 
 </pre>