锘??xml version="1.0" encoding="utf-8" standalone="yes"?>色爱av综合网,а√在线中文在线新版,aa视频在线观看http://www.aygfsteel.com/Vanilla-Sky/category/46590.html閫愭ⅵ涔嬫梾zh-cnTue, 12 Oct 2010 11:50:16 GMTTue, 12 Oct 2010 11:50:16 GMT60涓涓猨Query 鍜宩son 欏甸潰浜や簰鐨勫疄渚?/title><link>http://www.aygfsteel.com/Vanilla-Sky/archive/2010/10/12/334679.html</link><dc:creator>鏃犲敖嫻?/dc:creator><author>鏃犲敖嫻?/author><pubDate>Tue, 12 Oct 2010 09:27:00 GMT</pubDate><guid>http://www.aygfsteel.com/Vanilla-Sky/archive/2010/10/12/334679.html</guid><wfw:comment>http://www.aygfsteel.com/Vanilla-Sky/comments/334679.html</wfw:comment><comments>http://www.aygfsteel.com/Vanilla-Sky/archive/2010/10/12/334679.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/Vanilla-Sky/comments/commentRss/334679.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/Vanilla-Sky/services/trackbacks/334679.html</trackback:ping><description><![CDATA[<p>宸ヤ綔涓殑鐐規淮璁板綍...<br /> No.1<br /> jsp欏甸潰涓殑鑴氭湰浠g爜  闇瑕佸紩鍏?br /> </p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000"><</span><span style="color: #000000">script type</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">text/javascript</span><span style="color: #000000">"</span><span style="color: #000000"> src</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">${ctx}/js/jquery.js</span><span style="color: #000000">"</span><span style="color: #000000">></</span><span style="color: #000000">script</span><span style="color: #000000">></span></div> <p> </p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080"> 1</span><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000"><!--</span><span style="color: #000000">欏甸潰jquery鑴氭湰</span><span style="color: #000000">--></span><span style="color: #000000"><br /> </span><span style="color: #008080"> 2</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><br /> </span><span style="color: #008080"> 3</span><span style="color: #000000"><img id="Codehighlighter1_44_522_Open_Image" onclick="this.style.display='none'; Codehighlighter1_44_522_Open_Text.style.display='none'; Codehighlighter1_44_522_Closed_Image.style.display='inline'; Codehighlighter1_44_522_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_44_522_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_44_522_Closed_Text.style.display='none'; Codehighlighter1_44_522_Open_Image.style.display='inline'; Codehighlighter1_44_522_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="color: #0000ff">function</span><span style="color: #000000"> updateQuantity()</span><span id="Codehighlighter1_44_522_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_44_522_Open_Text"><span style="color: #000000">{<br /> </span><span style="color: #008080"> 4</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />   $.getJSON(</span><span style="color: #000000">"</span><span style="color: #000000">${ctx}/do/material/updateQuantity?id=</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">$('#id').val()</span><span style="color: #000000">+</span><span style="color: #000000">"</span><span style="color: #000000">&quantity=</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">$('#quantity').val()</span><span style="color: #000000">+</span><span style="color: #000000">"</span><span style="color: #000000">&timestamp=</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #0000ff">new</span><span style="color: #000000"> Date().getTime(),<br /> </span><span style="color: #008080"> 5</span><span style="color: #000000"><img id="Codehighlighter1_206_518_Open_Image" onclick="this.style.display='none'; Codehighlighter1_206_518_Open_Text.style.display='none'; Codehighlighter1_206_518_Closed_Image.style.display='inline'; Codehighlighter1_206_518_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_206_518_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_206_518_Closed_Text.style.display='none'; Codehighlighter1_206_518_Open_Image.style.display='inline'; Codehighlighter1_206_518_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />       </span><span style="color: #0000ff">function</span><span style="color: #000000">(data) </span><span id="Codehighlighter1_206_518_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_206_518_Open_Text"><span style="color: #000000">{<br /> </span><span style="color: #008080"> 6</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />   </span><span style="color: #008000">//</span><span style="color: #008000">閬嶅巻JSON涓殑姣忎釜entry</span><span style="color: #008000"><br /> </span><span style="color: #008080"> 7</span><span style="color: #008000"><img id="Codehighlighter1_271_510_Open_Image" onclick="this.style.display='none'; Codehighlighter1_271_510_Open_Text.style.display='none'; Codehighlighter1_271_510_Closed_Image.style.display='inline'; Codehighlighter1_271_510_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_271_510_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_271_510_Closed_Text.style.display='none'; Codehighlighter1_271_510_Open_Image.style.display='inline'; Codehighlighter1_271_510_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /></span><span style="color: #000000">    $.each(data,</span><span style="color: #0000ff">function</span><span style="color: #000000">(entryIndex,entry)</span><span id="Codehighlighter1_271_510_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_271_510_Open_Text"><span style="color: #000000">{<br /> </span><span style="color: #008080"> 8</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #0000ff">var</span><span style="color: #000000"> html</span><span style="color: #000000">=</span><span style="color: #000000">'</span><span style="color: #000000"><</span><span style="color: #000000">tr</span><span style="color: #000000">></span><span style="color: #000000">';<br /> </span><span style="color: #008080"> 9</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #008000">//</span><span style="color: #008000">涔熷彲浠ュ啓鎴恊ntry.id entry.state</span><span style="color: #008000"><br /> </span><span style="color: #008080">10</span><span style="color: #008000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">    html</span><span style="color: #000000">+=</span><span style="color: #000000">'</span><span style="color: #000000"><</span><span style="color: #000000">td</span><span style="color: #000000">></span><span style="color: #000000">'</span><span style="color: #000000">+</span><span style="color: #000000">entry['id']</span><span style="color: #000000">+</span><span style="color: #000000">'</span><span style="color: #000000"></</span><span style="color: #000000">td</span><span style="color: #000000">></span><span style="color: #000000">';<br /> </span><span style="color: #008080">11</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />    html</span><span style="color: #000000">+=</span><span style="color: #000000">'</span><span style="color: #000000"><</span><span style="color: #000000">td</span><span style="color: #000000">></span><span style="color: #000000">璧勬枡鐘舵?nbsp;    '</span><span style="color: #000000">+</span><span style="color: #000000">entry['state']</span><span style="color: #000000">+</span><span style="color: #000000">'</span><span style="color: #000000"></</span><span style="color: #000000">td</span><span style="color: #000000">></span><span style="color: #000000">';<br /> </span><span style="color: #008080">12</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />    html</span><span style="color: #000000">+=</span><span style="color: #000000">'</span><span style="color: #000000"><</span><span style="color: #000000">td</span><span style="color: #000000">></span><span style="color: #000000">'</span><span style="color: #000000">+</span><span style="color: #000000">entry['serialNumber']</span><span style="color: #000000">+</span><span style="color: #000000">'</span><span style="color: #000000"></</span><span style="color: #000000">td</span><span style="color: #000000">></span><span style="color: #000000">';<br /> </span><span style="color: #008080">13</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />    html</span><span style="color: #000000">+=</span><span style="color: #000000">'</span><span style="color: #000000"></</span><span style="color: #000000">tr</span><span style="color: #000000">></span><span style="color: #000000">';<br /> </span><span style="color: #008080">14</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />    $('#title').html(html);<br /> </span><span style="color: #008080">15</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> </span><span style="color: #008080">16</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000">);<br /> </span><span style="color: #008080">17</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000">);<br /> </span><span style="color: #008080">18</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div> <br /> <br /> No.2<br /> 鍚庡彴controller浠g爜<br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080"> 1</span><img id="Codehighlighter1_1_30_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1_30_Open_Text.style.display='none'; Codehighlighter1_1_30_Closed_Image.style.display='inline'; Codehighlighter1_1_30_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_1_30_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1_30_Closed_Text.style.display='none'; Codehighlighter1_1_30_Open_Image.style.display='inline'; Codehighlighter1_1_30_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /><span style="color: #000000">    </span><span id="Codehighlighter1_1_30_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">/** */</span><span id="Codehighlighter1_1_30_Open_Text"><span style="color: #008000">/**</span><span style="color: #008000"><br /> </span><span style="color: #008080"> 2</span><span style="color: #008000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />     * 灝嗕紶鍏ョ殑瀵硅薄杞寲涓篔SON鏁版嵁鏍煎紡<br /> </span><span style="color: #008080"> 3</span><span style="color: #008000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />     </span><span style="color: #008000">*/</span></span><span style="color: #000000"><br /> </span><span style="color: #008080"> 4</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff">protected</span><span style="color: #000000"> JSONObject toJSONObject(Object obj) </span><span style="color: #0000ff">throws</span><span style="color: #000000"> SecurityException, JSONException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException,<br /> </span><span style="color: #008080"> 5</span><span style="color: #000000"><img id="Codehighlighter1_225_1575_Open_Image" onclick="this.style.display='none'; Codehighlighter1_225_1575_Open_Text.style.display='none'; Codehighlighter1_225_1575_Closed_Image.style.display='inline'; Codehighlighter1_225_1575_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_225_1575_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_225_1575_Closed_Text.style.display='none'; Codehighlighter1_225_1575_Open_Image.style.display='inline'; Codehighlighter1_225_1575_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />         InvocationTargetException </span><span id="Codehighlighter1_225_1575_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_225_1575_Open_Text"><span style="color: #000000">{<br /> </span><span style="color: #008080"> 6</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />        JSONObject jobj </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> JSONObject();<br /> </span><span style="color: #008080"> 7</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />        Field[] fields </span><span style="color: #000000">=</span><span style="color: #000000"> obj.getClass().getDeclaredFields();<br /> </span><span style="color: #008080"> 8</span><span style="color: #000000"><img id="Codehighlighter1_349_1557_Open_Image" onclick="this.style.display='none'; Codehighlighter1_349_1557_Open_Text.style.display='none'; Codehighlighter1_349_1557_Closed_Image.style.display='inline'; Codehighlighter1_349_1557_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_349_1557_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_349_1557_Closed_Text.style.display='none'; Codehighlighter1_349_1557_Open_Image.style.display='inline'; Codehighlighter1_349_1557_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span style="color: #0000ff">for</span><span style="color: #000000"> (Field field : fields) </span><span id="Codehighlighter1_349_1557_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_349_1557_Open_Text"><span style="color: #000000">{<br /> </span><span style="color: #008080"> 9</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #008000">//</span><span style="color: #008000"> 璇誨彇obj鍐呴儴鐨勫璞″睘鎬?</span><span style="color: #008000"><br /> </span><span style="color: #008080">10</span><span style="color: #008000"><img id="Codehighlighter1_415_721_Open_Image" onclick="this.style.display='none'; Codehighlighter1_415_721_Open_Text.style.display='none'; Codehighlighter1_415_721_Closed_Image.style.display='inline'; Codehighlighter1_415_721_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_415_721_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_415_721_Closed_Text.style.display='none'; Codehighlighter1_415_721_Open_Image.style.display='inline'; Codehighlighter1_415_721_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /></span><span style="color: #000000">            </span><span style="color: #0000ff">if</span><span style="color: #000000"> (field.getName().equals(</span><span style="color: #000000">"</span><span style="color: #000000">department</span><span style="color: #000000">"</span><span style="color: #000000">)) </span><span id="Codehighlighter1_415_721_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_415_721_Open_Text"><span style="color: #000000">{<br /> </span><span style="color: #008080">11</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                Object m </span><span style="color: #000000">=</span><span style="color: #000000"> obj.getClass().getMethod(</span><span style="color: #000000">"</span><span style="color: #000000">get</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> StringUtils.capitalize(</span><span style="color: #000000">"</span><span style="color: #000000">department</span><span style="color: #000000">"</span><span style="color: #000000">)).invoke(obj);<br /> </span><span style="color: #008080">12</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />             jobj.put(</span><span style="color: #000000">"</span><span style="color: #000000">id</span><span style="color: #000000">"</span><span style="color: #000000">, m.getClass().getMethod(</span><span style="color: #000000">"</span><span style="color: #000000">get</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> StringUtils.capitalize(</span><span style="color: #000000">"</span><span style="color: #000000">id</span><span style="color: #000000">"</span><span style="color: #000000">)).invoke(m));<br /> </span><span style="color: #008080">13</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                jobj.put(</span><span style="color: #000000">"</span><span style="color: #000000">name</span><span style="color: #000000">"</span><span style="color: #000000">, m.getClass().getMethod(</span><span style="color: #000000">"</span><span style="color: #000000">get</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> StringUtils.capitalize(</span><span style="color: #000000">"</span><span style="color: #000000">name</span><span style="color: #000000">"</span><span style="color: #000000">)).invoke(m));<br /> </span><span style="color: #008080">14</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: #0000ff">continue</span><span style="color: #000000">;<br /> </span><span style="color: #008080">15</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />            }</span></span><span style="color: #000000"><br /> </span><span style="color: #008080">16</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #008000">//</span><span style="color: #008000"> 榪囨護鎺塻et鎴愬憳鍙橀噺</span><span style="color: #008000"><br /> </span><span style="color: #008080">17</span><span style="color: #008000"><img id="Codehighlighter1_781_802_Open_Image" onclick="this.style.display='none'; Codehighlighter1_781_802_Open_Text.style.display='none'; Codehighlighter1_781_802_Closed_Image.style.display='inline'; Codehighlighter1_781_802_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_781_802_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_781_802_Closed_Text.style.display='none'; Codehighlighter1_781_802_Open_Image.style.display='inline'; Codehighlighter1_781_802_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /></span><span style="color: #000000">            </span><span style="color: #0000ff">if</span><span style="color: #000000"> (field.getType().equals(Set.</span><span style="color: #0000ff">class</span><span style="color: #000000">)) </span><span id="Codehighlighter1_781_802_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_781_802_Open_Text"><span style="color: #000000">{  <br /> </span><span style="color: #008080">18</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: #0000ff">continue</span><span style="color: #000000">;<br /> </span><span style="color: #008080">19</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />            }</span></span><span style="color: #000000"><br /> </span><span style="color: #008080">20</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #008000">//</span><span style="color: #008000"> 鎴愬憳鍙橀噺鏄疍ate</span><span style="color: #008000"><br /> </span><span style="color: #008080">21</span><span style="color: #008000"><img id="Codehighlighter1_863_1172_Open_Image" onclick="this.style.display='none'; Codehighlighter1_863_1172_Open_Text.style.display='none'; Codehighlighter1_863_1172_Closed_Image.style.display='inline'; Codehighlighter1_863_1172_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_863_1172_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_863_1172_Closed_Text.style.display='none'; Codehighlighter1_863_1172_Open_Image.style.display='inline'; Codehighlighter1_863_1172_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /></span><span style="color: #000000">            </span><span style="color: #0000ff">if</span><span style="color: #000000"> (field.getType().equals(Date.</span><span style="color: #0000ff">class</span><span style="color: #000000">)) </span><span id="Codehighlighter1_863_1172_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_863_1172_Open_Text"><span style="color: #000000">{<br /> </span><span style="color: #008080">22</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                Object invoke </span><span style="color: #000000">=</span><span style="color: #000000"> obj.getClass().getMethod(</span><span style="color: #000000">"</span><span style="color: #000000">get</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> StringUtils.capitalize(field.getName())).invoke(obj);<br /> </span><span style="color: #008080">23</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                String format </span><span style="color: #000000">=</span><span style="color: #000000"> DateFormat.getDateInstance(DateFormat.DEFAULT).format(invoke);<br /> </span><span style="color: #008080">24</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #008000">//</span><span style="color: #008000"> System.out.println(field.getName() + "===>" + format);</span><span style="color: #008000"><br /> </span><span style="color: #008080">25</span><span style="color: #008000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">                jobj.put(field.getName(), format);<br /> </span><span style="color: #008080">26</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: #0000ff">continue</span><span style="color: #000000">;<br /> </span><span style="color: #008080">27</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />            }</span></span><span style="color: #000000"><br /> </span><span style="color: #008080">28</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #008000">//</span><span style="color: #008000"> 鎴愬憳鍙橀噺鏄疊oolean</span><span style="color: #008000"><br /> </span><span style="color: #008080">29</span><span style="color: #008000"><img id="Codehighlighter1_1239_1375_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1239_1375_Open_Text.style.display='none'; Codehighlighter1_1239_1375_Closed_Image.style.display='inline'; Codehighlighter1_1239_1375_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1239_1375_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1239_1375_Closed_Text.style.display='none'; Codehighlighter1_1239_1375_Open_Image.style.display='inline'; Codehighlighter1_1239_1375_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /></span><span style="color: #000000">            </span><span style="color: #0000ff">if</span><span style="color: #000000"> (field.getType().equals(Boolean.</span><span style="color: #0000ff">class</span><span style="color: #000000">)) </span><span id="Codehighlighter1_1239_1375_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_1239_1375_Open_Text"><span style="color: #000000">{<br /> </span><span style="color: #008080">30</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                jobj.put(field.getName(), obj.getClass().getMethod(</span><span style="color: #000000">"</span><span style="color: #000000">is</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> StringUtils.capitalize(field.getName())).invoke(obj));<br /> </span><span style="color: #008080">31</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: #0000ff">continue</span><span style="color: #000000">;<br /> </span><span style="color: #008080">32</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />            }</span></span><span style="color: #000000"><br /> </span><span style="color: #008080">33</span><span style="color: #000000"><img id="Codehighlighter1_1385_1510_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1385_1510_Open_Text.style.display='none'; Codehighlighter1_1385_1510_Closed_Image.style.display='inline'; Codehighlighter1_1385_1510_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1385_1510_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1385_1510_Closed_Text.style.display='none'; Codehighlighter1_1385_1510_Open_Image.style.display='inline'; Codehighlighter1_1385_1510_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />                </span><span style="color: #0000ff">try</span><span style="color: #000000"> </span><span id="Codehighlighter1_1385_1510_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_1385_1510_Open_Text"><span style="color: #000000">{<br /> </span><span style="color: #008080">34</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                 jobj.put(field.getName(), obj.getClass().getMethod(</span><span style="color: #000000">"</span><span style="color: #000000">get</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> StringUtils.capitalize(field.getName())).invoke(obj));<br /> </span><span style="color: #008080">35</span><span style="color: #000000"><img id="Codehighlighter1_1532_1553_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1532_1553_Open_Text.style.display='none'; Codehighlighter1_1532_1553_Closed_Image.style.display='inline'; Codehighlighter1_1532_1553_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1532_1553_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1532_1553_Closed_Text.style.display='none'; Codehighlighter1_1532_1553_Open_Image.style.display='inline'; Codehighlighter1_1532_1553_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />                }</span></span><span style="color: #000000"> </span><span style="color: #0000ff">catch</span><span style="color: #000000"> (Exception e) </span><span id="Codehighlighter1_1532_1553_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_1532_1553_Open_Text"><span style="color: #000000">{<br /> </span><span style="color: #008080">36</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                    </span><span style="color: #0000ff">continue</span><span style="color: #000000">;<br /> </span><span style="color: #008080">37</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />                }</span></span><span style="color: #000000"><br /> </span><span style="color: #008080">38</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: #000000"><br /> </span><span style="color: #008080">39</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> jobj;<br /> </span><span style="color: #008080">40</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />    }</span></span></div> <br /> model杞瀷涓簀son鏁版嵁鏃訛紝鐢ㄤ簡鍙嶅皠瀵筸odel涓垚鍛樺彉閲忎負闆嗗悎(Set)銆丅oolean銆丏ate榪涜鐗規畩澶勭悊銆?br /> PS:json鏍煎紡  <br /> [{},<br /> {<font style="background-color: #cce8cf"> "name":"value", "name":"value", <br /> "children":[{  "name":"value",  "attributes":{  "url":"/do/postRequirement/postRequirementList"  }},{  "name":"value",  "attributes":{   "url":"/do/trainingPlan/trainingPlanList"  } }]<br /> </font>},<br /> {},{},{},{},{}]<br /> json鏁翠綋鏍煎紡涓篬{},{},{}]  ,鍐呴儴鏁版嵁涓烘鍩烘湰緇撴瀯鐨勫鍚堛倇}鍐呴儴鏈夐泦鍚堢粨鏋勶紝濡傦細children,涔熸槸浠]鏉ュ寘鍚傚唴閮ㄧ粨鏋勫悕縐版槸鑷畾鐨?涓漢鐞嗚В)銆?br /> <font style="background-color: #cce8cf">璇︾粏鏍煎紡錛?a >http://www.json.org/json-zh.html</a></font> <img src ="http://www.aygfsteel.com/Vanilla-Sky/aggbug/334679.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/Vanilla-Sky/" target="_blank">鏃犲敖嫻?/a> 2010-10-12 17:27 <a href="http://www.aygfsteel.com/Vanilla-Sky/archive/2010/10/12/334679.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">韩城市</a>| <a href="http://" target="_blank">湖州市</a>| <a href="http://" target="_blank">视频</a>| <a href="http://" target="_blank">石楼县</a>| <a href="http://" target="_blank">河北区</a>| <a href="http://" target="_blank">青海省</a>| <a href="http://" target="_blank">栾川县</a>| <a href="http://" target="_blank">青铜峡市</a>| <a href="http://" target="_blank">扬州市</a>| <a href="http://" target="_blank">新余市</a>| <a href="http://" target="_blank">漳州市</a>| <a href="http://" target="_blank">兰考县</a>| <a href="http://" target="_blank">定西市</a>| <a href="http://" target="_blank">北安市</a>| <a href="http://" target="_blank">瓦房店市</a>| <a href="http://" target="_blank">兴国县</a>| <a href="http://" target="_blank">响水县</a>| <a href="http://" target="_blank">迁安市</a>| <a href="http://" target="_blank">赤水市</a>| <a href="http://" target="_blank">五华县</a>| <a href="http://" target="_blank">南木林县</a>| <a href="http://" target="_blank">茶陵县</a>| <a href="http://" target="_blank">青浦区</a>| <a href="http://" target="_blank">香港 </a>| <a href="http://" target="_blank">仙居县</a>| <a href="http://" target="_blank">灵武市</a>| <a href="http://" target="_blank">若尔盖县</a>| <a href="http://" target="_blank">衡阳市</a>| <a href="http://" target="_blank">游戏</a>| <a href="http://" target="_blank">桂林市</a>| <a href="http://" target="_blank">和林格尔县</a>| <a href="http://" target="_blank">蒲城县</a>| <a href="http://" target="_blank">襄垣县</a>| <a href="http://" target="_blank">北碚区</a>| <a href="http://" target="_blank">白银市</a>| <a href="http://" target="_blank">淮北市</a>| <a href="http://" target="_blank">四会市</a>| <a href="http://" target="_blank">边坝县</a>| <a href="http://" target="_blank">西宁市</a>| <a href="http://" target="_blank">武清区</a>| <a href="http://" target="_blank">历史</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>