123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <search>
- <fromdd/>
- <todd/>
- <pid/>
- <hngnm/>
- <orddeptcd/>
- <offset/>
- <pagesize>1000</pagesize>
- </search>
- <iohslist>
- <iohsinfo>
- <pid/>
- <patnm/>
- <depthngnm/>
- <indd/>
- <dschdd/>
- <atdrid/>
- <chngdept/>
- <sexflag/>
- <brthdd/>
- <maindiagnm/>
- <etcdiagnm/>
- <pi/>
- <mainopcure/>
- <cureplan/>
- <wrtedrid/>
- <curerslt/>
- <dschtype/>
- <reinyn/>
- <reopflag/>
- <biopsyyn/>
- <lastdiagnm/>
- <lastdiagcmt/>
- </iohsinfo>
- </iohslist>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <reqdata/>
- <cond/>
- </send>
- <temp>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <autoflag/>
- <srchcond/>
- <autoflag/>
- </temp>
- <init>
- <dept>
- <dept/>
- </dept>
- </init>
- </root>
- </instance>
- <submission id="TRMMR08101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" add="bottom" resultref="/root/main/iohslist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //화면 초기 설정
- fInitialize();
-
- ]]>
- </script>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/medirecweb/js/SMMMR08100.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/common.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,5;2,-3;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" overflow="scroll" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <line id="line1" class="line_1" style="x1:1px; y1:93px; x2:1195px; y2:93px; "/>
- <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:62px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:6px; top:10px; width:91px; height:17px; ">퇴원일자 :</caption>
- <input id="ipt_fromdd" ref="/root/main/search/fromdd" class="input_search" inputtype="date" style="left:95px; top:10px; width:115px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 시작일 > 종료일 에러 처리
- if(ipt_todd.value !="")
- {
- if(ipt_fromdd.value > ipt_todd.value)
- {
- messageBox("종료일 이전 날자만 입력","I006");
- ipt_fromdd.value = "";
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_no_b" style="left:230px; top:10px; width:12px; height:17px; ">~</caption>
- <input id="ipt_todd" ref="/root/main/search/todd" class="input_search" inputtype="date" style="left:260px; top:10px; width:115px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //퇴원일자(todd)를 변경하였을 때 그 날짜에 대한 진료과 검색
-
- //진료과 코드 검색
- cmb_orddeptcd.deselect();
- fGetDeptList();
- if(ipt_todd.value< ipt_fromdd.value)
- {
- messageBox("시작일 이후 날자만 입력","I006");
- ipt_todd.value ="";
- }
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:7px; top:37px; width:91px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/main/search/pid" class="input_search" style="left:96px; top:37px; width:114px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- if(event.keyCode == 13){
- model.setValue("/root/temp/srchcond", 1);
- model.setValue("/root/temp/autoflag", "Y");
- model.setValue("/root/main/search/pid", ipt_pid.currentText);
- btn_usrsrch.dispatch("DOMActivate");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_usrsrch" class="icon_search" style="left:220px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPatPopUp();
- ]]>
- </script>
- </button>
- <output id="opt_hngnm" ref="/root/main/search/hngnm" class="output_fix" style="left:260px; top:35px; width:100px; height:19px; "/>
- <line id="line2" style="x1:1122px; y1:5px; x2:1122px; y2:56px; border-color:#ffcc99; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1130px; top:10px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //조건 조회 전 유효한 값이 입력되었는지 체크해 준다.
- if(ipt_fromdd.value=="" && ipt_todd.value=="")
- {
- //조회버튼 Click 입퇴원기록 조회
- fGetiohsHist();
- }
- else if (ipt_fromdd.value !="" && ipt_todd.value !="")
- {
- fGetiohsHist();
- }
- else
- messageBox("퇴원 시작/종료 기간을 정확히","C001");
- ]]>
- </script>
- </button>
- <caption id="caption6" class="search_name" style="left:445px; top:10px; width:91px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/main/search/orddeptcd" class="combo_search" appearance="minimal" editmode="input" style="left:525px; top:10px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption4" class="tit_2" style="left:5px; top:78px; width:100px; height:13px; ">입퇴원목록</caption>
- <datagrid id="grd_iohistinfo" nodeset="/root/main/iohslist/iohsinfo" caption="등록번호^환자명^퇴원과^입원일^퇴원일^주치의^전과^성별^생년월일^주진단명^기타진단명^PI^주수술및처치^치료계획^작성의사^치료결과^퇴원형태^재입원여부^재수술여부^조직검사여부^최종진단명^최종진단소견" colsep="^" colwidth="90, 92, 96, 100, 100, 92, 92, 50, 100, 100, 100, 654, 100, 100, 92, 100, 98, 114, 114, 86, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:95px; width:1194px; height:617px; ">
- <col ref="pid" style="text-align:left; "/>
- <col ref="patnm" style="text-align:left; "/>
- <col ref="depthngnm" style="text-align:left; "/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="dschdd" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="atdrid" style="text-align:left; "/>
- <col ref="chngdept" style="left:616px; top:23px; width:92px; height:23px; text-align:left; "/>
- <col ref="sexflag" style="text-align:left; "/>
- <col ref="brthdd" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="maindiagnm" style="text-align:left; "/>
- <col ref="etcdiagnm" style="text-align:left; "/>
- <col ref="pi" style="text-align:left; "/>
- <col ref="mainopcure" style="text-align:left; "/>
- <col ref="cureplan" style="text-align:left; "/>
- <col ref="wrtedrid" style="text-align:left; "/>
- <col ref="curerslt" style="text-align:left; "/>
- <col ref="dschtype" style="text-align:left; "/>
- <col ref="reinyn" style="text-align:left; "/>
- <col ref="reopflag" style="text-align:left; "/>
- <col ref="biopsyyn" style="text-align:left; "/>
- <col ref="lastdiagnm" style="text-align:left; "/>
- <col ref="lastdiagcmt" style="text-align:left; "/>
- <script type="javascript" ev:event="onscrolldown">
- <![CDATA[
- if(grd_iohistinfo.vscroll.attribute("max") == grd_iohistinfo.vscroll.attribute("pos")) {
- model.setValue("/root/send/reqdata/offset", grd_iohistinfo.rows-grd_iohistinfo.fixedRows); // grid의 header row는 제외
- submit("TRMMR08101");
- grd_iohistinfo.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn2_letter4" style="left:1120px; top:70px; width:71px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var selectValue1 = true;
- var selectValue2 = 1;
- var today = getCurrentDate();
- var fileName = window.fileDialog("save", ",", false, "입퇴원요약지_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_iohistinfo.saveExcel(fileName, "sheetname:sheet1;col_08:label;col_13:label;col_17:label;col_23:label;");
- }
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption5" class="tit_1" style="left:0px; top:0px; width:120px; height:13px; ">입퇴원기록조회</caption>
- </xhtml:body>
- </xhtml:html>
|