123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMASI00700.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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <feverpatrefinfo>
- </feverpatrefinfo>
- <cond>
- <fromdd/>
- <todd/>
- <pid/>
- <chk/>
- <bdtp/>
- <upndown/>
- <tims/>
- <wardcd/>
- </cond>
- </main>
- <send>
- <reqdata/>
- </send>
- <hidden>
- <popupmenu>
- <grid01>
- <item>
- <name>통합기록조회</name>
- <func>fSytsRecRefPopup</func>
- </item>
- <item>
- <name>병원감염보고서등록</name>
- <func>fHospInfcReptPopup</func>
- </item>
- </grid01>
- </popupmenu>
- <selecteddata>
- <selectedpid/>
- <selectedindd/>
- <selectedrgstdt/>
- </selecteddata>
- </hidden>
- <init>
- <initdate>
- <today/>
- </initdate>
- <deptlist>
- </deptlist>
- <warddeptlist>
- </warddeptlist>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- model.removeNodeset("/root/main/feverpatrefinfo");
- model.refresh();
- ]]>
- </script>
- <submission id="TRASI00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/feverpatrefinfo"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </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">
- <![CDATA[
- function fInitialize() {
- // 공통코드를 조회한다.
-
- // 진료과
- 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_wardcd","","","above");
- var today = getCurrentDate();
- var idate = new Date();
- var peveDate = idate.getAddDate(-1, "M");
- model.setValue("/root/init/initdate/today", today);
- model.makeValue("/root/send/cond/trgtmancnt", "I");
- model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
- model.makeValue("/root/send/cond/todd", today);
- model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
- model.setValue("/root/main/cond/todd", today);
- model.refresh();
- }
- //상단정보설정
- function fUpInfo(){
- var sessionPID = getPatientId();
- if(sessionPID != model.getValue("/root/main/feverpatrefinfo/feverpatreflist["+grd_feverpatreflist.row+"]/pid")){
- fReqOpPatPamInfo();
- }
- }
-
- function fReqOpPatPamInfo(){
-
- var tioflag=model.getValue("/root/main/feverpatrefinfo/feverpatreflist["+grd_feverpatreflist.row+"]/ioflag");
- // if(tioflag == "I") {
- var ioflag="I";
- var pid= model.getValue("/root/main/feverpatrefinfo/feverpatreflist["+grd_feverpatreflist.row+"]/pid");
- var indd=model.getValue("/root/main/feverpatrefinfo/feverpatreflist["+grd_feverpatreflist.row+"]/indd");
- var cretno=model.getValue("/root/main/feverpatrefinfo/feverpatreflist["+grd_feverpatreflist.row+"]/cretno") ;
- var seqno=model.getValue("/root/main/feverpatrefinfo/feverpatreflist["+grd_feverpatreflist.row+"]/seqno");
- var instcd=getUserInfo("dutplceinstcd");
- var srchdd=getCurrentDate();
- var param= ioflag + "▦" //입원환자
- + pid + "▦"
- + indd + "▦"
- + cretno + "▦"
- + instcd+ "▦"
- + srchdd;
- setParameter("condparam", param);
- // }
- // else if(tioflag == "O") {
- // var ioflag="O";
- // var pid= model.getValue("/root/main/feverpatrefinfo/feverpatreflist["+grd_feverpatreflist.row+"]/pid");
- // var orddd=model.getValue("/root/main/feverpatrefinfo/feverpatreflist["+grd_feverpatreflist.row+"]/indd");
- // var cretno=model.getValue("/root/main/feverpatrefinfo/feverpatreflist["+grd_feverpatreflist.row+"]/cretno") ;
- // var instcd=getUserInfo("dutplceinstcd");
- // var srchdd=getCurrentDate();
- // var param= ioflag + "▦" //외래환자
- // + pid + "▦"
- // + orddd + "▦"
- // + cretno + "▦"
- // + instcd;
- // setParameter("condparam", param);
- // }
-
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
-
- function fSytsRecRefPopup(){
- var sessionPID = getPatientId();
- if(sessionPID != model.getValue("/root/main/feverpatrefinfo/feverpatreflist["+grd_feverpatreflist.row+"]/pid")){
- fReqOpPatPamInfo();
- }
- setParameter("SMMRI00400_param_pid", sessionPID);
- modal("SMMRI00400",1,10,10,"SMMRI00400", "", "/root/hidden/oprecinfo/info");
- }
-
- function fPrcpRefPopup() {
- var sessionPID = getPatientId();
- if(sessionPID != model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/pid")){
- fReqOpPatPamInfo();
- }
- modal("SPTMP00100", "", "", "", "popup", "/root/send", "/root/main/grid01");
- }
-
- function fHospInfcReptPopup() {
- var sessionPID = getPatientId();
- if(sessionPID != model.getValue("/root/main/feverpatrefinfo/feverpatreflist["+grd_feverpatreflist.row+"]/pid")){
- fReqOpPatPamInfo();
- }
- setParameter("setVal9", model.getValue("/root/main/feverpatrefinfo/feverpatreflist[" + grd_feverpatreflist.row + "]/recdt"));
- setParameter("setVal10", model.getValue("/root/main/feverpatrefinfo/feverpatreflist[" + grd_feverpatreflist.row + "]/bdtp"));
- open("SMASI00100", 1,10,10, "SMASI00100");
- //window.close();
- }
- /*===============================================================================
- @desc : 발열환자 조회
- ===============================================================================*/
- function fGetFeverPatList(){
- if( (model.getValue("/root/main/cond/bdtp" ) != "") &&
- (model.getValue("/root/main/cond/upndown") == "") ) {
- var rtn = messageBox("검색할 체온의 기준을", "C001");
- return;
- }
-
- if( !isRequiredControls("ipt_fromdd","ipt_todd") ){
- return;
- }
-
- //조회일자제한(15일-서버부하를 줄이기 위함임)
- var reqTerm = getDateInterval(model.getValue(ipt_fromdd.attribute("ref") ) , model.getValue(ipt_todd.attribute("ref")) );
- if( reqTerm > 31 ) {
- messageBox("최대조회기간을 초과하였습니다. 조회기간을 다시 ", "C001");
- return ;
- }
-
- model.makeNode("/root/send/cond");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- openLoadingBar("발열환자정보 ") ;//처리중 화면을 오픈한다.
- submit("TRASI00701");
- closeLoadingBar() ;//처리중 화면을 close한다.
-
- setTree(grd_feverpatreflist,2,1,true);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body idprefix="import" 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:145px; 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" visibility="hidden" style="left:5px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/feverpatrefinfo");
- 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:0px; y1:113px; x2:1194px; y2:113px; "/>
- <line id="line5" class="line_1" style="x1:0px; y1:84px; x2:1194px; y2:84px; "/>
- <group id="group6" style="left:1px; top:0px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:59px; "/>
- <line id="line8" class="line_4" style="x1:1110px; y1:10px; x2:1110px; y2:53px; "/>
- <caption id="caption15" class="search_name" style="left:375px; top:35px; width:86px; height:17px; ">체온 :</caption>
- <caption id="caption16" class="search_name" style="left:780px; top:10px; width:66px; height:17px; ">횟수 :</caption>
- <caption id="caption21" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">등록번호 :</caption>
- <caption id="caption2" class="search_no_b" style="left:220px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption1" class="search_name" style="left:780px; top:34px; width:66px; height:17px; ">병동 :</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:108px; top:11px; width:110px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:232px; top:11px; width:110px; height:19px; "/>
- <input id="ipt_pid" ref="/root/main/cond/pid" class="input_default" maxlength="10" style="left:108px; top:34px; width:110px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- // var pidlength = model.getValue("/root/main/cond/pid");
- // if( pidlength.length > 0 && pidlength.length < 8) {
- // model.alert("등록번호는 8자리 이상입니다.");
- // model.setFocus("ipt_pid");
- // return;
- // }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_bdtp" ref="/root/main/cond/bdtp" class="input_default" style="left:445px; top:35px; width:115px; height:19px; "/>
- <select1 id="cmb_upndown" ref="/root/main/cond/upndown" class="combo_search" appearance="minimal" style="left:564px; top:35px; width:75px; height:19px; ">
- <choices>
- <item>
- <label>이상</label>
- <value>U</value>
- </item>
- <item>
- <label>이하</label>
- <value>D</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_search" appearance="minimal" style="left:850px; top:34px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/warddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_tims" ref="/root/main/cond/tims" class="input_search" style="left:849px; top:10px; width:89px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(isNull(model.getValue("/root/main/cond/bdtp")) || isNull(model.getValue("/root/main/cond/upndown"))){
- messageBox("검색할 체온을 먼저", "C001");
- return;
- }
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:1126px; top:21px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetFeverPatList();
- ]]>
- </script>
- </button>
- <caption id="importcaption1" class="search_name" style="left:375px; top:10px; width:148px; height:17px; ">현재 재원중인 환자 :</caption>
- <select id="chk_chk" ref="/root/main/cond/chk" overflow="visible" appearance="full" style="left:525px; top:10px; width:225px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>재원중 환자(기간 선택으로 조회 안함)</label>
- <value>C</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/main/cond/chk") == "C"){
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
- }else{
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- }
- ]]>
- </script>
- </select>
- <caption id="cap_fromdd" class="search_name" visibility="hidden" style="left:15px; top:9px; width:89px; height:17px; ">기간선택 :</caption>
- <caption id="cap_todd" class="search_name" style="left:15px; top:9px; width:89px; height:17px; ">기간선택 :</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:84px; x2:1194px; y2:84px; "/>
- <button id="btn_excel" class="btn2_letter2" style="left:1062px; top:63px; 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_feverpatreflist.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);
- }
- }
- /*
- var fileName = window.fileDialog("save", "", false, "발열환자조회", "xls", "Excel File(*.xls)|*.xls");
-
- if( fileName == "" )
- return;
- // excel application 실행함
- tfexcel.launchnewinstance(0);
-
- //실행된 excel application에서 새로운 workbook을 생성
- tfexcel.createworkbook();
-
- var sheetArray = new Array("grd_feverpatreflist|발열환자조회");
- 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>
- <button id="btn_spread" class="btn2_letter2" style="left:1107px; top:63px; width:42px; height:19px; ">
- <caption>펼침</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTree(grd_feverpatreflist,2,1,false);
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn2_letter2" style="left:1152px; top:63px; width:42px; height:19px; ">
- <caption>닫침</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTree(grd_feverpatreflist,2,1,true);
- ]]>
- </script>
- </button>
- <datagrid id="grd_feverpatreflist" nodeset="/root/main/feverpatrefinfo/feverpatreflist" caption="등록번호^level^성명^기록일시^체온^발열시병실^성별^나이^진료과^주치의코드^주치의^병동^병실^입원일^퇴원일^재원기간^진단명^cretno^seqno^instcd" colsep="^" colwidth="90, 40, 76, 80, 50, 83, 35, 50, 90, 70, 73, 93, 73, 80, 80, 50, 200, 100, 100, 100" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:89px; width:1194px; height:641px; ">
- <col ref="pid"/>
- <col ref="levl" visibility="hidden"/>
- <col ref="name"/>
- <col ref="recdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="bdtp"/>
- <col ref="bdtpward"/>
- <col ref="sexflag"/>
- <col ref="age"/>
- <col ref="orddeptcd"/>
- <col ref="atdoct" visibility="hidden"/>
- <col ref="atdoctnm"/>
- <col disabled="true" ref="wardcd"/>
- <col ref="roomcd"/>
- <col disabled="true" ref="indd" format="yyyy-mm-dd"/>
- <col ref="dschdd" format="yyyy-mm-dd"/>
- <col ref="inhospterm"/>
- <col ref="diagnm"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_feverpatreflist", false, "/root/hidden/popupmenu/grid01/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_feverpatreflist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var levlflag=model.getValue("/root/main/feverpatrefinfo/feverpatreflist["+grd_feverpatreflist.row+"]/levl");
-
- if (levlflag == 1){
- messageBox("상단정보를 셋팅하거나 팝업창을 띄울때는 펼침을눌러서 하위 리스트를","C002");
- return;
- }
-
- if((grd_feverpatreflist.mouseRow > 0) && ( grd_feverpatreflist.mouseRow <= grd_feverpatreflist.rows )) {
- fReqOpPatPamInfo();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var iRow = grd_feverpatreflist.row;
- model.resetInstanceNode("/root/hidden/selecteddata");
- model.setValue("/root/hidden/selecteddata/selectedpid", model.getValue("/root/main/feverpatrefinfo/feverpatreflist[" +iRow + "]/pid"));
- model.setValue("/root/hidden/selecteddata/selectedindd", model.getValue("/root/main/feverpatrefinfo/feverpatreflist[" +iRow + "]/indd"));
- ]]>
- </script>
- </datagrid>
- <caption id="caption25" class="tit_2" style="left:0px; top:69px; width:178px; height:13px; ">발열환자</caption>
- <object id="tfexcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" visibility="hidden" style="left:975px; top:25px; width:210px; height:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|