| Line 124... |
Line 124... |
| 124 |
@UiField FlexTable headerVendorItemKey, tableVendorItemKey;
|
124 |
@UiField FlexTable headerVendorItemKey, tableVendorItemKey;
|
| 125 |
@UiField FlexTable headerVendorPrices, tableVendorPrices;
|
125 |
@UiField FlexTable headerVendorPrices, tableVendorPrices;
|
| 126 |
@UiField FlexTable headerSourcePrices, tableSourcePrices;
|
126 |
@UiField FlexTable headerSourcePrices, tableSourcePrices;
|
| 127 |
@UiField TextBox bestSellingRank;
|
127 |
@UiField TextBox bestSellingRank;
|
| 128 |
@UiField TextBox expectedDelay;
|
128 |
@UiField TextBox expectedDelay;
|
| 129 |
@UiField CheckBox defaultForEntity, risky, warehouseStickiness, itemType, hasItemNo;
|
129 |
@UiField CheckBox defaultForEntity, risky, warehouseStickiness, itemType, hasItemNo, clearance;
|
| 130 |
@UiField DateBox startDate, expectedArrivalDate, comingSoonStartDate;
|
130 |
@UiField DateBox startDate, expectedArrivalDate, comingSoonStartDate;
|
| 131 |
@UiField FlexTable headerSimilarItems, tableSimilarItems;
|
131 |
@UiField FlexTable headerSimilarItems, tableSimilarItems;
|
| 132 |
@UiField ListBox preferredVendor;
|
132 |
@UiField ListBox preferredVendor;
|
| 133 |
@UiField Button comingSoonButton;
|
133 |
@UiField Button comingSoonButton;
|
| 134 |
|
134 |
|
| Line 215... |
Line 215... |
| 215 |
expectedDelay.setValue(item.getExpectedDelay()+"");
|
215 |
expectedDelay.setValue(item.getExpectedDelay()+"");
|
| 216 |
warehouseStickiness.setValue(item.isWarehouseStickiness());
|
216 |
warehouseStickiness.setValue(item.isWarehouseStickiness());
|
| 217 |
|
217 |
|
| 218 |
hasItemNo.setValue(item.isHasItemNo());
|
218 |
hasItemNo.setValue(item.isHasItemNo());
|
| 219 |
itemType.setValue(item.isItemType());
|
219 |
itemType.setValue(item.isItemType());
|
| - |
|
220 |
clearance.setValue(item.isClearance());
|
| 220 |
|
221 |
|
| 221 |
startDate.setValue(new Date(item.getStartDate()));
|
222 |
startDate.setValue(new Date(item.getStartDate()));
|
| 222 |
if(item.getComingSoonStartDate() != null){
|
223 |
if(item.getComingSoonStartDate() != null){
|
| 223 |
comingSoonStartDate.setValue(new Date(item.getComingSoonStartDate()));
|
224 |
comingSoonStartDate.setValue(new Date(item.getComingSoonStartDate()));
|
| 224 |
}else {
|
225 |
}else {
|
| Line 1005... |
Line 1006... |
| 1005 |
}
|
1006 |
}
|
| 1006 |
|
1007 |
|
| 1007 |
newItem.setWarehouseStickiness(warehouseStickiness.getValue());
|
1008 |
newItem.setWarehouseStickiness(warehouseStickiness.getValue());
|
| 1008 |
newItem.setHasItemNo(hasItemNo.getValue());
|
1009 |
newItem.setHasItemNo(hasItemNo.getValue());
|
| 1009 |
newItem.setItemType(itemType.getValue());
|
1010 |
newItem.setItemType(itemType.getValue());
|
| - |
|
1011 |
newItem.setClearance(clearance.getValue());
|
| 1010 |
|
1012 |
|
| 1011 |
/*Create an instance of VendorPricings for each row in vendor pricing table. Set the vendor prices to the instance.
|
1013 |
/*Create an instance of VendorPricings for each row in vendor pricing table. Set the vendor prices to the instance.
|
| 1012 |
Add the instance to map and set the map to the item instance created above.*/
|
1014 |
Add the instance to map and set the map to the item instance created above.*/
|
| 1013 |
Map<Long, VendorPricings> vendorPrices = new HashMap<Long, VendorPricings>();
|
1015 |
Map<Long, VendorPricings> vendorPrices = new HashMap<Long, VendorPricings>();
|
| 1014 |
VendorPricings v;
|
1016 |
VendorPricings v;
|
| Line 1221... |
Line 1223... |
| 1221 |
sb.append("\n-Has Item Number Flag");
|
1223 |
sb.append("\n-Has Item Number Flag");
|
| 1222 |
}
|
1224 |
}
|
| 1223 |
if(item.isItemType() != itemType.getValue()) {
|
1225 |
if(item.isItemType() != itemType.getValue()) {
|
| 1224 |
sb.append("\n-Has Serial Number Flag");
|
1226 |
sb.append("\n-Has Serial Number Flag");
|
| 1225 |
}
|
1227 |
}
|
| - |
|
1228 |
if(item.isClearance() != clearance.getValue()) {
|
| - |
|
1229 |
sb.append("\n-Marked For Clearence Sale");
|
| - |
|
1230 |
}
|
| 1226 |
|
1231 |
|
| 1227 |
VendorPricings vendorPricings;
|
1232 |
VendorPricings vendorPricings;
|
| 1228 |
long vendorId;
|
1233 |
long vendorId;
|
| 1229 |
boolean vendorPricingsChanged = false;
|
1234 |
boolean vendorPricingsChanged = false;
|
| 1230 |
for(int row = 0; row < tableVendorPrices.getRowCount(); row++) {
|
1235 |
for(int row = 0; row < tableVendorPrices.getRowCount(); row++) {
|