123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <srchflag>D</srchflag>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <medispclid/>
- <atdoctid/>
- <ampmflag>-</ampmflag>
- <weekflag>-</weekflag>
- <frommm/>
- <tomm/>
- <inflag>-</inflag>
- </cond>
- <dcclist>
- <dccidxpatlist>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <diagnm/>
- <orddeptnm/>
- <medispclnm/>
- <indd/>
- <opcd/>
- <weeknm/>
- <opnm/>
- <ampmflag/>
- <chngroomstat/>
- <careinstat/>
- <opstat/>
- <staytm/>
- </dccidxpatlist>
- <dccidxstslist>
- <deptengabbr/>
- <orddeptnm/>
- <bfcnt/>
- <nowcnt/>
- <totalcnt/>
- <addper/>
- </dccidxstslist>
- </dcclist>
- </main>
- <send/>
- <init>
- </init>
- <code/>
- <result>
- </result>
- <temp>
- <cond>
- <doctlist>
- <medispcl/>
- <atdoct/>
- </doctlist>
- </cond>
- </temp>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitScreen();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitScreen(){
-
- group2.visible = true;
- group3.visible = false;
-
- grd_dccidxpatlist.visible = true;
- grd_dccidxstslist.visible = false;
-
- line1.visible = true;
- line2.visible = false;
-
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/temp/cond/deptgrup/deptgruplist";
- var sort_field = "dispseq";
- var sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
-
- addComboItem("cmb_orddeptlist", "전체" , "-" , "above" );
- addComboItem("cmb_medispclid", "전체" , "-" , "above" );
- addComboItem("cmb_atdoctid", "전체" , "-" , "above" );
-
- var fromdd = getCurrentDate().substr(0, 6) + "01";
- var todd = getDateCalc(getCurrentDate(), 1) ;
-
- model.setValue("/root/main/cond/srchflag", "D");
- model.setValue("/root/main/cond/frommm", getDateCalc(fromdd, 2).substr(0, 6) );
- model.setValue("/root/main/cond/tomm", todd.substr(0, 6));
- model.setValue("/root/main/cond/fromdd", fromdd);
- model.setValue("/root/main/cond/todd", todd);
- model.setValue("/root/main/cond/orddeptcd", "-");
- model.setValue("/root/main/cond/medispclid", "-");
- model.setValue("/root/main/cond/atdoctid", "-");
- model.setValue("/root/main/cond/ampmflag", "-");
- model.setValue("/root/main/cond/weekflag", "-");
- model.setValue("/root/main/cond/inflag", "-");
-
- model.refresh();
-
- fSearch();
- }
-
- function fSearch(){
- model.removeNodeset("/root/send");
- model.makeNode("/root/send");
- model.copyNode("/root/send", "/root/main/cond");
-
- submit("TRMNP06901");
- }
-
- ]]>
- </script>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <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="TRMMO00129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
- <submission id="TRMNP06901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dcclist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <line id="line8" class="line_3" style="x1:0px; y1:55px; x2:1179px; y2:55px; "/>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">단기 입원 치료실 환자 관리</caption>
- <group id="group1" style="left:0px; top:21px; width:1194px; height:39px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" b-color="#ffd799" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:39px; background-color:#fffbf2; "/>
- <line id="line25" class="line_4" style="x1:1010px; y1:9px; x2:1010px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="rdo_srchflag" ref="/root/main/cond/srchflag" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:10px; top:12px; width:101px; height:20px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>일별</label>
- <value>D</value>
- </item>
- <item>
- <label>월별</label>
- <value>M</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- switch(rdo_srchflag.value){
- case "D" :
- group2.visible = true;
- group3.visible = false;
-
- grd_dccidxpatlist.visible = true;
- grd_dccidxstslist.visible = false;
-
- line1.visible = true;
- line2.visible = false;
- caption9.value = "일별 조회 내역";
- break;
- case "M" :
- group2.visible = false;
- group3.visible = true;
- grd_dccidxpatlist.visible = false;
- grd_dccidxstslist.visible = true;
-
- line1.visible = false;
- line2.visible = true;
- caption9.value = "월별 조회 내역";
- break;
- default:
- group2.visible = false;
- group3.visible = false;
- grd_dccidxpatlist.visible = false;
- grd_dccidxstslist.visible = false;
- line1.visible = false;
- line2.visible = false;
-
- caption9.value = "";
- break;
- }
-
- fSearch();
- ]]>
- </script>
- </select1>
- <group id="group2" style="left:120px; top:0px; width:1074px; height:39px; background-color:transparent; ">
- <caption id="caption7" class="search_no_b" style="left:96px; top:12px; width:12px; height:17px; ">~</caption>
- <caption id="caption54" class="search_name" style="left:568px; top:12px; width:78px; height:17px; ">담당의 :</caption>
- <caption id="caption2" class="search_name" style="left:209px; top:12px; width:83px; height:17px; ">진료과 :</caption>
- <caption id="caption3" class="search_name" style="left:408px; top:12px; width:78px; height:17px; ">주치의 :</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" inputtype="date" appearance="input" style="left:2px; top:11px; width:90px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/cond/todd" inputtype="date" appearance="input" style="left:112px; top:11px; width:90px; height:19px; "/>
- <select1 id="cmb_orddeptlist" ref="/root/main/cond/orddeptcd" class="combo_default" navindex="2" appearance="minimal" itemcount="20" style="left:283px; top:11px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/cond/deptgrup/deptgruplist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(cmb_orddeptlist.value == "-"){
- addComboItem("cmb_medispclid", "전체" , "-" , "above" );
- addComboItem("cmb_atdoctid", "전체" , "-" , "above" );
- }else{
- //주치의, 담당의 조회 function 호출 (진료)
- mmbfGetUserComboList("/root/send/reqdata", "/root/temp/cond/doctlist/medispcl" , cmb_orddeptlist.value, "0330", "", "M");
- mmbfGetUserComboList("/root/send/reqdata", "/root/temp/cond/doctlist/atdoct", cmb_orddeptlist.value, "0330", "", "A");
-
- //주치의 조회 정보가 0건일 경우 '전체' item 추가
- if( getNodesetCount("/root/temp/cond/doctlist/medispcl/usercombo") < 1 ){
- addComboItem("cmb_medispclid", "전체" , "-" , "above" );
- }else{
- addComboInstance("/root/temp/cond/doctlist/medispcl", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- }
-
- //담당의 조회 정보가 0건일 경우 '전체' item추가
- if( getNodesetCount("/root/temp/cond/doctlist/atdoct/usercombo") < 1 ){
- addComboItem("cmb_atdoctid", "전체" , "-" , "above" );
- }else{
- addComboInstance("/root/temp/cond/doctlist/atdoct", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- }
- model.setValue("/root/main/cond/medispclid", "-");
- model.setValue("/root/main/cond/atdoctid", "-");
- }
- cmb_medispclid.refresh();
- cmb_atdoctid.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_medispclid" ref="/root/main/cond/medispclid" class="combo_default" navindex="3" appearance="minimal" itemcount="20" style="left:483px; top:11px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/cond/doctlist/medispcl/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_atdoctid" ref="/root/main/cond/atdoctid" class="combo_default" navindex="4" appearance="minimal" itemcount="20" style="left:643px; top:11px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/cond/doctlist/atdoct/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_ampmflag" ref="/root/main/cond/ampmflag" appearance="minimal" style="left:733px; top:11px; width:83px; height:19px; ">
- <choices>
- <item>
- <label>오전/오후</label>
- <value>-</value>
- </item>
- <item>
- <label>오전</label>
- <value>A</value>
- </item>
- <item>
- <label>오후</label>
- <value>P</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_weekflag" ref="/root/main/cond/weekflag" appearance="minimal" style="left:818px; top:11px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>요일</label>
- <value>-</value>
- </item>
- <item>
- <label>월</label>
- <value>2</value>
- </item>
- <item>
- <label>화</label>
- <value>3</value>
- </item>
- <item>
- <label>수</label>
- <value>4</value>
- </item>
- <item>
- <label>목</label>
- <value>5</value>
- </item>
- <item>
- <label>금</label>
- <value>6</value>
- </item>
- <item>
- <label>토</label>
- <value>7</value>
- </item>
- <item>
- <label>일</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="group3" visibility="hidden" style="left:120px; top:0px; width:1074px; height:39px; background-color:transparent; ">
- <input id="ipt_tomm" ref="/root/main/cond/tomm" inputtype="date" maxlength="6" format="yyyy-mm" validateformat="true" appearance="input" style="left:2px; top:11px; width:75px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var tomm = model.getValue("/root/main/cond/tomm");
- var frommm = getDateCalc(tomm + "01", 2).substr(0, 6);
- model.setValue("/root/main/cond/frommm", frommm);
- ]]>
- </script>
- </input>
- <select1 id="rdo_inflag" ref="/root/main/cond/inflag" appearance="full" cols="3" overflow="visible" style="left:120px; top:12px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>입원</label>
- <value>1</value>
- </item>
- <item>
- <label>전실</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </group>
- <button id="btn_srch" class="btn1_letter2" style="left:1019px; top:9px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn1_letter2" style="left:1077px; top:9px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- switch(rdo_srchflag.value){
- case "D" :
- if(getNodesetCount("/root/main/dcclist/dccidxpatlist") < 1){
- messageBox("Excel 출력할 정보가 존재하지 않습니다.","I");
- return;
- }
-
- var fileName = window.fileDialog("save", ",", false, "단기입원치료실 일별정보("+ ipt_fromdd.value + "-" + ipt_todd.value + ")", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "") {
- grd_dccidxpatlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- break;
- case "M" :
- if(getNodesetCount("/root/main/dcclist/dccidxstslist") < 1){
- messageBox("Excel 출력할 정보가 존재하지 않습니다.","I");
- return;
- }
-
- var fileName = window.fileDialog("save", ",", false, "단기입원치료실 월별정보_"+ ipt_tomm.value, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "") {
- grd_dccidxstslist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- break;
- default :
- break;
- }
- ]]>
- </script>
- </button>
- <button id="btn_prnt" class="btn1_letter2" style="left:1135px; top:9px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removeNodeset("/root/prntdata");
- model.makeNode("/root/prntdata/cond");
- model.makeNode("/root/prntdata/list");
-
- model.copyNode("/root/prntdata/cond", "/root/main/cond");
-
- if( getNodesetCount("/root/prntdata/cond") > 0 ){
- model.makeValue("/root/prntdata/cond/orddeptnm", cmb_orddeptlist.label );
- model.makeValue("/root/prntdata/cond/medispclnm", cmb_medispclid.label );
- model.makeValue("/root/prntdata/cond/atdoctnm", cmb_atdoctid.label );
- model.makeValue("/root/prntdata/cond/inflagnm", rdo_inflag.label );
-
- if( cmb_ampmflag.value == "-" ){
- model.makeValue("/root/prntdata/cond/ampmnm", "전체" );
- }else{
- model.makeValue("/root/prntdata/cond/ampmnm", cmb_ampmflag.label );
- }
-
- if( cmb_weekflag.value == "-" ){
- model.makeValue("/root/prntdata/cond/weeknm", "전체" );
- }else{
- model.makeValue("/root/prntdata/cond/weeknm", cmb_weekflag.label );
- }
- }
-
- switch(rdo_srchflag.value){
- case "D" :
- if(getNodesetCount("/root/main/dcclist/dccidxpatlist") < 1){
- messageBox("출력할 정보가 존재하지 않습니다.","I");
- return;
- }
-
- model.copyNode("/root/prntdata/list", "/root/main/dcclist");
- exeReportPreview("RPMNP06901", "XMLSTR", ""); //임시 미리보기 창 활성화
-
- break;
- case "M" :
- if(getNodesetCount("/root/main/dcclist/dccidxstslist") < 1){
- messageBox("출력할 정보가 존재하지 않습니다.","I");
- return;
- }
-
- model.copyNode("/root/prntdata/list", "/root/main/dcclist");
- exeReportPreview("RPMNP06902", "XMLSTR", ""); //임시 미리보기 창 활성화
- break;
- default :
- break;
- }
- ]]>
- </script>
- </button>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:90px; x2:1194px; y2:90px; "/>
- <line id="line2" class="line_1" visibility="hidden" style="x1:0px; y1:90px; x2:675px; y2:90px; "/>
- <caption id="caption9" class="tit_2" style="left:0px; top:74px; width:140px; height:13px; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">일별 정보 조회 내역</caption>
- <datagrid id="grd_dccidxpatlist" nodeset="/root/main/dcclist/dccidxpatlist" caption="환자번호^환자명^성
별^나
이^진단명^진료과^주치의^입원일
(년-월-일)^수술코드^수술명^오전/오후^입원
요일^전실
유무^부도
유무^수술
유무^체류
시간(분)|환자번호^환자명^성
별^나
이^진단명^진료과^주치의^입원일
(년-월-일)^수술코드^수술명^오전/오후^입원
요일^전실
유무^부도
유무^수술
유무^체류
시간(분)" colsep="^" colwidth="70, 60, 30, 30, 200, 80, 60, 85, 80, 200, 60, 50, 30, 30, 30, 50" ellipsis="true" explorerbar="sortmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:95px; width:1194px; height:675px; ">
- <col ref="pid"/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="age" style="text-align:center; "/>
- <col ref="diagnm"/>
- <col ref="orddeptnm"/>
- <col ref="medispclnm" style="text-align:center; "/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="opcd"/>
- <col ref="opnm"/>
- <col ref="ampmflag" style="text-align:center; "/>
- <col ref="weeknm" style="text-align:center; "/>
- <col ref="chngroomstat" style="text-align:center; "/>
- <col ref="careinstat" style="text-align:center; "/>
- <col ref="opstat" style="text-align:center; "/>
- <col ref="staytm" style="text-align:right; padding-right:10; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dccidxpatlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_dccidxstslist" nodeset="/root/main/dcclist/dccidxstslist" visibility="hidden" caption="과^과 명^전월^금월^총계^증가율" colsep="^" colwidth="73, 180, 100, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:95px; width:675px; height:675px; ">
- <col ref="deptengabbr" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="bfcnt" style="text-align:center; "/>
- <col ref="nowcnt" style="text-align:center; "/>
- <col ref="totalcnt" style="text-align:center; "/>
- <col ref="addper" style="text-align:center; "/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|