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