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
 
585 chandransh 37
	interface OrderDetailsUiBinder extends UiBinder<Widget, OrderDetails>{ }
167 ashish 38
 
39
	interface SelectionStyle extends CssResource{
306 ashish 40
		String blueLabel();
41
		String greenLabel();
167 ashish 42
	}
43
 
585 chandransh 44
	private static final OrderDetailsUiBinder binder = GWT.create(OrderDetailsUiBinder.class);
167 ashish 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();
677 chandransh 67
	private Button printManifest = new Button();
68
 
306 ashish 69
	private String user;
70
	private DetailsMask mask;
677 chandransh 71
	private long warehouseID;
167 ashish 72
 
677 chandransh 73
	public OrderDetails(EventBus eventbus, Order order, Order order2, DetailsMask mask, String user, long warehouseID){
167 ashish 74
		this.eventbus = eventbus;
75
		this.order = order;
76
		this.transaction = order2;
306 ashish 77
		this.mask = mask;
78
		this.user = user;
677 chandransh 79
		this.warehouseID = warehouseID;
167 ashish 80
		initWidget(binder.createAndBindUi(this));
81
		initTable();
306 ashish 82
		registerButtonHandlers();
83
		implementMask();
84
		loadOrderDetails();
167 ashish 85
	}
86
 
87
	private void initTable() {
88
		header.getColumnFormatter().setWidth(0, "128px");
306 ashish 89
	    header.getColumnFormatter().setWidth(1, "128px");
90
	    header.getColumnFormatter().setWidth(2, "128px");
91
	    header.getColumnFormatter().setWidth(3, "128px");
92
	    header.getColumnFormatter().setWidth(4, "128px");
677 chandransh 93
	    header.getColumnFormatter().setWidth(5, "128px");
94
	    header.getColumnFormatter().setWidth(6, "256px");
306 ashish 95
 
96
	    acceptOrder.setText("Accept");
97
	    rejectOrder.setText("Reject");
98
	    notAvailable.setText("Out Of Stock");
99
	    addBillingInfo.setText("Bill");
487 rajveer 100
	    printLabel.setText("Print Invoice");
677 chandransh 101
	    printManifest.setText("Print Manifest");
306 ashish 102
	    addShippingInfo.setText("Ship");
103
	    markShipped.setText("Shipped");
486 rajveer 104
	    markShipped.setVisible(false);
105
 
306 ashish 106
	    header.setWidget(0, 0, acceptOrder);
487 rajveer 107
	    header.setWidget(0, 1, notAvailable);
108
	    header.setWidget(0, 2, printLabel);
109
	    header.setWidget(0, 3, addBillingInfo);
110
	    header.setWidget(0, 4, addShippingInfo);
677 chandransh 111
	    header.setWidget(0, 5, printManifest);
112
	    header.setWidget(0, 6, markShipped);
113
	    header.setWidget(0, 7, rejectOrder);
114
 
306 ashish 115
	    //addShippingInfo.setVisible(false);
116
	    //markShipped.setVisible(false);
117
	    /*
118
	    header.setText(0, 1, "Add Billing Details");
119
	    header.setText(0, 2, "Print shipping label");
120
	    header.setText(0, 3, "Prepare for Shipping ");
121
	    header.setText(0, 4, "Mark Shipped");
122
	    header.setText(0, 5, "View Order Details");
123
 
167 ashish 124
	    header.setText(0, 0, "Accept Order");
125
	    header.setText(0, 1, "Add Billing Details");
126
	    header.setText(0, 2, "Print shipping label");
127
	    header.setText(0, 3, "Prepare for Shipping ");
128
	    header.setText(0, 4, "Mark Shipped");
129
	    header.setText(0, 5, "View Order Details");
306 ashish 130
	    */ 
167 ashish 131
	}
132
 
