Skip to content

Instantly share code, notes, and snippets.

@szilardhuber
Last active October 19, 2015 00:11
Show Gist options
  • Save szilardhuber/d33263ff29fb9389aa9a to your computer and use it in GitHub Desktop.
Save szilardhuber/d33263ff29fb9389aa9a to your computer and use it in GitHub Desktop.
Rect and Angular
{"id":708083,"data":[[800,"0001","0100000000",1995,1,"","","","","40","S","","","","S","","","","","6.14","12.00","0.00","6.14","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","19950606","19950606","","","","","","RFBU","","","0.00","",0,"","","","","","",0,0,"","","","",0,"","","X","","","","","","","","","","","","","","","","","0000100000","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","6.14","7.37","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","","","","","","","0.00","0.00","","","","",0,"0.00","",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","","","","","",0,"","","","","","","","","","","","","","","","","","","",0,"","","","","","","","","","","","",""],[800,"0001","0100000000",1995,2,"","","","","50","S","","","","H","","","","","6.14","12.00","0.00","6.14","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","","19950606","","","","","","RFBU","","","0.00","",0,"","","","","","",0,0,"","","","",0,"","","X","","","","","","","","","","","","","","","","","0000399999","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","6.14","7.37","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","E","","","","","","","","0.00","0.00","","","","",0,"0.00","",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","","","","","",0,"","","","","","","","","","","","","","","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2005,1,"","","","","40","S","","","","S","","","","","60000.00","60000.00","0.00","60000.00","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","20051231","20051231","Test for Allocation FI","","","","0000110100","RFBU","F0","","60000.00","20051231",0,"1000","","","","","",0,0,"","","","",0,"","","X","","","","","","","","","","","","","","","","","0000113100","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","60000.00","74484.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","","","0000113100","","","","0.00","0.00","","","","",0,"0.00","",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","","","","","",0,"","","","","","","","","","","","","","","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2005,2,"","","","","50","S","","","","H","","","","","60000.00","60000.00","0.00","60000.00","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","20060517","0000006000000","","","","","0000110100","RFBU","B1","","-60000.00","20060517",0,"1000","","","","","",0,0,"","","","",0,"","","X","X","","","","","","","","","","","","","","X","","0000113101","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","60000.00","74484.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","E","","","","0000113101","","","","0.00","0.00","","","","",0,"0.00","",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","","","","","",0,"","","","","","","","","","","","","","","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2006,1,"","","","","40","S","","","","S","9900","","V1","","24166.26","30000.00","0.00","30000.00","USD","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",1,"","0.00","0.00000","0.00","0.00","0.00","","5_1210","","","","","0000312200","RFBU","","","0.00","",0,"1000","5_1210","","","","",0,0,"","","","",0,"","","X","","","","","","","","","","","","","","","","","0000473120","","","","","X","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","0000009999","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","24166.26","30000.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","","","0000473120","","","","0.00","0.00","","","","",0,"0.00","0400",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","0400","","","","",0,"","","","","","","","","","","","","","","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2006,2,"","20060313","20060313","0100000005","50","S","","","","H","9900","","","","24166.26","30000.00","0.00","30000.00","USD","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","20060313","20060313","","","","","0000110100","RFBU","B2","","-30000.00","20060313",0,"1000","","","","","",0,0,"","","","",0,"","","X","X","","","","","","","","","","","","","","X","","0000113302","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","24166.26","30000.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","E","","","","","","","","0.00","0.00","","","","",0,"0.00","",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",2,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","","","","","",2006,"","","","","","","","","","","","","","","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2007,1,"","","","","50","S","","","","H","","","","","10000.00","10000.00","0.00","10000.00","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","20070116","20070116","","","","","0000110100","RFBU","F0","","-10000.00","20070116",0,"1000","","","","","",0,0,"","","","",0,"","","X","","","","","","","","","","","","","","","X","","0000113100","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","10000.00","12900.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","","","0000113100","","","","0.00","0.00","","","","",0,"0.00","",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","","","","","",0,"","","","","","","","","","","","","","","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2007,2,"","","","","40","S","","","","S","9900","","","","10000.00","10000.00","0.00","10000.00","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","","20070116","","","","","0000310100","RFBU","","","0.00","",0,"1000","5_1000","","","","",0,0,"","","","",0,"","","X","","","","","","","","","","","","","","","","","0000415100","","","","","X","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","ADMIN","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","10000.00","12900.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","","","","","","","0.00","0.00","","","","",0,"0.00","0400",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","0400","","","","",0,"","","","","","","","","","","","","","SERV","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2008,1,"","","","","50","S","","","","H","","","","","145.27","0.00","0.00","0.00","USD","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","20071231","USD","140000 - Bewertung per 20071231","","","","0000321200","RFBU","","","0.00","",0,"1000","","","","","",0,0,"","","","",0,"","","X","","","","","","","","","","","","","","","X","","0000230010","","","","","X","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","NGL_1020","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","145.27","187.39","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","E","","","","0000230010","","","","0.00","0.00","","","","",0,"0.00","0680",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","0680","","","","",0,"","","","","","","","","","","","","","MANF","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2008,2,"","","","","40","S","","","","S","","","","","145.27","0.00","0.00","145.27","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","20071231","20080101","140000 - Bewertung per 20071231","","","","0000120100","RFBU","","","0.00","",0,"1000","","","","","",0,0,"","","","",0,"","","X","","","","","","","","","","","","","","","","","0000140099","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","NGL_1020","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","145.27","187.39","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","E","","","","0000140099","","","","0.00","0.00","","","","",0,"0.00","",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","","","","","",0,"","","","","","","","","","","","","","MANF","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2008,3,"","","","","50","S","","","","H","","","","","145.26","0.00","0.00","0.00","USD","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","20071231","USD","140000 - Bewertung per 20071231","","","","0000321200","RFBU","","","0.00","",0,"1000","","","","","",0,0,"","","","",0,"","","X","","","","","","","","","","","","","","","X","","0000230010","","","","","X","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","NGL_4020","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","145.26","187.39","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","E","","","","0000230010","","","","0.00","0.00","","","","",0,"0.00","0680",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","0680","","","","",0,"","","","","","","","","","","","","","SERV","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2008,4,"","","","","40","S","","","","S","","","","","145.26","0.00","0.00","145.26","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","20071231","20080101","140000 - Bewertung per 20071231","","","","0000120100","RFBU","","","0.00","",0,"1000","","","","","",0,0,"","","","",0,"","","X","","","","","","","","","","","","","","","","","0000140099","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","NGL_4020","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","145.26","187.39","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","E","","","","0000140099","","","","0.00","0.00","","","","",0,"0.00","",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","","","","","",0,"","","","","","","","","","","","","","SERV","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2009,1,"","","","","70","A","","","","S","9900","","V0","","500000.00","500000.00","0.00","500000.00","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",1,"","0.00","0.00000","0.00","0.00","0.00","","","","","","120","0000181400","RFBU","","","0.00","",0,"1000","","","","","",0,0,"000070000004","0000","100","20090101",0,"","","","","","","","","","","","","","","","","","","","0000038000","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","NGL_1010","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",1,"","500000.00","645000.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","","","0000038000","","","","0.00","0.00","","","","",0,"0.00","",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","","","","","",0,"","","","","","","","","","","","","","MANF","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2009,2,"","","","","50","S","","","","H","9900","","","","500000.00","500000.00","0.00","500000.00","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","","20090101","","","","","0000191000","RFBU","","","0.00","",0,"1000","","","","","",0,0,"","","","",0,"","","X","X","","","","","","","","","","","","","","X","","0000199990","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","500000.00","645000.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","E","","","","","","","","0.00","0.00","","","","",0,"0.00","",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","","","","","",0,"","","","","","","","","","","","","","","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2010,1,"","","","","40","S","","","","S","","","","","60000.00","60000.00","0.00","60000.00","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","20101231","20101231","","","","","0000110100","RFBU","F0","","60000.00","20101231",0,"1000","","","","","",0,0,"","","","",0,"","","X","","","","","","","","","","","","","","","","","0000113100","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","ADMIN","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","60000.00","85662.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","","","0000113100","","","","0.00","0.00","","","","",0,"0.00","",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","","","","","",0,"","","","","","","","","","","","","","SERV","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2010,2,"","","","","50","S","","","","H","","","","","60000.00","60000.00","0.00","60000.00","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","20101231","0000006000000","","","","","0000110100","RFBU","B1","","-60000.00","20101231",0,"1000","","","","","",0,0,"","","","",0,"","","X","X","","","","","","","","","","","","","","X","","0000113101","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","ADMIN","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","60000.00","85662.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","","","0000113101","","","","0.00","0.00","","","","",0,"0.00","",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","","","","","",0,"","","","","","","","","","","","","","SERV","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2011,1,"","","","","40","S","","","","S","","","","","60000.00","60000.00","0.00","60000.00","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","20111231","20111231","","","","","0000110100","RFBU","F0","","60000.00","20111231",0,"1000","","","","","",0,0,"","","","",0,"","","X","","","","","","","","","","","","","","","","","0000113100","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","ADMIN","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","60000.00","84000.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","","","0000113100","","","","0.00","0.00","","","","",0,"0.00","",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","","","","","",0,"","","","","","","","","","","","","","SERV","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000000",2011,2,"","","","","50","S","","","","H","","","","","60000.00","60000.00","0.00","60000.00","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","20111231","0000006000000","","","","","0000110100","RFBU","B1","","-60000.00","20111231",0,"1000","","","","","",0,0,"","","","",0,"","","X","X","","","","","","","","","","","","","","X","","0000113101","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","ADMIN","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","60000.00","84000.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","","","0000113101","","","","0.00","0.00","","","","",0,"0.00","",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","","","","","",0,"","","","","","","","","","","","","","SERV","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000001",2006,1,"","","","","40","S","","","","S","9900","","V1","","15000.00","15000.00","0.00","15000.00","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",1,"","0.00","0.00000","0.00","0.00","0.00","","5_1210","","","","","0000312200","RFBU","","","0.00","",0,"1000","5_1210","","","","",0,0,"","","","",0,"","","X","","","","","","","","","","","","","","","","","0000473110","","","","","X","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","0000009999","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","15000.00","18621.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","","","0000473110","","","","0.00","0.00","","","","",0,"0.00","0400",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",0,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","0400","","","","",0,"","","","","","","","","","","","","","","","","","","",0,"","","","","","","","","","","","",""],[800,"0005","0100000001",2006,2,"","20060313","20060313","0100000002","50","S","","","","H","9900","","","","15000.00","15000.00","0.00","15000.00","EUR","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","","","",0,"","0.00","0.00000","0.00","0.00","0.00","20060313","20060313","","","","","0000110100","RFBU","B2","","-15000.00","20060313",0,"1000","","","","","",0,0,"","","","",0,"","","X","X","","","","","","","","","","","","","","X","","0000113302","","","","X","","","","",0,0,0,"0.000","0.000","0.00","0.00","0.00","","","","","","0.00","","0.00","0.00","","0.00","0.00","","0.00","0.00","",0,0,"","","","","","",0,0,"","","",0,0,"","",0,"","","0.00","","0.00","","","",0,"","","","","0.00","","0.00","0.00","0.00","0.00","","","0.000","","0.000","","0.000","","",0,0,"","",0,"","","","0.00","0.00","0.00","0.00","","0.00","","","","","","","","","","","","",0,"0.00","0.00","","","","","","","","","","","","","","0.000000","","","","0",0,"0","0",0,"","","","","",0,"","15000.00","18621.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","0.00","E","","","","","","","","0.00","0.00","","","","",0,"0.00","",0,"",0,"","","","",0,0,0,0,"","","","","","0.00","","","","","",2,"","0.00","","","","","","0.00","0.00","0.00","0.00","0.00","0.00","0.00",0,"","","0.00","","","","","",2006,"","","","","","","","","","","","","","","","","","","",0,"","","","","","","","","","","","",""]]}
<!doctype html>
<html ng-app="optimizationTest">
<head>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/react/react.js"></script>
<script src="bower_components/ngReact/ngReact.min.js"></script>
<script src="react.js"></script>
</head>
<body ng-controller='TableCtrl'>
<div class="container">
<div class="row">
<div class="col-md-6">
<h3>Data</h3>
<input class="btn btn-default" type="button" value="Load" ng-click="load()">
<fast-repeat data="data" callback="selectField" selected-field="field"></fast-repeat>
</div>
</div>
</div>
</body>
</html>
var optimizationTest = angular.module('optimizationTest', ['react']);
var MYLIST = React.createClass({displayName: 'MYLIST',
render: function() {
// On click set the selectedField member of scope
var callback = this.props.callback;
function clickHandler(fieldName) {
return function (ev) {
callback(fieldName);
}
}
// If current field is selectedField, highlight cell
var selectedField = this.props.selectedField;
function style(field) {
return (field == selectedField) ? "info" : "";
}
var data = this.props.data;
var rows = [];
var headerFields = [];
var rowIndex, columnIndex, children, fieldName;
for (rowIndex = 0; data != null && rowIndex < data.length; rowIndex++) {
children = [];
for (columnIndex = 0; columnIndex < data[rowIndex].length; columnIndex++) {
fieldName = "column-"+columnIndex;
if(rowIndex == 0) {
headerFields.push(React.DOM.th({onClick: clickHandler(fieldName), className: style(fieldName)}, fieldName));
}
children.push(React.DOM.td({onClick: clickHandler(fieldName), className: style(fieldName)}, data[rowIndex][columnIndex]));
}
rows.push(React.DOM.tr(null, children));
}
var header = React.DOM.tr(null, headerFields);
return (
React.DOM.table({className: "table table-bordered"}, [React.DOM.thead(null, [header]), React.DOM.tbody(null, rows)])
);
}
});
optimizationTest.controller('TableCtrl', function ($scope, $http) {
$scope.load = function () {
$scope.data = [];
data = {
id: 1,
provider: 'sap',
table: 'BSEG',
count: 20
}
$http.post("http://localhost:3333/api/data_provider/data", data)
.success(function (response) {
$scope.data = response.data;
})
.error(function (response, status) {
console.log("Error");
});
}
$scope.selectField = function (field) {
$scope.$apply( function() {
$scope.field = field;
});
};
}).directive('fastRepeat', function(){
return{
restrict: 'E',
scope:{
data: '=',
selectedField: '=',
callback: '='
},
link:function(scope, el, attrs){
scope.$watch('data', function(newValue, oldValue){
React.render(MYLIST({data:newValue, callback: scope.callback, selectedField: scope.selectedField}),el[0]);
})
scope.$watch('selectedField', function(newValue, oldValue){
React.render(MYLIST({data:scope.data, callback: scope.callback, selectedField: newValue}),el[0]);
})
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment