Subversion Repositories SmartDukaan

Rev

Rev 21897 | Rev 21906 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21897 Rev 21904
Line 27... Line 27...
27
import com.providers.logistics.ShipmentInfo;
27
import com.providers.logistics.ShipmentInfo;
28
 
28
 
29
public class Aramex implements Provider {
29
public class Aramex implements Provider {
30
 
30
 
31
	public String getAirwayBillNo(List<Order> orders) throws Exception{
31
	public String getAirwayBillNo(List<Order> orders) throws Exception{
32
		return String.valueOf(new Date().getTime());
32
		//return String.valueOf(new Date().getTime());
33
		/*try {
33
		try {
34
			Order oneOrder = orders.get(0);
34
			Order oneOrder = orders.get(0);
35
			Party consignee = getConsigneeParty(oneOrder);
35
			Party consignee = getConsigneeParty(oneOrder);
36
			Party shipper = getTestShipper();
36
			Party shipper = getTestShipper();
37
			shipper.setReference1(oneOrder.getLogisticsTransactionId());
37
			shipper.setReference1(oneOrder.getLogisticsTransactionId());
38
			Shipment shp = getShipment(new ShipmentInfo(orders), consignee, shipper);
38
			Shipment shp = getShipment(new ShipmentInfo(orders), consignee, shipper);
39
			return getAwb(shp);
39
			return getAwb(shp);
40
		} catch (Exception e) {
40
		} catch (Exception e) {
41
			e.printStackTrace();
41
			e.printStackTrace();
42
			throw e;
42
			throw e;
43
		}*/
43
		}
44
	}
44
	}
45
	
45
	
46
	private Shipment getShipment(ShipmentInfo shipmentInfo, Party consignee, Party shipper) {
46
	private Shipment getShipment(ShipmentInfo shipmentInfo, Party consignee, Party shipper) {
47
		Shipment shp = new Shipment();
47
		Shipment shp = new Shipment();
48
		ShipmentDetails details = new ShipmentDetails();
48
		ShipmentDetails details = new ShipmentDetails();