123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- <?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="">
- <cond>
- <pid/>
- <orddd/>
- <stat/>
- <orddeptcd/>
- <orddrid/>
- </cond>
- <main>
- <otptlists>
- <otptlist>
- <gubn/>
- <orddd/>
- <ordtm/>
- <orddeptnm/>
- <orddrnm/>
- <genrflagcd/>
- <diagcd/>
- <diagnm/>
- <pid/>
- <cretno/>
- <org_orddd/>
- <org_indd/>
- </otptlist>
- </otptlists>
- </main>
- <send/>
- <hidden>
- <temp/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRMNC00900" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/otptlists"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fInit(){
- var sParam = opener.javascript.getParameter("SPMNC00900_searchcond");
- opener.javascript.setParameter("SPMNC00900_searchcond","");
- if(sParam == null || sParam == "" || sParam == "undefined"){
- model.alert("진단명을 생성할 환자 정보가 존재하지 않습니다.");
- window.close();
- }else{
- //===============================
- //넘어온 파라미터 정보
- //var param = sPid+"▦"+sOrddd;
- //===============================
- var sParamArr = sParam.split("▦");
- model.setValue("/root/cond/pid" ,sParamArr[0]);
- model.setValue("/root/cond/orddd" ,sParamArr[1]);
- model.setValue("/root/cond/orddeptcd" ,sParamArr[2]);
- model.setValue("/root/cond/orddrid" ,sParamArr[3]);
- model.refresh();
-
- fGetOtptInptDiagList();
- }
- }
-
- //해당 외래입원 수진이력 조회
- function fGetOtptInptDiagList(){
- model.removenode("/root/send");
- model.makeValue("/root/send/pid" , model.getValue("/root/cond/pid" ));
- model.makeValue("/root/send/orddd" , model.getValue("/root/cond/orddd"));
- model.makeValue("/root/send/orddeptcd" , model.getValue("/root/cond/orddeptcd"));
- model.makeValue("/root/send/orddrid" , model.getValue("/root/cond/orddrid"));
- model.makeValue("/root/send/stat" , model.getValue("/root/cond/stat"));
-
- if(submit("TRMNC00900")){
- if(getNodesetCount("/root/main/otptlists/otptlist") < 1){
- model.alert("선택할 수진이력이 존재하지 않습니다.");
- return;
- }
- }else{
- model.alert("수진이력 조회시 서버 오류가 발생 되었습니다.");
- return;
- }
- }
-
- //선택 버튼을 눌렀을 경우 이벤트
- function fOnClickOkBtn(){
- var iGridCnt = getNodesetCnt(model, "/root/main/otptlists/otptlist");
- if(iGridCnt < 1){
- model.alert("선택할 수진이력이 존재하지 않습니다.");
- return;
- }
-
- var iSelectCnt = 0;
- var iSelectPos = 0;
- for(var i = 1; i <= iGridCnt; i++){
- if(grd_otptlist.isSelected(i) == true) {
- iSelectCnt ++;
- iSelectPos = i;
- }
- }
-
- if(iSelectCnt > 1){
- model.alert("하나의 수진이력만 선택하셔야 합니다.");
- return;
- }else{
- var sGridXpath = "/root/main/otptlists/otptlist[";
- var sPid = model.getValue(sGridXpath+iSelectPos+"]/pid");
- var sOrddd = model.getValue(sGridXpath+iSelectPos+"]/org_orddd");
- var sIndd = model.getValue(sGridXpath+iSelectPos+"]/org_indd");
- var sCretno = model.getValue(sGridXpath+iSelectPos+"]/cretno");
- var sGenrflagcd = model.getValue(sGridXpath+iSelectPos+"]/genrflagcd");
- var sOrddeptcd = model.getValue(sGridXpath+iSelectPos+"]/orddeptcd"); //파라미터 추가_20100118_SMY
-
- //var param = sPid+"▦"+sOrddd+"▦"+sIndd+"▦"+sCretno+"▦"+sGenrflagcd;
- var param = sPid+"▦"+sOrddd+"▦"+sIndd+"▦"+sCretno+"▦"+sGenrflagcd+"▦"+sOrddeptcd;
- opener.javascript.setParameter("preDiagResult", param);
- window.close();
- }
- }
- ]]>
- </script>
- <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/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="750" pageheight="500">
- <caption id="caption31" class="cell_1" style="left:4px; top:20px; width:84px; height:19px; font-family:돋움; text-align:center; ">등록번호</caption>
- <button id="btn_closenewpat" class="btn2_letter3" style="left:686px; top:19px; width:53px; height:19px; ">
- <caption>닫 기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:4px; y1:40px; x2:739px; y2:40px; "/>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">수진이력</caption>
- <input id="input1" ref="/root/cond/pid" disabled="true" style="left:89px; top:20px; width:106px; height:19px; "/>
- <button id="button1" class="btn2_letter3" style="left:630px; top:19px; width:53px; height:19px; ">
- <caption>선 택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOnClickOkBtn();
- ]]>
- </script>
- </button>
- <datagrid id="grd_otptlist" nodeset="/root/main/otptlists/otptlist" class="datagrid2" autoresize="true" caption="구분^진료일자^진료시간^진료과^진료의^진단
구분^진단코드^진단명^pid^cretno^org_orddd^org_indd" colsep="^" colwidth="45, 82, 57, 104, 68, 48, 99, 204, 53, 55, 100, 100" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" multitotal="false" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:4px; top:45px; width:736px; height:440px; vertical-align:middle; ">
- <col disabled="true" ref="gubn" type="combo" format="yyyy-mm-dd" style="text-align:center; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="orddd"/>
- <col disabled="true" ref="ordtm" type="output" format="hh:nn" style="text-align:center; "/>
- <col disabled="true" ref="orddeptnm" type="output" style="text-align:center; "/>
- <col disabled="true" ref="orddrnm" type="output" style="text-align:center; "/>
- <col disabled="true" ref="genrflagcd" type="combo">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="diagcd"/>
- <col disabled="false" ref="diagnm" style="text-align:left; "/>
- <col ref="pid" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="org_orddd" visibility="hidden"/>
- <col ref="org_indd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fOnClickOkBtn();
- ]]>
- </script>
- </datagrid>
- <select id="checkbox1" ref="/root/cond/stat" overflow="visible" appearance="full" style="left:200px; top:19px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>가접수포함</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetOtptInptDiagList();
- ]]>
- </script>
- </select>
- <caption id="caption1" style="left:305px; top:20px; width:270px; height:20px; ">※ 주진단이 있는 수진이력만 조회 됩니다.</caption>
- </xhtml:body>
- </xhtml:html>
|