SPMNO02400_외래간호환자조회.xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  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. <patinfo>
  11. <patinfolist/>
  12. </patinfo>
  13. </main>
  14. <send>
  15. <orddeptcd/>
  16. <srchcond/>
  17. <pid/>
  18. <hngnm/>
  19. <rrgstno1/>
  20. <rrgstno2/>
  21. <todaypatyn/>
  22. <acptdd/>
  23. </send>
  24. <init>
  25. <P0350list>
  26. <P0350>
  27. <cdnm/>
  28. <cdid/>
  29. </P0350>
  30. </P0350list>
  31. <orddeptcd>
  32. <orddeptcdlist>
  33. <cd/>
  34. <nm/>
  35. </orddeptcdlist>
  36. </orddeptcd>
  37. <orddrid>
  38. <orddridlist>
  39. <cd/>
  40. <nm/>
  41. <dp/>
  42. <sp/>
  43. </orddridlist>
  44. </orddrid>
  45. </init>
  46. <hidden>
  47. <uid>
  48. <myself/>
  49. <opener/>
  50. </uid>
  51. <tmp/>
  52. </hidden>
  53. <codedata>
  54. <popup>
  55. <popupnm>전화번호 변경</popupnm>
  56. <popupcd>fShowPopup</popupcd>
  57. </popup>
  58. </codedata>
  59. </root>
  60. </instance>
  61. <script type="javascript" ev:event="xforms-ready">
  62. <![CDATA[
  63. zbcfGetCodeList(new Array("P0350"), new Array("/root/init/P0350list"));
  64. // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
  65. zsdfGetCareOutOrderDepartmentList(getUserInfo("dutplceinstcd"), "/root/init/orddept", getCurrentDate()); // com/departmentcodeweb/js/ZSD001.js
  66. //addComboInstance("/root/init/orddept", "deptcd^depthngnm", "0000000000^전체진료과", "dept"); //진료부서 콤보 전체추가
  67. addComboItem("cmb_orddept", "전체", "0000000000", "above"); // 진료부서 콤보 전체추가_ tfHelper.js
  68. model.makeValue("/root/send/orddeptcd", getUserInfo("dutplcecd")); // 근무지부서코드
  69. if(cmb_orddept.label==""){
  70. model.makeValue("/root/send/orddeptcd", "0000000000"); // 근무지부서코드
  71. }
  72. //진료과코드 진료의사ID 조회
  73. pamGetDeptCDDrIDList();
  74. //플래그 초기화!
  75. opener.model.makeNode("/root/main/popupendflag");
  76. opener.model.setValue("/root/main/popupendflag", "cancel");
  77. var openerpid = opener.model.getValue("/root/main/cond/pid");
  78. if(openerpid != ""){
  79. model.makeValue("/root/send/pid", openerpid);
  80. cmb_cond.refresh();
  81. ipt_pid.refresh();
  82. fSrchPatInfo();
  83. }
  84. else{
  85. //검색조건 디폴트값 셋팅
  86. if(cmb_cond.label==""){
  87. model.makeValue("/root/send/srchcond", "3"); //검색 조건
  88. fChangeSearchCondition("3");
  89. cmb_cond.refresh();
  90. }
  91. }
  92. model.removeNodeset("/root/main/patinfo/patinfolist");
  93. grd_patinfo.refresh();
  94. ]]>
  95. </script>
  96. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  97. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  98. <!--<submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>-->
  99. <submission id="TRMNO02400" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
  100. <submission id="TRZSD00206" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  101. </model>
  102. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  105. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  106. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  107. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  108. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  109. <script type="javascript">
  110. <![CDATA[
  111. //창 생성시 부모창으로 부터 받은 입력값의 유효범위 체크
  112. function fInputValueCheckXformsReady(){
  113. var cond = model.getValue("/root/send/srchcond");
  114. switch(cond){
  115. case '1':
  116. //환자등록번호 체크
  117. if(ipt_pid.currentText.length >= 1 ){
  118. model.setValue("/root/send/pid", ipt_pid.currentText);
  119. return (true);
  120. }else{
  121. //messageBox("환자등록번호를 정확히", "C001");
  122. return (false);
  123. }
  124. break;
  125. case '2':
  126. //환자이름 체크
  127. //if( ipt_hngnm.currentText.length >= 2 ) return (true);
  128. if(ipt_hngnm.currentText.length >= 2 ){
  129. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  130. return (true);
  131. }else{
  132. //messageBox("환자이름을 2자리 이상", "C001");
  133. return (false);
  134. }
  135. break;
  136. case '3':
  137. //환자 주민번호 체크
  138. if( ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
  139. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  140. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  141. return (true);
  142. }else{
  143. //messageBox("환자 주민번호를", "C001");
  144. return (false);
  145. }
  146. break;
  147. case '4':
  148. //환자이름 유효성 체크. 환자 주민번호 체크
  149. if(ipt_hngnm.currentText.length >= 2 || ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
  150. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  151. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  152. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  153. }else{
  154. //messageBox("환자이름을 2자리 이상", "C001");
  155. return (false);
  156. }
  157. return( true );
  158. break;
  159. default :
  160. model.setFocus("cmb_orddept");
  161. return( false );
  162. break;
  163. }
  164. }
  165. //입력값의 유효범위 체크
  166. function fInputValueCheck(){
  167. var cond = model.getValue("/root/send/srchcond");
  168. switch(cond){
  169. case '1':
  170. //환자등록번호 체크
  171. if(ipt_pid.currentText.length >= 1 ){
  172. model.setValue("/root/send/pid", ipt_pid.currentText);
  173. return (true);
  174. }else{
  175. messageBox("환자등록번호를 정확히", "C001");
  176. return (false);
  177. }
  178. break;
  179. case '2':
  180. //환자이름 체크
  181. //if( ipt_hngnm.currentText.length >= 2 ) return (true);
  182. if(ipt_hngnm.currentText.length >= 2 ){
  183. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  184. return (true);
  185. }else{
  186. messageBox("환자이름을 2자리 이상", "C001");
  187. return (false);
  188. }
  189. break;
  190. case '3':
  191. //환자 주민번호 체크
  192. if( ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1 ){
  193. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  194. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  195. return (true);
  196. }else{
  197. messageBox("환자 주민번호를", "C001");
  198. return (false);
  199. }
  200. break;
  201. case '4':
  202. //환자이름 유효성 체크. 환자 주민번호 체크
  203. if(ipt_hngnm.currentText.length >= 2 || ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
  204. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  205. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  206. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  207. }else{
  208. messageBox("환자이름 또는 주민번호를", "C001");
  209. return (false);
  210. }
  211. return( true );
  212. break;
  213. default :
  214. messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  215. model.setFocus("cmb_cond");
  216. return( false );
  217. break;
  218. }
  219. }
  220. //조회 조건에 맞는 input 컨트롤을 세팅해 준다.
  221. function fChangeSearchCondition(cond){
  222. switch(cond){
  223. case '1':
  224. model.makeNode("/root/send/pid");
  225. ipt_pid.attribute("visibility") = "visible";
  226. ipt_hngnm.attribute("visibility") = "hidden";
  227. ipt_rrgstno1.attribute("visibility") = "hidden";
  228. ipt_rrgstno2.attribute("visibility") = "hidden";
  229. ipt_pid.attribute("left") = "479px";
  230. model.setFocus("ipt_pid");
  231. break;
  232. case '2':
  233. model.makeNode("/root/send/hngnm");
  234. ipt_pid.attribute("visibility") = "hidden";
  235. ipt_hngnm.attribute("visibility") = "visible";
  236. ipt_rrgstno1.attribute("visibility") = "hidden";
  237. ipt_rrgstno2.attribute("visibility") = "hidden";
  238. ipt_hngnm.attribute("left") = "479px";
  239. model.setFocus("ipt_hngnm");
  240. break;
  241. case '3':
  242. model.makeNode("/root/send/rrgstno1");
  243. model.makeNode("/root/send/rrgstno2");
  244. ipt_pid.attribute("visibility") = "hidden";
  245. ipt_hngnm.attribute("visibility") = "hidden";
  246. ipt_rrgstno1.attribute("visibility") = "visible";
  247. ipt_rrgstno2.attribute("visibility") = "visible";
  248. ipt_rrgstno1.attribute("left") = "479px";
  249. ipt_rrgstno2.attribute("left") = "542px";
  250. model.setFocus("ipt_rrgstno1");
  251. break;
  252. case '4':
  253. //model.makeNode("/root/send/pid");
  254. model.makeNode("/root/send/hngnm");
  255. model.makeNode("/root/send/rrgstno1");
  256. model.makeNode("/root/send/rrgstno2");
  257. ipt_pid.attribute("visibility") = "hidden";
  258. ipt_hngnm.attribute("visibility") = "visible";
  259. ipt_rrgstno1.attribute("visibility") = "visible";
  260. ipt_rrgstno2.attribute("visibility") = "visible";
  261. ipt_hngnm.attribute("left") = "479px";
  262. ipt_rrgstno1.attribute("left") = "567px";
  263. ipt_rrgstno2.attribute("left") = "630px";
  264. model.setFocus("ipt_hngnm");
  265. break;
  266. default :
  267. //messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  268. break;
  269. }
  270. }
  271. function fSrchPatInfo(){
  272. if( fInputValueCheck() ){
  273. if( submit("TRMNO02400") ){
  274. if( grd_patinfo.rows > 1 ){
  275. model.setFocus("grd_patinfo");
  276. }else{
  277. fChangeSearchCondition( cmb_cond.value );
  278. }
  279. }
  280. // 입력란 초기화
  281. model.makeValue("/root/send/pid","");
  282. model.makeValue("/root/send/hngnm","");
  283. model.makeValue("/root/send/rrgstno1","");
  284. model.makeValue("/root/send/rrgstno2","");
  285. ipt_pid.refresh();
  286. ipt_hngnm.refresh();
  287. ipt_rrgstno1.refresh();
  288. ipt_rrgstno2.refresh();
  289. }
  290. }
  291. //전화번호 수정 팝업 호출 2009.06.15 taebum
  292. function fShowPopup(){
  293. var cur_row = grd_patinfo.row;
  294. if(cur_row < 1){
  295. return false;
  296. }
  297. var hngnm = grd_patinfo.valueMatrix( cur_row, grd_patinfo.colRef("hngnm"));
  298. var pid = grd_patinfo.valueMatrix( cur_row, grd_patinfo.colRef("pid"));
  299. if (pid == null && pid == "" && pid == " " && pid == "-" ){
  300. return false;
  301. }
  302. model.removeNodeset("/root/temp/source");
  303. model.makeValue("/root/temp/source/srchcond", "1");
  304. model.makeValue("/root/temp/source/pid", pid);
  305. modal("SPPMO01400", "1", "100", "100", "SPPMO01400", "/root/temp/source", "/root/source");
  306. var hometel = getParameter("SMPMO01400_hometel");
  307. var mpphontel = getParameter("SMPMO01400_mpphontel");
  308. if(mpphontel == "" || mpphontel == null || mpphontel == "undefined"){
  309. mpphontel = "";
  310. }
  311. //if( hometel != '' && mpphontel != '' ){
  312. grd_patinfo.valueMatrix( cur_row, grd_patinfo.colRef("hometel")) = hometel;
  313. grd_patinfo.valueMatrix( cur_row, grd_patinfo.colRef("mpphontel")) = mpphontel;
  314. model.removeNodeset("/root/temp/source");
  315. //}
  316. }
  317. ]]>
  318. </script>
  319. </xhtml:head>
  320. <xhtml:body pagewidth="870" pageheight="343" guideline="2,343;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  321. <group id="group3" scroll="auto" style="left:0px; top:0px; width:845px; height:316px; ">
  322. <group id="group2" style="left:0px; top:5px; width:840px; height:35px; ">
  323. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:840px; height:35px; "/>
  324. <caption id="caption2" class="search_name" style="left:273px; top:9px; width:86px; height:17px; ">검색조건 :</caption>
  325. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:775px; top:7px; width:56px; height:22px; ">
  326. <caption>조회</caption>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. fSrchPatInfo();
  330. ]]>
  331. </script>
  332. </button>
  333. <line id="line13" class="line_4" style="x1:769px; y1:7px; x2:769px; y2:29px; border-color:#ffe4bb; "/>
  334. <input id="ipt_rrgstno1" ref="/root/send/rrgstno1" class="input_search" navindex="4" visibility="hidden" format="999999" style="left:567px; top:8px; width:60px; height:19px; ">
  335. <script type="javascript" ev:event="onkeypress">
  336. <![CDATA[
  337. inputEnterKey("btn_search", "DOMActivate");
  338. ]]>
  339. </script>
  340. </input>
  341. <input id="ipt_hngnm" ref="/root/send/hngnm" class="input_search" navindex="3" visibility="hidden" autonext="false" imemode="hangul" style="left:479px; top:8px; width:85px; height:19px; ">
  342. <script type="javascript" ev:event="onkeypress">
  343. <![CDATA[
  344. inputEnterKey("btn_search", "DOMActivate");
  345. ]]>
  346. </script>
  347. </input>
  348. <input id="ipt_pid" ref="/root/send/pid" class="input_search" navindex="6" visibility="hidden" autonext="false" style="left:480px; top:8px; width:85px; height:19px; ">
  349. <script type="javascript" ev:event="onkeypress">
  350. <![CDATA[
  351. inputEnterKey("btn_search", "DOMActivate");
  352. ]]>
  353. </script>
  354. </input>
  355. <input id="ipt_rrgstno2" ref="/root/send/rrgstno2" class="input_search" navindex="5" visibility="hidden" autonext="false" format="9999999" style="left:630px; top:8px; width:60px; height:19px; ">
  356. <script type="javascript" ev:event="onkeypress">
  357. <![CDATA[
  358. inputEnterKey("btn_search", "DOMActivate");
  359. ]]>
  360. </script>
  361. </input>
  362. <select1 id="cmb_cond" ref="/root/send/srchcond" class="combo_search" navindex="2" appearance="minimal" style="left:361px; top:8px; width:115px; height:19px; ">
  363. <choices>
  364. <item>
  365. <label>등록번호</label>
  366. <value>1</value>
  367. </item>
  368. <item>
  369. <label>환자명</label>
  370. <value>2</value>
  371. </item>
  372. <item>
  373. <label>주민번호</label>
  374. <value>3</value>
  375. </item>
  376. <item>
  377. <label>환자명/주민번호</label>
  378. <value>4</value>
  379. </item>
  380. </choices>
  381. <script type="javascript" ev:event="xforms-value-changed">
  382. <![CDATA[
  383. var cond = model.getValue("/root/send/srchcond");
  384. //model.refresh();
  385. fChangeSearchCondition(cond);
  386. ]]>
  387. </script>
  388. </select1>
  389. <select id="checkbox2" ref="/root/send/todaypatyn" class="checkbox_search" overflow="visible" appearance="full" style="left:698px; top:10px; width:70px; height:15px; border-style:none; ">
  390. <choices>
  391. <item>
  392. <label>당일환자</label>
  393. <value>Y</value>
  394. </item>
  395. </choices>
  396. </select>
  397. <caption id="caption3" class="search_name" style="left:5px; top:9px; width:73px; height:17px; ">진료과 :</caption>
  398. <select1 id="cmb_orddept" ref="/root/send/orddeptcd" class="combo_search" navindex="1" appearance="minimal" style="left:79px; top:8px; width:176px; height:19px; ">
  399. <choices>
  400. <itemset nodeset="/root/init/orddept/dept">
  401. <label ref="depthngnm"/>
  402. <value ref="deptcd"/>
  403. </itemset>
  404. </choices>
  405. </select1>
  406. </group>
  407. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">인적사항</caption>
  408. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:840px; y2:60px; "/>
  409. <datagrid id="grd_patinfo" nodeset="/root/main/patinfo/patinfolist" caption="등록번호^환자성명^주민등록번호^주민등록번호^집전화번호^휴대전화번호^최근내원일^최근내원과^주소^상세주소" colsep="^" colwidth="60, 65, 50, 50, 85, 100, 100, 100, 250, 250" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" navindex="8" style="left:0px; top:65px; width:840px; height:250px; ">
  410. <col ref="pid"/>
  411. <col ref="hngnm"/>
  412. <col ref="rrgstno1"/>
  413. <col ref="rrgstno2"/>
  414. <col ref="hometel"/>
  415. <col ref="mpphontel"/>
  416. <col ref="lastorddd" format="yyyy-mm-dd"/>
  417. <col disabled="true" ref="lastorddeptcd" type="combo">
  418. <choices>
  419. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  420. <label ref="nm"/>
  421. <value ref="cd"/>
  422. </itemset>
  423. </choices>
  424. </col>
  425. <col ref="addr"/>
  426. <col ref="detladdr"/>
  427. <script type="javascript" ev:event="onmousedown">
  428. <![CDATA[
  429. if (event.button == 3 ){
  430. window.setPopupMenu( true, "/root/codedata/popup", "popupnm", "popupcd", false);
  431. }else{
  432. window.setPopupMenu(false);
  433. }
  434. ]]>
  435. </script>
  436. <script type="javascript" ev:event="ondblclick">
  437. <![CDATA[
  438. if ( checkOpener()) {
  439. if(isDataCell()){
  440. row = grd_patinfo.row;
  441. //if(row >0 && grd_patinfo.col == 1)
  442. if( row > 0 ){
  443. if( getNodesetCount("/root/main/patinfo/patinfolist") > 0 ){
  444. opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.getNode( row ));
  445. opener.model.makeNode("/root/main/popupendflag");
  446. opener.model.setValue("/root/main/popupendflag", "ok");
  447. opener.model.refresh();
  448. window.close();
  449. }
  450. }
  451. }
  452. } else {
  453. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  454. }
  455. ]]>
  456. </script>
  457. <script type="javascript" ev:event="onkeypress">
  458. <![CDATA[
  459. if( event.keyCode == 13 ){
  460. btn_confirm.dispatch("DOMActivate");
  461. }
  462. //alert("aaa");
  463. ]]>
  464. </script>
  465. </datagrid>
  466. </group>
  467. <group id="group1" scroll="auto" style="left:0px; top:316px; width:840px; height:27px; ">
  468. <button id="btn_confirm" class="btn4_letter2" navindex="9" style="left:717px; top:5px; width:56px; height:22px; ">
  469. <caption>확인</caption>
  470. <script type="javascript" ev:event="DOMActivate">
  471. <![CDATA[
  472. if ( checkOpener() ) {
  473. row = grd_patinfo.row;
  474. opener.model.makeNode("/root/main/popupendflag");
  475. opener.model.setValue("/root/main/popupendflag", "cancel");
  476. if( row > 0 ){
  477. if( getNodesetCount("/root/main/patinfo/patinfolist") > 0 ){
  478. //합번된 등록번호 메세지 처리
  479. var sPid = model.getValue("/root/main/patinfo/patinfolist[" + row + "]/pid");
  480. var sHngnm = model.getValue("/root/main/patinfo/patinfolist[" + row + "]/hngnm");
  481. var sBindPid = model.getValue("/root/main/patinfo/patinfolist[" + row + "]/bindpid");
  482. if( sBindPid != '' && sBindPid != '-' ){
  483. messageBox(sPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다.", "I999", "");
  484. return false;
  485. }
  486. opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.getNode( row ));
  487. opener.model.makeNode("/root/main/popupendflag");
  488. opener.model.setValue("/root/main/popupendflag", "ok");
  489. }
  490. //else{
  491. // opener.model.setValue("/root/main/popupendflag", "cancel");
  492. //}
  493. //opener.model.refresh();
  494. //window.close();
  495. }else {
  496. //opener.model.setValue("/root/main/popupendflag", "cancel");
  497. messageBox("행이 정확히 선택되지", "E007");
  498. //opener.model.refresh();
  499. //window.close();
  500. }
  501. } else {
  502. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  503. //opener.model.setValue("/root/main/popupendflag", "cancel");
  504. //opener.model.refresh();
  505. //window.close();
  506. }
  507. opener.model.refresh();
  508. window.close();
  509. ]]>
  510. </script>
  511. </button>
  512. <button id="btn_cancel" class="btn4_letter2" navindex="10" style="left:776px; top:5px; width:56px; height:22px; ">
  513. <caption>취소</caption>
  514. <script type="javascript" ev:event="DOMActivate">
  515. <![CDATA[
  516. opener.model.makeNode("/root/main/popupendflag");
  517. opener.model.setValue("/root/main/popupendflag", "cancel");
  518. window.close();
  519. ]]>
  520. </script>
  521. </button>
  522. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:838px; y2:0px; "/>
  523. </group>
  524. </xhtml:body>
  525. </xhtml:html>