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");
959 chandransh 104
	    addShippingInfo.setVisible(false);
306 ashish 105
	    markShipped.setText("Shipped");
486 rajveer 106
	    markShipped.setVisible(false);
107
 
306 ashish 108
	    header.setWidget(0, 0, acceptOrder);
487 rajveer 109
	    header.setWidget(0, 1, notAvailable);
110
	    header.setWidget(0, 2, printLabel);
111
	    header.setWidget(0, 3, addBillingInfo);
112
	    header.setWidget(0, 4, addShippingInfo);
677 chandransh 113
	    header.setWidget(0, 5, printManifest);
849 chandransh 114
	    header.setWidget(0, 5, markShipped);
115
	    header.setWidget(0, 6, rejectOrder);
677 chandransh 116
 
306 ashish 117
	    //addShippingInfo.setVisible(false);
118
	    //markShipped.setVisible(false);
119
	    /*
120
	    header.setText(0, 1, "Add Billing Details");
121
	    header.setText(0, 2, "Print shipping label");
122
	    header.setText(0, 3, "Prepare for Shipping ");
123
	    header.setText(0, 4, "Mark Shipped");
124
	    header.setText(0, 5, "View Order Details");
125
 
167 ashish 126
	    header.setText(0, 0, "Accept Order");
127
	    header.setText(0, 1, "Add Billing Details");
128
	    header.setText(0, 2, "Print shipping label");
129
	    header.setText(0, 3, "Prepare for Shipping ");
130
	    header.setText(0, 4, "Mark Shipped");
131
	    header.setText(0, 5, "View Order Details");
306 ashish 132
	    */ 
167 ashish 133
	}
134
 
306 ashish 135
	private void registerButtonHandlers(){
136
		acceptOrder.addClickHandler(new ClickHandler() {
137
 
138
			@Override
139
			public void onClick(ClickEvent event) {
140
				if(acceptOrder.isEnabled()){
141
					eventbus.fireEvent(new AcceptOrderEvent(order));
142
				}
143
			}
144
		});
145
 
486 rajveer 146
		rejectOrder.addClickHandler(new ClickHandler() {
147
 
148
			@Override
149
			public void onClick(ClickEvent event) {
150
				if(!notAvailable.isEnabled()) return;
151
				RejectReasonBox box = new RejectReasonBox(eventbus, order);
152
				//box.clear();
153
				box.center();			
154
			}
155
		});
156
 
487 rajveer 157
		notAvailable.addClickHandler(new ClickHandler() {
158
 
159
			@Override
160
			public void onClick(ClickEvent event) {
161
				eventbus.fireEvent(new NostockOrderEvent(order));
162
			}
163
		});
164
 
306 ashish 165
		addBillingInfo.addClickHandler(new ClickHandler() {
166
 
167
			@Override
168
			public void onClick(ClickEvent event) {
169
				if(!addBillingInfo.isEnabled()) return;
170
				BillingInfoBox box = new BillingInfoBox(eventbus, order, user);
171
				//box.clear();
172
				box.center();				
173
			}
174
		});
487 rajveer 175
 
306 ashish 176
		printLabel.addClickHandler(new ClickHandler() {
177
 
178
			@Override
179
			public void onClick(ClickEvent event) {
892 chandransh 180
				String invoiceGenerationUrl = "http://" + Window.Location.getHost() + "/Support/invoice/";
493 rajveer 181
				invoiceGenerationUrl = invoiceGenerationUrl + order.getOrderId();
182
				Window.open(invoiceGenerationUrl, "newWindowName", "window features.");
306 ashish 183
			}
184
		});
487 rajveer 185
 
677 chandransh 186
		printManifest.addClickHandler(new ClickHandler() {
187
 
188
			@Override
189
			public void onClick(ClickEvent event) {
190
				ProviderInfoBox box = new ProviderInfoBox(eventbus, user, warehouseID);
191
				//box.clear();
760 chandransh 192
				box.center();
677 chandransh 193
			}
194
		});
195
 
306 ashish 196
		addShippingInfo.addClickHandler(new ClickHandler() {
197
 
198
			@Override
199
			public void onClick(ClickEvent event) {
200
				if(!addShippingInfo.isEnabled()) return;
201
				ShipmentInfoBox box = new ShipmentInfoBox(eventbus, order);
202
				//box.clear();
203
				box.center();			
204
			}
205
		});
206
		markShipped.addClickHandler(new ClickHandler() {
207
 
208
			@Override
209
			public void onClick(ClickEvent event) {			
210
				if(!markShipped.isEnabled()) return;
211
				eventbus.fireEvent(new ShippedOrderEvent(order, "", "", "", false));
212
			}
213
		});
214
 
215
	}
