Subversion Repositories SmartDukaan

Rev

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

Rev 12504 Rev 12586
Line 341... Line 341...
341
 
341
 
342
    public void uploadPromotionSheet() throws IOException, ParseException, TException, CatalogServiceException{
342
    public void uploadPromotionSheet() throws IOException, ParseException, TException, CatalogServiceException{
343
        Map<String,AmazonPromotion> amazonPromoMap = new HashMap<String,AmazonPromotion>();
343
        Map<String,AmazonPromotion> amazonPromoMap = new HashMap<String,AmazonPromotion>();
344
        SimpleDateFormat dateFormatter;
344
        SimpleDateFormat dateFormatter;
345
        if (promotionType.equalsIgnoreCase("SHORTTERM")){
345
        if (promotionType.equalsIgnoreCase("SHORTTERM")){
346
            dateFormatter = new SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
346
            dateFormatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
347
        }
347
        }
348
        else{
348
        else{
349
            dateFormatter = new SimpleDateFormat("yyyy-MM-dd");
349
            dateFormatter = new SimpleDateFormat("yyyy-MM-dd");
350
        }
350
        }
351
        File fileToCreate = new File("/tmp/", "Amazon-Promotion-"+String.valueOf(getTimeInMilliseconds())+".xls");
351
        File fileToCreate = new File("/tmp/", "Amazon-Promotion-"+String.valueOf(getTimeInMilliseconds())+".xls");