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");
849 chandransh 102
	    printManifest.setVisible(false);
306 ashish 103
	    addShippingInfo.setText("Ship");
104
	    markShipped.setText("Shipped");
486 rajveer 105
	    markShipped.setVisible(false);
106
 
306 ashish 107
	    header.setWidget(0, 0, acceptOrder);
487 rajveer 108
	    header.setWidget(0, 1, notAvailable);
109
	    header.setWidget(0, 2, printLabel);
110
	    header.setWidget(0, 3, addBillingInfo);
111
	    header.setWidget(0, 4, addShippingInfo);
677 chandransh 112
	    header.setWidget(0, 5, printManifest);
849 chandransh 113
	    header.setWidget(0, 5, markShipped);
114
	    header.setWidget(0, 6, rejectOrder);
677 chandransh 115
 
306 ashish 116
	    //addShippingInfo.setVisible(false);
117
	    //markShipped.setVisible(false);
118
	    /*
119
	    header.setText(0, 1, "Add Billing Details");
120
	    header.setText(0, 2, "Print shipping label");
121
	    header.setText(0, 3, "Prepare for Shipping ");
122
	    header.setText(0, 4, "Mark Shipped");
123
	    header.setText(0, 5, "View Order Details");
124
 
167 ashish 125
	    header.setText(0, 0, "Accept Order");
126
	    header.setText(0, 1, "Add Billing Details");
127
	    header.setText(0, 2, "Print shipping label");
128
	    header.setText(0, 3, "Prepare for Shipping ");
129
	    header.setText(0, 4, "Mark Shipped");
130
	    header.setText(0, 5, "View Order Details");
306 ashish 131
	    */ 
167 ashish 132
	}
133
 
306 ashish 134
	private void registerButtonHandlers(){
135
		acceptOrder.addClickHandler(new ClickHandler() {
136
 
137
			@Override
138
			public void onClick(ClickEvent event) {
139
				if(acceptOrder.isEnabled()){
140
					eventbus.fireEvent(new AcceptOrderEvent(order));
141
				}
142
			}
143
		});
144
 
486 rajveer 145
		rejectOrder.addClickHandler(new ClickHandler() {
146
 
147
			@Override
148
			public void onClick(ClickEvent event) {
149
				if(!notAvailable.isEnabled()) return;
150
				RejectReasonBox box = new RejectReasonBox(eventbus, order);
151
				//box.clear();
152
				box.center();			
153
			}
154
		});
155
 
487 rajveer 156
		notAvailable.addClickHandler(new ClickHandler() {
157
 
158
			@Override
159
			public void onClick(ClickEvent event) {
160
				eventbus.fireEvent(new NostockOrderEvent(order));
161
			}
162
		});
163
 
306 ashish 164
		addBillingInfo.addClickHandler(new ClickHandler() {
165
 
166
			@Override
167
			public void onClick(ClickEvent event) {
168
				if(!addBillingInfo.isEnabled()) return;
169
				BillingInfoBox box = new BillingInfoBox(eventbus, order, user);
170
				//box.clear();
171
				box.center();				
172
			}
173
		});
487 rajveer 174
 
306 ashish 175
		printLabel.addClickHandler(new ClickHandler() {
176
 
177
			@Override
178
			public void onClick(ClickEvent event) {
892 chandransh 179
				String invoiceGenerationUrl = "http://" + Window.Location.getHost() + "/Support/invoice/";
493 rajveer 180
				invoiceGenerationUrl = invoiceGenerationUrl + order.getOrderId();
181
				Window.open(invoiceGenerationUrl, "newWindowName", "window features.");
306 ashish 182
			}
183
		});
487 rajveer 184
 
677 chandransh 185
		printManifest.addClickHandler(new ClickHandler() {
186
 
187
			@Override
188
			public void onClick(ClickEvent event) {
189
				ProviderInfoBox box = new ProviderInfoBox(eventbus, user, warehouseID);
190
				//box.clear();
760 chandransh 191
				box.center();
677 chandransh 192
			}
193
		});
194
 
306 ashish 195
		addShippingInfo.addClickHandler(new ClickHandler() {
196
 
197
			@Override
198
			public void onClick(ClickEvent event) {
199
				if(!addShippingInfo.isEnabled()) return;
200
				ShipmentInfoBox box = new ShipmentInfoBox(eventbus, order);
201
				//box.clear();
202
				box.center();			
203
			}
204
		});
205
		markShipped.addClickHandler(new ClickHandler() {
206
 
207
			@Override
208
			public void onClick(ClickEvent event) {			
209
				if(!markShipped.isEnabled()) return;
210
				eventbus.fireEvent(new ShippedOrderEvent(order, "", "", "", false));
211
			}
212
		});
213
 
214
	}
