Subversion Repositories SmartDukaan

Rev

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

Rev 13051 Rev 13354
Line 44... Line 44...
44
    
44
    
45
    private static final String amazonAddress = "Spice Online Retail Pvt. Ltd. C/O Amazon Seller Services  Pvt. Ltd.,\nBuilding H Prathmesh Complex, Saravali Village,\nOpp Hotel Vatika Kalyan, Bhivandi Junction,\nBhiwandi, Maharashtra\n";
45
    private static final String amazonAddress = "Spice Online Retail Pvt. Ltd. C/O Amazon Seller Services  Pvt. Ltd.,\nBuilding H Prathmesh Complex, Saravali Village,\nOpp Hotel Vatika Kalyan, Bhivandi Junction,\nBhiwandi, Maharashtra\n";
46
    private static final String amazonAddreseBangalore = "Spice Online Retail Pvt. Ltd.\n C/O Amazon Seller Services Pvt. Ltd.\n 38 & 39, Soukya Road,\n kacherakanahalli,\n Hoskote Taluka,\n Bangalore  -560067, Karnataka\n";
46
    private static final String amazonAddreseBangalore = "Spice Online Retail Pvt. Ltd.\n C/O Amazon Seller Services Pvt. Ltd.\n 38 & 39, Soukya Road,\n kacherakanahalli,\n Hoskote Taluka,\n Bangalore  -560067, Karnataka\n";
47
    private static final String amazonAddressMewat = "Spice Online Retail Pvt. Ltd.\n C/O AMAZON Seller Services Pvt. Limited,\n  Gokaldas Warehousing Corporation,  Unit No 1,\n Village Taoru,  Tehsil Taoru, Distt Mewat - 122105";
47
    private static final String amazonAddressMewat = "Spice Online Retail Pvt. Ltd.\n C/O AMAZON Seller Services Pvt. Limited,\n  Gokaldas Warehousing Corporation,  Unit No 1,\n Village Taoru,  Tehsil Taoru, Distt Mewat - 122105";
48
    private static final String flipkartAddressGgn = "Spice Online Retail Pvt. Ltd.\n C/O. Flipkart Internet Pvt. Ltd, \n KILLA NO.219/15-16 25/1 220/11 12/1 12/2 13/1/113/1/2 20 21/1 21/2/1 22/1 23/1/1,\n Bohra Kalan, PATAUDI, GURGAON - 122001, Haryana\n";
48
    private static final String flipkartAddressGgn = "Spice Online Retail Pvt. Ltd.\n C/O. Flipkart Internet Pvt. Ltd, \n KILLA NO.219/15-16 25/1 220/11 12/1 12/2 13/1/113/1/2 20 21/1 21/2/1 22/1 23/1/1,\n Bohra Kalan, PATAUDI, GURGAON - 122001, Haryana\n";
-
 
49
    private static final String flipkartAddressDelhi = "Spice Online Retail Pvt. Ltd.\n C/O Flipkart Internet Pvt. Ltd.\n Khasra No. 435,Road No.# 04 ,Lal Dora Extension,\nMahipalpur, New Delhi- 110037\n";
49
    private static final String tinNoDelhi = "07250399732";
50
    private static final String tinNoDelhi = "07250399732";
50
    private static final String tinNoMum = "27450984008";
51
    private static final String tinNoMum = "27450984008";
51
    private static final String tinNoBan = "29171183852";
52
    private static final String tinNoBan = "29171183852";
52
    private static final String tinNoFkGgn = "06681944625";
53
    private static final String tinNoFkGgn = "06681944625";
53
    private static final String tinNoOurGgn = "06681944625";
54
    private static final String tinNoOurGgn = "06681944625";
54
    private static final String tinNoOurHyd = "36601220768";
55
    private static final String tinNoOurHyd = "36601220768";
-
 
56
    private static final String tinNoFkDelhi = "07720408834";
55
    
57
    
56
 
58
 
57
    private static final Font helvetica8 = FontFactory.getFont(
59
    private static final Font helvetica8 = FontFactory.getFont(
58
            FontFactory.HELVETICA, 8);
60
            FontFactory.HELVETICA, 8);
59
 
61
 
Line 171... Line 173...
171
    		address = ourAddressGurgaon;
173
    		address = ourAddressGurgaon;
172
    		tinNo = tinNoOurGgn;
174
    		tinNo = tinNoOurGgn;
173
    	} else if(warehouseId == 3295){
175
    	} else if(warehouseId == 3295){
174
    		address = amazonAddressMewat;
176
    		address = amazonAddressMewat;
175
    		tinNo = tinNoOurGgn;
177
    		tinNo = tinNoOurGgn;
176
    	}
-
 
