123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLP00900_결과조회.xrw
- * 설 명 : 결과조회
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2007.06.15
- * 수정이력 :
- * 기 타 :
- -->
- <?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/>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <MicroRsltList>
- <prcpdd/>
- <prcpdr/>
- <ioflag/>
- <tclskind/>
- <testdd/>
- <testnm/>
- <spcnm/>
- <testrslt/>
- <bcno/>
- <pid/>
- <hngnm/>
- </MicroRsltList>
- <testgrupdetl>
- <chk/>
- <tclsnm/>
- <tclscd/>
- </testgrupdetl>
- </main>
- <send>
- <data1/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <startdd/>
- <enddd/>
- <searchtext/>
- <refflag>1</refflag>
- <testmdlcd>00</testmdlcd>
- <workgroup>00</workgroup>
- <tclscdlist>
- <tclscdlist/>
- <tclsnmlist/>
- <tclscdlist2/>
- <testgrup/>
- </tclscdlist>
- <ioflag>0</ioflag>
- <tclscd/>
- <pinfo/>
- </ref>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <submission id="TRLLF90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLZZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcd"/>
- <submission id="TRLMP00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/MicroRsltList"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fSetInit() {
-
- var Today = getCurrentDate();
- var BfDay = getCurrentDate().toDate("YYYYMMDD").getAddDate(-365)
-
-
- model.removeNodeset("/root/main/MicroRsltList");
-
- model.setvalue("/root/hidden/ref/startdd",BfDay.getDateFormat("YYYYMMDD"));
- model.setvalue("/root/hidden/ref/enddd",Today);
- fBaseInfoRef("0103|0002|0112|0113|");
-
- }
-
- function fGetResultListRef(){
-
- model.removeNodeset("/root/main/MicroRsltList");
-
- var textbox = model.getValue("/root/hidden/ref/searchtext");
-
- if(textbox == ""){
-
- alert("검색 할 대상이 없습니다.");
- return;
- }
-
- model.setValue("/root/hidden/ref/tclscd", model.getValue("/root/hidden/ref/tclscdlist/tclscdlist"));
- model.copyNode("/root/send/data1" , "/root/hidden/ref");
-
- submit("TRLMP00701");
-
- if(model.getValue("/root/hidden/ref/refflag") == "1"){
- //alert (model.getValue("/root/main/MicroRsltList/hngnm"));
- model.setValue("/root/hidden/ref/pinfo",model.getValue("/root/main/MicroRsltList/hngnm"));
- }else if(model.getValue("/root/hidden/ref/refflag") == "2"){
- model.setValue("/root/hidden/ref/pinfo",model.getValue("/root/main/MicroRsltList/pid"));
- }
- model.refresh();
-
-
- }
-
- function fPidRef(){
- if(event.keyCode == "13"){
- if(event.target == "iptSearch"){
- model.setvalue("/root/hidden/ref/searchtext",iptSearch.currentText);
- model.refresh();
-
- fGetResultListRef();
-
- iptSearch.selBegin = 0;
- iptSearch.selEnd = iptSearch.currentText.length;
-
- }
- }
- }
-
- function fSetTestMdlcd() {
- var etc = model.getvalue("/root/hidden/ref/testmdlcd");
- var etc2 = model.getvalue("/root/hidden/ref/workgroup");
-
- if(etc == "00") {
- cmb_workgroup.attribute("visibility") = "visible";
- ma_combo.attribute("visibility") = "hidden";
- cmb_workgroup.disabled = true;
- }else if(etc == "MR"){
- cmb_workgroup.attribute("visibility") = "visible";
- ma_combo.attribute("visibility") = "hidden";
- cmb_workgroup.disabled = false;
- }else if(etc == "MA"){
- cmb_workgroup.attribute("visibility") = "hidden";
- ma_combo.attribute("visibility") = "visible";
- cmb_workgroup.disabled = false;
- }else {
- cmb_workgroup.attribute("visibility") = "hidden";
- ma_combo.attribute("visibility") = "hidden";
-
- }
- model.setvalue("/root/hidden/ref/workgroup", "00");
- model.refresh();
- }
-
- function fClickResultList(){
-
- var row = MicroRsltList.row;
-
- modal("SPLMP90200","", "", "","", "/root/main/MicroRsltList["+row+"]", "/root/hidden/ref/list");
-
- }
-
- function fSelectTestGrup(){
- model.makeValue("/root/send/testgrupnm", cmb_testitem.label);
- submit("TRLLF90401" ,false);
-
-
- fSetPopUpTclscdList();
- }
-
- function fSetPopUpTclscdList(){
- var count = getNodesetCount("/root/main/testgrupdetl");
- if(count > 0){
-
- var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
- var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
- var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
-
-
- // 검사그룹 상세 목록 없을때
- if(sendtclsnm == ""){
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "");
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", "");
-
- }else{ // 검사그룹 상세 목록 있을때
- for(i=2; i<= count; i++){
- sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
- //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- }
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
-
- }
- model.refresh();
- }
- }
-
-
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1057;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <group id="group1" style="left:0px; top:10px; width:1195px; height:65px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; "/>
- <line id="line3" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:28px; "/>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:6px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetResultListRef();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:15px; top:10px; width:87px; height:17px; ">조회일자 :</caption>
- <caption id="caption3" class="search_no_b" style="left:214px; top:11px; width:13px; height:17px; ">~</caption>
- <input id="input1" ref="/root/hidden/ref/startdd" class="input_search" inputtype="date" style="left:105px; top:9px; width:100px; height:19px; "/>
- <input id="input2" ref="/root/hidden/ref/enddd" class="input_search" inputtype="date" style="left:236px; top:9px; width:100px; height:19px; "/>
- <input id="iptSearch" ref="/root/hidden/ref/searchtext" class="input_s_button" navindex="1" inputtype="button" style="left:867px; top:9px; width:125px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fGetResultListRef();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fPidRef();
- ]]>
- </script>
- </input>
- <select1 id="combo2" ref="/root/hidden/ref/refflag" class="combo_search" appearance="minimal" style="left:778px; top:9px; width:87px; height:19px; ">
- <choices>
- <item>
- <label>등록번호</label>
- <value>1</value>
- </item>
- <item>
- <label>환자성명</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/hidden/ref/searchtext", "");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:680px; top:10px; width:88px; height:17px; ">검색구분 :</caption>
- <button id="button6" class="icon_search" style="left:710px; top:39px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMLLF90400", "", "", "", "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
- ]]>
- </script>
- </button>
- <input id="ipt_tclscdlist" ref="/root/hidden/ref/tclscdlist/tclsnmlist" style="left:205px; top:38px; width:500px; height:19px; color:#ff0000; "/>
- <caption id="caption8" class="search_name" style="left:15px; top:39px; width:94px; height:17px; ">검사항목 :</caption>
- <select1 id="cmb_testitem" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_search" appearance="minimal" style="left:105px; top:38px; width:96px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0103">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSelectTestGrup();
- ]]>
- </script>
- </select1>
- <select1 id="radio2" ref="/root/hidden/ref/ioflag" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:487px; top:10px; width:153px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>외래</label>
- <value>1</value>
- </item>
- <item>
- <label>입원</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:385px; top:10px; width:93px; height:17px; ">외래/입원 :</caption>
- <select1 id="cmb_mdlcd" ref="/root/hidden/ref/testmdlcd" class="combo_search" appearance="minimal" itemcount="10" style="left:850px; top:38px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0112">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTestMdlcd();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_workgroup" ref="/root/hidden/ref/workgroup" class="combo_search" disabled="true" appearance="minimal" itemcount="10" style="left:1007px; top:38px; width:157px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0113">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption12" class="search_name" style="left:760px; top:39px; width:89px; height:17px; ">작업그룹 :</caption>
- <select1 id="ma_combo" ref="/root/hidden/ref/workgroup" class="combo_search" visibility="hidden" appearance="minimal" itemcount="10" style="left:1007px; top:38px; width:157px; height:19px; ">
- <choices>
- <item>
- <label>- 전체 -</label>
- <value>00</value>
- </item>
- <item>
- <label>[CU]culture</label>
- <value>CU</value>
- </item>
- </choices>
- </select1>
- <output id="output1" ref="/root/hidden/ref/pinfo" style="left:1010px; top:7px; width:95px; height:19px; font-size:14pt; font-weight:bold; text-align:center; "/>
- <caption id="caption4" style="left:995px; top:5px; width:15px; height:25px; ">▶</caption>
- </group>
- <caption id="caption1" class="tit_2" style="left:0px; top:85px; width:100px; height:13px; ">검사리스트</caption>
- <datagrid id="MicroRsltList" nodeset="/root/main/MicroRsltList" caption="처방일자^처방의사^입/외^검사구분^접수일시^결과일시^검사명^검체명^검사결과" colwidth="80, 70, 50, 70, 125, 125,200, 100, 400" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:105px; width:1194px; height:630px; font-family:굴림체; ">
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="prcpdr"/>
- <col ref="ioflag"/>
- <col ref="tclskind"/>
- <col ref="workdd" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="reptdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="testnm"/>
- <col ref="spcnm"/>
- <col ref="testrslt"/>
- <col ref="bcno" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="hngnm" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(MicroRsltList.isCell(event.target) && MicroRsltList.row >= MicroRsltList.fixedRows ){
- fClickResultList();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- MicroRsltList.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:100px; x2:1194px; y2:100px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">결과조회</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|