Subversion Repositories SmartDukaan

Rev

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

Rev 5262 Rev 5264
Line 50... Line 50...
50
        System.out.println("Action date\t\t\tUpdate City\t\t\tTracki Code Desc" );
50
        System.out.println("Action date\t\t\tUpdate City\t\t\tTracki Code Desc" );
51
        for(int i=0; i<=nodes.getLength()-1; i++) {
51
        for(int i=0; i<=nodes.getLength()-1; i++) {
52
            Element hawbUpdate = (Element) nodes.item(i);
52
            Element hawbUpdate = (Element) nodes.item(i);
53
            ShipmentUpdate update = new ShipmentUpdate();
53
            ShipmentUpdate update = new ShipmentUpdate();
54
 
54
 
55
            String dateString = getElementTextContent(hawbUpdate, "StatusDateTime");
55
            String dateString = getElementTextContent(hawbUpdate, "ScanDateTime");
56
            String[] tokens = dateString.split("T");
56
            String[] tokens = dateString.split("T");
57
            update.date = tokens[0];
57
            update.date = tokens[0];
58
            String[] timetokens = tokens[1].split(".");
58
            String[] timetokens = tokens[1].split("\\.");
59
            update.time = timetokens[0];
59
            update.time = timetokens[0];
60
            update.city = getElementTextContent(hawbUpdate, "ScannedLocation");
60
            update.city = getElementTextContent(hawbUpdate, "ScannedLocation");
61
            update.description = getElementTextContent(hawbUpdate, "Scan") + " - " + getElementTextContent(hawbUpdate, "Instructions");         
61
            update.description = getElementTextContent(hawbUpdate, "Scan") + " - " + getElementTextContent(hawbUpdate, "Instructions");         
62
            updates.add(update);
62
            updates.add(update);
63
        }   
63
        }