| Line 141... |
Line 141... |
| 141 |
loadLatestArrivals(start, limit);
|
141 |
loadLatestArrivals(start, limit);
|
| 142 |
else if(currentTreeItemSelection.equals(CatalogTree.RISKY_ITEMS))
|
142 |
else if(currentTreeItemSelection.equals(CatalogTree.RISKY_ITEMS))
|
| 143 |
loadAllRiskyItems(start, limit);
|
143 |
loadAllRiskyItems(start, limit);
|
| 144 |
else if(currentTreeItemSelection.equals(CatalogTree.SEARCH))
|
144 |
else if(currentTreeItemSelection.equals(CatalogTree.SEARCH))
|
| 145 |
loadSearchItems(start, limit);
|
145 |
loadSearchItems(start, limit);
|
| - |
|
146 |
else if(currentTreeItemSelection.equals(CatalogTree.INVENTORY_OUTOFSYNC_ITEM_LIST))
|
| - |
|
147 |
loadInventoryOutofSyncItems(start, limit);
|
| - |
|
148 |
|
| 146 |
}
|
149 |
}
|
| 147 |
};
|
150 |
};
|
| 148 |
|
151 |
|
| 149 |
public ItemList() {
|
152 |
public ItemList() {
|
| 150 |
initWidget(uiBinder.createAndBindUi(this));
|
153 |
initWidget(uiBinder.createAndBindUi(this));
|
| 151 |
initItemList();
|
154 |
initItemList();
|
| 152 |
}
|
155 |
}
|
| 153 |
|
156 |
|
| - |
|
157 |
protected void loadInventoryOutofSyncItems(final int offset, final int limit) {
|
| - |
|
158 |
catalogService.getInventoryOutofSyncItems(offset, limit, new AsyncCallback<List<Item>>() {
|
| - |
|
159 |
public void onFailure(Throwable caught) {
|
| - |
|
160 |
caught.printStackTrace();
|
| - |
|
161 |
Window.alert("Could not get Inventory Out of Sync Items...");
|
| - |
|
162 |
}
|
| - |
|
163 |
public void onSuccess(List<Item> result) {
|
| - |
|
164 |
updateAsyncItemDescriptionTable(offset, result);
|
| - |
|
165 |
currentlyShowing.setText(LEGEND + "Inventory Out-of-Sync Items");
|
| - |
|
166 |
}
|
| - |
|
167 |
});
|
| - |
|
168 |
|
| - |
|
169 |
catalogService.getInventoryOutofSyncItemsCount(new AsyncCallback<Integer>() {
|
| - |
|
170 |
|
| - |
|
171 |
@Override
|
| - |
|
172 |
public void onFailure(Throwable caught) {
|
| - |
|
173 |
caught.printStackTrace();
|
| - |
|
174 |
Window.alert("Could not get the count of items...");
|
| - |
|
175 |
}
|
| - |
|
176 |
|
| - |
|
177 |
@Override
|
| - |
|
178 |
public void onSuccess(Integer count) {
|
| - |
|
179 |
updateItemDescriptionTableRowCount(count);
|
| - |
|
180 |
}
|
| - |
|
181 |
});
|
| - |
|
182 |
}
|
| - |
|
183 |
|
| - |
|
184 |
|
| 154 |
private void initItemList() {
|
185 |
private void initItemList() {
|
| 155 |
// Add the columns.
|
186 |
// Add the columns.
|
| 156 |
itemDescriptionTable.addColumn(idColumn, "Item Id");
|
187 |
itemDescriptionTable.addColumn(idColumn, "Item Id");
|
| 157 |
itemDescriptionTable.addColumn(pgColumn, "Product Group");
|
188 |
itemDescriptionTable.addColumn(pgColumn, "Product Group");
|
| 158 |
itemDescriptionTable.addColumn(brandColumn, "Brand");
|
189 |
itemDescriptionTable.addColumn(brandColumn, "Brand");
|
| 159 |
itemDescriptionTable.addColumn(modelNumberColumn, "Model Number");
|
190 |
itemDescriptionTable.addColumn(modelNumberColumn, "Model Number");
|
| Line 533... |
Line 564... |
| 533 |
// itemDescriptionTable.setText(selectedRow, INDEX_BRAND, item.getBrand());
|
564 |
// itemDescriptionTable.setText(selectedRow, INDEX_BRAND, item.getBrand());
|
| 534 |
// itemDescriptionTable.setText(selectedRow, INDEX_MODEL_NUMBER, item.getModelNumber());
|
565 |
// itemDescriptionTable.setText(selectedRow, INDEX_MODEL_NUMBER, item.getModelNumber());
|
| 535 |
// itemDescriptionTable.setText(selectedRow, INDEX_MODEL_NAME, item.getModelName());
|
566 |
// itemDescriptionTable.setText(selectedRow, INDEX_MODEL_NAME, item.getModelName());
|
| 536 |
// itemDescriptionTable.setText(selectedRow, INDEX_COLOR, item.getColor());
|
567 |
// itemDescriptionTable.setText(selectedRow, INDEX_COLOR, item.getColor());
|
| 537 |
}
|
568 |
}
|
| - |
|
569 |
|
| - |
|
570 |
public void loadInventoryOutofSyncItems() {
|
| - |
|
571 |
currentTreeItemSelection = CatalogTree.INVENTORY_OUTOFSYNC_ITEM_LIST;
|
| - |
|
572 |
itemDescriptionTable.setVisibleRangeAndClearData(new Range(0, pager.getPageSize()), true);
|
| - |
|
573 |
|
| - |
|
574 |
}
|
| 538 |
}
|
575 |
}
|