Subversion Repositories SmartDukaan

Rev

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

Rev 6788 Rev 6838
Line 38... Line 38...
38
    private static List<String> categories, brands;
38
    private static List<String> categories, brands;
39
    
39
    
40
    private static final CatalogServiceAsync catalogService = GWT.create(CatalogService.class);
40
    private static final CatalogServiceAsync catalogService = GWT.create(CatalogService.class);
41
    
41
    
42
    private static List<ItemWarehouse> ignoredInventoryUpdateItemsIdsWarehouseIds;
42
    private static List<ItemWarehouse> ignoredInventoryUpdateItemsIdsWarehouseIds;
-
 
43
    private static Map<Long,String> allInsurers;
43
    
44
    
44
    static {
45
    static {
-
 
46
    	catalogService.getAllInsurers(new AsyncCallback<Map<Long,String>>() {
-
 
47
            @Override
-
 
48
            public void onSuccess(Map<Long, String> result) {
-
 
49
            	allInsurers = result;
-
 
50
            }
-
 
51
            @Override
-
 
52
            public void onFailure(Throwable caught) {
-
 
53
                caught.printStackTrace();
-
 
54
            }
-
 
55
        });
45
    	catalogService.getConfigforentityIdMandatory(new AsyncCallback<Boolean>() {
56
    	catalogService.getConfigforentityIdMandatory(new AsyncCallback<Boolean>() {
46
	        @Override
57
	        @Override
47
	        public void onSuccess(Boolean result) {
58
	        public void onSuccess(Boolean result) {
48
	        	setEntityIdMandatory(result);
59
	        	setEntityIdMandatory(result);
49
	        }
60
	        }
Line 141... Line 152...
141
	}
152
	}
142
 
153
 
143
	public static Map<Long, String> getAllVendors() {
154
	public static Map<Long, String> getAllVendors() {
144
        return vendors;
155
        return vendors;
145
    }
156
    }
-
 
157
	public static Map<Long, String> getAllInsurers() {
-
 
158
        return allInsurers;
-
 
159
    }
146
 
160
 
147
    public static Map<Long, String> getAllSources() {
161
    public static Map<Long, String> getAllSources() {
148
        return sources;
162
        return sources;
149
    }
163
    }
150
    
164