Subversion Repositories SmartDukaan

Rev

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

Rev 9925 Rev 10877
Line 33... Line 33...
33
 
33
 
34
    // private static final Properties properties = readProperties();
34
    // private static final Properties properties = readProperties();
35
    private static final String ourAddressDelhi = "Spice Online Retail Pvt. Ltd.\nC/O,PIBCO LIMITED, Basement,Punjsons\n2,Kalkaji Industrial Area, New Delhi-110019\n";
35
    private static final String ourAddressDelhi = "Spice Online Retail Pvt. Ltd.\nC/O,PIBCO LIMITED, Basement,Punjsons\n2,Kalkaji Industrial Area, New Delhi-110019\n";
36
    private static final String ourAddressBhiwandi = "Spice Online Retail Pvt. Ltd.\nC/O. FedEx Express Transportation and Supply Chain Services (India) Private Limited.\nC/O NDR WAREHOUSING, SURVEY NO.95, MUMBAI - NASIK HIGHWAY, WADAPE VILLAGE\nBHIWANDI (NR. SAI DHABA), Thane,Maharashtra -421302\n";                   
36
    private static final String ourAddressBhiwandi = "Spice Online Retail Pvt. Ltd.\nC/O. FedEx Express Transportation and Supply Chain Services (India) Private Limited.\nC/O NDR WAREHOUSING, SURVEY NO.95, MUMBAI - NASIK HIGHWAY, WADAPE VILLAGE\nBHIWANDI (NR. SAI DHABA), Thane,Maharashtra -421302\n";                   
37
    private static final String ourAddressGoregaon = "Spice Online Retail Pvt. Ltd.\n93/743, Motilal Nagar-1, Goregaon(WEST),\nMotilal Nagar, Mumbai, Maharashtra-400062\n";
37
    private static final String ourAddressGoregaon = "Spice Online Retail Pvt. Ltd.\n93/743, Motilal Nagar-1, Goregaon(WEST),\nMotilal Nagar, Mumbai, Maharashtra-400062\n";
-
 
38
    private static final String ourAddressBangalore = "Spice Online Retail Pvt. Ltd.\n C/O.Drive India Enterprise Solutions Limited)\n Survey No. 86, Korulur Village, Kasab Hobli\n Hoskote Taluka\n Bangalore – 560067, Karnataka\n";
-
 
39
    private static final String ourAddressBangaloreSR = "Spice Online Retail Pvt. Ltd.\n Shop No. 320, Municipal 59th Cross,\n Next to Rammandir Ground,\n 3rd Block, Rajaji Nagar,\nBangalore - 560010, Karnataka\n";
-
 
40
    
38
    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";
41
    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";
-
 
42
    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";
39
    private static final String tinNoDelhi = "07250399732";
43
    private static final String tinNoDelhi = "07250399732";
40
    private static final String tinNoMum = "27450984008";
44
    private static final String tinNoMum = "27450984008";
-
 
45
    private static final String tinNoBan = "29171183852";
41
 
46
 
42
    private static final Font helvetica8 = FontFactory.getFont(
47
    private static final Font helvetica8 = FontFactory.getFont(
43
            FontFactory.HELVETICA, 8);
48
            FontFactory.HELVETICA, 8);
44
 
49
 
45
    private static final Font helveticaBold8 = FontFactory.getFont(
50
    private static final Font helveticaBold8 = FontFactory.getFont(
Line 138... Line 143...
138
    		address = ourAddressBhiwandi;
143
    		address = ourAddressBhiwandi;
139
    		tinNo = tinNoMum;
144
    		tinNo = tinNoMum;
140
    	} else if(warehouseId ==16) {
145
    	} else if(warehouseId ==16) {
141
    		address = amazonAddress;
146
    		address = amazonAddress;
142
    		tinNo = tinNoMum;
147
    		tinNo = tinNoMum;
-
 
148
    	} else if(warehouseId ==1765){
-
 
149
    		address = ourAddressBangalore;
-
 
150
    		tinNo = tinNoBan;
-
 
151
    	} else if(warehouseId ==1768){
-
 
152
    		address = ourAddressBangaloreSR;
-
 
153
    		tinNo = tinNoBan;
-
 
154
    	} else if(warehouseId ==1771){
-
 
155
    		address = amazonAddreseBangalore;
-
 
156
    		tinNo = tinNoBan;
143
    	}
157
    	}