306 ashish 133
	private void registerButtonHandlers(){
134
		acceptOrder.addClickHandler(new ClickHandler() {
135
 
136
			@Override
137
			public void onClick(ClickEvent event) {
138
				if(acceptOrder.isEnabled()){
139
					eventbus.fireEvent(new AcceptOrderEvent(order));
140
				}
141
			}
142
		});
143
 
486 rajveer 144
		rejectOrder.addClickHandler(new ClickHandler() {
145
 
146
			@Override
147
			public void onClick(ClickEvent event) {
148
				if(!notAvailable.isEnabled()) return;
149
				RejectReasonBox box = new RejectReasonBox(eventbus, order);
150
				//box.clear();
151
				box.center();			
152
			}
153
		});
154
 
487 rajveer 155
		notAvailable.addClickHandler(new ClickHandler() {
156
 
157
			@Override
158
			public void onClick(ClickEvent event) {
159
				eventbus.fireEvent(new NostockOrderEvent(order));
160
			}
161
		});
162
 
306 ashish 163
		addBillingInfo.addClickHandler(new ClickHandler() {
164
 
165
			@Override
166
			public void onClick(ClickEvent event) {
167
				if(!addBillingInfo.isEnabled()) return;
168
				BillingInfoBox box = new BillingInfoBox(eventbus, order, user);
169
				//box.clear();
170
				box.center();				
171
			}
172
		});
487 rajveer 173
//		printLabel.addClickHandler(new ClickHandler() {
174
//			
175
//			@Override
176
//			public void onClick(ClickEvent event) {
177
//				if(!printLabel.isEnabled()) return;
178
//				eventbus.fireEvent(new AddressLabelEvent(order));
179
//			}
180
//		});
181
//		
182
//		printLabel.addClickListener(new ClickListener() {
183
//			@Override
184
//			public void onClick(Widget sender) {
185
//				Window.open("http://localhost:8080/Support/agent.action?order="+order.getOrderId(), "newWindowName", "window features.");
186
//			}
187
//		});
188
 
306 ashish 189
		printLabel.addClickHandler(new ClickHandler() {
190
 
191
			@Override
192
			public void onClick(ClickEvent event) {
493 rajveer 193
				String invoiceGenerationUrl = "http://localhost:8080/Support/invoice/";;
194
				/*
195
				try {
196
					invoiceGenerationUrl = ConfigClient.getClient().get("invoice_generation_service_url");
197
				} catch (ConfigException e) {
198
					e.printStackTrace();
199
					invoiceGenerationUrl = "http://localhost:8080/Support/invoice/";
200
				}
201
				*/
202
				invoiceGenerationUrl = invoiceGenerationUrl + order.getOrderId();
203
				Window.open(invoiceGenerationUrl, "newWindowName", "window features.");
306 ashish 204
			}
205
		});
487 rajveer 206
 
677 chandransh 207
		printManifest.addClickHandler(new ClickHandler() {
208
 
209
			@Override
210
			public void onClick(ClickEvent event) {
211
				ProviderInfoBox box = new ProviderInfoBox(eventbus, user, warehouseID);
212
				//box.clear();
213
				box.center();	
214
			}
215
		});
216
 
306 ashish 217
		addShippingInfo.addClickHandler(new ClickHandler() {
218
 
219
			@Override
220
			public void onClick(ClickEvent event) {
221
				if(!addShippingInfo.isEnabled()) return;
222
				ShipmentInfoBox box = new ShipmentInfoBox(eventbus, order);
223
				//box.clear();
224
				box.center();			
225
			}
226
		});
227
		markShipped.addClickHandler(new ClickHandler() {
228
 
229
			@Override
230
			public void onClick(ClickEvent event) {			
231
				if(!markShipped.isEnabled()) return;
232
				eventbus.fireEvent(new ShippedOrderEvent(order, "", "", "", false));
233
			}
234
		});
235
 
236
	}
237
	/*
167 ashish 238
	private void registerhandlers(){
239
		header.addClickHandler(new ClickHandler() {
240
 
241
			@Override
242
			public void onClick(ClickEvent event) {
243
 
244
				Cell cell = header.getCellForEvent(event);
245
 
246
				int columnIndex = cell.getCellIndex();
247
 
248
				if(columnIndex == 0){
249
					//accept orders
250
					eventbus.fireEvent(new AcceptOrderEvent(order));
251
				}
252
 
253
				if(columnIndex == 1){
254
					//generate billing information
192 ashish 255
					BillingInfoBox box = new BillingInfoBox(eventbus, order);
167 ashish 256
					box.clear();
257
					box.center();
258
				}
259
 
260
				if(columnIndex == 2){
261
					eventbus.fireEvent(new AddressLabelEvent(order));
262
				}
263
 
264
				if(columnIndex == 3){
192 ashish 265
					ShipmentInfoBox box = new ShipmentInfoBox(eventbus, order);
167 ashish 266
					box.clear();
267
					box.center();
268
				}
269
 
270
				if(columnIndex == 4){
192 ashish 271
 
272
					eventbus.fireEvent(new ShippedOrderEvent(order, "", "", "", false));
273
 
167 ashish 274
				}
275
			}
276
		});
277
	}
306 ashish 278
*/
279
	private void implementMask(){
280
		switch(mask){
281
		case NEW:
677 chandransh 282
			maskButtons(true, true, true, false, false, false, false, true);
306 ashish 283
			break;
284
		case ACCEPT:
677 chandransh 285
			maskButtons(false, false, false, false, true, false, false, true);
306 ashish 286
			break;
486 rajveer 287
		case REJECT:
677 chandransh 288
			maskButtons(false, false, false, false, false, false, false, true);
486 rajveer 289
			break;
306 ashish 290
		case BILL:
677 chandransh 291
			maskButtons(false, false, false, true, false, true, true, true);
306 ashish 292
			break;
293
		case SHIP:
677 chandransh 294
			maskButtons(false, false, false, false, false, false, false, true);
306 ashish 295
			break;
487 rajveer 296
		case NO_STOCK:
677 chandransh 297
			maskButtons(true, true, false, false, false, false, false, true);
487 rajveer 298
			break;
299
 
306 ashish 300
		}
301
	}
