Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
167 ashish 1
package in.shop2020.hotspot.dashbaord.client.inbox;
2
 
3
import in.shop2020.hotspot.dashbaord.client.event.AcceptOrderEvent;
4
import in.shop2020.hotspot.dashbaord.client.event.AddressLabelEvent;
487 rajveer 5
import in.shop2020.hotspot.dashbaord.client.event.NostockOrderEvent;
192 ashish 6
import in.shop2020.hotspot.dashbaord.client.event.ShippedOrderEvent;
306 ashish 7
import in.shop2020.hotspot.dashbaord.client.inbox.OrderList.SelectionStyle;
8
import in.shop2020.hotspot.dashbaord.shared.actions.DetailsMask;
167 ashish 9
import in.shop2020.hotspot.dashbaord.shared.actions.Order;
10
 
11
import org.enunes.gwt.mvp.client.EventBus;
12
 
13
import com.google.gwt.core.client.GWT;
14
import com.google.gwt.event.dom.client.ClickEvent;
15
import com.google.gwt.event.dom.client.ClickHandler;
16
import com.google.gwt.resources.client.CssResource;
17
import com.google.gwt.uibinder.client.UiBinder;
18
import com.google.gwt.uibinder.client.UiField;
487 rajveer 19
import com.google.gwt.user.client.Window;
306 ashish 20
import com.google.gwt.user.client.ui.Button;
167 ashish 21
import com.google.gwt.user.client.ui.FlexTable;
22
import com.google.gwt.user.client.ui.HTML;
306 ashish 23
import com.google.gwt.user.client.ui.HTMLPanel;
24
import com.google.gwt.user.client.ui.HorizontalPanel;
25
import com.google.gwt.user.client.ui.Label;
167 ashish 26
import com.google.gwt.user.client.ui.ResizeComposite;
306 ashish 27
import com.google.gwt.user.client.ui.VerticalPanel;
167 ashish 28
import com.google.gwt.user.client.ui.Widget;
29
import com.google.gwt.user.client.ui.HTMLTable.Cell;
30
 
