123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLMR90200_소견등록.xrw
- * 설 명 : 환자특이사항 관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 조철형
- * 작 성 일 : 2007.06.22
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <main>
- <cmt>
- <testcontcd/>
- <testcont/>
- <cmtrsltstat/>
- <bcno/>
- <sectcd/>
- <tsectcd/>
- <testcontcdnm/>
- </cmt>
- </main>
- <send>
- <data1/>
- <codeflag/>
- </send>
- <init>
- </init>
- <hidden>
- <add>1</add>
- <newline>1</newline>
- <refflag>
- <searchtext/>
- <searchflag>1</searchflag>
- <testlrgkind>M</testlrgkind>
- <rsltstat/>
- <bcno/>
- <testcont/>
- <testcontcd/>
- <p_isedit/>
- </refflag>
- </hidden>
- </root>
- </instance>
- <script src="../../../com/commonweb/js/common.js" type="javascript"/>
- <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/numericHelper.js" type="javascript"/>
- <script src="../../../lis/commonweb/js/LLZ001.js" type="javascript"/>
- <script ev:event="xforms-ready" type="javascript">
- <![CDATA[
- init();
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function init(){
- var vIsedit = opener.model.getValue("/root/hidden/refflag/p_isedit");
- var vCmtpcd = opener.model.getValue("/root/main/TestInfo/getSpcInfo/testcontcd");
- var vCmtp = opener.model.getValue("/root/main/TestInfo/getSpcInfo/testcont");
- var vCmtprstflag = opener.model.getValue("/root/main/TestInfo/getSpcInfo/cmtrsltstat");
- var vBcno = opener.model.getValue("/root/main/TestInfo/getSpcInfo/bcno");
- var vSectcd = opener.model.getValue("/root/main/TestInfo/getSpcInfo/sectcd");
- var vTsectcd = opener.model.getValue("/root/main/TestInfo/getSpcInfo/tsectcd");
-
- model.setvalue("/root/hidden/refflag/p_isedit", vIsedit);
-
- model.setvalue("/root/main/cmt/testcontcd","");
- model.setvalue("/root/main/cmt/testcont", vCmtp);
- model.setvalue("/root/main/cmt/cmtrsltstat", vCmtprstflag);
- model.setvalue("/root/main/cmt/bcno",vBcno);
- model.setvalue("/root/main/cmt/sectcd",vSectcd);
- model.setvalue("/root/main/cmt/tsectcd", vTsectcd);
-
- model.setvalue("/root/hidden/add", "1");
- model.setvalue("/root/hidden/newline", "1");
-
-
- fBaseInfoRef("0210|");
-
-
- combo1.choices.itemset.attribute("nodeset")="/root/init/LB0210[cd='00' or (etc01='" + "M" + "'and etc02='" + vTsectcd + "')]" ;
-
- model.refresh();
- }
-
- function fCmtCombo(){
-
- var curCmptcd = model.getValue("/root/main/cmt/testcontcd");
- var vSectcd = model.getValue("/root/main/cmt/sectcd");
- var vTsectcd = model.getValue("/root/main/cmt/tsectcd");
-
- //alert(curCmptcd);
- //alert(vSectcd);
- //alert(vTsectcd);
-
- //var cmtcont = model.getValue("/root/Init/LB0210[cd='" + s + "' and etc01='" + vSectcd + "' and etc02='" + vTsectcd + "']/etc03");
- var newCmt = model.getValue("/root/init/LB0210[cd='" + curCmptcd + "' and etc01='" + vSectcd + "' and etc02='" + vTsectcd + "']/etc03");
-
- //var cmtcont = "";
- //alert(newCmt);
- if (model.getValue("/root/hidden/add") == "1") {
- var crlf = (model.getValue("/root/hidden/newline") == "1") ? "\n" : "";
- model.setvalue("/root/main/cmt/testcont", model.getValue("/root/main/cmt/testcont") + crlf + newCmt);
- } else {
- model.setvalue("/root/main/cmt/testcont", newCmt);
- }
-
- model.refresh();
- fCMT_SetEditFlag()
-
- }
-
- // 입력버튼 클릭
- function fSelect_Click() {
-
- var vIsedit = model.getValue("/root/hidden/refflag/p_isedit");
- var vCmtpcd = model.getValue("/root/main/cmt/testcontcd");
- var vCmtp = model.getValue("/root/main/cmt/testcont");
- opener.model.setvalue("/root/hidden/refflag/p_isedit", vIsedit);
- opener.model.setvalue("/root/main/TestInfo/getSpcInfo/testcontcd", vCmtpcd);
- opener.model.setvalue("/root/main/TestInfo/getSpcInfo/testcont", vCmtp);
- window.close();
- }
-
-
- function fCMT_SetEditFlag() {
- model.setvalue("/root/hidden/refflag/p_isedit", "true");
-
- }
-
- function fCmtFind(){
- if (event.keyCode == 13) {
- var s = model.getValue("/root/main/cmt/testcontcd");
- var vSectcd = model.getValue("/root/main/cmt/sectcd");
- var vTsectcd = model.getValue("/root/main/cmt/tsectcd");
- var cmtcont = "";//model.getValue("/root/Inita/LB0210[cd='" + s + "' and etc01='" + vSectcd + "' and etc02='" + vTsectcd + "']/etc03");
-
- if (cmtcont == "") {
- model.setvalue("/root/MainData/cmtpcd", "-");
- }
- fCmtCombo();
-
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="440" pageheight="300" guideline="1,1194;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:415px; height:275px; ">
- <caption id="caption2" class="tit_2" style="left:5px; top:11px; width:100px; height:14px; ">소견등록</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:31px; width:72px; height:23px; vertical-align:middle; ">특이사항</caption>
- <button id="button9" class="btn4_letter2" style="left:359px; top:250px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script ev:event="onclick" type="javascript">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:26px; x2:415px; y2:26px; "/>
- <input id="input2" ref="/root/main/cmt/testcontcdnm" class="input_default" visibility="hidden" style="left:90px; top:2px; width:55px; height:19px; ">
- <script ev:event="onkeypress" type="javascript">
- <![CDATA[
- fCmtFind();
- ]]>
- </script>
- </input>
- <caption id="caption4" class="cell_1" style="left:0px; top:31px; width:72px; height:23px; ">소견코드</caption>
- <line id="line4" class="line_3" style="x1:0px; y1:53px; x2:415px; y2:53px; "/>
- <select1 id="combo1" ref="/root/main/cmt/testcontcd" class="combo_default" appearance="minimal" style="left:75px; top:32px; width:340px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0210">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script ev:event="xforms-select" type="javascript">
- <![CDATA[
- fCmtCombo();
- ]]>
- </script>
- </select1>
- <button id="btn_cfm" class="btn4_letter2" style="left:301px; top:250px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script ev:event="onclick" type="javascript">
- <![CDATA[
- fSelect_Click();
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/hidden/add" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:299px; top:10px; width:50px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>추가</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <textarea id="textarea2" ref="/root/main/cmt/testcont" style="left:0px; top:58px; width:415px; height:187px; ">
- <script ev:event="xforms-value-changed" type="javascript">
- <![CDATA[
- fCMT_SetEditFlag();
- ]]>
- </script>
- </textarea>
- <select id="checkbox2" ref="/root/hidden/newline" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:350px; top:10px; width:60px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>다음줄</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- </group>
- </xhtml:body>
- </xhtml:html>
|