Subversion Repositories SmartDukaan

Rev

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

Rev 4248 Rev 4251
Line 111... Line 111...
111
	    header.getColumnFormatter().setWidth(1, "128px");
111
	    header.getColumnFormatter().setWidth(1, "128px");
112
	    header.getColumnFormatter().setWidth(2, "128px");
112
	    header.getColumnFormatter().setWidth(2, "128px");
113
	    header.getColumnFormatter().setWidth(3, "128px");
113
	    header.getColumnFormatter().setWidth(3, "128px");
114
	    header.getColumnFormatter().setWidth(4, "128px");
114
	    header.getColumnFormatter().setWidth(4, "128px");
115
	    header.getColumnFormatter().setWidth(5, "128px");
115
	    header.getColumnFormatter().setWidth(5, "128px");
116
	    header.getColumnFormatter().setWidth(6, "256px");
116
	    header.getColumnFormatter().setWidth(6, "128px");
117
	    
117
	    
118
	    verifyOrder.setText("Verify");
118
	    verifyOrder.setText("Verify");
119
	    acceptOrder.setText("Accept");
119
	    acceptOrder.setText("Accept");
120
	    notAvailable.setText("Out Of Stock");
120
	    notAvailable.setText("Out Of Stock");
121
	    addBillingInfo.setText("Bill");
121
	    addBillingInfo.setText("Bill");
Line 237... Line 237...
237
		switch(mask){
237
		switch(mask){
238
		case VERIFICATION_PENDING:
238
		case VERIFICATION_PENDING:
239
		    maskButtonsForWE(true, false, false, false, false, false, false, false); //Allow the WE to verify the order.
239
		    maskButtonsForWE(true, false, false, false, false, false, false, false); //Allow the WE to verify the order.
240
		    break;
240
		    break;
241
		case NEW:
241
		case NEW:
242
			maskButtonsForWE(false, true, true, true, false, false, false, false);  //Allow the WE to either accept the order or mark it as out of stock.
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.
243
			break;
243
			break;
244
		case ACCEPT:
244
		case ACCEPT:
245
		    //TODO: Mask buttons based on the billingType
245
		    //TODO: Mask buttons based on the billingType
246
		    if(billingType == BillingType.OURS)
246
		    if(billingType == BillingType.OURS)
247
		        maskButtonsForWE(false, false, false, false, true, true, false, false); // For our billing, allow the WE to directly print the invoive.
247
		        maskButtonsForWE(false, false, false, false, true, true, false, false); // For our billing, allow the WE to directly print the invoive.