123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPPMC02010_보호자연락처관리.xrw
- * 설 명 : 보호자연락처관리
- * 설 계 자 :
- * 작 성 자 : 조중래
- * 작 성 일 : 2015.06.19
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <protinfo>
- <protlist/>
- </protinfo>
- <patinfo>
- <hngnm/>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <pid/>
- <savedata>
- <protlist/>
- </savedata>
- <data9>
- <pid/>
- <srchcond/>
- <checkfnexam/>
- <autoflag/>
- </data9>
- <srchcnd>1</srchcnd>
- <prothngnm/>
- </send>
- <init>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- if (isPopup()) {
- var sPid = opener.javascript.getParameter("SPPMC02010_PID");
- var sHngnm = opener.javascript.getParameter("SPPMC02010_HNGNM");
-
- if (sPid == null || sPid == "") {
- //alert("환자가 선택되어 있지 않습니다.");
- } else {
- model.setValue("/root/send/pid", sPid);
- model.setValue("/root/main/patinfo/hngnm", sHngnm);
-
- fSearch();
- }
- }
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRPMC01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/protinfo"/>
- <submission id="TXPMC01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata/protlist" resultref="/root/main/protinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.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/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fSearch() {
-
- var srchCnd = model.getValue("/root/send/srchcnd");
- var sPid = model.getValue("/root/send/pid");
-
- if (srchCnd == "1" && (sPid == null || sPid == "")) {
- alert("환자조회 시 환자정보는 필수입니다.");
- return;
- }
-
- // 재조회
- submit("TRPMC01404");
-
- if (getNodesetCount("/root/main/protinfo/protlist") < 1) {
- alert("검색결과가 존재하지 않습니다.");
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="740" pageheight="300" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:710px; height:270px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:707px; y2:70px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:-69px; width:108px; height:84px; ">통장입금내역</caption>
- <datagrid id="datagrid1" nodeset="/root/main/protinfo/protlist" caption="등록번호^환자성명^관계^보호자성명^연락처^비고^pid^seqno^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14" colsep="^" colwidth="70, 70, 82, 70, 111, 266, 100, 100" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:75px; width:707px; height:190px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="protflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>본인</label>
- <value>1</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>
- </choices>
- </col>
- <col ref="name" type="input" style="text-align:center; "/>
- <col ref="phone" type="input" style="text-align:center; "/>
- <col ref="remark" type="input"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- var row = datagrid1.row;
-
- if ((datagrid1.col == datagrid1.colRef("pid"))
- || (datagrid1.col == datagrid1.colRef("hngnm"))) {
-
- // 검색조건 재설정
- model.setValue("/root/send/srchcnd", "1");
- model.setValue("/root/send/prothngnm", "");
- input3.disabled=true;
- input1.disabled=false;
- model.setValue("/root/send/pid", model.getValue("/root/main/protinfo/protlist[" + row + "]/pid"));
- model.refresh();
-
- button6.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:100px; height:13px; font-family:돋움; vertical-align:middle; ">보호자 연락처</caption>
- <button id="button1" class="btn2_letter3" style="left:448px; top:50px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter2" style="left:503px; top:50px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var srchCnd = model.getValue("/root/send/srchcnd");
- var sHngnm = model.getValue("/root/main/patinfo/hngnm");
-
- if (srchCnd != "1") {
- alert("환자조회시에만 가능합니다.");
- return;
-
- } else if (srchCnd == "1" && (sHngnm == null || sHngnm == "")) {
- alert("환자가 조회되어있지 않습니다. \r\n환자정보 재조회하십시오.");
- return;
- }
-
- datagrid1.addRow();
- datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("pid")) = input1.value;
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter2" style="left:547px; top:50px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var srchCnd = model.getValue("/root/send/srchcnd");
- var sHngnm = model.getValue("/root/main/patinfo/hngnm");
-
- if (srchCnd != "1") {
- alert("환자조회시에만 가능합니다.");
- return;
-
- } else if (srchCnd == "1" && (sHngnm == null || sHngnm == "")) {
- alert("환자가 조회되어있지 않습니다. \r\n환자정보 재조회하십시오.");
- return;
- }
-
- if ( datagrid1.rowStatus(datagrid1.row) == 1 || datagrid1.rowStatus(datagrid1.row) == 3 ) {
- datagrid1.deleteRow();
- } else {
- datagrid1.rowStatus(datagrid1.row) = 4;
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn5_letter2" style="left:591px; top:50px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var srchCnd = model.getValue("/root/send/srchcnd");
- var sHngnm = model.getValue("/root/main/patinfo/hngnm");
-
- if (srchCnd != "1") {
- alert("환자조회시에만 가능합니다.");
- return;
-
- } else if (srchCnd == "1" && (sHngnm == null || sHngnm == "")) {
- alert("환자가 조회되어있지 않습니다. \r\n환자정보 재조회하십시오.");
- return;
- }
-
- for (var i = datagrid1.fixedRows; i < datagrid1.rows; i++) {
- if ( datagrid1.rowStatus(i) == 1 || datagrid1.rowStatus(i) == 2 || datagrid1.rowStatus(i) == 3 ) {
- if ( datagrid1.valueMatrix(i, datagrid1.colRef("protflag")) == "" || datagrid1.valueMatrix(i, datagrid1.colRef("name")) == "") {
- messageBox("관계, 성명은 필수입력값입니다.", "E999", "");
- return;
- }
- }
- }
- model.removeNodeset("/root/send/savedata/protlist");
- model.makeValue("/root/send/savedata/protlist", getGridUpdateData(datagrid1));
- submit("TXPMC01404");
-
- // 재조회
- submit("TRPMC01404");
- ]]>
- </script>
- </button>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:15px; width:707px; height:30px; "/>
- <input id="input1" ref="/root/send/pid" navindex="1" style="left:117px; top:20px; width:66px; height:19px; padding-left:5; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- setInputNodeCurText();
- button6.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:9px; top:20px; width:85px; height:17px; ">등록번호 :</caption>
- <button id="button5" class="btn1_letter2" navindex="3" style="left:640px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption5" class="tit_2" style="left:5px; top:0px; width:100px; height:13px; font-family:돋움; vertical-align:middle; ">인적사항</caption>
- <input id="input2" ref="/root/main/patinfo/hngnm" disabled="true" navindex="5" visibility="visible" style="left:182px; top:20px; width:63px; height:19px; text-align:center; "/>
- <button id="button6" class="icon_search" navindex="4" style="left:97px; top:20px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ptbs_pid = model.getValue("/root/send/pid");
-
- if (ptbs_pid == null || ptbs_pid ==" " || ptbs_pid == "") {
- model.resetInstanceNode("/root/send/data9");
- } else {
- model.setValue("/root/send/data9/pid", ptbs_pid);
- model.setValue("/root/send/data9/srchcond", "1");
- }
- model.setValue("/root/send/data9/checkfnexam", "1");
- model.setValue("/root/send/data9/autoflag", "Y"); //조회내역이 1건인 경우 자동 화면 닫기
- modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data9", "/root/send");
- model.resetInstanceNode("/root/send/data9");
-
- if (model.getValue("/root/main/popupendflag") == "ok") {
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- model.setValue("/root/send/pid", sPid);
- model.setValue("/root/main/patinfo/hngnm", sHngnm);
-
- fSearch();
-
- } else {
- return;
- }
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:260px; top:20px; width:100px; height:17px; ">조회구분 :</caption>
- <select1 id="radio1" ref="/root/send/srchcnd" navindex="2" appearance="full" cols="2" overflow="visible" style="left:345px; top:22px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>환자</label>
- <value>1</value>
- </item>
- <item>
- <label>보호자</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var srchCnd = model.getValue("/root/send/srchcnd");
- if (srchCnd == "1") {
- model.setValue("/root/send/prothngnm", "");
- input3.disabled=true;
- input1.disabled=false;
- } else {
- model.setValue("/root/send/pid", "");
- model.setValue("/root/main/patinfo/hngnm", "");
- input3.disabled=false;
- input1.disabled=true;
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption6" class="search_name" style="left:460px; top:20px; width:100px; height:17px; ">보호자성명 :</caption>
- <input id="input3" ref="/root/send/prothngnm" disabled="true" navindex="6" visibility="visible" style="left:558px; top:20px; width:63px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- setInputNodeCurText();
- button5.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="button7" class="btn2_letter4" style="left:643px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(datagrid1.rows <= 1) {
- messageBox("저장할 데이터가","I004");
- return false;
- }
- var fileName = window.fileDialog("save", ",", false, "보호자리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- datagrid1.saveExcel(fileName, "SheetName", true, true, "", "", "");
- }
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_cancel" class="btn4_letter2" navindex="7" style="left:652px; top:273px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (checkOpener())
- {
- window.close();
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|