215
	/*
167 ashish 216
	private void registerhandlers(){
217
		header.addClickHandler(new ClickHandler() {
218
 
219
			@Override
220
			public void onClick(ClickEvent event) {
221
 
222
				Cell cell = header.getCellForEvent(event);
223
 
224
				int columnIndex = cell.getCellIndex();
225
 
226
				if(columnIndex == 0){
227
					//accept orders
228
					eventbus.fireEvent(new AcceptOrderEvent(order));
229
				}
230
 
231
				if(columnIndex == 1){
232
					//generate billing information
192 ashish 233
					BillingInfoBox box = new BillingInfoBox(eventbus, order);
167 ashish 234
					box.clear();
235
					box.center();
236
				}
237
 
238
				if(columnIndex == 2){
239
					eventbus.fireEvent(new AddressLabelEvent(order));
240
				}
241
 
242
				if(columnIndex == 3){
192 ashish 243
					ShipmentInfoBox box = new ShipmentInfoBox(eventbus, order);
167 ashish 244
					box.clear();
245
					box.center();
246
				}
247
 
248
				if(columnIndex == 4){
192 ashish 249
 
250
					eventbus.fireEvent(new ShippedOrderEvent(order, "", "", "", false));
251
 
167 ashish 252
				}
253
			}
254
		});
255
	}
306 ashish 256
*/
257
	private void implementMask(){
258
		switch(mask){
259
		case NEW:
677 chandransh 260
			maskButtons(true, true, true, false, false, false, false, true);
306 ashish 261
			break;
262
		case ACCEPT:
677 chandransh 263
			maskButtons(false, false, false, false, true, false, false, true);
306 ashish 264
			break;
486 rajveer 265
		case REJECT:
677 chandransh 266
			maskButtons(false, false, false, false, false, false, false, true);
486 rajveer 267
			break;
306 ashish 268
		case BILL:
677 chandransh 269
			maskButtons(false, false, false, true, false, true, true, true);
306 ashish 270
			break;
271
		case SHIP:
677 chandransh 272
			maskButtons(false, false, false, false, false, false, false, true);
306 ashish 273
			break;
487 rajveer 274
		case NO_STOCK:
677 chandransh 275
			maskButtons(true, true, false, false, false, false, false, true);
487 rajveer 276
			break;
277
 
306 ashish 278
		}
279
	}
280
 
677 chandransh 281
	private void maskButtons(boolean accept, boolean reject, boolean notavailable, boolean print, boolean billing, boolean shipping, boolean mark, boolean manifest){
306 ashish 282
		acceptOrder.setEnabled(accept);
283
		rejectOrder.setEnabled(reject);
284
		notAvailable.setEnabled(notavailable);
285
		printLabel.setEnabled(print);
677 chandransh 286
		printManifest.setEnabled(manifest);
306 ashish 287
		addBillingInfo.setEnabled(billing);
288
		addShippingInfo.setEnabled(shipping);
289
		markShipped.setEnabled(mark);		
290
	}
291
 
