123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>Nutrition Lab</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- </main>
- <init>
- <chk1/>
- <chk2/>
- <chk3/>
- <chk4/>
- <chk5/>
- <chk6/>
- <chk7/>
- <text1/>
- <radio1/>
- <returnstr/>
- <text2/>
- </init>
- <hidden>
- <checkvalue>
- <label/>
- <value/>
- </checkvalue>
- <receiveref>
- <path/>
- <path2/>
- <nutritionlab/>
- <nutritionlabchk/>
- </receiveref>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.setValue("/root/init/returnstr", model.getValue("/root/hidden/receiveref/nutritionlab"));
- var nutritionlabData5="" ;
- var nutritionlabData= model.getValue("/root/hidden/receiveref/nutritionlabchk").split(",")
- for(var i = 0; i <= nutritionlabData.length; ++i) {
- if (nutritionlabData[i] == "1" ) model.setValue("/root/init/chk1", nutritionlabData[i]);
- if (nutritionlabData[i] == "2" ) model.setValue("/root/init/chk2", nutritionlabData[i]);
- if (nutritionlabData[i] == "3" ) model.setValue("/root/init/chk3", nutritionlabData[i]);
- if (nutritionlabData[i] =="10") model.setValue("/root/init/chk4", nutritionlabData[i]);
- if (nutritionlabData[i] >= "4" && nutritionlabData[i] <= "9" ) {
- if (nutritionlabData5 =="") nutritionlabData5 += nutritionlabData[i];
- else nutritionlabData5 += "," + nutritionlabData[i];
- }
- }
-
- if (nutritionlabData5 !="") model.setValue("/root/init/chk5", nutritionlabData5);
-
- //makeReturnStr();
-
- model.refresh();
- ]]>
- </script>
- </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">
- <![CDATA[
-
- function makeReturnStr(){
- var cnt = "1";
-
- model.setValue("/root/init/returnstr", "");
- var returnstr = "";
-
- if(model.getValue("/root/init/chk1") == "1")
- {
- if(returnstr != "") {
- cnt++;
- returnstr += "\n";
- }
- returnstr += cnt+") ";
- returnstr = returnstr + caption2.value;
- }
-
- if(model.getValue("/root/init/chk2") == "2")
- {
- if(returnstr != "") {
- cnt++;
- returnstr += "\n";
- }
- returnstr += cnt+") ";
- returnstr = returnstr + caption3.value;
- }
- if(model.getValue("/root/init/chk3") == "3")
- {
- if(checkbox5.value != ""){
- if(returnstr != "") {
- cnt++;
- returnstr += "\n";
- }
- returnstr += cnt+") ";
- returnstr = returnstr + caption4.value + "\n";
- returnstr += checkbox5.label;
- }
-
- }
- if(model.getValue("/root/init/chk4") == "10")
- {
- if(returnstr != "") {
- cnt++;
- returnstr += "\n";
- }
- returnstr += cnt+") ";
- returnstr = returnstr + caption5.value;
- }
- model.setValue("/root/init/returnstr", returnstr);
- //2010-01-14 기존 Check된 내용을 그대로 check.
- var nutritionlabchk="";
- if (model.getValue("/root/init/chk1") !="") nutritionlabchk += model.getValue("/root/init/chk1") + ",";
- if (model.getValue("/root/init/chk2") !="") nutritionlabchk += model.getValue("/root/init/chk2") + ",";
- if (model.getValue("/root/init/chk3") !="") nutritionlabchk += model.getValue("/root/init/chk3") + ",";
- if (model.getValue("/root/init/chk4") !="") nutritionlabchk += model.getValue("/root/init/chk4") + ",";
- if (model.getValue("/root/init/chk5") !="") nutritionlabchk += model.getValue("/root/init/chk5") ;
- model.makeValue("/root/hidden/receiveref/nutritionlabchk", nutritionlabchk);
-
- model.refresh();
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="530" sep="," pageheight="380" guideline="1,1194;2,784;2,757;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:501px; height:306px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:11px; width:110px; height:14px; ">Nutrition Lab</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:500px; y2:26px; "/>
- <textarea id="textarea4" ref="/root/init/returnstr" appearance="textarea" style="left:5px; top:205px; width:490px; height:95px; "/>
- <select id="checkbox1" ref="/root/init/chk1" overflow="visible" appearance="full" style="left:5px; top:35px; width:20px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- makeReturnStr();
- ]]>
- </script>
- </select>
- <caption id="caption2" style="left:25px; top:35px; width:70px; height:20px; ">
- <![CDATA[체중 주 1회]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(checkbox1.value != ""){
- checkbox1.value = "";
- }else{
- checkbox1.value = 1;
- }
- checkbox1.dispatch("xforms-value-changed");
- ]]>
- </script>
- </caption>
- <select id="checkbox2" ref="/root/init/chk2" overflow="visible" appearance="full" style="left:5px; top:60px; width:20px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- makeReturnStr();
- ]]>
- </script>
- </select>
- <caption id="caption3" style="left:25px; top:60px; width:164px; height:20px; ">
- <![CDATA[Eyetone BS g 6hr (for 3days)]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(checkbox2.value != ""){
- checkbox2.value = "";
- }else{
- checkbox2.value = 2;
- }
- checkbox2.dispatch("xforms-value-changed");
- ]]>
- </script>
- </caption>
- <caption id="caption4" style="left:25px; top:87px; width:185px; height:15px; ">
- <![CDATA[주 2회(첫 2주동안), 주 1회(계속)]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(checkbox3.value != ""){
- checkbox3.value = "";
- }else{
- checkbox3.value = 3;
- }
- checkbox3.dispatch("xforms-value-changed");
- ]]>
- </script>
- </caption>
- <select id="checkbox4" ref="/root/init/chk4" overflow="visible" appearance="full" style="left:5px; top:180px; width:20px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>10</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- makeReturnStr();
- ]]>
- </script>
- </select>
- <caption id="caption5" style="left:25px; top:180px; width:130px; height:20px; ">
- <![CDATA[lsolator Culture 주 1회]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(checkbox4.value != ""){
- checkbox4.value = "";
- }else{
- checkbox4.value = 10;
- }
- checkbox4.dispatch("xforms-value-changed");
- ]]>
- </script>
- </caption>
- <select id="checkbox5" ref="/root/init/chk5" overflow="visible" appearance="full" cols="2" sep="," vcellspacing="5" style="left:30px; top:105px; width:455px; height:70px; border-style:none; ">
- <choices>
- <item>
- <label>CBC</label>
- <value>4</value>
- </item>
- <item>
- <label>FBS, BUN/Scr, OT/PT/Alk-P.cpk</label>
- <value>5</value>
- </item>
- <item>
- <label>Na/K/Cl, Ca/P/Mg</label>
- <value>6</value>
- </item>
- <item>
- <label>Pr/Alb, TRF, RBP, Prealbumine</label>
- <value>7</value>
- </item>
- <item>
- <label>Chol/TG</label>
- <value>8</value>
- </item>
- <item>
- <label>
- <![CDATA[24hr Urine Urea & Cr]]>
- </label>
- <value>9</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(checkbox5.value != ""){
- checkbox3.value = 3;
- }else{
- checkbox3.value = "";
- }
- makeReturnStr();
- ]]>
- </script>
- </select>
- <select id="checkbox3" ref="/root/init/chk3" overflow="visible" appearance="full" style="left:5px; top:85px; width:20px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(checkbox3.value == ""){
- checkbox5.value = "";
- }
- makeReturnStr();
- ]]>
- </script>
- </select>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:306px; width:501px; height:27px; ">
- <button id="btn_cls" class="btn4_letter2" style="left:444px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <button id="btn_cfm" class="btn4_letter2" style="left:385px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( checkOpener() ) {
- var receiveref = model.getValue("/root/hidden/receiveref/path");
- var receiveref2 = model.getValue("/root/hidden/receiveref/path2");
- opener.model.setValue(receiveref , textarea4.value);
- opener.model.setValue(receiveref2 , model.getValue("/root/hidden/receiveref/nutritionlabchk"));
- opener.model.refresh();
- window.close();
- } else {
- alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|