SMAVH00500_인체기증승낙서연명부.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  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. <humbodydnorid/>
  13. <hngnm/>
  14. <baptnm/>
  15. <sex/>
  16. <rrgstno/>
  17. <telphone/>
  18. <addr/>
  19. <restcertissdd/>
  20. <dethdd/>
  21. <rem/>
  22. </donatlist>
  23. <lastpage>
  24. <lastpage/>
  25. </lastpage>
  26. </donat>
  27. </main>
  28. <send>
  29. <srchfromdd/>
  30. <srchtodd/>
  31. <srchhngnm/>
  32. <srchflag/>
  33. <srchrrgst1/>
  34. <srchrrgst2/>
  35. <rgstdd/>
  36. <humbodydnorfromid/>
  37. <humbodydnortoid/>
  38. </send>
  39. <hidden>
  40. <list/>
  41. <emailsample1/>
  42. <emailsample2/>
  43. <paval/>
  44. </hidden>
  45. </root>
  46. </instance>
  47. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  51. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  53. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  54. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. //ipt_srchtodd.value = getCurrentDate();
  58. //ipt_srchfromdd.value = ipt_srchtodd.value.toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD") ;
  59. srchflag.value = "1";
  60. model.refresh();
  61. ]]>
  62. </script>
  63. <submission id="TRAVH00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/donat/donatlist"/>
  64. </model>
  65. <script type="javascript">
  66. <![CDATA[
  67. var DbClick_value =0 ;
  68. /** -------------------------------------------------------------------------------------------
  69. * 인체기증 승낙서 List 조회
  70. ------------------------------------------------------------------------------------------- **/
  71. function fSearchList(page) {
  72. // model.setValue("/root/send/rgstdd","");
  73. // model.setValue("/root/send/humbodydnorid","");
  74. //
  75. // if(model.getValue("/root/send/srchflag") == "") {
  76. // messageBox("구분을","C002");
  77. // return ;
  78. // }
  79. // if(model.getValue("/root/send/srchfromdd") == "") {
  80. // messageBox("등록 시작 년월을","C001");
  81. // return ;
  82. // }
  83. // if(model.getValue("/root/send/srchtodd") == "") {
  84. // messageBox("등록 종료 년월을 ","C001");
  85. // return ;
  86. // }
  87. // ret = submit("TRAVH00501");
  88. //
  89. // model.refresh();
  90. //----------------------
  91. // 이상 페이지 번호 처리
  92. if(page == "") page = 1;
  93. if(page < 1) page = 1;
  94. if(page > Number(cap_lastPage.value)) page = Number(cap_lastPage.value);
  95. if (page == 0) page = 1;
  96. // model.removeNodeset("/root/send");
  97. model.removeNodeset("/root/main/donat/donatlist");
  98. model.removeNodeset("/root/main/donat/lastpage");
  99. //--------------------------------------------------------------------------------
  100. model.makeValue("/root/send/srchflag", model.getValue("/root/send/srchflag")); // 구분
  101. model.makeValue("/root/send/srchfromdd", model.getValue("/root/send/srchfromdd")); // 조회일자(from)
  102. model.makeValue("/root/send/srchtodd", model.getValue("/root/send/srchtodd")); // 조회일자(to)
  103. model.makeValue("/root/send/srchhngnm", model.getValue("/root/send/srchhngnm")); // 성명
  104. model.makeValue("/root/send/humbodydnorfromid", model.getValue("/root/send/humbodydnorfromid")); // from등록번호
  105. model.makeValue("/root/send/humbodydnortoid", model.getValue("/root/send/humbodydnortoid")); // to등록번호
  106. model.makeValue("/root/send/srchrrgst1", model.getValue("/root/send/srchrrgst1")); // 주민번호1
  107. model.makeValue("/root/send/srchrrgst2", model.getValue("/root/send/srchrrgst2")); // 주민번호2
  108. model.makeValue("/root/send/page", 1); // page
  109. model.makeValue("/root/send/itemlimit", "10000"); // 한그리드에 조회되는 row 수
  110. if( model.getValue("/root/send/srchflag") == "") {
  111. messageBox("구분을","C002");
  112. return ;
  113. }
  114. submit("TRAVH00501");
  115. ipt_paval.value = 1;
  116. }
  117. function isDate(str) { // 날짜 형식에 대한 적합여부 체크
  118. if (str == "") return true; // 빈건 체크안함
  119. if (trim(str) == "") return true; // 빈건 체크안함
  120. if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
  121. if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
  122. var yy = new Number(str.substring(0, 4));
  123. var mm = new Number(str.substring(4, 6)) - 1;
  124. var dd = new Number(str.substring(6, 8));
  125. var date = new Date(yy, mm, dd);
  126. if (yy != date.getFullYear() ||
  127. mm != date.getMonth() ||
  128. dd != date.getDate()) {
  129. return false; // 존재하지 않는 날짜
  130. }
  131. return true; // 존재하는 날짜
  132. }
  133. function trim(data){ // 문자에 대한 TRIM 작업
  134. return data.replace(/(^\s*)|(\s*$)/g, "");
  135. }
  136. /* @group : 인체기증승낙서
  137. * @ver : 2008.10.05 (CMCDEV-0001)
  138. * @by : 한음미(평화IS)
  139. * @-----------------------------------
  140. * @type : function
  141. * @access : public
  142. * @desc : 성명 입력후 엔터키
  143. */
  144. function fExeRefValKeyPress(){
  145. if(event.keyCode == 13) {
  146. model.setValue("/root/send/srchhngnm", ipt_srchhngnm.currentText);
  147. ipt_srchhngnm.refresh();
  148. //---------------------------
  149. //조회 호출
  150. fSearchList();
  151. }
  152. }
  153. /* @group : 인체기증승낙서
  154. * @ver : 2008.10.05 (CMCDEV-0001)
  155. * @by : 한음미(평화IS)
  156. * @-----------------------------------
  157. * @type : function
  158. * @access : public
  159. * @desc : 주민번호 입력후 엔터키
  160. */
  161. function fExeRrgstRefValKeyPress(){
  162. if(event.keyCode == 13) {
  163. model.setValue("/root/send/srchrrgst1", ipt_srchrrgst1.currentText);
  164. model.setValue("/root/send/srchrrgst2", ipt_srchrrgst2.currentText);
  165. ipt_srchrrgst1.refresh();
  166. ipt_srchrrgst2.refresh();
  167. //---------------------------
  168. //조회 호출
  169. fSearchList();
  170. }
  171. }
  172. /* @group : 인체기증승낙서
  173. * @ver : 2009.08.04 (CMCDEV-0001)
  174. * @by : 박상환(평화IS)
  175. * @-----------------------------------
  176. * @type : function
  177. * @access : public
  178. * @desc : 등록번호 입력후 엔터키
  179. */
  180. function fExeHumbodyKeyPress(){
  181. if(event.keyCode == 13) {
  182. model.setValue("/root/send/humbodydnorid", ipt_humbodydnorid.currentText);
  183. ipt_humbodydnorid.refresh();
  184. //---------------------------
  185. //조회 호출
  186. fSearchList();
  187. }
  188. }
  189. /* @group : 인체기증자관리
  190. * @ver : 2008.10.05 (CMCDEV-0001)
  191. * @by : 한음미(평화IS)
  192. * @-----------------------------------
  193. * @type : function
  194. * @access : public
  195. * @desc : 출력
  196. */
  197. function fExePrintReport(){
  198. model.makeNode("/root/main/srchfromdd");
  199. model.makeNode("/root/main/srchtodd");
  200. model.makeNode("/root/main/srchhngnm");
  201. model.makeNode("/root/main/srchrrgst1");
  202. model.makeNode("/root/main/srchrrgst2");
  203. model.makeNode("/root/main/srchflag");
  204. model.setValue("/root/main/srchfromdd", model.getValue("/root/send/srchfromdd"));
  205. model.setValue("/root/main/srchtodd", model.getValue("/root/send/srchtodd"));
  206. model.setValue("/root/main/srchhngnm", model.getValue("/root/send/srchhngnm"));
  207. model.setValue("/root/main/srchrrgst1", model.getValue("/root/send/srchrrgst1"));
  208. model.setValue("/root/main/srchrrgst2", model.getValue("/root/send/srchrrgst2"));
  209. model.setValue("/root/main/srchflag", model.getValue("/root/send/srchflag"));
  210. exeReportPreview("RPAVH00500", "XMLSTR", "/root");
  211. model.refresh();
  212. }
  213. function fGetTestInfoList(page) {
  214. //----------------------
  215. // 이상 페이지 번호 처리
  216. if(page == "") page = 1;
  217. if(page < 1) page = 1;
  218. if(page > Number(cap_lastPage.value)) page = Number(cap_lastPage.value);
  219. if (page == 0) page = 1;
  220. // model.removeNodeset("/root/send");
  221. model.removeNodeset("/root/main/donat/donatlist");
  222. model.removeNodeset("/root/main/donat/lastpage");
  223. //--------------------------------------------------------------------------------
  224. model.makeValue("/root/send/srchflag", model.getValue("/root/send/srchflag")); // 구분
  225. model.makeValue("/root/send/srchfromdd", model.getValue("/root/send/srchfromdd")); // 조회일자(from)
  226. model.makeValue("/root/send/srchtodd", model.getValue("/root/send/srchtodd")); // 조회일자(to)
  227. model.makeValue("/root/send/srchhngnm", model.getValue("/root/send/srchhngnm")); // 성명
  228. model.makeValue("/root/send/srchrrgst1", model.getValue("/root/send/srchrrgst1")); // 주민번호1
  229. model.makeValue("/root/send/srchrrgst2", model.getValue("/root/send/srchrrgst2")); // 주민번호2
  230. model.makeValue("/root/send/page", page); // page
  231. model.makeValue("/root/send/itemlimit", "10000"); // 한그리드에 조회되는 row 수
  232. submit("TRAVH00501");
  233. ipt_paval.value = page;
  234. }
  235. ]]>
  236. </script>
  237. </xhtml:head>
  238. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  239. <group id="grp_tle" style="left:0px; top:0px; width:754px; height:13px; ">
  240. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">인체기증 승낙서 연명부</caption>
  241. </group>
  242. <group id="grp_biz" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
  243. <line id="line18" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  244. <caption id="caption18" class="tit_2" style="left:5px; top:55px; width:50px; height:13px; ">목록</caption>
  245. <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; ">
  246. <col ref="humbodydnorid"/>
  247. <col ref="hngnm"/>
  248. <col ref="baptnm"/>
  249. <col ref="sex"/>
  250. <col ref="rrgstno1"/>
  251. <col ref="rrgstno2"/>
  252. <col ref="cntctel"/>
  253. <col ref="cntcaddr" style="text-align:left; "/>
  254. <col ref="restcertissdd" format="yyyy-mm-dd"/>
  255. <col ref="dethdd" format="yyyy-mm-dd"/>
  256. <col ref="rem" style="text-align:left; "/>
  257. </datagrid>
  258. <group id="grp_sea" style="left:1px; top:5px; width:1194px; height:40px; vertical-align:top; ">
  259. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  260. <button id="btn_seach" class="btn1_letter2" navindex="8" style="left:1125px; top:10px; width:56px; height:22px; ">
  261. <caption>조회</caption>
  262. <script type="javascript" ev:event="onclick">
  263. <![CDATA[
  264. fSearchList();
  265. ]]>
  266. </script>
  267. </button>
  268. <line id="line10" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:29px; "/>
  269. <caption id="caption1" class="search_name" style="left:10px; top:10px; width:65px; height:17px; ">구분 :</caption>
  270. <caption id="caption2" class="search_name" style="left:417px; top:10px; width:65px; height:17px; ">성명 :</caption>
  271. <input id="ipt_srchfromdd" ref="/root/send/srchfromdd" class="input_default" navindex="3" inputtype="date" style="left:205px; top:10px; width:95px; height:19px; "/>
  272. <input id="ipt_srchtodd" ref="/root/send/srchtodd" class="input_default" navindex="4" inputtype="date" style="left:312px; top:10px; width:95px; height:19px; "/>
  273. <caption id="caption5" style="left:300px; top:10px; width:20px; height:20px; ">~</caption>
  274. <select1 id="srchflag" ref="/root/send/srchflag" class="combo_default" navindex="2" appearance="minimal" style="left:75px; top:10px; width:120px; height:19px; ">
  275. <choices>
  276. <item>
  277. <label>우편물발송일자</label>
  278. <value>0</value>
  279. </item>
  280. <item>
  281. <label>등록일자</label>
  282. <value>1</value>
  283. </item>
  284. <item>
  285. <label>등록증발급일자</label>
  286. <value>2</value>
  287. </item>
  288. </choices>
  289. <hint>
  290. <![CDATA[전체구분 조회시 우편물발송내역의 기증자조회]]>
  291. </hint>
  292. </select1>
  293. <input id="ipt_srchhngnm" ref="/root/send/srchhngnm" class="input_search" navindex="5" style="left:482px; top:10px; width:100px; height:19px; ">
  294. <script type="javascript" ev:event="onkeypress">
  295. <![CDATA[
  296. fExeRefValKeyPress();
  297. ]]>
  298. </script>
  299. </input>
  300. <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; ">
  301. <script type="javascript" ev:event="onkeypress">
  302. <![CDATA[
  303. fExeRrgstRefValKeyPress();
  304. ]]>
  305. </script>
  306. </input>
  307. <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; ">
  308. <script type="javascript" ev:event="onkeypress">
  309. <![CDATA[
  310. fExeRrgstRefValKeyPress();
  311. ]]>
  312. </script>
  313. </input>
  314. <caption id="caption31" class="search_name" style="left:592px; top:10px; width:91px; height:17px; ">등록번호 :</caption>
  315. <caption id="caption13" class="search_name" style="left:884px; top:10px; width:91px; height:17px; ">주민번호 :</caption>
  316. <caption id="caption14" style="left:1034px; top:10px; width:20px; height:20px; ">-</caption>
  317. <input id="ipt_humbodydnorid" ref="/root/send/humbodydnorfromid" class="input_search" navindex="6" maxlength="30" style="left:682px; top:10px; width:90px; height:19px; ">
  318. <script type="javascript" ev:event="onkeypress">
  319. <![CDATA[
  320. fExeHumbodyKeyPress();
  321. ]]>
  322. </script>
  323. </input>
  324. <input id="input1" ref="/root/send/humbodydnortoid" class="input_search" navindex="7" maxlength="30" style="left:784px; top:10px; width:90px; height:19px; ">
  325. <script type="javascript" ev:event="onkeypress">
  326. <![CDATA[
  327. fExeHumbodyKeyPress();
  328. ]]>
  329. </script>
  330. </input>
  331. <caption id="caption3" style="left:772px; top:10px; width:20px; height:20px; ">~</caption>
  332. </group>
  333. <button id="btn_rept" class="btn4_letter2" style="left:1125px; top:705px; width:56px; height:22px; ">
  334. <caption>출력</caption>
  335. <script type="javascript" ev:event="DOMActivate">
  336. <![CDATA[
  337. fExePrintReport();
  338. ]]>
  339. </script>
  340. </button>
  341. <button id="button5" class="btn4_letter2" style="left:303px; top:47; width:56px; height:22px; ">
  342. <caption>다음</caption>
  343. <script type="javascript" ev:event="DOMActivate">
  344. <![CDATA[
  345. fGetTestInfoList(Number(model.getValue("/root/hidden/paval")) + 1);
  346. ]]>
  347. </script>
  348. </button>
  349. <input id="ipt_paval" ref="/root/hidden/paval" class="input_search" style="left:173px; top:49; width:65px; height:19px; text-align:right; ">
  350. <script type="javascript" ev:event="xforms-value-changed">
  351. <![CDATA[
  352. fGetTestInfoList(model.getValue("/root/hidden/paval"));
  353. ]]>
  354. </script>
  355. <script type="javascript" ev:event="onkeypress">
  356. <![CDATA[
  357. if(event.keyCode == 13 && ipt_paval.currentText != ipt_paval.value) {
  358. model.setValue("/root/hidden/paval", ipt_paval.currentText);
  359. ipt_paval.dispatch("xforms-value-changed");
  360. }
  361. else if(event.keyCode != 8 && (event.keyCode < 48 || event.keyCode > 57)) {
  362. event.defaultAction = "cancel";
  363. }
  364. ]]>
  365. </script>
  366. </input>
  367. <button id="button6" class="btn3_letter2" style="left:55px; top:47; width:56px; height:22px; ">
  368. <caption>처음</caption>
  369. <script type="javascript" ev:event="DOMActivate">
  370. <![CDATA[
  371. fGetTestInfoList(1);
  372. ]]>
  373. </script>
  374. </button>
  375. <button id="button7" class="btn4_letter2" style="left:362px; top:47; width:56px; height:22px; ">
  376. <caption>최종</caption>
  377. <script type="javascript" ev:event="DOMActivate">
  378. <![CDATA[
  379. fGetTestInfoList(model.getValue("/root/main/donat/lastpage/lastpage"));
  380. ]]>
  381. </script>
  382. </button>
  383. <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>
  384. <caption id="caption4" style="left:240px; top:49; width:11px; height:20px; font-size:9pt; font-weight:bold; ">/</caption>
  385. <button id="btn_prntexcel" class="btn3_letter2" style="left:114px; top:47; width:56px; height:22px; ">
  386. <caption>이전</caption>
  387. <script type="javascript" ev:event="DOMActivate">
  388. <![CDATA[
  389. fGetTestInfoList(Number(model.getValue("/root/hidden/paval")) - 1);
  390. ]]>
  391. </script>
  392. </button>
  393. </group>
  394. </xhtml:body>
  395. </xhtml:html>