Subversion Repositories SmartDukaan

Rev

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

Rev 7291 Rev 7972
Line 95... Line 95...
95
					  MANDATORY_BEST_DEAL_TEXT = "Best Deal Text",
95
					  MANDATORY_BEST_DEAL_TEXT = "Best Deal Text",
96
					  MANDATORY_BEST_DEAL_DETAIL_TEXT = "Best Deal Detail Text",
96
					  MANDATORY_BEST_DEAL_DETAIL_TEXT = "Best Deal Detail Text",
97
					  MANDATORY_BEST_DEAL_DETAIL_LINK = "Best Deal Detail Link",
97
					  MANDATORY_BEST_DEAL_DETAIL_LINK = "Best Deal Detail Link",
98
					  MANDATORY_BRAND = "Brand",
98
					  MANDATORY_BRAND = "Brand",
99
					  MANDATORY_MODEL_NO = "Model Number",
99
					  MANDATORY_MODEL_NO = "Model Number",
100
					  MANDATORY_MODEL_NAME = "Model Name",
100
					  MANDATORY_MODEL_NAME = "Model Name";
101
					  MANDATORY_FREEBIE_ITEM_ID = "Freebie Item Id";
-
 
102
    				
101
    				
103
    
102
    
104
    private final String OPTIONAL_SELLING_PRICE = "Selling Price",	
103
    private final String OPTIONAL_SELLING_PRICE = "Selling Price",	
105
    				  OPTIONAL_VENDOR_PRICING = "Vendor Pricing",
104
    				  OPTIONAL_VENDOR_PRICING = "Vendor Pricing",
106
    				  OPTIONAL_PREFERRED_VENDOR = "Preferred Vendor",
105
    				  OPTIONAL_PREFERRED_VENDOR = "Preferred Vendor",
107
    				  OPTIONAL_PREFERRED_INSURER = "Preferred Insurer",
106
    				  OPTIONAL_PREFERRED_INSURER = "Preferred Insurer",
108
    				  OPTIONAL_SOURCE_PRICING = "Source Pricing";
107
    				  OPTIONAL_SOURCE_PRICING = "Source Pricing",
-
 
108
    				  OPTIONAL_FREEBIE_ITEM_ID = "Freebie Item Id";
109
    
109
    
110
    private final String PRICE_WIDTH = "100px", VENDOR_DESC_WIDTH = "130px",
110
    private final String PRICE_WIDTH = "100px", VENDOR_DESC_WIDTH = "130px",
111
                         VENDOR_ID_WIDTH = "100px", ITEM_KEY_WIDTH = "200px",
111
                         VENDOR_ID_WIDTH = "100px", ITEM_KEY_WIDTH = "200px",
112
                         BUTTON_WIDTH = "50px";
112
                         BUTTON_WIDTH = "50px";
113
 
113
 
Line 148... Line 148...
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;
151
    @UiField FlexTable headerIgnoredWarehouse,tableIgnoredWarehouse;
151
    @UiField FlexTable headerIgnoredWarehouse,tableIgnoredWarehouse;
152
    @UiField TextBox minStockLevel, numOfDaysStock;
152
    @UiField TextBox minStockLevel, numOfDaysStock;
-
 
153
    @UiField TextBox lastNdaySale;
153
    @UiField TextBox freebieItemId;
154
    @UiField TextBox freebieItemId;
154
    @UiField TextBox asin;
155
    @UiField TextBox asin;
155
    @UiField TextBox holdInventory;
156
    @UiField TextBox holdInventory;
156
    @UiField TextBox defaultInventory;
157
    @UiField TextBox defaultInventory;
157
    
158
    
Line 275... Line 276...
275
        bestDealsDetailsText.setText(item.getBestDealsDetailsText());
276
        bestDealsDetailsText.setText(item.getBestDealsDetailsText());
276
        bestDealsDetailsLink.setText(item.getBestDealsDetailsLink());
277
        bestDealsDetailsLink.setText(item.getBestDealsDetailsLink());
277
        bestDealsValue.setText(item.getBestDealsValue() != null ? item.getBestDealsValue()+"" : "");
278
        bestDealsValue.setText(item.getBestDealsValue() != null ? item.getBestDealsValue()+"" : "");
278
        bestSellingRank.setText(item.getBestSellingRank() != null ? item.getBestSellingRank()+"" : "");
