| 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;
|
54 |
@UiField TextBox mrp, sellingPrice, weight, bestDealText, bestDealValue, bestSellingRank,bestDealsDetailsText,bestDealsDetailsLink;
|
| 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 351... |
Line 351... |
| 351 |
item.setExpectedArrivalDate(null);
|
351 |
item.setExpectedArrivalDate(null);
|
| 352 |
}else {
|
352 |
}else {
|
| 353 |
item.setExpectedArrivalDate(expectedArrivalDate.getValue().getTime());
|
353 |
item.setExpectedArrivalDate(expectedArrivalDate.getValue().getTime());
|
| 354 |
}
|
354 |
}
|
| 355 |
item.setBestDealsText(bestDealText.getText().trim());
|
355 |
item.setBestDealsText(bestDealText.getText().trim());
|
| - |
|
356 |
item.setBestDealsDetailsText(bestDealsDetailsText.getText().trim());
|
| - |
|
357 |
item.setBestDealsDetailsLink(bestDealsDetailsLink.getText().trim());
|
| 356 |
try {
|
358 |
try {
|
| 357 |
if(!bestDealValue.getText().trim().equals("")) {
|
359 |
if(!bestDealValue.getText().trim().equals("")) {
|
| 358 |
double bdValue = Double.parseDouble(bestDealValue.getText().trim());
|
360 |
double bdValue = Double.parseDouble(bestDealValue.getText().trim());
|
| 359 |
if(bdValue < 0) {
|
361 |
if(bdValue < 0) {
|
| 360 |
throw new NumberFormatException("Negative value of BestDealValue");
|
362 |
throw new NumberFormatException("Negative value of BestDealValue");
|
| Line 519... |
Line 521... |
| 519 |
|
521 |
|
| 520 |
@Override
|
522 |
@Override
|
| 521 |
public Date getExpectedArrivalDate() {
|
523 |
public Date getExpectedArrivalDate() {
|
| 522 |
return this.expectedArrivalDate.getValue();
|
524 |
return this.expectedArrivalDate.getValue();
|
| 523 |
}
|
525 |
}
|
| - |
|
526 |
|
| - |
|
527 |
public TextBox getBestDealsDetailsText() {
|
| - |
|
528 |
return bestDealsDetailsText;
|
| - |
|
529 |
}
|
| - |
|
530 |
|
| - |
|
531 |
public void setBestDealsDetailsText(TextBox bestDealsDetailsText) {
|
| - |
|
532 |
this.bestDealsDetailsText = bestDealsDetailsText;
|
| - |
|
533 |
}
|
| - |
|
534 |
|
| - |
|
535 |
public TextBox getBestDealsDetailsLink() {
|
| - |
|
536 |
return bestDealsDetailsLink;
|
| - |
|
537 |
}
|
| - |
|
538 |
|
| - |
|
539 |
public void setBestDealsDetailsLink(TextBox bestDealsDetailsLink) {
|
| - |
|
540 |
this.bestDealsDetailsLink = bestDealsDetailsLink;
|
| - |
|
541 |
}
|
| 524 |
}
|
542 |
}
|