123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMASB00100.xrw
- * 설 명 : 병동재원환자조회
- * 수정이력 : 조회함수생성 및 자격공통코드내역조회추가/2007-11-13 /손주연
- * 기 타 :
- -->
- <?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>
- <inhosppatinfo>
- </inhosppatinfo>
- <cond>
- <indd/>
- <wardcd/>
- <offset/>
- <pagesize>200</pagesize>
- </cond>
- <ipatinfo/>
- <dschpatinfo/>
- <inrminfo/>
- <chngroominfo/>
- </main>
- <send>
- <reqdata/>
- </send>
- <hidden>
- </hidden>
- <init>
- <initdate>
- <today/>
- </initdate>
- <warddeptlist>
- </warddeptlist>
- <deptlist>
- </deptlist>
- <insukind>
- <P0008/>
- </insukind>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- model.removeNodeset("/root/main/inhosppatinfo");
- model.setValue("/root/main/cond/indd", getCurrentDate());
- model.refresh();
- ]]>
- </script>
- <submission id="TRASB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" add="bottom" resultref="/root/main/inhosppatinfo"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00101"/>
- <submission id="TRASB00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/ipatinfo"/>
- <submission id="TRASB00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dschpatinfo"/>
- <submission id="TRASB00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/inrminfo"/>
- <submission id="TRASB00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/chngroominfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <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">
- <![CDATA[
- function fInitialize() {
- // 공통코드를 조회한다.
- zbcfGetCodeList( new Array( "P0008" )
- , new Array("/root/init/insukind" ));
- submit("TRZBC00101");
-
- // 진료과
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/init/deptlist";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
-
- //병동
- standard_yn = "orduseyn";
- ord_deptflag = "W";
- rslt_ref = "/root/init/warddeptlist";
- sort_field = "deptcd";
- sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
- addComboItem("cmb_ward","","","above");
- model.refresh();
-
-
- }
- /*===========================================================================
- @desc : 병동별/일자별 재원환자조회
- ===========================================================================*/
- function fGetInPatList(){
- model.removeNodeset(grd_inhosppatlist.nodeset);
- model.removeNodeset(grd_ipatlist.nodeset);
- model.removeNodeset(grd_dschpatlist.nodeset);
- model.removeNodeset(grd_inrmlist.nodeset);
- model.removeNodeset(grd_chngroomlist.nodeset);
-
- if( !isRequiredControls("ipt_indd") ){
- return;
- }
-
- model.setValue("/root/main/cond/offset", "0");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- openLoadingBar("병동재원환자정보 ") ;//처리중 화면을 오픈한다.
-
- submit("TRASB00101"); //재원
- submit("TRASB00102"); //입원
- submit("TRASB00103"); //퇴원
- submit("TRASB00104"); //입실
- submit("TRASB00105"); //전실
-
- closeLoadingBar() ;//처리중 화면을 close한다.
- }
-
- function fSubmitOnScroll() {
- if(grd_inhosppatlist.vscroll.attribute("max") == grd_inhosppatlist.vscroll.attribute("pos")) {
- model.setValue("/root/send/reqdata/offset", grd_inhosppatlist.rows-grd_inhosppatlist.fixedRows);
- submit("TRASB00101"); //재원
- grd_inhosppatlist.dispatch("onmouseup");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,23;" 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; ">
- <line id="line4" class="line_3" style="x1:0px; y1:781px; x2:1194px; y2:781px; "/>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:162px; height:14px; ">병동재원환자조회</caption>
- </group>
- </group>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_print" class="btn6_letter2" style="left:3px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1123px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/inhosppatinfo");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:23px; width:1195px; height:737px; ">
- <line id="line6" class="line_3" style="x1:430px; y1:379px; x2:805px; y2:379px; "/>
- <line id="line5" class="line_1" style="x1:0px; y1:69px; x2:400px; y2:69px; "/>
- <group id="group6" style="left:1px; top:0px; width:1194px; height:39; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:39px; "/>
- <line id="line8" class="line_4" style="x1:1110px; y1:10px; x2:1110px; y2:33px; "/>
- <input id="ipt_indd" ref="/root/main/cond/indd" class="input_s_essential" inputtype="date" style="left:95px; top:10px; width:135px; height:19px; "/>
- <select1 id="cmb_ward" ref="/root/main/cond/wardcd" class="combo_s_essential" navindex="10" appearance="minimal" style="left:395px; top:10px; width:127px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/warddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetInPatList();
- ]]>
- </script>
- </select1>
- <button id="btn_search" class="btn1_letter2" style="left:1126px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetInPatList();
- ]]>
- </script>
- </button>
- <caption id="cap_indd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">진료일 :</caption>
- <caption id="cap_ward" class="search_name" style="left:330px; top:9px; width:61px; height:17px; ">병동 :</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:420px; y2:69px; "/>
- <caption id="caption35" class="tit_2" style="left:5px; top:54px; width:111px; height:13px; ">재원환자</caption>
- <caption id="caption1" class="tit_2" style="left:435px; top:54px; width:111px; height:13px; ">입원환자</caption>
- <line id="line2" class="line_1" style="x1:430px; y1:69px; x2:805px; y2:69px; "/>
- <caption id="caption3" class="tit_2" style="left:820px; top:54px; width:111px; height:14px; ">퇴원환자</caption>
- <line id="line3" class="line_1" style="x1:817px; y1:69px; x2:1192px; y2:69px; "/>
- <caption id="caption4" class="tit_2" style="left:435px; top:394px; width:122px; height:14px; ">입실</caption>
- <line id="line7" class="line_1" style="x1:430px; y1:409px; x2:805px; y2:409px; "/>
- <caption id="caption5" class="tit_2" style="left:820px; top:394px; width:122px; height:14px; ">전실</caption>
- <line id="line9" class="line_1" style="x1:817px; y1:409px; x2:1192px; y2:409px; "/>
- <line id="line10" class="line_3" style="x1:430px; y1:735px; x2:805px; y2:735px; "/>
- <line id="line11" class="line_3" style="x1:815px; y1:379px; x2:1190px; y2:379px; "/>
- <line id="line12" class="line_3" style="x1:815px; y1:735px; x2:1190px; y2:735px; "/>
- <line id="line13" class="line_3" style="x1:0px; y1:735px; x2:420px; y2:735px; "/>
- <datagrid id="grd_inhosppatlist" nodeset="/root/main/inhosppatinfo/inhosppatlist" class="datagrid2" caption="등록번호^성명^S/A^성별^나이^진료과^주치의^병동^병실^진단코드^진단명^재원기간^입원일자^수술일자^퇴원
통보^보험유형" colsep="^" colwidth="63, 70, 45, 35, 50, 50, 81, 110, 80, 70, 350, 64, 84, 87, 37, 118" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:74px; width:420px; height:661px; ">
- <col ref="pid"/>
- <col ref="name"/>
- <col ref="sa"/>
- <col ref="sex" visibility="hidden"/>
- <col ref="age" visibility="hidden"/>
- <col ref="orddeptcd"/>
- <col ref="orddr"/>
- <col ref="wardcd"/>
- <col ref="roomcd"/>
- <col ref="diagcd" visibility="hidden"/>
- <col ref="diagnm"/>
- <col ref="inhospterm"/>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="opdd" format="yyyy-mm-dd"/>
- <col ref="dschnotiyn" style="text-align:center; "/>
- <col disabled="true" ref="insukind" type="combo">
- <choices>
- <itemset nodeset="/root/init/insukind/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_inhosppatlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onscroll">
- <![CDATA[
- /*fSubmitOnScroll();*/
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_ipatlist" nodeset="/root/main/ipatinfo/ipatlist" class="datagrid2" caption="등록번호^성명^S/A^성별^나이^병동^병실^진료과^주치의^진단코드^진단명^재원기간^입원일자^수술일자^퇴원
통보^보험유형" colsep="^" colwidth="63, 70, 45, 35, 50, 110, 80, 50, 80, 70, 350, 64, 84, 87, 37, 118" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:430px; top:74px; width:375px; height:305px; ">
- <col ref="pid"/>
- <col ref="name"/>
- <col ref="sa"/>
- <col ref="sex" visibility="hidden"/>
- <col ref="age" visibility="hidden"/>
- <col ref="wardcd"/>
- <col ref="roomcd"/>
- <col ref="orddeptcd"/>
- <col ref="orddr"/>
- <col ref="diagcd" visibility="hidden"/>
- <col ref="diagnm"/>
- <col ref="inhospterm"/>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="opdd" format="yyyy-mm-dd"/>
- <col ref="dschnotiyn" style="text-align:center; "/>
- <col disabled="true" ref="insukind" type="combo">
- <choices>
- <itemset nodeset="/root/init/insukind/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_ipatlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_dschpatlist" nodeset="/root/main/dschpatinfo/dschpatlist" class="datagrid2" caption="등록번호^성명^S/A^성별^나이^병동^병실^진료과^주치의^진단코드^진단명^재원기간^입원일자^수술일자^퇴원
통보^사망
유무^보험유형^협진
의뢰^퇴원
처방^퇴원
통보^회신
존재^보험유형" colsep="^" colwidth="63, 70, 45, 35, 50, 110, 80, 50, 80, 70, 350, 64, 84, 87, 36, 36, 100" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:816px; top:74px; width:375px; height:305px; ">
- <col ref="pid"/>
- <col ref="name"/>
- <col ref="sa"/>
- <col ref="sex" visibility="hidden"/>
- <col ref="age" visibility="hidden"/>
- <col ref="wardcd"/>
- <col ref="roomcd"/>
- <col ref="orddeptcd"/>
- <col ref="orddr"/>
- <col ref="diagcd" visibility="hidden"/>
- <col ref="diagnm"/>
- <col ref="inhospterm"/>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="opdd" format="yyyy-mm-dd"/>
- <col ref="dschnotiyn" style="text-align:center; "/>
- <col ref="dethyn" style="text-align:center; "/>
- <col disabled="true" ref="insukind" type="combo">
- <choices>
- <itemset nodeset="/root/init/insukind/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dschpatlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_inrmlist" nodeset="/root/main/inrminfo/inrmlist" class="datagrid2" caption="등록번호^성명^S/A^FROM^TO^진료과^주치의^진단코드^진단명^재원기간^입원일자^수술일자^퇴원
통보^보험유형" colsep="^" colwidth="63, 70, 45, 87, 87, 50, 80, 70, 350, 64, 84, 87, 37, 118" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:430px; top:414px; width:375px; height:321px; ">
- <col ref="pid"/>
- <col ref="name"/>
- <col ref="sa"/>
- <col ref="prestroomcd"/>
- <col ref="roomcd"/>
- <col ref="orddeptcd"/>
- <col ref="orddr"/>
- <col ref="diagcd" visibility="hidden"/>
- <col ref="diagnm"/>
- <col ref="inhospterm"/>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="opdd" format="yyyy-mm-dd"/>
- <col ref="dschnotiyn" style="text-align:center; "/>
- <col disabled="true" ref="insukind" type="combo">
- <choices>
- <itemset nodeset="/root/init/insukind/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_inrmlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_chngroomlist" nodeset="/root/main/chngroominfo/chngroomlist" class="datagrid2" caption="등록번호^성명^S/A^FROM^TO^진료과^주치의^진단코드^진단명^재원기간^입원일자^수술일자^퇴원
통보^보험유형" colsep="^" colwidth="63, 70, 45, 87, 87, 50, 80, 70, 350, 64, 84, 87, 37, 118" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:816px; top:414px; width:375px; height:321px; ">
- <col ref="pid"/>
- <col ref="name"/>
- <col ref="sa"/>
- <col ref="roomcd"/>
- <col ref="chngroomcd"/>
- <col ref="orddeptcd"/>
- <col ref="orddr"/>
- <col ref="diagcd" visibility="hidden"/>
- <col ref="diagnm"/>
- <col ref="inhospterm"/>
- <col ref="indd" format="yyyy-mm-dd"/>
- <col ref="opdd" format="yyyy-mm-dd"/>
- <col ref="dschnotiyn" style="text-align:center; "/>
- <col disabled="true" ref="insukind" type="combo">
- <choices>
- <itemset nodeset="/root/init/insukind/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_chngroomlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn2_letter2" style="left:1148px; top:49px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", "", false, "CMC_Excel", "xls", "Excel File(*.xls)|*.xls");
- if( fileName == "" )
- return;
- // excel application 실행함
- tfexcel.launchnewinstance(0);
-
- //실행된 excel application에서 새로운 workbook을 생성
- tfexcel.createworkbook();
-
- var sheetArray = new Array("grd_inhosppatlist|재원환자", "grd_ipatlist|입원환자", "grd_dschpatlist|퇴원환자", "grd_inrmlist|입실", "grd_dschpatlist|전실");
- var sheetArrayLen = sheetArray.length;
- var gridId;
- var gridObj;
- var sheetName;
- var nResult;
-
- for( var i = 0; i < sheetArrayLen; i++ ) {
-
- gridId = sheetArray[i].split("|")[0];
- gridObj = document.all.item(gridId);
-
- sheetName = sheetArray[i].split("|")[1];
-
- if( i > 1 ) {
- nResult = tfexcel.activatesheet(i+1);
- tfexcel.sheetname(i+1) = sheetName;
- }
- else {
- nResult = tfexcel.addsheet(i+1, sheetName);
- }
- if( nResult < 0 ) {
- messageBox(sheetName + " 저장을", "E009");
- // alert(sheetName + " 오류발생");
- return;
- }
- gridObj.saveText("C:\\Temp\\tmp_TFExcel.csv", "\n", ",", '\:', true);
- tfexcel.loadCSV("C:\\Temp\\tmp_TFExcel.csv");
- }
-
- //workbook을 저장.
- tfexcel.save(fileName);
-
- //excel application을 종료. excel application 생성 후 반드시 close해야함.
- tfexcel.close();
-
- // CSV File 삭제
- var fso = new ActiveXObject("Scripting.FileSystemObject");
- fso.DeleteFile("C:\\Temp\\tmp_TFExcel.csv");
-
- var rmsg = messageBox("저장된 Excel을", "Q004");
- if( rmsg == 6 )
- window.exec("excel.exe", '\"' + fileName + '\"');
- ]]>
- </script>
- </button>
- </group>
- <object id="tfexcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" visibility="hidden" style="left:860px; top:30px; width:210px; height:25px; "/>
- </xhtml:body>
- </xhtml:html>
|