123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509 |
- <?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>VIP재원환자조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <srchcond/>
- <fromdd/>
- <todd/>
- <data1/>
- <sess_posinstcd/>
- <erexptyn/>
- <tdayinexptyn/>
- <data2/>
- </send>
- <main>
- <patinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </patinfolist>
- </patinfo>
- <vipinpatlist>
- <vipinpatspec/>
- </vipinpatlist>
- </main>
- <init>
- <P0149list>
- <P0149>
- <cdid/>
- <cdnm/>
- </P0149>
- </P0149list>
- <P0016list>
- <P0016>
- <cdid/>
- <cdnm/>
- </P0016>
- </P0016list>
- </init>
- <hidden>
- <init>
- <disccd>
- <cd/>
- <nm/>
- </disccd>
- <insukind>
- <cd/>
- <nm/>
- </insukind>
- <suppkind>
- <cd/>
- <nm/>
- <up/>
- <io/>
- </suppkind>
- <orddeptcd>
- <cd/>
- <nm/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- </orddrid>
- <flag>
- <prestdd/>
- <mskindflag/>
- </flag>
- </init>
- <printtype>
- <printkind/>
- <printfromdd/>
- <printtodd/>
- </printtype>
- </hidden>
- <source>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </source>
- </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="TRPMI03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/vipinpatlist"/>
- <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source" resultref="/root/main/patinfo"/>
- <submission id="TXPMI03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="root/rsltflag"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- zbcfGetCodeList(new Array("P0149","P0016"), new Array("/root/init/P0149list", "/root/init/P0016list"));
-
- submit("TRPMI00106", false);
-
- model.setValue("/root/send/fromdd", getCurrentDate());
- model.setValue("/root/send/todd", '99991231');
- model.setValue("/root/send/srchcond" , "1");
- caption1.visible = false;
- ipt_pid.visible = false;
- opt_hngnm.visible = false;
- opt_rrgstno1.visible = false;
- opt_rrgstno2.visible = false;
- btn_pid.visible = false;
- makeReportPreview(0, 0, 10, 10, "grp_report");
- model.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fSelectRefItem(refitem)
- {
- // 1. 전체 2.환자번호 4.진료과 5.병동
-
- model.setValue("/root/send/data1", "");
-
- if (refitem == '1') {
- caption1.visible = false;
- ipt_pid.visible = false;
- opt_hngnm.visible = false;
- opt_rrgstno1.visible = false;
- opt_rrgstno2.visible = false;
- btn_pid.visible = false;
- ipt_text.visible = false;
- cmb_orddeptcd.visible = false;
- cmb_wardcd.visible = false;
- cmb_disccd.visible = false;
- cmb_sex.visible = false;
- } else if (refitem == '2' ) {
- caption1.visible = true;
- ipt_pid.visible = true;
- opt_hngnm.visible = true;
- opt_rrgstno1.visible = true;
- opt_rrgstno2.visible = true;
- btn_pid.visible = true;
- ipt_text.attribute("top") = "8xp";
- ipt_text.attribute("left") = "435px";
- ipt_text.visible = true;
- cmb_orddeptcd.visible = false;
- cmb_wardcd.visible = false;
- cmb_disccd.visible = false;
- cmb_sex.visible = false;
- model.setFocus("ipt_text");
- } else if (refitem == '4') {
- caption1.visible = false;
- ipt_pid.visible = false;
- opt_hngnm.visible = false;
- opt_rrgstno1.visible = false;
- opt_rrgstno2.visible = false;
- btn_pid.visible = false;
- cmb_orddeptcd.attribute("top") = "8xp";
- cmb_orddeptcd.attribute("left") = "435px";
- ipt_text.visible = false;
- cmb_orddeptcd.visible = true;
- cmb_wardcd.visible = false;
- cmb_disccd.visible = false;
- cmb_sex.visible = false;
- } else if (refitem == '5') {
- caption1.visible = false;
- ipt_pid.visible = false;
- opt_hngnm.visible = false;
- opt_rrgstno1.visible = false;
- opt_rrgstno2.visible = false;
- btn_pid.visible = false;
- cmb_wardcd.attribute("top") = "8xp";
- cmb_wardcd.attribute("left") = "435px";
- ipt_text.visible = false;
- cmb_orddeptcd.visible = false;
- cmb_wardcd.visible = true;
- cmb_disccd.visible = false;
- cmb_sex.visible = false;
- }
- model.refresh();
- }
-
- function fInitialize() {
- model.resetInstanceNode("/root/main/vipinptlist/vipinddschspec");
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main/vipinpatlist/vipinpatspec");
- model.setValue("/root/send/fromdd", getCurrentDate());
- model.setValue("/root/send/todd", getCurrentDate());
- model.setValue("/root/send/srchcond","1");
- fSelectRefItem("1")
-
- model.refresh();
- }
-
- function fPrint(pCond) {
- var sPrintYN = "false";
- var sAutoCloseYN = "false";
- var sViewYN = "";
-
- if (pCond == "PREVIEW") {
- sPrintYN = "false";
- sAutoCloseYN = "false";
- sViewYN = "";
- }
-
- if (pCond == "PRINT") {
- sPrintYN = "true";
- sAutoCloseYN = "false";
- sViewYN = "grp_report";
- }
-
- var iCount = getNodesetCount("/root/main/vipinpatlist/vipinpatspec");
- if (iCount > 0) {
- var sPrintFromdd = model.getValue("/root/send/fromdd");
- var sPrinttodd = model.getValue("/root/send/todd");
-
- sPrintFromdd = sPrintFromdd.substr(0, 4) + "-" + sPrintFromdd.substr(4, 2) + "-" + sPrintFromdd.substr(6, 4);
-
- model.makeValue("/root/hidden/printtype/printkind", "VIP재원");
- model.makeValue("/root/hidden/printtype/printfromdd", sPrintFromdd);
- model.makeValue("/root/hidden/printtype/printtodd", sPrinttodd);
-
- exeReportPreview("RPPMI03601", "XMLSTR" , "" , "" , sPrintYN , "", "", "", "", sAutoCloseYN, "", sViewYN);
- } else {
- messageBox("출력할 내용이 없습니다!!", "I");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;1,1195;2,52;" 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:200px; height:13px; ">VIP재원환자조회</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; "/>
- <input id="ipt_text" ref="/root/send/data1" class="input_search" visibility="hidden" imemode="hangul" style="left:435px; top:8px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("button1", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sCond = model.getValue("/root/send/indschacptstat");
- if (sCond == "2" || sCond == "3" || sCond == "7") {
- var sText = model.getValue("/root/send/data1");
- if (!isNull(sText)) {
- submit("TRPMI03601");
-
- var iCount = getNodesetCount("/root/main/vipinpatlist/vipinpatspec");
- if (iCount == 0) {
- messageBox("조회 결과가 없습니다.", "I");
- }
- } else {
- messageBox("검색할 단어를 입력하십시오!", "I");
- model.setFocus("ipt_text");
-
- model.refresh();
- }
- } else {
- submit("TRPMI03601");
-
- var iCount = getNodesetCount("/root/main/vipinpatlist/vipinpatspec");
- if (iCount == 0) {
- messageBox("조회 결과가 없습니다.", "I");
- }
- }
- ]]>
- </script>
- </button>
- <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:5px; top:10px; width:86px; height:17px; ">조회일자 :</caption>
- <caption id="caption3" class="search_name" style="left:215px; top:10px; width:86px; height:17px; ">조회항목 :</caption>
- <select1 id="cmb_srchcond" ref="/root/send/srchcond" class="combo_search" appearance="minimal" style="left:310px; top:8px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>1</value>
- </item>
- <item>
- <label>환자번호</label>
- <value>2</value>
- </item>
- <item>
- <label>진료과</label>
- <value>4</value>
- </item>
- <item>
- <label>병동</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var refitem = model.getValue("/root/send/srchcond");
- // model.refresh();
- fSelectRefItem(refitem);
- ]]>
- </script>
- </select1>
- <input id="ipt_infromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" style="left:95px; top:8px; width:100px; height:19px; "/>
- <select1 id="cmb_sex" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:450px; top:8px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_orddeptcd" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:465px; top:8px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_wardcd" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:475px; top:8px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_disccd" ref="/root/send/data1" class="combo_search" visibility="hidden" appearance="minimal" style="left:485px; top:8px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/disccd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_pid" ref="/root/main/patinfo/patinfolist/pid" class="input_default" style="left:838px; top:8px; width:77px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "8") {
- model.resetInstanceNode("/root/send");
- fInitialize();
- }
- if(event.keyCode == "13") {
- vcheck_pid = ipt_pid.currentText;
-
- //환자번호 null체크
- if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
- messageBox("환자등록번호가 입력되지","E007");
- return;
- }
- //환자번호 조건으로 인적정보 조회
- model.setValue("/root/source/srchcond", "1");
- model.setValue("/root/source/pid", vcheck_pid);
- //환자기본정보 node clear
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
-
- //환자등록번호 체크
- if(submit("TRPMC02500")){
- var vcheck_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
- //조회내역 체크
- messageBox("존재하지 않는 등록번호","E008");//E008=입니다
- fInitialize();
- return;
- }
-
- //조회되는 항목들 clear
- model.resetInstanceNode("/root/main/baseinfo");
- model.setValue("/root/send/data1" , model.getValue("/root/main/patinfo/patinfolist/pid") );
- button1.dispatch("DOMActivate");
-
- }
- else {
- messageBox("존재하지 않는 등록번호","E008");//E008=입니다
- model.setFocus("ipt_pid");
- model.refresh();
- return;
- }
- }//End if(event.keyCode == "13") {
- ]]>
- </script>
- </input>
- <output id="opt_hngnm" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:917px; top:8px; width:65px; height:19px; "/>
- <button id="btn_pid" class="icon_search" style="left:1086px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:749px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <output id="opt_rrgstno1" ref="/root/main/patinfo/patinfolist/rrgstno1" class="output_fix" style="left:984px; top:8px; width:46px; height:19px; "/>
- <output id="opt_rrgstno2" ref="/root/main/patinfo/patinfolist/rrgstno2" class="output_fix" style="left:1032px; top:8px; width:52px; height:19px; "/>
- <select id="checkbox1" ref="/root/send/erexptyn" overflow="visible" appearance="full" style="left:570px; top:11px; width:15px; height:10px; border-style:none; ">
- <choices>
- <item>
- <label>응급제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox2" ref="/root/send/tdayinexptyn" overflow="visible" appearance="full" style="left:645px; top:11px; width:15px; height:10px; border-style:none; ">
- <choices>
- <item>
- <label>당일입원 제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:300px; height:13px; font-family:돋움; vertical-align:middle; ">VIP재원환자내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <button id="button3" 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_vipinpatspec.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_vipinpatspec" nodeset="/root/main/vipinpatlist/vipinpatspec" class="datagrid2" caption="환자번호^입원일자^환자성명^사생활보호^동년도입원
횟수(전체)^성별^나이^진료과^전문의^병실^상 병 명^VIP내용^계정^종교" colsep="^" colwidth="69, 80, 78, 80, 68, 35, 35, 100, 66, 71, 242, 259, 57, 66" dataheight="23" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:75px; width:1194px; height:669px; ">
- <col disabled="true" ref="pid" style="text-align:center; "/>
- <col disabled="true" ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="hngnm" style="text-align:center; "/>
- <col disabled="true" ref="privacyyn" style="color:#ff0000; text-align:center; "/>
- <col disabled="true" ref="incnt" style="text-align:center; "/>
- <col disabled="true" ref="sex" style="text-align:center; "/>
- <col disabled="true" ref="age" style="text-align:center; "/>
- <col disabled="true" ref="depthngnm" style="text-align:left; "/>
- <col disabled="true" ref="orddrnm" style="text-align:left; "/>
- <col disabled="true" ref="roomcd" style="text-align:left; "/>
- <col disabled="true" ref="diagnosisnm" style="text-align:left; "/>
- <col class="gridinput" ref="vipcnts" type="input" style="text-align:left; "/>
- <col disabled="true" ref="disccd" style="text-align:left; "/>
- <col ref="religncd"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- //sorting 시 인스턴스 구조를 재구성
- grd_vipinpatspec.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button4" class="btn2_letter2" style="left:1085px; top:50px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrint("PRINT");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter4" style="left:1018px; top:50px; width:64px; height:19px; ">
- <caption>미리보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrint("PREVIEW");
- ]]>
- </script>
- </button>
- <group id="grp_report" visibility="hidden" style="left:865px; top:50px; width:65px; height:15px; "/>
- </group>
- <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button2" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="button6" class="btn4_letter2" style="left:1068px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // model.alert(grd_vipinpatspec.getUpdateData());
- model.setValue("/root/send/data2", grd_vipinpatspec.getUpdateData());
-
- if (submit("TXPMI03601")) {
- model.resetInstanceNode("/root/send/data2");
-
- // 재조회
- button1.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|