| 32 |  | //Check if the numbers are correct and correctly separated | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 33 |  | if(!field.isEmpty()){ | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 34 |  |  | 
 
 
 
 
 
 
 
 
 
 
 | 35 | < | QStringList list =Util::substring(field,","); | 
 
 
 
 
 
 
 
 
 | 35 | > | QStringList list =Util::String::substring(field,","); | 
 
 
 
 
 
 
 
 
 
 
 | 36 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 37 |  | for(int i=0; i<list.size(); i++){ | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 38 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 39 |  | if(list.at(i).isEmpty()){ | 
 
 
 
 
 
 
 
 
 
 
 | 40 | < | Util::showErrorPopUp("There are commas without numbers in their sides."); | 
 
 
 
 
 
 
 
 
 | 40 | > | Util::Dialogs::showError("There are commas without numbers in their sides."); | 
 
 
 
 
 
 
 
 
 
 
 | 41 |  | return false; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 42 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 43 |  |  | 
 
 
 
 
 
 
 
 
 
 
 | 44 | < | if(!Util::isStringInteger(list.at(i))){ | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 45 | < | Util::showErrorPopUp("Number is not numeric."); | 
 
 
 
 
 
 
 
 
 | 44 | > | if(!Util::Validation::isStringInteger(list.at(i))){ | 
 
 
 
 
 | 45 | > | Util::Dialogs::showError("Number is not numeric."); | 
 
 
 
 
 
 
 
 
 
 
 | 46 |  | return false; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 47 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 48 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 49 |  | if(!isLevels){ | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 50 |  | if(list.at(i).size()!=5){ | 
 
 
 
 
 
 
 
 
 
 
 | 51 | < | Util::showErrorPopUp("You have invalid packages numbers. Each number must have 5 digits."); | 
 
 
 
 
 
 
 
 
 | 51 | > | Util::Dialogs::showError("You have invalid packages numbers. Each number must have 5 digits."); | 
 
 
 
 
 
 
 
 
 
 
 | 52 |  | return false; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 53 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 54 |  | } |