Subversion Repositories SmartDukaan

Rev

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

Rev 7784 Rev 19421
Line 86... Line 86...
86
	//Start:- Added/Modified by Manish Sharma for Multiple Pincode Updation on 05-Jul-2013
86
	//Start:- Added/Modified by Manish Sharma for Multiple Pincode Updation on 05-Jul-2013
87
	public String create(){
87
	public String create(){
88
		if(runCompleteUpdate!=null && runCompleteUpdate.equals("on")) {
88
		if(runCompleteUpdate!=null && runCompleteUpdate.equals("on")) {
89
			runCompleteUpdateValue = true;
89
			runCompleteUpdateValue = true;
90
		}
90
		}
91
		 File fileToCreate = null;
91
		File fileToCreate = null;
92
	        try {
92
	        try {
93
	            fileToCreate = new File("/tmp/", this.recordsFile.getName());
93
	            fileToCreate = new File("/tmp/", this.recordsFile.getName());
94
	            FileUtils.copyFile(this.recordsFile, fileToCreate);
94
	            FileUtils.copyFile(this.recordsFile, fileToCreate);
95
	        } catch (Exception e) {
95
	        } catch (Exception e) {
96
	           logger.error("Error while writing file used to the local file system", e);
96
	           logger.error("Error while writing file used to the local file system", e);
Line 201... Line 201...
201
	                		logisticsLocationInfo.setDeliveryTime((long) cellVal_Num);
201
	                		logisticsLocationInfo.setDeliveryTime((long) cellVal_Num);
202
	                		break;
202
	                		break;
203
	                	case 10:
203
	                	case 10:
204
	                		logisticsLocationInfo.setDelivery_delay((long) cellVal_Num);
204
	                		logisticsLocationInfo.setDelivery_delay((long) cellVal_Num);
205
	                		break;
205
	                		break;
-
 
206
	                	case 11:
-
 
207
	                		logisticsLocationInfo.setZoneCode(cellVal_Str);
-
 
208
	                		break;
206
	                }
209
	                }
207
	               cellCount++;
210
	               cellCount++;
208
	            }
211
	            }
209
	            logisticsLocationInfoList.add(logisticsLocationInfo);
212
	            logisticsLocationInfoList.add(logisticsLocationInfo);
210
	        }
213
	        }
Line 343... Line 346...
343
    }
346
    }
344
	
347
	
345
	public String getSuccessMessage(){
348
	public String getSuccessMessage(){
346
		return this.successmsg ;
349
		return this.successmsg ;
347
	}
350
	}
348
	
351
 
349
	private boolean checkForErrors(){
352
	private boolean checkForErrors(){
350
        Collection<String> actionErrors = getActionErrors();
353
        Collection<String> actionErrors = getActionErrors();
351
        if(actionErrors != null && !actionErrors.isEmpty()){
354
        if(actionErrors != null && !actionErrors.isEmpty()){
352
            for (String str : actionErrors) {
355
            for (String str : actionErrors) {
353
                errorMsg += "<BR/>" + str;
356
                errorMsg += "<BR/>" + str;