| Line 75... |
Line 75... |
| 75 |
TABLE_INDEX_WAREHOUSE_INVR = 3,
|
75 |
TABLE_INDEX_WAREHOUSE_INVR = 3,
|
| 76 |
TABLE_INDEX_WAREHOUSE_HELD = 4,
|
76 |
TABLE_INDEX_WAREHOUSE_HELD = 4,
|
| 77 |
TABLE_INDEX_WAREHOUSE_EBAY_HELD = 5,
|
77 |
TABLE_INDEX_WAREHOUSE_EBAY_HELD = 5,
|
| 78 |
TABLE_INDEX_WAREHOUSE_SNAPDEAL_HELD = 6,
|
78 |
TABLE_INDEX_WAREHOUSE_SNAPDEAL_HELD = 6,
|
| 79 |
TABLE_INDEX_WAREHOUSE_FLIPKART_HELD = 7,
|
79 |
TABLE_INDEX_WAREHOUSE_FLIPKART_HELD = 7,
|
| - |
|
80 |
TABLE_INDEX_WAREHOUSE_HOMESHOP18_HELD = 8,
|
| 80 |
TABLE_INDEX_WAREHOUSE_GET_BUTTON = 8,
|
81 |
TABLE_INDEX_WAREHOUSE_GET_BUTTON = 9,
|
| 81 |
TABLE_INDEX_WAREHOUSE_UPDATE_BUTTON = 9;
|
82 |
TABLE_INDEX_WAREHOUSE_UPDATE_BUTTON = 10;
|
| 82 |
|
83 |
|
| 83 |
private final int TABLE_INDEX_WAREHOUSE_NAME = 0,
|
84 |
private final int TABLE_INDEX_WAREHOUSE_NAME = 0,
|
| 84 |
TABLE_INDEX_WAREHOUSE_ADD_DEL_BUTTON = 1;
|
85 |
TABLE_INDEX_WAREHOUSE_ADD_DEL_BUTTON = 1;
|
| 85 |
|
86 |
|
| 86 |
private final int TABLE_INDEX_STATE_NAME = 0,
|
87 |
private final int TABLE_INDEX_STATE_NAME = 0,
|
| Line 415... |
Line 416... |
| 415 |
headerAvailability.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_INVR, "100px");
|
416 |
headerAvailability.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_INVR, "100px");
|
| 416 |
headerAvailability.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_HELD, "100px");
|
417 |
headerAvailability.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_HELD, "100px");
|
| 417 |
headerAvailability.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_EBAY_HELD, "80px");
|
418 |
headerAvailability.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_EBAY_HELD, "80px");
|
| 418 |
headerAvailability.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_SNAPDEAL_HELD, "80px");
|
419 |
headerAvailability.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_SNAPDEAL_HELD, "80px");
|
| 419 |
headerAvailability.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_FLIPKART_HELD, "80px");
|
420 |
headerAvailability.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_FLIPKART_HELD, "80px");
|
| - |
|
421 |
headerAvailability.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_HOMESHOP18_HELD, "80px");
|
| 420 |
headerAvailability.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_GET_BUTTON, "100px");
|
422 |
headerAvailability.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_GET_BUTTON, "100px");
|
| 421 |
headerAvailability.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_UPDATE_BUTTON, "100px");
|
423 |
headerAvailability.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_UPDATE_BUTTON, "100px");
|
| 422 |
|
424 |
|
| 423 |
headerAvailability.setText(0, TABLE_INDEX_WAREHOUSE_ID, "Warehouse Id");
|
425 |
headerAvailability.setText(0, TABLE_INDEX_WAREHOUSE_ID, "Warehouse Id");
|
| 424 |
headerAvailability.setText(0, TABLE_INDEX_WAREHOUSE_DESC, "Warehouse Desc");
|
426 |
headerAvailability.setText(0, TABLE_INDEX_WAREHOUSE_DESC, "Warehouse Desc");
|
| Line 426... |
Line 428... |
| 426 |
headerAvailability.setText(0, TABLE_INDEX_WAREHOUSE_INVR, "Reserved");
|
428 |
headerAvailability.setText(0, TABLE_INDEX_WAREHOUSE_INVR, "Reserved");
|
| 427 |
headerAvailability.setText(0, TABLE_INDEX_WAREHOUSE_HELD, "Held");
|
429 |
headerAvailability.setText(0, TABLE_INDEX_WAREHOUSE_HELD, "Held");
|
| 428 |
headerAvailability.setText(0, TABLE_INDEX_WAREHOUSE_EBAY_HELD, "Ebay Held");
|
430 |
headerAvailability.setText(0, TABLE_INDEX_WAREHOUSE_EBAY_HELD, "Ebay Held");
|
| 429 |
headerAvailability.setText(0, TABLE_INDEX_WAREHOUSE_SNAPDEAL_HELD, "Snapdeal Held");
|
431 |
headerAvailability.setText(0, TABLE_INDEX_WAREHOUSE_SNAPDEAL_HELD, "Snapdeal Held");
|
| 430 |
headerAvailability.setText(0, TABLE_INDEX_WAREHOUSE_FLIPKART_HELD, "Flipkart Held");
|
432 |
headerAvailability.setText(0, TABLE_INDEX_WAREHOUSE_FLIPKART_HELD, "Flipkart Held");
|
| - |
|
433 |
headerAvailability.setText(0, TABLE_INDEX_WAREHOUSE_HOMESHOP18_HELD, "Homeshop18 Held");
|
| 431 |
|
434 |
|
| 432 |
Button getLiveDataButton = new Button("Get Live Data");
|
435 |
Button getLiveDataButton = new Button("Get Live Data");
|
| 433 |
headerAvailability.setWidget(0, TABLE_INDEX_WAREHOUSE_GET_BUTTON, getLiveDataButton);
|
436 |
headerAvailability.setWidget(0, TABLE_INDEX_WAREHOUSE_GET_BUTTON, getLiveDataButton);
|
| 434 |
getLiveDataButton.addClickHandler(new ClickHandler() {
|
437 |
getLiveDataButton.addClickHandler(new ClickHandler() {
|
| 435 |
@Override
|
438 |
@Override
|
| Line 869... |
Line 872... |
| 869 |
availabilityTable.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_INVR, "100px");
|
872 |
availabilityTable.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_INVR, "100px");
|
| 870 |
availabilityTable.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_HELD, "100px");
|
873 |
availabilityTable.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_HELD, "100px");
|
| 871 |
availabilityTable.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_EBAY_HELD, "80px");
|
874 |
availabilityTable.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_EBAY_HELD, "80px");
|
| 872 |
availabilityTable.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_SNAPDEAL_HELD, "80px");
|
875 |
availabilityTable.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_SNAPDEAL_HELD, "80px");
|
| 873 |
availabilityTable.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_FLIPKART_HELD, "80px");
|
876 |
availabilityTable.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_FLIPKART_HELD, "80px");
|
| - |
|
877 |
availabilityTable.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_HOMESHOP18_HELD, "80px");
|
| 874 |
availabilityTable.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_GET_BUTTON, "100px");
|
878 |
availabilityTable.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_GET_BUTTON, "100px");
|
| 875 |
availabilityTable.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_UPDATE_BUTTON, "100px");
|
879 |
availabilityTable.getColumnFormatter().setWidth(TABLE_INDEX_WAREHOUSE_UPDATE_BUTTON, "100px");
|
| 876 |
|
880 |
|
| 877 |
int i=0;
|
881 |
int i=0;
|
| 878 |
for(ItemInventory warehousedata : itemInventoryMap.values()){
|
882 |
for(ItemInventory warehousedata : itemInventoryMap.values()){
|
| Line 882... |
Line 886... |
| 882 |
availabilityTable.setText(i, TABLE_INDEX_WAREHOUSE_INVR, warehousedata.getReserved() + "");
|
886 |
availabilityTable.setText(i, TABLE_INDEX_WAREHOUSE_INVR, warehousedata.getReserved() + "");
|
| 883 |
availabilityTable.setText(i, TABLE_INDEX_WAREHOUSE_HELD, warehousedata.getHeld() + "");
|
887 |
availabilityTable.setText(i, TABLE_INDEX_WAREHOUSE_HELD, warehousedata.getHeld() + "");
|
| 884 |
availabilityTable.setText(i, TABLE_INDEX_WAREHOUSE_EBAY_HELD, warehousedata.getEbayHeld() + "");
|
888 |
availabilityTable.setText(i, TABLE_INDEX_WAREHOUSE_EBAY_HELD, warehousedata.getEbayHeld() + "");
|
| 885 |
availabilityTable.setText(i, TABLE_INDEX_WAREHOUSE_SNAPDEAL_HELD, warehousedata.getSnapdealHeld() + "");
|
889 |
availabilityTable.setText(i, TABLE_INDEX_WAREHOUSE_SNAPDEAL_HELD, warehousedata.getSnapdealHeld() + "");
|
| 886 |
availabilityTable.setText(i, TABLE_INDEX_WAREHOUSE_FLIPKART_HELD, warehousedata.getFlipkartHeld() + "");
|
890 |
availabilityTable.setText(i, TABLE_INDEX_WAREHOUSE_FLIPKART_HELD, warehousedata.getFlipkartHeld() + "");
|
| - |
|
891 |
availabilityTable.setText(i, TABLE_INDEX_WAREHOUSE_HOMESHOP18_HELD, warehousedata.getHomeshop18Held() + "");
|
| 887 |
|
892 |
|
| 888 |
i++;
|
893 |
i++;
|
| 889 |
}
|
894 |
}
|
| 890 |
}
|
895 |
}
|
| 891 |
|
896 |
|