123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- <?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="">
- <send>
- <search_deptcd/>
- <search_drid/>
- <search_date/>
- </send>
- <main>
- <grdInPatList>
- <pid/>
- <hngnm/>
- <indd/>
- <orddeptcd/>
- <wardcd/>
- <roomcd/>
- <sex/>
- <medispclid/>
- <fromdd/>
- <todd/>
- </grdInPatList>
- <print>
- <deptnm/>
- <drnm/>
- <date/>
- <logo/>
- </print>
- </main>
- <hidden>
- <init>
- <orddeptcd>
- <cd/>
- <nm/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- </orddrid>
- <wardcd>
- <cd/>
- <nm/>
- </wardcd>
- </init>
- </hidden>
- <init/>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
- <submission id="TRPMC04501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grdInPatList"/>
- </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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/search_date",getCurrentDate());
-
- submit("TRPMI00106");
-
- // 레포트 미리보기 생성 - 미리보기창 안보이게 하기 위해서 생성
- makeReportPreview(0, 50, 1194, 600, "grp_report");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.removeNodeset("/root/main/grdInPatList");
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/search_date", getCurrentDate());
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">지정의사별재원환자조회</caption>
- </group>
- <group id="group3" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">검색조건 :</caption>
- <line id="line2" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption17" class="search_name" style="left:394px; top:9px; width:112px; height:17px; ">조회일자 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/send/search_deptcd" class="combo_search" appearance="minimal" style="left:110px; top:8px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //dp = '" + sDeptCd + "' AND [(sp = 'Y')]
- var sDeptCd = model.getValue("/root/send/search_deptcd"); // 진료과(부서)
-
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid[(dp = '" + sDeptCd + "')]"; // 진료과
- //cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid[(dp = '" + sDeptCd + "' and sp = 'Y' )]"; // 진료과 and 선택진료
- model.setFocus("cmb_orddrid");
- cmb_orddrid.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddrid" ref="/root/send/search_drid" class="combo_search" appearance="minimal" style="left:230px; top:8px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddrid">
- <label ref="nmsp"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_date" ref="/root/send/search_date" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:487px; top:8px; width:98px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 지정의사별 재원환자현황 조회
- var sDeptCd = model.getValue("/root/send/search_deptcd");
- var sDrId = model.getValue("/root/send/search_drid");
- var sDate = model.getValue("/root/send/search_date");
-
- // 진료과 입력 체크
- if (sDeptCd == "") {
- messageBox("진료과를", "C002");
- return;
- }
-
- // 지정의사 입력 체크
- if (sDrId == "") {
- messageBox("의사를", "C002");
- return;
- }
-
- // 조회일자 입력 체크
- if (sDate == "") {
- messageBox("조회일자를", "C001");
- return;
- }
-
- // 조회일자에 대한 지정의사별 재원환자 리스트 조회
- if(submit("TRPMC04501")) {
- var iCount = getNodesetCount("/root/main/grdInPatList");
-
- if (iCount == 0) {
- messageBox("조회된 결과가", "I004");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:300px; height:14px; font-family:돋움; vertical-align:middle; ">특정일 재원환자 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:50px; width:64px; height:19px; ">
- <caption>액셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 엑셀 저장
- var fileName = window.fileDialog("save", ",", false, getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_inpatlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn2_letter2" style="left:1085px; top:50px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sDeptCd = model.getValue("/root/send/search_deptcd"); // 진료과
- var sDrId = model.getValue("/root/send/search_drid"); // 전문의
- var sDate = model.getValue("/root/send/search_date"); // 조회일자
-
- model.setValue("/root/main/print/deptnm", model.getValue("/root/hidden/init/orddeptcd[cd = '"+ sDeptCd +"']/nm"));
- model.setValue("/root/main/print/drnm", model.getValue("/root/hidden/init/orddrid[cd = '"+ sDrId +"']/nm"));
- model.setValue("/root/main/print/date", sDate);
- model.setValue("/root/main/print/logo", getLogoImageURL()); // 기관로고
-
- // 레포트 출력
- exeReportPreview("RPPMC04500", "XMLSTR" , "" , "" , "true" , "", "", "", "", "", "", "grp_report");
- ]]>
- </script>
- </button>
- <datagrid id="grd_inpatlist" nodeset="/root/main/grdInPatList" caption="환자번호^환자명^입원일자^진료과^병동^병실^성별" colsep="^" colwidth="100, 101, 102, 152, 150, 100, 60" dataheight="23" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1194px; height:669px; ">
- <col ref="pid" type="output" style="text-align:center; "/>
- <col disabled="true" ref="hngnm" type="output" style="text-align:center; "/>
- <col disabled="true" ref="indd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="orddeptcd" type="output" style="text-align:center; "/>
- <col disabled="true" ref="wardcd" type="output" style="left:287px; top:23px; width:90px; height:23px; text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_inpatlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <group id="grp_report" visibility="hidden" style="left:1020px; top:47px; width:45px; height:20px; "/>
- </group>
- <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|