123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--수정이력 : 2007.10.15 박재형 - 감면정보에 가족주민번호, 가족성명 추가 -->
- <!--수정이력 : 2008.01.14 박재형 - 감면정보 Grid -->
- <?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>
- <privacyDesc>
- <no/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <request/>
- <requestetc/>
- <target/>
- <targetetc/>
- <type/>
- <typeetc/>
- <rmk/>
- <endyn/>
- <lastupdtrnm/>
- <lastupdtdt/>
- <lastupdtrdeptnm/>
- <fstrgstrid/>
- <fstrgstrnm/>
- <fstrgstdt/>
- <fstrgstrdeptcd/>
- <fstrgstrdeptnm/>
- <elctsignkey/>
- <elctsigncnts/>
- </privacyDesc>
- <privacyList/>
- <rtninfo>
- <elctsignkey/>
- <elctsigncnts/>
- </rtninfo>
- </main>
- <send>
- <pid/>
- <endyn/>
- </send>
- <init>
- <pid/>
- </init>
- <hidden>
- <orgendyn/>
- <orgyn/>
- <cond>
- <pid/>
- <hngnm/>
- <endyn/>
- <histyn/>
- </cond>
- </hidden>
- <result>
- <sign>
- <elctsignkey/>
- <elctsigncnts/>
- </sign>
- </result>
- </root>
- </instance>
- <submission id="TRPMC06901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/privacyDesc"/>
- <submission id="TXPMC06902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/privacyDesc"/>
- <submission id="TRPMC06903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/privacyList"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fsignpad_init();
-
- initPid = model.getValue("/root/init/pid");
-
- // 차트번호의 전달 경로가 원무와 비원무로 구분되어 있으므로
- // 취득방법 역시 두가지로 구분하여 처리
- if (isNull(initPid)) {
-
- initPid = opener.javascript.getParameter("SPPMC06900_PARM");
- }
- //initPid = "1496619"; // 부모창 없을 경우 테스트용
-
- // 검색조건 초기화
- model.setValue("/root/hidden/cond/endyn", "N");
- model.setValue("/root/hidden/cond/histyn", "N");
-
- // 환자가 선택되었을 경우에만 초기화처리 실시
- if (!isNull(initPid)) {
-
- model.setValue("/root/send/pid", initPid);
- submit("TRPMC06901");
-
- // 확인서명 표시
- if (!isNull(model.getValue("/root/main/privacyDesc/elctsigncnts"))) {
- fsignpad_view(model.getValue("/root/main/privacyDesc/elctsignkey") , model.getValue("/root/main/privacyDesc/elctsigncnts"));
- }
-
- // 초기정보 관리
- saveOrgInfo();
-
- // 환자가 선택되지 않았을 경우 목록으로 이동
- } else {
-
- //messageBox("환자가 선택되지", "E007");
- //model.close();
- // 세부정보 탭이동
- button2.dispatch("onclick");
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-close">
- <![CDATA[
-
- // 부모창 검증
- if (checkOpener()) {
-
- // 부모창의 인스턴스에 사생활관리여부를 생성
- opener.model.makeNode("/root/hidden/patprivacyendyn");
- // 호출시 환자가 선택 + 저장된 정보 있음 + 해제가 아님
- if (!isNull(initPid)
- && model.getValue("/root/hidden/orgyn") == "Y"
- && model.getValue("/root/hidden/orgendyn") == "N") {
-
- opener.model.setValue("/root/hidden/patprivacyendyn" , "N");
- } else {
-
- opener.model.setValue("/root/hidden/patprivacyendyn" , "Y");
- }
-
- // 부모창이 변경되었을 경우
- } else {
-
- alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
- }
- ]]>
- </script>
- </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/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript">
- <![CDATA[
- var initPid;
- var signYN;
- /*
- 화면입력검증(필수체크 등)
- 신청자, 보호대상, 보호내용은 필수
- */
- function validateForm() {
-
- if ((isNull(model.getValue("/root/main/privacyDesc/request")) && isNull(model.getValue("/root/main/privacyDesc/requestetc")))
- || (isNull(model.getValue("/root/main/privacyDesc/target")) && isNull(model.getValue("/root/main/privacyDesc/targetetc")))
- || (isNull(model.getValue("/root/main/privacyDesc/type")) && isNull(model.getValue("/root/main/privacyDesc/typeetc")))) {
- messageBox("신청자 / 보호대상 / 보호내용은 필수", "E008");
-
- return false;
- } else {
-
- return true;
- }
- }
-
- /*
- 초기정보 관리
- 리스트에서 다른 환자의 정보가 수정되는 경우를 고려
- */
- function saveOrgInfo() {
-
- // 호출시 전달된 환자가 아닌경우 체크
- if (initPid == model.getValue("/root/main/privacyDesc/pid")) {
-
- // 관리번호가 있는 경우에만 관리정보가 있다고 판정
- if (!isNull(model.getValue("/root/main/privacyDesc/no"))) {
-
- // 창닫기 시 사생활관리여부 전송용 종료플래그 백업
- // 조회 / 저장 이후 화면상에서의 값 변경이 저장없이도 그대로 인스턴스에 적용되기 때문
- model.setValue("/root/hidden/orgyn", "Y");
- model.setValue("/root/hidden/orgendyn", model.getValue("/root/main/privacyDesc/endyn"));
- }
- }
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="620" pageheight="510" guideline="1,-71;1,608;2,365;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">사생활보호관리</caption>
- <button id="button1" class="btn_sw" group="tab" selected="true" style="left:10px; top:20px; width:80px; height:22px; ">
- <caption>세부정보</caption>
- <toggle case="case1" ev:event="onclick"/>
- </button>
- <button id="button2" class="btn_sw" group="tab" style="left:90px; top:20px; width:80px; height:22px; ">
- <caption>대상목록</caption>
- <toggle case="case2" ev:event="onclick"/>
- </button>
- <switch id="switch1" class="sw_box" style="left:0px; top:40px; width:600px; height:445px; ">
- <case id="case1" selected="true">
- <line id="line12" class="line_1" style="x1:4px; y1:5px; x2:594px; y2:5px; "/>
- <caption id="caption2" class="cell_1" style="left:4px; top:10px; width:81px; height:23px; text-align:left; vertical-align:middle; ">차트번호</caption>
- <input id="ipt_cardno" ref="/root/main/privacyDesc/pid" class="input_default" disabled="true" style="left:87px; top:12px; width:79px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:169px; top:10px; width:81px; height:23px; text-align:left; vertical-align:middle; ">환자성명</caption>
- <input id="input1" ref="/root/main/privacyDesc/hngnm" class="input_default" disabled="true" maxlength="40" style="left:252px; top:12px; width:88px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:4px; top:58px; width:81px; height:41px; text-align:left; vertical-align:middle; ">보호대상</caption>
- <caption id="caption5" class="cell_1" style="left:4px; top:100px; width:81px; height:23px; text-align:left; vertical-align:middle; ">보호내용</caption>
- <caption id="caption6" class="cell_1" style="left:4px; top:124px; width:81px; height:116px; text-align:left; vertical-align:middle; ">비고</caption>
- <textarea id="textarea1" ref="/root/main/privacyDesc/rmk" navindex="3" imemode="hangul" maxbyte="200" style="left:87px; top:124px; width:507px; height:116px; "/>
- <select id="checkbox1" ref="/root/main/privacyDesc/target" navindex="1" overflow="visible" appearance="full" cols="3" style="left:87px; top:63px; width:180px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>환자본인</label>
- <value>환자본인</value>
- </item>
- <item>
- <label>보호자</label>
- <value>보호자</value>
- </item>
- <item>
- <label>내원객</label>
- <value>내원객</value>
- </item>
- </choices>
- </select>
- <caption id="caption7" style="left:88px; top:79px; width:308px; height:20px; font-weight:bold; color:#ff0000; ">* 체크대상에게로의 정보제공을 희망하지 않습니다.</caption>
- <caption id="caption8" class="cell_1" style="left:343px; top:10px; width:81px; height:23px; text-align:left; vertical-align:middle; ">주민번호</caption>
- <input id="input2" ref="/root/main/privacyDesc/rrgstno1" class="input_default" disabled="true" maxlength="40" style="left:426px; top:12px; width:78px; height:23px; "/>
- <caption id="caption9" style="left:506px; top:13px; width:10px; height:20px; ">-</caption>
- <input id="input3" ref="/root/main/privacyDesc/rrgstno2" class="input_default" disabled="true" maxlength="40" style="left:516px; top:12px; width:78px; height:23px; "/>
- <select id="checkbox2" ref="/root/main/privacyDesc/type" navindex="2" overflow="visible" appearance="full" cols="6" style="left:87px; top:103px; width:338px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>병명</label>
- <value>병명</value>
- </item>
- <item>
- <label>치료내용</label>
- <value>치료내용</value>
- </item>
- <item>
- <label>치료비</label>
- <value>치료비</value>
- </item>
- <item>
- <label>병실위치</label>
- <value>병실위치</value>
- </item>
- <item>
- <label>ARS/유선안내</label>
- <value>ARS/유선안내</value>
- </item>
- </choices>
- </select>
- <line id="line9" class="line_3" style="x1:4px; y1:413px; x2:594px; y2:413px; "/>
- <button id="btn_confirm" class="btn4_letter2" navindex="4" style="left:538px; top:417px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 입력내용 검증 후 저장
- // 종료를 선택한 경우에는
- if(validateForm()) {
-
- // 노드 카피
- model.copyNode("/root/send", "/root/main/privacyDesc");
-
- // 사용자정보 설정
- // 최초등록자정보의 설정은 최초등록시만
- if (isNull(model.getValue("/root/main/privacyDesc/fstrgstrid"))) {
- model.setValue("/root/send/fstrgstrid", getUserId());
- model.setValue("/root/send/fstrgstrdeptcd", getUserInfo("posdeptcd"));
- }
- model.setValue("/root/send/lastupdtrid", getUserId());
- model.setValue("/root/send/lastupdtrdeptcd", getUserInfo("posdeptcd"));
-
- // 확인서명 처리
- if (signYN == "Y") {
- fsignpad_save();
- model.setValue("/root/send/elctsignkey" , model.getValue("/root/result/sign/elctsignkey") , true);
- model.setValue("/root/send/elctsigncnts", model.getValue("/root/result/sign/elctsigncnts") , true);
- fsignpad_view(model.getValue("/root/send/elctsignkey") , model.getValue("/root/send/elctsigncnts"));
- signYN = "N";
- }
-
- // 저장
- submit("TXPMC06902");
- model.resetInstanceNode("/root/send");
-
- // 초기정보 관리
- saveOrgInfo();
-
- // 싸인패드 닫기
- fsignpad_close();
- }
-
- ]]>
- </script>
- </button>
- <bool id="bool1" checkvalue="Y,N" ref="/root/main/privacyDesc/endyn" style="left:486px; top:419px; width:15px; height:15px; "/>
- <input id="input6" ref="/root/main/privacyDesc/lastupdtrnm" class="input_default" disabled="true" maxlength="40" style="left:87px; top:243px; width:79px; height:19px; "/>
- <caption id="caption12" class="cell_1" style="left:4px; top:241px; width:81px; height:23px; text-align:left; vertical-align:middle; ">최종수정자</caption>
- <input id="input7" ref="/root/main/privacyDesc/lastupdtdt" disabled="true" format="yyyy-mm-dd hh:mm" style="left:482px; top:243px; width:112px; height:19px; "/>
- <input id="input8" ref="/root/main/privacyDesc/fstrgstrnm" class="input_default" disabled="true" maxlength="40" style="left:87px; top:267px; width:79px; height:19px; "/>
- <caption id="caption14" class="cell_1" style="left:4px; top:265px; width:81px; height:23px; text-align:left; vertical-align:middle; ">최초등록자</caption>
- <input id="input9" ref="/root/main/privacyDesc/fstrgstdt" disabled="true" format="yyyy-mm-dd hh:mm" style="left:482px; top:267px; width:112px; height:19px; "/>
- <input id="input10" ref="/root/main/privacyDesc/lastupdtrdeptnm" class="input_default" disabled="true" maxlength="40" style="left:277px; top:243px; width:120px; height:19px; "/>
- <input id="input11" ref="/root/main/privacyDesc/fstrgstrdeptnm" class="input_default" disabled="true" maxlength="40" style="left:277px; top:267px; width:120px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:169px; top:241px; width:106px; height:23px; text-align:left; vertical-align:middle; ">최종수정자부서</caption>
- <caption id="caption15" class="cell_1" style="left:169px; top:265px; width:106px; height:23px; text-align:left; vertical-align:middle; ">최초등록자부서</caption>
- <caption id="caption16" class="cell_1" style="left:399px; top:241px; width:81px; height:23px; text-align:left; vertical-align:middle; ">최종수정일</caption>
- <caption id="caption17" class="cell_1" style="left:399px; top:265px; width:81px; height:23px; text-align:left; vertical-align:middle; ">최초등록일</caption>
- <caption id="caption18" style="left:503px; top:418px; width:30px; height:20px; ">해제</caption>
- <select id="checkbox3" ref="/root/main/privacyDesc/request" navindex="1" overflow="visible" appearance="full" cols="2" style="left:87px; top:36px; width:128px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>환자본인</label>
- <value>환자본인</value>
- </item>
- <item>
- <label>보호자</label>
- <value>보호자</value>
- </item>
- </choices>
- </select>
- <caption id="caption19" class="cell_1" style="left:4px; top:34px; width:81px; height:23px; text-align:left; vertical-align:middle; ">신청자</caption>
- <caption id="caption20" style="left:232px; top:36px; width:35px; height:20px; ">기타</caption>
- <input id="input12" ref="/root/main/privacyDesc/requestetc" class="input_default" imemode="hangul" maxlength="15" maxbyte="50" style="left:260px; top:36px; width:190px; height:19px; "/>
- <caption id="caption21" style="left:282px; top:61px; width:35px; height:20px; ">기타</caption>
- <input id="input13" ref="/root/main/privacyDesc/targetetc" class="input_default" imemode="hangul" maxlength="15" maxbyte="50" style="left:310px; top:61px; width:190px; height:19px; "/>
- <caption id="caption22" style="left:427px; top:102px; width:35px; height:20px; ">기타</caption>
- <input id="input14" ref="/root/main/privacyDesc/typeetc" class="input_default" imemode="hangul" maxlength="15" maxbyte="50" style="left:455px; top:102px; width:139px; height:19px; "/>
- <caption id="caption25" style="left:248px; top:418px; width:238px; height:20px; color:#ff0000; ">* 보호해제시 '해제' 체크 후 반드시 저장!!!</caption>
- <import id="import1" src="./../../pam/pamcomnweb/xrw/SPPAO02102_전자서명입력_OCX.xrw" style="left:87px; top:289px; width:257px; height:123px; text-align:center; vertical-align:middle; "/>
- <caption id="caption26" class="cell_1" style="left:4px; top:289px; width:81px; height:123px; text-align:left; vertical-align:middle; ">확인서명</caption>
- <button id="button4" class="btn2_letter2" style="left:20px; top:385px; width:42px; height:19px; ">
- <caption>서명</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- signYN = "Y";
- fsignpad_init();
- fsignpad_request(0);
- ]]>
- </script>
- </button>
- </case>
- <case id="case2">
- <datagrid id="datagrid1" nodeset="/root/main/privacyList" caption="챠트번호^성명^구분^주민번호^주민번호^신청자^보호대상^보호내용^비고^최초등록자/부서/일시^최초등록자/부서/일시^최초등록자/부서/일시^최종수정자/부서/일시^최종수정자/부서/일시^최종수정자/부서/일시^해제" colsep="^" colwidth="60, 65, 30, 50, 55, 100, 100, 100, 236, 60, 80, 105, 60, 80, 105, 35" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:4px; top:38px; width:590px; height:400px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="histstat" style="text-align:center; "/>
- <col ref="rrgstno1"/>
- <col ref="rrgstno2"/>
- <col ref="request"/>
- <col ref="target"/>
- <col ref="type"/>
- <col ref="rmk"/>
- <col ref="fstrgstrnm"/>
- <col ref="fstrgstrdeptnm"/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:mm"/>
- <col ref="lastupdtrnm"/>
- <col ref="lastupdtrdeptnm"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:mm"/>
- <col ref="endyn" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var pid = model.getValue("/root/main/privacyList[" + datagrid1.row + "]/pid");
- var histstat = model.getValue("/root/main/privacyList[" + datagrid1.row + "]/histstat");
- if (!isNull(pid)) {
-
- // 이력이 아닐경우에만 세부정보로 이동
- if (model.getValue("/root/main/privacyList[" + datagrid1.row + "]/histstat") == "Y") {
-
- model.setValue("/root/send/pid", pid);
-
- // 세부정보 조회
- submit("TRPMC06901");
-
- // 확인서명 표시
- if (!isNull(model.getValue("/root/main/privacyDesc/elctsigncnts"))) {
- fsignpad_view(model.getValue("/root/main/privacyDesc/elctsignkey") , model.getValue("/root/main/privacyDesc/elctsigncnts"));
- }
-
- // 초기정보 관리
- saveOrgInfo();
-
- // 세부정보 탭이동
- button1.dispatch("onclick");
- } else {
- messageBox("구분이 Y인 데이터만 수정이 ", "I006");
- }
- }
- ]]>
- </script>
- </datagrid>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:5px; top:5px; width:590px; height:30px; "/>
- <bool id="bool2" checkvalue="Y,N" ref="/root/hidden/cond/endyn" style="left:326px; top:12px; width:15px; height:15px; "/>
- <caption id="caption23" style="left:344px; top:11px; width:57px; height:20px; ">해제포함</caption>
- <bool id="bool3" checkvalue="Y,N" ref="/root/hidden/cond/histyn" style="left:410px; top:12px; width:15px; height:15px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/hidden/cond/histyn") == "Y") {
-
- bool2.disabled = true;
- model.setValue("/root/hidden/cond/endyn", "N");
- model.refresh();
-
- } else {
-
- bool2.disabled = false;
- }
-
- ]]>
- </script>
- </bool>
- <caption id="caption24" style="left:429px; top:11px; width:55px; height:20px; ">이력포함</caption>
- <button id="button3" class="btn1_letter2" navindex="4" style="left:530px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.copyNode("/root/send", "/root/hidden/cond");
-
- // 대상목록 조회
- submit("TRPMC06903");
- ]]>
- </script>
- </button>
- <input id="input4" ref="/root/hidden/cond/pid" navindex="2" imemode="alpha" validateformat="false" _chartype="upper" style="left:97px; top:11px; width:70px; height:19px; "/>
- <caption id="caption10" class="search_name" style="left:14px; top:12px; width:80px; height:17px; ">챠트번호</caption>
- <caption id="caption11" class="search_name" style="left:182px; top:12px; width:53px; height:17px; ">성명</caption>
- <input id="input5" ref="/root/hidden/cond/hngnm" navindex="2" imemode="hangul" validateformat="false" _chartype="upper" style="left:235px; top:11px; width:70px; height:19px; "/>
- </case>
- </switch>
- </xhtml:body>
- </xhtml:html>
|