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
 
914 chandransh 309
		String modelName = "";
310
		if(transaction.getModelName()!=null)
311
			modelName = transaction.getModelName() + " ";
312
		if(transaction.getModelNumber()!=null)
313
			modelName = modelName + transaction.getModelNumber();
314
		if(transaction.getColor()!=null)
315
			modelName = modelName + " (" + transaction.getColor() + ")";
316
		hpanel.add(new Label(modelName));
306 ashish 317
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
318
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
319
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
320
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
321
		orderDetails1.add(hpanel);
322
 
323
		hpanel = new HorizontalPanel();
324
		hpanel.setSpacing(5);
486 rajveer 325
		hpanel.add(new Label("EXTRA INFO:  "));
306 ashish 326
 
484 rajveer 327
		hpanel.add(new Label(transaction.getExtraInfo()));
306 ashish 328
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
329
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
330
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
331
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
332
		orderDetails1.add(hpanel);
333
 
334
		hpanel = new HorizontalPanel();
335
		hpanel.setSpacing(5);
336
		hpanel.add(new Label("VENDOR:   "));
337
 
338
		hpanel.add(new Label(transaction.getVendor()));
339
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
340
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
341
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
342
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
343
		orderDetails1.add(hpanel);
344
 
345
		//orderDetails.setWidget(0, 0, panel);
346
 
347
		hpanel = new HorizontalPanel();
348
		hpanel.setSpacing(5);
486 rajveer 349
		hpanel.add(new Label("NAME:  "));
350
 
351
		hpanel.add(new Label(transaction.getCustomerName()));
352
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
353
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
354
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
355
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
356
		orderDetails2.add(hpanel);
357
 
358
		hpanel = new HorizontalPanel();
359
		hpanel.setSpacing(5);
306 ashish 360
		hpanel.add(new Label("ADDRESS:  "));
737 chandransh 361
		hpanel.add(new Label(transaction.getCustomerAddress1() + "\n" + transaction.getCustomerAddress2() + "\n" + transaction.getCustomerCity() + "\n" + transaction.getCustomerState() + "   PIN - " +  transaction.getCustomerPincode()));
306 ashish 362
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
363
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
364
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
365
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
366
		orderDetails2.add(hpanel);
367
 
486 rajveer 368
		hpanel = new HorizontalPanel();
369
		hpanel.setSpacing(5);
487 rajveer 370
		hpanel.add(new Label("MOBILE NUMBER:  "));
371
 
372
		hpanel.add(new Label(transaction.getCustomerMobileNumber()));
373
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
374
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
375
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
376
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
377
		orderDetails2.add(hpanel);
378
 
379
		hpanel = new HorizontalPanel();
380
		hpanel.setSpacing(5);
486 rajveer 381
		hpanel.add(new Label("TOTAL WEIGHT:  "));
382
		hpanel.add(new Label(transaction.getTotalWeight()+""));
383
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
384
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
385
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
386
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
387
		orderDetails3.add(hpanel);
388
 
389
 
390
		hpanel = new HorizontalPanel();
391
		hpanel.setSpacing(5);
392
		hpanel.add(new Label("TOTAL AMOUNT(Rs):  "));
393
		hpanel.add(new Label(transaction.getTotalAmount()+""));
394
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
395
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
396
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
397
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
398
		orderDetails3.add(hpanel);
399
 
400
 
401
		hpanel = new HorizontalPanel();
402
		hpanel.setSpacing(5);
639 chandransh 403
		hpanel.add(new Label("AIRWAY BILL NO:  "));		
486 rajveer 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
		hpanel.add(new Label(transaction.getInvoiceNumber()));
416
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
417
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
418
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
419
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
420
		orderDetails4.add(hpanel);
639 chandransh 421
 
422
		hpanel = new HorizontalPanel();
423
		hpanel.setSpacing(5);
424
		hpanel.add(new Label("JACKET NUMBER:  "));
425
		hpanel.add(new Label(transaction.getJacketNumber() + ""));
426
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
427
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
428
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
429
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
430
		orderDetails4.add(hpanel);
486 rajveer 431
 
432
		hpanel = new HorizontalPanel();
433
		hpanel.setSpacing(5);
434
		hpanel.add(new Label("BILLED BY:  "));
435
		hpanel.add(new Label(transaction.getBilledBy()));
436
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
437
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
438
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
439
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
440
		orderDetails4.add(hpanel);
441
 
