123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <rcv>
- <ptbs>
- <ptbs_pid/>
- <ptbs_hngnm/>
- <ptbs_rrgstno1/>
- <ptbs_rrgstno2/>
- <ptbs_zipnm/>
- <ptbs_detladdr/>
- <ptbs_hometel/>
- <ptbs_mpphontel/>
- </ptbs>
- </rcv>
- <prgrgst>
- <prgrgstlist>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <hometel/>
- <mpphontel/>
- <addr/>
- <rgstdd/>
- <ptnernm/>
- <partrtndt/>
- <prgweekcnt/>
- <prgadddaycnt/>
- </prgrgstlist>
- </prgrgst>
- </main>
- <send>
- <data1>
- <fromdd/>
- <todd/>
- <paoflag>O</paoflag>
- </data1>
- <data2>
- <pid/>
- <rgstdd/>
- <istatus/>
- </data2>
- </send>
- <hidden>
- <rcv>
- <savepat>
- <state/>
- </savepat>
- </rcv>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var curDate = getCurrentDate();
- model.setValue("/root/send/data1/fromdd",curDate);
- model.setValue("/root/send/data1/todd",curDate);
- model.setValue("/root/send/data2/rgstdd",curDate);
- model.refresh();
- ]]>
- </script>
- <submission id="TRPMC07201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/prgrgst"/>
- <submission id="TRPMC00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/rcv"/>
- <submission id="TXPMC07201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/hidden/rcv"/>
- </model>
- <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/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fSearch(){
- submit("TRPMC07201");
- }
- function fOJBaseInfoRef()
- {
- model.resetInstanceNode("/root/main/rcv/ptbs");
- submit("TRPMC00902");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group2" style="left:0px; top:20px; width:835px; height:40px; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:830px; height:35px; "/>
- <line id="line13" class="line_4" style="x1:425px; y1:5px; x2:425px; y2:27px; border-color:#ffe4bb; "/>
- <caption id="caption32" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회기간 :</caption>
- <caption id="caption1" style="left:225px; top:10px; width:12px; height:16px; vertical-align:middle; ">~</caption>
- <caption id="caption2" class="search_name" style="left:476px; top:9px; width:90px; height:17px; ">조회조건 :</caption>
- <select1 id="rdo_cond" ref="/root/send/data1/paoflag" overflow="visible" appearance="full" cellspacing="6" cols="2" rows="1" style="left:576px; top:9px; width:155px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>외래등록자</label>
- <value>O</value>
- </item>
- <item>
- <label>분만자</label>
- <value>P</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rdo_cond.value =='O'){
- for(i=7;i<=10;i++){
- datagrid1.colHidden(i) = true;
- }
- datagrid1.colHidden(6) = false;
- }else if(rdo_cond.value =='P'){
- datagrid1.colHidden(6) = true;
- for(i=7;i<=10;i++){
- datagrid1.colHidden(i) = false;
- }
- }
-
- fSearch();
- ]]>
- </script>
- </select1>
- <input id="input2" ref="/root/send/data1/todd" class="input_search" inputtype="date" style="left:240px; top:7px; width:100px; height:19px; "/>
- <input id="input1" ref="/root/send/data1/fromdd" class="input_search" inputtype="date" style="left:120px; top:7px; width:100px; height:19px; "/>
- </group>
- <button id="btn_search" class="btn1_letter2" style="left:760px; top:27px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:185px; x2:830px; y2:185px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:170px; width:136px; height:13px; ">임산부 신규 등록자</caption>
- <button id="button3" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:706px; top:162px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>액셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "임산부신규등록자", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- var condnm = rdo_cond.label;
- datagrid1.saveExcel(fileName, condnm, false, false, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- <datagrid id="datagrid1" nodeset="/root/main/prgrgst/prgrgstlist" scroll="horizontal" caption="임산부성명^주민번호^전화번호^핸드폰번호^주소^등록일자^배우자성명^분만일시^분만주수(주/일)^분만주수(주/일)" colsep="^" colwidth="87, 128, 100, 134, 228, 100, 100, 100, 57, 52" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:190px; width:830px; height:425px; ">
- <col ref="hngnm"/>
- <col ref="rrgstno"/>
- <col ref="hometel"/>
- <col ref="mpphontel"/>
- <col ref="addr"/>
- <col ref="rgstdd" format="yyyy-mm-dd" style="left:697px; top:23px; width:100px; height:23px; "/>
- <col ref="ptnernm" style="left:777px; top:23px; width:100px; height:23px; "/>
- <col ref="partrtndt" format="yyyy-mm-dd"/>
- <col ref="prgweekcnt"/>
- <col ref="prgadddaycnt"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var spid = model.getValue("/root/main/prgrgst/prgrgstlist["+datagrid1.row+"]/pid");
- var srgstdd = model.getValue("/root/main/prgrgst/prgrgstlist["+datagrid1.row+"]/rgstdd");
-
- model.setValue("/root/send/data2/pid",spid);
- model.setValue("/root/send/data2/rgstdd",srgstdd);
- // ipt_fromdd.refresh();
- fOJBaseInfoRef();
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption21" class="cell_1" style="left:0px; top:100px; width:70px; height:23px; vertical-align:middle; ">등록번호</caption>
- <input id="ipt_pid" ref="/root/send/data2/pid" class="input_s_essential" navindex="1" maxlength="10" style="left:75px; top:102px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode=='13') {
-
- model.setValue("/root/send/data2/pid", ipt_pid.currentText);
- fOJBaseInfoRef();
- }
- ]]>
- </script>
- </input>
- <caption id="caption23" class="cell_1" style="left:185px; top:100px; width:60px; height:23px; vertical-align:middle; ">성명</caption>
- <input id="ipt_hngnm" ref="/root/main/rcv/ptbs/ptbs_hngnm" class="output_fix" navindex="2" imemode="hangul" style="left:250px; top:102px; width:105px; height:19px; "/>
- <caption id="caption35" class="cell_1" style="left:360px; top:100px; width:100px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption8" class="cell_1" style="left:0px; top:125px; width:70px; height:23px; vertical-align:middle; ">주소</caption>
- <input id="opt_addr" ref="/root/main/rcv/ptbs/ptbs_zipnm" class="output_fix" style="left:74px; top:127px; width:271px; height:19px; "/>
- <caption id="caption20" class="cell_1" style="left:515px; top:125px; width:50px; height:23px; vertical-align:middle; ">연락처</caption>
- <caption id="caption4" class="cell_1" style="left:675px; top:125px; width:50px; height:23px; vertical-align:middle; ">휴대폰</caption>
- <input id="opt_hometel" ref="/root/main/rcv/ptbs/ptbs_hometel" class="output_fix" style="left:570px; top:127px; width:100px; height:19px; "/>
- <input id="opt_mpphontel" ref="/root/main/rcv/ptbs/ptbs_mpphontel" class="output_fix" style="left:730px; top:127px; width:101px; height:19px; "/>
- <input id="ipt_rrgstno1" ref="/root/main/rcv/ptbs/ptbs_rrgstno1" class="output_fix" navindex="3" style="left:465px; top:102px; width:80px; height:19px; "/>
- <input id="ipt_rrgstno2" ref="/root/main/rcv/ptbs/ptbs_rrgstno2" class="output_fix" navindex="4" style="left:556px; top:102px; width:85px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:645px; top:100px; width:80px; height:23px; vertical-align:middle; ">등록일자</caption>
- <input id="ipt_fromdd" ref="/root/send/data2/rgstdd" inputtype="date" format="yyyy-mm-dd" style="left:730px; top:102px; width:100px; height:19px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:123px; x2:830px; y2:123px; "/>
- <line id="line5" class="line_2" style="x1:5px; y1:149px; x2:830px; y2:149px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:95px; x2:830px; y2:95px; "/>
- <caption id="caption6" class="tit_2" style="left:0px; top:80px; width:126px; height:13px; font-family:돋움; vertical-align:middle; ">인적사항</caption>
- <caption id="caption7" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">임산부등록조회</caption>
- <button id="button1" class="btn4_letter4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:690px; top:70px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>신규저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/send/data2/pid");
- var rgstdd = model.getValue("/root/send/data2/rgstdd");
- var selpid = getNodesetCount("/root/main/rcv/ptbs");
- var selpid = model.getValue("/root/main/rcv/ptbs/ptbs_pid");
- var curDate = getCurrentDate();
-
- model.setValue("/root/send/data2/istatus","I"); // 상태: 저장
-
- if(selpid > 0 && pid!="" && rgstdd!="" && selpid==pid){
- // 임산부 등록관리 저장
- if(submit("TXPMC07201")){
- if(model.getValue("/root/hidden/rcv/savepat/state")!="Y"){ // Y : 저장된 데이터 없음 , N : 기존데이터 존재
- messageBox("자료가 존재합니다","E999","");
- }
- model.resetInstanceNode("/root/main/rcv/ptbs");
- model.resetInstanceNode("/root/send/data2");
- model.setValue("/root/send/data2/rgstdd",curDate);
- model.refresh();
- fSearch();
- }
- }
- else {
- messageBox("환자를 선택하세요!","E999","");
- }
-
- ]]>
- </script>
- </button>
- <button id="button10" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:775px; top:160px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (datagrid1.valueMatrix( 1, 1) != "" ){
- exeReportPreview("RPPMC07200", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true", "", "");
- }
- ]]>
- </script>
- </button>
- <caption id="caption9" style="left:546px; top:102px; width:10px; height:20px; ">-</caption>
- <input id="input3" ref="/root/main/rcv/ptbs/ptbs_detladdr" class="output_fix" style="left:346px; top:127px; width:166px; height:19px; "/>
- <button id="button2" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:773px; top:70px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/send/data2/pid");
- var rgstdd = model.getValue("/root/send/data2/rgstdd");
- var selpid = getNodesetCount("/root/main/rcv/ptbs");
- var selpid = model.getValue("/root/main/rcv/ptbs/ptbs_pid");
- var curDate = getCurrentDate();
-
- model.setValue("/root/send/data2/istatus","D"); // 상태: 삭제
-
- if(selpid > 0 && pid!="" && rgstdd!="" && selpid==pid){
- // 임산부 등록관리 저장
- if(submit("TXPMC07201")){
- if(model.getValue("/root/hidden/rcv/savepat/state")!="N"){ // Y : 저장된 데이터 없음 , N : 기존데이터 존재
- messageBox("저장된 자료가 없습니다.","E999","");
- }
- model.resetInstanceNode("/root/main/rcv/ptbs");
- model.resetInstanceNode("/root/send/data2");
- model.setValue("/root/send/data2/rgstdd",curDate);
- model.refresh();
- fSearch();
- }
- }
- else {
- messageBox("환자를 선택하세요!","E999","");
- }
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|