Subversion Repositories SmartDukaan

Rev

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

Rev 7239 Rev 7260
Line 140... Line 140...
140
    @UiField FlexTable headerVendorItemKey, tableVendorItemKey;
140
    @UiField FlexTable headerVendorItemKey, tableVendorItemKey;
141
    @UiField FlexTable headerVendorPrices, tableVendorPrices;
141
    @UiField FlexTable headerVendorPrices, tableVendorPrices;
142
    @UiField FlexTable headerSourcePrices, tableSourcePrices;
142
    @UiField FlexTable headerSourcePrices, tableSourcePrices;
143
    @UiField TextBox bestSellingRank;
143
    @UiField TextBox bestSellingRank;
144
    @UiField TextBox expectedDelay;
144
    @UiField TextBox expectedDelay;
145
    @UiField CheckBox defaultForEntity, risky, warehouseStickiness, itemType, hasItemNo, clearance, showSellingPrice;
145
    @UiField CheckBox defaultForEntity, risky, warehouseStickiness, itemType, hasItemNo, showSellingPrice;
146
    @UiField DateBox startDate, expectedArrivalDate, comingSoonStartDate;
146
    @UiField DateBox startDate, expectedArrivalDate, comingSoonStartDate;
147
    @UiField FlexTable headerSimilarItems, tableSimilarItems;
147
    @UiField FlexTable headerSimilarItems, tableSimilarItems;
148
    @UiField ListBox preferredVendor,preferredInsurer;
148
    @UiField ListBox preferredVendor,preferredInsurer;
149
    @UiField Button comingSoonButton;
149
    @UiField Button comingSoonButton;
150
    @UiField FlexTable headerVouchers, tableVouchers;
150
    @UiField FlexTable headerVouchers, tableVouchers;
Line 247... Line 247...
247
        expectedDelay.setValue(item.getExpectedDelay()+"");
247
        expectedDelay.setValue(item.getExpectedDelay()+"");
248
        warehouseStickiness.setValue(item.isWarehouseStickiness());
248
        warehouseStickiness.setValue(item.isWarehouseStickiness());
249
        
249
        
250
        hasItemNo.setValue(item.isHasItemNo());
250
        hasItemNo.setValue(item.isHasItemNo());
251
        itemType.setValue(item.isItemType());
251
        itemType.setValue(item.isItemType());
252
        clearance.setValue(item.isClearance());
-
 
253
        showSellingPrice.setValue(item.isShowSellingPrice());
252
        showSellingPrice.setValue(item.isShowSellingPrice());
254
        
253
        
255
        startDate.setValue(new Date(item.getStartDate()));
254
        startDate.setValue(new Date(item.getStartDate()));
256
        if(item.getComingSoonStartDate() != null){
255
        if(item.getComingSoonStartDate() != null){
257
        	comingSoonStartDate.setValue(new Date(item.getComingSoonStartDate()));
256
        	comingSoonStartDate.setValue(new Date(item.getComingSoonStartDate()));
Line 1358... Line 1357...
1358
    	}
1357
    	}
1359
        newItem.setPreferredInsurer(Long.parseLong(preferredInsurer.getValue(preferredInsurer.getSelectedIndex())));
1358
        newItem.setPreferredInsurer(Long.parseLong(preferredInsurer.getValue(preferredInsurer.getSelectedIndex())));
1360
        newItem.setWarehouseStickiness(warehouseStickiness.getValue());
1359
        newItem.setWarehouseStickiness(warehouseStickiness.getValue());
1361
        newItem.setHasItemNo(hasItemNo.getValue());
1360
        newItem.setHasItemNo(hasItemNo.getValue());
1362
        newItem.setItemType(itemType.getValue());
1361
        newItem.setItemType(itemType.getValue());
1363
        newItem.setClearance(clearance.getValue());
-
 
1364
        
1362
        
1365
        /*Create an instance of VendorPricings for each row in vendor pricing table. Set the vendor prices to the instance.
1363
        /*Create an instance of VendorPricings for each row in vendor pricing table. Set the vendor prices to the instance.
1366
          Add the instance to map and set the map to the item instance created above.*/
1364
          Add the instance to map and set the map to the item instance created above.*/
1367
        Map<Long, VendorPricings> vendorPrices = new HashMap<Long, VendorPricings>();
1365
        Map<Long, VendorPricings> vendorPrices = new HashMap<Long, VendorPricings>();
1368
        VendorPricings v;
1366
        VendorPricings v;
Line 1597... Line 1595...
1597
            sb.append("\n-Has Item Number Flag");
1595
            sb.append("\n-Has Item Number Flag");
1598
        }
1596
        }
1599
        if(item.isItemType() != itemType.getValue()) {
1597
        if(item.isItemType() != itemType.getValue()) {
1600
            sb.append("\n-Has Serial Number Flag");
1598
            sb.append("\n-Has Serial Number Flag");
1601
        }
1599
        }
1602
        if(item.isClearance() != clearance.getValue()) {
-
 
1603
            sb.append("\n-Marked For Clearence Sale");
-
 
1604
        }
-
 
1605
        if(item.isShowSellingPrice() != showSellingPrice.getValue()) {
1600
        if(item.isShowSellingPrice() != showSellingPrice.getValue()) {
1606
        	sb.append("\n-Coming Soon item pricing marked");
1601
        	sb.append("\n-Coming Soon item pricing marked");
1607
        }
1602
        }
1608
        if(!checkParameterIfEqual(newItem.getFreebieItemId(), item.getFreebieItemId())) {
1603
        if(!checkParameterIfEqual(newItem.getFreebieItemId(), item.getFreebieItemId())) {
1609
        	mandatoryChangedValMap.put(MANDATORY_FREEBIE_ITEM_ID, freebieItemId.getText().trim());
1604
        	mandatoryChangedValMap.put(MANDATORY_FREEBIE_ITEM_ID, freebieItemId.getText().trim());