| | |
| | | } |
| | | } |
| | | if(!this.existWaterTypes()){ |
| | | if(configXml.existElement(doc, "config.orgs.org" + num + ".waterTypes")){ |
| | | for(int i = 1 ; i < 10000; i++){ |
| | | if(configXml.existElement(doc, "config.orgs.org" + num + ".waterTypes.item" + i)){ |
| | | String typeName = configXml.getSetAttrTxt(doc, "config.orgs.org" + num + ".waterTypes.item" + i,"typeName", null, false, null) ; |
| | | this.saveWaterType(orgTag, typeName); |
| | | }else{ |
| | | break ; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if(!this.existWaterPrice()){ |
| | | if(configXml.existElement(doc, "config.orgs.org" + num + ".waterPrice")){ |
| | | String price = configXml.getSetAttrTxt(doc, "config.orgs.org" + num + ".waterPrice","price", null, false, null) ; |
| | | this.saveWaterPrice(orgTag, price); |