292
	private void loadOrderDetails(){
293
 
294
		HorizontalPanel hpanel = new HorizontalPanel();
295
		hpanel.setSpacing(5);
706 chandransh 296
		hpanel.add(new Label("Item ID:  "));
306 ashish 297
 
706 chandransh 298
		hpanel.add(new Label(transaction.getItemId()+""));
306 ashish 299
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
300
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
301
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
302
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
303
		orderDetails1.add(hpanel);
304
 
305
		hpanel = new HorizontalPanel();
306
		hpanel.setSpacing(5);
307
		hpanel.add(new Label("MODEL:  "));
308
 
892 chandransh 309
		hpanel.add(new Label(transaction.getModelName() + " " + transaction.getModelNumber()));
306 ashish 310
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
311
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
312
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
313
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
314
		orderDetails1.add(hpanel);
315
 
316
		hpanel = new HorizontalPanel();
317
		hpanel.setSpacing(5);
486 rajveer 318
		hpanel.add(new Label("EXTRA INFO:  "));
306 ashish 319
 
484 rajveer 320
		hpanel.add(new Label(transaction.getExtraInfo()));
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("VENDOR:   "));
330
 
331
		hpanel.add(new Label(transaction.getVendor()));
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
		//orderDetails.setWidget(0, 0, panel);
339
 
340
		hpanel = new HorizontalPanel();
341
		hpanel.setSpacing(5);
486 rajveer 342
		hpanel.add(new Label("NAME:  "));
343
 
344
		hpanel.add(new Label(transaction.getCustomerName()));
345
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
346
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
347
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
348
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
349
		orderDetails2.add(hpanel);
350
 
351
		hpanel = new HorizontalPanel();
352
		hpanel.setSpacing(5);
306 ashish 353
		hpanel.add(new Label("ADDRESS:  "));
737 chandransh 354
		hpanel.add(new Label(transaction.getCustomerAddress1() + "\n" + transaction.getCustomerAddress2() + "\n" + transaction.getCustomerCity() + "\n" + transaction.getCustomerState() + "   PIN - " +  transaction.getCustomerPincode()));
306 ashish 355
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
356
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
357
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
358
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
359
		orderDetails2.add(hpanel);
360
 
486 rajveer 361
		hpanel = new HorizontalPanel();
362
		hpanel.setSpacing(5);
487 rajveer 363
		hpanel.add(new Label("MOBILE NUMBER:  "));
364
 
365
		hpanel.add(new Label(transaction.getCustomerMobileNumber()));
366
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
367
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
368
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
369
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
370
		orderDetails2.add(hpanel);
371
 
372
		hpanel = new HorizontalPanel();
373
		hpanel.setSpacing(5);
486 rajveer 374
		hpanel.add(new Label("TOTAL WEIGHT:  "));
375
		hpanel.add(new Label(transaction.getTotalWeight()+""));
376
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
377
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
378
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
379
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
380
		orderDetails3.add(hpanel);
381
 
382
 
383
		hpanel = new HorizontalPanel();
384
		hpanel.setSpacing(5);
385
		hpanel.add(new Label("TOTAL AMOUNT(Rs):  "));
386
		hpanel.add(new Label(transaction.getTotalAmount()+""));
387
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
388
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
389
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
390
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
391
		orderDetails3.add(hpanel);
392
 
393
 
394
		hpanel = new HorizontalPanel();
395
		hpanel.setSpacing(5);
639 chandransh 396
		hpanel.add(new Label("AIRWAY BILL NO:  "));		
486 rajveer 397
		hpanel.add(new Label(transaction.getAirwayBillNo()));
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
		orderDetails4.add(hpanel);
403
 
404
 
405
		hpanel = new HorizontalPanel();
406
		hpanel.setSpacing(5);
407
		hpanel.add(new Label("INVOICE NUMBER:  "));
408
		hpanel.add(new Label(transaction.getInvoiceNumber()));
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
		orderDetails4.add(hpanel);
639 chandransh 414
 
415
		hpanel = new HorizontalPanel();
416
		hpanel.setSpacing(5);
417
		hpanel.add(new Label("JACKET NUMBER:  "));
418
		hpanel.add(new Label(transaction.getJacketNumber() + ""));
419
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
420
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
421
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
422
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
423
		orderDetails4.add(hpanel);
486 rajveer 424
 
425
		hpanel = new HorizontalPanel();
426
		hpanel.setSpacing(5);
427
		hpanel.add(new Label("BILLED BY:  "));
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
}