484 rajveer 442
		/*
306 ashish 443
		hpanel = new HorizontalPanel();
444
		hpanel.setSpacing(5);
445
		hpanel.add(new Label("VALUE:  "));
446
 
447
		hpanel.add(new Label(transaction.getShipment().getValue()));
448
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
449
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
450
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
451
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
452
		orderDetails2.add(hpanel);
453
 
454
		hpanel = new HorizontalPanel();
455
		hpanel.setSpacing(5);
456
		hpanel.add(new Label("WEIGHT:  "));
457
 
458
		hpanel.add(new Label(transaction.getShipment().getWeight()));
459
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
460
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
461
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
462
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
463
		orderDetails2.add(hpanel);
464
 
465
		hpanel = new HorizontalPanel();
466
		hpanel.setSpacing(5);
467
		hpanel.add(new Label("SHIPMENT STATUS:   "));
468
 
469
		hpanel.add(new Label(transaction.getShipment().getShipmentStatus()));
470
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
471
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
472
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
473
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
474
		orderDetails2.add(hpanel);
475
 
476
		//orderDetails.setWidget(0, 1, panel);
477
 
478
		hpanel = new HorizontalPanel();
479
		hpanel.setSpacing(5);
480
		hpanel.add(new Label("PAYMENT TIME:  "));
481
 
482
		hpanel.add(new Label(transaction.getShipment().getPaymentTime()));
483
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
484
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
485
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
486
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
487
		orderDetails3.add(hpanel);
488
 
489
		hpanel = new HorizontalPanel();
490
		hpanel.setSpacing(5);
491
		hpanel.add(new Label("PAYMENT MODE:  "));
492
 
493
		hpanel.add(new Label(transaction.getShipment().getPaymentMode()));
494
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
495
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
496
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
497
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
498
		orderDetails3.add(hpanel);
499
 
500
		hpanel = new HorizontalPanel();
501
		hpanel.setSpacing(5);
502
		hpanel.add(new Label("BANK TX ID:  "));
503
 
504
		hpanel.add(new Label(transaction.getShipment().getBank_tx_id()));
505
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
506
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
507
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
508
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
509
		orderDetails3.add(hpanel);
510
 
511
		hpanel = new HorizontalPanel();
512
		hpanel.setSpacing(5);
513
		hpanel.add(new Label("BILL NO:  "));
514
 
515
		hpanel.add(new Label(transaction.getShipment().getBillNo()));
516
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
517
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
518
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
519
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
520
		orderDetails4.add(hpanel);
521
 
522
		hpanel = new HorizontalPanel();
523
		hpanel.setSpacing(5);
524
		hpanel.add(new Label("BILLER:  "));
525
 
526
		hpanel.add(new Label(transaction.getShipment().getBillCreatedBy()));
527
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
528
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
529
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
530
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
531
		orderDetails4.add(hpanel);
532
 
533
		hpanel = new HorizontalPanel();
534
		hpanel.setSpacing(5);
535
		hpanel.add(new Label("TIME:  "));
536
 
537
		hpanel.add(new Label(transaction.getShipment().getBillCreatedOn()));
538
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
539
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
540
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
541
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
542
		orderDetails4.add(hpanel);
543
 
544
		hpanel = new HorizontalPanel();
545
		hpanel.setSpacing(5);
546
		hpanel.add(new Label("AIRWAY BILL NO:  "));
547
 
548
		hpanel.add(new Label(transaction.getShipment().getAirwayNo()));
549
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
550
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
551
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
552
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
553
		orderDetails5.add(hpanel);
554
 
555
		hpanel = new HorizontalPanel();
556
		hpanel.setSpacing(5);
557
		hpanel.add(new Label("TRACKING ID:  "));
558
 
559
		hpanel.add(new Label(transaction.getShipment().getTracker()));
560
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
561
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
562
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
563
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
564
		orderDetails5.add(hpanel);
565
 
566
		hpanel = new HorizontalPanel();
567
		hpanel.setSpacing(5);
568
		hpanel.add(new Label("PROVIDER:  "));
569
 
570
		hpanel.add(new Label(transaction.getShipment().getProvider()));
571
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
572
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
573
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
574
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
575
		orderDetails5.add(hpanel);
576
 
577
		hpanel = new HorizontalPanel();
578
		hpanel.setSpacing(5);
579
		hpanel.add(new Label("SHIPPED ON:  "));
580
 
581
		hpanel.add(new Label(transaction.getShipment().getShippedOn()));
582
		hpanel.setCellWidth(hpanel.getWidget(0), "128px");
583
		hpanel.setCellWidth(hpanel.getWidget(1), "128px");
584
		hpanel.getWidget(0).setStyleName(selectionStyle.blueLabel());
585
		hpanel.getWidget(1).setStyleName(selectionStyle.greenLabel());
586
		orderDetails5.add(hpanel);
484 rajveer 587
		*/
306 ashish 588
	}
167 ashish 589
}