302
 
677 chandransh 303
	private void maskButtons(boolean accept, boolean reject, boolean notavailable, boolean print, boolean billing, boolean shipping, boolean mark, boolean manifest){
306 ashish 304
		acceptOrder.setEnabled(accept);
305
		rejectOrder.setEnabled(reject);
306
		notAvailable.setEnabled(notavailable);
307
		printLabel.setEnabled(print);
677 chandransh 308
		printManifest.setEnabled(manifest);
306 ashish 309
		addBillingInfo.setEnabled(billing);
310
		addShippingInfo.setEnabled(shipping);
311
		markShipped.setEnabled(mark);		
312
	}
313
 
314
	private void loadOrderDetails(){
315
 
316
		HorizontalPanel hpanel = new HorizontalPanel();
317
		hpanel.setSpacing(5);
706 chandransh 318
		hpanel.add(new Label("Item ID:  "));
306 ashish 319
 
706 chandransh 320
		hpanel.add(new Label(transaction.getItemId()+""));
306 ashish 321
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
322
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
323
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
324
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
325
		orderDetails1.add(hpanel);
326
 
327
		hpanel = new HorizontalPanel();
328
		hpanel.setSpacing(5);
329
		hpanel.add(new Label("MODEL:  "));
330
 
484 rajveer 331
		hpanel.add(new Label(transaction.getModelName()));
306 ashish 332
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
333
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
334
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
335
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
336
		orderDetails1.add(hpanel);
337
 
338
		hpanel = new HorizontalPanel();
339
		hpanel.setSpacing(5);
486 rajveer 340
		hpanel.add(new Label("EXTRA INFO:  "));
306 ashish 341
 
484 rajveer 342
		hpanel.add(new Label(transaction.getExtraInfo()));
306 ashish 343
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
344
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
345
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
346
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
347
		orderDetails1.add(hpanel);
348
 
349
		hpanel = new HorizontalPanel();
350
		hpanel.setSpacing(5);
351
		hpanel.add(new Label("VENDOR:   "));
352
 
353
		hpanel.add(new Label(transaction.getVendor()));
354
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
355
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
356
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
357
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
358
		orderDetails1.add(hpanel);
359
 
360
		//orderDetails.setWidget(0, 0, panel);
361
 
362
		hpanel = new HorizontalPanel();
363
		hpanel.setSpacing(5);
486 rajveer 364
		hpanel.add(new Label("NAME:  "));
365
 
366
		hpanel.add(new Label(transaction.getCustomerName()));
367
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
368
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
369
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
370
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
371
		orderDetails2.add(hpanel);
372
 
373
		hpanel = new HorizontalPanel();
374
		hpanel.setSpacing(5);
306 ashish 375
		hpanel.add(new Label("ADDRESS:  "));
737 chandransh 376
		hpanel.add(new Label(transaction.getCustomerAddress1() + "\n" + transaction.getCustomerAddress2() + "\n" + transaction.getCustomerCity() + "\n" + transaction.getCustomerState() + "   PIN - " +  transaction.getCustomerPincode()));
306 ashish 377
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
378
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
379
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
380
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
381
		orderDetails2.add(hpanel);
382
 
486 rajveer 383
		hpanel = new HorizontalPanel();
384
		hpanel.setSpacing(5);
487 rajveer 385
		hpanel.add(new Label("MOBILE NUMBER:  "));
386
 
387
		hpanel.add(new Label(transaction.getCustomerMobileNumber()));
388
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
389
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
390
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
391
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
392
		orderDetails2.add(hpanel);
393
 
394
		hpanel = new HorizontalPanel();
395
		hpanel.setSpacing(5);
486 rajveer 396
		hpanel.add(new Label("TOTAL WEIGHT:  "));
397
		hpanel.add(new Label(transaction.getTotalWeight()+""));
398
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
399
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
400
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
401
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
402
		orderDetails3.add(hpanel);
403
 
404
 
405
		hpanel = new HorizontalPanel();
406
		hpanel.setSpacing(5);
407
		hpanel.add(new Label("TOTAL AMOUNT(Rs):  "));
408
		hpanel.add(new Label(transaction.getTotalAmount()+""));
409
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
410
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
411
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
412
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
413
		orderDetails3.add(hpanel);
414
 
415
 
416
		hpanel = new HorizontalPanel();
417
		hpanel.setSpacing(5);
639 chandransh 418
		hpanel.add(new Label("AIRWAY BILL NO:  "));		
486 rajveer 419
		hpanel.add(new Label(transaction.getAirwayBillNo()));
420
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
421
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
422
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
423
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
424
		orderDetails4.add(hpanel);
425
 
426
 
427
		hpanel = new HorizontalPanel();
428
		hpanel.setSpacing(5);
429
		hpanel.add(new Label("INVOICE NUMBER:  "));
430
		hpanel.add(new Label(transaction.getInvoiceNumber()));
431
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
432
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
433
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
434
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
435
		orderDetails4.add(hpanel);
639 chandransh 436
 
437
		hpanel = new HorizontalPanel();
438
		hpanel.setSpacing(5);
439
		hpanel.add(new Label("JACKET NUMBER:  "));
440
		hpanel.add(new Label(transaction.getJacketNumber() + ""));
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
		orderDetails4.add(hpanel);
486 rajveer 446
 
447
		hpanel = new HorizontalPanel();
448
		hpanel.setSpacing(5);
449
		hpanel.add(new Label("BILLED BY:  "));
450
		hpanel.add(new Label(transaction.getBilledBy()));
451
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
452
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
453
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
454
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
455
		orderDetails4.add(hpanel);
456
 
484 rajveer 457
		/*
306 ashish 458
		hpanel = new HorizontalPanel();
459
		hpanel.setSpacing(5);
460
		hpanel.add(new Label("VALUE:  "));
461
 
462
		hpanel.add(new Label(transaction.getShipment().getValue()));
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
		hpanel = new HorizontalPanel();
470
		hpanel.setSpacing(5);
471
		hpanel.add(new Label("WEIGHT:  "));
472
 
473
		hpanel.add(new Label(transaction.getShipment().getWeight()));
474
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
475
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
476
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
477
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
478
		orderDetails2.add(hpanel);
479
 
480
		hpanel = new HorizontalPanel();
481
		hpanel.setSpacing(5);
482
		hpanel.add(new Label("SHIPMENT STATUS:   "));
483
 
484
		hpanel.add(new Label(transaction.getShipment().getShipmentStatus()));
485
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
486
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
487
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
488
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
489
		orderDetails2.add(hpanel);
490
 
491
		//orderDetails.setWidget(0, 1, panel);
492
 
493
		hpanel = new HorizontalPanel();
494
		hpanel.setSpacing(5);
495
		hpanel.add(new Label("PAYMENT TIME:  "));
496
 
497
		hpanel.add(new Label(transaction.getShipment().getPaymentTime()));
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("PAYMENT MODE:  "));
507
 
508
		hpanel.add(new Label(transaction.getShipment().getPaymentMode()));
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
		orderDetails3.add(hpanel);
514
 
515
		hpanel = new HorizontalPanel();
516
		hpanel.setSpacing(5);
517
		hpanel.add(new Label("BANK TX ID:  "));
518
 
519
		hpanel.add(new Label(transaction.getShipment().getBank_tx_id()));
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
		orderDetails3.add(hpanel);
525
 
526
		hpanel = new HorizontalPanel();
527
		hpanel.setSpacing(5);
528
		hpanel.add(new Label("BILL NO:  "));
529
 
530
		hpanel.add(new Label(transaction.getShipment().getBillNo()));
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("BILLER:  "));
540
 
541
		hpanel.add(new Label(transaction.getShipment().getBillCreatedBy()));
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
		orderDetails4.add(hpanel);
547
 
548
		hpanel = new HorizontalPanel();
549
		hpanel.setSpacing(5);
550
		hpanel.add(new Label("TIME:  "));
551
 
552
		hpanel.add(new Label(transaction.getShipment().getBillCreatedOn()));
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
		orderDetails4.add(hpanel);
558
 
559
		hpanel = new HorizontalPanel();
560
		hpanel.setSpacing(5);
561
		hpanel.add(new Label("AIRWAY BILL NO:  "));
562
 
563
		hpanel.add(new Label(transaction.getShipment().getAirwayNo()));
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("TRACKING ID:  "));
573
 
574
		hpanel.add(new Label(transaction.getShipment().getTracker()));
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);
580
 
581
		hpanel = new HorizontalPanel();
582
		hpanel.setSpacing(5);
583
		hpanel.add(new Label("PROVIDER:  "));
584
 
585
		hpanel.add(new Label(transaction.getShipment().getProvider()));
586
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
587
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
588
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
589
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
590
		orderDetails5.add(hpanel);
591
 
592
		hpanel = new HorizontalPanel();
593
		hpanel.setSpacing(5);
594
		hpanel.add(new Label("SHIPPED ON:  "));
595
 
596
		hpanel.add(new Label(transaction.getShipment().getShippedOn()));
597
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
598
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
599
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
600
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
601
		orderDetails5.add(hpanel);
484 rajveer 602
		*/
306 ashish 603
	}
167 ashish 604
}