SMPMC04202_전자카드발급(수납창구외 사용).xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  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. <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. <tmp/>
  36. </hidden>
  37. </root>
  38. </instance>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. zbcfGetCodeList(new Array("P0350"), new Array("/root/init/P0350list"));
  42. fGetPCID();
  43. if( getNodesetCount("/root/send/srchcond") > 0 ){
  44. if( model.getValue("/root/send/checkfnexam") != "1" ){
  45. //조회조건에서 '예약일시'를 제거한다.
  46. cmb_cond.choices.itemset.attribute("nodeset") = "/root/init/P0350list/P0350[cdid != '5' ]";
  47. }
  48. if( model.getValue("/root/send/srchcond") == '' || model.getValue("/root/send/srchcond") == '-' ){
  49. model.setValue("/root/send/srchcond", "1");
  50. }
  51. //검색조건 셋팅
  52. fChangeSearchCondition( model.getValue("/root/send/srchcond") );
  53. model.refresh();
  54. /*
  55. //값이 부모창에서 입력되었을 경우 조회한다.
  56. if(model.getValue("/root/send/srchcond") != '5' && fInputValueCheckXformsReady() ){alert("cc");
  57. //if( fInputValueCheckXformsReady() ){
  58. if( submit("TRPMC02500") ){
  59. if( grd_patinfo.rows == 2 ){
  60. if( model.getValue("/root/send/autoflag").toUpperCase() == "Y" ){ //조회 내역이 1건일 경우 자동 화면 닫기
  61. model.setFocus("grd_patinfo");
  62. btn_confirm.dispatch("DOMActivate");
  63. window.close();
  64. }
  65. }
  66. if( grd_patinfo.rows > 1 ){
  67. model.setFocus("grd_patinfo");
  68. }else{
  69. if( model.getValue("/root/send/autoflag").toUpperCase() == "NON" ){ //조회 내역이 없을 경우 자동 화면 닫기
  70. //model.setFocus("grd_patinfo");
  71. btn_cancel.dispatch("DOMActivate");
  72. //window.close();
  73. }
  74. fChangeSearchCondition( cmb_cond.value );
  75. }
  76. }
  77. }
  78. */
  79. }else{
  80. //조회조건에서 '예약일시'를 제거한다.
  81. cmb_cond.choices.itemset.attribute("nodeset") = "/root/init/P0350list/P0350[cdid != '5' ]";
  82. model.makeNode("/root/send/srchcond");
  83. model.makeNode("/root/send/pid");
  84. model.makeNode("/root/send/hngnm");
  85. model.makeNode("/root/send/rrgstno1");
  86. model.makeNode("/root/send/rrgstno2");
  87. model.makeNode("/root/send/acptdd");
  88. model.refresh();
  89. }
  90. //진료일 오늘 날짜 디폴트 세팅
  91. model.makeNode("/root/send/acptdd");
  92. model.setValue("/root/send/acptdd", getCurrentDate() );
  93. ]]>
  94. </script>
  95. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  96. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  97. <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
  98. <submission id="TXPAM00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/patcardissue" resultref="/root/hidden/patcardissue/result"/>
  99. </model>
  100. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  103. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  104. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  105. <script type="javascript">
  106. <![CDATA[
  107. //창 생성시 부모창으로 부터 받은 입력값의 유효범위 체크
  108. function fInputValueCheckXformsReady(){
  109. var cond = model.getValue("/root/send/srchcond");
  110. switch(cond){
  111. case '1':
  112. //환자등록번호 체크
  113. if(ipt_pid.currentText.length >= 1 ){
  114. model.setValue("/root/send/pid", ipt_pid.currentText);
  115. return (true);
  116. }else{
  117. //messageBox("환자등록번호를 정확히", "C001");
  118. return (false);
  119. }
  120. break;
  121. case '2':
  122. //환자이름 체크
  123. //if( ipt_hngnm.currentText.length >= 2 ) return (true);
  124. if(ipt_hngnm.currentText.length >= 2 ){
  125. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  126. return (true);
  127. }else{
  128. //messageBox("환자이름을 2자리 이상", "C001");
  129. return (false);
  130. }
  131. break;
  132. case '3':
  133. //환자 주민번호 체크
  134. if( ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
  135. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  136. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  137. return (true);
  138. }else{
  139. //messageBox("환자 주민번호를", "C001");
  140. return (false);
  141. }
  142. break;
  143. case '4':
  144. //환자이름 유효성 체크. 환자 주민번호 체크
  145. if(ipt_hngnm.currentText.length >= 2 || ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
  146. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  147. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  148. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  149. }else{
  150. //messageBox("환자이름을 2자리 이상", "C001");
  151. return (false);
  152. }
  153. return( true );
  154. break;
  155. case '5':
  156. //예약일자 유효성 체크 --
  157. if( isValidDateTime( model.getValue("/root/send/acptdd"), "YYYYMMDD") ){
  158. model.setValue("/root/send/acptdd", model.getValue("/root/send/acptdd"));
  159. //model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  160. //alert("aaaa");
  161. return (true);
  162. }else{
  163. //messageBox("예약일자를 정확히", "C001");
  164. return (false);
  165. }
  166. break;
  167. default :
  168. model.setFocus("cmb_cond");
  169. return( false );
  170. break;
  171. }
  172. }
  173. //입력값의 유효범위 체크
  174. function fInputValueCheck(){
  175. var cond = model.getValue("/root/send/srchcond");
  176. switch(cond){
  177. case '1':
  178. //환자등록번호 체크
  179. if(ipt_pid.currentText.length >= 1 ){
  180. model.setValue("/root/send/pid", ipt_pid.currentText);
  181. return (true);
  182. }else{
  183. messageBox("환자등록번호를 정확히", "C001");
  184. return (false);
  185. }
  186. break;
  187. case '2':
  188. //환자이름 체크
  189. //if( ipt_hngnm.currentText.length >= 2 ) return (true);
  190. if(ipt_hngnm.currentText.length >= 2 ){
  191. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  192. return (true);
  193. }else{
  194. messageBox("환자이름을 2자리 이상", "C001");
  195. return (false);
  196. }
  197. break;
  198. case '3':
  199. //환자 주민번호 체크
  200. if( ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1 ){
  201. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  202. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  203. return (true);
  204. }else{
  205. messageBox("환자 주민번호를", "C001");
  206. return (false);
  207. }
  208. break;
  209. case '4':
  210. //환자이름 유효성 체크. 환자 주민번호 체크
  211. if(ipt_hngnm.currentText.length >= 2 || ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
  212. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  213. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  214. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  215. }else{
  216. messageBox("환자이름 또는 주민번호를", "C001");
  217. return (false);
  218. }
  219. return( true );
  220. break;
  221. case '5':
  222. //예약일자 유효성 체크 --
  223. model.refresh();
  224. if( isValidDateTime( model.getValue("/root/send/acptdd"), "YYYYMMDD") ){
  225. //alert(model.getValue("/root/send/acptdd"));
  226. return (true);
  227. }else{
  228. messageBox("예약일자를 정확히", "C001");
  229. return (false);
  230. }
  231. break;
  232. default :
  233. messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  234. model.setFocus("cmb_cond");
  235. return( false );
  236. break;
  237. }
  238. }
  239. //조회 조건에 맞는 input 컨트롤을 세팅해 준다.
  240. function fChangeSearchCondition( cond){
  241. switch(cond){
  242. case '1':
  243. model.makeNode("/root/send/pid");
  244. ipt_pid.attribute("visibility") = "visible";
  245. ipt_pid.attribute("left") = "219px";
  246. ipt_pid.attribute("top") = "8px";
  247. ipt_hngnm.attribute("visibility") = "hidden";
  248. ipt_rrgstno1.attribute("visibility") = "hidden";
  249. ipt_rrgstno2.attribute("visibility") = "hidden";
  250. ipt_acptdd.attribute("visibility") = "hidden";
  251. model.setFocus("ipt_pid");
  252. break;
  253. case '2':
  254. model.makeNode("/root/send/hngnm");
  255. ipt_hngnm.attribute("visibility") = "visible";
  256. ipt_hngnm.attribute("left") = "219px";
  257. ipt_hngnm.attribute("top") = "8px";
  258. ipt_pid.attribute("visibility") = "hidden";
  259. ipt_rrgstno1.attribute("visibility") = "hidden";
  260. ipt_rrgstno2.attribute("visibility") = "hidden";
  261. ipt_acptdd.attribute("visibility") = "hidden";
  262. model.setFocus("ipt_hngnm");
  263. break;
  264. case '3':
  265. model.makeNode("/root/send/rrgstno1");
  266. model.makeNode("/root/send/rrgstno2");
  267. ipt_rrgstno1.attribute("visibility") = "visible";
  268. ipt_rrgstno2.attribute("visibility") = "visible";
  269. ipt_rrgstno1.attribute("left") = "219px";
  270. ipt_rrgstno1.attribute("top") = "8px";
  271. ipt_rrgstno2.attribute("left") = "307px";
  272. ipt_rrgstno2.attribute("top") = "8px";
  273. ipt_hngnm.attribute("visibility") = "hidden";
  274. ipt_pid.attribute("visibility") = "hidden";
  275. ipt_acptdd.attribute("visibility") = "hidden";
  276. model.setFocus("ipt_rrgstno1");
  277. break;
  278. case '4':
  279. //model.makeNode("/root/send/pid");
  280. model.makeNode("/root/send/hngnm");
  281. model.makeNode("/root/send/rrgstno1");
  282. model.makeNode("/root/send/rrgstno2");
  283. ipt_hngnm.attribute("visibility") = "visible";
  284. ipt_hngnm.attribute("left") = "219px";
  285. ipt_hngnm.attribute("top") = "8px";
  286. ipt_pid.attribute("visibility") = "hidden";
  287. ipt_rrgstno1.attribute("visibility") = "visible";
  288. ipt_rrgstno1.attribute("left") = "352px";
  289. ipt_rrgstno1.attribute("top") = "8px";
  290. ipt_rrgstno2.attribute("visibility") = "visible";
  291. ipt_rrgstno2.attribute("left") = "440px";
  292. ipt_rrgstno2.attribute("top") = "8px";
  293. ipt_acptdd.attribute("visibility") = "hidden";
  294. model.setFocus("ipt_hngnm");
  295. break;
  296. case '5':
  297. model.makeNode("/root/send/acptdd");
  298. ipt_acptdd.attribute("visibility") = "visible";
  299. ipt_acptdd.attribute("left") = "219px";
  300. ipt_acptdd.attribute("top") = "8px";
  301. ipt_hngnm.attribute("visibility") = "hidden";
  302. ipt_pid.attribute("visibility") = "hidden";
  303. ipt_rrgstno1.attribute("visibility") = "hidden";
  304. ipt_rrgstno2.attribute("visibility") = "hidden";
  305. //진료일 오늘 날짜 디폴트 세팅
  306. model.makeNode("/root/send/acptdd");
  307. model.setValue("/root/send/acptdd", getCurrentDate() );
  308. model.setFocus("ipt_acptdd");
  309. break;
  310. default :
  311. //messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  312. break;
  313. }
  314. }
  315. ]]>
  316. </script>
  317. </xhtml:head>
  318. <xhtml:body pagewidth="634" pageheight="343" guideline="2,343;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  319. <group id="group3" scroll="auto" style="left:0px; top:0px; width:618px; height:316px; ">
  320. <group id="group2" style="left:0px; top:0px; width:618px; height:35px; ">
  321. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:617px; height:35px; "/>
  322. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  323. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:545px; top:7px; width:56px; height:22px; ">
  324. <caption>조회</caption>
  325. <script type="javascript" ev:event="DOMActivate">
  326. <![CDATA[
  327. if( fInputValueCheck() ){
  328. if( submit("TRPMC02500") ){
  329. if( grd_patinfo.rows > 1 ){
  330. model.setFocus("grd_patinfo");
  331. }else{
  332. fChangeSearchCondition( cmb_cond.value );
  333. }
  334. }
  335. }
  336. ]]>
  337. </script>
  338. </button>
  339. <line id="line13" class="line_4" style="x1:529px; y1:7px; x2:529px; y2:29px; border-color:#ffe4bb; "/>
  340. <input id="ipt_hngnm" ref="/root/send/hngnm" class="input_search" navindex="1" visibility="hidden" autonext="false" imemode="hangul" style="left:224px; top:8px; width:130px; height:19px; ">
  341. <script type="javascript" ev:event="onkeypress">
  342. <![CDATA[
  343. inputEnterKey("btn_search", "DOMActivate");
  344. ]]>
  345. </script>
  346. </input>
  347. <input id="ipt_rrgstno1" ref="/root/send/rrgstno1" class="input_search" navindex="2" visibility="hidden" format="999999" style="left:247px; top:8px; width:85px; height:19px; ">
  348. <script type="javascript" ev:event="onkeypress">
  349. <![CDATA[
  350. inputEnterKey("btn_search", "DOMActivate");
  351. ]]>
  352. </script>
  353. </input>
  354. <select1 id="cmb_cond" ref="/root/send/srchcond" class="combo_search" navindex="10" appearance="minimal" style="left:106px; top:8px; width:110px; height:19px; ">
  355. <choices>
  356. <itemset nodeset="/root/init/P0350list/P0350">
  357. <label ref="cdnm"/>
  358. <value ref="cdid"/>
  359. </itemset>
  360. </choices>
  361. <script type="javascript" ev:event="xforms-value-changed">
  362. <![CDATA[
  363. var cond = model.getValue("/root/send/srchcond");
  364. //model.refresh();
  365. fChangeSearchCondition( cond );
  366. ]]>
  367. </script>
  368. </select1>
  369. <input id="ipt_rrgstno2" ref="/root/send/rrgstno2" class="input_search" navindex="3" visibility="hidden" autonext="false" format="9999999" style="left:285px; top:8px; width:85px; height:19px; ">
  370. <script type="javascript" ev:event="onkeypress">
  371. <![CDATA[
  372. inputEnterKey("btn_search", "DOMActivate");
  373. ]]>
  374. </script>
  375. </input>
  376. <input id="ipt_pid" ref="/root/send/pid" class="input_search" navindex="4" visibility="hidden" autonext="false" style="left:325px; top:8px; width:130px; height:19px; ">
  377. <script type="javascript" ev:event="onkeypress">
  378. <![CDATA[
  379. inputEnterKey("btn_search", "DOMActivate");
  380. ]]>
  381. </script>
  382. </input>
  383. <input id="ipt_acptdd" ref="/root/send/acptdd" class="input_search" navindex="5" visibility="hidden" autonext="false" inputtype="date" style="left:390px; top:8px; width:130px; height:19px; ">
  384. <script type="javascript" ev:event="onkeypress">
  385. <![CDATA[
  386. inputEnterKey("btn_search", "DOMActivate");
  387. ]]>
  388. </script>
  389. </input>
  390. </group>
  391. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">인적사항</caption>
  392. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:617px; y2:60px; "/>
  393. <datagrid id="grd_patinfo" nodeset="/root/main/patinfo/patinfolist" caption="등록번호^환자성명^영문이름^주민등록번호^주민등록번호^합본등록번호" colsep="^" colwidth="60, 104, 146, 92, 112, 100" dataheight="23" defaultrows="2" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" navindex="7" style="left:0px; top:65px; width:617px; height:250px; ">
  394. <col ref="pid"/>
  395. <col ref="hngnm"/>
  396. <col ref="engnm"/>
  397. <col ref="rrgstno1"/>
  398. <col ref="rrgstno2"/>
  399. <col ref="bindpid"/>
  400. <script type="javascript" ev:event="ondblclick">
  401. <![CDATA[
  402. if ( checkOpener() ) {
  403. // row = grd_patinfo.row;
  404. //
  405. // if( row > 0 ){
  406. // if( getNodesetCount("/root/main/patinfo/patinfolist") > 0 ){
  407. // opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.getNode( row ));
  408. // opener.model.makeNode("/root/main/popupendflag");
  409. // opener.model.setValue("/root/main/popupendflag", "ok");
  410. //
  411. // opener.model.refresh();
  412. // window.close();
  413. // }
  414. // }
  415. // btn_confirm.dispatch("DOMActivate");
  416. } else {
  417. // messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  418. }
  419. ]]>
  420. </script>
  421. <script type="javascript" ev:event="onclick">
  422. <![CDATA[
  423. /*
  424. if ( checkOpener() ) {
  425. row = grd_patinfo.row;
  426. if( row > 0 ){
  427. if( getNodesetCount("/root/main/patinfo/patinfolist") > 1 ){
  428. opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.getNode( row ));
  429. opener.model.refresh();
  430. }
  431. }
  432. } else {
  433. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  434. }
  435. */
  436. ]]>
  437. </script>
  438. <script type="javascript" ev:event="onkeypress">
  439. <![CDATA[
  440. if( event.keyCode == 13 ){
  441. btn_confirm.dispatch("DOMActivate");
  442. }
  443. //alert("aaa");
  444. ]]>
  445. </script>
  446. </datagrid>
  447. </group>
  448. <group id="group1" scroll="auto" style="left:0px; top:316px; width:618px; height:27px; ">
  449. <button id="btn_confirm" class="btn4_letter2" navindex="8" style="left:502px; top:5px; width:56px; height:22px; ">
  450. <caption>발급</caption>
  451. <script type="javascript" ev:event="DOMActivate">
  452. <![CDATA[
  453. //데이터 체크
  454. var pid = model.getValue("/root/main/patinfo/patinfolist['" +grd_patinfo.row+ "']/pid");
  455. if( pid == '' || pid == ' ' || pid == '-' ){
  456. messageBox("등록번호를 찾을 수 없습니다.", "E999", "");
  457. return false;
  458. }
  459. var issno = model.getValue("/root/hidden/patcardissue/pcinfo");
  460. if( issno == '' || issno == ' ' || issno == '-' ){
  461. messageBox("PC 고유번호 정보를 찾을 수 없습니다.", "E999", "");
  462. return false;
  463. }
  464. //노드생성
  465. model.makeValue("/root/hidden/patcardissue/flag" , 'R');
  466. model.makeValue("/root/hidden/patcardissue/pid", pid);
  467. model.makeValue("/root/hidden/patcardissue/rrgstno1" ,model.getValue("/root/main/patinfo/patinfolist['" +grd_patinfo.row+ "']/rrgstno1"));
  468. model.makeValue("/root/hidden/patcardissue/rrgstno2" ,model.getValue("/root/main/patinfo/patinfolist['" +grd_patinfo.row+ "']/rrgstno2"));
  469. model.makeValue("/root/hidden/patcardissue/issflag",'7');
  470. model.makeValue("/root/hidden/patcardissue/issno", issno);
  471. model.makeValue("/root/hidden/patcardissue/hngnm" , model.getValue("/root/main/patinfo/patinfolist['" +grd_patinfo.row+ "']/hngnm"));
  472. model.makeNode("/root/hidden/patcardissue/result");
  473. if( model.getValue("/root/main/patinfo/patinfolist['" +grd_patinfo.row+ "']/bindpid") != ""){
  474. if( model.getValue("/root/main/patinfo/patinfolist['" +grd_patinfo.row+ "']/bindpid") != "-"){
  475. messageBox("합본처리된 번호는 출력 불가능 합니다..", "I999", ""); return false;
  476. }
  477. }
  478. setForceOn();
  479. if(submit("TXPAM00201")){
  480. messageBox("환자카드 발급신청을 정상적으로 완료했습니다. 카드발급 프린터에서 발급상황을 확인하세요.", "I999", "");
  481. model.removenode("/root/hidden/patcardissue/flag");
  482. model.removenode("/root/hidden/patcardissue/pid");
  483. model.removenode("/root/hidden/patcardissue/rrgstno1");
  484. model.removenode("/root/hidden/patcardissue/rrgstno2");
  485. model.removenode("/root/hidden/patcardissue/issflag");
  486. model.removenode("/root/hidden/patcardissue/issno");
  487. model.removenode("/root/hidden/patcardissue/hngnm");
  488. model.removenode("/root/hidden/patcardissue/remfact");
  489. model.removenode("/root/hidden/patcardissue/result");
  490. model.resetInstanceNode("/root/main/patinfo");
  491. model.refresh();
  492. model.setFocus("ipt_pid");
  493. }
  494. ]]>
  495. </script>
  496. </button>
  497. <button id="btn_cancel" class="btn4_letter2" navindex="9" style="left:561px; top:5px; width:56px; height:22px; ">
  498. <caption>취소</caption>
  499. <script type="javascript" ev:event="DOMActivate">
  500. <![CDATA[
  501. opener.model.makeNode("/root/main/popupendflag");
  502. opener.model.setValue("/root/main/popupendflag", "cancel");
  503. window.close();
  504. ]]>
  505. </script>
  506. </button>
  507. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:618px; y2:0px; "/>
  508. <button id="button1" accesskey="f9" class="btn4_letter3" style="left:430px; top:5px; width:68px; height:22px; ">
  509. <caption>초기화</caption>
  510. <script type="javascript" ev:event="DOMActivate">
  511. <![CDATA[
  512. window.reload();
  513. ]]>
  514. </script>
  515. </button>
  516. </group>
  517. </xhtml:body>
  518. </xhtml:html>