Subversion Repositories SmartDukaan

Rev

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

Rev 4309 Rev 4356
Line 97... Line 97...
97
		this.warehouseID = warehouseID;
97
		this.warehouseID = warehouseID;
98
		this.userType = userType;
98
		this.userType = userType;
99
		this.billingType = billingType;
99
		this.billingType = billingType;
100
		
100
		
101
		initWidget(binder.createAndBindUi(this));
101
		initWidget(binder.createAndBindUi(this));
-
 
102
		if(this.userType == UserType.WAREHOUSE_EXECUTIVE || this.userType == UserType.WAREHOUSE_MONITOR){
102
		initTableForWE();
103
			initTableForWE();
-
 
104
		}
103
		if(this.userType == UserType.ADMIN){
105
		if(this.userType == UserType.ADMIN){
104
			initTableForAdmin();
106
			initTableForAdmin();
105
		}
107
		}
106
		loadOrderDetails();
108
		loadOrderDetails();
107
	}
109
	}
Line 234... Line 236...
234
	}
236
	}
235
 
237
 
236
	private void implementMaskForWE(){
238
	private void implementMaskForWE(){
237
		switch(mask){
239
		switch(mask){
238
		case VERIFICATION_PENDING:
240
		case VERIFICATION_PENDING:
239
		    maskButtonsForWE(true, false, false, false, false, false, false, false); //Allow the WE to verify the order.
241
		    maskButtonsForWE(false, false, false, false, false, false, false, false); //Do not allow the WE to verify the order.
240
		    break;
242
		    break;
241
		case NEW:
243
		case NEW:
242
			maskButtonsForWE(false, true, false, true, false, false, false, false);  //Allow the WE to either accept the order or mark it as out of stock.
244
			maskButtonsForWE(false, true, false, true, false, false, false, false);  //Allow the WE to either accept the order or mark it as out of stock.
243
			break;
245
			break;
244
		case ACCEPT:
246
		case ACCEPT: