123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315 |
- <?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="">
- <send>
- <srchcondflag/>
- <srchcond/>
- </send>
- <main>
- <inhosppat>
- <inhosppatlist/>
- </inhosppat>
- <visitinpatlist>
- <hngnm/>
- <sex/>
- <age/>
- <orddeptnm/>
- </visitinpatlist>
- <paper>
- <hngnm/>
- <wardnm/>
- <roomnm/>
- <posinfonm/>
- <roomtel/>
- <instcd/>
- </paper>
- </main>
- <init>
- <P0313list>
- <P0313>
- <cdnm/>
- <cdid/>
- </P0313>
- </P0313list>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- </orddeptcd>
- </init>
- <hidden>
- <tmp>
- <orddeptcd/>
- <orddrid/>
- </tmp>
- </hidden>
- </root>
- </instance>
- <submission id="TRPMC02100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inhosppat"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- </model>
- <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/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- model.setValue("/root/send/srchcondflag","1");
- model.resetInstanceNode("/root/main/inhosppat/inhosppatlist");
- // model.resetInstanceNode("/root/send/srchcondflag");
- model.resetInstanceNode("/root/send/srchcond");
- model.refresh();
- model.setFocus("ipt_patnm");
- grd_inhosppatlist.rebuildStyle();
-
- }
-
- function fSetBirth(){
- var rows = grd_inhosppatlist.rows;
- var frow = grd_inhosppatlist.fixedRows;
- var nrow = rows - frow;
-
- for(var i = 1; i <= nrow; i++){
- var oldbirthdd = grd_inhosppatlist.valueMatrix(i, 4);
- var gender = oldbirthdd.substr(6, 1);
- var regYY = eval(oldbirthdd.substr(0, 2));
- var regMM = eval(oldbirthdd.substr(2, 2));
- var regDD = eval(oldbirthdd.substr(4, 2));
-
- if(gender == '3' || gender == '4' || gender == '7' || gender == '8') {
- regYY += 2000;
- } else if(gender == '0' || gender == '9') {
- regYY += 1800;
- } else {
- regYY += 1900;
- }
-
- var newbirthdd = regYY + "년 " + regMM + "월 " + regDD + "일";
-
- grd_inhosppatlist.valueMatrix(i, 4) = newbirthdd;
- }
-
- model.refresh();
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- setForceOn();
- zbcfGetCodeList(
- new Array("P0149","P0313"),
- new Array("/root/init/P0149list","/root/init/P0313list")
- );
-
- //진료과코드 진료의사ID 조회
- setForceOn();
- pamGetDeptCDDrIDList();
- fInitialize();
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;" 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:189px; height:14px; ">방문객용 재원환자 조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <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="caption2" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
- <button id="btn_srch" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
-
- if (model.getValue("/root/send/srchcondflag")=="") {
- messageBox("검색조건을 정확히", "C001");
- model.setFocus("cbosearch");
-
- } else if (isNull(model.getValue("/root/send/srchcond"))) {
-
- messageBox("이름을", "C001");
- return;
-
- } else {
-
- if (ipt_patnm.currentText.length > 1) {
- if (submit("TRPMC02100") == true) {
-
- // 배경색 초기화
- grd_inhosppatlist.rebuildStyle();
-
- var iResultCount = getNodesetCount("/root/main/inhosppat/inhosppatlist");
- if (iResultCount == 0) {
- messageBox("조회된 결과가", "I004");
-
- // 사생활 보호 환자들을 구분하기위해 배경색 변경처리 추가
- } else {
-
- for (i = 0; i <= iResultCount; i++) {
-
- // 사생활 보호 요청여부 확인
- if (model.getValue("/root/main/inhosppat/inhosppatlist[" + i + "]/privacyyn") == 'Y') {
- grd_inhosppatlist.rowStyle(i, "all", "background-color") = "#FF99CC";
- }
-
- }
- }
- }
-
- } else {
- if (model.getValue("/root/send/srchcondflag")=="1" ) {
- messageBox("환자성명 2자 이상", "C001");
- } else {
- messageBox("피보험자 성명을 2자 이상", "C001");
- }
- model.setFocus("ipt_patnm");
- }
- }
- model.setFocus("ipt_patnm");
-
- // 생년월일생성.
- //fSetBirth();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cbosearch" ref="/root/send/srchcondflag" class="combo_s_essential" appearance="minimal" style="left:114px; top:8px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>환자 이름</label>
- <value>1</value>
- </item>
- <item>
- <label>피보험자 이름</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue("/root/send/srchcond","");
-
- model.setFocus("ipt_patnm");
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_patnm" ref="/root/send/srchcond" class="input_s_essential" imemode="hangul" style="left:272px; top:8px; width:138px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- setInputNodeCurText();
-
- inputEnterKey("btn_srch", "DOMActivate");
- model.setFocus("ipt_patnm");
- }
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption20" class="tit_2" style="left:5px; top:52px; width:120px; height:13px; ">재원환자 리스트</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <!-- <col ref="rrgstno" secretendposition="14" secretstartposition="8" format="999999-9999999" style="text-align:center; "/> -->
- <datagrid id="grd_inhosppatlist" nodeset="/root/main/inhosppat/inhosppatlist" caption="재원상태^구분^환자명^나이^주민번호^사생활보호여부^사생활보호신청자^사생활보호대상자^사생활보호내용^사생활보호비고^병동^병실^병실위치^전화번호(내선)^진료과^성별^입원일^퇴원일^환자번호" colsep="^" colwidth="63, 32, 65, 34, 109, 33, 110, 110, 100, 100, 110, 102, 66, 110, 169, 70, 120, 120, 100" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1194px; height:664px; ">
- <col ref="inhospstatus" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="age" style="text-align:center; "/>
- <col ref="rrgstno" style="text-align:center; "/>
- <col ref="privacyyn" visibility="hidden"/>
- <col ref="privacyrequest"/>
- <col ref="privacytarget"/>
- <col ref="privacytype"/>
- <col ref="privacyrmk"/>
- <col ref="wardnm" style="text-align:center; "/>
- <col ref="roomnm" style="text-align:center; "/>
- <col ref="posinfonm" style="text-align:center; "/>
- <col ref="roomtel" style="text-align:center; "/>
- <col ref="orddeptnm"/>
- <col disabled="true" ref="sex" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0313list/P0313">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="pid" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()) {
- var row = grd_inhosppatlist.row;
- var sInstcd = model.getValue("/root/main/inhosppat/inhosppatlist[" + row + "]/instcd");
- var sHngnm = model.getValue("/root/main/inhosppat/inhosppatlist[" + row + "]/hngnm");
- var sWardnm = model.getValue("/root/main/inhosppat/inhosppatlist[" + row + "]/wardnm");
- var sRoomnm = model.getValue("/root/main/inhosppat/inhosppatlist[" + row + "]/roomnm");
- var sPosinfonm = model.getValue("/root/main/inhosppat/inhosppatlist[" + row + "]/posinfonm");
- var sRoomtel = model.getValue("/root/main/inhosppat/inhosppatlist[" + row + "]/roomtel");
- submit("TRPMC02100");
- model.setValue("/root/main/paper/instcd" , sInstcd);
- model.setValue("/root/main/paper/hngnm" , sHngnm);
- model.setValue("/root/main/paper/wardnm" , sWardnm);
- model.setValue("/root/main/paper/roomnm" , sRoomnm);
- model.setValue("/root/main/paper/posinfonm" , sPosinfonm);
- model.setValue("/root/main/paper/roomtel" , sRoomtel);
- exeReportPreview("RPPMC02200", "XMLSTR", "","", "true","","","","","true");
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" style="left:420px; top:19px; width:198px; height:20px; font-weight:bold; color:#0000ff; ">초기화시 F9버튼을 눌러 주세요!</caption>
- <shape id="rectangle1" appearance="rectangle" style="left:130px; top:51px; width:15px; height:15px; background-color:#ff99cc; "/>
- <caption id="caption3" style="left:147px; top:50px; width:323px; height:20px; color:#ff0000; ">사생활 보호 요청환자입니다. 안내시 주의하시기 바랍니다!!!</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_init" accesskey="f9" 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; "/>
- </group>
- <button id="button2" class="btn6_letter2" visibility="visible" style="left:1139px; top:61px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/visitinpatlist");
-
- var iResultCount = getNodesetCount("/root/main/inhosppat/inhosppatlist");
- if (iResultCount == 0) {
- messageBox("조회된 결과가", "I004");
- } else {
- copyNodesetType("/root/main/visitinpatlist", "/root/main/inhosppat/inhosppatlist", "replace");
- exeReportPreview("RPPMC02100", "XMLSTR", "","", "true","","","","","true");
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|