Subversion Repositories SmartDukaan

Rev

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

Rev 8826 Rev 9256
Line 59... Line 59...
59
						TimeZone zone= TimeZone.getTimeZone("GMT");
59
						TimeZone zone= TimeZone.getTimeZone("GMT");
60
						istFormatter.setTimeZone(zone);
60
						istFormatter.setTimeZone(zone);
61
						Date date = istFormatter.parse(nextLine[2]);
61
						Date date = istFormatter.parse(nextLine[2]);
62
						SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
62
						SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
63
						Date date_key = dateFormat.parse(dateFormat.format(date));
63
						Date date_key = dateFormat.parse(dateFormat.format(date));
64
						System.out.println(nextLine[0]+" "+date_key+" "+ nextLine[11] +" " + nextLine[13] + " " + nextLine[14]);
64
						System.out.println("Order Details " + nextLine[0]+" "+date_key+" "+ nextLine[11] +" " + nextLine[13] + " " + nextLine[14]);
65
						Long itemid = Long.parseLong(nextLine[11].replaceAll("FBA",""));
65
						Long itemid = Long.parseLong(nextLine[11].replaceAll("FBA",""));
66
						Integer qty=0;
66
						Integer qty=0;
67
						if(nextLine[14].length()!=0){
67
						if(nextLine[14].length()!=0){
68
							qty = new Integer(nextLine[14]);
68
							qty = new Integer(nextLine[14]);
69
						}
69
						}
Line 355... Line 355...
355
					}
355
					}
356
					amazonfbasalessnapshot.setAmazonFbaInventory(inventory);
356
					amazonfbasalessnapshot.setAmazonFbaInventory(inventory);
357
					transactionClient.addOrUpdateAmazonFbaSalesSnapshot(amazonfbasalessnapshot);
357
					transactionClient.addOrUpdateAmazonFbaSalesSnapshot(amazonfbasalessnapshot);
358
				}
358
				}
359
			}
359
			}
360
		}
-
 
361
 
-
 
362
		catch (IOException e) {
360
		} catch (IOException e) {
363
			// TODO Auto-generated catch block
361
			// TODO Auto-generated catch block
364
			e.printStackTrace();
362
			e.printStackTrace();
365
		} catch (ParseException e) {
363
		} catch (ParseException e) {
366
			// TODO Auto-generated catch block
364
			// TODO Auto-generated catch block
367
			e.printStackTrace();
365
			e.printStackTrace();
368
		} catch (TException e) {
366
		} catch (TException e) {
369
			// TODO Auto-generated catch block
367
			// TODO Auto-generated catch block
370
			e.printStackTrace();
368
			e.printStackTrace();
-
 
369
		}
371
		}catch (Exception e) {
370
		catch (Exception e) {
372
			// TODO Auto-generated catch block
371
			// TODO Auto-generated catch block
373
			e.printStackTrace();
372
			e.printStackTrace();
374
		}
373
		}
375
 
374
 
376
	}
375
	}