SMPMC00700_행려환자관리.xrw 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <data1>
  11. <ddflag/>
  12. <fromdd/>
  13. <todd/>
  14. </data1>
  15. <data2>
  16. <sess_posinstcd>012</sess_posinstcd>
  17. </data2>
  18. <data3>
  19. <pid/>
  20. <indd/>
  21. </data3>
  22. <data4>
  23. <srchcond/>
  24. <pid/>
  25. <hngnm/>
  26. <rrgstno1/>
  27. <rrgstno2/>
  28. </data4>
  29. <data5>
  30. <s_tlpm>
  31. <tlpm/>
  32. </s_tlpm>
  33. </data5>
  34. <data6>
  35. <hngnm/>
  36. <mode/>
  37. <rrgstno1/>
  38. <rrgstno2/>
  39. </data6>
  40. </send>
  41. <main>
  42. <ptbs>
  43. <ptbs_status/>
  44. <ptbs_pid/>
  45. <ptbs_hngnm/>
  46. <ptbs_engnm/>
  47. <ptbs_rrgstno1/>
  48. <ptbs_rrgstno2/>
  49. <ptbs_brthdd/>
  50. <ptbs_sex/>
  51. <ptbs_age/>
  52. <ptbs_hometel/>
  53. <ptbs_mpphontel/>
  54. <ptbs_zipcd1/>
  55. <ptbs_zipcd2/>
  56. <ptbs_zipcdseq/>
  57. <ptbs_zipnm/>
  58. <ptbs_detladdr/>
  59. <ptbs_forgeryn/>
  60. <ptbs_recmyn/>
  61. <ptbs_recmerid/>
  62. <ptbs_vipyn/>
  63. <ptbs_religncd/>
  64. <ptbs_remfact/>
  65. <ptbs_inhospyn/>
  66. </ptbs>
  67. <tlpm>
  68. <tlpm_status/>
  69. <tlpm_pid/>
  70. <tlpm_indd/>
  71. <tlpm_instcd/>
  72. <tlpm_arvdd/>
  73. <tlpm_issdd/>
  74. <tlpm_travno/>
  75. <tlpm_curetermfromdd/>
  76. <tlpm_curetermtodd/>
  77. <tlpm_reqdd/>
  78. <tlpm_reqinstnmcd/>
  79. <tlpm_procinsnmcd/>
  80. <tlpm_procinsnm/>
  81. <tlpm_discvplce/>
  82. <tlpm_mngtcnts/>
  83. <tlpm_fstrgstrid/>
  84. <tlpm_fstrgstdt/>
  85. <tlpm_lastupdtrid/>
  86. <tlpm_lastupdtdt/>
  87. </tlpm>
  88. <inpt>
  89. <inpt_orddeptcd/>
  90. <inpt_medispclid/>
  91. <inpt_atdoctid/>
  92. <inpt_insukind/>
  93. <inpt_indd/>
  94. <inpt_dschdd/>
  95. <inpt_inpath/>
  96. <inpt_specordyn/>
  97. <inpt_suppkind/>
  98. <inpt_insucd/>
  99. </inpt>
  100. <otpt>
  101. <otpt_orddd/>
  102. <otpt_insukind/>
  103. <otpt_suppkind/>
  104. <otpt_orddrid/>
  105. <otpt_orddeptcd/>
  106. <otpt_specordyn/>
  107. <otpt_insucd/>
  108. </otpt>
  109. <tlpmlist>
  110. <grdtravpatlist/>
  111. </tlpmlist>
  112. <patinfo>
  113. <patinfolist/>
  114. </patinfo>
  115. </main>
  116. <hidden>
  117. <original>
  118. </original>
  119. <rcv>
  120. <ptbs>
  121. <ptbs_status/>
  122. <ptbs_pid/>
  123. <ptbs_hngnm/>
  124. <ptbs_engnm/>
  125. <ptbs_rrgstno1/>
  126. <ptbs_rrgstno2/>
  127. <ptbs_brthdd/>
  128. <ptbs_sex/>
  129. <ptbs_age/>
  130. <ptbs_hometel/>
  131. <ptbs_mpphontel/>
  132. <ptbs_zipcd1/>
  133. <ptbs_zipcd2/>
  134. <ptbs_zipnm/>
  135. <ptbs_detladdr/>
  136. <ptbs_forgeryn/>
  137. <ptbs_recmyn/>
  138. <ptbs_recmerid/>
  139. <ptbs_vipyn/>
  140. <ptbs_religncd/>
  141. <ptbs_remfact/>
  142. <ptbs_inhospyn/>
  143. </ptbs>
  144. <tlpm>
  145. <tlpm_status/>
  146. <tlpm_pid/>
  147. <tlpm_indd/>
  148. <tlpm_instcd/>
  149. <tlpm_arvdd/>
  150. <tlpm_issdd/>
  151. <tlpm_travno/>
  152. <tlpm_curetermfromdd/>
  153. <tlpm_curetermtodd/>
  154. <tlpm_reqdd/>
  155. <tlpm_reqinstnmcd/>
  156. <tlpm_procinsnmcd/>
  157. <tlpm_procinsnm/>
  158. <tlpm_discvplce/>
  159. <tlpm_mngtcnts/>
  160. <tlpm_fstrgstrid/>
  161. <tlpm_fstrgstdt/>
  162. <tlpm_lastupdtrid/>
  163. <tlpm_lastupdtdt/>
  164. </tlpm>
  165. <inpt>
  166. <inpt_orddeptcd/>
  167. <inpt_medispclid/>
  168. <inpt_atdoctid/>
  169. <inpt_insukind/>
  170. <inpt_indd/>
  171. <inpt_dschdd/>
  172. <inpt_inpath/>
  173. <inpt_specordyn/>
  174. <inpt_insucd/>
  175. </inpt>
  176. <otpt>
  177. <otpt_insukind/>
  178. <otpt_suppkind/>
  179. <otpt_orddrid/>
  180. <otpt_orddeptcd/>
  181. <otpt_specordyn/>
  182. <otpt_orddd/>
  183. <otpt_insucd/>
  184. </otpt>
  185. </rcv>
  186. <init>
  187. <disccd>
  188. <cd/>
  189. <nm/>
  190. </disccd>
  191. <insukind>
  192. <cd/>
  193. <nm/>
  194. </insukind>
  195. <suppkind>
  196. <cd/>
  197. <nm/>
  198. <up/>
  199. <io/>
  200. </suppkind>
  201. <orddeptcd>
  202. <cd/>
  203. <nm/>
  204. </orddeptcd>
  205. <orddrid>
  206. <cd/>
  207. <nm/>
  208. <dp/>
  209. <sp/>
  210. </orddrid>
  211. <flag>
  212. <prestdd/>
  213. <mskindflag/>
  214. </flag>
  215. <wardcd>
  216. <cd/>
  217. <nm/>
  218. <of/>
  219. </wardcd>
  220. <roomcd>
  221. <cd/>
  222. <nm/>
  223. <wd/>
  224. </roomcd>
  225. </init>
  226. <rcvflag>
  227. <flag>
  228. <chkcount/>
  229. </flag>
  230. </rcvflag>
  231. <check>
  232. <ptbs>
  233. <ptbs_status/>
  234. <ptbs_pid/>
  235. <ptbs_hngnm/>
  236. <ptbs_engnm/>
  237. <ptbs_rrgstno1/>
  238. <ptbs_rrgstno2/>
  239. <ptbs_brthdd/>
  240. <ptbs_sex/>
  241. <ptbs_age/>
  242. <ptbs_hometel/>
  243. <ptbs_mpphontel/>
  244. <ptbs_zipcd1/>
  245. <ptbs_zipcd2/>
  246. <ptbs_zipnm/>
  247. <ptbs_detladdr/>
  248. <ptbs_forgeryn/>
  249. <ptbs_recmyn/>
  250. <ptbs_recmerid/>
  251. <ptbs_vipyn/>
  252. <ptbs_religncd/>
  253. <ptbs_remfact/>
  254. <ptbs_inhospyn/>
  255. </ptbs>
  256. </check>
  257. <popup>
  258. <srchcond/>
  259. <pid/>
  260. <hngnm/>
  261. <rrgstno1/>
  262. <rrgstno2/>
  263. <insuflag/>
  264. <srchcnts/>
  265. </popup>
  266. <saveflag/>
  267. </hidden>
  268. <init>
  269. <P0002list>
  270. <P0002>
  271. <cdnm/>
  272. <cdid/>
  273. </P0002>
  274. </P0002list>
  275. </init>
  276. </root>
  277. </instance>
  278. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  279. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/init"/>
  280. <submission id="TRPMC00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/tlpmlist"/>
  281. <submission id="TRPMC00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcv"/>
  282. <submission id="TRPMC00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcvflag"/>
  283. <submission id="TXPMC00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" resultref="/root/hidden/saveflag"/>
  284. <submission id="TRPMI00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" resultref="/root/hidden/check"/>
  285. </model>
  286. <script type="javascript">
  287. <![CDATA[
  288. function fInitialize(initflag)
  289. {
  290. switch(initflag) {
  291. case "0":
  292. model.resetInstanceNode("/root/send/data3");
  293. model.resetInstanceNode("/root/send/data4");
  294. model.resetInstanceNode("/root/send/data5");
  295. model.resetInstanceNode("/root/main");
  296. model.resetInstanceNode("/root/hidden/original");
  297. model.resetInstanceNode("/root/hidden/rcv");
  298. model.resetInstanceNode("/root/hidden/rcvflag");
  299. model.resetInstanceNode("/root/hidden/saveflag");
  300. model.refresh();
  301. break;
  302. case "1":
  303. model.resetInstanceNode("/root/send/data3");
  304. model.resetInstanceNode("/root/send/data4");
  305. model.resetInstanceNode("/root/send/data5");
  306. model.resetInstanceNode("/root/main/ptbs");
  307. model.resetInstanceNode("/root/main/tlpm");
  308. model.resetInstanceNode("/root/main/inpt");
  309. model.resetInstanceNode("/root/main/otpt");
  310. model.resetInstanceNode("/root/hidden/original");
  311. model.resetInstanceNode("/root/hidden/rcv");
  312. model.resetInstanceNode("/root/hidden/rcvflag");
  313. model.resetInstanceNode("/root/hidden/saveflag");
  314. model.refresh();
  315. break;
  316. default:
  317. }
  318. }
  319. function fPatInfoSrch()
  320. {
  321. if (submit("TRPMC00702")) {
  322. var iptbscnt = getNodesetCount("/root/hidden/rcv/ptbs");
  323. var itlpmcnt = getNodesetCount("/root/hidden/rcv/tlpm");
  324. var iinptcnt = getNodesetCount("/root/hidden/rcv/inpt");
  325. var iotptcnt = getNodesetCount("/root/hidden/rcv/otpt");
  326. if (iinptcnt > 0) {
  327. copyNodeType("/root/main/inpt","/root/hidden/rcv/inpt","replace");
  328. } else {
  329. if(iotptcnt > 0) {
  330. copyNodeType("/root/main/otpt","/root/hidden/rcv/otpt","replace");
  331. model.setValue("/root/main/inpt/inpt_indd",model.getValue("/root/main/otpt/otpt_orddd"));
  332. model.setValue("/root/main/inpt/inpt_insucd",model.getValue("/root/main/otpt/otpt_insucd"));
  333. model.setValue("/root/main/inpt/inpt_insukind",model.getValue("/root/main/otpt/otpt_insukind"));
  334. model.setValue("/root/main/inpt/inpt_suppkind",model.getValue("/root/main/otpt/otpt_suppkind"));
  335. model.setValue("/root/main/inpt/inpt_medispclid",model.getValue("/root/main/otpt/otpt_orddrid"));
  336. model.setValue("/root/main/inpt/inpt_orddeptcd",model.getValue("/root/main/otpt/otpt_orddeptcd"));
  337. model.setValue("/root/main/inpt/inpt_specordyn",model.getValue("/root/main/otpt/otpt_specordyn"));
  338. } else {
  339. messageBox("환자의 외래,입원 내역이","I004");
  340. model.resetInstanceNode("/root/main/ptbs");
  341. model.resetInstanceNode("/root/main/tlpm");
  342. model.resetInstanceNode("/root/main/inpt");
  343. model.resetInstanceNode("/root/main/otpt");
  344. model.setFocus("ipt_pid");
  345. model.refresh();
  346. return false;
  347. }
  348. }
  349. if (iptbscnt > 0) {
  350. copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
  351. } else {
  352. messageBox("환자인적이","I004");
  353. model.resetInstanceNode("/root/main/ptbs");
  354. model.resetInstanceNode("/root/main/tlpm");
  355. model.resetInstanceNode("/root/main/inpt");
  356. model.resetInstanceNode("/root/main/otpt");
  357. model.setFocus("ipt_pid");
  358. model.refresh();
  359. return false;
  360. }
  361. if (itlpmcnt > 0) {
  362. copyNodeType("/root/main/tlpm","/root/hidden/rcv/tlpm","replace");
  363. copyNodeType("/root/hidden/original","/root/hidden/rcv","replace");
  364. } else {
  365. model.resetInstanceNode("/root/main/tlpm");
  366. }
  367. model.refresh();
  368. }
  369. }
  370. function fRrgstNo1Veri()
  371. {
  372. var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
  373. if (ptbs_rrgstno1 != null && ptbs_rrgstno1 != "" && ptbs_rrgstno1 != " " && ptbs_rrgstno1 != "-")
  374. {
  375. if (ptbs_rrgstno1.length != 6)
  376. {
  377. messageBox("주민번호1은 6자리여야 합니다!","E999","");
  378. model.setFocus("ptbs_rrgstno1");
  379. model.refresh();
  380. return false;
  381. }
  382. if (ptbs_rrgstno1.isNumber() != true)
  383. {
  384. messageBox("주민번호1은 숫자형태로 입력되어야 합니다!","E999","");
  385. model.setFocus("ptbs_rrgstno1");
  386. model.refresh();
  387. return false;
  388. }
  389. }
  390. else
  391. {
  392. messageBox("주민번호1은 6자리여야 합니다!","E999","");
  393. model.setFocus("ptbs_rrgstno1");
  394. model.refresh();
  395. return false;
  396. }
  397. }
  398. function fRrgstNo2Veri()
  399. {
  400. var ptbs_brthdd;
  401. var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
  402. var ptbs_rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
  403. if (ptbs_rrgstno1.length != 6)
  404. {
  405. messageBox("환자주민번호1은 6자리입니다!","E999","");
  406. model.setFocus("ipt_rrgstno1");
  407. return false;
  408. }
  409. if (ptbs_rrgstno2.length != 7)
  410. {
  411. messageBox("환자주민번호2은 7자리입니다!","E999","");
  412. model.setFocus("ipt_rrgstno2");
  413. return false;
  414. }
  415. var gubn = ptbs_rrgstno2.substr(0,1);
  416. switch(gubn){
  417. case '1' :
  418. case '2' :
  419. case '5' :
  420. case '6' :
  421. ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
  422. break;
  423. case '3' :
  424. case '4' :
  425. case '7' :
  426. case '8' :
  427. ptbs_brthdd = '20'.concat(ptbs_rrgstno1);
  428. break;
  429. case '9' :
  430. case '0' :
  431. ptbs_brthdd = '18'.concat(ptbs_rrgstno1);
  432. break;
  433. default :
  434. ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
  435. break;
  436. }
  437. model.setValue("/root/main/ptbs/ptbs_brthdd",ptbs_brthdd);
  438. if (isValidDateTime(ptbs_brthdd, "YYYYMMDD") == false)
  439. {
  440. messageBox("주민번호 앞6자리 형식오류입니다. 올바른 일자형태로 입력하십시요!","E999","");
  441. model.setValue("/root/main/ptbs/ptbs_rrgstno1","");
  442. model.setValue("/root/main/ptbs/ptbs_rrgstno2","");
  443. model.setValue("/root/main/ptbs/ptbs_brthdd","");
  444. model.refresh();
  445. return false;
  446. }
  447. /*
  448. var ptbs_sex = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
  449. model.setValue("/root/main/ptbs/ptbs_sex",getGender(ptbs_sex));
  450. var ptbs_age = ptbs_rrgstno1;
  451. model.setValue("/root/main/ptbs/ptbs_age",getFullAge(model.getValue("/root/main/ptbs/ptbs_brthdd")));
  452. model.refresh();
  453. if (isResidentNo(ptbs_age) == false)
  454. {
  455. messageBox("유효하지 않은 주민번호입니다!","E999","");
  456. return false;
  457. }
  458. */
  459. }
  460. function fHngNmVeri(gubn)
  461. {
  462. var ptbs_hngnm;
  463. if (gubn == "xforms-next") ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
  464. else if (gubn == "onkeypress" || gubn == "onkeyup")
  465. {
  466. ptbs_hngnm = (ipt_hngnm.currentText).toString();
  467. }
  468. //한글 한글자를 그냥 길이1로 계산
  469. if (eval((ptbs_hngnm.length).toString()) < 2)
  470. {
  471. messageBox("환자성명은 2글자 이상되어야 합니다!","E999","");
  472. model.setFocus("ipt_hngnm");
  473. return false;
  474. }
  475. }
  476. function fChangeCheck()
  477. {
  478. var tlpm_flag;
  479. var ins = document.models( 0 ).instances( 0 );
  480. var h_tlpm = ins.selectSingleNode("/root/hidden/original/tlpm");
  481. var o_tlpm = ins.selectSingleNode("/root/main/tlpm");
  482. // model.resetInstanceNode("/root/send/s_ptbs");
  483. if (h_tlpm == null) {
  484. tlpm_flag = null; // 데이터가 없으면 인스턴스 노드가 없다.
  485. } else if (o_tlpm == null) {
  486. tlpm_flag = null;
  487. } else if (h_tlpm.xml == o_tlpm.xml) {
  488. tlpm_flag = null;
  489. messageBox("변경사항이","I004");
  490. return false;
  491. } else if (h_tlpm.xml != o_tlpm.xml){
  492. tlpm_flag = 'u'
  493. model.setValue("/root/main/tlpm/tlpm_status",tlpm_flag);
  494. copyNodeType("/root/send/data5/s_tlpm","/root/main/tlpm","replace");
  495. return true;
  496. }
  497. }
  498. ]]>
  499. </script>
  500. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  501. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  502. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  503. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  504. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  505. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  506. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  507. <script type="javascript" ev:event="xforms-ready">
  508. <![CDATA[
  509. zbcfGetCodeList(new Array("P0002"),new Array("/root/init/P0002list"));
  510. submit("TRPMI00106");
  511. var stodate = model.getValue("/root/hidden/init/flag/prestdd");
  512. model.setValue("/root/send/data1/fromdd",stodate.substr(0,8));
  513. model.setValue("/root/send/data1/todd",stodate.substr(0,8));
  514. model.setValue("/root/send/data1/ddflag","1");
  515. model.refresh();
  516. ]]>
  517. </script>
  518. </xhtml:head>
  519. <xhtml:body guideline="1,1194;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  520. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  521. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:300px; height:13px; ">행려환자관리</caption>
  522. </group>
  523. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  524. <line id="line10" class="line_2" style="x1:0px; y1:152px; x2:1194px; y2:152px; "/>
  525. <line id="line4" class="line_3" style="x1:0px; y1:100px; x2:1194px; y2:100px; "/>
  526. <line id="line3" class="line_2" style="x1:0px; y1:76px; x2:1194px; y2:76px; "/>
  527. <line id="line2" class="line_2" style="x1:0px; y1:52px; x2:1194px; y2:52px; "/>
  528. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:170px; height:13px; ">인적사항</caption>
  529. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  530. <input id="input15" ref="/root/main/ptbs/ptbs_hometel" class="input_default" style="left:327px; top:55px; width:115px; height:19px; "/>
  531. <input id="input16" ref="/root/main/ptbs/ptbs_zipnm" class="input_default" style="left:177px; top:79px; width:170px; height:19px; "/>
  532. <caption id="caption10" class="cell_1" style="left:1023px; top:30px; width:78px; height:23px; vertical-align:middle; ">입원경로</caption>
  533. <caption id="caption11" class="cell_1" style="left:0px; top:54px; width:80px; height:23px; vertical-align:middle; ">성명[한글]</caption>
  534. <caption id="caption12" class="cell_1" style="left:1023px; top:78px; width:78px; height:23px; vertical-align:middle; ">조합기호</caption>
  535. <caption id="caption14" class="cell_1" style="left:206px; top:54px; width:118px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
  536. <caption id="caption15" class="cell_1" style="left:563px; top:78px; width:87px; height:23px; vertical-align:middle; ">보험유형</caption>
  537. <caption id="caption7" class="cell_1" style="left:0px; top:30px; width:80px; height:23px; vertical-align:middle; ">환자번호</caption>
  538. <caption id="caption8" class="cell_1" style="left:206px; top:30px; width:118px; height:23px; vertical-align:middle; ">주민번호/성별/나이</caption>
  539. <input id="input1" ref="/root/main/ptbs/ptbs_mpphontel" class="input_default" style="left:445px; top:55px; width:115px; height:19px; "/>
  540. <input id="input3" ref="/root/main/ptbs/ptbs_sex" class="input_default" style="left:491px; top:31px; width:33px; height:19px; "/>
  541. <input id="input4" ref="/root/main/ptbs/ptbs_age" class="input_default" style="left:527px; top:31px; width:33px; height:19px; "/>
  542. <caption id="caption5" class="cell_1" style="left:0px; top:78px; width:80px; height:23px; vertical-align:middle; ">주소</caption>
  543. <input id="input9" ref="/root/main/ptbs/ptbs_zipcd1" class="input_default" style="left:83px; top:79px; width:33px; height:19px; "/>
  544. <input id="input10" ref="/root/main/ptbs/ptbs_zipcd2" class="input_default" style="left:119px; top:79px; width:33px; height:19px; "/>
  545. <input id="input14" ref="/root/main/ptbs/ptbs_detladdr" class="input_default" style="left:350px; top:79px; width:210px; height:19px; "/>
  546. <caption id="caption17" class="cell_1" style="left:1023px; top:54px; width:78px; height:23px; vertical-align:middle; ">선택진료</caption>
  547. <caption id="caption3" class="cell_1" style="left:563px; top:54px; width:87px; height:23px; vertical-align:middle; ">전문의/주치의</caption>
  548. <caption id="caption19" class="cell_1" style="left:206px; top:130px; width:90px; height:23px; vertical-align:middle; ">치료기간</caption>
  549. <caption id="caption20" class="cell_1" style="left:563px; top:30px; width:87px; height:23px; vertical-align:middle; ">진료과</caption>
  550. <caption id="caption22" class="tit_2" style="left:6px; top:210px; width:170px; height:13px; ">관리내역</caption>
  551. <line id="line5" class="line_1" style="x1:0px; y1:225px; x2:1194px; y2:225px; "/>
  552. <textarea id="textarea2" ref="/root/main/tlpm/tlpm_mngtcnts" navindex="14" style="left:0px; top:230px; width:1194px; height:77px; "/>
  553. <caption id="caption23" class="tit_2" style="left:5px; top:319px; width:214px; height:13px; ">행려환자 의료급여증 발급 대상자</caption>
  554. <line id="line7" class="line_1" style="x1:0px; y1:334px; x2:1194px; y2:334px; "/>
  555. <caption id="caption25" class="cell_1" style="left:206px; top:154px; width:90px; height:23px; vertical-align:middle; ">행려번호</caption>
  556. <input id="input26" ref="/root/main/tlpm/tlpm_travno" class="input_default" navindex="11" format="999999-9999999" style="left:299px; top:155px; width:213px; height:19px; "/>
  557. <caption id="caption28" class="tit_2" style="left:5px; top:110px; width:170px; height:13px; ">등록내역</caption>
  558. <line id="line8" class="line_1" style="x1:0px; y1:125px; x2:1194px; y2:125px; "/>
  559. <caption id="caption21" class="cell_1" style="left:515px; top:130px; width:80px; height:23px; vertical-align:middle; ">의뢰기관명</caption>
  560. <input id="input25" ref="/root/main/tlpm/tlpm_arvdd" class="input_default" navindex="5" inputtype="date" style="left:83px; top:131px; width:120px; height:19px; "/>
  561. <input id="input27" ref="/root/main/tlpm/tlpm_curetermfromdd" class="input_default" navindex="6" inputtype="date" style="left:299px; top:131px; width:97px; height:19px; "/>
  562. <input id="input29" ref="/root/main/tlpm/tlpm_curetermtodd" class="input_default" navindex="7" inputtype="date" style="left:415px; top:131px; width:97px; height:19px; "/>
  563. <caption id="caption29" class="cell_1" style="left:515px; top:154px; width:80px; height:23px; vertical-align:middle; ">의뢰일자</caption>
  564. <input id="input24" ref="/root/main/tlpm/tlpm_issdd" class="input_default" navindex="10" inputtype="date" style="left:83px; top:155px; width:120px; height:19px; "/>
  565. <input id="input30" ref="/root/main/tlpm/tlpm_reqdd" class="input_default" navindex="13" inputtype="date" style="left:598px; top:155px; width:113px; height:19px; "/>
  566. <caption id="caption30" class="cell_1" style="left:714px; top:154px; width:80px; height:23px; vertical-align:middle; ">발견장소</caption>
  567. <input id="input31" ref="/root/main/tlpm/tlpm_discvplce" class="input_default" navindex="9" style="left:797px; top:155px; width:286px; height:19px; "/>
  568. <caption id="caption31" class="cell_1" style="left:714px; top:130px; width:80px; height:23px; vertical-align:middle; ">보호기관명</caption>
  569. <caption id="caption32" class="search_no_b" style="left:399px; top:132px; width:12px; height:17px; ">~</caption>
  570. <caption id="caption34" class="cell_1" style="left:0px; top:130px; width:80px; height:23px; vertical-align:middle; ">도착일자</caption>
  571. <caption id="caption35" class="cell_1" style="left:0px; top:154px; width:80px; height:23px; vertical-align:middle; ">발급일자</caption>
  572. <caption id="caption36" class="cell_1" style="left:831px; top:30px; width:88px; height:23px; vertical-align:middle; ">외래/입원일자</caption>
  573. <caption id="caption37" class="cell_1" style="left:831px; top:54px; width:88px; height:23px; vertical-align:middle; ">퇴원일자</caption>
  574. <button id="button10" class="btn2_letter2" style="left:1152px; top:314px; width:42px; height:19px; ">
  575. <caption>출력</caption>
  576. <script type="javascript" ev:event="DOMActivate">
  577. <![CDATA[
  578. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  579. if (fileName != "")
  580. {
  581. grd_travpatlist.saveExcel(fileName, "SheetName", true, true, "", "");
  582. }
  583. window.exec(fileName);
  584. ]]>
  585. </script>
  586. </button>
  587. <line id="line9" class="line_3" style="x1:0px; y1:309px; x2:1194px; y2:309px; "/>
  588. <caption id="caption16" style="left:450px; top:316px; width:15px; height:11px; vertical-align:middle; ">~</caption>
  589. <input id="input35" ref="/root/send/data1/fromdd" class="input_default" inputtype="date" style="left:342px; top:313px; width:105px; height:19px; "/>
  590. <input id="input36" ref="/root/send/data1/todd" class="input_default" inputtype="date" style="left:465px; top:313px; width:105px; height:19px; "/>
  591. <button id="button9" class="btn5_letter2" style="left:1107px; top:314px; width:42px; height:19px; ">
  592. <caption>조회</caption>
  593. <script type="javascript" ev:event="DOMActivate">
  594. <![CDATA[
  595. submit("TRPMC00701");
  596. ]]>
  597. </script>
  598. </button>
  599. <line id="line11" class="line_3" style="x1:0px; y1:200px; x2:1194px; y2:200px; "/>
  600. <input id="input7" ref="/root/main/inpt/inpt_insucd" disabled="true" style="left:1104px; top:79px; width:90px; height:19px; "/>
  601. <select1 id="cmb_orddeptcd" ref="/root/main/inpt/inpt_orddeptcd" disabled="true" appearance="minimal" style="left:653px; top:31px; width:175px; height:19px; ">
  602. <choices>
  603. <itemset nodeset="/root/hidden/init/orddeptcd">
  604. <label ref="nm"/>
  605. <value ref="cd"/>
  606. </itemset>
  607. </choices>
  608. </select1>
  609. <select1 id="cmb_orddrid" ref="/root/main/inpt/inpt_medispclid" disabled="true" appearance="minimal" style="left:653px; top:55px; width:86px; height:19px; ">
  610. <choices>
  611. <itemset nodeset="/root/hidden/init/orddrid">
  612. <label ref="nm"/>
  613. <value ref="cd"/>
  614. </itemset>
  615. </choices>
  616. </select1>
  617. <select1 id="cmb_atdoctid" ref="/root/main/inpt/inpt_atdoctid" disabled="true" appearance="minimal" style="left:742px; top:55px; width:86px; height:19px; ">
  618. <choices>
  619. <itemset nodeset="/root/hidden/init/orddrid">
  620. <label ref="nm"/>
  621. <value ref="cd"/>
  622. </itemset>
  623. </choices>
  624. </select1>
  625. <select1 id="cmb_insukind" ref="/root/main/inpt/inpt_insukind" class="combo_default" disabled="true" appearance="minimal" style="left:653px; top:79px; width:175px; height:19px; ">
  626. <choices>
  627. <itemset nodeset="/root/hidden/init/insukind">
  628. <label ref="nm"/>
  629. <value ref="cd"/>
  630. </itemset>
  631. </choices>
  632. </select1>
  633. <input id="ipt_indd" ref="/root/main/inpt/inpt_indd" class="input_default" disabled="true" inputtype="date" style="left:922px; top:31px; width:98px; height:19px; "/>
  634. <input id="ipt_dschdd" ref="/root/main/inpt/inpt_dschdd" class="input_default" disabled="true" inputtype="date" style="left:922px; top:55px; width:98px; height:19px; "/>
  635. <select1 id="cmb_inpath" ref="/root/main/inpt/inpt_inpath" disabled="true" appearance="minimal" style="left:1104px; top:31px; width:90px; height:19px; ">
  636. <choices>
  637. <itemset nodeset="/root/init/P0002list/P0002">
  638. <label ref="cdnm"/>
  639. <value ref="cdid"/>
  640. </itemset>
  641. </choices>
  642. </select1>
  643. <select1 id="rdo_specordyn" ref="/root/main/inpt/inpt_specordyn" disabled="true" appearance="full" cols="2" overflow="visible" style="left:1105px; top:57px; width:85px; height:15px; border-style:none; ">
  644. <choices>
  645. <item>
  646. <label>Yes</label>
  647. <value>Y</value>
  648. </item>
  649. <item>
  650. <label>No</label>
  651. <value>N</value>
  652. </item>
  653. </choices>
  654. </select1>
  655. <input id="ipt_pid" ref="/root/main/ptbs/ptbs_pid" class="input_s_essential" navindex="1" maxlength="10" style="left:83px; top:31px; width:120px; height:19px; ">
  656. <script type="javascript" ev:event="onkeypress">
  657. <![CDATA[
  658. if (event.keyCode=='13') {
  659. //조회전 클리어..
  660. model.resetInstanceNode("/root/send/data3");
  661. model.resetInstanceNode("/root/send/data4");
  662. model.resetInstanceNode("/root/send/data5");
  663. model.setValue("/root/main/ptbs/ptbs_pid",ipt_pid.currentText);
  664. model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  665. //환자인적조회 팝업 띄울때 필요한 값을 넣는다.
  666. model.setValue("/root/send/data4/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  667. model.setValue("/root/send/data4/srchcond","1");
  668. fPatInfoSrch();
  669. //
  670. }
  671. ]]>
  672. </script>
  673. </input>
  674. <datagrid id="grd_travpatlist" nodeset="/root/main/tlpmlist/grdtravpatlist" caption="도착일자^등록번호^행려번호^성명^나이^진료과^구분^의뢰기관명^보호기관명^의뢰일자^발급일자^발견장소^입원일자" colsep="^" colwidth="91, 97, 108, 92, 43, 113, 87, 121, 121, 83, 85, 151, 100" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:339px; width:1194px; height:390px; ">
  675. <col disabled="true" ref="tlpm_arvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  676. <col disabled="true" ref="tlpm_pid" style="text-align:center; "/>
  677. <col disabled="true" ref="tlpm_travno" style="text-align:center; "/>
  678. <col disabled="true" ref="hngnm" style="text-align:center; "/>
  679. <col disabled="true" ref="age" style="text-align:center; "/>
  680. <col ref="orddeptcd" type="combo">
  681. <choices>
  682. <itemset nodeset="/root/hidden/init/orddeptcd">
  683. <label ref="nm"/>
  684. <value ref="cd"/>
  685. </itemset>
  686. </choices>
  687. </col>
  688. <col disabled="true" style="text-align:center; "/>
  689. <col disabled="true" ref="tlpm_reqinstnmcd" style="text-align:center; "/>
  690. <col disabled="true" ref="tlpm_procinsnmcd" style="text-align:center; "/>
  691. <col disabled="true" ref="tlpm_reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  692. <col disabled="true" ref="tlpm_issdd" format="yyyy-mm-dd" style="text-align:center; "/>
  693. <col disabled="true" ref="tlpm_discvplce"/>
  694. <col disabled="true" ref="tlpm_indd"/>
  695. <script type="javascript" ev:event="ondblclick">
  696. <![CDATA[
  697. model.resetInstanceNode("/root/send/data3");
  698. var cur_row = grd_travpatlist.row;
  699. model.setValue("/root/send/data3/pid",model.getValue("/root/main/tlpmlist/grdtravpatlist["+ cur_row +"]/tlpm_pid"));
  700. model.setValue("/root/send/data3/indd",model.getValue("/root/main/tlpmlist/grdtravpatlist["+ cur_row +"]/tlpm_indd"));
  701. if (submit("TRPMC00702")) {
  702. copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
  703. copyNodeType("/root/main/tlpm","/root/hidden/rcv/tlpm","replace");
  704. copyNodeType("/root/main/inpt","/root/hidden/rcv/inpt","replace");
  705. copyNodeType("/root/hidden/original","/root/hidden/rcv","replace");
  706. model.refresh();
  707. }
  708. ]]>
  709. </script>
  710. </datagrid>
  711. <caption id="caption2" class="cell_1" style="left:831px; top:78px; width:88px; height:23px; vertical-align:middle; ">보조유형</caption>
  712. <select1 id="combo2" ref="/root/main/inpt/inpt_suppkind" class="combo_default" disabled="true" appearance="minimal" style="left:922px; top:79px; width:98px; height:19px; ">
  713. <choices>
  714. <itemset nodeset="/root/hidden/init/suppkind">
  715. <label ref="nm"/>
  716. <value ref="cd"/>
  717. </itemset>
  718. </choices>
  719. </select1>
  720. <input id="input2" ref="/root/main/ptbs/ptbs_zipcdseq" style="left:155px; top:79px; width:19px; height:19px; "/>
  721. <input id="ipt_hngnm" ref="/root/main/ptbs/ptbs_hngnm" class="input_s_essential" navindex="2" style="left:83px; top:55px; width:120px; height:19px; ">
  722. <script type="javascript" ev:event="onkeypress">
  723. <![CDATA[
  724. if (event.keyCode=='13') {
  725. if (fHngNmVeri("onkeypress") == false) return;
  726. //조회전 클리어..
  727. model.resetInstanceNode("/root/send/data3");
  728. model.resetInstanceNode("/root/send/data4");
  729. model.resetInstanceNode("/root/send/data5");
  730. model.resetInstanceNode("/root/send/data6");
  731. model.setValue("/root/main/ptbs/ptbs_hngnm",ipt_hngnm.currentText);
  732. model.setValue("/root/send/data6/hngnm",model.getValue("/root/main/ptbs/ptbs_hngnm"));
  733. model.setValue("/root/send/data6/mode","1");
  734. submit("TRPMI00107");
  735. var ptbs_chkcnt = getNodesetCount("/root/hidden/check/ptbs");
  736. if (ptbs_chkcnt > 0) {
  737. //ptbs의 자료가 한개이상일 경우 팝업을 띄워준다.
  738. if (ptbs_chkcnt > 1) {
  739. model.setValue("/root/send/data4/hngnm",model.getValue("/root/main/ptbs/ptbs_hngnm"));
  740. model.setValue("/root/send/data4/srchcond","2");
  741. modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
  742. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  743. model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  744. model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  745. fPatInfoSrch();
  746. } else {
  747. return false;
  748. }
  749. } else {
  750. model.resetInstanceNode("/root/send/data3");
  751. model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/hidden/check/ptbs/ptbs_pid"));
  752. model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  753. fPatInfoSrch();
  754. }
  755. } else {
  756. messageBox("환자인적이","I004");
  757. model.resetInstanceNode("/root/main/ptbs");
  758. model.resetInstanceNode("/root/main/tlpm");
  759. model.resetInstanceNode("/root/main/inpt");
  760. model.refresh();
  761. return false;
  762. }
  763. }
  764. ]]>
  765. </script>
  766. </input>
  767. <input id="ipt_rrgstno1" ref="/root/main/ptbs/ptbs_rrgstno1" class="input_s_essential" navindex="3" style="left:327px; top:31px; width:78px; height:19px; ">
  768. <script type="javascript" ev:event="xforms-next">
  769. <![CDATA[
  770. if (fRrgstNo1Veri() == false) return;
  771. ]]>
  772. </script>
  773. <script type="javascript" ev:event="onkeypress">
  774. <![CDATA[
  775. if (event.keyCode == "13")
  776. {
  777. setInputNodeCurText();
  778. if (fRrgstNo1Veri() == false) return;
  779. }
  780. ]]>
  781. </script>
  782. </input>
  783. <input id="ipt_rrgstno2" ref="/root/main/ptbs/ptbs_rrgstno2" class="input_s_essential" navindex="4" style="left:408px; top:31px; width:80px; height:19px; ">
  784. <script type="javascript" ev:event="xforms-next">
  785. <![CDATA[
  786. if (fRrgstNo2Veri() == false) return;
  787. ]]>
  788. </script>
  789. <script type="javascript" ev:event="onkeypress">
  790. <![CDATA[
  791. if (event.keyCode == "13")
  792. {
  793. setInputNodeCurText();
  794. if (fRrgstNo2Veri() == false) return;
  795. model.resetInstanceNode("/root/send/data3");
  796. model.resetInstanceNode("/root/send/data4");
  797. model.resetInstanceNode("/root/send/data5");
  798. model.resetInstanceNode("/root/send/data6");
  799. model.setValue("/root/main/ptbs/ptbs_rrgstno1",ipt_rrgstno1.currentText);
  800. model.setValue("/root/main/ptbs/ptbs_rrgstno2",ipt_rrgstno2.currentText);
  801. model.setValue("/root/send/data6/rrgstno1",model.getValue("/root/main/ptbs/ptbs_rrgstno1"));
  802. model.setValue("/root/send/data6/rrgstno2",model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
  803. model.setValue("/root/send/data6/mode","1");
  804. submit("TRPMI00107");
  805. var ptbs_chkcnt = getNodesetCount("/root/hidden/check/ptbs");
  806. if (ptbs_chkcnt > 0) {
  807. //ptbs의 자료가 한개이상일 경우 팝업을 띄워준다.
  808. if (ptbs_chkcnt > 1) {
  809. model.setValue("/root/send/data4/rrgstno1",model.getValue("/root/main/ptbs/ptbs_rrgstno1"));
  810. model.setValue("/root/send/data4/rrgstno2",model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
  811. model.setValue("/root/send/data4/srchcond","3");
  812. modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
  813. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  814. model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  815. model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  816. fPatInfoSrch();
  817. } else {
  818. return false;
  819. }
  820. } else {
  821. model.resetInstanceNode("/root/send/data3");
  822. model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/hidden/check/ptbs/ptbs_pid"));
  823. model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  824. fPatInfoSrch();
  825. }
  826. } else {
  827. messageBox("환자인적이","I004");
  828. model.resetInstanceNode("/root/main/ptbs");
  829. model.resetInstanceNode("/root/main/tlpm");
  830. model.resetInstanceNode("/root/main/inpt");
  831. model.refresh();
  832. return false;
  833. }
  834. }
  835. ]]>
  836. </script>
  837. </input>
  838. <input id="input5" ref="/root/main/tlpm/tlpm_procinsnm" style="left:797px; top:131px; width:135px; height:19px; "/>
  839. <button id="btn_insucd_search" class="icon_search" style="left:935px; top:134px; width:16px; height:16px; ">
  840. <caption/>
  841. <script type="javascript" ev:event="DOMActivate">
  842. <![CDATA[
  843. var tlpm_procinsnm = model.getValue("/root/main/tlpm/tlpm_procinsnm");
  844. model.setValue("/root/hidden/popup/insuflag","2");
  845. model.setValue("/root/hidden/popup/srchcnts",tlpm_procinsnm);
  846. // if (tlpm_procinsnm == null || tlpm_procinsnm == "" || tlpm_procinsnm == " " || tlpm_procinsnm == "-") {
  847. //
  848. // } else {
  849. // model.setValue("/root/hidden/popup/insuflag","2");
  850. // model.setValue("/root/hidden/popup/srchcnts",tlpm_procinsnm);
  851. // }
  852. modal("../../../pam/pamcomnweb/xrw/SPPMB01500", "1","400", "400", "SPPMB01500", "/root/hidden/popup", "/root/send");
  853. if (getParameter("SPPMB01500_RTN") == "N" || getParameter("SPPMB01500_RTN") == "") return;
  854. if (getParameter("SPPMB01500_RTN") == "Y") {
  855. var insucd = getParameter("SPPMB01500_insucd");
  856. var insucdnm = getParameter("SPPMB01500_insucdnm");
  857. model.setValue("/root/main/tlpm/tlpm_procinsnmcd", insucd);
  858. model.setValue("/root/main/tlpm/tlpm_procinsnm", insucdnm);
  859. model.refresh();
  860. }
  861. ]]>
  862. </script>
  863. </button>
  864. <select1 id="combo1" ref="/root/send/data1/ddflag" appearance="minimal" style="left:239px; top:313px; width:100px; height:19px; ">
  865. <choices>
  866. <item>
  867. <label>발급일자</label>
  868. <value>1</value>
  869. </item>
  870. <item>
  871. <label>의뢰일자</label>
  872. <value>2</value>
  873. </item>
  874. </choices>
  875. </select1>
  876. <input id="input6" ref="/root/main/tlpm/tlpm_reqinstnmcd" style="left:598px; top:131px; width:113px; height:19px; "/>
  877. </group>
  878. <group id="group2" style="left:0px; top:757px; width:1195px; height:27px; ">
  879. <button id="button17" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  880. <caption>초기화</caption>
  881. <script type="javascript" ev:event="DOMActivate">
  882. <![CDATA[
  883. fInitialize("0");
  884. ]]>
  885. </script>
  886. </button>
  887. <button id="button4" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
  888. <caption>저장</caption>
  889. <script type="javascript" ev:event="DOMActivate">
  890. <![CDATA[
  891. //기존자료가 존재하는지를 체크한다.
  892. model.resetInstanceNode("/root/send/data3");
  893. model.resetInstanceNode("/root/hidden/rcvflag/flag/chkcount");
  894. var sPid = model.getValue("/root/main/ptbs/ptbs_pid");
  895. var sIndd = model.getValue("/root/main/inpt/inpt_indd");
  896. // 환자조회여부 체크
  897. if (isNull(sPid)) {
  898. messageBox("환자정보가 조회되지", "E007");
  899. return;
  900. }
  901. // 진료내역 존재여부 체크
  902. if (isNull(sIndd)) {
  903. messageBox("진료내역(외래/입원)이 없어서 등록", "E001");
  904. return;
  905. }
  906. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  907. model.setValue("/root/send/data3/indd", model.getValue("/root/main/inpt/inpt_indd"));
  908. submit("TRPMC00703")
  909. var ichkcount = model.getValue("/root/hidden/rcvflag/flag/chkcount");
  910. //데이터 존재 - 컨트롤 값이 변경되었는지 체크하여 변경시 업데이트
  911. if (ichkcount > 0) {
  912. if (fChangeCheck() == true) {
  913. submit("TXPMC00701");
  914. if (model.getValue("/root/hidden/saveflag/itlpmcnt/itlpm_cnt") > 0) {
  915. messageBox("변경","I001");
  916. fInitialize("1");
  917. }
  918. }
  919. //데이터 미존재 - 신규저장
  920. } else {
  921. model.setValue("/root/main/tlpm/tlpm_pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  922. model.setValue("/root/main/tlpm/tlpm_indd",model.getValue("/root/main/inpt/inpt_indd"));
  923. model.setValue("/root/main/tlpm/tlpm_status","i");
  924. copyNodeType("/root/send/data5/s_tlpm","/root/main/tlpm","replace");
  925. if (submit("TXPMC00701")) {
  926. if (model.getValue("/root/hidden/saveflag/itlpmcnt/itlpm_cnt") > 0) {
  927. messageBox("저장","I001");
  928. fInitialize("1");
  929. }
  930. }
  931. }
  932. ]]>
  933. </script>
  934. </button>
  935. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  936. <button id="button1" class="btn3_letter4" style="left:0px; top:5px; width:110px; height:20px; ">
  937. <caption>재원변경</caption>
  938. <script type="javascript" ev:event="DOMActivate">
  939. <![CDATA[
  940. modal("../../../pam/ipatmngtweb/xrw/SMPMI00400", "1","50", "50", "SMPMI00400", "/root/source", "/root/send");
  941. ]]>
  942. </script>
  943. </button>
  944. </group>
  945. </xhtml:body>
  946. </xhtml:html>