31
public class OrderDetails extends ResizeComposite{
32
 
33
	public interface Listener{
34
		void onClick();
35
	}
36
 
37
	interface Binder extends UiBinder<Widget, OrderDetails>{ }
38
 
39
	interface SelectionStyle extends CssResource{
306 ashish 40
		String blueLabel();
41
		String greenLabel();
167 ashish 42
	}
43
 
44
	private static final Binder binder = GWT.create(Binder.class);
45
 
46
	@UiField FlexTable header;
47
	@UiField FlexTable table;
306 ashish 48
	@UiField HorizontalPanel orderDetails;
49
	@UiField VerticalPanel orderDetails1;
50
	@UiField VerticalPanel orderDetails2;
51
	@UiField VerticalPanel orderDetails3;
52
	@UiField VerticalPanel orderDetails4;
53
	@UiField VerticalPanel orderDetails5;
54
	@UiField SelectionStyle selectionStyle;
167 ashish 55
 
56
 
57
	private final EventBus eventbus;
58
	private Order order;
59
	private Order transaction;
306 ashish 60
	private Button acceptOrder = new Button();
61
	private Button rejectOrder = new Button();
62
	private Button notAvailable= new Button();
63
	private Button addBillingInfo= new Button();
64
	private Button addShippingInfo= new Button();
65
	private Button markShipped= new Button();
66
	private Button printLabel = new Button();
67
	private String user;
68
	private DetailsMask mask;
167 ashish 69
 
306 ashish 70
	public OrderDetails(EventBus eventbus, Order order, Order order2, DetailsMask mask, String user){
167 ashish 71
		this.eventbus = eventbus;
72
		this.order = order;
73
		this.transaction = order2;
306 ashish 74
		this.mask = mask;
75
		this.user = user;
167 ashish 76
		initWidget(binder.createAndBindUi(this));
77
		initTable();
306 ashish 78
		registerButtonHandlers();
79
		implementMask();
80
		loadOrderDetails();
167 ashish 81
	}
82
 
83
	private void initTable() {
84
		header.getColumnFormatter().setWidth(0, "128px");
306 ashish 85
	    header.getColumnFormatter().setWidth(1, "128px");
86
	    header.getColumnFormatter().setWidth(2, "128px");
87
	    header.getColumnFormatter().setWidth(3, "128px");
88
	    header.getColumnFormatter().setWidth(4, "128px");
487 rajveer 89
	    header.getColumnFormatter().setWidth(5, "256px");
306 ashish 90
 
91
	    acceptOrder.setText("Accept");
92
	    rejectOrder.setText("Reject");
93
	    notAvailable.setText("Out Of Stock");
94
	    addBillingInfo.setText("Bill");
487 rajveer 95
	    printLabel.setText("Print Invoice");
306 ashish 96
	    addShippingInfo.setText("Ship");
97
	    markShipped.setText("Shipped");
486 rajveer 98
	    markShipped.setVisible(false);
99
 
306 ashish 100
	    header.setWidget(0, 0, acceptOrder);
487 rajveer 101
	    header.setWidget(0, 1, notAvailable);
102
	    header.setWidget(0, 2, printLabel);
103
	    header.setWidget(0, 3, addBillingInfo);
104
	    header.setWidget(0, 4, addShippingInfo);
105
	    header.setWidget(0, 5, markShipped);
106
	    header.setWidget(0, 6, rejectOrder);
306 ashish 107
	    //addShippingInfo.setVisible(false);
108
	    //markShipped.setVisible(false);
109
	    /*
110
	    header.setText(0, 1, "Add Billing Details");
111
	    header.setText(0, 2, "Print shipping label");
112
	    header.setText(0, 3, "Prepare for Shipping ");
113
	    header.setText(0, 4, "Mark Shipped");
114
	    header.setText(0, 5, "View Order Details");
115
 
167 ashish 116
	    header.setText(0, 0, "Accept Order");
117
	    header.setText(0, 1, "Add Billing Details");
118
	    header.setText(0, 2, "Print shipping label");
119
	    header.setText(0, 3, "Prepare for Shipping ");
120
	    header.setText(0, 4, "Mark Shipped");
121
	    header.setText(0, 5, "View Order Details");
306 ashish 122
	    */ 
167 ashish 123
	}
124
 
306 ashish 125
	private void registerButtonHandlers(){
126
		acceptOrder.addClickHandler(new ClickHandler() {
127
 
128
			@Override
129
			public void onClick(ClickEvent event) {
130
				if(acceptOrder.isEnabled()){
131
					eventbus.fireEvent(new AcceptOrderEvent(order));
132
				}
133
			}
134
		});
135
 
486 rajveer 136
		rejectOrder.addClickHandler(new ClickHandler() {
137
 
138
			@Override
139
			public void onClick(ClickEvent event) {
140
				if(!notAvailable.isEnabled()) return;
141
				RejectReasonBox box = new RejectReasonBox(eventbus, order);
142
				//box.clear();
143
				box.center();			
144
			}
145
		});
146
 
487 rajveer 147
		notAvailable.addClickHandler(new ClickHandler() {
148
 
149
			@Override
150
			public void onClick(ClickEvent event) {
151
				eventbus.fireEvent(new NostockOrderEvent(order));
152
			}
153
		});
154
 
306 ashish 155
		addBillingInfo.addClickHandler(new ClickHandler() {
156
 
157
			@Override
158
			public void onClick(ClickEvent event) {
159
				if(!addBillingInfo.isEnabled()) return;
160
				BillingInfoBox box = new BillingInfoBox(eventbus, order, user);
161
				//box.clear();
162
				box.center();				
163
			}
164
		});
487 rajveer 165
//		printLabel.addClickHandler(new ClickHandler() {
166
//			
167
//			@Override
168
//			public void onClick(ClickEvent event) {
169
//				if(!printLabel.isEnabled()) return;
170
//				eventbus.fireEvent(new AddressLabelEvent(order));
171
//			}
172
//		});
173
//		
174
//		printLabel.addClickListener(new ClickListener() {
175
//			@Override
176
//			public void onClick(Widget sender) {
177
//				Window.open("http://localhost:8080/Support/agent.action?order="+order.getOrderId(), "newWindowName", "window features.");
178
//			}
179
//		});
180
 
306 ashish 181
		printLabel.addClickHandler(new ClickHandler() {
182
 
183
			@Override
184
			public void onClick(ClickEvent event) {
493 rajveer 185
				String invoiceGenerationUrl = "http://localhost:8080/Support/invoice/";;
186
				/*
187
				try {
188
					invoiceGenerationUrl = ConfigClient.getClient().get("invoice_generation_service_url");
189
				} catch (ConfigException e) {
190
					e.printStackTrace();
191
					invoiceGenerationUrl = "http://localhost:8080/Support/invoice/";
192
				}
193
				*/
194
				invoiceGenerationUrl = invoiceGenerationUrl + order.getOrderId();
195
				Window.open(invoiceGenerationUrl, "newWindowName", "window features.");
306 ashish 196
			}
197
		});
487 rajveer 198
 
306 ashish 199
		addShippingInfo.addClickHandler(new ClickHandler() {
200
 
201
			@Override
202
			public void onClick(ClickEvent event) {
203
				if(!addShippingInfo.isEnabled()) return;
204
				ShipmentInfoBox box = new ShipmentInfoBox(eventbus, order);
205
				//box.clear();
206
				box.center();			
207
			}
208
		});
209
		markShipped.addClickHandler(new ClickHandler() {
210
 
211
			@Override
212
			public void onClick(ClickEvent event) {			
213
				if(!markShipped.isEnabled()) return;
214
				eventbus.fireEvent(new ShippedOrderEvent(order, "", "", "", false));
215
			}
216
		});
217
 
218
	}
219
	/*
167 ashish 220
	private void registerhandlers(){
221
		header.addClickHandler(new ClickHandler() {
222
 
223
			@Override
224
			public void onClick(ClickEvent event) {
225
 
226
				Cell cell = header.getCellForEvent(event);
227
 
228
				int columnIndex = cell.getCellIndex();
229
 
230
				if(columnIndex == 0){
231
					//accept orders
232
					eventbus.fireEvent(new AcceptOrderEvent(order));
233
				}
234
 
235
				if(columnIndex == 1){
236
					//generate billing information
192 ashish 237
					BillingInfoBox box = new BillingInfoBox(eventbus, order);
167 ashish 238
					box.clear();
239
					box.center();
240
				}
241
 
242
				if(columnIndex == 2){
243
					eventbus.fireEvent(new AddressLabelEvent(order));
244
				}
245
 
246
				if(columnIndex == 3){
192 ashish 247
					ShipmentInfoBox box = new ShipmentInfoBox(eventbus, order);
167 ashish 248
					box.clear();
249
					box.center();
250
				}
251
 
252
				if(columnIndex == 4){
192 ashish 253
 
254
					eventbus.fireEvent(new ShippedOrderEvent(order, "", "", "", false));
255
 
167 ashish 256
				}
257
			}
258
		});
259
	}
306 ashish 260
*/
261
	private void implementMask(){
262
		switch(mask){
263
		case NEW:
264
			maskButtons(true, true, true, false, false, false, false);
265
			break;
266
		case ACCEPT:
487 rajveer 267
			maskButtons(false, false, false, false, true, false, false);
306 ashish 268
			break;
486 rajveer 269
		case REJECT:
270
			maskButtons(false, false, false, false, false, false, false);
271
			break;
306 ashish 272
		case BILL:
273
			maskButtons(false, false, false, true, false, true, true);
274
			break;
275
		case SHIP:
487 rajveer 276
			maskButtons(false, false, false, false, false, false, false);
306 ashish 277
			break;
487 rajveer 278
		case NO_STOCK:
279
			maskButtons(true, true, false, false, false, false, false);
280
			break;
281
 
306 ashish 282
		}
283
	}
284
 
285
	private void maskButtons(boolean accept, boolean reject, boolean notavailable, boolean print, boolean billing, boolean shipping, boolean mark){
286
		acceptOrder.setEnabled(accept);
287
		rejectOrder.setEnabled(reject);
288
		notAvailable.setEnabled(notavailable);
289
		printLabel.setEnabled(print);
290
		addBillingInfo.setEnabled(billing);
291
		addShippingInfo.setEnabled(shipping);
292
		markShipped.setEnabled(mark);		
293
	}
294
 
295
	private void loadOrderDetails(){
296
 
297
		HorizontalPanel hpanel = new HorizontalPanel();
298
		hpanel.setSpacing(5);
299
		hpanel.add(new Label("SKU ID:  "));
300
 
484 rajveer 301
		hpanel.add(new Label(transaction.getSkuId()+""));
306 ashish 302
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
303
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
304
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
305
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
306
		orderDetails1.add(hpanel);
307
 
308
		hpanel = new HorizontalPanel();
309
		hpanel.setSpacing(5);
310
		hpanel.add(new Label("MODEL:  "));
311
 
484 rajveer 312
		hpanel.add(new Label(transaction.getModelName()));
306 ashish 313
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
314
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
315
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
316
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
317
		orderDetails1.add(hpanel);
318
 
319
		hpanel = new HorizontalPanel();
320
		hpanel.setSpacing(5);
486 rajveer 321
		hpanel.add(new Label("EXTRA INFO:  "));
306 ashish 322
 
484 rajveer 323
		hpanel.add(new Label(transaction.getExtraInfo()));
306 ashish 324
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
325
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
326
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
327
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
328
		orderDetails1.add(hpanel);
329
 
330
		hpanel = new HorizontalPanel();
331
		hpanel.setSpacing(5);
332
		hpanel.add(new Label("VENDOR:   "));
333
 
334
		hpanel.add(new Label(transaction.getVendor()));
335
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
336
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
337
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
338
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
339
		orderDetails1.add(hpanel);
340
 
341
		//orderDetails.setWidget(0, 0, panel);
342
 
343
		hpanel = new HorizontalPanel();
344
		hpanel.setSpacing(5);
486 rajveer 345
		hpanel.add(new Label("NAME:  "));
346
 
347
		hpanel.add(new Label(transaction.getCustomerName()));
348
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
349
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
350
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
351
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
352
		orderDetails2.add(hpanel);
353
 
354
		hpanel = new HorizontalPanel();
355
		hpanel.setSpacing(5);
306 ashish 356
		hpanel.add(new Label("ADDRESS:  "));
357
 
486 rajveer 358
		hpanel.add(new Label(transaction.getCustomerAddress() + "   PIN - " +  transaction.getCustomerPincode()));
306 ashish 359
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
360
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
361
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
362
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
363
		orderDetails2.add(hpanel);
364
 
486 rajveer 365
		hpanel = new HorizontalPanel();
366
		hpanel.setSpacing(5);
487 rajveer 367
		hpanel.add(new Label("MOBILE NUMBER:  "));
368
 
369
		hpanel.add(new Label(transaction.getCustomerMobileNumber()));
370
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
371
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
372
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
373
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
374
		orderDetails2.add(hpanel);
375
 
376
		hpanel = new HorizontalPanel();
377
		hpanel.setSpacing(5);
486 rajveer 378
		hpanel.add(new Label("TOTAL WEIGHT:  "));
379
 
380
		hpanel.add(new Label(transaction.getTotalWeight()+""));
381
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
382
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
383
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
384
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
385
		orderDetails3.add(hpanel);
386
 
387
 
388
		hpanel = new HorizontalPanel();
389
		hpanel.setSpacing(5);
390
		hpanel.add(new Label("TOTAL AMOUNT(Rs):  "));
391
 
392
		hpanel.add(new Label(transaction.getTotalAmount()+""));
393
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
394
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
395
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
396
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
397
		orderDetails3.add(hpanel);
398
 
399
 
400
		hpanel = new HorizontalPanel();
401
		hpanel.setSpacing(5);
402
		hpanel.add(new Label("AIRWAY BILL NO:  "));
403
 
404
		hpanel.add(new Label(transaction.getAirwayBillNo()));
405
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
406
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
407
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
408
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
409
		orderDetails4.add(hpanel);
410
 
411
 
412
		hpanel = new HorizontalPanel();
413
		hpanel.setSpacing(5);
414
		hpanel.add(new Label("INVOICE NUMBER:  "));
415
 
416
		hpanel.add(new Label(transaction.getInvoiceNumber()));
417
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
418
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
419
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
420
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
421
		orderDetails4.add(hpanel);
422
 
423
 
424
		hpanel = new HorizontalPanel();
425
		hpanel.setSpacing(5);
426
		hpanel.add(new Label("BILLED BY:  "));
427
 
428
		hpanel.add(new Label(transaction.getBilledBy()));
429
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
430
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
431
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
432
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
433
		orderDetails4.add(hpanel);
434
 
484 rajveer 435
		/*
306 ashish 436
		hpanel = new HorizontalPanel();
437
		hpanel.setSpacing(5);
438
		hpanel.add(new Label("VALUE:  "));
439
 
440
		hpanel.add(new Label(transaction.getShipment().getValue()));
441
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
442
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
443
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
444
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
445
		orderDetails2.add(hpanel);
446
 
447
		hpanel = new HorizontalPanel();
448
		hpanel.setSpacing(5);
449
		hpanel.add(new Label("WEIGHT:  "));
450
 
451
		hpanel.add(new Label(transaction.getShipment().getWeight()));
452
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
453
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
454
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
455
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
456
		orderDetails2.add(hpanel);
457
 
458
		hpanel = new HorizontalPanel();
459
		hpanel.setSpacing(5);
460
		hpanel.add(new Label("SHIPMENT STATUS:   "));
461
 
462
		hpanel.add(new Label(transaction.getShipment().getShipmentStatus()));
463
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
464
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
465
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
466
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
467
		orderDetails2.add(hpanel);
468
 
469
		//orderDetails.setWidget(0, 1, panel);
470
 
471
		hpanel = new HorizontalPanel();
472
		hpanel.setSpacing(5);
473
		hpanel.add(new Label("PAYMENT TIME:  "));
474
 
475
		hpanel.add(new Label(transaction.getShipment().getPaymentTime()));
476
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
477
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
478
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
479
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
480
		orderDetails3.add(hpanel);
481
 
482
		hpanel = new HorizontalPanel();
483
		hpanel.setSpacing(5);
484
		hpanel.add(new Label("PAYMENT MODE:  "));
485
 
486
		hpanel.add(new Label(transaction.getShipment().getPaymentMode()));
487
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
488
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
489
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
490
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
491
		orderDetails3.add(hpanel);
492
 
493
		hpanel = new HorizontalPanel();
494
		hpanel.setSpacing(5);
495
		hpanel.add(new Label("BANK TX ID:  "));
496
 
497
		hpanel.add(new Label(transaction.getShipment().getBank_tx_id()));
498
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
499
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
500
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
501
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
502
		orderDetails3.add(hpanel);
503
 
504
		hpanel = new HorizontalPanel();
505
		hpanel.setSpacing(5);
506
		hpanel.add(new Label("BILL NO:  "));
507
 
508
		hpanel.add(new Label(transaction.getShipment().getBillNo()));
509
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
510
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
511
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
512
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
513
		orderDetails4.add(hpanel);
514
 
515
		hpanel = new HorizontalPanel();
516
		hpanel.setSpacing(5);
517
		hpanel.add(new Label("BILLER:  "));
518
 
519
		hpanel.add(new Label(transaction.getShipment().getBillCreatedBy()));
520
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
521
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
522
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
523
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
524
		orderDetails4.add(hpanel);
525
 
526
		hpanel = new HorizontalPanel();
527
		hpanel.setSpacing(5);
528
		hpanel.add(new Label("TIME:  "));
529
 
530
		hpanel.add(new Label(transaction.getShipment().getBillCreatedOn()));
531
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
532
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
533
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
534
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
535
		orderDetails4.add(hpanel);
536
 
537
		hpanel = new HorizontalPanel();
538
		hpanel.setSpacing(5);
539
		hpanel.add(new Label("AIRWAY BILL NO:  "));
540
 
541
		hpanel.add(new Label(transaction.getShipment().getAirwayNo()));
542
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
543
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
544
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
545
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
546
		orderDetails5.add(hpanel);
547
 
548
		hpanel = new HorizontalPanel();
549
		hpanel.setSpacing(5);
550
		hpanel.add(new Label("TRACKING ID:  "));
551
 
552
		hpanel.add(new Label(transaction.getShipment().getTracker()));
553
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
554
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
555
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
556
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
557
		orderDetails5.add(hpanel);
558
 
559
		hpanel = new HorizontalPanel();
560
		hpanel.setSpacing(5);
561
		hpanel.add(new Label("PROVIDER:  "));
562
 
563
		hpanel.add(new Label(transaction.getShipment().getProvider()));
564
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
565
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
566
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
567
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
568
		orderDetails5.add(hpanel);
569
 
570
		hpanel = new HorizontalPanel();
571
		hpanel.setSpacing(5);
572
		hpanel.add(new Label("SHIPPED ON:  "));
573
 
574
		hpanel.add(new Label(transaction.getShipment().getShippedOn()));
575
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
576
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
577
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
578
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
579
		orderDetails5.add(hpanel);
484 rajveer 580
		*/
306 ashish 581
	}
167 ashish 582
}