123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <donat>
- <donatlist>
- <humbodydnorid/>
- <rgstdd/>
- <restcertissdd/>
- <acptdd/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <cntctel/>
- <mpphon/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <addr/>
- <cntcaddr/>
- <btype/>
- <rh/>
- <bdht/>
- <bdwt/>
- <email/>
- <relign/>
- <baptnm/>
- <pastsickandophist/>
- <smplnmakeaprvyn/>
- <hepatitis/>
- <tuberculosis/>
- <vd/>
- <gita/>
- <basicto/>
- <nationto/>
- <restcertreissdd/>
- <restcertreissresn/>
- <rem/>
- <rgstyy/>
- <flag/>
- </donatlist>
- <lastpage>
- <lastpage/>
- </lastpage>
- </donat>
- <famyaprv>
- <famyaprvlist>
- <humbodydnorid/>
- <rgstdd/>
- <aprvpsnhngnm/>
- <aprvdd/>
- <aprvpsnrrgstno1/>
- <aprvpsnrrgstno2/>
- <aprvpsnrelign/>
- <aprvpsnbaptnm/>
- <aprvpsnzipcd1/>
- <aprvpsnzipcd2/>
- <aprvpsnzipcdseq/>
- <aprvpsnaddr/>
- <aprvpsncntcaddr/>
- <aprvpsncntctel/>
- <aprvpsnmpphon/>
- <aprvpsnemail/>
- <aprvpsnrela/>
- <orgndonatdispyn/>
- <rgstyy/>
- <flag/>
- </famyaprvlist>
- </famyaprv>
- <info>
- <donat>
- <humbodydnorid/>
- <rgstdd/>
- <restcertissdd/>
- <acptdd/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <cntctel/>
- <mpphon/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <addr/>
- <cntcaddr/>
- <btype/>
- <rh/>
- <bdht/>
- <bdwt/>
- <email/>
- <relign/>
- <baptnm/>
- <pastsickandophist/>
- <hepatitis/>
- <tuberculosis/>
- <vd/>
- <gita/>
- <basicto/>
- <nationto/>
- <restcertreissdd/>
- <restcertreissresn/>
- <smplnmakeaprvyn/>
- <rem/>
- <rgstyy/>
- <flag/>
- </donat>
- <famyaprv>
- <humbodydnorid/>
- <rgstdd/>
- <aprvpsnhngnm/>
- <aprvdd/>
- <aprvpsnrrgstno1/>
- <aprvpsnrrgstno2/>
- <aprvpsnrelign/>
- <aprvpsnbaptnm/>
- <aprvpsnzipcd1/>
- <aprvpsnzipcd2/>
- <aprvpsnzipcdseq/>
- <aprvpsnaddr/>
- <aprvpsncntcaddr/>
- <aprvpsncntctel/>
- <aprvpsnmpphon/>
- <aprvpsnemail/>
- <aprvpsnrela/>
- <orgndonatdispyn/>
- <rgstyy/>
- <flag/>
- </famyaprv>
- </info>
- </main>
- <send>
- <srchflag>G</srchflag>
- <hngnm/>
- <rrgst1/>
- <rrgst2/>
- <remaintret/>
- <donat/>
- <famyaprv/>
- <rgstdd/>
- <humbodydnorid/>
- <fromdd/>
- <todd/>
- <monflag/>
- </send>
- <init>
- <cmbinfo>
- <btype/>
- <rhtype/>
- <relign/>
- <emailaddr1/>
- <emailaddr2/>
- <smplnmakeaprvyn/>
- </cmbinfo>
- </init>
- <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_todd.value = getCurrentDate();
- //ipt_fromdd.value = ipt_todd.value.toDate().getAddDate(-6,"M").getDateFormat("YYYYMMDD") ;
-
- model.toggle("case1");
-
- //model.setValue("/root/send/srchflag", "1");
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRAVH00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/donat"/>
- <submission id="TRAVH00301" 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 조회
- ------------------------------------------------------------------------------------------- **/
- /* @group : 인체기증자status 조회
- * @ver : 2008.10.06 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 인체기증 승낙서 List 조회
- */
- function fSearchList(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", 1); // page
- model.makeValue("/root/send/itemlimit", "10000"); // 한그리드에 조회되는 row 수
-
- if(model.getValue("/root/send/srchflag") == "") {
- messageBox("구분을","C002");
- return ;
- }
- submit("TRAVH00301");
-
- ipt_paval.value = 1;
-
- }
-
- /* @group : 인체기증자관리
- * @ver : 2008.10.05 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 엑셀저장
- */
- function fExeSaveToExcel(){
- var fileName = window.fileDialog("save", ",", false, "인체기증자Status조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_list.saveExcel(fileName);
- }
- }
-
- /* @group : 인체기증자관리
- * @ver : 2008.10.05 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 성명 입력후 엔터키
- */
- function fExeRefValKeyPress(){
- if(event.keyCode == 13) {
- model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
- ipt_hngnm.refresh();
- //---------------------------
- //조회 호출
- fSearchList();
- }
- }
-
- /* @group : 인체기증자관리
- * @ver : 2008.10.05 (CMCDEV-0001)
- * @by : 한음미(평화IS)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 주민번호 입력후 엔터키
- */
- function fExeRrgstRefValKeyPress(){
- if(event.keyCode == 13) {
- model.makeValue("/root/send/srchrrgst1", ipt_rrgst1.currentText);
- model.makeValue("/root/send/srchrrgst2", ipt_rrgst2.currentText);
- ipt_rrgst1.refresh();
- ipt_rrgst2.refresh();
- //---------------------------
- //조회 호출
- fSearchList();
- }
- }
-
- 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, "");
- }
-
- function fGetTestInfoList(page) {
-
- // alert(model.getValue("/root/hidden/paval"));
-
- //----------------------
- // 이상 페이지 번호 처리
- 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/monflag", model.getValue("/root/send/monflag")); // 조건
- model.makeValue("/root/send/fromdd", model.getValue("/root/send/fromdd")); // 조회일자(from)
- model.makeValue("/root/send/todd", model.getValue("/root/send/todd")); // 조회일자(to)
- model.makeValue("/root/send/hngnm", model.getValue("/root/send/hngnm")); // 성명
- model.makeValue("/root/send/rrgst1", model.getValue("/root/send/rrgst1")); // 주민번호1
- model.makeValue("/root/send/rrgst2", model.getValue("/root/send/rrgst2")); // 주민번호2
- model.makeValue("/root/send/remaintret", model.getValue("/root/send/remaintret")); // 유골처리
- model.makeValue("/root/send/page", page); // page
- model.makeValue("/root/send/itemlimit", "10000"); // 한그리드에 조회되는 row 수
-
- submit("TRAVH00301");
-
- 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; ">인체기증자 Status별 조회</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:150px; height:13px; ">목록</caption>
- <datagrid id="grd_list" nodeset="/root/main/donat/donatlist" autoresize="true" caption="등록번호^성명^주민등록번호^주민등록번호^기증일자^화장일자^유골인수^묘역^주소" colwidth="117, 108, 65, 65, 110, 110, 110, 109, 384" dataheight="23" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1195px; height:655px; text-align:center; ">
- <col ref="humbodydnorid"/>
- <col ref="hngnm"/>
- <col ref="rrgstno1"/>
- <col ref="rrgstno2"/>
- <col ref="deadbodyacptdd" format="yyyy-mm-dd"/>
- <col ref="deadbodycremdd" format="yyyy-mm-dd"/>
- <col ref="remaintret" format="yyyy-mm-dd"/>
- <col ref="boundgraveno"/>
- <col ref="cntcaddr"/>
- </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; "/>
- <input id="ipt_rrgst1" ref="/root/send/rrgst1" class="input_search" navindex="3" maxlength="6" format="999999" style="left:391px; top:10px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeRrgstRefValKeyPress();
- ]]>
- </script>
- </input>
- <input id="ipt_rrgst2" ref="/root/send/rrgst2" class="input_search" navindex="4" maxlength="7" format="9999999" style="left:469px; top:10px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeRrgstRefValKeyPress();
- ]]>
- </script>
- </input>
- <select1 id="cmb_remaintret1" ref="/root/send/remaintret" navindex="7" appearance="minimal" style="left:992px; top:10px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/remaintret03/A0476">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:164px; top:10px; width:50px; height:17px; ">성명</caption>
- <caption id="caption44" class="search_name" style="left:10px; top:10px; width:50px; height:17px; ">구분</caption>
- <caption id="caption13" class="search_name" style="left:312px; top:10px; width:76px; height:17px; ">주민번호</caption>
- <input id="ipt_hngnm" ref="/root/send/hngnm" class="input_search" navindex="2" style="left:217px; top:10px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeRefValKeyPress();
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:913px; top:10px; width:76px; height:17px; ">유골처리</caption>
- <caption id="caption14" style="left:461px; top:10px; width:15px; height:20px; ">-</caption>
- <select1 id="combo8" ref="/root/send/srchflag" navindex="1" appearance="minimal" style="left:64px; top:10px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>기증자</label>
- <value>G</value>
- </item>
- <item>
- <label>기증취소자</label>
- <value>D</value>
- </item>
- </choices>
- </select1>
- <input id="input96" ref="/root/send/fromdd" class="input_default" navindex="5" inputtype="date" maxlength="8" format="yyyy-mm-dd" style="left:695px; top:10px; width:95px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:560px; top:10px; width:50px; height:17px; ">조건</caption>
- <input id="input25" ref="/root/send/todd" class="input_default" navindex="6" inputtype="date" maxlength="8" format="yyyy-mm-dd" style="left:803px; top:10px; width:95px; height:19px; "/>
- <caption id="caption4" style="left:790px; top:10px; width:20px; height:20px; ">~</caption>
- <select1 id="combo3" ref="/root/send/monflag" navindex="1" appearance="minimal" style="left:615px; top:10px; width:75px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value>2</value>
- </item>
- <item>
- <label>사망년월</label>
- <value>0</value>
- </item>
- <item>
- <label>화장년월</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/monflag") != '2') {
- model.setValue("/root/send/todd", getCurrentDate());
- var getFromdate = input25.value.toDate().getAddDate(-12,"M").getDateFormat("YYYYMMDD") ;
- model.setValue("/root/send/fromdd", getFromdate);
- } else {
- model.setValue("/root/send/todd", "");
- model.setValue("/root/send/fromdd", "");
- };
- input96.refresh();
- input25.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_excel" class="btn2_letter4" navindex="12" style="left:1126px; top:49px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSaveToExcel();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter2" style="left:303px; top:47px; 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:49px; 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:47px; width:56px; height:22px; ">
- <caption>처음</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTestInfoList(1);
- ]]>
- </script>
- </button>
- <button id="button8" class="btn4_letter2" style="left:362; top:47px; width:56px; height:22px; ">
- <caption>최종</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTestInfoList(model.getValue("/root/main/list/lastpage/lastpage"));
- ]]>
- </script>
- </button>
- <caption id="cap_lastPage" ref="/root/main/donat/lastpage/lastpage" style="left:248px; top:49px; width:60px; height:20px; font-size:9pt; font-weight:bold; ">1</caption>
- <button id="btn_prntexcel" class="btn3_letter2" style="left:114px; top:47px; width:56px; height:22px; ">
- <caption>이전</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTestInfoList(Number(model.getValue("/root/hidden/paval")) - 1);
- ]]>
- </script>
- </button>
- <caption id="caption38" style="left:240px; top:49px; width:11px; height:20px; font-size:9pt; font-weight:bold; ">/</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|