144
    	PdfPTable billToShipToTable  = new PdfPTable(2);
158
    	PdfPTable billToShipToTable  = new PdfPTable(2);
145
        Paragraph addressParagraph = new Paragraph(address + "\nTIN NO. "
159
        Paragraph addressParagraph = new Paragraph(address + "\nTIN NO. "
146
                + tinNo, new Font(FontFamily.TIMES_ROMAN, 8f));
160
                + tinNo, new Font(FontFamily.TIMES_ROMAN, 8f));
147
        PdfPCell addressCell = new PdfPCell();
161
        PdfPCell addressCell = new PdfPCell();
Line 164... Line 178...
164
	    		shippingAddress = ourAddressBhiwandi;
178
	    		shippingAddress = ourAddressBhiwandi;
165
	    		shippingTinNo = tinNoMum;
179
	    		shippingTinNo = tinNoMum;
166
	    	} else if(shippingWarehouseId ==16) {
180
	    	} else if(shippingWarehouseId ==16) {
167
	    		shippingAddress = amazonAddress;
181
	    		shippingAddress = amazonAddress;
168
	    		shippingTinNo = tinNoMum;
182
	    		shippingTinNo = tinNoMum;
-
 
183
	    	} else if(shippingWarehouseId ==1765){
-
 
184
	    		shippingAddress = ourAddressBangalore;
-
 
185
	    		shippingTinNo = tinNoBan;
-
 
186
	    	} else if(shippingWarehouseId ==1768){
-
 
187
	    		shippingAddress = ourAddressBangaloreSR;
-
 
188
	    		shippingTinNo = tinNoBan;
-
 
189
	    	} else if(shippingWarehouseId ==1771){
-
 
190
	    		shippingAddress = amazonAddreseBangalore;
-
 
191
	    		shippingTinNo = tinNoBan;
169
	    	}
192
	    	}
170
			
193
			
171
			PdfPCell billToShipToCell = new PdfPCell();
194
			PdfPCell billToShipToCell = new PdfPCell();
172
			billToShipToCell.setHorizontalAlignment(Element.ALIGN_LEFT);
195
			billToShipToCell.setHorizontalAlignment(Element.ALIGN_LEFT);
173
			billToShipToCell.setBorder(Rectangle.NO_BORDER);
196
			billToShipToCell.setBorder(Rectangle.NO_BORDER);
Line 268... Line 291...
268
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
291
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
269
    	} else if(warehouseId ==16) {
292
    	} else if(warehouseId ==16) {
270
    		address = amazonAddress;
293
    		address = amazonAddress;
271
    		tinNo = tinNoMum;
294
    		tinNo = tinNoMum;
272
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
295
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
-
 
296
    	} else if(warehouseId ==16) {
-
 
297
    		address = amazonAddress;
-
 
298
    		tinNo = tinNoMum;
-
 
299
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
-
 
300
    	} else if(warehouseId ==16) {
-
 
301
    		address = amazonAddress;
-
 
302
    		tinNo = tinNoMum;
-
 
303
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
-
 
304
    	}
-
 
305
    	else if(warehouseId ==1765) {
-
 
306
    		address = ourAddressBangalore;
-
 
307
    		tinNo = tinNoBan;
-
 
308
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
-
 
309
    	}
-
 
310
    	else if(warehouseId ==1768) {
-
 
311
    		address = ourAddressBangaloreSR;
-
 
312
    		tinNo = tinNoBan;
-
 
313
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
-
 
314
    	}
-
 
315
    	else if(warehouseId ==1771) {
-
 
316
    		address = amazonAddreseBangalore;
-
 
317
    		tinNo = tinNoBan;
-
 
318
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
273
    	}
319
    	}
274
 
320
 
275
        PdfPTable billToTable = new PdfPTable(new float[] { 0.2f, 0.8f });
321
        PdfPTable billToTable = new PdfPTable(new float[] { 0.2f, 0.8f });
276
        billToTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
322
        billToTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
277
 
323