279
        bestSellingRank.setText(item.getBestSellingRank() != null ? item.getBestSellingRank()+"" : "");
279
        minStockLevel.setText(item.getMinStockLevel() != null ? item.getMinStockLevel()+"" : "");
280
        minStockLevel.setText(item.getMinStockLevel() != null ? item.getMinStockLevel()+"" : "");
-
 
281
        lastNdaySale.setText(item.getLastNdaySale());
280
        numOfDaysStock.setText(item.getNumOfDaysStock() != null ? item.getNumOfDaysStock()+"" : "");
282
        numOfDaysStock.setText(item.getNumOfDaysStock() != null ? item.getNumOfDaysStock()+"" : "");
281
        defaultForEntity.setValue(item.isDefaultForEntity());
283
        defaultForEntity.setValue(item.isDefaultForEntity());
282
        risky.setValue(item.isRisky());
284
        risky.setValue(item.isRisky());
283
        
285
        
284
        itemStatus.setText(item.getItemStatus());
286
        itemStatus.setText(item.getItemStatus());
Line 1631... Line 1633...
1631
        }
1633
        }
1632
        if(item.isShowSellingPrice() != showSellingPrice.getValue()) {
1634
        if(item.isShowSellingPrice() != showSellingPrice.getValue()) {
1633
        	sb.append("\n-Coming Soon item pricing marked");
1635
        	sb.append("\n-Coming Soon item pricing marked");
1634
        }
1636
        }
1635
        if(!checkParameterIfEqual(newItem.getFreebieItemId(), item.getFreebieItemId())) {
1637
        if(!checkParameterIfEqual(newItem.getFreebieItemId(), item.getFreebieItemId())) {
1636
        	mandatoryChangedValMap.put(MANDATORY_FREEBIE_ITEM_ID, freebieItemId.getText().trim());
1638
        	optionalChangedValMap.put(OPTIONAL_FREEBIE_ITEM_ID, freebieItemId.getText().trim());
1637
            sb.append("\n-Freebie Item Id");
1639
            sb.append("\n-Freebie Item Id");
1638
        }
1640
        }
1639
        if(!checkParameterIfEqual(asin.getText().trim(), item.getAsin())) {
1641
        if(!checkParameterIfEqual(asin.getText().trim(), item.getAsin())) {
1640
            sb.append("\n-Asin");
1642
            sb.append("\n-Asin");
1641
        }
1643
        }
Line 2135... Line 2137...
2135
                	result.setWeight((Double)mandatoryChangedValMap.get(MANDATORY_WEIGHT));
2137
                	result.setWeight((Double)mandatoryChangedValMap.get(MANDATORY_WEIGHT));
2136
                }
2138
                }
2137
                if(mandatoryChangedValMap.containsKey(MANDATORY_MRP)){
2139
                if(mandatoryChangedValMap.containsKey(MANDATORY_MRP)){
2138
                	result.setMrp((Double)mandatoryChangedValMap.get(MANDATORY_MRP));
2140
                	result.setMrp((Double)mandatoryChangedValMap.get(MANDATORY_MRP));
2139
                }
2141
                }
2140
                if(mandatoryChangedValMap.containsKey(MANDATORY_FREEBIE_ITEM_ID)) {
2142
                if(optionalChangedValMap.containsKey(OPTIONAL_FREEBIE_ITEM_ID)) {
2141
                	result.setFreebieItemId((Long)mandatoryChangedValMap.get(MANDATORY_FREEBIE_ITEM_ID));
2143
                	result.setFreebieItemId((Long)optionalChangedValMap.get(OPTIONAL_FREEBIE_ITEM_ID));
2142
                }
2144
                }
2143
                if(optionalChangedValMap.containsKey(OPTIONAL_PREFERRED_VENDOR)){
2145
                if(optionalChangedValMap.containsKey(OPTIONAL_PREFERRED_VENDOR)){
2144
                	result.setPreferredVendor((Long)optionalChangedValMap.get(OPTIONAL_PREFERRED_VENDOR));
2146
                	result.setPreferredVendor((Long)optionalChangedValMap.get(OPTIONAL_PREFERRED_VENDOR));
2145
                }
2147
                }
2146
                if(optionalChangedValMap.containsKey(OPTIONAL_PREFERRED_INSURER)){
2148
                if(optionalChangedValMap.containsKey(OPTIONAL_PREFERRED_INSURER)){