| Line 49... |
Line 49... |
| 49 |
|
49 |
|
| 50 |
private static boolean entityIdMandatory = Utils.isEntityIdMandatory();
|
50 |
private static boolean entityIdMandatory = Utils.isEntityIdMandatory();
|
| 51 |
|
51 |
|
| 52 |
@UiField TextBox productGroup, catalogItemId;
|
52 |
@UiField TextBox productGroup, catalogItemId;
|
| 53 |
@UiField TextBox brand, modelNumber, modelName, color, comments;
|
53 |
@UiField TextBox brand, modelNumber, modelName, color, comments;
|
| 54 |
@UiField TextBox mrp, sellingPrice, weight, bestDealText, bestDealValue, bestSellingRank,bestDealsDetailsText,bestDealsDetailsLink;
|
54 |
@UiField TextBox mrp, sellingPrice, weight, bestDealText, bestDealValue, bestSellingRank,bestDealsDetailsText,bestDealsDetailsLink, minStockLevel, numOfDaysStock;
|
| 55 |
@UiField DateBox startDate, retireDate, comingSoonStartDate, expectedArrivalDate;
|
55 |
@UiField DateBox startDate, retireDate, comingSoonStartDate, expectedArrivalDate;
|
| 56 |
@UiField Button addButton, cancelButton, comingSoonButton;
|
56 |
@UiField Button addButton, cancelButton, comingSoonButton;
|
| 57 |
@UiField CheckBox defaultForEntity, risky, itemType, hasItemNo, clearance, showSellingPrice;
|
57 |
@UiField CheckBox defaultForEntity, risky, itemType, hasItemNo, clearance, showSellingPrice;
|
| 58 |
@UiField FlexTable headerVendor, vendorTable;
|
58 |
@UiField FlexTable headerVendor, vendorTable;
|
| 59 |
@UiField FlexTable headerVendorM, vendorTableM;
|
59 |
@UiField FlexTable headerVendorM, vendorTableM;
|
| Line 377... |
Line 377... |
| 377 |
}
|
377 |
}
|
| 378 |
} catch(NumberFormatException ex) {
|
378 |
} catch(NumberFormatException ex) {
|
| 379 |
Window.alert("Invalid best selling rank format");
|
379 |
Window.alert("Invalid best selling rank format");
|
| 380 |
return;
|
380 |
return;
|
| 381 |
}
|
381 |
}
|
| - |
|
382 |
|
| - |
|
383 |
try {
|
| - |
|
384 |
if(!minStockLevel.getText().trim().equals("")) {
|
| - |
|
385 |
long msl = Long.parseLong(minStockLevel.getText().trim());
|
| - |
|
386 |
if(msl < 0) {
|
| - |
|
387 |
throw new NumberFormatException("Negative value of Min Stock Value");
|
| - |
|
388 |
}
|
| - |
|
389 |
item.setMinStockLevel(msl);
|
| - |
|
390 |
}
|
| - |
|
391 |
} catch(NumberFormatException ex) {
|
| - |
|
392 |
item.setMinStockLevel(0L);
|
| - |
|
393 |
Window.alert("Invalid min Stock Level. Setting it to zero(0)");
|
| - |
|
394 |
return;
|
| - |
|
395 |
}
|
| - |
|
396 |
|
| - |
|
397 |
try {
|
| - |
|
398 |
if(!numOfDaysStock.getText().trim().equals("")) {
|
| - |
|
399 |
Long nds = Long.parseLong(numOfDaysStock.getText().trim());
|
| - |
|
400 |
if(nds < 0) {
|
| - |
|
401 |
throw new NumberFormatException("Negative value of Num of Days Of Stock");
|
| - |
|
402 |
}
|
| - |
|
403 |
item.setNumOfDaysStock(nds.intValue());
|
| - |
|
404 |
}
|
| - |
|
405 |
} catch(NumberFormatException ex) {
|
| - |
|
406 |
item.setNumOfDaysStock(0);
|
| - |
|
407 |
Window.alert("Invalid min Stock Level. Setting it to zero(0)");
|
| - |
|
408 |
return;
|
| - |
|
409 |
}
|
| - |
|
410 |
|
| 382 |
item.setDefaultForEntity(defaultForEntity.getValue());
|
411 |
item.setDefaultForEntity(defaultForEntity.getValue());
|
| 383 |
item.setRisky(risky.getValue());
|
412 |
item.setRisky(risky.getValue());
|
| 384 |
item.setHasItemNo(hasItemNo.getValue());
|
413 |
item.setHasItemNo(hasItemNo.getValue());
|
| 385 |
item.setItemType(itemType.getValue());
|
414 |
item.setItemType(itemType.getValue());
|
| 386 |
item.setClearance(clearance.getValue());
|
415 |
item.setClearance(clearance.getValue());
|