| Line 46... |
Line 46... |
| 46 |
@UiField TextBox productGroup;
|
46 |
@UiField TextBox productGroup;
|
| 47 |
@UiField TextBox brand, modelNumber, modelName, color, comments;
|
47 |
@UiField TextBox brand, modelNumber, modelName, color, comments;
|
| 48 |
@UiField TextBox mrp, sellingPrice, weight, bestDealText, bestDealValue, bestSellingRank;
|
48 |
@UiField TextBox mrp, sellingPrice, weight, bestDealText, bestDealValue, bestSellingRank;
|
| 49 |
@UiField DateBox startDate, retireDate;
|
49 |
@UiField DateBox startDate, retireDate;
|
| 50 |
@UiField Button addButton, cancelButton;
|
50 |
@UiField Button addButton, cancelButton;
|
| 51 |
@UiField CheckBox defaultForEntity;
|
51 |
@UiField CheckBox defaultForEntity, risky;
|
| 52 |
@UiField FlexTable headerVendor, vendorTable;
|
52 |
@UiField FlexTable headerVendor, vendorTable;
|
| 53 |
@UiField FlexTable headerVendorM, vendorTableM;
|
53 |
@UiField FlexTable headerVendorM, vendorTableM;
|
| 54 |
|
54 |
|
| 55 |
public ItemForm(){
|
55 |
public ItemForm(){
|
| 56 |
setText("Add New Item");
|
56 |
setText("Add New Item");
|
| Line 288... |
Line 288... |
| 288 |
} catch(NumberFormatException ex) {
|
288 |
} catch(NumberFormatException ex) {
|
| 289 |
Window.alert("Invalid best selling rank format");
|
289 |
Window.alert("Invalid best selling rank format");
|
| 290 |
return;
|
290 |
return;
|
| 291 |
}
|
291 |
}
|
| 292 |
item.setDefaultForEntity(defaultForEntity.getValue());
|
292 |
item.setDefaultForEntity(defaultForEntity.getValue());
|
| - |
|
293 |
item.setRisky(risky.getValue());
|
| 293 |
|
294 |
|
| 294 |
/*Create an instance of VendorPricings for each row in vendor pricing table. Set the vendor prices to the instance.
|
295 |
/*Create an instance of VendorPricings for each row in vendor pricing table. Set the vendor prices to the instance.
|
| 295 |
Add the instance to map and set the map to the item instance created above.*/
|
296 |
Add the instance to map and set the map to the item instance created above.*/
|
| 296 |
Map<Long, VendorPricings> vendorPrices = new HashMap<Long, VendorPricings>();
|
297 |
Map<Long, VendorPricings> vendorPrices = new HashMap<Long, VendorPricings>();
|
| 297 |
VendorPricings v;
|
298 |
VendorPricings v;
|