123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478 |
- <?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>
- <fromdd/>
- <todd/>
- <patnm/>
- <orddeptcd/>
- <wardcd/>
- <patpid/>
- <isoldispkind/>
- <isoresncd/>
- <isolremvyn>Y</isolremvyn>
- <isolflag>00</isolflag>
- </cond>
- <isoldispdisplists>
- </isoldispdisplists>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <paminfo/>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden>
- <orddeptlist>
- </orddeptlist>
- <warddeptlist>
- </warddeptlist>
- <temp/>
- <condition>
- <pid/>
- <indd/>
- <cretno/>
- <orddeptcd/>
- </condition>
- </hidden>
- <init>
- <A0140list>
- <A0140>
- <cdid/>
- <cdnm/>
- </A0140>
- </A0140list>
- <A0220list>
- <A0220>
- <cdid/>
- <cdnm/>
- </A0220>
- </A0220list>
- <hardcd/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- // //@@@@상단정보있는경우
- // var pamInfoCvs = getGlobalVariable("paminfo");
- // if(pamInfoCvs != ""){
- // model.removeNodeSet("/root/main/paminfo/list");
- // setCSVToNode("/root/main/paminfo", pamInfoCvs);
- //
- // model.setValue("/root/main/cond/patpid", model.getValue("/root/main/paminfo/list/pid"));
- // model.setValue("/root/main/cond/patnm", model.getValue("/root/main/paminfo/list/hngnm"));
- //
- // model.makeNode("/root/send/reqdata");
- // model.copyNode("/root/send/reqdata", "/root/main/cond");
- // submit("TRASB01201");
- //
- // model.refresh();
- // }
- ]]>
- </script>
- <submission id="TRASB01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/isoldispdisplists"/>
- <submission id="TXASB01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden/temp"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRASB01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/hardcd/hardcd"/>
- </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/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/infcmngtweb/js/SMASB00100.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- model.removeNodeset("/root/main/isoldispdisplists");
-
- zbcfGetCodeList(new Array("A0140", "A0220"), new Array("/root/init/A0140list", "/root/init/A0220list"));
- addComboItem("cmb_isolkind","","","above");
- addComboItem("cmb_isodiagnm","","","above");
- cmb_isolkind.choices.itemset.attribute("nodeset") = "/root/init/A0140list/A0140[cdnm != '' ]";
- cmb_isodiagnm.choices.itemset.attribute("nodeset") = "/root/init/A0220list/A0220[cdnm != '' ]";
- model.setValue("/root/main/cond/isolremvyn","N");
-
- // 공통코드 조회
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/hidden/orddeptlist";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
- addComboItem("cmb_orddept","","","above");
-
- standard_yn = "orduseyn";
- ord_deptflag = "W";
- rslt_ref = "/root/hidden/warddeptlist";
- sort_field = "deptcd";
- sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
- addComboItem("cmb_ward","","","above");
-
- model.makeNode("/root/init/curdate");
- model.makeValue("/root/init/curdate/fromdt", getCurrentDate());
-
- var idate=new Date();
- var frDate=idate.getAddDate(-1, "M");
-
- model.setValue("/root/main/cond/fromdd", frDate.getDateFormat());
- model.setValue("/root/main/cond/todd", model.getValue("/root/init/curdate/fromdt"));
-
- model.refresh();
- }
-
- //상단정보설정
- function fUpInfo(){
- var sessionPID = getPatientId();
- if(sessionPID != model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+grd_isoldesplist.row+"]/pid")){
- fReqOpPatPamInfo();
- }
- }
-
- function fReqOpPatPamInfo(){
-
- var ioflag="I";
- var pid= model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+grd_isoldesplist.row+"]/pid");
- var indd=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+grd_isoldesplist.row+"]/indd");
- var cretno=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+grd_isoldesplist.row+"]/cretno") ;
- var seqno=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+grd_isoldesplist.row+"]/iseqno");
- var instcd=getUserInfo("dutplceinstcd");
- var srchdd=getCurrentDate();
- var param= ioflag + "▦" //입원환자
- + pid + "▦"
- + indd + "▦"
- + cretno + "▦"
- + instcd+ "▦"
- + srchdd;
- setParameter("condparam", param);
-
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
- <group id="group2" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
- <group id="group6" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
- <group id="group7" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
- <line id="line4" class="line_3" style="x1:0px; y1:756px; x2:1194px; y2:756px; "/>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption7" class="tit_1" style="left:0px; top:0px; width:165px; height:15px; ">감염주의 표시환자조회</caption>
- </group>
- <group id="grp_sea" style="left:0px; top:14px; width:1194px; height:67px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1194px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_srch" class="btn1_letter2" navindex="4" style="left:1130px; top:23px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( (model.getValue("/root/main/cond/fromdd") == "" ) || (model.getValue("/root/main/cond/todd") == "") ) {
- messageBox("기간을", "C002");
- return;
- }
-
- if(model.getValue("/root/main/isoldispdisplists/isoldispdisplist/pid") != "" || model.getValue("/root/main/isoldispdisplists/isoldispdisplist/pid") != null) {
- var selstatus;
- for(var i=1; i < grd_isoldesplist.rows; i++){
- selstatus=model.getValue("/root/main/isoldispdisplists/isoldispdisplist[" + i + "]/isolcnfmyn");
- if(selstatus =="Y") {
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/savedata/data",grd_isoldesplist.getUpdateDataAll("i"));
- //submit("TXASB01201");
- //Update 후 재조회
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRASB01201");
- break;
- }
- }
- }
-
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRASB01201");
- ]]>
- </script>
- </button>
- <button id="btn_patInfo" class="icon_search" style="left:725px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if( (model.getValue("/root/main/cond/patpid") != "") || (model.getValue("/root/main/cond/patpid") != "")) {
- model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/cond/patpid"));
- model.makeValue("/root/send/reqdata/srchcond", "1");
- }
- if( (model.getValue("/root/main/cond/patnm") != "") || (model.getValue("/root/main/cond/patnm") != "")) {
- model.makeValue("/root/send/reqdata/hngnm", model.getValue("/root/main/cond/patnm"));
- model.makeValue("/root/send/reqdata/srchcond", "2");
- }
-
- model.makeNode("/root/main/patinfo/patinfolist");
- modal("SPPMC02500",0,0,0,"SPPMC02500", "/root/send/reqdata", "/root/send");
- if(model.getValue("/root/main/patinfo/patinfolist/pid") != ""){
- model.setValue("/root/main/cond/patpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/cond/patnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/main/cond/patpid" class="input_search" navindex="3" style="left:630px; top:10px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- //inputEnterKey("btn_srch", "DOMActivate");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode=="13"){
- model.makeValue("/root/temp/patinfo/srchcond", "1");
- model.makeValue("/root/temp/patinfo/pid", ipt_pid.currentText);
-
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/temp/patinfo", "/root/send");
-
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- model.setValue("/root/main/cond/patpid", sPid);
- model.setValue("/root/main/cond/patnm", sHngnm);
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_isolkind" ref="/root/main/cond/isoldispkind" appearance="minimal" style="left:425px; top:10px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0140list/A0140">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:540px; top:40px; width:85px; height:17px; ">성 명 :</caption>
- <line id="line13" class="line_4" style="x1:1125px; y1:8px; x2:1125px; y2:60px; "/>
- <select1 id="rdo_isolyn" ref="/root/main/cond/isolremvyn" appearance="full" cols="2" overflow="visible" style="left:425px; top:40px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>예</label>
- <value>Y</value>
- </item>
- <item>
- <label>아니오</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:760px; top:40px; width:75px; height:17px; ">병 동 :</caption>
- <caption id="caption3" class="search_name" style="left:760px; top:10px; width:96px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_ward" ref="/root/main/cond/wardcd" appearance="minimal" style="left:840px; top:38px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/warddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_patnm" ref="/root/main/cond/patnm" class="input_search" navindex="3" style="left:630px; top:40px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- //inputEnterKey("btn_srch", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:541px; top:11px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_default" inputtype="date" style="left:216px; top:9px; width:84px; height:19px; "/>
- <caption id="caption6" class="search_name" style="left:310px; top:11px; width:112px; height:17px; ">주의종류 :</caption>
- <caption id="caption8" class="search_name" style="left:15px; top:9px; width:116px; height:17px; ">기간선택 :</caption>
- <caption id="caption9" class="search_name" style="left:310px; top:40px; width:112px; height:17px; ">주의해제여부 :</caption>
- <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" appearance="minimal" style="left:840px; top:8px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption19" class="search_no_b" style="left:197px; top:8px; width:12px; height:17px; ">~</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_default" inputtype="date" style="left:105px; top:9px; width:85px; height:19px; "/>
- <caption id="caption10" class="search_name" style="left:15px; top:40px; width:97px; height:17px; ">감염질환 :</caption>
- <caption id="caption15" class="search_name" style="left:935px; top:10px; width:75px; height:17px; ">구 분 :</caption>
- <select1 id="radio1" ref="/root/main/cond/isolflag" appearance="full" cols="4" overflow="visible" style="left:935px; top:40px; width:180px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>00</value>
- </item>
- <item>
- <label>재원</label>
- <value>01</value>
- </item>
- <item>
- <label>퇴원</label>
- <value>02</value>
- </item>
- <item>
- <label>외래</label>
- <value>03</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_isodiagnm" ref="/root/main/cond/isoresncd" appearance="minimal" style="left:105px; top:40px; width:195px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0220list/A0220">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption12" class="tit_2" style="left:5px; top:88px; width:195px; height:15px; ">감염주의 표시환자 리스트</caption>
- <button id="btn_excel" class="btn2_letter2" style="left:1151px; top:82px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var fileName = window.fileDialog("save", ",", false, "격리주의표시환자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- // if (fileName != ""){
- // grd_isoldesplist.saveExcel(fileName, "SheetName", false, false, "", "", false);
- // }
- var fileName = window.fileDialog("save", ",", false, "격리주의표시환자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_isoldesplist.saveExcel(fileName, "격리주의표시환자", true, true, "", "", false);
- var s = fileName.lastIndexOf("\\");
- var fileName=fileName.substring(s+1);
-
- var rmsg = messageBox("저장된 Excel을", "Q004");
- if( rmsg == 6 ){
- window.exec("excel.exe", fileName);
- }
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_isoldesplist" nodeset="/root/main/isoldispdisplists/isoldispdisplist" caption="등록번호^성명^진료과^현병동^현병실^성별^나이^주의종류^감염질환^시작일자^해제일자^해제여부^병동^병실^입원일^등록자^수정자" colsep="^" colwidth="60, 49, 82, 100, 55, 33, 31, 65, 162, 69, 67, 57, 100, 55, 72, 50, 50" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:108px; width:1194px; height:648px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="orddept" style="text-align:center; "/>
- <col ref="wardcd" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="age" style="text-align:center; "/>
- <col ref="isolkind" style="text-align:center; "/>
- <col ref="isodiagnm" style="text-align:center; "/>
- <col ref="dispfromdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="isolcncldt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cnclyn" style="text-align:center; "/>
- <col ref="prcpwardcd" style="text-align:center; "/>
- <col ref="prcproomcd" style="text-align:center; "/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fstrgstrid" style="text-align:center; "/>
- <col ref="lastupdtrid" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_isoldesplist.gridToInstance();
- ]]>
- </script>
- <!-- 2013/03/25
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var Currecdd = getCurrentDate();
- var currow = grd_isoldesplist.row;
- if(currow < 1){
- return;
- }
-
- //@@@@ 상단정보 세팅 (감염관리실에서만 사용)
- asbfGetHardCodeInfoNm("/root/send/reqdata", "/root/init/hardcd", "C1");
- var usercdok = model.getValue("/root/init/hardcd/hardcd/hardcdnm");
- var userdeptcd = getUserInfo( "dutplcecd" );
-
- if(usercdok == userdeptcd){ //감염관리실 사용자의 경우에만,
-
- var ordtype=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+currow+"]/ioflag");
- var pid=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+currow+"]/pid");
- var indd=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+currow+"]/indd");
- var cretno=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+currow+"]/cretno");
- var recdd=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+currow+"]/outdd");
- if (recdd=="" || isNull(recdd)){
- recdd=Currecdd;
- }
-
- if(indd=="-"){
- indd = model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+currow+"]/ioindd");
- }
-
- var instcd=getUserInfo("dutplceinstcd");
- //var recdd=Currecdd;
-
- var param=ordtype+"▦"+pid+"▦"+indd+"▦"+cretno+"▦"+instcd+"▦"+recdd;
- setParameter("condparam", param);
- modal("SPMMO08900", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
- ]]>
- </script>
- -->
- </datagrid>
- <line id="line7" class="line_1" style="x1:0px; y1:103px; x2:1194px; y2:103px; "/>
- </group>
- </group>
- </group>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button1" class="btn4_letter3" visibility="hidden" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/isoldispdisplists");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter2" visibility="hidden" style="left:1070px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(model.getValue("/root/main/isoldispdisplists/isoldispdisplist/pid") == "" || model.getValue("/root/main/isoldispdisplists/isoldispdisplist/pid") == null) {
- messageBox("저장할 데이터가", "I004");
- return;
- }
- else{
- var selstatus;
- for(var i=1; i < grd_isoldesplist.rows; i++){
- selstatus=model.getValue("/root/main/isoldispdisplists/isoldispdisplist[" + i + "]/isolcnfmyn");
- if(selstatus =="Y") {
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/savedata/data",grd_isoldesplist.getUpdateDataAll("i"));
- submit("TXASB01201");
- //Update 후 재조회
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRASB01201");
- break;
- }
- }
- if(selstatus== "N" || selstatus == "" || selstatus== null) messageBox("저장할 데이터를", "C002");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|