SMAVH00600_인체기증자연명부.xrw 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>인체기증자연명부</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <donat>
  11. <donatlist>
  12. <hngnm/>
  13. <baptnm/>
  14. <sex/>
  15. <rrgstno/>
  16. <srvvfamyhngnm/>
  17. <telphone/>
  18. <addr/>
  19. <nigtacptpsn/>
  20. <acptpsn/>
  21. <deadbodyacptdd/>
  22. <dethdd/>
  23. <deadbodytran/>
  24. <boundgravelayyy/>
  25. <boundgraveno/>
  26. <rem/>
  27. </donatlist>
  28. </donat>
  29. </main>
  30. <send>
  31. <srchfromdd/>
  32. <srchtodd/>
  33. <srchusernm/>
  34. </send>
  35. <init>
  36. <cmbinfo>
  37. <btype/>
  38. <rhtype/>
  39. <relign/>
  40. <emailaddr1/>
  41. <emailaddr2/>
  42. <smplnmakeaprvyn/>
  43. </cmbinfo>
  44. </init>
  45. <hidden>
  46. <list/>
  47. <emailsample1/>
  48. <emailsample2/>
  49. </hidden>
  50. </root>
  51. </instance>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  56. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  58. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  59. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  60. <script type="javascript" ev:event="xforms-ready">
  61. <![CDATA[
  62. ipt_todd.value = getCurrentDate();
  63. ipt_fromdd.value = ipt_todd.value.toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD") ;
  64. model.setValue("/root/send/srchusernm", getUserName());
  65. model.refresh();
  66. ]]>
  67. </script>
  68. <submission id="TRAVH00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/donat"/>
  69. </model>
  70. <script type="javascript">
  71. <![CDATA[
  72. var DbClick_value =0 ;
  73. /** -------------------------------------------------------------------------------------------
  74. * 인체기증 승낙서 List 조회
  75. ------------------------------------------------------------------------------------------- **/
  76. function fSearchList() {
  77. model.resetInstanceNode("/root/main/info/donat");
  78. model.resetInstanceNode("/root/main/info/famyaprv");
  79. model.resetInstanceNode("/root/main/donat/donatlist");
  80. model.resetInstanceNode("/root/main/famyaprv/famyaprvlist");
  81. model.resetInstanceNode("/root/send/donat");
  82. model.resetInstanceNode("/root/send/famyaprv");
  83. if(model.getValue("/root/send/srchfromdd") == "") {
  84. messageBox("조회시작 기준일을","C001");
  85. return ;
  86. }
  87. if(model.getValue("/root/send/srchtodd") == "") {
  88. messageBox("조회종료 기준일 ","C001");
  89. return ;
  90. }
  91. ret = submit("TRAVH00601");
  92. model.toggle("case1");
  93. model.refresh();
  94. }
  95. /* @group : 인체기증자관리
  96. * @ver : 2008.10.05 (CMCDEV-0001)
  97. * @by : 한음미(평화IS)
  98. * @-----------------------------------
  99. * @type : function
  100. * @access : public
  101. * @desc : 출력
  102. */
  103. function fExePrintReport(){
  104. model.makeNode("/root/main/srchfromdd");
  105. model.makeNode("/root/main/srchtodd");
  106. model.setValue("/root/main/srchfromdd", model.getValue("/root/send/srchfromdd"));
  107. model.setValue("/root/main/srchtodd", model.getValue("/root/send/srchtodd"));
  108. exeReportPreview("RPAVH00600", "XMLSTR", "/root");
  109. model.refresh();
  110. }
  111. function isDate(str) { // 날짜 형식에 대한 적합여부 체크
  112. if (str == "") return true; // 빈건 체크안함
  113. if (trim(str) == "") return true; // 빈건 체크안함
  114. if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
  115. if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
  116. var yy = new Number(str.substring(0, 4));
  117. var mm = new Number(str.substring(4, 6)) - 1;
  118. var dd = new Number(str.substring(6, 8));
  119. var date = new Date(yy, mm, dd);
  120. if (yy != date.getFullYear() ||
  121. mm != date.getMonth() ||
  122. dd != date.getDate()) {
  123. return false; // 존재하지 않는 날짜
  124. }
  125. return true; // 존재하는 날짜
  126. }
  127. function trim(data){ // 문자에 대한 TRIM 작업
  128. return data.replace(/(^\s*)|(\s*$)/g, "");
  129. }
  130. ]]>
  131. </script>
  132. </xhtml:head>
  133. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  134. <group id="grp_tle" style="left:0px; top:0px; width:754px; height:13px; ">
  135. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">인체기증자 연명부</caption>
  136. </group>
  137. <group id="grp_biz" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
  138. <line id="line18" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  139. <caption id="caption18" class="tit_2" style="left:5px; top:55px; width:150px; height:13px; ">목록</caption>
  140. <datagrid id="grd_list" nodeset="/root/main/donat/donatlist" caption="성명^세례명^성별^주민등록번호^유가족성명^유가족연락처^유가족주소^야간휴일상담자^인수자^인수일자^사망일자^연구교실^안치년도^묘역번호^비고" colwidth="88, 85, 47, 99, 80, 100, 113, 88, 80, 80, 80, 90, 60, 60, 101, 100, 100, 100, 100" dataheight="23" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1195px; height:620px; text-align:center; ">
  141. <col ref="hngnm"/>
  142. <col ref="baptnm"/>
  143. <col ref="sex"/>
  144. <col ref="rrgstno"/>
  145. <col ref="srvvfamyhngnm"/>
  146. <col ref="telphone"/>
  147. <col ref="addr"/>
  148. <col ref="nigtacptpsn"/>
  149. <col ref="acptpsn"/>
  150. <col ref="deadbodyacptdd"/>
  151. <col ref="dethdd"/>
  152. <col ref="deadbodytran"/>
  153. <col ref="boundgravelayyy"/>
  154. <col ref="boundgraveno"/>
  155. <col ref="rem"/>
  156. </datagrid>
  157. <group id="grp_sea" style="left:1px; top:5px; width:1194px; height:40px; vertical-align:top; ">
  158. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  159. <button id="btn_seach" class="btn1_letter2" navindex="8" style="left:1125px; top:10px; width:56px; height:22px; ">
  160. <caption>조회</caption>
  161. <script type="javascript" ev:event="onclick">
  162. <![CDATA[
  163. fSearchList();
  164. ]]>
  165. </script>
  166. </button>
  167. <line id="line10" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:29px; "/>
  168. <caption id="caption4" class="search_name" style="left:10px; top:10px; width:91px; height:17px; ">기증일자 :</caption>
  169. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_default" navindex="4" inputtype="date" style="left:205px; top:10px; width:95px; height:19px; "/>
  170. <caption id="caption5" style="left:193px; top:10px; width:20px; height:20px; ">~</caption>
  171. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_default" navindex="3" inputtype="date" style="left:98px; top:10px; width:95px; height:19px; "/>
  172. </group>
  173. <button id="btn_rept" class="btn4_letter2" style="left:1125px; top:705px; width:56px; height:22px; ">
  174. <caption>출력</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. fExePrintReport();
  178. ]]>
  179. </script>
  180. </button>
  181. </group>
  182. </xhtml:body>
  183. </xhtml:html>