123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425 |
- <?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="">
- <main>
- <donat>
- <donatlist>
- <humbodydnorid/>
- <hngnm/>
- <baptnm/>
- <sex/>
- <rrgstno/>
- <telphone/>
- <addr/>
- <restcertissdd/>
- <dethdd/>
- <rem/>
- </donatlist>
- <lastpage>
- <lastpage/>
- </lastpage>
- </donat>
- </main>
- <send>
- <srchfromdd/>
- <srchtodd/>
- <srchhngnm/>
- <srchflag/>
- <srchrrgst1/>
- <srchrrgst2/>
- <rgstdd/>
- <humbodydnorfromid/>
- <humbodydnortoid/>
- </send>
- <hidden>
- <list/>
- <emailsample1/>
- <emailsample2/>
- <paval/>
- </hidden>
- </root>
- </instance>
- <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/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //ipt_srchtodd.value = getCurrentDate();
- //ipt_srchfromdd.value = ipt_srchtodd.value.toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD") ;
- srchflag.value = "1";
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRAVH00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/donat/donatlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- var DbClick_value =0 ;
- /** -------------------------------------------------------------------------------------------
- * 인체기증 승낙서 List 조회
- ------------------------------------------------------------------------------------------- **/
- function fSearchList(page) {
-
- // model.setValue("/root/send/rgstdd","");
- // model.setValue("/root/send/humbodydnorid","");
- //
- // if(model.getValue("/root/send/srchflag") == "") {
- // messageBox("구분을","C002");
- // return ;
- // }
- // if(model.getValue("/root/send/srchfromdd") == "") {
- // messageBox("등록 시작 년월을","C001");
- // return ;
- // }
- // if(model.getValue("/root/send/srchtodd") == "") {
- // messageBox("등록 종료 년월을 ","C001");
- // return ;
- // }
- // ret = submit("TRAVH00501");
- //
- // model.refresh();
- //----------------------
- // 이상 페이지 번호 처리
- if(page == "") page = 1;
- if(page < 1) page = 1;
-
- if(page > Number(cap_lastPage.value)) page = Number(cap_lastPage.value);
- if (page == 0) page = 1;
-
- // model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/donat/donatlist");
- model.removeNodeset("/root/main/donat/lastpage");
-
- //--------------------------------------------------------------------------------
- model.makeValue("/root/send/srchflag", model.getValue("/root/send/srchflag")); // 구분
- model.makeValue("/root/send/srchfromdd", model.getValue("/root/send/srchfromdd")); // 조회일자(from)
- model.makeValue("/root/send/srchtodd", model.getValue("/root/send/srchtodd")); // 조회일자(to)
- model.makeValue("/root/send/srchhngnm", model.getValue("/root/send/srchhngnm")); // 성명
- model.makeValue("/root/send/humbodydnorfromid", model.getValue("/root/send/humbodydnorfromid")); // from등록번호
- model.makeValue("/root/send/humbodydnortoid", model.getValue("/root/send/humbodydnortoid")); // to등록번호
- model.makeValue("/root/send/srchrrgst1", model.getValue("/root/send/srchrrgst1")); // 주민번호1
- model.makeValue("/root/send/srchrrgst2", model.getValue("/root/send/srchrrgst2")); // 주민번호2
- model.makeValue("/root/send/page", 1); // page
- model.makeValue("/root/send/itemlimit", "10000"); // 한그리드에 조회되는 row 수
-
-
- if( model.getValue("/root/send/srchflag") == "") {
- messageBox("구분을","C002");
- return ;
- }
- submit("TRAVH00501");
-
- ipt_paval.value = 1;
-
-
-
- }
-
- function isDate(str) { // 날짜 형식에 대한 적합여부 체크
- if (str == "") return true; // 빈건 체크안함
- if (trim(str) == "") return true; // 빈건 체크안함
- if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
- if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
-
- var yy = new Number(str.substring(0, 4));
- var mm = new Number(str.substring(4, 6)) - 1;
- var dd = new Number(str.substring(6, 8));
- var date = new Date(yy, mm, dd);
-
- if (yy != date.getFullYear() ||
- mm != date.getMonth() ||
- dd != date.getDate()) {
- return false; // 존재하지 않는 날짜
- }
- return true; // 존재하는 날짜
- }
- function trim(data){ // 문자에 대한 TRIM 작업
- return data.replace(/(^\s*)|(\s*$)/g, "");
- }
-
- /* @group : 인체기증승낙서
- * @ver : 2008.10.05 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 성명 입력후 엔터키
- */
- function fExeRefValKeyPress(){
- if(event.keyCode == 13) {
- model.setValue("/root/send/srchhngnm", ipt_srchhngnm.currentText);
- ipt_srchhngnm.refresh();
- //---------------------------
- //조회 호출
- fSearchList();
- }
- }
-
- /* @group : 인체기증승낙서
- * @ver : 2008.10.05 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 주민번호 입력후 엔터키
- */
- function fExeRrgstRefValKeyPress(){
- if(event.keyCode == 13) {
- model.setValue("/root/send/srchrrgst1", ipt_srchrrgst1.currentText);
- model.setValue("/root/send/srchrrgst2", ipt_srchrrgst2.currentText);
- ipt_srchrrgst1.refresh();
- ipt_srchrrgst2.refresh();
- //---------------------------
- //조회 호출
- fSearchList();
- }
- }
-
- /* @group : 인체기증승낙서
- * @ver : 2009.08.04 (CMCDEV-0001)
- * @by : 박상환(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 등록번호 입력후 엔터키
- */
- function fExeHumbodyKeyPress(){
- if(event.keyCode == 13) {
- model.setValue("/root/send/humbodydnorid", ipt_humbodydnorid.currentText);
- ipt_humbodydnorid.refresh();
- //---------------------------
- //조회 호출
- fSearchList();
- }
- }
-
- /* @group : 인체기증자관리
- * @ver : 2008.10.05 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 출력
- */
- function fExePrintReport(){
- model.makeNode("/root/main/srchfromdd");
- model.makeNode("/root/main/srchtodd");
- model.makeNode("/root/main/srchhngnm");
- model.makeNode("/root/main/srchrrgst1");
- model.makeNode("/root/main/srchrrgst2");
- model.makeNode("/root/main/srchflag");
-
- model.setValue("/root/main/srchfromdd", model.getValue("/root/send/srchfromdd"));
- model.setValue("/root/main/srchtodd", model.getValue("/root/send/srchtodd"));
- model.setValue("/root/main/srchhngnm", model.getValue("/root/send/srchhngnm"));
- model.setValue("/root/main/srchrrgst1", model.getValue("/root/send/srchrrgst1"));
- model.setValue("/root/main/srchrrgst2", model.getValue("/root/send/srchrrgst2"));
- model.setValue("/root/main/srchflag", model.getValue("/root/send/srchflag"));
- exeReportPreview("RPAVH00500", "XMLSTR", "/root");
- model.refresh();
- }
-
- function fGetTestInfoList(page) {
- //----------------------
- // 이상 페이지 번호 처리
- if(page == "") page = 1;
- if(page < 1) page = 1;
-
- if(page > Number(cap_lastPage.value)) page = Number(cap_lastPage.value);
- if (page == 0) page = 1;
-
- // model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/donat/donatlist");
- model.removeNodeset("/root/main/donat/lastpage");
-
- //--------------------------------------------------------------------------------
- model.makeValue("/root/send/srchflag", model.getValue("/root/send/srchflag")); // 구분
- model.makeValue("/root/send/srchfromdd", model.getValue("/root/send/srchfromdd")); // 조회일자(from)
- model.makeValue("/root/send/srchtodd", model.getValue("/root/send/srchtodd")); // 조회일자(to)
- model.makeValue("/root/send/srchhngnm", model.getValue("/root/send/srchhngnm")); // 성명
- model.makeValue("/root/send/srchrrgst1", model.getValue("/root/send/srchrrgst1")); // 주민번호1
- model.makeValue("/root/send/srchrrgst2", model.getValue("/root/send/srchrrgst2")); // 주민번호2
- model.makeValue("/root/send/page", page); // page
- model.makeValue("/root/send/itemlimit", "10000"); // 한그리드에 조회되는 row 수
-
- submit("TRAVH00501");
-
- ipt_paval.value = page;
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:754px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">인체기증 승낙서 연명부</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
- <line id="line18" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
- <caption id="caption18" class="tit_2" style="left:5px; top:55px; width:50px; height:13px; ">목록</caption>
- <datagrid id="grd_list" nodeset="/root/main/donat/donatlist" autoresize="true" caption="등록번호^성명^세례명^성별^주민등록번호^주민등록번호^전화번호^주소^발급일자^사망일자^비고" colwidth="100, 100, 122, 80, 65, 65, 110, 200, 117, 100, 130" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1195px; height:620px; text-align:center; ">
- <col ref="humbodydnorid"/>
- <col ref="hngnm"/>
- <col ref="baptnm"/>
- <col ref="sex"/>
- <col ref="rrgstno1"/>
- <col ref="rrgstno2"/>
- <col ref="cntctel"/>
- <col ref="cntcaddr" style="text-align:left; "/>
- <col ref="restcertissdd" format="yyyy-mm-dd"/>
- <col ref="dethdd" format="yyyy-mm-dd"/>
- <col ref="rem" style="text-align:left; "/>
- </datagrid>
- <group id="grp_sea" style="left:1px; top:5px; width:1194px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_seach" class="btn1_letter2" navindex="8" style="left:1125px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSearchList();
- ]]>
- </script>
- </button>
- <line id="line10" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:29px; "/>
- <caption id="caption1" class="search_name" style="left:10px; top:10px; width:65px; height:17px; ">구분 :</caption>
- <caption id="caption2" class="search_name" style="left:417px; top:10px; width:65px; height:17px; ">성명 :</caption>
- <input id="ipt_srchfromdd" ref="/root/send/srchfromdd" class="input_default" navindex="3" inputtype="date" style="left:205px; top:10px; width:95px; height:19px; "/>
- <input id="ipt_srchtodd" ref="/root/send/srchtodd" class="input_default" navindex="4" inputtype="date" style="left:312px; top:10px; width:95px; height:19px; "/>
- <caption id="caption5" style="left:300px; top:10px; width:20px; height:20px; ">~</caption>
- <select1 id="srchflag" ref="/root/send/srchflag" class="combo_default" navindex="2" appearance="minimal" style="left:75px; top:10px; width:120px; height:19px; ">
- <choices>
- <item>
- <label>우편물발송일자</label>
- <value>0</value>
- </item>
- <item>
- <label>등록일자</label>
- <value>1</value>
- </item>
- <item>
- <label>등록증발급일자</label>
- <value>2</value>
- </item>
- </choices>
- <hint>
- <![CDATA[전체구분 조회시 우편물발송내역의 기증자조회]]>
- </hint>
- </select1>
- <input id="ipt_srchhngnm" ref="/root/send/srchhngnm" class="input_search" navindex="5" style="left:482px; top:10px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeRefValKeyPress();
- ]]>
- </script>
- </input>
- <input id="ipt_srchrrgst1" ref="/root/send/srchrrgst1" class="input_search" navindex="8" maxlength="6" format="999999" style="left:974px; top:10px; width:60px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeRrgstRefValKeyPress();
- ]]>
- </script>
- </input>
- <input id="ipt_srchrrgst2" ref="/root/send/srchrrgst2" class="input_search" navindex="9" maxlength="7" format="9999999" style="left:1044px; top:10px; width:60px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeRrgstRefValKeyPress();
- ]]>
- </script>
- </input>
- <caption id="caption31" class="search_name" style="left:592px; top:10px; width:91px; height:17px; ">등록번호 :</caption>
- <caption id="caption13" class="search_name" style="left:884px; top:10px; width:91px; height:17px; ">주민번호 :</caption>
- <caption id="caption14" style="left:1034px; top:10px; width:20px; height:20px; ">-</caption>
- <input id="ipt_humbodydnorid" ref="/root/send/humbodydnorfromid" class="input_search" navindex="6" maxlength="30" style="left:682px; top:10px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeHumbodyKeyPress();
- ]]>
- </script>
- </input>
- <input id="input1" ref="/root/send/humbodydnortoid" class="input_search" navindex="7" maxlength="30" style="left:784px; top:10px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeHumbodyKeyPress();
- ]]>
- </script>
- </input>
- <caption id="caption3" style="left:772px; top:10px; width:20px; height:20px; ">~</caption>
- </group>
- <button id="btn_rept" class="btn4_letter2" style="left:1125px; top:705px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExePrintReport();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter2" style="left:303px; top:47; width:56px; height:22px; ">
- <caption>다음</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTestInfoList(Number(model.getValue("/root/hidden/paval")) + 1);
- ]]>
- </script>
- </button>
- <input id="ipt_paval" ref="/root/hidden/paval" class="input_search" style="left:173px; top:49; width:65px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetTestInfoList(model.getValue("/root/hidden/paval"));
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13 && ipt_paval.currentText != ipt_paval.value) {
- model.setValue("/root/hidden/paval", ipt_paval.currentText);
- ipt_paval.dispatch("xforms-value-changed");
- }
- else if(event.keyCode != 8 && (event.keyCode < 48 || event.keyCode > 57)) {
- event.defaultAction = "cancel";
- }
- ]]>
- </script>
- </input>
- <button id="button6" class="btn3_letter2" style="left:55px; top:47; width:56px; height:22px; ">
- <caption>처음</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTestInfoList(1);
- ]]>
- </script>
- </button>
- <button id="button7" class="btn4_letter2" style="left:362px; top:47; width:56px; height:22px; ">
- <caption>최종</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTestInfoList(model.getValue("/root/main/donat/lastpage/lastpage"));
- ]]>
- </script>
- </button>
- <caption id="cap_lastPage" ref="/root/main/donat/lastpage/lastpage" style="left:248px; top:49; width:60px; height:20px; font-size:9pt; font-weight:bold; ">1</caption>
- <caption id="caption4" style="left:240px; top:49; width:11px; height:20px; font-size:9pt; font-weight:bold; ">/</caption>
- <button id="btn_prntexcel" class="btn3_letter2" style="left:114px; top:47; width:56px; height:22px; ">
- <caption>이전</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTestInfoList(Number(model.getValue("/root/hidden/paval")) - 1);
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|