216
	/*
167 ashish 217
	private void registerhandlers(){
218
		header.addClickHandler(new ClickHandler() {
219
 
220
			@Override
221
			public void onClick(ClickEvent event) {
222
 
223
				Cell cell = header.getCellForEvent(event);
224
 
225
				int columnIndex = cell.getCellIndex();
226
 
227
				if(columnIndex == 0){
228
					//accept orders
229
					eventbus.fireEvent(new AcceptOrderEvent(order));
230
				}
231
 
232
				if(columnIndex == 1){
233
					//generate billing information
192 ashish 234
					BillingInfoBox box = new BillingInfoBox(eventbus, order);
167 ashish 235
					box.clear();
236
					box.center();
237
				}
238
 
239
				if(columnIndex == 2){
240
					eventbus.fireEvent(new AddressLabelEvent(order));
241
				}
242
 
243
				if(columnIndex == 3){
192 ashish 244
					ShipmentInfoBox box = new ShipmentInfoBox(eventbus, order);
167 ashish 245
					box.clear();
246
					box.center();
247
				}
248
 
249
				if(columnIndex == 4){
192 ashish 250
 
251
					eventbus.fireEvent(new ShippedOrderEvent(order, "", "", "", false));
252
 
167 ashish 253
				}
254
			}
255
		});
256
	}
306 ashish 257
*/
258
	private void implementMask(){
259
		switch(mask){
260
		case NEW:
677 chandransh 261
			maskButtons(true, true, true, false, false, false, false, true);
306 ashish 262
			break;
263
		case ACCEPT:
677 chandransh 264
			maskButtons(false, false, false, false, true, false, false, true);
306 ashish 265
			break;
486 rajveer 266
		case REJECT:
677 chandransh 267
			maskButtons(false, false, false, false, false, false, false, true);
486 rajveer 268
			break;
306 ashish 269
		case BILL:
677 chandransh 270
			maskButtons(false, false, false, true, false, true, true, true);
306 ashish 271
			break;
272
		case SHIP:
677 chandransh 273
			maskButtons(false, false, false, false, false, false, false, true);
306 ashish 274
			break;
487 rajveer 275
		case NO_STOCK:
677 chandransh 276
			maskButtons(true, true, false, false, false, false, false, true);
487 rajveer 277
			break;
278
 
306 ashish 279
		}
280
	}
281
 
677 chandransh 282
	private void maskButtons(boolean accept, boolean reject, boolean notavailable, boolean print, boolean billing, boolean shipping, boolean mark, boolean manifest){
306 ashish 283
		acceptOrder.setEnabled(accept);
284
		rejectOrder.setEnabled(reject);
285
		notAvailable.setEnabled(notavailable);
286
		printLabel.setEnabled(print);
677 chandransh 287
		printManifest.setEnabled(manifest);
306 ashish 288
		addBillingInfo.setEnabled(billing);
289
		addShippingInfo.setEnabled(shipping);
290
		markShipped.setEnabled(mark);		
291
	}
292
 
