Subversion Repositories SmartDukaan

Rev

Rev 6105 | Rev 6530 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6105 Rev 6241
Line 130... Line 130...
130
    @UiField FlexTable headerVendorItemKey, tableVendorItemKey;
130
    @UiField FlexTable headerVendorItemKey, tableVendorItemKey;
131
    @UiField FlexTable headerVendorPrices, tableVendorPrices;
131
    @UiField FlexTable headerVendorPrices, tableVendorPrices;
132
    @UiField FlexTable headerSourcePrices, tableSourcePrices;
132
    @UiField FlexTable headerSourcePrices, tableSourcePrices;
133
    @UiField TextBox bestSellingRank;
133
    @UiField TextBox bestSellingRank;
134
    @UiField TextBox expectedDelay;
134
    @UiField TextBox expectedDelay;
135
    @UiField CheckBox defaultForEntity, risky, warehouseStickiness, itemType, hasItemNo, clearance;
135
    @UiField CheckBox defaultForEntity, risky, warehouseStickiness, itemType, hasItemNo, clearance, showSellingPrice;
136
    @UiField DateBox startDate, expectedArrivalDate, comingSoonStartDate;
136
    @UiField DateBox startDate, expectedArrivalDate, comingSoonStartDate;
137
    @UiField FlexTable headerSimilarItems, tableSimilarItems;
137
    @UiField FlexTable headerSimilarItems, tableSimilarItems;
138
    @UiField ListBox preferredVendor;
138
    @UiField ListBox preferredVendor;
139
    @UiField Button comingSoonButton;
139
    @UiField Button comingSoonButton;
140
    @UiField FlexTable headerVouchers, tableVouchers;
140
    @UiField FlexTable headerVouchers, tableVouchers;
Line 224... Line 224...
224
        warehouseStickiness.setValue(item.isWarehouseStickiness());
224
        warehouseStickiness.setValue(item.isWarehouseStickiness());
225
        
225
        
226
        hasItemNo.setValue(item.isHasItemNo());
226
        hasItemNo.setValue(item.isHasItemNo());
227
        itemType.setValue(item.isItemType());
227
        itemType.setValue(item.isItemType());
228
        clearance.setValue(item.isClearance());
228
        clearance.setValue(item.isClearance());
-
 
229
        showSellingPrice.setValue(item.isShowSellingPrice());
229
        
230
        
230
        startDate.setValue(new Date(item.getStartDate()));
231
        startDate.setValue(new Date(item.getStartDate()));
231
        if(item.getComingSoonStartDate() != null){
232
        if(item.getComingSoonStartDate() != null){
232
        	comingSoonStartDate.setValue(new Date(item.getComingSoonStartDate()));
233
        	comingSoonStartDate.setValue(new Date(item.getComingSoonStartDate()));
233
        }else {
234
        }else {
Line 1161... Line 1162...
1161
            Window.alert("Invalid best selling rank format");
1162
            Window.alert("Invalid best selling rank format");
1162
            return false;
1163
            return false;
1163
        }
1164
        }
1164
        newItem.setDefaultForEntity(defaultForEntity.getValue());
1165
        newItem.setDefaultForEntity(defaultForEntity.getValue());
1165
        newItem.setRisky(risky.getValue());
1166
        newItem.setRisky(risky.getValue());
1166
        
1167
        newItem.setShowSellingPrice(showSellingPrice.getValue());
1167
        try {
1168
        try {
1168
            String expectedDelayText = expectedDelay.getText().trim();
1169
            String expectedDelayText = expectedDelay.getText().trim();
1169
            if(!expectedDelayText.equals("")){
1170
            if(!expectedDelayText.equals("")){
1170
                newItem.setExpectedDelay(Integer.parseInt(expectedDelayText));
1171
                newItem.setExpectedDelay(Integer.parseInt(expectedDelayText));
1171
            }
1172
            }
Line 1404... Line 1405...
1404
            sb.append("\n-Has Serial Number Flag");
1405
            sb.append("\n-Has Serial Number Flag");
1405
        }
1406
        }
1406
        if(item.isClearance() != clearance.getValue()) {
1407
        if(item.isClearance() != clearance.getValue()) {
1407
            sb.append("\n-Marked For Clearence Sale");
1408
            sb.append("\n-Marked For Clearence Sale");
1408
        }
1409
        }
-
 
1410
        if(item.isShowSellingPrice() != showSellingPrice.getValue()) {
-
 
1411
        	sb.append("\n-Coming Soon item pricing marked");
-
 
1412
        }
1409
        
1413
        
1410
        VendorPricings vendorPricings;
1414
        VendorPricings vendorPricings;
1411
        long vendorId;
1415
        long vendorId;
1412
        boolean vendorPricingsChanged = false;
1416
        boolean vendorPricingsChanged = false;
1413
        for(int row = 0; row < tableVendorPrices.getRowCount(); row++) {
1417
        for(int row = 0; row < tableVendorPrices.getRowCount(); row++) {
Line 1912... Line 1916...
1912
                caught.printStackTrace();
1916
                caught.printStackTrace();
1913
                Window.alert("Unable to fetch item details.");
1917
                Window.alert("Unable to fetch item details.");
1914
            }
1918
            }
1915
        });
1919
        });
1916
	}
1920
	}
-
 
1921
 
-
 
1922
	@Override
-
 
1923
	public void setShowPrice(boolean b) {
-
 
1924
		this.showSellingPrice.setValue(b);
-
 
1925
	}
-
 
1926
 
-
 
1927
	@Override
-
 
1928
	public boolean isShowPrice() {
-
 
1929
		return this.showSellingPrice.getValue();
-
 
1930
	}
1917
}
1931
}