| Line 2... |
Line 2... |
| 2 |
|
2 |
|
| 3 |
import in.shop2020.hotspot.dashbaord.client.event.AcceptOrderEvent;
|
3 |
import in.shop2020.hotspot.dashbaord.client.event.AcceptOrderEvent;
|
| 4 |
import in.shop2020.hotspot.dashbaord.client.event.FlagOrderEvent;
|
4 |
import in.shop2020.hotspot.dashbaord.client.event.FlagOrderEvent;
|
| 5 |
import in.shop2020.hotspot.dashbaord.client.event.NostockOrderEvent;
|
5 |
import in.shop2020.hotspot.dashbaord.client.event.NostockOrderEvent;
|
| 6 |
import in.shop2020.hotspot.dashbaord.client.event.ProvisionalCaptureEvent;
|
6 |
import in.shop2020.hotspot.dashbaord.client.event.ProvisionalCaptureEvent;
|
| 7 |
import in.shop2020.hotspot.dashbaord.client.event.RequestPickupEvent;
|
- |
|
| 8 |
import in.shop2020.hotspot.dashbaord.client.event.ReshipOrderEvent;
|
7 |
import in.shop2020.hotspot.dashbaord.client.event.ReshipOrderEvent;
|
| 9 |
import in.shop2020.hotspot.dashbaord.shared.actions.BillingType;
|
8 |
import in.shop2020.hotspot.dashbaord.shared.actions.BillingType;
|
| 10 |
import in.shop2020.hotspot.dashbaord.shared.actions.DetailsMask;
|
9 |
import in.shop2020.hotspot.dashbaord.shared.actions.DetailsMask;
|
| 11 |
import in.shop2020.hotspot.dashbaord.shared.actions.Order;
|
10 |
import in.shop2020.hotspot.dashbaord.shared.actions.Order;
|
| 12 |
import in.shop2020.hotspot.dashbaord.shared.actions.UserType;
|
11 |
import in.shop2020.hotspot.dashbaord.shared.actions.UserType;
|
| 13 |
|
12 |
|
| - |
|
13 |
import java.util.HashMap;
|
| 14 |
import java.util.Map;
|
14 |
import java.util.Map;
|
| 15 |
|
15 |
|
| 16 |
import org.enunes.gwt.mvp.client.EventBus;
|
16 |
import org.enunes.gwt.mvp.client.EventBus;
|
| 17 |
|
17 |
|
| 18 |
import com.google.gwt.core.client.GWT;
|
18 |
import com.google.gwt.core.client.GWT;
|
| Line 400... |
Line 400... |
| 400 |
|
400 |
|
| 401 |
@Override
|
401 |
@Override
|
| 402 |
public void onClick(ClickEvent event) {
|
402 |
public void onClick(ClickEvent event) {
|
| 403 |
if(requestPickup.isEnabled()){
|
403 |
if(requestPickup.isEnabled()){
|
| 404 |
GWT.log("Raising a pickup request for: " + order.getOrderId());
|
404 |
GWT.log("Raising a pickup request for: " + order.getOrderId());
|
| - |
|
405 |
//FIXME
|
| 405 |
eventbus.fireEvent(new RequestPickupEvent(order));
|
406 |
Map<Long, String> providers = new HashMap<Long, String>();
|
| - |
|
407 |
providers.put(1L, "BlueDart");
|
| - |
|
408 |
providers.put(2L, "Aramex");
|
| - |
|
409 |
ChoosePickupProviderBox box = new ChoosePickupProviderBox(eventbus, order, providers);
|
| - |
|
410 |
box.center();
|
| 406 |
}
|
411 |
}
|
| 407 |
}
|
412 |
}
|
| 408 |
});
|
413 |
});
|
| 409 |
|
414 |
|
| 410 |
authorizePickup.addClickHandler(new ClickHandler() {
|
415 |
authorizePickup.addClickHandler(new ClickHandler() {
|