293
	private void loadOrderDetails(){
294
 
295
		HorizontalPanel hpanel = new HorizontalPanel();
296
		hpanel.setSpacing(5);
706 chandransh 297
		hpanel.add(new Label("Item ID:  "));
306 ashish 298
 
706 chandransh 299
		hpanel.add(new Label(transaction.getItemId()+""));
306 ashish 300
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
301
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
302
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
303
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
304
		orderDetails1.add(hpanel);
305
 
306
		hpanel = new HorizontalPanel();
307
		hpanel.setSpacing(5);
308
		hpanel.add(new Label("MODEL:  "));
309
 
914 chandransh 310
		String modelName = "";
311
		if(transaction.getModelName()!=null)
312
			modelName = transaction.getModelName() + " ";
313
		if(transaction.getModelNumber()!=null)
314
			modelName = modelName + transaction.getModelNumber();
315
		if(transaction.getColor()!=null)
316
			modelName = modelName + " (" + transaction.getColor() + ")";
317
		hpanel.add(new Label(modelName));
306 ashish 318
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
319
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
320
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
321
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
322
		orderDetails1.add(hpanel);
323
 
324
		hpanel = new HorizontalPanel();
325
		hpanel.setSpacing(5);
486 rajveer 326
		hpanel.add(new Label("EXTRA INFO:  "));
306 ashish 327
 
484 rajveer 328
		hpanel.add(new Label(transaction.getExtraInfo()));
306 ashish 329
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
330
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
331
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
332
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
333
		orderDetails1.add(hpanel);
334
 
335
		hpanel = new HorizontalPanel();
336
		hpanel.setSpacing(5);
337
		hpanel.add(new Label("VENDOR:   "));
338
 
339
		hpanel.add(new Label(transaction.getVendor()));
340
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
341
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
342
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
343
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
344
		orderDetails1.add(hpanel);
345
 
346
		//orderDetails.setWidget(0, 0, panel);
347
 
348
		hpanel = new HorizontalPanel();
349
		hpanel.setSpacing(5);
486 rajveer 350
		hpanel.add(new Label("NAME:  "));
351
 
352
		hpanel.add(new Label(transaction.getCustomerName()));
353
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
354
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
355
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
356
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
357
		orderDetails2.add(hpanel);
358
 
359
		hpanel = new HorizontalPanel();
360
		hpanel.setSpacing(5);
306 ashish 361
		hpanel.add(new Label("ADDRESS:  "));
737 chandransh 362
		hpanel.add(new Label(transaction.getCustomerAddress1() + "\n" + transaction.getCustomerAddress2() + "\n" + transaction.getCustomerCity() + "\n" + transaction.getCustomerState() + "   PIN - " +  transaction.getCustomerPincode()));
306 ashish 363
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
364
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
365
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
366
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
367
		orderDetails2.add(hpanel);
368
 
486 rajveer 369
		hpanel = new HorizontalPanel();
370
		hpanel.setSpacing(5);
487 rajveer 371
		hpanel.add(new Label("MOBILE NUMBER:  "));
372
 
373
		hpanel.add(new Label(transaction.getCustomerMobileNumber()));
374
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
375
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
376
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
377
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
378
		orderDetails2.add(hpanel);
379
 
380
		hpanel = new HorizontalPanel();
381
		hpanel.setSpacing(5);
486 rajveer 382
		hpanel.add(new Label("TOTAL WEIGHT:  "));
383
		hpanel.add(new Label(transaction.getTotalWeight()+""));
384
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
385
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
386
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
387
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
388
		orderDetails3.add(hpanel);
389
 
390
 
391
		hpanel = new HorizontalPanel();
392
		hpanel.setSpacing(5);
393
		hpanel.add(new Label("TOTAL AMOUNT(Rs):  "));
394
		hpanel.add(new Label(transaction.getTotalAmount()+""));
395
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
396
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
397
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
398
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
399
		orderDetails3.add(hpanel);
400
 
401
 
402
		hpanel = new HorizontalPanel();
403
		hpanel.setSpacing(5);
639 chandransh 404
		hpanel.add(new Label("AIRWAY BILL NO:  "));		
486 rajveer 405
		hpanel.add(new Label(transaction.getAirwayBillNo()));
406
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
407
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
408
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
409
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
410
		orderDetails4.add(hpanel);
411
 
412
 
413
		hpanel = new HorizontalPanel();
414
		hpanel.setSpacing(5);
415
		hpanel.add(new Label("INVOICE NUMBER:  "));
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);
639 chandransh 422
 
423
		hpanel = new HorizontalPanel();
424
		hpanel.setSpacing(5);
425
		hpanel.add(new Label("JACKET NUMBER:  "));
426
		hpanel.add(new Label(transaction.getJacketNumber() + ""));
427
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
428
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
429
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
430
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
431
		orderDetails4.add(hpanel);
486 rajveer 432
 
433
		hpanel = new HorizontalPanel();
434
		hpanel.setSpacing(5);
435
		hpanel.add(new Label("BILLED BY:  "));
436
		hpanel.add(new Label(transaction.getBilledBy()));
437
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
438
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
439
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
440
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
441
		orderDetails4.add(hpanel);
442
 
