Subversion Repositories SmartDukaan

Rev

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

Rev 6322 Rev 6912
Line 37... Line 37...
37
import java.io.File;
37
import java.io.File;
38
import java.io.FileInputStream;
38
import java.io.FileInputStream;
39
import java.io.FileWriter;
39
import java.io.FileWriter;
40
import java.io.IOException;
40
import java.io.IOException;
41
import java.io.InputStream;
41
import java.io.InputStream;
-
 
42
import java.text.SimpleDateFormat;
42
import java.util.ArrayList;
43
import java.util.ArrayList;
-
 
44
import java.util.Calendar;
43
import java.util.Collections;
45
import java.util.Collections;
-
 
46
import java.util.Date;
44
import java.util.HashSet;
47
import java.util.HashSet;
45
import java.util.List;
48
import java.util.List;
46
import java.util.Set;
49
import java.util.Set;
47
import java.util.concurrent.Callable;
50
import java.util.concurrent.Callable;
48
import java.util.concurrent.Executors;
51
import java.util.concurrent.Executors;
Line 328... Line 331...
328
    }
331
    }
329
 
332
 
330
    public int convertDouble(double value) {
333
    public int convertDouble(double value) {
331
        return (int)value;
334
        return (int)value;
332
    }
335
    }
-
 
336
    
-
 
337
    public String getInsuranceExpiryDate(long DeliveryDate) {
-
 
338
        if (DeliveryDate == 0) {
-
 
339
            return "N/A";
-
 
340
        }
-
 
341
        Calendar cal = Calendar.getInstance();
-
 
342
        cal.setTimeInMillis(DeliveryDate);
-
 
343
        cal.add(Calendar.YEAR, 1);
-
 
344
        return SDF.format(cal.getTime());
-
 
345
    }
333
 
346
 
334
    public String getShippingAddressOfStore(long storeId) {
347
    public String getShippingAddressOfStore(long storeId) {
335
        try {
348
        try {
336
            in.shop2020.logistics.LogisticsService.Client client = new LogisticsClient().getClient();
349
            in.shop2020.logistics.LogisticsService.Client client = new LogisticsClient().getClient();
337
            PickupStore store = client.getPickupStore(storeId);
350
            PickupStore store = client.getPickupStore(storeId);