SMMNB00100_환자조회.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <patinfo>
  11. <patinfolist/>
  12. </patinfo>
  13. </main>
  14. <send>
  15. <srchcond/>
  16. <pid/>
  17. <hngnm/>
  18. <rrgstno1/>
  19. <rrgstno2/>
  20. <acptdd/>
  21. </send>
  22. <init>
  23. <P0350list>
  24. <P0350>
  25. <cdnm/>
  26. <cdid/>
  27. </P0350>
  28. </P0350list>
  29. </init>
  30. <hidden>
  31. <uid>
  32. <myself/>
  33. <opener/>
  34. </uid>
  35. </hidden>
  36. </root>
  37. </instance>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. zbcfGetCodeList(new Array("P0350"), new Array("/root/init/P0350list"));
  41. if( getNodesetCount("/root/send/srchcond") > 0 ){
  42. if( model.getValue("/root/send/checkfnexam") != "1" ){
  43. //조회조건에서 '예약일시'를 제거한다.
  44. cmb_cond.choices.itemset.attribute("nodeset") = "/root/init/P0350list/P0350[cdid != '5' ]";
  45. }
  46. fChangeSearchCondition( model.getValue("/root/send/srchcond") );
  47. model.refresh();
  48. //값이 부모창에서 입력되었을 경우 조회한다.
  49. if(fInputValueCheckXformsReady() ){
  50. //if( fInputValueCheckXformsReady() ){
  51. if( submit("TRPMC02500") ){
  52. if( grd_patinfo.rows == 2 ){
  53. if( model.getValue("/root/send/autoflag").toUpperCase() == "Y" ){
  54. model.setFocus("grd_patinfo");
  55. btn_confirm.dispatch("DOMActivate");
  56. window.close();
  57. }
  58. }
  59. if( grd_patinfo.rows > 1 ){
  60. model.setFocus("grd_patinfo");
  61. }else{
  62. fChangeSearchCondition( cmb_cond.value );
  63. }
  64. }
  65. }
  66. }else{
  67. //조회조건에서 '예약일시'를 제거한다.
  68. cmb_cond.choices.itemset.attribute("nodeset") = "/root/init/P0350list/P0350[cdid != '5' ]";
  69. model.makeNode("/root/send/srchcond");
  70. model.makeNode("/root/send/pid");
  71. model.makeNode("/root/send/hngnm");
  72. model.makeNode("/root/send/rrgstno1");
  73. model.makeNode("/root/send/rrgstno2");
  74. model.makeNode("/root/send/acptdd");
  75. model.refresh();
  76. }
  77. ]]>
  78. </script>
  79. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  80. <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
  81. </model>
  82. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  85. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  86. <script type="javascript">
  87. <![CDATA[
  88. //창 생성시 부모창으로 부터 받은 입력값의 유효범위 체크
  89. function fInputValueCheckXformsReady(){
  90. var cond = model.getValue("/root/send/srchcond");
  91. switch(cond){
  92. case '1':
  93. //환자등록번호 체크
  94. if(ipt_pid.currentText.length >= 1 ){
  95. model.setValue("/root/send/pid", ipt_pid.currentText);
  96. return (true);
  97. }else{
  98. messageBox("환자등록번호를 정확히", "C001");
  99. return (false);
  100. }
  101. break;
  102. case '2':
  103. //환자이름 체크
  104. //if( ipt_hngnm.currentText.length >= 2 ) return (true);
  105. if(ipt_hngnm.currentText.length >= 2 ){
  106. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  107. return (true);
  108. }else{
  109. messageBox("환자이름을 2자리 이상", "C001");
  110. return (false);
  111. }
  112. break;
  113. case '3':
  114. //환자 주민번호 체크
  115. if( ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
  116. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  117. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  118. return (true);
  119. }else{
  120. messageBox("환자 주민번호를", "C001");
  121. return (false);
  122. }
  123. break;
  124. case '4':
  125. //환자이름 유효성 체크.
  126. if(ipt_hngnm.currentText.length >= 2 ){
  127. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  128. }else{
  129. messageBox("환자이름을 2자리 이상", "C001");
  130. return (false);
  131. }
  132. //환자 주민번호 체크
  133. if( ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
  134. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  135. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  136. }else{
  137. messageBox("환자 주민번호를", "C001");
  138. return (false);
  139. }
  140. return( true );
  141. break;
  142. case '5':
  143. //예약일자 유효성 체크 --
  144. if( isValidDateTime( model.getValue("/root/send/acptdd"), "YYYYMMDD") ){
  145. model.setValue("/root/send/acptdd", model.getValue("/root/send/acptdd"));
  146. //model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  147. alert("aaaa");
  148. return (true);
  149. }else{
  150. messageBox("예약일자를 정확히", "C001");
  151. return (false);
  152. }
  153. break;
  154. default :
  155. model.setFocus("cmb_cond");
  156. return( false );
  157. break;
  158. }
  159. }
  160. //입력값의 유효범위 체크
  161. function fInputValueCheck(){
  162. var cond = model.getValue("/root/send/srchcond");
  163. switch(cond){
  164. case '1':
  165. //환자등록번호 체크
  166. if(ipt_pid.currentText.length >= 1 ){
  167. model.setValue("/root/send/pid", ipt_pid.currentText);
  168. return (true);
  169. }else{
  170. messageBox("환자등록번호를 정확히", "C001");
  171. return (false);
  172. }
  173. break;
  174. case '2':
  175. //환자이름 체크
  176. //if( ipt_hngnm.currentText.length >= 2 ) return (true);
  177. if(ipt_hngnm.currentText.length >= 2 ){
  178. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  179. return (true);
  180. }else{
  181. messageBox("환자이름을 2자리 이상", "C001");
  182. return (false);
  183. }
  184. break;
  185. case '3':
  186. //환자 주민번호 체크
  187. if( ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1 ){
  188. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  189. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  190. return (true);
  191. }else{
  192. messageBox("환자 주민번호를", "C001");
  193. return (false);
  194. }
  195. break;
  196. case '4':
  197. //환자이름 유효성 체크.
  198. if(ipt_hngnm.currentText.length>= 2 ){
  199. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  200. }else{
  201. messageBox("환자이름을 2자리 이상", "C001");
  202. return (false);
  203. }
  204. //환자 주민번호 체크
  205. if( ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
  206. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  207. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  208. }else{
  209. messageBox("환자 주민번호를", "C001");
  210. return (false);
  211. }
  212. return( true );
  213. break;
  214. case '5':
  215. //예약일자 유효성 체크 --
  216. model.refresh();
  217. if( isValidDateTime( model.getValue("/root/send/acptdd"), "YYYYMMDD") ){
  218. alert(model.getValue("/root/send/acptdd"));
  219. return (true);
  220. }else{
  221. messageBox("예약일자를 정확히", "C001");
  222. return (false);
  223. }
  224. break;
  225. default :
  226. messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  227. model.setFocus("cmb_cond");
  228. return( false );
  229. break;
  230. }
  231. }
  232. //조회 조건에 맞는 input 컨트롤을 세팅해 준다.
  233. function fChangeSearchCondition( cond){
  234. switch(cond){
  235. case '1':
  236. model.makeNode("/root/send/pid");
  237. ipt_pid.attribute("visibility") = "visible";
  238. ipt_pid.attribute("left") = "219px";
  239. ipt_pid.attribute("top") = "8px";
  240. ipt_hngnm.attribute("visibility") = "hidden";
  241. ipt_rrgstno1.attribute("visibility") = "hidden";
  242. ipt_rrgstno2.attribute("visibility") = "hidden";
  243. ipt_acptdd.attribute("visibility") = "hidden";
  244. model.setFocus("ipt_pid");
  245. break;
  246. case '2':
  247. model.makeNode("/root/send/hngnm");
  248. ipt_hngnm.attribute("visibility") = "visible";
  249. ipt_hngnm.attribute("left") = "219px";
  250. ipt_hngnm.attribute("top") = "8px";
  251. ipt_pid.attribute("visibility") = "hidden";
  252. ipt_rrgstno1.attribute("visibility") = "hidden";
  253. ipt_rrgstno2.attribute("visibility") = "hidden";
  254. ipt_acptdd.attribute("visibility") = "hidden";
  255. model.setFocus("ipt_hngnm");
  256. break;
  257. case '3':
  258. model.makeNode("/root/send/rrgstno1");
  259. model.makeNode("/root/send/rrgstno2");
  260. ipt_rrgstno1.attribute("visibility") = "visible";
  261. ipt_rrgstno2.attribute("visibility") = "visible";
  262. ipt_rrgstno1.attribute("left") = "219px";
  263. ipt_rrgstno1.attribute("top") = "8px";
  264. ipt_rrgstno2.attribute("left") = "282px";
  265. ipt_rrgstno2.attribute("top") = "8px";
  266. ipt_hngnm.attribute("visibility") = "hidden";
  267. ipt_pid.attribute("visibility") = "hidden";
  268. ipt_acptdd.attribute("visibility") = "hidden";
  269. model.setFocus("ipt_rrgstno1");
  270. break;
  271. case '4':
  272. //model.makeNode("/root/send/pid");
  273. model.makeNode("/root/send/hngnm");
  274. model.makeNode("/root/send/rrgstno1");
  275. model.makeNode("/root/send/rrgstno2");
  276. ipt_hngnm.attribute("visibility") = "visible";
  277. ipt_hngnm.attribute("left") = "219px";
  278. ipt_hngnm.attribute("top") = "8px";
  279. ipt_pid.attribute("visibility") = "hidden";
  280. ipt_rrgstno1.attribute("visibility") = "visible";
  281. ipt_rrgstno1.attribute("left") = "302px";
  282. ipt_rrgstno1.attribute("top") = "8px";
  283. ipt_rrgstno2.attribute("visibility") = "visible";
  284. ipt_rrgstno2.attribute("left") = "365px";
  285. ipt_rrgstno2.attribute("top") = "8px";
  286. ipt_acptdd.attribute("visibility") = "hidden";
  287. model.setFocus("ipt_hngnm");
  288. break;
  289. case '5':
  290. model.makeNode("/root/send/acptdd");
  291. ipt_acptdd.attribute("visibility") = "visible";
  292. ipt_acptdd.attribute("left") = "219px";
  293. ipt_acptdd.attribute("top") = "8px";
  294. ipt_hngnm.attribute("visibility") = "hidden";
  295. ipt_pid.attribute("visibility") = "hidden";
  296. ipt_rrgstno1.attribute("visibility") = "hidden";
  297. ipt_rrgstno2.attribute("visibility") = "hidden";
  298. model.setFocus("ipt_acptdd");
  299. break;
  300. default :
  301. //messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  302. break;
  303. }
  304. }
  305. ]]>
  306. </script>
  307. </xhtml:head>
  308. <xhtml:body pagewidth="534" pageheight="343" guideline="2,343;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  309. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:316px; ">
  310. <group id="group2" style="left:0px; top:0px; width:518px; height:35px; ">
  311. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:517px; height:35px; "/>
  312. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  313. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:445px; top:7px; width:56px; height:22px; ">
  314. <caption>조회</caption>
  315. <script type="javascript" ev:event="DOMActivate">
  316. <![CDATA[
  317. if( fInputValueCheck() ){
  318. if( submit("TRPMC02500") ){
  319. if( grd_patinfo.rows > 1 ){
  320. model.setFocus("grd_patinfo");
  321. }else{
  322. fChangeSearchCondition( cmb_cond.value );
  323. }
  324. }
  325. }
  326. ]]>
  327. </script>
  328. </button>
  329. <line id="line13" class="line_4" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; "/>
  330. <input id="ipt_hngnm" ref="/root/send/hngnm" class="input_search" navindex="1" visibility="hidden" autonext="false" style="left:179px; top:0px; width:80px; height:19px; ">
  331. <script type="javascript" ev:event="onkeypress">
  332. <![CDATA[
  333. inputEnterKey("btn_search", "DOMActivate");
  334. ]]>
  335. </script>
  336. </input>
  337. <input id="ipt_rrgstno1" ref="/root/send/rrgstno1" class="input_search" navindex="2" visibility="hidden" format="999999" style="left:222px; top:8px; width:60px; height:19px; ">
  338. <script type="javascript" ev:event="onkeypress">
  339. <![CDATA[
  340. inputEnterKey("btn_search", "DOMActivate");
  341. ]]>
  342. </script>
  343. </input>
  344. <select1 id="cmb_cond" ref="/root/send/srchcond" class="combo_search" navindex="10" appearance="minimal" style="left:106px; top:8px; width:110px; height:19px; ">
  345. <choices>
  346. <itemset nodeset="/root/init/P0350list/P0350">
  347. <label ref="cdnm"/>
  348. <value ref="cdid"/>
  349. </itemset>
  350. </choices>
  351. <script type="javascript" ev:event="xforms-value-changed">
  352. <![CDATA[
  353. var cond = model.getValue("/root/send/srchcond");
  354. //model.refresh();
  355. fChangeSearchCondition( cond );
  356. ]]>
  357. </script>
  358. </select1>
  359. <input id="ipt_rrgstno2" ref="/root/send/rrgstno2" class="input_search" navindex="3" visibility="hidden" autonext="false" format="9999999" style="left:250px; top:8px; width:60px; height:19px; ">
  360. <script type="javascript" ev:event="onkeypress">
  361. <![CDATA[
  362. inputEnterKey("btn_search", "DOMActivate");
  363. ]]>
  364. </script>
  365. </input>
  366. <input id="ipt_pid" ref="/root/send/pid" class="input_search" navindex="4" visibility="hidden" autonext="false" format="99999999" style="left:275px; top:8px; width:80px; height:19px; ">
  367. <script type="javascript" ev:event="onkeypress">
  368. <![CDATA[
  369. inputEnterKey("btn_search", "DOMActivate");
  370. ]]>
  371. </script>
  372. </input>
  373. <input id="ipt_acptdd" ref="/root/send/acptdd" class="input_search" navindex="5" visibility="hidden" autonext="false" inputtype="date" style="left:290px; top:8px; width:100px; height:19px; ">
  374. <script type="javascript" ev:event="onkeypress">
  375. <![CDATA[
  376. inputEnterKey("btn_search", "DOMActivate");
  377. ]]>
  378. </script>
  379. </input>
  380. </group>
  381. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">인적사항</caption>
  382. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:517px; y2:60px; "/>
  383. <datagrid id="grd_patinfo" nodeset="/root/main/patinfo/patinfolist" caption="등록번호^기관코드^한글이름^영문이름^한문이름^주민등록번호^주민등록번호^집전화번호^최근내원일^최근내원과^외래미수금^퇴원미수금^생년월일^성별^나이^합본등록번호^휴대전화번호^기타전화번호1^기타전화번호2^sms전송승인 여부^이메일 계정^우편번호^우편번호^우편번호순서^주소^상세주소^혈액형^RH혈액형^외국인여부^국적^여권번호^추천여부^추천인ID^추천인관계^VIP여부^VIP비고^종교코드^세례명^성당명^사망여부^사망일시^내원사유^동물여부^원외예외사유코드^재원여부^참고사항^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="60, 100, 65, 65, 65, 50, 50, 85, 100, 100, 100, 100, 75, 100, 100, 100, 100, 100, 100, 120, 100, 50, 50, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 119, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" navindex="7" style="left:0px; top:65px; width:517px; height:230px; ">
  384. <col ref="pid"/>
  385. <col ref="instcd" visibility="hidden"/>
  386. <col ref="hngnm"/>
  387. <col ref="engnm" visibility="hidden"/>
  388. <col ref="chinm" visibility="hidden"/>
  389. <col ref="rrgstno1"/>
  390. <col ref="rrgstno2"/>
  391. <col ref="hometel"/>
  392. <col ref="orddd" format="yyyy-mm-dd"/>
  393. <col ref="deptcd"/>
  394. <col ref="outuncoamt" visibility="hidden"/>
  395. <col ref="dschuncoamt" visibility="hidden"/>
  396. <col ref="brthdd" visibility="hidden" format="yyyy-mm-dd"/>
  397. <col ref="sex" visibility="hidden"/>
  398. <col ref="age" visibility="hidden"/>
  399. <col ref="bindpid" visibility="hidden"/>
  400. <col ref="mpphontel" visibility="hidden"/>
  401. <col ref="etctel1" visibility="hidden"/>
  402. <col ref="etctel2" visibility="hidden"/>
  403. <col ref="smsaprvyn" visibility="hidden"/>
  404. <col ref="email" visibility="hidden"/>
  405. <col ref="zipcd1" visibility="hidden"/>
  406. <col ref="zipcd2" visibility="hidden"/>
  407. <col ref="zipcdseq" visibility="hidden"/>
  408. <col ref="addr" visibility="hidden"/>
  409. <col ref="detladdr" visibility="hidden"/>
  410. <col ref="btype" visibility="hidden"/>
  411. <col ref="rh" visibility="hidden"/>
  412. <col ref="forgeryn" visibility="hidden"/>
  413. <col ref="nati" visibility="hidden"/>
  414. <col ref="psptno" visibility="hidden"/>
  415. <col ref="recmyn" visibility="hidden"/>
  416. <col ref="recmerid" visibility="hidden"/>
  417. <col ref="recmerrela" visibility="hidden"/>
  418. <col ref="vipyn" visibility="hidden"/>
  419. <col ref="viprem" visibility="hidden"/>
  420. <col ref="religncd" visibility="hidden"/>
  421. <col ref="baptnm" visibility="hidden"/>
  422. <col ref="chchnm" visibility="hidden"/>
  423. <col ref="dethyn" visibility="hidden"/>
  424. <col ref="dethdt" visibility="hidden"/>
  425. <col ref="chosresn" visibility="hidden"/>
  426. <col ref="animyn" visibility="hidden"/>
  427. <col ref="exptresncd" visibility="hidden"/>
  428. <col ref="inhospyn" visibility="hidden"/>
  429. <col ref="remfact" visibility="hidden"/>
  430. <col ref="acptdd" visibility="hidden"/>
  431. <col ref="acptno" visibility="hidden"/>
  432. <col ref="lastupdtrid" visibility="hidden"/>
  433. <col ref="lastupdtdt" visibility="hidden"/>
  434. <script type="javascript" ev:event="ondblclick">
  435. <![CDATA[
  436. if ( checkOpener() ) {
  437. row = grd_patinfo.row;
  438. if( row > 0 ){
  439. if( getNodesetCount("/root/main/patinfo/patinfolist") > 0 ){
  440. opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.getNode( row ));
  441. opener.model.makeNode("/root/main/popupendflag");
  442. opener.model.setValue("/root/main/popupendflag", "ok");
  443. opener.model.refresh();
  444. window.close();
  445. }
  446. }
  447. } else {
  448. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  449. }
  450. ]]>
  451. </script>
  452. <script type="javascript" ev:event="onclick">
  453. <![CDATA[
  454. /*
  455. if ( checkOpener() ) {
  456. row = grd_patinfo.row;
  457. if( row > 0 ){
  458. if( getNodesetCount("/root/main/patinfo/patinfolist") > 1 ){
  459. opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.getNode( row ));
  460. opener.model.refresh();
  461. }
  462. }
  463. } else {
  464. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  465. }
  466. */
  467. ]]>
  468. </script>
  469. <script type="javascript" ev:event="onkeypress">
  470. <![CDATA[
  471. if( event.keyCode == 13 ){
  472. btn_confirm.dispatch("DOMActivate");
  473. }
  474. //alert("aaa");
  475. ]]>
  476. </script>
  477. </datagrid>
  478. </group>
  479. <group id="group1" scroll="auto" style="left:0px; top:316px; width:518px; height:27px; ">
  480. <button id="btn_confirm" class="btn4_letter2" navindex="8" style="left:402px; top:5px; width:56px; height:22px; ">
  481. <caption>확인</caption>
  482. <script type="javascript" ev:event="DOMActivate">
  483. <![CDATA[
  484. if ( checkOpener() ) {
  485. row = grd_patinfo.row;
  486. opener.model.makeNode("/root/main/popupendflag");
  487. opener.model.setValue("/root/main/popupendflag", "cancel");
  488. if( row > 0 ){
  489. if( getNodesetCount("/root/main/patinfo/patinfolist") > 0 ){
  490. opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.getNode( row ));
  491. opener.model.makeNode("/root/main/popupendflag");
  492. opener.model.setValue("/root/main/popupendflag", "ok");
  493. }
  494. //else{
  495. // opener.model.setValue("/root/main/popupendflag", "cancel");
  496. //}
  497. //opener.model.refresh();
  498. //window.close();
  499. }else {
  500. //opener.model.setValue("/root/main/popupendflag", "cancel");
  501. messageBox("행이 정확히 선택되지", "E007");
  502. //opener.model.refresh();
  503. //window.close();
  504. }
  505. } else {
  506. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  507. //opener.model.setValue("/root/main/popupendflag", "cancel");
  508. //opener.model.refresh();
  509. //window.close();
  510. }
  511. opener.model.refresh();
  512. window.close();
  513. ]]>
  514. </script>
  515. </button>
  516. <button id="btn_cancel" class="btn4_letter2" navindex="9" style="left:461px; top:5px; width:56px; height:22px; ">
  517. <caption>취소</caption>
  518. <script type="javascript" ev:event="DOMActivate">
  519. <![CDATA[
  520. opener.model.setValue("/root/main/popupendflag", "cancel");
  521. window.close();
  522. ]]>
  523. </script>
  524. </button>
  525. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
  526. </group>
  527. </xhtml:body>
  528. </xhtml:html>