177
    	else if(warehouseId == 3298){
178
    	} else if(warehouseId == 3298){
178
    		address = ourAddressHyderabad;
179
    		address = ourAddressHyderabad;
179
    		tinNo = tinNoOurHyd;
180
    		tinNo = tinNoOurHyd;
180
    	} else if(warehouseId == 3931){
181
    	} else if(warehouseId == 3931){
181
    		address = ourAddressGurgaonS;
182
    		address = ourAddressGurgaonS;
182
    		tinNo = tinNoOurGgn;
183
    		tinNo = tinNoOurGgn;
-
 
184
    	} else if(warehouseId == 4699){
-
 
185
    		address = flipkartAddressDelhi;
-
 
186
    		tinNo = tinNoFkDelhi;
183
    	}
187
    	}
184
    	PdfPTable billToShipToTable  = new PdfPTable(2);
188
    	PdfPTable billToShipToTable  = new PdfPTable(2);
185
        Paragraph addressParagraph = new Paragraph(address + "\nTIN NO. "
189
        Paragraph addressParagraph = new Paragraph(address + "\nTIN NO. "
186
                + tinNo, new Font(FontFamily.TIMES_ROMAN, 8f));
190
                + tinNo, new Font(FontFamily.TIMES_ROMAN, 8f));
187
        PdfPCell addressCell = new PdfPCell();
191
        PdfPCell addressCell = new PdfPCell();
Line 228... Line 232...
228
	    		shippingAddress = ourAddressHyderabad;
232
	    		shippingAddress = ourAddressHyderabad;
229
	    		shippingTinNo = tinNoOurHyd;
233
	    		shippingTinNo = tinNoOurHyd;
230
	    	} else if(shippingWarehouseId == 3931){
234
	    	} else if(shippingWarehouseId == 3931){
231
	    		shippingAddress = ourAddressGurgaonS;
235
	    		shippingAddress = ourAddressGurgaonS;
232
	    		shippingTinNo = tinNoOurGgn;
236
	    		shippingTinNo = tinNoOurGgn;
-
 
237
	    	} else if(shippingWarehouseId == 4699){
-
 
238
	    		shippingAddress = flipkartAddressDelhi;
-
 
239
	    		shippingTinNo = tinNoFkDelhi;
233
	    	}
240
	    	}
234
			
241
			
235
			PdfPCell billToShipToCell = new PdfPCell();
242
			PdfPCell billToShipToCell = new PdfPCell();
236
			billToShipToCell.setHorizontalAlignment(Element.ALIGN_LEFT);
243
			billToShipToCell.setHorizontalAlignment(Element.ALIGN_LEFT);
237
			billToShipToCell.setBorder(Rectangle.NO_BORDER);
244
			billToShipToCell.setBorder(Rectangle.NO_BORDER);
Line 332... Line 339...
332
    		contactPerson = "Mr. Vishal Tayade, Contact No. +91 9819231651";
339
    		contactPerson = "Mr. Vishal Tayade, Contact No. +91 9819231651";
333
    	} else if(warehouseId ==16) {
340
    	} else if(warehouseId ==16) {
334
    		address = amazonAddress;
341
    		address = amazonAddress;
335
    		tinNo = tinNoMum;
342
    		tinNo = tinNoMum;
336
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
343
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
337
    	} else if(warehouseId ==16) {
344
    	} else if(warehouseId ==1765) {
338
    		address = amazonAddress;
-
 
339
    		tinNo = tinNoMum;
-
 
340
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
-
 
341
    	} else if(warehouseId ==16) {
-
 
342
    		address = amazonAddress;
-
 
343
    		tinNo = tinNoMum;
-
 
344
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
-
 
345
    	}
-
 
346
    	else if(warehouseId ==1765) {
-
 
347
    		address = ourAddressBangalore;
345
    		address = ourAddressBangalore;
348
    		tinNo = tinNoBan;
346
    		tinNo = tinNoBan;
349
    		contactPerson = "Mr. Ravi Kumar, Contact No. +91 9686392567";
347
    		contactPerson = "Mr. Ravi Kumar, Contact No. +91 9686392567";
350
    	}
348
    	}
351
    	else if(warehouseId ==1768) {
349
    	else if(warehouseId ==1768) {
Line 381... Line 379...
381
    	else if(warehouseId == 3931) {
379
    	else if(warehouseId == 3931) {
382
    		address = ourAddressGurgaonS;
380
    		address = ourAddressGurgaonS;
383
    		tinNo = tinNoOurGgn;
381
    		tinNo = tinNoOurGgn;
384
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
382
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
385
    	}
383
    	}
-
 
384
    	else if(warehouseId == 4699) {
-
 
385
    		address = flipkartAddressDelhi;
-
 
386
    		tinNo = tinNoFkDelhi;
-
 
387
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
-
 
388
    	}
386
 
389
 
387
        PdfPTable billToTable = new PdfPTable(new float[] { 0.2f, 0.8f });
390
        PdfPTable billToTable = new PdfPTable(new float[] { 0.2f, 0.8f });
388
        billToTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
391
        billToTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
389
 
392
 
390
        billToTable.addCell(new Phrase("Bill To :", helvetica8));
393
        billToTable.addCell(new Phrase("Bill To :", helvetica8));