123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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 xmlns="">
- <main>
- <cond>
- <cnstdd/>
- <reqflag/>
- <orddeptcd/>
- <orddrid/>
- <replyn/>
- <pid/>
- <hngnm/>
- <fromdd/>
- <todd/>
- <ioflag>-</ioflag>
- <queryflag>orgin</queryflag>
- <sortcol/>
- <orderby/>
- </cond>
- <cnstpatinfo>
- <cnstpatlist>
- <pid/>
- <hngnm/>
- <orddd/>
- <cretno/>
- <reqflag/>
- <recvdeptcd/>
- <recvuserid/>
- <recvusernm/>
- <replyn/>
- <repldd/>
- <repltm/>
- <reqdeptcd/>
- <reqdeptnm/>
- <requserid/>
- <requsernm/>
- <reqdt/>
- <eryn/>
- <termengnm/>
- <ioflag/>
- <roomcd/>
- <sa/>
- <cnstseq/>
- </cnstpatlist>
- <cnsttotcnt>
- <deptreqcnt/>
- <deptrecvcnt/>
- <patreqcnt/>
- </cnsttotcnt>
- </cnstpatinfo>
- <totcnt>
- <totcnt/>
- </totcnt>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden>
- </hidden>
- <init>
- <orddept/>
- <userlist/>
- <rsltgetdata>
- <getdata/>
- </rsltgetdata>
- <M0623/>
- </init>
- <temp/>
- <popupmenu>
- <menu>
- <item>
- <name>관심환자등록</name>
- <func>fCallWndConcPatRgst</func>
- </item>
- <item>
- <name>주의요망환자관리</name>
- <func>fCallWndWarnPat</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>미수행처방관리</name>
- <func>fOpenInFinPrcp</func>
- </item>
- <!--
- <item>
- <name>RC환자정보</name>
- <func>fA</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>V/S조회</name>
- <func>fC</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>WORKLIST등록</name>
- <func>fD</func>
- </item>
- -->
- </menu>
- </popupmenu>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize_SMMMO04800();
- ]]>
- </script>
- <submission id="TRMMB01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/userscrnenvinfo"/>
- <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
- <submission id="TRMMO04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/rsltgetdata"/>
- <submission id="TRMMO04801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cnstpatinfo"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO04129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/recinfo"/>
- </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="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04100.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO04800.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1174;2,716;1,81;2,9;1,946;1,452;2,61;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1174px; height:84px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" maxlength="10" style="left:579px; top:36px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_reqpatnm", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:5px; top:36px; width:76px; height:17px; ">회 신 과</caption>
- <caption id="caption2" style="left:96px; top:34px; width:30px; height:20px; font-weight:bold; vertical-align:middle; margin-left:20; margin-top:8; ">명</caption>
- <caption id="caption4" class="search_name" style="left:498px; top:36px; width:76px; height:17px; ">등록번호</caption>
- <caption id="caption6" class="search_name" style="left:5px; top:9px; width:76px; height:17px; ">의 뢰 일</caption>
- <line id="line3" style="x1:1098px; y1:8px; x2:1098px; y2:76px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption3" class="tit_2" style="left:1px; top:86px; width:126px; height:13px; vertical-align:middle; ">CONSULT</caption>
- <line id="line6" class="line_1" style="x1:0px; y1:100px; x2:1175px; y2:100px; "/>
- <caption id="caption8" class="search_name" style="left:307px; top:36px; width:76px; height:17px; ">회 신 의</caption>
- <caption id="caption9" class="search_name" style="left:685px; top:36px; width:76px; height:17px; ">성 명</caption>
- <caption id="caption10" class="search_name" style="left:307px; top:9px; width:76px; height:17px; ">의뢰구분</caption>
- <caption id="caption11" class="search_name" style="left:498px; top:9px; width:76px; height:17px; ">회신구분</caption>
- <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_default" appearance="minimal" editmode="search" style="left:84px; top:36px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
- var sOrdDd = model.getValue("/root/main/cond/todd");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330", "", "", sOrdDd);
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- model.setValue("/root/main/cond/orddrid", "-");
- model.refresh();
-
- fReqCnstPatList("orgin");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_reqflag" ref="/root/main/cond/reqflag" class="combo_default" appearance="minimal" style="left:386px; top:9px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>진료의뢰</label>
- <value>1</value>
- </item>
- <item>
- <label>협진</label>
- <value>2</value>
- </item>
- <item>
- <label>타과의뢰</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_replyn" ref="/root/main/cond/replyn" class="combo_default" appearance="minimal" style="left:579px; top:9px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_hngnm" ref="/root/main/cond/hngnm" class="input_search" style="left:764px; top:36px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_patsrch", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_default" appearance="minimal" itemcount="30" style="left:386px; top:36px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_cnstdd" ref="/root/main/cond/fromdd" inputtype="date" style="left:84px; top:9px; width:90px; height:19px; "/>
- <datagrid id="grd_cnstpatlist" nodeset="/root/main/cnstpatinfo/cnstpatlist" caption="응급^등록번호^성명^환자명^S/A^의뢰의사^의뢰과^의뢰일시^병실^회신여부^회신일시^진단명^회신의사^formrecseq^acptorddd^acptcretno^orddd^cretno^ioflag" colsep="^" colwidth="45, 75, 0, 100, 45, 60, 131, 110, 50, 60, 110, 285, 60, 0, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:105px; width:1174px; height:611px; ">
- <col ref="eryn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="dispnm2" style="text-align:center; "/>
- <col ref="sa" style="text-align:center; "/>
- <col ref="requsernm" style="text-align:center; "/>
- <col ref="reqdeptnm" style="text-align:left; "/>
- <col ref="reqdt" format="yyyy-mm-dd hh:mm" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col disabled="true" ref="replyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="recvtm" format="yyyy-mm-dd hh:mm"/>
- <col ref="termengnm"/>
- <col ref="recvusernm" style="text-align:center; "/>
- <col ref="formrecseq"/>
- <col ref="acptorddd"/>
- <col ref="acptcretno"/>
- <col ref="orddd"/>
- <col ref="cretno"/>
- <col ref="ioflag"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_cnstpatlist", false, "/root/popupmenu/menu/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
- setGlobalVariable("OrderMainRefresh", "Y"); // 처방 메인 refresh 단일화를 위한 글로벌 변수 셋팅 - 20081212 by Moonsh
- fSelectCnstPat();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cnstpatlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_cnstpatlist.isCell(event.target)) {
- var currow = grd_cnstpatlist.row;
- var curcol = grd_cnstpatlist.col;
- if(currow < 1){
- if(sORDERBY == "asc"){
- sORDERBY = "desc";
- }else{
- sORDERBY = "asc";
- }
- model.setValue("/root/main/cond/sortcol", curcol);
- model.setValue("/root/main/cond/orderby", sORDERBY);
- model.copyNode(opener.root.cond.cnstpatlist, root.main.cond);
- //nodeListSort(grd_cnstpatlist.nodeset, grd_cnstpatlist.colAttribute(curcol, "ref"), sORDERBY);
- grd_cnstpatlist.refresh();
-
- }else{
- var pid = model.getValue("/root/main/cnstpatinfo/cnstpatlist[" + grd_cnstpatlist.row + "]/pid");
- model.setValue(opener.root.source.pid, pid);
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption5" class="search_name" style="left:685px; top:9px; width:76px; height:17px; ">진료구분</caption>
- <select1 id="combo1" ref="/root/main/cond/ioflag" class="combo_default" appearance="minimal" style="left:764px; top:9px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>DSC</label>
- <value>D</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <button id="btn_reqpatnm" style="left:637px; top:59px; width:30px; height:20px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPidTrim("/root/main/cond/pid");
- var pid = model.getValue("/root/main/cond/pid");
- if(reqPatInfo("pid", "ptbs", pid)==true){
- var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
- model.setValue("/root/main/cond/hngnm", hngnm);
- model.refresh();
-
- fReqCnstPatList();
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/main/cond/todd" inputtype="date" style="left:193px; top:9px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/init/orddept");
- model.makeNode("/root/init/orddept/dept");
-
- var sOrdDd = model.getValue("/root/main/cond/todd");
- var sOrdDeptCd = model.getValue("/root/main/cond/orddeptcd");
-
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A", sOrdDd); // 진료일자 기준으로 진료과를 다시 조회
- addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
-
- if(isNull(model.getValue("/root/init/orddept/dept[deptcd='"+sOrdDeptCd+"']/deptcd"))) {
- if(fContainsHardCD("445", sOrdDeptCd)) { // 소아청소년과 분과 이면 소아청소년과로 설정.
- model.setValue("/root/main/cond/orddeptcd", "2110000000");
- cmb_orddept.dispatch("xforms-value-changed");
- } else {
- messageBox ( "선택일자에 존재하지 않는 진료과 입니다.\n\n진료과를 다시 선택 하세요.", "I" );
- model.setValue("/root/main/cond/orddeptcd", "-");
- }
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption7" style="left:177px; top:11px; width:15px; height:20px; ">~</caption>
- <button id="btn_prcpclsnm" class="icon_search" style="left:858px; top:37px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPidTrim("/root/main/cond/pid");
- modal("SPPMC02500");
-
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.setValue("/root/main/cond/pid", pid);
- model.setValue("/root/main/cond/hngnm", hngnm);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_patcnt" class="btn1_letter7" visibility="visible" style="left:915px; top:57px; width:116px; height:22px; ">
- <caption>환자별보낸건</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqCnstPatList("pid");
- ]]>
- </script>
- </button>
- <input id="ipt_patcnt" ref="/root/main/cnstpatinfo/cnsttotcnt/patreqcnt" visibility="visible" style="left:1035px; top:57px; width:55px; height:19px; text-align:center; "/>
- <button id="btn_deptrevcnt" class="btn1_letter7" style="left:915px; top:33px; width:116px; height:22px; ">
- <caption>과별 받은건</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqCnstPatList("recv");
- ]]>
- </script>
- </button>
- <input id="ipt_deptrevcnt" ref="/root/main/cnstpatinfo/cnsttotcnt/deptrecvcnt" style="left:1035px; top:33px; width:55px; height:19px; text-align:center; "/>
- <input id="ipt_deptreqcnt" ref="/root/main/cnstpatinfo/cnsttotcnt/deptreqcnt" style="left:1035px; top:9px; width:55px; height:19px; text-align:center; "/>
- <button id="btn_deptreqcnt" class="btn1_letter7" style="left:915px; top:9px; width:116px; height:22px; ">
- <caption>과별 보낸건</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqCnstPatList("req");
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:907px; y1:8px; x2:907px; y2:76px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_req" class="btn1_letter2" style="left:1110px; top:33px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqCnstPatList("orgin");
- ]]>
- </script>
- </button>
- <button id="btn_patsrch" style="left:825px; top:61px; width:30px; height:20px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var pid = model.getValue("/root/main/cond/pid");
- var hngnm = model.getValue("/root/main/cond/hngnm");
- if((pid =="")&&(hngnm !="")){
- fPatSrch(hngnm, "2");
- } else if((pid !="")&&(hngnm == "")){
- fPatSrch(pid, "1");
- } else {
- modal("SPPMC02500")
- }
-
- model.setValue("/root/main/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/cond/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|