| Line 1... |
Line 1... |
| 1 |
package in.shop2020.hotspot.dashbaord.client;
|
1 |
package in.shop2020.hotspot.dashbaord.client;
|
| 2 |
|
2 |
|
| 3 |
import in.shop2020.hotspot.dashbaord.client.admin.AdminPresenter;
|
3 |
import in.shop2020.hotspot.dashbaord.client.admin.AdminPresenter;
|
| - |
|
4 |
import in.shop2020.hotspot.dashbaord.client.event.LoadOrderCountsEvent;
|
| 4 |
import in.shop2020.hotspot.dashbaord.client.event.LoadOrderListEvent;
|
5 |
import in.shop2020.hotspot.dashbaord.client.event.LoadOrderListEvent;
|
| 5 |
import in.shop2020.hotspot.dashbaord.client.event.SignOutEvent;
|
6 |
import in.shop2020.hotspot.dashbaord.client.event.SignOutEvent;
|
| 6 |
import in.shop2020.hotspot.dashbaord.client.event.SignOutEventHandler;
|
7 |
import in.shop2020.hotspot.dashbaord.client.event.SignOutEventHandler;
|
| 7 |
import in.shop2020.hotspot.dashbaord.client.event.SubmitLoginInfoEvent;
|
8 |
import in.shop2020.hotspot.dashbaord.client.event.SubmitLoginInfoEvent;
|
| 8 |
import in.shop2020.hotspot.dashbaord.client.event.SubmitLoginInfoHandler;
|
9 |
import in.shop2020.hotspot.dashbaord.client.event.SubmitLoginInfoHandler;
|
| 9 |
import in.shop2020.hotspot.dashbaord.client.inbox.InboxPresenter;
|
10 |
import in.shop2020.hotspot.dashbaord.client.inbox.InboxPresenter;
|
| 10 |
import in.shop2020.hotspot.dashbaord.shared.actions.AuthRequest;
|
11 |
import in.shop2020.hotspot.dashbaord.shared.actions.AuthRequest;
|
| 11 |
import in.shop2020.hotspot.dashbaord.shared.actions.AuthResponse;
|
12 |
import in.shop2020.hotspot.dashbaord.shared.actions.AuthResponse;
|
| 12 |
import in.shop2020.hotspot.dashbaord.shared.actions.AuthResponse.NEXT;
|
13 |
import in.shop2020.hotspot.dashbaord.shared.actions.AuthResponse.NEXT;
|
| - |
|
14 |
import in.shop2020.hotspot.dashbaord.shared.actions.OrderType;
|
| 13 |
|
15 |
|
| 14 |
import net.customware.gwt.dispatch.client.DispatchAsync;
|
16 |
import net.customware.gwt.dispatch.client.DispatchAsync;
|
| 15 |
|
17 |
|
| 16 |
import org.enunes.gwt.mvp.client.EventBus;
|
18 |
import org.enunes.gwt.mvp.client.EventBus;
|
| 17 |
import org.enunes.gwt.mvp.client.presenter.BasePresenter;
|
19 |
import org.enunes.gwt.mvp.client.presenter.BasePresenter;
|
| Line 106... |
Line 108... |
| 106 |
//inboxPresenter.refreshOrderList();
|
108 |
//inboxPresenter.refreshOrderList();
|
| 107 |
|
109 |
|
| 108 |
inboxPresenter.getDisplay().changeGreeting(result.getUsername());
|
110 |
inboxPresenter.getDisplay().changeGreeting(result.getUsername());
|
| 109 |
switchPresenter(inboxPresenter);
|
111 |
switchPresenter(inboxPresenter);
|
| 110 |
eventBus.fireEvent(new LoadOrderListEvent());
|
112 |
eventBus.fireEvent(new LoadOrderListEvent());
|
| - |
|
113 |
//eventBus.fireEvent(new LoadOrderListEvent(OrderType.ACCEPTED));
|
| - |
|
114 |
//eventBus.fireEvent(new LoadOrderListEvent(OrderType.LOW_INVENTORY));
|
| - |
|
115 |
//eventBus.fireEvent(new LoadOrderListEvent(OrderType.BILLED));
|
| - |
|
116 |
//eventBus.fireEvent(new LoadOrderListEvent(OrderType.NEW));
|
| - |
|
117 |
eventBus.fireEvent(new LoadOrderCountsEvent(OrderType.ACCEPTED));
|
| 111 |
}
|
118 |
}
|
| 112 |
|
119 |
|
| 113 |
if(result.getNext() == NEXT.ADMIN){
|
120 |
if(result.getNext() == NEXT.ADMIN){
|
| 114 |
final AdminPresenter adminPresenter = adminProvider.get();
|
121 |
final AdminPresenter adminPresenter = adminProvider.get();
|
| 115 |
adminPresenter.initialize();
|
122 |
adminPresenter.initialize();
|