484 rajveer 443
		/*
306 ashish 444
		hpanel = new HorizontalPanel();
445
		hpanel.setSpacing(5);
446
		hpanel.add(new Label("VALUE:  "));
447
 
448
		hpanel.add(new Label(transaction.getShipment().getValue()));
449
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
450
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
451
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
452
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
453
		orderDetails2.add(hpanel);
454
 
455
		hpanel = new HorizontalPanel();
456
		hpanel.setSpacing(5);
457
		hpanel.add(new Label("WEIGHT:  "));
458
 
459
		hpanel.add(new Label(transaction.getShipment().getWeight()));
460
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
461
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
462
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
463
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
464
		orderDetails2.add(hpanel);
465
 
466
		hpanel = new HorizontalPanel();
467
		hpanel.setSpacing(5);
468
		hpanel.add(new Label("SHIPMENT STATUS:   "));
469
 
470
		hpanel.add(new Label(transaction.getShipment().getShipmentStatus()));
471
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
472
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
473
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
474
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
475
		orderDetails2.add(hpanel);
476
 
477
		//orderDetails.setWidget(0, 1, panel);
478
 
479
		hpanel = new HorizontalPanel();
480
		hpanel.setSpacing(5);
481
		hpanel.add(new Label("PAYMENT TIME:  "));
482
 
483
		hpanel.add(new Label(transaction.getShipment().getPaymentTime()));
484
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
485
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
486
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
487
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
488
		orderDetails3.add(hpanel);
489
 
490
		hpanel = new HorizontalPanel();
491
		hpanel.setSpacing(5);
492
		hpanel.add(new Label("PAYMENT MODE:  "));
493
 
494
		hpanel.add(new Label(transaction.getShipment().getPaymentMode()));
495
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
496
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
497
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
498
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
499
		orderDetails3.add(hpanel);
500
 
501
		hpanel = new HorizontalPanel();
502
		hpanel.setSpacing(5);
503
		hpanel.add(new Label("BANK TX ID:  "));
504
 
505
		hpanel.add(new Label(transaction.getShipment().getBank_tx_id()));
506
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
507
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
508
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
509
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
510
		orderDetails3.add(hpanel);
511
 
512
		hpanel = new HorizontalPanel();
513
		hpanel.setSpacing(5);
514
		hpanel.add(new Label("BILL NO:  "));
515
 
516
		hpanel.add(new Label(transaction.getShipment().getBillNo()));
517
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
518
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
519
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
520
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
521
		orderDetails4.add(hpanel);
522
 
523
		hpanel = new HorizontalPanel();
524
		hpanel.setSpacing(5);
525
		hpanel.add(new Label("BILLER:  "));
526
 
527
		hpanel.add(new Label(transaction.getShipment().getBillCreatedBy()));
528
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
529
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
530
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
531
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
532
		orderDetails4.add(hpanel);
533
 
534
		hpanel = new HorizontalPanel();
535
		hpanel.setSpacing(5);
536
		hpanel.add(new Label("TIME:  "));
537
 
538
		hpanel.add(new Label(transaction.getShipment().getBillCreatedOn()));
539
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
540
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
541
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
542
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
543
		orderDetails4.add(hpanel);
544
 
545
		hpanel = new HorizontalPanel();
546
		hpanel.setSpacing(5);
547
		hpanel.add(new Label("AIRWAY BILL NO:  "));
548
 
549
		hpanel.add(new Label(transaction.getShipment().getAirwayNo()));
550
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
551
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
552
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
553
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
554
		orderDetails5.add(hpanel);
555
 
556
		hpanel = new HorizontalPanel();
557
		hpanel.setSpacing(5);
558
		hpanel.add(new Label("TRACKING ID:  "));
559
 
560
		hpanel.add(new Label(transaction.getShipment().getTracker()));
561
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
562
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
563
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
564
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
565
		orderDetails5.add(hpanel);
566
 
567
		hpanel = new HorizontalPanel();
568
		hpanel.setSpacing(5);
569
		hpanel.add(new Label("PROVIDER:  "));
570
 
571
		hpanel.add(new Label(transaction.getShipment().getProvider()));
572
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
573
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
574
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
575
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
576
		orderDetails5.add(hpanel);
577
 
578
		hpanel = new HorizontalPanel();
579
		hpanel.setSpacing(5);
580
		hpanel.add(new Label("SHIPPED ON:  "));
581
 
582
		hpanel.add(new Label(transaction.getShipment().getShippedOn()));
583
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
584
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
585
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
586
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
587
		orderDetails5.add(hpanel);
484 rajveer 588
		*/
306 ashish 589
	}
167 ashish 590
}