123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385 |
- <?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>
- <cond>
- <excpcls/>
- <pid/>
- <srchflag/>
- <deptcd/>
- <userid/>
- </cond>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <list>
- <exptpatlist>
- <genrdd/>
- <genrno/>
- <instcd/>
- <excpcls/>
- <deptcd/>
- <deptnm/>
- <userid/>
- <usernm/>
- <pid/>
- <hngnm/>
- <fromdd/>
- <todd/>
- <histcd/>
- <histnm/>
- <histno/>
- <excpcd/>
- <excptext/>
- <fstrgstrdeptnm/>
- <fstrgstrid/>
- <fstrgstrusernm/>
- <fstrgstdt/>
- <lastupdtrdeptnm/>
- <lastupdtrid/>
- <lastupdtrusernm/>
- <lastupdtdt/>
- </exptpatlist>
- </list>
- <info>
- <exptpatinfo>
- <status/>
- <genrdd/>
- <genrno/>
- <instcd/>
- <excpcls/>
- <deptcd/>
- <deptnm/>
- <userid/>
- <usernm/>
- <pid/>
- <hngnm/>
- <fromdd/>
- <todd/>
- <histcd/>
- <histnm/>
- <histno/>
- <excpcd/>
- <excptext/>
- <fstrgstrdeptnm/>
- <fstrgstrid/>
- <fstrgstrusernm/>
- <fstrgstdt/>
- <lastupdtrdeptnm/>
- <lastupdtrid/>
- <lastupdtrusernm/>
- <lastupdtdt/>
- </exptpatinfo>
- </info>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden>
- </hidden>
- <init>
- <patinfo>
- <pid/>
- <hngnm/>
- </patinfo>
- <orddept/>
- <userlist1/>
- <userlist2/>
- <M0627/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <bind id="bind1" ref="/root/hidden/concpatinfo" calculate=""now()+.""/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO09502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list"/>
- <submission id="TXMMO09501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/list"/>
- </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="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO09500.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="700" pageheight="600" guideline="1,680;2,591;1,460;1,450;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <caption id="caption12" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">예외환자 관리</caption>
- <group id="group_cond" scroll="no" style="left:0px; top:15px; width:680px; height:85px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:680px; height:78px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:11px; width:86px; height:17px; ">예외분류 :</caption>
- <line id="line13" class="line_4" style="x1:604px; y1:9px; x2:604px; y2:71px; "/>
- <button id="bnt_srch" class="btn1_letter2" style="left:612px; top:29px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <select1 id="combo18" ref="/root/main/cond/excpcls" class="combo_search" appearance="minimal" style="left:117px; top:11px; width:148px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/M0627/M0627">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption13" class="search_name" style="left:335px; top:51px; width:86px; height:17px; ">조회구분 :</caption>
- <caption id="caption14" class="search_name" style="left:335px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid2" ref="/root/main/cond/pid" style="left:430px; top:9px; width:101px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("bnt_srch", "DOMActivate");
- ]]>
- </script>
- </input>
- <select id="checkbox1" ref="/root/main/cond/srchflag" overflow="visible" appearance="full" style="left:430px; top:51px; width:125px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>삭제/변경포함 조회</label>
- <value>ALL</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select>
- <caption id="caption18" class="search_name" style="left:15px; top:31px; width:105px; height:17px; ">적용진료과 :</caption>
- <select1 id="cmb_orddept1" ref="/root/main/cond/deptcd" class="combo_search" appearance="minimal" style="left:117px; top:31px; width:148px; 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.setValue(sCONDITION_PATH + "/userid", "-");
-
- model.removeNodeset("/root/init/userlist1");
- model.makeNode("/root/init/userlist1/usercombo");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist1", cmb_orddept1.value, "0330");
- addComboInstance("/root/init/userlist1", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- cmb_orddrid1.select(0);
-
- group_cond.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption19" class="search_name" style="left:335px; top:31px; width:105px; height:17px; ">적용의사 :</caption>
- <select1 id="cmb_orddrid1" ref="/root/main/cond/userid" class="combo_search" appearance="minimal" style="left:430px; top:31px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist1/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="group_list" scroll="no" style="left:0px; top:100px; width:680px; height:250px; ">
- <line id="line2" class="line_1" style="x1:0px; y1:0px; x2:680px; y2:0px; "/>
- <datagrid id="grd_exptpatlist" nodeset="/root/main/list/exptpatlist" caption="기관코드^예외분류^적용진료과^적용진료과^적용의사^적용의사^등록번호^환자명^시작일^종료일^상태^상태^등록일자^번호^이력^예외사유코드^참고사항^등록자^등록자^등록일" colsep="^" colwidth="0, 100, 0, 87, 0, 60, 60, 60, 68, 68, 0, 30, 68, 30, 30, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:5px; width:680px; height:243px; ">
- <col ref="instcd"/>
- <col disabled="true" ref="excpcls" type="combo">
- <choices>
- <itemset nodeset="/root/init/M0627/M0627">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="deptcd"/>
- <col ref="deptnm"/>
- <col ref="userid"/>
- <col ref="usernm" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="histcd"/>
- <col ref="histnm" style="text-align:center; "/>
- <col ref="genrdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="genrno" style="text-align:center; "/>
- <col ref="histno" style="text-align:center; "/>
- <col ref="excpcd"/>
- <col ref="excptext"/>
- <col ref="fstrgstrid"/>
- <col ref="fstrgstrnm"/>
- <col ref="fstrgstdt"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()){
- fSelectExptPatInfo();
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group_info" scroll="no" style="left:0px; top:355px; width:680px; height:245px; ">
- <caption id="caption24" class="tit_2" style="left:0px; top:0px; width:134px; height:13px; ">예외환자 정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:15px; x2:680px; y2:15px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:20px; width:100px; height:23px; vertical-align:middle; ">예외분류</caption>
- <select1 id="cmb_unitflag" ref="/root/main/info/exptpatinfo/excpcls" class="combo_search" disabled="false" appearance="minimal" style="left:102px; top:21px; width:118px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/M0627/M0627">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption15" class="cell_1" style="left:230px; top:20px; width:100px; height:23px; vertical-align:middle; ">등록번호</caption>
- <input id="ipt_pid" ref="/root/main/info/exptpatinfo/pid" style="left:332px; top:21px; width:98px; height:19px; ">
- <script type="javascript" ev:event="onkeypress"><![CDATA[
- inputEnterKey ( "btn_patsrch", "DOMActivate" );
- ]]></script>
- </input>
- <button id="btn_patsrch" class="btn1_letter2" visibility="hidden" style="left:270px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate"><![CDATA[
- fPatSrch();
- ]]></script>
- </button>
- <button id="button1" class="icon_search" style="left:434px; top:22px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var sStatus = model.getValue(sEXPT_INFO_PATH + "/status");
- if(sStatus == "I"){ // 인서트
- modal("SPPMC02500");
-
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.setValue(sEXPT_INFO_PATH+"/pid", sPid);
- model.setValue(sEXPT_INFO_PATH+"/hngnm", sHngnm);
- group_info.refresh();
- } else {
- messageBox("신규작성 버튼 클릭시에만 환자 정보를 수정 할 수 있습니다.", "C999");
- }
- ]]>
- </script>
- <caption/>
- </button>
- <caption id="caption2" class="cell_1" style="left:460px; top:20px; width:100px; height:23px; vertical-align:middle; ">환자명</caption>
- <output id="opt_unitcd" ref="/root/main/info/exptpatinfo/hngnm" class="output_fix" appearance="output" style="left:562px; top:21px; width:118px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:0px; top:44px; width:100px; height:23px; vertical-align:middle; ">시작일</caption>
- <input id="ipt_fromdd" ref="/root/main/info/exptpatinfo/fromdd" class="input_default" disabled="false" inputtype="date" style="left:102px; top:46px; width:118px; height:19px; "/>
- <caption id="caption6" class="cell_1" style="left:230px; top:44px; width:100px; height:23px; vertical-align:middle; ">종료일</caption>
- <input id="input3" ref="/root/main/info/exptpatinfo/todd" class="input_default" disabled="false" inputtype="date" style="left:332px; top:46px; width:118px; height:19px; "/>
- <caption id="caption16" class="cell_1" style="left:460px; top:68px; width:100px; height:23px; vertical-align:middle; ">상태</caption>
- <output id="output2" ref="/root/main/info/exptpatinfo/histnm" class="output_fix" appearance="output" style="left:562px; top:70px; width:118px; height:19px; "/>
- <caption id="caption17" class="cell_1" style="left:0px; top:68px; width:100px; height:23px; vertical-align:middle; ">적용진료과</caption>
- <select1 id="cmb_orddept2" ref="/root/main/info/exptpatinfo/deptcd" class="combo_search" disabled="false" appearance="minimal" style="left:102px; top:69px; width:118px; 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.setValue(sEXPT_INFO_PATH + "/userid", "-");
-
- model.removeNodeset("/root/init/userlist2");
- model.makeNode("/root/init/userlist2/usercombo");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist2", cmb_orddept2.value, "0330");
- addComboInstance("/root/init/userlist2", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- cmb_orddrid2.select(0);
-
- group_info.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption20" class="cell_1" style="left:230px; top:68px; width:100px; height:23px; vertical-align:middle; ">적용의사</caption>
- <select1 id="cmb_orddrid2" ref="/root/main/info/exptpatinfo/userid" class="combo_search" disabled="false" appearance="minimal" style="left:332px; top:69px; width:118px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist2/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="cell_1" style="left:0px; top:92px; width:100px; height:23px; vertical-align:middle; ">등록부서</caption>
- <output id="output3" ref="/root/main/info/exptpatinfo/fstrgstrdeptnm" class="output_fix" appearance="output" style="left:102px; top:94px; width:118px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:230px; top:92px; width:100px; height:23px; vertical-align:middle; ">등록자</caption>
- <output id="output1" ref="/root/main/info/exptpatinfo/fstrgstrusernm" class="output_fix" appearance="output" style="left:332px; top:94px; width:118px; height:19px; "/>
- <caption id="caption11" class="cell_1" style="left:460px; top:92px; width:100px; height:23px; vertical-align:middle; ">등록일시</caption>
- <output id="output4" ref="/root/main/info/exptpatinfo/fstrgstdt" class="output_fix" format="yyyy-mm-dd hh:nn" appearance="output" style="left:562px; top:94px; width:118px; height:19px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:116px; width:100px; height:23px; vertical-align:middle; ">수정부서</caption>
- <output id="output5" ref="/root/main/info/exptpatinfo/lastupdtrdeptnm" class="output_fix" appearance="output" style="left:102px; top:118px; width:118px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:230px; top:116px; width:100px; height:23px; vertical-align:middle; ">수정자</caption>
- <output id="output6" ref="/root/main/info/exptpatinfo/lastupdtrusernm" class="output_fix" appearance="output" style="left:332px; top:118px; width:118px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:460px; top:116px; width:100px; height:23px; vertical-align:middle; ">수정일시</caption>
- <output id="output7" ref="/root/main/info/exptpatinfo/lastupdtdt" class="output_fix" format="yyyy-mm-dd hh:nn" appearance="output" style="left:562px; top:118px; width:118px; height:19px; "/>
- <caption id="caption21" class="cell_1" style="left:0px; top:140px; width:100px; height:66px; vertical-align:middle; ">예외사유</caption>
- <textarea id="textarea2" ref="/root/main/info/exptpatinfo/excptext" disabled="false" style="left:102px; top:140px; width:578px; height:64px; "/>
- </group>
- <button id="button3" class="btn4_letter4" style="left:420px; top:564px; width:80px; height:22px; ">
- <caption>신규작성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNewRgst();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:561px; top:564px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sHistCd = model.getValue(sEXPT_INFO_PATH + "/histcd");
- if(sHistCd != "O") {messageBox("변경 또는 삭제 상태의 정보는 수정 할 수 없습니다.", "C999"); return; }
- var sStatus = model.getValue(sEXPT_INFO_PATH + "/status");
- if(sStatus == "I"){ // 인서트
- if( "6" != messageBox("", "Q002")) { return; }
- } else if (sStatus == "U") {
- if( "6" != messageBox("", "Q012")) { return; }
- }
-
- fSaveExptPatInfo();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" style="left:504px; top:564px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sHistCd = model.getValue(sEXPT_INFO_PATH + "/histcd");
- if(sHistCd != "O") {messageBox("변경 또는 삭제 상태의 정보는 수정 할 수 없습니다.", "C999"); return; }
- var sGenrNo = model.getValue(sEXPT_INFO_PATH + "/genrno");
- if(sGenrNo == ""){
- messageBox("삭제할 예외환자 정보가 선택 되지 않았습니다.", "I999");
- } else {
- if( "6" == messageBox("", "Q001")) {
- model.setValue(sEXPT_INFO_PATH + "/status", "D"); // 삭제
- model.setValue(sEXPT_INFO_PATH + "/histcd", "D"); // 삭제
-
- fSaveExptPatInfo();
- }
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter2" style="left:621px; top:564px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|