Revize 81ff7da4
Přidáno uživatelem Jan Havlíček před téměř 5 roky(ů)
project/Deserializer/out_1.json | ||
---|---|---|
1 |
{ |
|
2 |
class gk.std_bo_if.share.data.to.item.ToItem extends gk.std_bo_if.share.data.to.TransportObject : { |
|
3 |
} |
|
4 |
}, |
|
5 |
{ |
|
6 |
class gk.std_bo_if.share.data.to.TransportObject : { |
|
7 |
"operation" : U, |
|
8 |
"status" : { |
|
9 |
class gk.std_bo_if.share.data.to.TransportObjectStatus : { |
|
10 |
"transactionID" : 100000000001256826, |
|
11 |
} |
|
12 |
}, |
|
13 |
"table" : { |
|
14 |
class gk.std_bo_if.share.data.to.item.TbiRItem extends gk.tbi.TbiTable : { |
|
15 |
} |
|
16 |
}, |
|
17 |
{ |
|
18 |
class gk.tbi.TbiTable : { |
|
19 |
"changed" : true, |
|
20 |
"hasMoreData" : false, |
|
21 |
"rows" : { |
|
22 |
class java.util.Vector : { |
|
23 |
"capacityIncrement" : 0, |
|
24 |
"elementCount" : 1, |
|
25 |
"elementData" : [ { |
|
26 |
class gk.std_bo_if.share.data.to.item.TbiRItemRow extends gk.tbi.TbiRow : { |
|
27 |
"_authorized_for_sale_flag" : true, |
|
28 |
"_bonuspoints_flag" : true, |
|
29 |
"_collection_allowed_for_element_change_flag" : false, |
|
30 |
"_concession_item_flag" : false, |
|
31 |
"_consumer_pckg_weight" : 94.5, |
|
32 |
"_conversion_factor_input_required_flag" : false, |
|
33 |
"_default_label_count" : 1, |
|
34 |
"_delivery_stock_assortment_flag" : false, |
|
35 |
"_deposit_flag" : false, |
|
36 |
"_fee_included" : true, |
|
37 |
"_fl_itm_dsc" : true, |
|
38 |
"_item_deleted_flag" : false, |
|
39 |
"_markdown_type" : 0, |
|
40 |
"_negative_position_flag" : false, |
|
41 |
"_prohibited_for_return_flag" : false, |
|
42 |
"_recycling_fee" : 0.0, |
|
43 |
"_retain_prepayment_flag" : false, |
|
44 |
"_short_list_showing_flag" : false, |
|
45 |
"_sku_amount_factor" : 1.0, |
|
46 |
"_takeaway_allowed_flag" : false, |
|
47 |
"_tare_id" : 0, |
|
48 |
"_tax_exempt_prohibited_flag" : false, |
|
49 |
"_unit_pricing_required_flag" : false, |
|
50 |
"_update_stock_flag" : true, |
|
51 |
"_update_stock_on_item_collection_elements_flag" : false, |
|
52 |
"_update_stock_on_main_item_flag" : false, |
|
53 |
"_update_turnover_flag" : true, |
|
54 |
"_update_turnover_on_item_collection_elements_flag" : false, |
|
55 |
"_update_turnover_on_main_item_flag" : false, |
|
56 |
"_warranty_period" : 0.0, |
|
57 |
"_wertartikelok" : false, |
|
58 |
"_bon_text" : "Ліжко MANDERUP 140x200см дикий дуб", |
|
59 |
"_description" : "Ліжко MANDERUP 140x200см дикий дуб", |
|
60 |
"_item_id" : "3600726", |
|
61 |
"_item_main_id" : "3600726", |
|
62 |
"_merchandise_structure_id" : "040211", |
|
63 |
"_name" : "Ліжко MANDERUP 140x200см дикий дуб", |
|
64 |
"_pos_department_id" : "1", |
|
65 |
"_price_processing" : "01", |
|
66 |
"_retail_selling" : "ST", |
|
67 |
"_stock_item_type_code" : "00", |
|
68 |
"_supplier_id" : "C290", |
|
69 |
"_tax_group_id" : "83", |
|
70 |
"_xx001" : "41", |
|
71 |
"_xx002" : "9403601000", |
|
72 |
} |
|
73 |
}, |
|
74 |
{ |
|
75 |
class gk.tbi.TbiRow : { |
|
76 |
"status" : 0, |
|
77 |
"notNullArray" : [ -1, -20, 62, -22, -4, 17, -32, 12 ] |
|
78 |
} |
|
79 |
}, ] |
|
80 |
} |
|
81 |
} |
|
82 |
} |
|
83 |
} |
|
84 |
} |
|
85 |
} |
project/Deserializer/src/Converter.java | ||
---|---|---|
1 |
import java.io.BufferedWriter; |
|
1 | 2 |
import java.io.File; |
2 | 3 |
import java.io.FileDescriptor; |
3 | 4 |
import java.io.FileOutputStream; |
5 |
import java.io.FileWriter; |
|
4 | 6 |
import java.io.IOException; |
5 | 7 |
import java.io.PrintStream; |
6 | 8 |
import java.util.HashMap; |
... | ... | |
17 | 19 |
import io.FileWorker; |
18 | 20 |
|
19 | 21 |
public class Converter extends Thread { |
20 |
|
|
21 |
private IConversionResults ui;
|
|
22 |
|
|
23 |
private IConversionResults ui;
|
|
22 | 24 |
private AtomicBoolean active; |
23 |
|
|
25 |
|
|
24 | 26 |
// P-K without E semaphore. |
25 | 27 |
private Lock entryLock; |
26 | 28 |
private Semaphore inputAvailable; |
27 |
|
|
29 |
|
|
28 | 30 |
private File inputFile; |
29 | 31 |
private String inputString; |
30 | 32 |
private boolean testing; |
31 |
|
|
32 |
//Key as enum?
|
|
33 |
|
|
34 |
// Key as enum?
|
|
33 | 35 |
private HashMap<String, String> htmlFormatting = new HashMap<String, String>(); |
34 | 36 |
private HashMap<String, String> jsonFormatting = new HashMap<String, String>(); |
35 |
|
|
37 |
|
|
36 | 38 |
public Converter(IConversionResults ui) { |
37 | 39 |
this.ui = ui; |
38 | 40 |
active = new AtomicBoolean(true); |
39 | 41 |
entryLock = new ReentrantLock(); |
40 | 42 |
inputAvailable = new Semaphore(0); |
41 |
fillInTestingDictionaries();
|
|
43 |
fillInTestingDictionaries();
|
|
42 | 44 |
} |
43 | 45 |
|
44 |
private void fillInTestingDictionaries() |
|
45 |
{ |
|
46 |
private void fillInTestingDictionaries() { |
|
46 | 47 |
htmlFormatting.put("indent", "<span style=\"margin-left:2em\">"); |
47 | 48 |
htmlFormatting.put("lineBreak", "<br/>"); |
48 | 49 |
htmlFormatting.put("classCol", "<span style=\"color:blue;font-weight:bold\">"); |
... | ... | |
59 | 60 |
jsonFormatting.put("keywordCol", ""); |
60 | 61 |
jsonFormatting.put("closeTagCol", ""); |
61 | 62 |
} |
62 |
|
|
63 |
|
|
63 | 64 |
public void end() { |
64 | 65 |
active.set(false); |
65 | 66 |
setInput(null, null, false); |
66 | 67 |
} |
67 |
|
|
68 |
|
|
68 | 69 |
public void setInput(File inputFile, String inputString, boolean testing) { |
69 | 70 |
entryLock.lock(); |
70 | 71 |
this.inputFile = inputFile; |
71 | 72 |
this.inputString = inputString; |
72 | 73 |
this.testing = testing; |
73 | 74 |
entryLock.unlock(); |
74 |
|
|
75 |
|
|
75 | 76 |
if (!inputAvailable.tryAcquire()) |
76 | 77 |
inputAvailable.release(); // MAX VALUE = 1! |
77 | 78 |
} |
78 |
|
|
79 |
public boolean getInput(AtomicReference<File> inputFile, AtomicReference<String> inputString, AtomicBoolean testing) { |
|
79 |
|
|
80 |
public boolean getInput(AtomicReference<File> inputFile, AtomicReference<String> inputString, |
|
81 |
AtomicBoolean testing) { |
|
80 | 82 |
try { |
81 | 83 |
inputAvailable.acquire(); |
82 | 84 |
} catch (InterruptedException e) { |
83 | 85 |
return false; |
84 | 86 |
} |
85 |
|
|
87 |
|
|
86 | 88 |
entryLock.lock(); |
87 | 89 |
inputFile.set(this.inputFile); |
88 | 90 |
inputString.set(this.inputString); |
89 | 91 |
testing.set(this.testing); |
90 |
|
|
92 |
|
|
91 | 93 |
this.inputFile = null; |
92 | 94 |
this.inputString = null; |
93 | 95 |
entryLock.unlock(); |
94 |
|
|
96 |
|
|
95 | 97 |
return true; |
96 | 98 |
} |
97 |
|
|
99 |
|
|
98 | 100 |
@Override |
99 | 101 |
public void run() { |
100 | 102 |
super.run(); |
... | ... | |
102 | 104 |
AtomicReference<File> inputFile = new AtomicReference<File>(); |
103 | 105 |
AtomicReference<String> inputString = new AtomicReference<String>(); |
104 | 106 |
AtomicBoolean testing = new AtomicBoolean(); |
105 |
|
|
107 |
|
|
106 | 108 |
if (!getInput(inputFile, inputString, testing)) { |
107 | 109 |
continue; |
108 | 110 |
} |
109 |
|
|
111 |
|
|
110 | 112 |
if (inputFile.get() != null) { |
111 | 113 |
processA(inputFile.get(), testing.get()); |
112 | 114 |
} else if (inputString.get() != null) { |
... | ... | |
114 | 116 |
} |
115 | 117 |
} |
116 | 118 |
} |
117 |
|
|
119 |
|
|
118 | 120 |
private void processA(File input, boolean testing) { |
119 | 121 |
byte array[]; |
120 | 122 |
try { |
... | ... | |
125 | 127 |
} |
126 | 128 |
processB(array, testing); |
127 | 129 |
} |
128 |
|
|
130 |
|
|
129 | 131 |
private void processB(byte array[], boolean testing) { |
130 | 132 |
StringBuilder html = new StringBuilder(); |
131 | 133 |
StringBuilder json = new StringBuilder(); |
132 |
|
|
134 |
|
|
133 | 135 |
try { |
134 |
//Redirectovany system.out do null streamu. Mozno redirect do souboru |
|
136 |
// Redirectovany system.out do null streamu. Mozno redirect do souboru
|
|
135 | 137 |
System.setOut(FileWorker.createRedirectStream()); |
136 | 138 |
convert(array, html, json); |
137 | 139 |
} catch (Exception e) { |
... | ... | |
140 | 142 |
} finally { |
141 | 143 |
System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out))); |
142 | 144 |
} |
143 |
|
|
145 |
|
|
146 |
//test file output |
|
147 |
try { |
|
148 |
BufferedWriter writer = new BufferedWriter(new FileWriter("html.txt")); |
|
149 |
writer.write(html.toString()); |
|
150 |
writer.close(); |
|
151 |
|
|
152 |
BufferedWriter writer2 = new BufferedWriter(new FileWriter("json.txt")); |
|
153 |
writer2.write(json.toString()); |
|
154 |
writer2.close(); |
|
155 |
} catch (IOException e) { |
|
156 |
// TODO Auto-generated catch block |
|
157 |
e.printStackTrace(); |
|
158 |
} |
|
159 |
//test file output |
|
160 |
|
|
144 | 161 |
ui.completed(html.toString(), json.toString(), testing); |
145 | 162 |
} |
146 |
|
|
163 |
|
|
147 | 164 |
private void convert(byte[] buffer, StringBuilder html, StringBuilder json) throws Exception { |
148 | 165 |
jdeserialize deserializer = new jdeserialize(buffer); |
149 | 166 |
|
150 | 167 |
// gets the "contents" into an array - returnes the deserialization of all |
151 |
// 'writes' into serialized object via objectOutputStream |
|
152 |
List<content> cntnts = deserializer.getContent(); |
|
153 |
|
|
154 |
for(content cnt : cntnts) |
|
155 |
{ |
|
156 |
if(cnt != null) |
|
157 |
{ |
|
158 |
//Parametrizovany toJson pomoci dictionary |
|
159 |
//Ciste HTML / Cisty JSON |
|
168 |
// 'writes' into serialized object via objectOutputStream |
|
169 |
List<content> cntnts = deserializer.getContent(); |
|
170 |
|
|
171 |
for (content cnt : cntnts) { |
|
172 |
if (cnt != null) { |
|
173 |
// Parametrizovany toJson pomoci dictionary |
|
174 |
// Ciste HTML / Cisty JSON |
|
160 | 175 |
json.append(cnt.toJson("", null, this.jsonFormatting, false)); |
161 | 176 |
html.append(cnt.toJson("", null, this.htmlFormatting, false)); |
162 | 177 |
} |
project/Deserializer/src/jdeserialize/classdesc.java | ||
---|---|---|
274 | 274 |
val = locVal.toString(); |
275 | 275 |
} |
276 | 276 |
|
277 |
sb.append(formatting.get("lineBreak")).append(indentation); |
|
277 |
String locStringTest = formatting.get("lineBreak") + indentation + |
|
278 |
formatting.get("fieldCol") + "\"" + f.name + "\"" + formatting.get("closeTagCol") + |
|
279 |
" : " + val; |
|
280 |
sb.append(locStringTest); |
|
281 |
/*sb.append(formatting.get("lineBreak")).append(indentation); |
|
278 | 282 |
sb.append(formatting.get("fieldCol")).append("\"").append(f.name).append("\"").append(formatting.get("closeTagCol")); |
279 | 283 |
sb.append(" : "); |
280 |
sb.append(val); |
|
284 |
sb.append(val);*/
|
|
281 | 285 |
|
282 | 286 |
if (!f.equals(this.fields[this.fields.length - 1])) { |
283 | 287 |
sb.append(", "); |
project/html.txt | ||
---|---|---|
1 |
{<br/><span style="margin-left:2em"><span style="color:green">class </span><span style="color:blue;font-weight:bold">gk.std_bo_if.share.data.to.item.ToItem</span><span style="color:green"> extends </span><span style="color:blue;font-weight:bold">gk.std_bo_if.share.data.to.TransportObject</span> : {<br/><span style="margin-left:2em">}<br/>},<br/>{<br/><span style="margin-left:2em"><span style="color:green">class </span><span style="color:blue;font-weight:bold">gk.std_bo_if.share.data.to.TransportObject</span> : {<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"operation"</span> : U, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"status"</span> : {<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:green">class </span><span style="color:blue;font-weight:bold">gk.std_bo_if.share.data.to.TransportObjectStatus</span> : {<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"transactionID"</span> : 100000000001256826, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em">}<br/><span style="margin-left:2em"><span style="margin-left:2em">}, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"table"</span> : {<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:green">class </span><span style="color:blue;font-weight:bold">gk.std_bo_if.share.data.to.item.TbiRItem</span><span style="color:green"> extends </span><span style="color:blue;font-weight:bold">gk.tbi.TbiTable</span> : {<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em">}<br/>},<br/>{<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:green">class </span><span style="color:blue;font-weight:bold">gk.tbi.TbiTable</span> : {<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"changed"</span> : true, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"hasMoreData"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"rows"</span> : {<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:green">class </span><span style="color:blue;font-weight:bold">java.util.Vector</span> : {<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"capacityIncrement"</span> : 0, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"elementCount"</span> : 1, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"elementData"</span> : [ {<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:green">class </span><span style="color:blue;font-weight:bold">gk.std_bo_if.share.data.to.item.TbiRItemRow</span><span style="color:green"> extends </span><span style="color:blue;font-weight:bold">gk.tbi.TbiRow</span> : {<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_authorized_for_sale_flag"</span> : true, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_bonuspoints_flag"</span> : true, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_collection_allowed_for_element_change_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_concession_item_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_consumer_pckg_weight"</span> : 94.5, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_conversion_factor_input_required_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_default_label_count"</span> : 1, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_delivery_stock_assortment_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_deposit_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_fee_included"</span> : true, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_fl_itm_dsc"</span> : true, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_item_deleted_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_markdown_type"</span> : 0, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_negative_position_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_prohibited_for_return_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_recycling_fee"</span> : 0.0, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_retain_prepayment_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_short_list_showing_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_sku_amount_factor"</span> : 1.0, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_takeaway_allowed_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_tare_id"</span> : 0, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_tax_exempt_prohibited_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_unit_pricing_required_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_update_stock_flag"</span> : true, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_update_stock_on_item_collection_elements_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_update_stock_on_main_item_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_update_turnover_flag"</span> : true, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_update_turnover_on_item_collection_elements_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_update_turnover_on_main_item_flag"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_warranty_period"</span> : 0.0, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_wertartikelok"</span> : false, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_bon_text"</span> : "Ліжко MANDERUP 140x200см дикий дуб", <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_description"</span> : "Ліжко MANDERUP 140x200см дикий дуб", <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_item_id"</span> : "3600726", <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_item_main_id"</span> : "3600726", <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_merchandise_structure_id"</span> : "040211", <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_name"</span> : "Ліжко MANDERUP 140x200см дикий дуб", <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_pos_department_id"</span> : "1", <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_price_processing"</span> : "01", <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_retail_selling"</span> : "ST", <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_stock_item_type_code"</span> : "00", <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_supplier_id"</span> : "C290", <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_tax_group_id"</span> : "83", <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_xx001"</span> : "41", <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"_xx002"</span> : "9403601000", <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em">}<br/>},<br/>{<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:green">class </span><span style="color:blue;font-weight:bold">gk.tbi.TbiRow</span> : {<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"status"</span> : 0, <br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="color:purple">"notNullArray"</span> : [ -1, -20, 62, -22, -4, 17, -32, 12 ]<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em">}<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em">}, ]<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em">}<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em">}<br/><span style="margin-left:2em"><span style="margin-left:2em"><span style="margin-left:2em">}<br/><span style="margin-left:2em"><span style="margin-left:2em">}<br/><span style="margin-left:2em">}<br/>} |
project/json.txt | ||
---|---|---|
1 |
{ |
|
2 |
class gk.std_bo_if.share.data.to.item.ToItem extends gk.std_bo_if.share.data.to.TransportObject : { |
|
3 |
} |
|
4 |
}, |
|
5 |
{ |
|
6 |
class gk.std_bo_if.share.data.to.TransportObject : { |
|
7 |
"operation" : U, |
|
8 |
"status" : { |
|
9 |
class gk.std_bo_if.share.data.to.TransportObjectStatus : { |
|
10 |
"transactionID" : 100000000001256826, |
|
11 |
} |
|
12 |
}, |
|
13 |
"table" : { |
|
14 |
class gk.std_bo_if.share.data.to.item.TbiRItem extends gk.tbi.TbiTable : { |
|
15 |
} |
|
16 |
}, |
|
17 |
{ |
|
18 |
class gk.tbi.TbiTable : { |
|
19 |
"changed" : true, |
|
20 |
"hasMoreData" : false, |
|
21 |
"rows" : { |
|
22 |
class java.util.Vector : { |
|
23 |
"capacityIncrement" : 0, |
|
24 |
"elementCount" : 1, |
|
25 |
"elementData" : [ { |
|
26 |
class gk.std_bo_if.share.data.to.item.TbiRItemRow extends gk.tbi.TbiRow : { |
|
27 |
"_authorized_for_sale_flag" : true, |
|
28 |
"_bonuspoints_flag" : true, |
|
29 |
"_collection_allowed_for_element_change_flag" : false, |
|
30 |
"_concession_item_flag" : false, |
|
31 |
"_consumer_pckg_weight" : 94.5, |
|
32 |
"_conversion_factor_input_required_flag" : false, |
|
33 |
"_default_label_count" : 1, |
|
34 |
"_delivery_stock_assortment_flag" : false, |
|
35 |
"_deposit_flag" : false, |
|
36 |
"_fee_included" : true, |
|
37 |
"_fl_itm_dsc" : true, |
|
38 |
"_item_deleted_flag" : false, |
|
39 |
"_markdown_type" : 0, |
|
40 |
"_negative_position_flag" : false, |
|
41 |
"_prohibited_for_return_flag" : false, |
|
42 |
"_recycling_fee" : 0.0, |
|
43 |
"_retain_prepayment_flag" : false, |
|
44 |
"_short_list_showing_flag" : false, |
|
45 |
"_sku_amount_factor" : 1.0, |
|
46 |
"_takeaway_allowed_flag" : false, |
|
47 |
"_tare_id" : 0, |
|
48 |
"_tax_exempt_prohibited_flag" : false, |
|
49 |
"_unit_pricing_required_flag" : false, |
|
50 |
"_update_stock_flag" : true, |
|
51 |
"_update_stock_on_item_collection_elements_flag" : false, |
|
52 |
"_update_stock_on_main_item_flag" : false, |
|
53 |
"_update_turnover_flag" : true, |
|
54 |
"_update_turnover_on_item_collection_elements_flag" : false, |
|
55 |
"_update_turnover_on_main_item_flag" : false, |
|
56 |
"_warranty_period" : 0.0, |
|
57 |
"_wertartikelok" : false, |
|
58 |
"_bon_text" : "Ліжко MANDERUP 140x200см дикий дуб", |
|
59 |
"_description" : "Ліжко MANDERUP 140x200см дикий дуб", |
|
60 |
"_item_id" : "3600726", |
|
61 |
"_item_main_id" : "3600726", |
|
62 |
"_merchandise_structure_id" : "040211", |
|
63 |
"_name" : "Ліжко MANDERUP 140x200см дикий дуб", |
|
64 |
"_pos_department_id" : "1", |
|
65 |
"_price_processing" : "01", |
|
66 |
"_retail_selling" : "ST", |
|
67 |
"_stock_item_type_code" : "00", |
|
68 |
"_supplier_id" : "C290", |
|
69 |
"_tax_group_id" : "83", |
|
70 |
"_xx001" : "41", |
|
71 |
"_xx002" : "9403601000", |
|
72 |
} |
|
73 |
}, |
|
74 |
{ |
|
75 |
class gk.tbi.TbiRow : { |
|
76 |
"status" : 0, |
|
77 |
"notNullArray" : [ -1, -20, 62, -22, -4, 17, -32, 12 ] |
|
78 |
} |
|
79 |
}, ] |
|
80 |
} |
|
81 |
} |
|
82 |
} |
|
83 |
} |
|
84 |
} |
|
85 |
} |
Také k dispozici: Unified diff
re #7891 Indentation new issue found.
WebView interpretation of html does not respond to actual HTML