123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCVO02900_VOC관리고객등록
- * Summary : VOC 관리고객 등록
- * Programmer : 김준규
- * Date Written : 2007.10.21
- * History :
- * Remark :
- -->
- <?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>VOC 관리고객 등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <piddata>
- <pid/>
- <hngnm/>
- <mpphontel/>
- <zipcd1/>
- <zipcd2/>
- <zipcdaddr/>
- <detladdr/>
- <rrgstno/>
- <email/>
- <hometel/>
- </piddata>
- <mngdata>
- <pid/>
- <mngtmanflag/>
- <clntvalu/>
- <relaclntnm/>
- </mngdata>
- <search>
- <srchpid/>
- <srchpatnm/>
- <srchcintnm/>
- </search>
- <vocpopup>
- <title/>
- <contents/>
- <inputmode/>
- <receive_path/>
- </vocpopup>
- <temp>
- <data>
- <srchacptdd1/>
- <srchacptdd2/>
- <srchacpttypecd/>
- <srchprcsstatcd/>
- <srchdeptcd/>
- <srchdeptnm/>
- <srchpatnm/>
- <srchpid/>
- <srchfstrgstrnm/>
- </data>
- <key>
- <sndacptdd/>
- <sndacptseq/>
- <sndrgstseq/>
- <sndPID/>
- </key>
- </temp>
- </main>
- <temp>
- <piddata>
- <pid/>
- <hngnm/>
- <mpphontel/>
- <zipcd1/>
- <zipcd2/>
- <zipcdaddr/>
- <detladdr/>
- <rrgstno/>
- <hometel/>
- <email/>
- </piddata>
- </temp>
- <send>
- <data>
- <srchpatnm/>
- <srchpid/>
- <srchprcsstatcd/>
- </data>
- </send>
- <init/>
- </root>
- </instance>
- <submission id="TRCVP00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/mngdata" resultref="/root/temp/piddata"/>
- <submission id="TRCVP00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/temp/key" resultref="/root/main/mngdata"/>
- <submission id="TRCVP00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/temp/key" resultref="/root/main/piddata"/>
- <submission id="TXCVP00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/mngdata"/>
- <submission id="TXCVP00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/piddata"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var resndPID = model.getValue("/root/main/temp/key/sndPID")
-
- if ( resndPID == "" || resndPID == null ){
- var rtn = messageBox("조회에 필요한 항목이 전달되지", "E007");
- if(rtn == 1){
- window.close();
- }
- } else {
- submit("TRCVP00303");
- submit("TRCVP00304");
- }
- fCheckAuth();
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fCheckAuth() {
- // 권한체크
- if (!checkAuth("r")) {
- }
- if (!checkAuth("x")) {
- }
- if (!checkAuth("p")) {
- }
- }
- ]]>
- </script>
- <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"/>
- </xhtml:head>
- <xhtml:body pagewidth="745" pageheight="315" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_tle" style="left:0px; top:0px; width:725px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">VOC 관리고객 정보</caption>
- </group>
- <group id="grp_customer" style="left:0px; top:13px; width:725px; height:260px; ">
- <line id="line3" class="line_1" style="x1:0px; y1:5px; x2:725px; y2:5px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:32px; x2:725px; y2:32px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:56px; x2:725px; y2:56px; "/>
- <line id="line6" class="line_2" style="x1:100px; y1:80px; x2:725px; y2:80px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:104px; x2:725px; y2:104px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:128px; x2:725px; y2:128px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:152px; x2:725px; y2:152px; "/>
- <line id="line16" class="line_3" style="x1:0px; y1:257px; x2:725px; y2:257px; "/>
- <select1 id="cmb_Mngtflag" ref="/root/main/mngdata/mngtmanflag" class="combo_essential" appearance="minimal" style="left:591px; top:11px; width:130px; height:19px; ">
- <choices>
- <item>
- <label>일반</label>
- <value>A</value>
- </item>
- <item>
- <label>★★★★★</label>
- <value>B</value>
- </item>
- <item>
- <label>★(칭찬)</label>
- <value>C</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_rela" ref="/root/main/mngdata/relaclntnm" class="input_default" style="left:108px; top:131px; width:614px; height:19px; "/>
- <textarea id="tar_ClntValu" ref="/root/main/mngdata/clntvalu" class="input_default" scroll="vertical" style="left:108px; top:155px; width:614px; height:100px; "/>
- <input id="ipt_rrgstno" ref="/root/main/piddata/rrgstno" class="output_fix" editable="false" format="999999-9" appearance="input" style="left:591px; top:35px; width:130px; height:19px; "/>
- <input id="ipt_email" ref="/root/main/piddata/email" class="output_fix" style="left:108px; top:107px; width:614px; height:19px; "/>
- <input id="ipt_phone" ref="/root/main/piddata/hometel" class="output_fix" appearance="input" style="left:349px; top:35px; width:130px; height:19px; "/>
- <input id="ipt_PID" ref="/root/main/piddata/pid" class="output_fix" editable="false" appearance="input" style="left:108px; top:11px; width:130px; height:19px; "/>
- <caption id="caption21" class="cell_1" style="left:241px; top:10px; width:105px; height:23px; text-align:center; vertical-align:middle; ">환자명</caption>
- <caption id="caption11" class="cell_1" style="left:483px; top:10px; width:105px; height:23px; text-align:center; vertical-align:middle; ">대상구분</caption>
- <input id="ipt_detladdr" ref="/root/main/piddata/detladdr" class="output_fix" style="left:108px; top:83px; width:614px; height:19px; "/>
- <caption id="caption22" class="cell_1" style="left:0px; top:10px; width:105px; height:23px; text-align:center; vertical-align:middle; ">등록번호</caption>
- <caption id="caption34" class="cell_1" style="left:0px; top:154px; width:105px; height:104px; text-align:center; vertical-align:middle; ">
- <![CDATA[메모 내용]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var s_contents = model.getValue("/root/main/piddata/clntvalu");
- var receive_path = "/root/main/piddata/clntvalu";
-
- model.setValue("/root/main/vocpopup/title", "메모 내용");
- model.setValue("/root/main/vocpopup/contents", s_contents);
- model.makeValue("/root/main/vocpopup/inputmode", "i");
- model.makeValue("/root/main/vocpopup/receive_path", receive_path);
-
- open("SPCVO01000", "", "", "", "SPCVO01000", "/root/main/vocpopup", "/root/main/vocpopup");
-
- model.setValue("/root/main/vocpopup/title", "");
- model.setValue("/root/main/vocpopup/contents", "");
- model.setValue("/root/main/vocpopup/inputmode", "");
- model.setValue("/root/main/vocpopup/receive_path", "");
- model.refresh();
- ]]>
- </script>
- </caption>
- <input id="ipt_mobile" ref="/root/main/piddata/mpphontel" class="output_fix" appearance="input" style="left:108px; top:35px; width:130px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:483px; top:34px; width:105px; height:23px; text-align:center; vertical-align:middle; ">주민번호</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:106px; width:105px; height:23px; text-align:center; vertical-align:middle; ">이메일</caption>
- <input id="ipt_PatNm" ref="/root/main/piddata/hngnm" class="output_fix" editable="false" appearance="input" style="left:349px; top:11px; width:127px; height:19px; "/>
- <caption id="caption14" class="cell_1" style="left:0px; top:58px; width:105px; height:46px; text-align:center; vertical-align:middle; ">주소</caption>
- <input id="ipt_ZipCd1" ref="/root/main/piddata/zipcd1" class="output_fix" style="left:108px; top:59px; width:55px; height:19px; "/>
- <input id="ipt_ZipCd2" ref="/root/main/piddata/zipcd2" class="output_fix" style="left:165px; top:59px; width:55px; height:19px; "/>
- <input id="ipt_ZipCdAddr" ref="/root/main/piddata/zipcdaddr" class="output_fix" style="left:222px; top:59px; width:499px; height:19px; "/>
- <caption id="caption6" class="cell_1" style="left:241px; top:34px; width:105px; height:23px; text-align:center; vertical-align:middle; ">집 전화번호</caption>
- <caption id="caption26" class="cell_1" style="left:0px; top:34px; width:105px; height:23px; text-align:center; vertical-align:middle; ">휴대폰</caption>
- <caption id="caption9" class="cell_1" style="left:0px; top:130px; width:105px; height:23px; text-align:center; vertical-align:middle; ">관련민원인</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:273px; width:725px; height:27px; ">
- <button id="btn_close" class="btn4_letter2" style="left:667px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <button id="btn_refresh" class="btn5_letter9" style="left:3px; top:4px; width:119px; height:19px; ">
- <caption>환자정보 갱신하기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var s_pid = model.getValue("/root/main/piddata/pid");
-
- if (s_pid != ""){
- var rtn = messageBox(" 관리고객의 정보가 병원정보 시스템의 정보로 갱신되게 됩니다.", "Q004");
- if(rtn == 6){
- if(submit("TRCVP00302")){
- if( getNodesetCount("/root/temp/piddata") > 0 ){
- var pid_pid = model.getValue("/root/temp/piddata/pid");
- var pid_patnm = model.getValue("/root/temp/piddata/hngnm");
- var pid_mpphonno = model.getValue("/root/temp/piddata/mpphontel");
- var pid_zipcd1 = model.getValue("/root/temp/piddata/zipcd1");
- var pid_zipcd2 = model.getValue("/root/temp/piddata/zipcd2");
- var pid_zipcdaddr = model.getValue("/root/temp/piddata/zipcdaddr");
- var pid_detladdr = model.getValue("/root/temp/piddata/detladdr");
- var pid_rrgstno = model.getValue("/root/temp/piddata/rrgstno");
- var pid_hometel = model.getValue("/root/temp/piddata/hometel");
- var pid_email = model.getValue("/root/temp/piddata/email");
-
- model.setValue("/root/main/piddata/hngnm", pid_patnm);
- // model.setValue("/root/main/piddata/pid", pid_pid);
- model.setValue("/root/main/piddata/mpphontel", pid_mpphonno);
- model.setValue("/root/main/piddata/zipcd1", pid_zipcd1);
- model.setValue("/root/main/piddata/zipcd2", pid_zipcd2);
- model.setValue("/root/main/piddata/zipcdaddr", pid_zipcdaddr);
- model.setValue("/root/main/piddata/detladdr", pid_detladdr);
- model.setValue("/root/main/piddata/rrgstno", pid_rrgstno);
- model.setValue("/root/main/piddata/hometel", pid_hometel);
- model.setValue("/root/main/piddata/email", pid_email);
-
- model.refresh();
-
- if(submit("TXCVP00302")){
- messageBox("환자정보가 갱신 ", "I002");
- }
- }else{
- messageBox("존재하지 않는 환자 등록번호 ", "E008");
- model.makeNode("/root/temp/piddata");
- }
- }
- }
- } else {
- messageBox("등록번호가 없어 환자정보를 갱신 ", "E001");
- }
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:609px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var s_pid = model.getValue("/root/main/piddata/pid");
-
- if (s_pid != ""){
- if (isRequiredControls("cmb_Mngtflag") ){
- if(submit("TXCVP00301")){
- submit("TXCVP00302");
- messageBox("저장이 ", "I002");
- }
- }
- } else {
- messageBox("등록번호가 없어 저장 ", "E001");
- }
- ]]>
- </script>
- </button>
- <button id="btn_popVOC" class="btn2_letter9" style="left:125px; top:4px; width:119px; height:19px; ">
- <caption>VOC 등록이력 보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var r_PID = model.getValue("/root/main/piddata/pid");
- model.setValue("/root/main/search/srchpid", r_PID);
- open("SPCVO00300", "", "460", "120", "SPCVO00300", "/root/main/search", "/root/main/search");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|