Subversion Repositories SmartDukaan

Rev

Rev 20050 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20050 Rev 20063
Line 104... Line 104...
104
            String awb ="";
104
            String awb ="";
105
            if(Cell.CELL_TYPE_STRING==row.getCell(0).getCellType()){
105
            if(Cell.CELL_TYPE_STRING==row.getCell(0).getCellType()){
106
            	awb = row.getCell(0).getStringCellValue();
106
            	awb = row.getCell(0).getStringCellValue();
107
            }
107
            }
108
            if(Cell.CELL_TYPE_NUMERIC==row.getCell(0).getCellType()){
108
            if(Cell.CELL_TYPE_NUMERIC==row.getCell(0).getCellType()){
109
            	awb = String.valueOf((long)row.getCell(0).getNumericCellValue());
109
            	awb = row.getCell(0).getNumericCellValue()+"";
110
            }
110
            }
111
            awbs.add(awb);
111
            awbs.add(awb);
112
        }
112
        }
113
        if(checkForErrors())
113
        if(checkForErrors())
114
            return "authsuccess";
114
            return "authsuccess";
Line 116... Line 116...
116
        
116
        
117
        try {
117
        try {
118
            LogisticsClient logisticsClient = new LogisticsClient();
118
            LogisticsClient logisticsClient = new LogisticsClient();
119
            in.shop2020.logistics.LogisticsService.Client lsc = logisticsClient.getClient();
119
            in.shop2020.logistics.LogisticsService.Client lsc = logisticsClient.getClient();
120
            lsc.addNewAwbs(providerId, isCod, awbs, awbUsedFor);
120
            lsc.addNewAwbs(providerId, isCod, awbs, awbUsedFor);
-
 
121
            addActionMessage("Successfully upload awb");
121
        } catch (TException e) {
122
        } catch (TException e) {
122
        	logger.error("Unable to add AWBs", e);
123
        	logger.error("Unable to add AWBs", e);
123
            addActionError(e.getMessage());
124
            addActionError("Service error while processing request");
124
        }
125
        }
125
        
126
        
126
        checkForErrors();
127
        checkForErrors();
127
        return "authsuccess";
128
        return "authsuccess";
128
    }
129
    }