Subversion Repositories SmartDukaan

Rev

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

Rev 5110 Rev 5769
Line 33... Line 33...
33
		long warehouseId = -1;
33
		long warehouseId = -1;
34
		UserType userType = UserType.WAREHOUSE_EXECUTIVE;
34
		UserType userType = UserType.WAREHOUSE_EXECUTIVE;
35
		BillingType billingType = BillingType.EXTERNAL;
35
		BillingType billingType = BillingType.EXTERNAL;
36
		Map<Long, String> warehouses = null;
36
		Map<Long, String> warehouses = null;
37
		Map<Long, String> providers = null;
37
		Map<Long, String> providers = null;
-
 
38
		Map<Long, String> stores = null;
38
		NEXT nextScreen = null;
39
		NEXT nextScreen = null;
39
		String message = null;
40
		String message = null;
40
		
41
		
41
		try {
42
		try {
42
            HelperClient hsc = new HelperClient();
43
            HelperClient hsc = new HelperClient();
Line 72... Line 73...
72
 
73
 
73
			warehouses = CatalogUtils.getWarehousesForBillingWarehouse(warehouseId);
74
			warehouses = CatalogUtils.getWarehousesForBillingWarehouse(warehouseId);
74
            
75
            
75
			providers = LogisticsUtils.getAllProviders();
76
			providers = LogisticsUtils.getAllProviders();
76
			
77
			
-
 
78
			stores = LogisticsUtils.getAllStores();
-
 
79
			
77
			message = "You are charming, loving and affectionate";
80
			message = "You are charming, loving and affectionate";
78
		} catch (HelperServiceException e) {
81
		} catch (HelperServiceException e) {
79
			e.printStackTrace();
82
			e.printStackTrace();
80
		} catch (TException e) {
83
		} catch (TException e) {
81
			e.printStackTrace();
84
			e.printStackTrace();
82
		} catch (Exception e) {
85
		} catch (Exception e) {
83
			e.printStackTrace();
86
			e.printStackTrace();
84
		}
87
		}
85
		return new AuthResponse(userName, status, message, nextScreen, warehouseId, userType, billingType, warehouses, providers);
88
		return new AuthResponse(userName, status, message, nextScreen, warehouseId, userType, billingType, warehouses, providers, stores);
86
	}
89
	}
87
 
90
 
88
	@Override
91
	@Override
89
	public Class<AuthRequest> getActionType() {		
92
	public Class<AuthRequest> getActionType() {		
90
		return AuthRequest.class;
93
		return AuthRequest.class;