SMMMO99999_속도테스트페이지.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>Test</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <input1/>
  11. <input2/>
  12. <input3/>
  13. <tf>
  14. <result/>
  15. </tf>
  16. <java>
  17. <result/>
  18. </java>
  19. <send>
  20. <reqdata>
  21. <input1/>
  22. <input2/>
  23. <input3/>
  24. </reqdata>
  25. </send>
  26. <value1>test</value1>
  27. <value2/>
  28. <multi>
  29. <tf>
  30. <index>
  31. <value0/>
  32. <value1/>
  33. <value2/>
  34. <value3/>
  35. <value4/>
  36. <value5/>
  37. <value6/>
  38. <value7/>
  39. <value8/>
  40. <value9/>
  41. <value10/>
  42. </index>
  43. </tf>
  44. <java>
  45. <index>
  46. <value0/>
  47. <value1/>
  48. <value2/>
  49. <value3/>
  50. <value4/>
  51. <value5/>
  52. <value6/>
  53. <value7/>
  54. <value8/>
  55. <value9/>
  56. <value10/>
  57. </index>
  58. <result>
  59. <time/>
  60. </result>
  61. </java>
  62. <send>
  63. <input1>9</input1>
  64. <input2/>
  65. </send>
  66. <result>
  67. <time1/>
  68. </result>
  69. </multi>
  70. </main>
  71. </root>
  72. </instance>
  73. <script type="javascript" ev:event="xforms-ready">
  74. <![CDATA[
  75. model.setValue("/root/main/input1","1000");
  76. model.setValue("/root/main/input2","1000");
  77. model.setValue("/root/main/input3","100");
  78. model.refresh();
  79. ]]>
  80. </script>
  81. <submission id="TRTST00002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/send/reqdata" resultref="/root/main/java"/>
  82. <submission id="TRTST00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/multi/send/input1" resultref="/root/main/multi/java"/>
  83. </model>
  84. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  89. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  90. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  91. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  92. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  93. <script type="javascript">
  94. <![CDATA[
  95. function fProcessing_tf(){
  96. var before_time = "";
  97. var after_time = ""
  98. var input1 = model.getValue("/root/main/input1");
  99. var input2 = model.getValue("/root/main/input2");
  100. var input3 = model.getValue("/root/main/input3");
  101. var total = 0;
  102. var subtime = "";
  103. var total_time = 0;
  104. before_time = getCurrentTime();
  105. for(var i=1; i<=input3; i++){
  106. for(var j=1;j<=input2;j++){
  107. for(var z=1;z<=input1;z++){
  108. total++;
  109. //model.setValue("/root/main/value2",model.getValue("/root/main/value1"));
  110. }
  111. }
  112. }
  113. after_time = getCurrentTime();
  114. subtime = getTimeInterval(before_time, after_time);
  115. total_time = eval(total_time + subtime);
  116. model.setValue("/root/main/tf/result", subtime.toString().getLeftPad(6,"0"));
  117. model.refresh();
  118. }
  119. function fProcessing_java(){
  120. model.setValue("/root/main/send/reqdata/input1", model.getValue("/root/main/input1"));
  121. model.setValue("/root/main/send/reqdata/input2", model.getValue("/root/main/input2"));
  122. model.setValue("/root/main/send/reqdata/input3", model.getValue("/root/main/input3"));
  123. model.refresh();
  124. submit("TRTST00002");
  125. }
  126. function fMultiplication_java(){
  127. model.setValue("/root/main/send/reqdata/input1", model.getValue("/root/main/multi/send/input1"));
  128. model.refresh();
  129. submit("TRTST00001");
  130. }
  131. function fMultiplication_tf(){
  132. var maxnum = model.getValue("/root/main/multi/send/input1");
  133. var before_time = "";
  134. var after_time = ""
  135. before_time = getCurrentTime();
  136. for(var i=1; i<=maxnum; i++){
  137. for(j = 0; j<=10; j++){
  138. model.makeNode("/root/main/multi/tf/index["+i+"]/value"+j);
  139. }
  140. }
  141. for(var i = 1; i<=maxnum; i++){
  142. model.setValue("/root/main/multi/tf/index["+i+"]/value0", i);
  143. for(j = 1; j<=10; j++){
  144. model.setValue("/root/main/multi/tf/index["+i+"]/value"+j,eval(i*j));
  145. }
  146. }
  147. datagrid_tf.rebuild();
  148. after_time = getCurrentTime();
  149. subtime = getTimeInterval(before_time, after_time);
  150. model.setValue("/root/main/multi/result/time1", subtime.toString().getLeftPad(6,"0"));
  151. model.refresh();
  152. }
  153. ]]>
  154. </script>
  155. </xhtml:head>
  156. <xhtml:body pagewidth="650" pageheight="550" guideline="1,1193;1,1298;" style="background-color:#ffffff; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  157. <button id="button1" class="btn2_letter4" style="left:170px; top:80px; width:64px; height:19px; ">
  158. <caption>속도체크</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. fProcessing_tf();
  162. ]]>
  163. </script>
  164. </button>
  165. <caption id="caption1" class="tit_1" style="left:45px; top:45px; width:100px; height:20px; ">속도테스트</caption>
  166. <input id="input1" ref="/root/main/input1" class="input_search" style="left:90px; top:55px; width:100px; height:19px; "/>
  167. <input id="input2" ref="/root/main/input2" class="input_search" style="left:195px; top:55px; width:100px; height:19px; "/>
  168. <input id="input3" ref="/root/main/input3" class="input_search" disabled="false" style="left:300px; top:55px; width:100px; height:19px; "/>
  169. <caption id="caption3" class="cell_1" style="left:15px; top:105px; width:110px; height:20px; ">경과시간</caption>
  170. <output id="output2" ref="/root/main/tf/result" class="output_fix" format="hh:nn:ss" style="left:135px; top:105px; width:100px; height:19px; "/>
  171. <caption id="caption20" class="cell_1" style="left:255px; top:105px; width:110px; height:20px; ">경과시간</caption>
  172. <output id="output26" ref="/root/main/java/result" class="output_fix" format="hh:nn:ss" style="left:375px; top:105px; width:100px; height:19px; "/>
  173. <caption id="caption4" class="tit_2" style="left:15px; top:85px; width:35px; height:13px; ">TF</caption>
  174. <caption id="caption2" class="tit_2" style="left:250px; top:85px; width:60px; height:13px; ">JAVA</caption>
  175. <button id="button2" class="btn2_letter4" style="left:405px; top:80px; width:64px; height:19px; ">
  176. <caption>속도체크</caption>
  177. <script type="javascript" ev:event="DOMActivate">
  178. <![CDATA[
  179. fProcessing_java();
  180. ]]>
  181. </script>
  182. </button>
  183. <button id="button3" class="btn2_letter7" visibility="hidden" style="left:520px; top:25px; width:97px; height:19px; ">
  184. <caption>처방속도테스트</caption>
  185. <script type="javascript" ev:event="DOMActivate">
  186. <![CDATA[
  187. modal("SMMMO99998");
  188. ]]>
  189. </script>
  190. </button>
  191. <line id="line1" class="line_2" style="x1:15px; y1:45px; x2:625px; y2:45px; font-weight:bold; "/>
  192. <caption id="caption5" style="left:15px; top:25px; width:130px; height:20px; font-size:11pt; font-weight:bold; ">단순 3중 For 문</caption>
  193. <line id="line3" class="line_2" style="x1:15px; y1:175px; x2:620px; y2:175px; "/>
  194. <caption id="caption6" style="left:20px; top:155px; width:90px; height:20px; font-size:11pt; font-weight:bold; ">구구단 출력</caption>
  195. <datagrid id="datagrid_tf" nodeset="/root/main/multi/tf/index" caption="^1^2^3^4^5^6^7^8^9^10" colsep="^" colwidth="30, 40, 40,40,40,40,40,40,40,40,40" mergecellsfixedrows="bycolrec" rowsep="|" style="left:20px; top:210px; width:470px; height:155px; ">
  196. <col ref="value0" style="font-weight:bold; "/>
  197. <col ref="value1"/>
  198. <col ref="value2"/>
  199. <col ref="value3"/>
  200. <col ref="value4"/>
  201. <col ref="value5"/>
  202. <col ref="value6"/>
  203. <col ref="value7"/>
  204. <col ref="value8"/>
  205. <col ref="value9"/>
  206. <col ref="value10"/>
  207. </datagrid>
  208. <datagrid id="datagrid_java" nodeset="/root/main/multi/java/index" caption="^1^2^3^4^5^6^7^8^9^10" colsep="^" colwidth="30, 40, 40,40,40,40,40,40,40,40,40" mergecellsfixedrows="bycolrec" rowsep="|" style="left:20px; top:375px; width:470px; height:155px; ">
  209. <col ref="value0" style="font-weight:bold; "/>
  210. <col ref="value1"/>
  211. <col ref="value2"/>
  212. <col ref="value3"/>
  213. <col ref="value4"/>
  214. <col ref="value5"/>
  215. <col ref="value6"/>
  216. <col ref="value7"/>
  217. <col ref="value8"/>
  218. <col ref="value9"/>
  219. <col ref="value10"/>
  220. </datagrid>
  221. <caption id="caption7" class="cell_1" style="left:495px; top:320px; width:100px; height:20px; ">경과시간</caption>
  222. <output id="output1" ref="/root/main/multi/result/time1" class="output_fix" format="hh:nn:ss" style="left:495px; top:345px; width:100px; height:19px; "/>
  223. <caption id="caption8" class="cell_1" style="left:495px; top:485px; width:100px; height:20px; ">경과시간</caption>
  224. <output id="output3" ref="/root/main/multi/java/result/time" class="output_fix" format="hh:nn:ss" style="left:495px; top:510px; width:100px; height:19px; "/>
  225. <button id="button4" class="btn2_letter4" style="left:495px; top:230px; width:64px; height:19px; ">
  226. <caption>속도체크</caption>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. fMultiplication_tf();
  230. ]]>
  231. </script>
  232. </button>
  233. <button id="button5" class="btn2_letter4" style="left:495px; top:395px; width:64px; height:19px; ">
  234. <caption>속도체크</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. fMultiplication_java();
  238. ]]>
  239. </script>
  240. </button>
  241. <caption id="caption9" class="tit_2" style="left:495px; top:380px; width:60px; height:13px; ">JAVA</caption>
  242. <caption id="caption10" class="tit_2" style="left:495px; top:215px; width:35px; height:13px; ">TF</caption>
  243. <input id="input4" ref="/root/main/multi/send/input1" style="left:20px; top:180px; width:60px; height:19px; "/>
  244. </xhtml:body>
  245. </xhtml:html>