123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>Test</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <input1/>
- <input2/>
- <input3/>
- <tf>
- <result/>
- </tf>
- <java>
- <result/>
- </java>
- <send>
- <reqdata>
- <input1/>
- <input2/>
- <input3/>
- </reqdata>
- </send>
- <value1>test</value1>
- <value2/>
- <multi>
- <tf>
- <index>
- <value0/>
- <value1/>
- <value2/>
- <value3/>
- <value4/>
- <value5/>
- <value6/>
- <value7/>
- <value8/>
- <value9/>
- <value10/>
- </index>
- </tf>
- <java>
- <index>
- <value0/>
- <value1/>
- <value2/>
- <value3/>
- <value4/>
- <value5/>
- <value6/>
- <value7/>
- <value8/>
- <value9/>
- <value10/>
- </index>
- <result>
- <time/>
- </result>
- </java>
- <send>
- <input1>9</input1>
- <input2/>
- </send>
- <result>
- <time1/>
- </result>
- </multi>
- </main>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/main/input1","1000");
- model.setValue("/root/main/input2","1000");
- model.setValue("/root/main/input3","100");
- model.refresh();
- ]]>
- </script>
- <submission id="TRTST00002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/send/reqdata" resultref="/root/main/java"/>
- <submission id="TRTST00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/multi/send/input1" resultref="/root/main/multi/java"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript">
- <![CDATA[
- function fProcessing_tf(){
- var before_time = "";
- var after_time = ""
-
- var input1 = model.getValue("/root/main/input1");
- var input2 = model.getValue("/root/main/input2");
- var input3 = model.getValue("/root/main/input3");
-
- var total = 0;
- var subtime = "";
- var total_time = 0;
-
- before_time = getCurrentTime();
- for(var i=1; i<=input3; i++){
- for(var j=1;j<=input2;j++){
- for(var z=1;z<=input1;z++){
- total++;
- //model.setValue("/root/main/value2",model.getValue("/root/main/value1"));
- }
- }
- }
- after_time = getCurrentTime();
-
- subtime = getTimeInterval(before_time, after_time);
-
- total_time = eval(total_time + subtime);
-
- model.setValue("/root/main/tf/result", subtime.toString().getLeftPad(6,"0"));
-
- model.refresh();
- }
-
- function fProcessing_java(){
-
- model.setValue("/root/main/send/reqdata/input1", model.getValue("/root/main/input1"));
- model.setValue("/root/main/send/reqdata/input2", model.getValue("/root/main/input2"));
- model.setValue("/root/main/send/reqdata/input3", model.getValue("/root/main/input3"));
- model.refresh();
-
- submit("TRTST00002");
- }
-
- function fMultiplication_java(){
-
- model.setValue("/root/main/send/reqdata/input1", model.getValue("/root/main/multi/send/input1"));
- model.refresh();
-
- submit("TRTST00001");
- }
-
- function fMultiplication_tf(){
-
- var maxnum = model.getValue("/root/main/multi/send/input1");
- var before_time = "";
- var after_time = ""
-
- before_time = getCurrentTime();
-
- for(var i=1; i<=maxnum; i++){
- for(j = 0; j<=10; j++){
- model.makeNode("/root/main/multi/tf/index["+i+"]/value"+j);
- }
- }
-
- for(var i = 1; i<=maxnum; i++){
- model.setValue("/root/main/multi/tf/index["+i+"]/value0", i);
- for(j = 1; j<=10; j++){
- model.setValue("/root/main/multi/tf/index["+i+"]/value"+j,eval(i*j));
- }
- }
-
- datagrid_tf.rebuild();
-
- after_time = getCurrentTime();
-
- subtime = getTimeInterval(before_time, after_time);
-
- model.setValue("/root/main/multi/result/time1", subtime.toString().getLeftPad(6,"0"));
-
- model.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <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; ">
- <button id="button1" class="btn2_letter4" style="left:170px; top:80px; width:64px; height:19px; ">
- <caption>속도체크</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fProcessing_tf();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_1" style="left:45px; top:45px; width:100px; height:20px; ">속도테스트</caption>
- <input id="input1" ref="/root/main/input1" class="input_search" style="left:90px; top:55px; width:100px; height:19px; "/>
- <input id="input2" ref="/root/main/input2" class="input_search" style="left:195px; top:55px; width:100px; height:19px; "/>
- <input id="input3" ref="/root/main/input3" class="input_search" disabled="false" style="left:300px; top:55px; width:100px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:15px; top:105px; width:110px; height:20px; ">경과시간</caption>
- <output id="output2" ref="/root/main/tf/result" class="output_fix" format="hh:nn:ss" style="left:135px; top:105px; width:100px; height:19px; "/>
- <caption id="caption20" class="cell_1" style="left:255px; top:105px; width:110px; height:20px; ">경과시간</caption>
- <output id="output26" ref="/root/main/java/result" class="output_fix" format="hh:nn:ss" style="left:375px; top:105px; width:100px; height:19px; "/>
- <caption id="caption4" class="tit_2" style="left:15px; top:85px; width:35px; height:13px; ">TF</caption>
- <caption id="caption2" class="tit_2" style="left:250px; top:85px; width:60px; height:13px; ">JAVA</caption>
- <button id="button2" class="btn2_letter4" style="left:405px; top:80px; width:64px; height:19px; ">
- <caption>속도체크</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fProcessing_java();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter7" visibility="hidden" style="left:520px; top:25px; width:97px; height:19px; ">
- <caption>처방속도테스트</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMMMO99998");
- ]]>
- </script>
- </button>
- <line id="line1" class="line_2" style="x1:15px; y1:45px; x2:625px; y2:45px; font-weight:bold; "/>
- <caption id="caption5" style="left:15px; top:25px; width:130px; height:20px; font-size:11pt; font-weight:bold; ">단순 3중 For 문</caption>
- <line id="line3" class="line_2" style="x1:15px; y1:175px; x2:620px; y2:175px; "/>
- <caption id="caption6" style="left:20px; top:155px; width:90px; height:20px; font-size:11pt; font-weight:bold; ">구구단 출력</caption>
- <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; ">
- <col ref="value0" style="font-weight:bold; "/>
- <col ref="value1"/>
- <col ref="value2"/>
- <col ref="value3"/>
- <col ref="value4"/>
- <col ref="value5"/>
- <col ref="value6"/>
- <col ref="value7"/>
- <col ref="value8"/>
- <col ref="value9"/>
- <col ref="value10"/>
- </datagrid>
- <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; ">
- <col ref="value0" style="font-weight:bold; "/>
- <col ref="value1"/>
- <col ref="value2"/>
- <col ref="value3"/>
- <col ref="value4"/>
- <col ref="value5"/>
- <col ref="value6"/>
- <col ref="value7"/>
- <col ref="value8"/>
- <col ref="value9"/>
- <col ref="value10"/>
- </datagrid>
- <caption id="caption7" class="cell_1" style="left:495px; top:320px; width:100px; height:20px; ">경과시간</caption>
- <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; "/>
- <caption id="caption8" class="cell_1" style="left:495px; top:485px; width:100px; height:20px; ">경과시간</caption>
- <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; "/>
- <button id="button4" class="btn2_letter4" style="left:495px; top:230px; width:64px; height:19px; ">
- <caption>속도체크</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fMultiplication_tf();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter4" style="left:495px; top:395px; width:64px; height:19px; ">
- <caption>속도체크</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fMultiplication_java();
- ]]>
- </script>
- </button>
- <caption id="caption9" class="tit_2" style="left:495px; top:380px; width:60px; height:13px; ">JAVA</caption>
- <caption id="caption10" class="tit_2" style="left:495px; top:215px; width:35px; height:13px; ">TF</caption>
- <input id="input4" ref="/root/main/multi/send/input1" style="left:20px; top:180px; width:60px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|