SMAVH00200_인체기증승낙서.xrw 73 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488
  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. <rgstdd/>
  14. <restcertissdd/>
  15. <acptdd/>
  16. <hngnm/>
  17. <rrgstno1/>
  18. <rrgstno2/>
  19. <cntctel/>
  20. <mpphon/>
  21. <zipcd1/>
  22. <zipcd2/>
  23. <zipcdseq/>
  24. <addr/>
  25. <cntcaddr/>
  26. <btype/>
  27. <rh/>
  28. <bdht/>
  29. <bdwt/>
  30. <email/>
  31. <relign/>
  32. <baptnm/>
  33. <pastsickandophist/>
  34. <smplnmakeaprvyn/>
  35. <hepatitis/>
  36. <tuberculosis/>
  37. <vd/>
  38. <gita/>
  39. <basicto/>
  40. <nationto/>
  41. <restcertreissdd/>
  42. <restcertreissresn/>
  43. <rem/>
  44. <rgstyy/>
  45. <flag/>
  46. <picture/>
  47. <aftaprv/>
  48. <sickandophist/>
  49. </donatlist>
  50. <lastpage>
  51. <lastpage/>
  52. </lastpage>
  53. </donat>
  54. <famyaprv>
  55. <famyaprvlist>
  56. <humbodydnorid/>
  57. <rgstdd/>
  58. <aprvpsnhngnm/>
  59. <aprvdd/>
  60. <aprvpsnrrgstno1/>
  61. <aprvpsnrrgstno2/>
  62. <aprvpsnrelign/>
  63. <aprvpsnbaptnm/>
  64. <aprvpsnzipcd1/>
  65. <aprvpsnzipcd2/>
  66. <aprvpsnzipcdseq/>
  67. <aprvpsnaddr/>
  68. <aprvpsncntcaddr/>
  69. <aprvpsncntctel/>
  70. <aprvpsnmpphon/>
  71. <aprvpsnemail/>
  72. <aprvpsnrela/>
  73. <orgndonatdispyn/>
  74. <rgstyy/>
  75. <flag/>
  76. </famyaprvlist>
  77. </famyaprv>
  78. <info>
  79. <donat>
  80. <humbodydnorid/>
  81. <rgstdd/>
  82. <restcertissdd/>
  83. <acptdd/>
  84. <hngnm/>
  85. <rrgstno1/>
  86. <rrgstno2/>
  87. <cntctel/>
  88. <mpphon/>
  89. <zipcd1/>
  90. <zipcd2/>
  91. <zipcdseq/>
  92. <addr/>
  93. <cntcaddr/>
  94. <btype/>
  95. <rh/>
  96. <bdht/>
  97. <bdwt/>
  98. <email/>
  99. <relign/>
  100. <baptnm/>
  101. <pastsickandophist/>
  102. <hepatitis/>
  103. <tuberculosis/>
  104. <vd/>
  105. <gita/>
  106. <basicto/>
  107. <nationto/>
  108. <restcertreissdd/>
  109. <restcertreissresn/>
  110. <smplnmakeaprvyn/>
  111. <rem/>
  112. <rgstyy/>
  113. <flag/>
  114. <picture/>
  115. <aftaprv/>
  116. <sickandophist/>
  117. </donat>
  118. <famyaprv>
  119. <humbodydnorid/>
  120. <rgstdd/>
  121. <aprvpsnhngnm/>
  122. <aprvdd/>
  123. <aprvpsnrrgstno1/>
  124. <aprvpsnrrgstno2/>
  125. <aprvpsnrelign/>
  126. <aprvpsnbaptnm/>
  127. <aprvpsnzipcd1/>
  128. <aprvpsnzipcd2/>
  129. <aprvpsnzipcdseq/>
  130. <aprvpsnaddr/>
  131. <aprvpsncntcaddr/>
  132. <aprvpsncntctel/>
  133. <aprvpsnmpphon/>
  134. <aprvpsnemail/>
  135. <aprvpsnrela/>
  136. <orgndonatdispyn/>
  137. <rgstyy/>
  138. <flag/>
  139. </famyaprv>
  140. </info>
  141. <view>
  142. <imgwidth/>
  143. <imgheight/>
  144. </view>
  145. </main>
  146. <send>
  147. <srchflag>2</srchflag>
  148. <srchfromdd/>
  149. <srchtodd/>
  150. <srchhngnm/>
  151. <humbodydnorid/>
  152. <srchrrgst1/>
  153. <srchrrgst2/>
  154. <donat/>
  155. <famyaprv/>
  156. <rgstdd/>
  157. <restcertissdd/>
  158. <restcertreissdd/>
  159. <restcertreissresn/>
  160. <picture/>
  161. </send>
  162. <init>
  163. <cmbinfo>
  164. <btype/>
  165. <rhtype/>
  166. <relign/>
  167. <emailaddr1/>
  168. <emailaddr2/>
  169. <smplnmakeaprvyn/>
  170. </cmbinfo>
  171. <picture/>
  172. </init>
  173. <hidden>
  174. <list/>
  175. <emailsample1/>
  176. <emailsample2/>
  177. <temp>
  178. <humbodydnorid/>
  179. <hngnm/>
  180. <rrgstno1/>
  181. <rrgstno2/>
  182. <addr/>
  183. <cntcaddr/>
  184. <picture/>
  185. <rrgstno/>
  186. <rgstdd/>
  187. </temp>
  188. <paval/>
  189. </hidden>
  190. <label>
  191. <print/>
  192. </label>
  193. </root>
  194. </instance>
  195. <submission id="TRZBC00101"/>
  196. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  197. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  198. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  199. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  200. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  201. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  202. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  203. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  204. <script type="javascript" ev:event="xforms-ready">
  205. <![CDATA[
  206. model.removeNodeset("/root/main/donat/donatlist");
  207. // zbcfGetCodeList( new Array("M0074","P0157","R0131","R0131","A0474") , new Array("/root/init/cmbinfo/btype", "/root/init/cmbinfo/relign","/root/init/cmbinfo/emailaddr1","/root/init/cmbinfo/emailaddr2","/root/init/cmbinfo/smplnmakeaprvyn"));
  208. zbcfGetCodeList( new Array("M0074","P0157","R0131","R0131") , new Array("/root/init/cmbinfo/btype", "/root/init/cmbinfo/relign","/root/init/cmbinfo/emailaddr1","/root/init/cmbinfo/emailaddr2"));
  209. //ipt_todd.value = getCurrentDate();
  210. //ipt_fromdd.value = ipt_todd.value.toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD") ;
  211. model.toggle("case1");
  212. btn_menu1.selected = true;
  213. btn_menu2.selected = false;
  214. //---------------------------------------------
  215. // 접수일자 안보임
  216. input5.visible = false;
  217. model.setValue("/root/send/srchflag", "2");
  218. addComboItem( "cmb_btype" , " ", "");
  219. // addComboItem( "cmb_smplnmakeaprv" , " ", "");
  220. model.refresh();
  221. ]]>
  222. </script>
  223. <submission id="TRAVH00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/donat"/>
  224. <submission id="TXAVH00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/donat" replace="instance" resultref="/root/hidden"/>
  225. <submission id="TXAVH00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/famyaprv" replace="instance" resultref="/root/hidden"/>
  226. <submission id="TRAVH00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/famyaprv"/>
  227. <submission id="TXAVH00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  228. <submission id="TRAVH00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/donat/donatlist"/>
  229. </model>
  230. <script type="javascript">
  231. <![CDATA[
  232. var DbClick_value =0 ;
  233. /** -------------------------------------------------------------------------------------------
  234. * 인체기증 승낙서 List 조회
  235. ------------------------------------------------------------------------------------------- **/
  236. function fSearchList(page) {
  237. // 이상 페이지 번호 처리
  238. if(page == "") page = 1;
  239. if(page < 1) page = 1;
  240. if(page > Number(cap_lastPage.value)) page = Number(cap_lastPage.value);
  241. if (page == 0) page = 1;
  242. model.removeNodeset("/root/main/donat/donatlist");
  243. model.removeNodeset("/root/main/donat/lastpage");
  244. // model.makeValue("/root/send/srchflag", model.getValue("/root/send/srchflag")); // 구분
  245. // model.makeValue("/root/send/srchfromdd", model.getValue("/root/send/srchfromdd")); // 조회일자(from)
  246. // model.makeValue("/root/send/srchtodd", model.getValue("/root/send/srchtodd")); // 조회일자(to)
  247. // model.makeValue("/root/send/srchhngnm", model.getValue("/root/send/srchhngnm")); // 성명
  248. // model.makeValue("/root/send/srchrrgst1", model.getValue("/root/send/srchrrgst1")); // 주민번호1
  249. // model.makeValue("/root/send/srchrrgst2", model.getValue("/root/send/srchrrgst2")); // 주민번호2
  250. model.makeValue("/root/send/page", 1); // page
  251. model.makeValue("/root/send/itemlimit", "10000"); // 한그리드에 조회되는 row 수
  252. if(model.getValue("/root/send/srchflag") == "") {
  253. messageBox("구분을","C002");
  254. return ;
  255. }
  256. ret = submit("TRAVH00203");
  257. ipt_paval.value = 1;
  258. model.toggle("case1");
  259. btn_menu1.selected = true;
  260. btn_menu2.selected = false;
  261. model.refresh();
  262. }
  263. /* @group : 인체기증승낙서
  264. * @ver : 2008.10.18 (CMCDEV-0001)
  265. * @by : 한음미(평화IS)
  266. * @-----------------------------------
  267. * @type : function
  268. * @access : public
  269. * @desc : 시신기증등록증카드 출력
  270. */
  271. function fExePrintCard(){
  272. model.makeNode("/root/hidden/temp/humbodydnorid");// 등록번호
  273. model.makeNode("/root/hidden/temp/hngnm"); // 성명
  274. model.makeNode("/root/hidden/temp/rrgstno1"); // 주민번호1
  275. model.makeNode("/root/hidden/temp/rrgstno2"); // 주민번호2
  276. model.makeNode("/root/hidden/temp/addr"); //주소1
  277. model.makeNode("/root/hidden/temp/cntcaddr"); // 주소2
  278. model.makeNode("/root/hidden/temp/picture"); // 사진
  279. model.setValue("/root/hidden/temp/humbodydnorid", model.getValue("/root/main/info/donat/humbodydnorid"));
  280. model.setValue("/root/hidden/temp/hngnm", model.getValue("/root/main/info/donat/hngnm"));
  281. var sCard;
  282. sCard = "";
  283. sCard += model.getValue("/root/main/info/donat/rrgstno1");
  284. sCard += " - ";
  285. sCard += model.getValue("/root/main/info/donat/rrgstno2");
  286. model.makeValue("/root/hidden/temp/rrgstno", sCard);
  287. model.setValue("/root/hidden/temp[" + 1 + "]/rrgstno1", model.getValue("/root/main/info/donat/rrgstno1"));
  288. model.setValue("/root/hidden/temp[" + 1 + "]/rrgstno2", model.getValue("/root/main/info/donat/rrgstno2"));
  289. model.setValue("/root/hidden/temp[" + 1 + "]/addr", model.getValue("/root/main/info/donat/addr"));
  290. model.setValue("/root/hidden/temp[" + 1 + "]/cntcaddr", model.getValue("/root/main/info/donat/cntcaddr"));
  291. model.setValue("/root/hidden/temp[" + 1 + "]/picture", model.getValue("/root/main/info/donat/picture"));
  292. //----------------------------------------------------
  293. // 사진 없이 저장 하면 실행 안됨.
  294. if ((model.getValue("/root/main/info/donat/picture"))!=""||(model.getValue("/root/main/info/donat/picture"))!= null){
  295. if((model.getValue("/root/main/info/donat/picture").length) != 0){
  296. exeReportPreview("RPAVH00201", "XMLSTR", "", "", "", "", "", "", "", "", "", ""); // 등록증 카드 발급 출력
  297. }else{
  298. exeReportPreview("RPAVH00202", "XMLSTR", "", "", "", "", "", "", "", "", "", ""); // 등록증 카드 발급 출력
  299. }
  300. }else {
  301. exeReportPreview("RPAVH00202", "XMLSTR", "", "", "", "", "", "", "", "", "", ""); // 등록증 카드 발급 출력
  302. }
  303. fExeCard(); // 등록증 발급일자 입력
  304. if ( fSetdata() ) {
  305. // model.setValue("/root/send/srchflag", "2");
  306. // model.setValue("/root/send/srchhngnm", model.getValue("/root/main/info/donat/hngnm") );
  307. fSearchList();
  308. }
  309. }
  310. /* @group : 인체기증승낙서
  311. * @ver : 2008.10.18 (CMCDEV-0001)
  312. * @by : 한음미(평화IS)
  313. * @-----------------------------------
  314. * @type : function
  315. * @access : public
  316. * @desc : 등록증 발급일자, 재발급일자 입력
  317. */
  318. function fExeCard(){
  319. var picture;
  320. picture = model.getValue("/root/main/info/donat/picture");
  321. // if (picture.length != 0){ // 사진 있음
  322. if ((model.getValue("/root/main/info/donat/restcertissdd") != null)||(model.getValue("/root/main/info/donat/restcertissdd") != "")){
  323. // model.setValue("/root/main/info/donat/restcertissdd", getCurrentDate()); // 등록증 발급일자
  324. // model.makeValue("/root/send/restcertissdd", getCurrentDate());
  325. // model.setValue("/root/main/info/donat/restcertreissdd", model.getValue("/root/main/info/donat/restcertreissdd")); // 등록증 재발급일자
  326. // model.makeValue("/root/send/restcertreissdd", model.getValue("/root/main/info/donat/restcertreissdd"));
  327. // model.makeValue("/root/send/restcertreissresn", model.getValue("/root/main/info/donat/restcertreissresn")); // 재발급 사유
  328. //
  329. // }else{
  330. // model.setValue("/root/main/info/donat/restcertissdd", model.getValue("/root/main/info/donat/restcertissdd")); // 등록증 발급일자
  331. // model.makeValue("/root/send/restcertissdd", model.getValue("/root/main/info/donat/restcertissdd"));
  332. // model.setValue("/root/main/info/donat/restcertreissdd", getCurrentDate()); // 등록증 재발급일자
  333. // model.makeValue("/root/send/restcertreissdd", getCurrentDate());
  334. // model.makeValue("/root/send/restcertreissresn", model.getValue("/root/main/info/donat/restcertreissresn")); // 재발급 사유
  335. //
  336. // }
  337. //
  338. // }else{ // 사진 없음
  339. // if ((model.getValue("/root/main/info/donat/restcertissdd") == null)||(model.getValue("/root/main/info/donat/restcertissdd") == "")){
  340. // model.setValue("/root/main/info/donat/restcertissdd", getCurrentDate()); // 등록증 발급일자
  341. // model.makeValue("/root/send/restcertissdd", getCurrentDate());
  342. // model.setValue("/root/main/info/donat/restcertreissdd", model.getValue("/root/main/info/donat/restcertreissdd")); // 등록증 재발급일자
  343. // model.makeValue("/root/send/restcertreissdd", model.getValue("/root/main/info/donat/restcertreissdd"));
  344. // model.makeValue("/root/send/restcertreissresn", model.getValue("/root/main/info/donat/restcertreissresn")); // 재발급 사유
  345. //
  346. // }else{
  347. model.setValue("/root/main/info/donat/restcertissdd", model.getValue("/root/main/info/donat/restcertissdd")); // 등록증 발급일자
  348. model.makeValue("/root/send/restcertissdd", model.getValue("/root/main/info/donat/restcertissdd"));
  349. model.setValue("/root/main/info/donat/restcertreissdd", getCurrentDate()); // 등록증 재발급일자
  350. model.makeValue("/root/send/restcertreissdd", getCurrentDate());
  351. model.makeValue("/root/send/restcertreissresn", model.getValue("/root/main/info/donat/restcertreissresn")); // 재발급 사유
  352. }
  353. // }
  354. submit("TXAVH00203");
  355. model.refresh();
  356. fSearchList(); // 조회
  357. }
  358. /* @group : 인체기증승낙서
  359. * @ver : 2008.10.05 (CMCDEV-0001)
  360. * @by : 한음미(평화IS)
  361. * @-----------------------------------
  362. * @type : function
  363. * @access : public
  364. * @desc : 엑셀저장
  365. */
  366. function fExeSaveToExcel(){
  367. var fileName = window.fileDialog("save", ",", false, "인체기증승낙서내역", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  368. if (fileName != "")
  369. {
  370. grd_list.saveExcel(fileName);
  371. }
  372. }
  373. /* @group : 인체기증승낙서
  374. * @ver : 2008.10.05 (CMCDEV-0001)
  375. * @by : 한음미(평화IS)
  376. * @-----------------------------------
  377. * @type : function
  378. * @access : public
  379. * @desc : 라벨출력
  380. */
  381. function fExePrintLabel(){
  382. model.resetInstanceNode("/root/label/print");
  383. model.copyNode("/root/label/print", "/root/main/donat");
  384. var label ;
  385. for (var iRow = 1; iRow<=getNodesetCount("/root/label/print/donatlist"); iRow++){
  386. label = "";
  387. label += model.getValue("/root/label/print/donatlist"+"["+iRow+"]/hngnm");
  388. label += " 귀하";
  389. model.setValue("/root/label/print/donatlist"+"["+iRow+"]/hngnm", label); // 성명
  390. }
  391. exeReportPreview("RPAVH00200", "XMLSTR", "/root");
  392. model.refresh();
  393. }
  394. /* @group : 인체기증승낙서
  395. * @ver : 2008.10.05 (CMCDEV-0001)
  396. * @by : 한음미(평화IS)
  397. * @-----------------------------------
  398. * @type : function
  399. * @access : public
  400. * @desc : 주민번호 입력후 엔터키
  401. */
  402. function fExeRrgstRefValKeyPress(){
  403. if(event.keyCode == 13) {
  404. model.setValue("/root/send/srchrrgst1", ipt_srchrrgst1.currentText);
  405. model.setValue("/root/send/srchrrgst2", ipt_srchrrgst2.currentText);
  406. ipt_srchrrgst1.refresh();
  407. ipt_srchrrgst2.refresh();
  408. //---------------------------
  409. //조회 호출
  410. fSearchList();
  411. }
  412. }
  413. /* @group : 인체기증승낙서
  414. * @ver : 2009.06.01 (CMCDEV-0001)
  415. * @by : 박상환(평화IS)
  416. * @-----------------------------------
  417. * @type : function
  418. * @access : public
  419. * @desc : 등록번호 입력후 엔터키
  420. */
  421. function fExeRrgstRefValKeyPress(){
  422. if(event.keyCode == 13) {
  423. model.setValue("/root/send/humbodydnorid", ipt_humbodydnorid.currentText);
  424. ipt_humbodydnorid.refresh();
  425. //---------------------------
  426. //조회 호출
  427. fSearchList();
  428. }
  429. }
  430. /* @group : 인체기증승낙서
  431. * @ver : 2008.10.05 (CMCDEV-0001)
  432. * @by : 한음미(평화IS)
  433. * @-----------------------------------
  434. * @type : function
  435. * @access : public
  436. * @desc : 성명 입력후 엔터키
  437. */
  438. function fExeRefValKeyPress(){
  439. if(event.keyCode == 13) {
  440. model.setValue("/root/send/srchhngnm", ipt_srchhngnm.currentText);
  441. ipt_srchhngnm.refresh();
  442. //---------------------------
  443. //조회 호출
  444. fSearchList();
  445. }
  446. }
  447. /* @group : 인체기증승낙서
  448. * @ver : 2008.10.16 (CMCDEV-0001)
  449. * @by : 한음미(평화IS)
  450. * @-----------------------------------
  451. * @type : function
  452. * @access : public
  453. * @desc : 사진 첨부 기능
  454. */
  455. function fExeAddPicture(pRow){
  456. //--------------------------------
  457. // 탐색기 폴더 open
  458. var sFileName = openImageFileDialog(1042576);
  459. //--------------------------------
  460. if (sFileName == "") return false;
  461. //----------------------------
  462. fExeChngImg(sFileName);
  463. }
  464. /* @group : 인체기증승낙서
  465. * @ver : 2008.10.16 (CMCDEV-0001)
  466. * @by : 한음미(평화IS)
  467. * @-----------------------------------
  468. * @type : function
  469. * @access : public
  470. * @desc : 사진 첨부 하여 사이즈에 조정 function
  471. */
  472. function fExeChngImg(imgsrc){
  473. img_hidden.src = imgsrc; // 파일에서 읽은 이미지의 base64 encoding 값을 가져오기 위한 이미지 컨트롤
  474. var data = img_hidden.getbase64data(); // base64 encoding 문자열을 가져온다.
  475. var imgSize = getImageSize(imgsrc);
  476. var imgWidthSize = imgSize.split("^")[0];
  477. var imgHeightSize = imgSize.split("^")[1];
  478. model.makeValue("/root/main/info/donat/picture",data,true); // 이미지를 보여주기 위하여 view용 이미지컨트롤의 ref instance에 값을 저장
  479. setImageRefInstance("/root/main/info/donat/picture");
  480. model.refresh();
  481. }
  482. /* @group : 인체기증승낙서
  483. * @ver : 2008.10.16 (CMCDEV-0001)
  484. * @by : 한음미(평화IS)
  485. * @-----------------------------------
  486. * @type : function
  487. * @access : public
  488. * @desc : 첨부한 사진 삭제 function
  489. */
  490. function fExeDeleteImage(){
  491. var idx = grd_list.row;
  492. DbClick_value = idx;
  493. model.resetInstanceNode("/root/main/info/donat["+idx+"]/picture");
  494. model.resetInstanceNode("/root/main/info/donat/picture");
  495. img_src.refresh();
  496. model.refresh();
  497. }
  498. /** -------------------------------------------------------------------------------------------
  499. * 인체기증 승낙서 조회 (List Double Click 시 )
  500. ------------------------------------------------------------------------------------------- **/
  501. function fGetDetail(pRow){
  502. model.resetInstanceNode("/root/main/info/donat");
  503. //---------------------------------------------------------
  504. // 목록을 더블 클릭했을때.
  505. model.setValue("/root/main/info/donat/humbodydnorid", model.getValue("/root/main/donat/donatlist["+pRow+"]/humbodydnorid")); //등록번호
  506. if (combo5.value == "0"){ // 구분이 전체에서 접수일자 조회 해 올때.
  507. model.setValue("/root/main/info/donat/rgstdd", getCurrentDate()); // 등록일자
  508. model.setValue("/root/main/info/donat/acptdd", getCurrentDate()); // 접수일자
  509. }else{ // 구분이 전체가 아닌 상태에서 접수일자 조회 해 올때.
  510. model.setValue("/root/main/info/donat/rgstdd", model.getValue("/root/main/donat/donatlist["+pRow+"]/rgstdd")); // 등록일자
  511. model.setValue("/root/main/info/donat/acptdd", model.getValue("/root/main/donat/donatlist["+pRow+"]/acptdd")); // 접수일자
  512. }
  513. model.setValue("/root/main/info/donat/hngnm", model.getValue("/root/main/donat/donatlist["+pRow+"]/hngnm")); // 성명
  514. model.setValue("/root/main/info/donat/rrgstno1", model.getValue("/root/main/donat/donatlist["+pRow+"]/rrgstno1")); // 주민번호1
  515. model.setValue("/root/main/info/donat/rrgstno2", model.getValue("/root/main/donat/donatlist["+pRow+"]/rrgstno2")); // 주민번호2
  516. model.setValue("/root/main/info/donat/cntctel", model.getValue("/root/main/donat/donatlist["+pRow+"]/cntctel")); // 전화번호
  517. model.setValue("/root/main/info/donat/mpphon", model.getValue("/root/main/donat/donatlist["+pRow+"]/mpphon")); // 핸드폰번호
  518. model.setValue("/root/main/info/donat/zipcd1", model.getValue("/root/main/donat/donatlist["+pRow+"]/zipcd1")); // 우편번호1
  519. model.setValue("/root/main/info/donat/zipcd2", model.getValue("/root/main/donat/donatlist["+pRow+"]/zipcd2")); // 우편번호2
  520. model.setValue("/root/main/info/donat/zipcdseq", model.getValue("/root/main/donat/donatlist["+pRow+"]/zipcdseq")); // 우편번호 순서
  521. model.setValue("/root/main/info/donat/addr", model.getValue("/root/main/donat/donatlist["+pRow+"]/addr")); // 주소
  522. model.setValue("/root/main/info/donat/cntcaddr", model.getValue("/root/main/donat/donatlist["+pRow+"]/cntcaddr")); // 상세 주소
  523. model.setValue("/root/main/info/donat/btype", model.getValue("/root/main/donat/donatlist["+pRow+"]/btype")); // 혈액형 타입
  524. model.setValue("/root/main/info/donat/rh", model.getValue("/root/main/donat/donatlist["+pRow+"]/rh")); // 혈액형 (+,-)
  525. model.setValue("/root/main/info/donat/bdht", model.getValue("/root/main/donat/donatlist["+pRow+"]/bdht")); // 키
  526. model.setValue("/root/main/info/donat/bdwt", model.getValue("/root/main/donat/donatlist["+pRow+"]/bdwt")); // 몸무게
  527. model.setValue("/root/main/info/donat/email", model.getValue("/root/main/donat/donatlist["+pRow+"]/email")); // 이메일
  528. model.setValue("/root/main/info/donat/relign", model.getValue("/root/main/donat/donatlist["+pRow+"]/relign")); // 종교
  529. model.setValue("/root/main/info/donat/baptnm", model.getValue("/root/main/donat/donatlist["+pRow+"]/baptnm")); // 세례명
  530. model.setValue("/root/main/info/donat/pastsickandophist",model.getValue("/root/main/donat/donatlist["+pRow+"]/pastsickandophist")); // 과거 질병 및 수술여부
  531. model.setValue("/root/main/info/donat/sickandophist", model.getValue("/root/main/donat/donatlist["+pRow+"]/sickandophist")); //현재 질병 및 수술여부
  532. model.setValue("/root/main/info/donat/hepatitis", model.getValue("/root/main/donat/donatlist["+pRow+"]/hepatitis")); // 간염
  533. model.setValue("/root/main/info/donat/tuberculosis", model.getValue("/root/main/donat/donatlist["+pRow+"]/tuberculosis")); // 결핵
  534. model.setValue("/root/main/info/donat/vd", model.getValue("/root/main/donat/donatlist["+pRow+"]/vd")); // 성병
  535. model.setValue("/root/main/info/donat/gita", model.getValue("/root/main/donat/donatlist["+pRow+"]/gita")); // 기타
  536. model.setValue("/root/main/info/donat/basicto", model.getValue("/root/main/donat/donatlist["+pRow+"]/basicto")); // 기초생황수급대상여주
  537. model.setValue("/root/main/info/donat/nationto", model.getValue("/root/main/donat/donatlist["+pRow+"]/nationto")); // 국가보훈대상여부
  538. model.setValue("/root/main/info/donat/restcertissdd", model.getValue("/root/main/donat/donatlist["+pRow+"]/restcertissdd")); // 등록증 신규 발행 일자
  539. model.setValue("/root/main/info/donat/restcertreissdd", model.getValue("/root/main/donat/donatlist["+pRow+"]/restcertreissdd")); // 등록증 재발급일자
  540. model.setValue("/root/main/info/donat/restcertreissresn", model.getValue("/root/main/donat/donatlist["+pRow+"]/restcertreissresn")); // 등록증 재발급 사유
  541. model.setValue("/root/main/info/donat/smplnmakeaprvyn", model.getValue("/root/main/donat/donatlist["+pRow+"]/smplnmakeaprvyn")); // 표본제작동의
  542. model.setValue("/root/main/info/donat/rem", model.getValue("/root/main/donat/donatlist["+pRow+"]/rem")); // 비고
  543. model.setValue("/root/main/info/donat/rgstyy", model.getValue("/root/main/donat/donatlist["+pRow+"]/rgstyy")); // 등록년도
  544. model.setValue("/root/main/info/donat/flag", model.getValue("/root/main/donat/donatlist["+pRow+"]/flag")); // flag
  545. model.setValue("/root/main/info/donat/picture", model.getValue("/root/main/donat/donatlist["+pRow+"]/picture")); // 사진
  546. model.setValue("/root/main/info/donat/aftaprv", model.getValue("/root/main/donat/donatlist["+pRow+"]/aftaprv")); // 사후기증
  547. //-------------------------------------
  548. // 사진 미리보기
  549. setImageRefInstance("/root/main/donat/donatlist["+pRow+"]/picture");
  550. setImageRefInstance("/root/main/info/donat/picture");
  551. img_src.attribute("width") = model.getValue("/root/main/view/imgwidth"); // 가로 사이즈를 이미지 사이즈로 조정
  552. img_src.attribute("height") = model.getValue("/root/main/view/imgheight"); // 세로 사이즈를 이미지 사이즈로 조정
  553. fGetFamyAprv();
  554. // model.setValue("/root/send/humbodydnorid", "");
  555. model.refresh();
  556. }
  557. /** -------------------------------------------------------------------------------------------
  558. * 인체기증 가족동의서 조회 (List Double Click 시 )
  559. ------------------------------------------------------------------------------------------- **/
  560. function fGetFamyAprv(){
  561. var idx = grd_list.row;
  562. var tempPid = "";
  563. DbClick_value = idx;
  564. model.resetInstanceNode("/root/main/famyaprv/famyaprvlist");
  565. tempPid = model.getValue("/root/send/humbodydnorid");
  566. model.setValue("/root/send/humbodydnorid", model.getValue("/root/main/info/donat/humbodydnorid"));
  567. model.setValue("/root/send/rgstdd", model.getValue("/root/main/info/donat/rgstdd"));
  568. submit("TRAVH00202");
  569. model.setValue("/root/send/humbodydnorid", tempPid);
  570. model.copyNode("/root/main/info/famyaprv","/root/main/famyaprv/famyaprvlist[1]");
  571. model.refresh();
  572. }
  573. /** -------------------------------------------------------------------------------------------
  574. * 인체기증 승낙서 저장 (선택된 Tab에 따라서 기증정보저장, 가족동의 저장 따로함(업무구분)
  575. ------------------------------------------------------------------------------------------- **/
  576. function fSetdata(){
  577. var success1 = true;
  578. var success2 = true;
  579. if (model.getValue("/root/main/info/donat/hngnm") == "") {
  580. messageBox("성명 입력은","I003");
  581. return false;
  582. }
  583. if (model.getValue("/root/main/info/donat/rrgstno1") == "") {
  584. messageBox("주민번호 입력은","I003");
  585. return false;
  586. }
  587. if (model.getValue("/root/main/info/donat/rrgstno2") == "") {
  588. messageBox("주민번호 입력은","I003");
  589. return false;
  590. }
  591. if (isDate(model.getValue("/root/main/info/donat/rgstdd")) == false){
  592. messageBox("등록일자의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  593. return false;
  594. }
  595. if (model.getValue("/root/main/info/donat/rgstdd") ==""){
  596. messageBox("등록일자 입력은","I003");
  597. return false;
  598. }
  599. if (isDate(model.getValue("/root/main/info/donat/acpttdd")) == false){
  600. messageBox("접수일자의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  601. return false;
  602. }
  603. if ((model.getValue("/root/main/info/donat/picture")) == ""||(model.getValue("/root/main/info/donat/picture")) == null){
  604. var rgstrid = model.getValue("/root/main/info/donat/rgstdd").substr(0,4);
  605. model.setValue("/root/main/info/donat/rgstyy", rgstrid);
  606. model.copyNode("/root/send/donat", "/root/main/info/donat");
  607. model.makeValue("/root/send/picture", "");
  608. model.makeValue("/root/send/donat/flag", "I"); // 입력 & 수정
  609. success1 = submit("TXAVH00201");
  610. } else{
  611. var rgstrid = model.getValue("/root/main/info/donat/rgstdd").substr(0,4);
  612. model.setValue("/root/main/info/donat/rgstyy", rgstrid);
  613. model.copyNode("/root/send/donat", "/root/main/info/donat");
  614. model.makeValue("/root/send/picture", model.getValue("/root/init/picture"));
  615. model.makeValue("/root/send/donat/flag", "I"); // 입력,수정
  616. success1 = submit("TXAVH00201");
  617. }
  618. var humbodydnorid = model.getValue("/root/main/info/donat/humbodydnorid");
  619. if (humbodydnorid == "") {
  620. model.setValue("/root/main/info/donat/humbodydnorid", model.getValue("/root/hidden/message/humbodydnorid"));
  621. }
  622. if ( btn_menu2.selected ) {
  623. // 가족동의가 동시에 입력이 된경우 가족동의 까지 저장합니다.
  624. if (model.getValue("/root/main/info/famyaprv/aprvpsnhngnm") == "") {
  625. messageBox("동의자성명 입력은","I003");
  626. return false;
  627. } else {
  628. model.setValue("/root/main/info/famyaprv/humbodydnorid", model.getValue("/root/main/info/donat/humbodydnorid"));
  629. model.setValue("/root/main/info/famyaprv/rgstdd", model.getValue("/root/main/info/donat/rgstdd"));
  630. model.setValue("/root/main/info/famyaprv/rgstyy" , model.getValue("/root/main/info/donat/rgstyy"));
  631. model.resetInstanceNode("/root/main/famyaprv/famyaprvlist");
  632. model.copyNode("/root/send/famyaprv", "/root/main/info/famyaprv");
  633. model.setValue("/root/send/famyaprv/flag", "I"); // 입력,수정
  634. success2 = submit("TXAVH00202");
  635. }
  636. }
  637. if ( btn_menu1.selected ) {
  638. if (success1 == true ){
  639. messageBox("기증정보 내역 저장이","I002");
  640. return true;
  641. } else {
  642. messageBox("기증정보 내역 저장이","E009");
  643. return false;
  644. }
  645. } else {
  646. if (success2 == true ){
  647. messageBox("가족동의 내역 저장이","I002");
  648. return true;
  649. } else {
  650. messageBox("가족동의 내역 저장이","E009");
  651. return false;
  652. }
  653. }
  654. model.refresh();
  655. }
  656. /** -------------------------------------------------------------------------------------------
  657. * 인체기증 승낙서 삭제 (기증정보삭제 true 가족동의삭제 함 (기증과리내역 있을시 삭제안됨 메세지)
  658. ------------------------------------------------------------------------------------------- **/
  659. function fDelete(){
  660. if( messageBox("기증승낙 내역과 가족동의 내역을" , "Q001" ) == 6 ) {
  661. var success1 = true;
  662. var success2 = true;
  663. if (model.getValue("/root/main/info/donat/humbodydnorid") == "") {
  664. messageBox("기증자선택은","C002");
  665. return false;
  666. }
  667. model.copyNode("/root/send/donat", "/root/main/info/donat");
  668. model.makeValue("/root/send/donat/flag", "D"); // 삭제
  669. model.resetInstanceNode("/root/main/info/donat");
  670. model.resetInstanceNode("/root/main/info/famyaprv");
  671. //기증승낙내역 삭제
  672. success1 = submit("TXAVH00201");
  673. if (success1 == true){
  674. model.setValue("/root/main/info/famyaprv/humbodydnorid", model.getValue("/root/main/info/donat/humbodydnorid"));
  675. model.setValue("/root/main/info/famyaprv/rgstdd", model.getValue("/root/main/info/donat/rgstdd"));
  676. model.setValue("/root/main/info/famyaprv/rgstyy" , model.getValue("/root/main/info/donat/rgstyy"));
  677. model.copyNode("/root/send/famyaprv", "/root/main/info/famyaprv");
  678. model.makeValue("/root/send/famyaprv", "D"); // 삭제
  679. // 기본정보 삭제
  680. success2 = submit("TXAVH00202");
  681. if (success2 == true ){
  682. messageBox("삭제","I002");
  683. return true;
  684. } else {
  685. messageBox("삭제 ","E009");
  686. return false;
  687. }
  688. model.refresh();
  689. } else {
  690. messageBox("삭제 ","E009");
  691. }
  692. }
  693. }
  694. /** -------------------------------------------------------------------------------------------
  695. * 일자 체크
  696. ------------------------------------------------------------------------------------------- **/
  697. function isDate(str) { // 날짜 형식에 대한 적합여부 체크
  698. if (str == "") return true; // 빈건 체크안함
  699. if (trim(str) == "") return true; // 빈건 체크안함
  700. if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
  701. if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
  702. var yy = new Number(str.substring(0, 4));
  703. var mm = new Number(str.substring(4, 6)) - 1;
  704. var dd = new Number(str.substring(6, 8));
  705. var date = new Date(yy, mm, dd);
  706. if (yy != date.getFullYear() ||
  707. mm != date.getMonth() ||
  708. dd != date.getDate()) {
  709. return false; // 존재하지 않는 날짜
  710. }
  711. return true; // 존재하는 날짜
  712. }
  713. function trim(data){ // 문자에 대한 TRIM 작업
  714. return data.replace(/(^\s*)|(\s*$)/g, "");
  715. }
  716. /** -------------------------------------------------------------------------------------------
  717. * 인체기증 승낙서 초기화
  718. ------------------------------------------------------------------------------------------- **/
  719. function fSetClear(){
  720. model.reset();
  721. }
  722. function fGetTestInfoList(page) {
  723. // alert(model.getValue("/root/hidden/paval"));
  724. //----------------------
  725. // 이상 페이지 번호 처리
  726. if(page == "") page = 1;
  727. if(page < 1) page = 1;
  728. if(page > Number(cap_lastPage.value)) page = Number(cap_lastPage.value);
  729. if (page == 0) page = 1;
  730. // model.removeNodeset("/root/send");
  731. model.removeNodeset("/root/main/donat/donatlist");
  732. model.removeNodeset("/root/main/donat/lastpage");
  733. //--------------------------------------------------------------------------------
  734. model.makeValue("/root/send/srchflag", model.getValue("/root/send/srchflag")); // 구분
  735. model.makeValue("/root/send/srchfromdd", model.getValue("/root/send/srchfromdd")); // 조회일자(from)
  736. model.makeValue("/root/send/srchtodd", model.getValue("/root/send/srchtodd")); // 조회일자(to)
  737. model.makeValue("/root/send/srchhngnm", model.getValue("/root/send/srchhngnm")); // 성명
  738. model.makeValue("/root/send/srchrrgst1", model.getValue("/root/send/srchrrgst1")); // 주민번호1
  739. model.makeValue("/root/send/srchrrgst2", model.getValue("/root/send/srchrrgst2")); // 주민번호2
  740. model.makeValue("/root/send/page", page); // page
  741. model.makeValue("/root/send/itemlimit", "10000"); // 한그리드에 조회되는 row 수
  742. submit("TRAVH00203");
  743. ipt_paval.value = page;
  744. }
  745. ]]>
  746. </script>
  747. </xhtml:head>
  748. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  749. <group id="grp_tle" style="left:0px; top:15px; width:754px; height:13px; ">
  750. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">인체 기증 승낙서</caption>
  751. </group>
  752. <group id="grp_biz" scroll="auto" style="left:0px; top:30px; width:1195px; height:744px; ">
  753. <line id="line18" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  754. <caption id="caption18" class="tit_2" style="left:5px; top:55px; width:150px; height:13px; ">목록</caption>
  755. <datagrid id="grd_list" nodeset="/root/main/donat/donatlist" autoresize="true" caption="등록번호^사후기증^등록일자^발급일자^접수일자^성명^종교^주민번호^주민번호^전화번호^핸드폰번호^우편번호^우편번호^우편번호seq^주소^혈액형^Rh^신장^체중^이메일주소^세례명^과거질병^표본제작동의^간염^결핵^성병^기타^기초^국가^재발급일자^재발급사유^비고^등록년도^사진" colwidth="80, 60, 0, 0, 0, 90, 92, 65, 65, 100, 100, 35, 35, 0, 330, 50, 30, 0, 0, 0, 80, 300, 84, 30, 30, 30, 60, 30, 30, 0, 0, 150, 0, 0" dataheight="23" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1195px; height:360px; text-align:center; ">
  756. <col disabled="true" ref="humbodydnorid" type="input" maxlength="8"/>
  757. <col checkvalue="1,0" disabled="true" ref="aftaprv" type="checkbox"/>
  758. <col ref="rgstdd"/>
  759. <col ref="restcertissdd"/>
  760. <col ref="acptdd"/>
  761. <col disabled="true" ref="hngnm" type="input" maxlength="50"/>
  762. <col disabled="true" ref="relign" type="combo" maxlength="2">
  763. <choices>
  764. <itemset nodeset="/root/init/cmbinfo/relign//P0157">
  765. <label ref="cdnm"/>
  766. <value ref="cdid"/>
  767. </itemset>
  768. </choices>
  769. </col>
  770. <col disabled="true" ref="rrgstno1" type="input" maxlength="6"/>
  771. <col disabled="true" ref="rrgstno2" type="input" maxlength="7"/>
  772. <col disabled="true" ref="cntctel" type="input" maxlength="50" style="text-align:left; "/>
  773. <col disabled="true" ref="mpphon" type="input" maxlength="50" style="text-align:left; "/>
  774. <col disabled="true" ref="zipcd1" type="input" maxlength="3"/>
  775. <col disabled="true" ref="zipcd2" type="input" maxlength="3"/>
  776. <col ref="zipcdseq"/>
  777. <col disabled="true" ref="cntcaddr" type="input" maxlength="200" style="text-align:left; "/>
  778. <col ref="btype" type="combo" maxlength="10">
  779. <choices>
  780. <itemset nodeset="/root/init/cmbinfo/btype/M0074">
  781. <label ref="cdnm"/>
  782. <value ref="cdid"/>
  783. </itemset>
  784. </choices>
  785. </col>
  786. <col ref="rh" type="input" maxlength="2"/>
  787. <col ref="bdht"/>
  788. <col ref="bdwt"/>
  789. <col ref="email"/>
  790. <col disabled="true" ref="baptnm" type="input" maxlength="50"/>
  791. <col disabled="true" ref="pastsickandophist" type="input" style="text-align:left; "/>
  792. <col disabled="true" ref="smplnmakeaprvyn" type="combo">
  793. <choices>
  794. <item>
  795. <label>일부분</label>
  796. <value>1</value>
  797. </item>
  798. <item>
  799. <label>전신</label>
  800. <value>2</value>
  801. </item>
  802. </choices>
  803. </col>
  804. <col checkvalue="1,0" disabled="true" ref="hepatitis" type="checkbox"/>
  805. <col checkvalue="1,0" disabled="true" ref="tuberculosis" type="checkbox"/>
  806. <col checkvalue="1,0" disabled="true" ref="vd" type="checkbox"/>
  807. <col disabled="true" ref="gita" type="input" style="text-align:left; "/>
  808. <col checkvalue="1,0" disabled="true" ref="basicto" type="checkbox"/>
  809. <col checkvalue="1,0" disabled="true" ref="nationto" type="checkbox"/>
  810. <col disabled="true" ref="restcertreissdd" type="input"/>
  811. <col disabled="true" ref="restcertreissresn" type="input" style="text-align:left; "/>
  812. <col disabled="true" ref="rem" type="input" style="text-align:left; "/>
  813. <col ref="rgstyy"/>
  814. <col ref="picture"/>
  815. <script type="javascript" ev:event="ondblclick">
  816. <![CDATA[
  817. model.toggle("case1");
  818. btn_menu1.selected = true;
  819. btn_menu2.selected = false;
  820. fGetDetail(grd_list.row); // 상세정보 & 이미지
  821. ]]>
  822. </script>
  823. </datagrid>
  824. <group id="grp_sea" style="left:1px; top:5px; width:1194px; height:40px; vertical-align:top; ">
  825. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  826. <caption id="caption2" class="search_name" style="left:430px; top:10px; width:65px; height:17px; ">성명 :</caption>
  827. <caption id="caption1" class="search_name" style="left:10px; top:10px; width:65px; height:17px; ">구분 :</caption>
  828. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_default" navindex="3" inputtype="date" style="left:205px; top:10px; width:95px; height:19px; "/>
  829. <caption id="caption5" style="left:300px; top:10px; width:20px; height:20px; ">~</caption>
  830. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_default" navindex="4" inputtype="date" style="left:312px; top:10px; width:95px; height:19px; "/>
  831. <input id="ipt_srchhngnm" ref="/root/send/srchhngnm" class="input_search" navindex="5" maxlength="50" style="left:495px; top:10px; width:105px; height:19px; ">
  832. <script type="javascript" ev:event="onkeypress">
  833. <![CDATA[
  834. fExeRefValKeyPress();
  835. ]]>
  836. </script>
  837. </input>
  838. <caption id="caption13" class="search_name" style="left:829px; top:10px; width:91px; height:17px; ">주민번호 :</caption>
  839. <input id="ipt_srchrrgst1" ref="/root/send/srchrrgst1" class="input_search" navindex="7" maxlength="6" format="999999" style="left:919px; top:10px; width:60px; height:19px; ">
  840. <script type="javascript" ev:event="onkeypress">
  841. <![CDATA[
  842. fExeRrgstRefValKeyPress();
  843. ]]>
  844. </script>
  845. </input>
  846. <input id="ipt_srchrrgst2" ref="/root/send/srchrrgst2" class="input_search" navindex="8" maxlength="7" format="9999999" style="left:989px; top:10px; width:60px; height:19px; ">
  847. <script type="javascript" ev:event="onkeypress">
  848. <![CDATA[
  849. fExeRrgstRefValKeyPress();
  850. ]]>
  851. </script>
  852. </input>
  853. <caption id="caption14" style="left:979px; top:10px; width:20px; height:20px; ">-</caption>
  854. <select1 id="combo5" ref="/root/send/srchflag" class="combo_default" navindex="2" appearance="minimal" style="left:75px; top:10px; width:120px; height:19px; ">
  855. <choices>
  856. <item>
  857. <label>우편물발송일자</label>
  858. <value>1</value>
  859. </item>
  860. <item>
  861. <label>등록일자</label>
  862. <value>2</value>
  863. </item>
  864. <item>
  865. <label>등록증발급일자</label>
  866. <value>3</value>
  867. </item>
  868. <item>
  869. <label>등록증재발급일자</label>
  870. <value>4</value>
  871. </item>
  872. </choices>
  873. <hint>
  874. <![CDATA[전체구분 조회시 우편물발송내역의 기증자조회]]>
  875. </hint>
  876. </select1>
  877. <button id="btn_seach" class="btn1_letter2" navindex="8" style="left:1095px; top:10px; width:56px; height:22px; ">
  878. <caption>조회</caption>
  879. <script type="javascript" ev:event="DOMActivate">
  880. <![CDATA[
  881. fSearchList();
  882. ]]>
  883. </script>
  884. </button>
  885. <line id="line10" class="line_4" style="x1:1087px; y1:10px; x2:1087px; y2:29px; "/>
  886. <input id="ipt_humbodydnorid" ref="/root/send/humbodydnorid" class="input_search" navindex="6" maxlength="30" style="left:705px; top:10px; width:105px; height:19px; ">
  887. <script type="javascript" ev:event="onkeypress">
  888. <![CDATA[
  889. fExeRrgstRefValKeyPress();
  890. ]]>
  891. </script>
  892. </input>
  893. <caption id="caption31" class="search_name" style="left:615px; top:10px; width:91px; height:17px; ">등록번호 :</caption>
  894. </group>
  895. <button id="btn_menu1" class="btn_sw" group="tab" selected="true" style="left:0px; top:466px; width:66px; height:22px; ">
  896. <caption>기증정보</caption>
  897. <toggle case="case1" ev:event="onclick"/>
  898. <script type="javascript" ev:event="onclick">
  899. <![CDATA[
  900. model.toggle("case1");
  901. btn_menu1.selected = true;
  902. btn_menu2.selected = false;
  903. model.refresh();
  904. ]]>
  905. </script>
  906. </button>
  907. <button id="btn_menu2" class="btn_sw" group="tab" selected="false" style="left:67px; top:466px; width:78px; height:22px; ">
  908. <caption>가족동의</caption>
  909. <script type="javascript" ev:event="onclick">
  910. <![CDATA[
  911. model.toggle("case2");
  912. btn_menu1.selected = false;
  913. btn_menu2.selected = true;
  914. model.refresh();
  915. ]]>
  916. </script>
  917. <toggle case="case2" ev:event="onclick"/>
  918. </button>
  919. <line id="line16" class="line_1" style="x1:0px; y1:461px; x2:1195px; y2:460px; "/>
  920. <caption id="caption24" class="tit_2" style="left:5px; top:445px; width:120px; height:13px; ">상세정보</caption>
  921. <switch id="switch1" style="left:0px; top:488px; width:1195px; height:247px; ">
  922. <case id="case1" selected="true" style="left:0px; top:0px; width:1193px; height:245px; ">
  923. <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:1015px; top:20px; width:165px; height:220px; "/>
  924. <input id="input7" ref="/root/main/info/donat/cntctel" class="input_default" navindex="26" maxlength="30" style="left:638px; top:74px; width:120px; height:19px; "/>
  925. <line id="line9" class="line_1" style="x1:5px; y1:20px; x2:1005px; y2:20px; "/>
  926. <button id="button1" class="icon_search" navindex="28" style="left:232px; top:102px; width:16px; height:16px; ">
  927. <caption/>
  928. <script type="javascript" ev:event="onclick">
  929. <![CDATA[
  930. model.setValue("/root/main/info/donat/addr","")
  931. model.setValue("/root/main/info/donat/cntcaddr","");
  932. var cntcaddr = model.getValue("/root/main/info/donat/cntcaddr");
  933. zbcfOpenZipCodeList("combination", "", "/root/main/info/donat/zipcd1" , "/root/main/info/donat/zipcd2",
  934. "/root/main/info/donat/zipcdseq", "/root/main/info/donat/addr");
  935. model.setValue("/root/main/info/donat/cntcaddr", model.getValue("/root/main/info/donat/addr")+cntcaddr);
  936. model.refresh();
  937. ]]>
  938. </script>
  939. </button>
  940. <input id="input8" ref="/root/main/info/donat/restcertreissresn" class="input_default" navindex="40" maxlength="120" style="left:374px; top:195px; width:631px; height:19px; "/>
  941. <caption id="caption41" class="tit_2" style="left:10px; top:5px; width:120px; height:13px; ">기증정보</caption>
  942. <input id="input43" ref="/root/main/info/donat/zipcd1" class="input_default" maxlength="3" style="left:128px; top:98px; width:42px; height:19px; "/>
  943. <input id="input44" ref="/root/main/info/donat/zipcd2" class="input_default" maxlength="3" style="left:188px; top:98px; width:41px; height:19px; "/>
  944. <input id="input11" ref="/root/main/info/donat/restcertissdd" class="input_default" disabled="true" navindex="17" inputtype="date" style="left:638px; top:26px; width:120px; height:19px; "/>
  945. <input id="input45" ref="/root/main/info/donat/cntcaddr" class="input_default" navindex="29" maxlength="150" style="left:251; top:98px; width:755px; height:19px; "/>
  946. <caption id="caption11" class="search_no_b" style="left:173px; top:53px; width:12px; height:17px; ">-</caption>
  947. <input id="input12" ref="/root/main/info/donat/rrgstno1" class="input_default" navindex="20" maxlength="6" format="999999" style="left:374px; top:50px; width:60px; height:19px; "/>
  948. <select1 id="combo1" ref="/root/main/info/donat/relign" class="combo_default" navindex="24" appearance="minimal" style="left:128px; top:74px; width:120px; height:19px; ">
  949. <choices>
  950. <itemset nodeset="/root/init/cmbinfo/relign/P0157">
  951. <label ref="cdnm"/>
  952. <value ref="cdid"/>
  953. </itemset>
  954. </choices>
  955. </select1>
  956. <input id="input13" ref="/root/main/info/donat/rrgstno2" class="input_default" navindex="21" maxlength="7" format="9999999" style="left:452px; top:50px; width:60px; height:19px; "/>
  957. <input id="input14" ref="/root/main/info/donat/mpphon" class="input_default" navindex="27" maxlength="30" style="left:884px; top:74px; width:121px; height:19px; "/>
  958. <caption id="caption35" style="left:175px; top:99px; width:20px; height:20px; ">-</caption>
  959. <line id="line2" class="line_2" style="x1:5px; y1:95px; x2:1005px; y2:95px; "/>
  960. <caption id="caption15" style="left:437px; top:52px; width:12px; height:20px; text-align:center; ">-</caption>
  961. <input id="input16" ref="/root/main/info/donat/restcertreissdd" class="input_default" disabled="true" navindex="39" inputtype="date" style="left:128; top:195px; width:120px; height:19px; "/>
  962. <line id="line19" class="line_2" style="x1:5px; y1:71px; x2:1005px; y2:71px; "/>
  963. <input id="input39" ref="/root/main/info/donat/humbodydnorid" class="input_default" navindex="14" editable="false" maxlength="8" style="left:128; top:26px; width:120px; height:19px; "/>
  964. <line id="line3" class="line_2" style="x1:5px; y1:119px; x2:1005px; y2:119px; "/>
  965. <input id="input17" ref="/root/main/info/donat/baptnm" class="input_default" navindex="25" maxlength="50" style="left:374px; top:74px; width:138px; height:19px; "/>
  966. <line id="line4" class="line_2" style="x1:5px; y1:47px; x2:758px; y2:47px; "/>
  967. <input id="input18" ref="/root/main/info/donat/bdwt" class="input_default" navindex="23" maxlength="5" style="left:716px; top:50px; width:60px; height:19px; "/>
  968. <input id="input29" ref="/root/main/info/donat/pastsickandophist" class="input_default" navindex="37" maxlength="66" style="left:251; top:147px; width:754px; height:19px; "/>
  969. <line id="line5" class="line_2" style="x1:5px; y1:47px; x2:1005px; y2:47px; "/>
  970. <input id="input19" ref="/root/main/info/donat/bdht" class="input_default" navindex="22" maxlength="5" style="left:638px; top:50px; width:60px; height:19px; "/>
  971. <line id="line6" class="line_2" style="x1:5px; y1:169px; x2:1005px; y2:169px; "/>
  972. <input id="input5" ref="/root/main/info/donat/acptdd" class="input_default" navindex="15" inputtype="date" style="left:884px; top:1px; width:121px; height:19px; "/>
  973. <line id="line7" class="line_2" style="x1:5px; y1:143px; x2:1005px; y2:143px; "/>
  974. <caption id="caption27" style="left:701px; top:50px; width:12px; height:20px; text-align:center; ">/</caption>
  975. <caption id="caption34" class="cell_1" style="left:5; top:145px; width:243px; height:23px; vertical-align:middle; ">과거 질병 내역 및 수술여부</caption>
  976. <caption id="caption21" class="cell_1" visibility="hidden" style="left:170px; top:0px; width:120px; height:23px; vertical-align:middle; ">혈액형</caption>
  977. <caption id="caption3" class="cell_1" style="left:5; top:194px; width:120px; height:23px; vertical-align:middle; ">등록증 재발급일자</caption>
  978. <caption id="caption48" class="cell_1" style="left:5; top:25px; width:120px; height:23px; vertical-align:middle; ">등록번호</caption>
  979. <caption id="caption59" class="cell_1" style="left:5px; top:97px; width:120px; height:23px; vertical-align:middle; ">주소</caption>
  980. <caption id="caption9" class="cell_1" style="left:5; top:49px; width:120px; height:23px; vertical-align:middle; ">성명</caption>
  981. <caption id="caption19" class="cell_1" style="left:5px; top:73px; width:120px; height:23px; vertical-align:middle; ">종교</caption>
  982. <caption id="caption20" class="cell_1" style="left:251; top:73px; width:120px; height:23px; vertical-align:middle; ">세례명</caption>
  983. <caption id="caption54" class="cell_1" style="left:251; top:25px; width:120px; height:23px; vertical-align:middle; ">등록일자</caption>
  984. <caption id="caption23" class="cell_1" style="left:515px; top:49px; width:120px; height:23px; vertical-align:middle; ">신장/체중</caption>
  985. <caption id="caption17" class="cell_1" style="left:251; top:194px; width:120px; height:23px; vertical-align:middle; ">재발급사유</caption>
  986. <caption id="caption8" class="cell_1" style="left:251; top:49px; width:120px; height:23px; vertical-align:middle; ">주민번호</caption>
  987. <caption id="caption50" class="cell_1" style="left:515px; top:25px; width:120px; height:23px; vertical-align:middle; ">등록증 발급일자</caption>
  988. <caption id="caption10" class="cell_1" style="left:515px; top:73px; width:120px; height:23px; vertical-align:middle; ">전화번호</caption>
  989. <caption id="caption12" class="cell_1" style="left:761px; top:73px; width:120px; height:23px; vertical-align:middle; ">휴대폰번호</caption>
  990. <caption id="caption7" class="cell_1" style="left:761px; top:25px; width:120px; height:23px; vertical-align:middle; ">사후기증</caption>
  991. <caption id="caption16" class="cell_1" visibility="hidden" style="left:435px; top:5px; width:120px; height:23px; vertical-align:middle; ">이메일주소</caption>
  992. <line id="line13" class="line_3" style="x1:5px; y1:241px; x2:1005px; y2:241px; "/>
  993. <caption id="caption22" class="cell_1" style="left:545px; top:121px; width:120px; height:23px; vertical-align:middle; ">전염성질환여부</caption>
  994. <caption id="caption36" class="cell_1" style="left:388px; top:121px; width:130px; height:23px; vertical-align:middle; ">기초생활수급대상여부</caption>
  995. <select id="checkbox19" ref="/root/main/info/donat/hepatitis" navindex="33" overflow="visible" appearance="full" style="left:668px; top:122px; width:42px; height:20px; border-style:none; ">
  996. <choices>
  997. <item>
  998. <label>간염</label>
  999. <value>1</value>
  1000. </item>
  1001. </choices>
  1002. </select>
  1003. <select id="checkbox20" ref="/root/main/info/donat/tuberculosis" navindex="34" overflow="visible" appearance="full" style="left:713px; top:122px; width:42px; height:20px; border-style:none; ">
  1004. <choices>
  1005. <item>
  1006. <label>결핵</label>
  1007. <value>1</value>
  1008. </item>
  1009. </choices>
  1010. </select>
  1011. <select id="checkbox21" ref="/root/main/info/donat/vd" navindex="35" overflow="visible" appearance="full" style="left:758px; top:122px; width:42px; height:20px; border-style:none; ">
  1012. <choices>
  1013. <item>
  1014. <label>성병</label>
  1015. <value>1</value>
  1016. </item>
  1017. </choices>
  1018. </select>
  1019. <select id="checkbox23" ref="/root/main/info/donat/basicto" navindex="32" overflow="visible" appearance="full" style="left:521px; top:122px; width:20px; height:20px; border-style:none; ">
  1020. <choices>
  1021. <item>
  1022. <label/>
  1023. <value>1</value>
  1024. </item>
  1025. </choices>
  1026. </select>
  1027. <select id="checkbox24" ref="/root/main/info/donat/nationto" navindex="31" overflow="visible" appearance="full" style="left:364px; top:122px; width:20px; height:20px; border-style:none; ">
  1028. <choices>
  1029. <item>
  1030. <label/>
  1031. <value>1</value>
  1032. </item>
  1033. </choices>
  1034. </select>
  1035. <caption id="caption39" class="cell_1" style="left:251; top:121; width:110px; height:23px; vertical-align:middle; ">국가보훈대상여부</caption>
  1036. <line id="line1" class="line_2" style="x1:5px; y1:192px; x2:1005px; y2:192px; "/>
  1037. <select1 id="combo6" ref="/root/main/info/donat/rh" visibility="hidden" appearance="minimal" style="left:365px; top:5px; width:52px; height:19px; ">
  1038. <choices>
  1039. <item>
  1040. <label/>
  1041. <value/>
  1042. </item>
  1043. <item>
  1044. <label>+</label>
  1045. <value>+</value>
  1046. </item>
  1047. <item>
  1048. <label>-</label>
  1049. <value>-</value>
  1050. </item>
  1051. </choices>
  1052. <hint>
  1053. <![CDATA[RH]]>
  1054. </hint>
  1055. </select1>
  1056. <caption id="caption26" class="cell_1" style="left:5; top:218px; width:120px; height:23px; vertical-align:middle; ">비고</caption>
  1057. <line id="line8" class="line_2" style="x1:5px; y1:216px; x2:1005px; y2:216px; "/>
  1058. <input id="input1" ref="/root/main/info/donat/rem" navindex="41" maxlength="100" style="left:128; top:220px; width:877px; height:19px; "/>
  1059. <input id="input3" ref="/root/main/info/donat/gita" class="input_default" navindex="36" maxlength="20" style="left:839px; top:122px; width:166px; height:19px; "/>
  1060. <input id="ipt_email" ref="/root/main/info/donat/email" class="input_default" visibility="hidden" maxlength="50" style="left:485px; top:5px; width:234px; height:19px; "/>
  1061. <select1 id="cmb_emailsample" ref="/root/hidden/emailsample1" class="combo_default" visibility="hidden" appearance="minimal" style="left:645px; top:5px; width:130px; height:19px; ">
  1062. <choices>
  1063. <itemset nodeset="/root/init/cmbinfo/emailaddr1/R0131">
  1064. <label ref="cdnm"/>
  1065. <value ref="cdid"/>
  1066. </itemset>
  1067. </choices>
  1068. <script type="javascript" ev:event="xforms-select">
  1069. <![CDATA[
  1070. // 콤보에 선택된 값을 가져온다
  1071. var index = cmb_emailsample.focusIndex + 1;
  1072. var mypos = ipt_email.currentText.search("@");
  1073. if ( model.getValue("/root/init/cmbinfo/emailaddr1/R0131[" + index + "]/cdnm") == "직접입력" ) { //직접입력일경우
  1074. if ( mypos > 0 ) {
  1075. model.setValue("/root/main/info/donat/email", ipt_email.currentText.substring(0,mypos));
  1076. }
  1077. } else {
  1078. if ( mypos > 0 ) {
  1079. model.setValue("/root/main/info/donat/email", ipt_email.currentText.substring(0,mypos)+model.getValue("/root/init/cmbinfo/emailaddr1/R0131[" + index + "]/cdnm"));
  1080. } else {
  1081. model.setValue("/root/main/info/donat/email", ipt_email.currentText + model.getValue("/root/init/cmbinfo/emailaddr1/R0131[" + index + "]/cdnm"));
  1082. }
  1083. }
  1084. ipt_email.refresh();
  1085. ]]>
  1086. </script>
  1087. </select1>
  1088. <caption id="caption29" class="cell_1" style="left:5px; top:121; width:120px; height:23px; vertical-align:middle; ">표본제작동의</caption>
  1089. <select1 id="cmb_smplnmakeaprv" ref="/root/main/info/donat/smplnmakeaprvyn" navindex="30" appearance="minimal" style="left:128px; top:122px; width:120px; height:19px; ">
  1090. <choices>
  1091. <item>
  1092. <label>미기재</label>
  1093. <value/>
  1094. </item>
  1095. <item>
  1096. <label>일부분</label>
  1097. <value>1</value>
  1098. </item>
  1099. <item>
  1100. <label>전신</label>
  1101. <value>2</value>
  1102. </item>
  1103. </choices>
  1104. </select1>
  1105. <select1 id="cmb_btype" ref="/root/main/info/donat/btype" class="combo_default" visibility="hidden" appearance="minimal" style="left:300px; top:5px; width:62px; height:19px; ">
  1106. <choices>
  1107. <itemset nodeset="/root/init/cmbinfo/btype/M0074">
  1108. <label ref="cdnm"/>
  1109. <value ref="cdid"/>
  1110. </itemset>
  1111. </choices>
  1112. <hint>
  1113. <![CDATA[혈액형]]>
  1114. </hint>
  1115. </select1>
  1116. <input id="ipt_hngnm" ref="/root/main/info/donat/hngnm" class="input_default" navindex="19" maxbyte="50" style="left:128; top:50px; width:120px; height:19px; "/>
  1117. <input id="ipt_rgstdd" ref="/root/main/info/donat/rgstdd" class="input_default" navindex="16" inputtype="date" style="left:374px; top:26px; width:138px; height:19px; "/>
  1118. <caption id="caption30" style="left:808px; top:122px; width:30px; height:20px; ">기타</caption>
  1119. <button id="btn_picinsert" class="btn2_letter2" style="left:1045px; top:190px; width:42px; height:19px; ">
  1120. <caption>첨부</caption>
  1121. <script type="javascript" ev:event="onclick">
  1122. <![CDATA[
  1123. fExeAddPicture();
  1124. ]]>
  1125. </script>
  1126. </button>
  1127. <button id="btn_picdelete" class="btn2_letter2" style="left:1110px; top:190px; width:42px; height:19px; ">
  1128. <caption>삭제</caption>
  1129. <script type="javascript" ev:event="onclick">
  1130. <![CDATA[
  1131. fExeDeleteImage();
  1132. ]]>
  1133. </script>
  1134. </button>
  1135. <button id="button4" class="btn3_letter8" style="left:1040px; top:215px; width:128px; height:22px; ">
  1136. <caption>등록증 카드발급</caption>
  1137. <script type="javascript" ev:event="DOMActivate">
  1138. <![CDATA[
  1139. fExePrintCard();
  1140. ]]>
  1141. </script>
  1142. </button>
  1143. <img id="img_hidden" visibility="hidden" style="left:1025px; top:29px; width:145px; height:155px; background-stretch:stretch; "/>
  1144. <img id="img_src" ref="/root/main/info/donat/picture" style="left:1025px; top:29px; width:145px; height:155px; background-repeat:repeat; background-stretch:stretch; border-style:solid; "/>
  1145. <select id="checkbox1" ref="/root/main/info/donat/aftaprv" navindex="18" overflow="visible" appearance="full" style="left:884px; top:27px; width:20px; height:20px; border-style:none; ">
  1146. <choices>
  1147. <item>
  1148. <label/>
  1149. <value>1</value>
  1150. </item>
  1151. </choices>
  1152. </select>
  1153. <caption id="caption40" class="cell_1" style="left:5px; top:169px; width:243px; height:23px; vertical-align:middle; ">현재 질병 내역</caption>
  1154. <input id="input4" ref="/root/main/info/donat/sickandophist" class="input_default" navindex="38" maxlength="66" style="left:251px; top:171px; width:754px; height:19px; "/>
  1155. <input id="input48" ref="/root/main/info/donat/addr" class="input_default" visibility="hidden" editable="false" style="left:950px; top:109px; width:54px; height:19px; "/>
  1156. </case>
  1157. <case id="case2" style="left:0px; top:0px; width:1193px; height:245px; ">
  1158. <input id="input20" ref="/root/main/info/famyaprv/aprvpsncntctel" class="input_default" navindex="52" maxlength="30" style="left:128px; top:98px; width:120px; height:19px; "/>
  1159. <button id="button3" class="icon_search" navindex="50" style="left:232px; top:79px; width:16px; height:16px; ">
  1160. <caption/>
  1161. <script type="javascript" ev:event="onclick">
  1162. <![CDATA[
  1163. zbcfOpenZipCodeList("combination", "", "/root/main/info/famyaprv/aprvpsnzipcd1" , "/root/main/info/famyaprv/aprvpsnzipcd2",
  1164. "/root/main/info/famyaprv/aprvpsnzipcdseq", "/root/main/info/famyaprv/aprvpsnaddr");
  1165. model.refresh();
  1166. ]]>
  1167. </script>
  1168. </button>
  1169. <line id="line20" class="line_1" style="x1:5px; y1:20px; x2:970px; y2:20px; "/>
  1170. <caption id="caption28" class="tit_2" style="left:10px; top:5px; width:120px; height:14px; ">가족동의</caption>
  1171. <input id="input22" ref="/root/main/info/famyaprv/aprvpsnzipcd1" class="input_default" maxlength="3" style="left:128px; top:74px; width:42px; height:19px; "/>
  1172. <input id="input24" ref="/root/main/info/famyaprv/aprvpsnzipcd2" class="input_default" maxlength="3" style="left:188px; top:74px; width:41px; height:19px; "/>
  1173. <select1 id="combo4" ref="/root/main/info/famyaprv/aprvpsnrelign" class="combo_default" navindex="48" appearance="minimal" style="left:128px; top:50px; width:120px; height:19px; ">
  1174. <choices>
  1175. <itemset nodeset="/root/init/cmbinfo/relign/P0157">
  1176. <label ref="cdnm"/>
  1177. <value ref="cdid"/>
  1178. </itemset>
  1179. </choices>
  1180. </select1>
  1181. <input id="input25" ref="/root/main/info/famyaprv/aprvpsnrrgstno1" class="input_default" navindex="46" maxlength="6" format="999999" style="left:819px; top:26px; width:65px; height:19px; "/>
  1182. <input id="input26" ref="/root/main/info/famyaprv/aprvpsncntcaddr" class="input_default" navindex="51" maxlength="150" style="left:525px; top:74px; width:445px; height:19px; "/>
  1183. <input id="input27" ref="/root/main/info/famyaprv/aprvpsnrrgstno2" class="input_default" navindex="47" maxlength="7" format="9999999" style="left:904px; top:26px; width:65px; height:19px; "/>
  1184. <caption id="caption46" style="left:173px; top:75px; width:12px; height:20px; text-align:center; ">-</caption>
  1185. <input id="input28" ref="/root/main/info/famyaprv/aprvpsnmpphon" class="input_default" navindex="53" maxlength="30" style="left:374px; top:98px; width:120px; height:19px; "/>
  1186. <input id="input31" ref="/root/main/info/famyaprv/aprvpsnaddr" class="input_default" editable="false" style="left:251px; top:74px; width:273px; height:19px; "/>
  1187. <caption id="caption49" style="left:890px; top:27px; width:10px; height:20px; ">-</caption>
  1188. <line id="line28" class="line_2" style="x1:5px; y1:95px; x2:970px; y2:95px; "/>
  1189. <input id="input33" ref="/root/main/info/famyaprv/aprvpsnbaptnm" class="input_default" navindex="49" maxlength="50" style="left:374px; top:50px; width:596px; height:19px; "/>
  1190. <line id="line30" class="line_2" style="x1:5px; y1:71px; x2:970px; y2:71px; "/>
  1191. <line id="line31" class="line_2" style="x1:5px; y1:47px; x2:758px; y2:47px; "/>
  1192. <input id="input38" ref="/root/main/info/famyaprv/aprvdd" class="input_default" navindex="45" inputtype="date" style="left:605px; top:26px; width:100px; height:19px; "/>
  1193. <line id="line32" class="line_2" style="x1:5px; y1:47px; x2:970px; y2:47px; "/>
  1194. <line id="line33" class="line_3" style="x1:5px; y1:121px; x2:970px; y2:121px; "/>
  1195. <caption id="caption25" visibility="hidden" style="left:128px; top:146px; width:621px; height:19px; vertical-align:middle; ">만 29세 미만은 법정 대리인의 동의와 주민등록등본이 필요합니다.</caption>
  1196. <caption id="caption32" visibility="hidden" style="left:128px; top:170px; width:272px; height:19px; vertical-align:middle; ">운전면허증에 장기기증의사를 표시하겠습니까?</caption>
  1197. <select1 id="radio2" ref="/root/main/info/famyaprv/orgndonatdispyn" navindex="57" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:405px; top:170px; width:211px; height:19px; border-style:none; ">
  1198. <choices>
  1199. <item>
  1200. <label>예</label>
  1201. <value>1</value>
  1202. </item>
  1203. <item>
  1204. <label>아니요</label>
  1205. <value>2</value>
  1206. </item>
  1207. </choices>
  1208. </select1>
  1209. <caption id="caption61" class="cell_1" style="left:5px; top:49px; width:120px; height:23px; vertical-align:middle; ">종교</caption>
  1210. <caption id="caption51" class="cell_1" style="left:5px; top:73px; width:120px; height:23px; vertical-align:middle; ">주소</caption>
  1211. <caption id="caption52" class="cell_1" style="left:5px; top:25px; width:120px; height:23px; vertical-align:middle; ">동의자 성명</caption>
  1212. <caption id="caption45" class="cell_1" style="left:251px; top:25px; width:120px; height:23px; vertical-align:middle; ">기증자와 관계</caption>
  1213. <caption id="caption37" class="cell_1" style="left:5px; top:97ㅔㅌ; width:120px; height:23px; vertical-align:middle; ">전화번호</caption>
  1214. <caption id="caption53" class="cell_1" style="left:497px; top:97px; width:105px; height:23px; vertical-align:middle; ">이메일주소</caption>
  1215. <caption id="caption44" class="cell_1" style="left:251px; top:97px; width:120px; height:23px; vertical-align:middle; ">핸드폰번호</caption>
  1216. <caption id="caption33" class="cell_1" style="left:251px; top:49px; width:120px; height:23px; vertical-align:middle; ">세례명</caption>
  1217. <caption id="caption57" class="cell_1" style="left:710px; top:25px; width:105px; height:23px; vertical-align:middle; ">주민번호</caption>
  1218. <caption id="caption38" class="cell_1" style="left:497px; top:25px; width:105px; height:23px; vertical-align:middle; ">동의 연월일</caption>
  1219. <input id="ipt_aprvpsnemail" ref="/root/main/info/famyaprv/aprvpsnemail" class="input_default" navindex="54" maxlength="50" style="left:605px; top:98px; width:232px; height:19px; "/>
  1220. <select1 id="cmb_aprvpsnemailsample" ref="/root/hidden/emailsample2" class="combo_default" navindex="55" appearance="minimal" style="left:838px; top:98px; width:130px; height:19px; ">
  1221. <choices>
  1222. <itemset nodeset="/root/init/cmbinfo/emailaddr2/R0131">
  1223. <label ref="cdnm"/>
  1224. <value ref="cdid"/>
  1225. </itemset>
  1226. </choices>
  1227. <script type="javascript" ev:event="xforms-select">
  1228. <![CDATA[
  1229. // 콤보에 선택된 값을 가져온다
  1230. var index = cmb_aprvpsnemailsample.focusIndex + 1;
  1231. var mypos = ipt_aprvpsnemail.currentText.search("@");
  1232. if ( model.getValue("/root/init/cmbinfo/emailaddr2/R0131[" + index + "]/cdnm") == "직접입력" ) { //직접입력일경우
  1233. if ( mypos > 0 ) {
  1234. model.setValue("/root/main/info/famyaprv/aprvpsnemail", ipt_aprvpsnemail.currentText.substring(0,mypos));
  1235. }
  1236. } else {
  1237. if ( mypos > 0 ) {
  1238. model.setValue("/root/main/info/famyaprv/aprvpsnemail", ipt_aprvpsnemail.currentText.substring(0,mypos)+model.getValue("/root/init/cmbinfo/emailaddr2/R0131[" + index + "]/cdnm"));
  1239. } else {
  1240. model.setValue("/root/main/info/famyaprv/aprvpsnemail", ipt_aprvpsnemail.currentText + model.getValue("/root/init/cmbinfo/emailaddr2/R0131[" + index + "]/cdnm"));
  1241. }
  1242. }
  1243. ipt_aprvpsnemail.refresh();
  1244. ]]>
  1245. </script>
  1246. </select1>
  1247. <input id="ipt_aprvpsnhngnm" ref="/root/main/info/famyaprv/aprvpsnhngnm" class="input_default" navindex="44" maxbyte="50" style="left:128px; top:26px; width:120px; height:19px; "/>
  1248. <input id="input2" ref="/root/main/info/famyaprv/aprvpsnrela" class="input_default" navindex="54" maxlength="50" style="left:374px; top:26px; width:120px; height:19px; "/>
  1249. </case>
  1250. </switch>
  1251. <button id="btn_excel" class="btn2_letter4" navindex="13" style="left:1126px; top:49px; width:64px; height:19px; ">
  1252. <caption>엑셀저장</caption>
  1253. <script type="javascript" ev:event="DOMActivate">
  1254. <![CDATA[
  1255. fExeSaveToExcel();
  1256. ]]>
  1257. </script>
  1258. </button>
  1259. <button id="btn_newhumbodydnorid" class="btn2_letter2" navindex="13" style="left:1145px; top:466px; width:42px; height:19px; ">
  1260. <caption>신규</caption>
  1261. <script type="javascript" ev:event="DOMActivate">
  1262. <![CDATA[
  1263. grd_list.row = 0; //그리드에서 선택된 row 값을 없앤다
  1264. model.resetInstanceNode("/root/main/info/donat");//기증정보 값을 없앤다
  1265. model.setValue("/root/main/info/donat/rgstdd", getCurrentDate() ); //등록일자에 오늘일자 sttting
  1266. model.setValue("/root/main/info/donat/restcertissdd", getCurrentDate());// 등록증발급일자에 오늘일자 setting
  1267. model.setValue("/root/main/info/donat/acptdd", getCurrentDate() ); //접수일자에 오늘일자 sttting
  1268. model.resetInstanceNode("/root/main/info/famyaprv");//기족동의 값을 없앤다
  1269. model.toggle("case1");
  1270. btn_menu1.selected = true;
  1271. btn_menu2.selected = false;
  1272. model.refresh();
  1273. ]]>
  1274. </script>
  1275. </button>
  1276. <button id="button2" class="btn2_letter4" navindex="12" style="left:1059; top:49; width:64px; height:19px; ">
  1277. <caption>라벨출력</caption>
  1278. <script type="javascript" ev:event="DOMActivate">
  1279. <![CDATA[
  1280. fExePrintLabel();
  1281. ]]>
  1282. </script>
  1283. </button>
  1284. <button id="button5" class="btn4_letter2" style="left:310px; top:47; width:56px; height:22px; ">
  1285. <caption>다음</caption>
  1286. <script type="javascript" ev:event="DOMActivate">
  1287. <![CDATA[
  1288. fGetTestInfoList(Number(model.getValue("/root/hidden/paval")) + 1);
  1289. ]]>
  1290. </script>
  1291. </button>
  1292. <button id="button6" class="btn3_letter2" style="left:62px; top:47; width:56px; height:22px; ">
  1293. <caption>처음</caption>
  1294. <script type="javascript" ev:event="DOMActivate">
  1295. <![CDATA[
  1296. fGetTestInfoList(1);
  1297. ]]>
  1298. </script>
  1299. </button>
  1300. <button id="button7" class="btn4_letter2" style="left:369px; top:47; width:56px; height:22px; ">
  1301. <caption>최종</caption>
  1302. <script type="javascript" ev:event="DOMActivate">
  1303. <![CDATA[
  1304. fGetTestInfoList(model.getValue("/root/main/donat/lastpage/lastpage"));
  1305. ]]>
  1306. </script>
  1307. </button>
  1308. <input id="ipt_paval" ref="/root/hidden/paval" class="input_search" style="left:180px; top:47; width:65px; height:19px; text-align:right; ">
  1309. <script type="javascript" ev:event="xforms-value-changed">
  1310. <![CDATA[
  1311. fGetTestInfoList(model.getValue("/root/hidden/paval"));
  1312. ]]>
  1313. </script>
  1314. <script type="javascript" ev:event="onkeypress">
  1315. <![CDATA[
  1316. if(event.keyCode == 13 && ipt_paval.currentText != ipt_paval.value) {
  1317. model.setValue("/root/hidden/paval", ipt_paval.currentText);
  1318. ipt_paval.dispatch("xforms-value-changed");
  1319. }
  1320. else if(event.keyCode != 8 && (event.keyCode < 48 || event.keyCode > 57)) {
  1321. event.defaultAction = "cancel";
  1322. }
  1323. ]]>
  1324. </script>
  1325. </input>
  1326. <button id="btn_prntexcel" class="btn3_letter2" style="left:121px; top:47; width:56px; height:22px; ">
  1327. <caption>이전</caption>
  1328. <script type="javascript" ev:event="DOMActivate">
  1329. <![CDATA[
  1330. fGetTestInfoList(Number(model.getValue("/root/hidden/paval")) - 1);
  1331. ]]>
  1332. </script>
  1333. </button>
  1334. <caption id="cap_lastPage" ref="/root/main/donat/lastpage/lastpage" style="left:255px; top:47; width:60px; height:20px; font-size:9pt; font-weight:bold; ">1</caption>
  1335. <caption id="caption4" style="left:247px; top:47px; width:11px; height:20px; font-size:9pt; font-weight:bold; ">/</caption>
  1336. </group>
  1337. <button id="button9" class="btn4_letter2" navindex="9" style="left:1007px; top:10px; width:56px; height:22px; ">
  1338. <caption>저장</caption>
  1339. <script type="javascript" ev:event="DOMActivate">
  1340. <![CDATA[
  1341. if ( fSetdata() ) {
  1342. model.setValue("/root/send/srchflag", "2");
  1343. model.setValue("/root/send/srchfromdd", model.getValue("/root/main/info/donat/rgstdd"));
  1344. model.setValue("/root/send/srchtodd", model.getValue("/root/main/info/donat/rgstdd"));
  1345. model.refresh();
  1346. fSearchList();
  1347. }
  1348. ]]>
  1349. </script>
  1350. </button>
  1351. <button id="button10" class="btn4_letter2" navindex="10" style="left:1064px; top:10px; width:56px; height:22px; ">
  1352. <caption>삭제</caption>
  1353. <script type="javascript" ev:event="DOMActivate">
  1354. <![CDATA[
  1355. if ( fDelete ()) {
  1356. fSearchList();
  1357. }
  1358. ]]>
  1359. </script>
  1360. </button>
  1361. <button id="button11" class="btn4_letter3" navindex="11" style="left:1123px; top:10px; width:68px; height:22px; ">
  1362. <caption>초기화</caption>
  1363. <script type="javascript" ev:event="DOMActivate">
  1364. <![CDATA[
  1365. fSetClear();
  1366. ]]>
  1367. </script>
  1368. </button>
  1369. </xhtml:body>
  1370. </xhtml:html>