123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- <?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>영양검색판정기준표</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <data>
- <cddiv>PIBW(%)</cddiv>
- <good1/>
- <good2/>
- <good/>
- <low1/>
- <low2/>
- <low/>
- <mid1/>
- <mid2/>
- <mid/>
- <high1/>
- <high2/>
- <high/>
- </data>
- <data>
- <cddiv>Alb(g/dl)</cddiv>
- <good1/>
- <good2/>
- <good/>
- <low1/>
- <low2/>
- <low/>
- <mid1/>
- <mid2/>
- <mid/>
- <high1/>
- <high2/>
- <high/>
- </data>
- <data>
- <cddiv>TLC(cells/mm³)</cddiv>
- <good1/>
- <good2/>
- <good/>
- <low1/>
- <low2/>
- <low/>
- <mid1/>
- <mid2/>
- <mid/>
- <high1/>
- <high2/>
- <high/>
- </data>
- <receivedata/>
- </main>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fopensearch();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fopensearch() {
- //항목별,위험도별로 최저값과 최고값을 hidden 컬럼에 setting
- for ( i=1; i<13; i++ ) {
- var cd = model.getValue("/root/main/receivedata/data[" + i + "]/cd"); //항목코드
- var dngrcd = model.getValue("/root/main/receivedata/data[" + i + "]/dngrcd"); //위험수준코드
- var min = model.getValue("/root/main/receivedata/data[" + i + "]/min"); //최저값
- var max = model.getValue("/root/main/receivedata/data[" + i + "]/max"); //최고값
-
- //PIBW 일 경우
- if ( cd == 1 ) {
- if ( dngrcd == 1 ) { //양호
- min = min.toString().getRound(-1, "DOWN");
- model.setValue("/root/main/data[1]/good", "≥" + min);
- } else if ( dngrcd == 2 ) { //저위험
- min = min.toString().getRound(-1, "DOWN");
- max = max.toString().getRound(-1, "DOWN");
- model.setValue("/root/main/data[1]/low", min + " ~ " + max);
- } else if ( dngrcd == 3 ) { //중위험
- min = min.toString().getRound(-1, "DOWN");
- max = max.toString().getRound(-1, "DOWN");
- model.setValue("/root/main/data[1]/mid", min + " ~ " + max);
- } else if ( dngrcd == 4 ) { //고위험
- max = max.toString().getRound(-1, "DOWN");
- model.setValue("/root/main/data[1]/high", "< " + max);
- }
- }
-
- //Alb 일 경우
- else if ( cd == 2 ) {
- if ( dngrcd == 1 ) { //양호
- model.setValue("/root/main/data[2]/good", "≥" + min);
- } else if ( dngrcd == 2 ) { //저위험
- model.setValue("/root/main/data[2]/low", min + " ~ " + max);
- } else if ( dngrcd == 3 ) { //중위험
- model.setValue("/root/main/data[2]/mid", min + " ~ " + max);
- } else if ( dngrcd == 4 ) { //고위험
- model.setValue("/root/main/data[2]/high", "< " + max);
- }
- }
- //TLC 일 경우
- else if ( cd == 3 ) {
- if ( dngrcd == 1 ) { //양호
- min = min.toString().getRound(-1, "DOWN");
- model.setValue("/root/main/data[3]/good", "≥" + min);
- } else if ( dngrcd == 2 ) { //저위험
- min = min.toString().getRound(-1, "DOWN");
- max = max.toString().getRound(-1, "DOWN");
- model.setValue("/root/main/data[3]/low", min + " ~ " + max);
- } else if ( dngrcd == 3 ) { //중위험
- min = min.toString().getRound(-1, "DOWN");
- max = max.toString().getRound(-1, "DOWN");
- model.setValue("/root/main/data[3]/mid", min + " ~ " + max);
- } else if ( dngrcd == 4 ) { //고위험
- max = max.toString().getRound(-1, "DOWN");
- model.setValue("/root/main/data[3]/high", "< " + max);
- }
- }
- }
-
- model.refresh();
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="600" pageheight="343" guideline="2,13;1,1194;2,784;2,757;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <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:140px; height:13px; ">영양검색판정기준표</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:500px; y2:26px; "/>
- <datagrid id="grd_data" nodeset="/root/main/data" caption="^good1^good2^양호^low1^low2^저위험도^mid1^mid2^중위험도^high1^high2^고위험도" colsep="^" colwidth="102, 10, 10, 89, 10, 10, 90, 10, 10, 90, 10, 10, 90" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:31px; width:500px; height:269px; text-align:center; ">
- <col ref="cddiv"/>
- <col ref="good1" visibility="hidden"/>
- <col ref="good2" visibility="hidden"/>
- <col ref="good"/>
- <col ref="low1" visibility="hidden"/>
- <col ref="low2" visibility="hidden"/>
- <col ref="low"/>
- <col ref="mid1" visibility="hidden"/>
- <col ref="mid2" visibility="hidden"/>
- <col ref="mid"/>
- <col ref="high1" visibility="hidden"/>
- <col ref="high2" visibility="hidden"/>
- <col ref="high"/>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:306px; width:501px; height:27px; ">
- <button id="btn_close" class="btn4_letter2" style="left:444px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|