SMPMC00600_긴급진료비지원복지.xrw 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480
  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. <send>
  10. <data1>
  11. <issfromdd/>
  12. <isstodd/>
  13. <refflag/>
  14. <refvalue/>
  15. <clamddyn/>
  16. </data1>
  17. <data3>
  18. <pid/>
  19. <hngnm/>
  20. <srchcond/>
  21. <indd/>
  22. </data3>
  23. <updatedate>
  24. <grdpmcheoac/>
  25. </updatedate>
  26. <data2>
  27. <pid/>
  28. <indd/>
  29. <instcd/>
  30. <status/>
  31. </data2>
  32. <data4>
  33. <s_inpt>
  34. <inpt/>
  35. </s_inpt>
  36. </data4>
  37. <data5>
  38. <sess_posinstcd/>
  39. <ioflag/>
  40. </data5>
  41. <data6>
  42. <cdgrupid/>
  43. </data6>
  44. <data7>
  45. <inpt_pid/>
  46. <inpt_remfact/>
  47. <inpt_instcd/>
  48. </data7>
  49. <search1>
  50. <srchcond/>
  51. <pid/>
  52. <hngnm/>
  53. <rrgstno1/>
  54. <rrgstno2/>
  55. <autoflag/>
  56. </search1>
  57. </send>
  58. <main>
  59. <ptbs>
  60. <ptbs_status/>
  61. <ptbs_pid/>
  62. <ptbs_hngnm/>
  63. <ptbs_rrgstno1/>
  64. <ptbs_rrgstno2/>
  65. <ptbs_sex/>
  66. <ptbs_age/>
  67. <ptbs_hometel/>
  68. <ptbs_mpphontel/>
  69. <ptbs_zipcd1/>
  70. <ptbs_zipcd2/>
  71. <ptbs_zipcdseq/>
  72. <ptbs_zipnm/>
  73. <ptbs_detladdr/>
  74. <ptbs_orddeptcd/>
  75. <ptbs_medispclid/>
  76. <ptbs_atdoctid/>
  77. <ptbs_insukind/>
  78. <ptbs_indd/>
  79. <ptbs_dschdd/>
  80. <ptbs_suppkind/>
  81. <ptbs_specordyn/>
  82. <ptbs_inpath/>
  83. <ptbs_maindiag/>
  84. </ptbs>
  85. <inpt>
  86. <inpt_cntrcnty/>
  87. <inpt_chrgernm/>
  88. <inpt_tel/>
  89. <inpt_faxno/>
  90. <inpt_appernm/>
  91. <inpt_patrela/>
  92. <inpt_appmthd/>
  93. <inpt_limitamt/>
  94. <inpt_fromdd/>
  95. <inpt_todd/>
  96. <inpt_remfact/>
  97. <inpt_mngtcnts/>
  98. <inpt_endflagcd/>
  99. <inpt_fstrgstrid/>
  100. <inpt_fstrgstdt/>
  101. <inpt_lastupdtrid/>
  102. <inpt_lastupdtdt/>
  103. <inpt_instcd/>
  104. </inpt>
  105. <grdpmchlist>
  106. <grdpmcheoac>
  107. <pid/>
  108. <acptdd/>
  109. <clamdd/>
  110. <clamamt/>
  111. <payamt/>
  112. <nopyamt/>
  113. <choiordamt/>
  114. <indd/>
  115. <dschdd/>
  116. <appdd/>
  117. <enddd/>
  118. <rcptamt/>
  119. <rcptdd/>
  120. <clamseqno/>
  121. </grdpmcheoac>
  122. </grdpmchlist>
  123. <grdpmcheoaclist>
  124. <grdpmcheoaclist>
  125. <pid/>
  126. <hngnm/>
  127. <insukind/>
  128. <sex/>
  129. <age/>
  130. <indd/>
  131. <dschdd/>
  132. <orddeptcd/>
  133. <medispclid/>
  134. <clamamt/>
  135. <clamdd/>
  136. <rcptamt/>
  137. <rcptdd/>
  138. <cntrcnty/>
  139. <diagnm/>
  140. </grdpmcheoaclist>
  141. </grdpmcheoaclist>
  142. <patinfo>
  143. <patinfolist/>
  144. </patinfo>
  145. <ugcy_print>
  146. <pat_pid/>
  147. <pat_hngnm/>
  148. <pat_rrgstno/>
  149. <pat_addr/>
  150. <minst_name/>
  151. <minst_prsd/>
  152. <minst_bizmngrgstno/>
  153. <minst_addr/>
  154. <minst_phone/>
  155. <minst_yearfrom/>
  156. <minst_monthfrom/>
  157. <minst_dayfrom/>
  158. <minst_yearto/>
  159. <minst_monthto/>
  160. <minst_dayto/>
  161. <claimamt/>
  162. <bank_name/>
  163. <bank_acount/>
  164. <bank_owner/>
  165. <ctrt_year/>
  166. <ctrt_month/>
  167. <ctrt_day/>
  168. <ctrt_name/>
  169. <ctrt_inst_name/>
  170. <ctrt_inst_prsd/>
  171. <ctrt_to/>
  172. </ugcy_print>
  173. </main>
  174. <hidden>
  175. <original>
  176. <inpt_cntrcnty/>
  177. <inpt_chrgernm/>
  178. <inpt_tel/>
  179. <inpt_faxno/>
  180. <inpt_appernm/>
  181. <inpt_patrela/>
  182. <inpt_appmthd/>
  183. <inpt_mngtcnts/>
  184. <inpt_fstrgstrid/>
  185. <inpt_fstrgstdt/>
  186. <inpt_lastupdtrid/>
  187. <inpt_lastupdtdt/>
  188. <inpt_status/>
  189. </original>
  190. <rcv>
  191. <ptbs>
  192. <ptbs_status/>
  193. <ptbs_pid/>
  194. <ptbs_hngnm/>
  195. <ptbs_rrgstno1/>
  196. <ptbs_rrgstno2/>
  197. <ptbs_sex/>
  198. <ptbs_age/>
  199. <ptbs_hometel/>
  200. <ptbs_mpphontel/>
  201. <ptbs_zipcd1/>
  202. <ptbs_zipcd2/>
  203. <ptbs_zipcdseq/>
  204. <ptbs_zipnm/>
  205. <ptbs_detladdr/>
  206. <ptbs_orddeptcd/>
  207. <ptbs_medispclid/>
  208. <ptbs_atdoctid/>
  209. <ptbs_insukind/>
  210. <ptbs_indd/>
  211. <ptbs_dschdd/>
  212. <ptbs_suppkind/>
  213. <ptbs_specordyn/>
  214. <ptbs_inpath/>
  215. <ptbs_maindiag/>
  216. </ptbs>
  217. <inpt>
  218. <cntrcnty/>
  219. <chrgernm/>
  220. <tel/>
  221. <faxno/>
  222. <appernm/>
  223. <patrela/>
  224. <appmthd/>
  225. <limitamt/>
  226. <fromdd/>
  227. <todd/>
  228. <remfact/>
  229. <mngtcnts/>
  230. <fstrgstrid/>
  231. <fstrgstdt/>
  232. <lastupdtrid/>
  233. <lastupdtdt/>
  234. <instcd/>
  235. <limitamt/>
  236. <fromdd/>
  237. <todd/>
  238. <endflagcd/>
  239. </inpt>
  240. </rcv>
  241. <init>
  242. <disccd>
  243. <cd/>
  244. <nm/>
  245. </disccd>
  246. <insukind>
  247. <cd/>
  248. <nm/>
  249. </insukind>
  250. <suppkind>
  251. <cd/>
  252. <nm/>
  253. <up/>
  254. <io/>
  255. </suppkind>
  256. <orddeptcd>
  257. <cd/>
  258. <nm/>
  259. </orddeptcd>
  260. <orddrid>
  261. <cd/>
  262. <nm/>
  263. <dp/>
  264. <sp/>
  265. </orddrid>
  266. <flag>
  267. <prestdd/>
  268. <mskindflag/>
  269. </flag>
  270. <wardcd>
  271. <cd/>
  272. <nm/>
  273. <of/>
  274. </wardcd>
  275. <roomcd>
  276. <cd/>
  277. <nm/>
  278. <wd/>
  279. </roomcd>
  280. </init>
  281. <rcvflag>
  282. <flag>
  283. <chkcount/>
  284. </flag>
  285. </rcvflag>
  286. <check>
  287. <ptbs>
  288. <chkcount/>
  289. <ptbs_pid/>
  290. </ptbs>
  291. </check>
  292. <tmp/>
  293. <inpt>
  294. </inpt>
  295. <srchdiag>
  296. <selectedrdodiagkind/>
  297. <basedd/>
  298. <diagcd/>
  299. <diagnm/>
  300. <flag/>
  301. </srchdiag>
  302. <hosp>
  303. <hospinfo>
  304. <instcd/>
  305. <todd/>
  306. <fromdd/>
  307. <hospnm/>
  308. <hospgrde/>
  309. <bizmngrgstno/>
  310. <prsdnm/>
  311. <reprtel1/>
  312. <reprtel2/>
  313. <reprfaxno/>
  314. <zipcd1/>
  315. <zipcd2/>
  316. <zipcdseq/>
  317. <detladdr/>
  318. <fulladdr/>
  319. <womediflag/>
  320. <proccorpcd/>
  321. <inducscorpcd/>
  322. <lossinsucorpcd/>
  323. <fstrgstrid/>
  324. <fstrgstdt/>
  325. <lastupdtrid/>
  326. <lastupdtdt/>
  327. <clamprsdnm/>
  328. <clamprsdrrgstno1/>
  329. <clamprsdrrgstno2/>
  330. <clamprsdtel/>
  331. <clamcnfmno/>
  332. <clamagtcd/>
  333. <loginid/>
  334. <password/>
  335. <hospengnm/>
  336. <prsdengnm/>
  337. <engaddr/>
  338. </hospinfo>
  339. </hosp>
  340. <speccode>
  341. <speccodelist>
  342. <cdgrupid/>
  343. <cdid/>
  344. <cdnm/>
  345. <detldesc/>
  346. <dispseq/>
  347. </speccodelist>
  348. </speccode>
  349. <sppiz00400>
  350. <rslt>
  351. <diaghngnm/>
  352. <diagcd/>
  353. <diagengnm/>
  354. <termcd/>
  355. </rslt>
  356. </sppiz00400>
  357. </hidden>
  358. <init>
  359. <P0008list>
  360. <P0008>
  361. <cdnm/>
  362. <cdid/>
  363. </P0008>
  364. </P0008list>
  365. <P0010list>
  366. <P0010>
  367. <cdnm/>
  368. <cdid/>
  369. </P0010>
  370. </P0010list>
  371. <P0002list>
  372. <P0002>
  373. <cdnm/>
  374. <cdid/>
  375. </P0002>
  376. </P0002list>
  377. <P0447list>
  378. <P0447>
  379. <cdnm/>
  380. <cdid/>
  381. </P0447>
  382. </P0447list>
  383. <P0448list>
  384. <P0448>
  385. <cdnm/>
  386. <cdid/>
  387. </P0448>
  388. </P0448list>
  389. </init>
  390. </root>
  391. </instance>
  392. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/init"/>
  393. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" replace="instance" resultref="/root/hidden/init"/>
  394. <submission id="TRPMC00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/tlpmlist"/>
  395. <submission id="TRPMC00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcvflag"/>
  396. <submission id="TXPMC00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5"/>
  397. <submission id="TRPMI00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" resultref="/root/hidden/check"/>
  398. <submission id="TRPMC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcv"/>
  399. <submission id="TRPMC00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/rcvflag"/>
  400. <submission id="TRPMC00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/h_inpt/inpt"/>
  401. <submission id="TRPMC00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedate"/>
  402. <submission id="TRPMC00605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/grdpmchlist"/>
  403. <submission id="TRPMC00606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/grdpmcheoaclist"/>
  404. <submission id="TRPMC00607" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/main/patinfo"/>
  405. <submission id="TRPMC00608" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/rcv"/>
  406. <submission id="TRPMC00609" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/hosp"/>
  407. <submission id="TRPMC00610" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" resultref="/root/hidden/speccode"/>
  408. <submission id="TXPAI02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data7"/>
  409. </model>
  410. <script type="javascript">
  411. <![CDATA[
  412. function fInitialize(initflag)
  413. {
  414. switch(initflag) {
  415. case "0":
  416. model.resetInstanceNode("/root/send/data3");
  417. model.resetInstanceNode("/root/send/data4");
  418. model.resetInstanceNode("/root/send/data5");
  419. model.resetInstanceNode("/root/main");
  420. model.resetInstanceNode("/root/hidden/original");
  421. model.resetInstanceNode("/root/hidden/rcv");
  422. model.resetInstanceNode("/root/hidden/rcvflag");
  423. model.resetInstanceNode("/root/main/grdpmcheoaclist/grdpmcheoaclist");
  424. model.refresh();
  425. break;
  426. case "1":
  427. model.resetInstanceNode("/root/send/data3");
  428. model.resetInstanceNode("/root/send/data4");
  429. model.resetInstanceNode("/root/send/data5");
  430. model.resetInstanceNode("/root/main/ptbs");
  431. model.resetInstanceNode("/root/main/inpt");
  432. model.resetInstanceNode("/root/hidden/original");
  433. model.resetInstanceNode("/root/hidden/rcv");
  434. model.resetInstanceNode("/root/hidden/rcvflag");
  435. model.refresh();
  436. break;
  437. default:
  438. }
  439. }
  440. function fPatInfoSrch()
  441. {
  442. if (submit("TRPMC00601")) {
  443. var iptbscnt = getNodesetCount("/root/hidden/rcv/ptbs");
  444. if (iptbscnt > 0) {
  445. copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
  446. fPmchEoas();
  447. fPmchEoac();
  448. model.refresh();
  449. return false;
  450. } else {
  451. messageBox("환자인적이","I004");
  452. model.resetInstanceNode("/root/main/ptbs");
  453. model.refresh();
  454. return false;
  455. }
  456. }
  457. }
  458. function fPmchEoas()
  459. {
  460. model.setValue("/root/send/data2/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  461. model.setValue("/root/send/data2/indd",model.getValue("/root/main/ptbs/ptbs_indd"));
  462. submit("TRPMC00608")
  463. model.setvalue("/root/main/inpt/inpt_cntrcnty", model.getValue("/root/hidden/rcv/inpt/cntrcnty"));
  464. model.setvalue("/root/main/inpt/inpt_chrgernm", model.getValue("/root/hidden/rcv/inpt/chrgernm"));
  465. model.setvalue("/root/main/inpt/inpt_tel", model.getValue("/root/hidden/rcv/inpt/tel"));
  466. model.setvalue("/root/main/inpt/inpt_faxno", model.getValue("/root/hidden/rcv/inpt/faxno"));
  467. model.setvalue("/root/main/inpt/inpt_appernm", model.getValue("/root/hidden/rcv/inpt/appernm"));
  468. model.setvalue("/root/main/inpt/inpt_patrela", model.getValue("/root/hidden/rcv/inpt/patrela"));
  469. model.setvalue("/root/main/inpt/inpt_appmthd", model.getValue("/root/hidden/rcv/inpt/appmthd"));
  470. model.setvalue("/root/main/inpt/inpt_mngtcnts", model.getValue("/root/hidden/rcv/inpt/mngtcnts"));
  471. model.setvalue("/root/main/inpt/inpt_remfact", model.getValue("/root/hidden/rcv/inpt/remfact"));
  472. model.setvalue("/root/main/inpt/inpt_limitamt", model.getValue("/root/hidden/rcv/inpt/limitamt"));
  473. model.setvalue("/root/main/inpt/inpt_fromdd", model.getValue("/root/hidden/rcv/inpt/fromdd"));
  474. model.setvalue("/root/main/inpt/inpt_todd", model.getValue("/root/hidden/rcv/inpt/todd"));
  475. model.setvalue("/root/main/inpt/inpt_endflagcd", model.getValue("/root/hidden/rcv/inpt/endflagcd"));
  476. model.setvalue("/root/main/inpt/inpt_instcd", model.getValue("/root/hidden/rcv/inpt/instcd"));
  477. }
  478. function fPmchEoac()
  479. {
  480. model.setValue("/root/send/data2/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  481. model.setValue("/root/send/data2/indd",model.getValue("/root/main/ptbs/ptbs_indd"));
  482. submit("TRPMC00605")
  483. }
  484. function fRrgstNo1Veri()
  485. {
  486. var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
  487. if (ptbs_rrgstno1 != null && ptbs_rrgstno1 != "" && ptbs_rrgstno1 != " " && ptbs_rrgstno1 != "-")
  488. {
  489. if (ptbs_rrgstno1.length != 6)
  490. {
  491. messageBox("주민번호1은 6자리여야 합니다!","E999","");
  492. model.setFocus("ptbs_rrgstno1");
  493. model.refresh();
  494. return false;
  495. }
  496. if (ptbs_rrgstno1.isNumber() != true)
  497. {
  498. messageBox("주민번호1은 숫자형태로 입력되어야 합니다!","E999","");
  499. model.setFocus("ptbs_rrgstno1");
  500. model.refresh();
  501. return false;
  502. }
  503. }
  504. else
  505. {
  506. messageBox("주민번호1은 6자리여야 합니다!","E999","");
  507. model.setFocus("ptbs_rrgstno1");
  508. model.refresh();
  509. return false;
  510. }
  511. }
  512. function fHngNmVeri(gubn)
  513. {
  514. var ptbs_hngnm;
  515. if (gubn == "xforms-next") ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
  516. else if (gubn == "onkeypress" || gubn == "onkeyup")
  517. {
  518. ptbs_hngnm = (ipt_hngnm.currentText).toString();
  519. }
  520. //한글 한글자를 그냥 길이1로 계산
  521. if (eval((ptbs_hngnm.length).toString()) < 2)
  522. {
  523. messageBox("환자성명은 2글자 이상되어야 합니다!","E999","");
  524. model.setFocus("ipt_hngnm");
  525. return false;
  526. }
  527. }
  528. function fChangeCheck()
  529. {
  530. var tlpm_flag;
  531. var ins = document.models( 0 ).instances( 0 );
  532. var h_tlpm = ins.selectSingleNode("/root/temp/h_inpt/inpt");
  533. var o_tlpm = ins.selectSingleNode("/root/main/inpt");
  534. // model.resetInstanceNode("/root/send/s_ptbs");
  535. if (h_tlpm == null) {
  536. tlpm_flag = null; // 데이터가 없으면 인스턴스 노드가 없다.
  537. } else if (o_tlpm == null) {
  538. tlpm_flag = null;
  539. } else if (h_tlpm.xml == o_tlpm.xml) {
  540. tlpm_flag = null;
  541. messageBox("변경사항이","I004");
  542. return false;
  543. } else if (h_tlpm.xml != o_tlpm.xml){
  544. tlpm_flag = 'u'
  545. model.setValue("/root/main/inpt/inpt_status",tlpm_flag);
  546. //copyNodeType("/root/send/data5/s_tlpm","/root/main/tlpm","replace");
  547. return true;
  548. }
  549. }
  550. // 2008.05.23 최병진 추가
  551. // 숫자에 3자리마다 ',' 추가
  552. // ex) 123456789 -> 123,456,789
  553. function fGetMoneyTypeNumber(pValue) {
  554. var num = pValue.replace(/(^\s*)|(\s*$)/g, "");;
  555. while((/(-?[0-9]+)([0-9]{3})/).test(num)) {
  556. num = num.replace((/(-?[0-9]+)([0-9]{3})/), "$1,$2");
  557. }
  558. return num;
  559. }
  560. function fChoiValue(choiflag)
  561. {
  562. //전체, 진료과, 환자번호, 환자성명, 청구일, 관할시군구청, 청구액, 입금액, 입금일
  563. model.resetInstanceNode("/root/send/data1/refvalue");
  564. if (choiflag == '0') {
  565. cmb_reforddeptcd.visible = false;
  566. ipt_refinput.visible = false;
  567. ipt_refdate.visible = false;
  568. ipt_refamt.visible = false;
  569. cap_up.visible = false;
  570. } else if (choiflag == '1') {
  571. cmb_reforddeptcd.attribute("left") = "731px";
  572. cmb_reforddeptcd.attribute("top") = "457px";
  573. cmb_reforddeptcd.visible = true;
  574. ipt_refinput.visible = false;
  575. ipt_refdate.visible = false;
  576. ipt_refamt.visible = false;
  577. cap_up.visible = false;
  578. model.setFocus("cmb_reforddeptcd");
  579. } else if (choiflag == '2' || choiflag == '3' || choiflag == '5') {
  580. ipt_refinput.attribute("left") = "731px";
  581. ipt_refinput.attribute("top") = "457px";
  582. cmb_reforddeptcd.visible = false;
  583. ipt_refinput.visible = true;
  584. ipt_refdate.visible = false;
  585. ipt_refamt.visible = false;
  586. cap_up.visible = false;
  587. model.setFocus("ipt_refinput");
  588. } else if (choiflag == '8') {
  589. ipt_refdate.attribute("left") = "731px";
  590. ipt_refdate.attribute("top") = "457px";
  591. cmb_reforddeptcd.visible = false;
  592. ipt_refinput.visible = false;
  593. ipt_refdate.visible = true;
  594. ipt_refamt.visible = false;
  595. cap_up.visible = false;
  596. model.setFocus("ipt_refdate");
  597. } else if (choiflag == '6' || choiflag == '7') {
  598. ipt_refamt.attribute("left") = "731px";
  599. ipt_refamt.attribute("top") = "457px";
  600. cap_up.attribute("left") = "862px";
  601. cap_up.attribute("top") = "460px";
  602. cmb_reforddeptcd.visible = false;
  603. ipt_refinput.visible = false;
  604. ipt_refdate.visible = false;
  605. ipt_refamt.visible = true;
  606. cap_up.visible = true;
  607. model.setFocus("ipt_refamt");
  608. }
  609. }
  610. ]]>
  611. </script>
  612. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  613. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  614. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  615. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  616. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  617. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  618. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  619. <script type="javascript" ev:event="xforms-ready">
  620. <![CDATA[
  621. zbcfGetCodeList(new Array("P0008"),new Array("/root/init/P0008list"));
  622. zbcfGetCodeList(new Array("P0010"),new Array("/root/init/P0010list"));
  623. zbcfGetCodeList(new Array("P0002"),new Array("/root/init/P0002list"));
  624. zbcfGetCodeList(new Array("P0447"),new Array("/root/init/P0447list"));
  625. zbcfGetCodeList(new Array("P0448"),new Array("/root/init/P0448list"));
  626. model.setValue("/root/send/data5/sess_posinstcd", getUserInfo("posinstcd"));
  627. model.setValue("/root/send/data5/ioflag","I");
  628. // 공통코드조회
  629. submit("TRPMI00106");
  630. // 원무코드조회(P0009) 은행정보
  631. model.setValue("/root/send/data6/cdgrupid", "P0009");
  632. submit("TRPMC00610");
  633. /*
  634. var stodate = model.getValue("/root/hidden/init/flag/prestdd");
  635. model.setValue("/root/send/data1/issfromdd",stodate.substr(0,8));
  636. model.setValue("/root/send/data1/isstodd",stodate.substr(0,8));
  637. */
  638. model.removeNodeset("/root/main/grdpmchlist/grdpmcheoac");
  639. //model.resetInstanceNode("/root/main/item1/mchrginfo");
  640. model.setValue("/root/send/data1/issfromdd", getCurrentDate());
  641. model.setValue("/root/send/data1/isstodd", getCurrentDate());
  642. model.refresh();
  643. ]]>
  644. </script>
  645. </xhtml:head>
  646. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  647. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  648. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:100px; height:13px; font-family:돋움; vertical-align:middle; ">긴급복지관리</caption>
  649. </group>
  650. <group id="group3" class="line_3" style="left:0px; top:13px; width:1195px; height:744px; ">
  651. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:180px; top:455px; width:790px; height:24px; "/>
  652. <caption id="caption6" class="cell_1" style="left:839px; top:78px; width:80px; height:23px; vertical-align:middle; ">주상병</caption>
  653. <line id="line14" class="line_2" style="x1:0px; y1:161px; x2:1095px; y2:161px; "/>
  654. <line id="line10" class="line_2" style="x1:0px; y1:52px; x2:1194px; y2:52px; "/>
  655. <line id="line8" class="line_2" style="x1:0px; y1:76px; x2:1194px; y2:76px; "/>
  656. <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:170px; height:13px; font-family:돋움; vertical-align:middle; ">인적사항</caption>
  657. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  658. <caption id="caption28" class="tit_2" style="left:5px; top:119px; width:170px; height:13px; ">등록사항</caption>
  659. <line id="line3" class="line_1" style="x1:0px; y1:134px; x2:1194px; y2:134px; "/>
  660. <caption id="caption22" class="cell_1" style="left:665px; top:163px; width:80px; height:23px; text-align:left; vertical-align:middle; ">담당자</caption>
  661. <caption id="caption23" class="cell_1" style="left:0px; top:139px; width:88px; height:23px; text-align:left; vertical-align:middle; ">관할시군구청</caption>
  662. <caption id="caption24" class="cell_1" style="left:447px; top:163px; width:80px; height:23px; vertical-align:middle; ">관 계</caption>
  663. <caption id="caption25" class="cell_1" style="left:0px; top:163px; width:88px; height:23px; text-align:left; vertical-align:middle; ">신청인</caption>
  664. <input id="ipt_appernm" ref="/root/main/inpt/inpt_appernm" class="input_default" navindex="6" imemode="hangul" style="left:91px; top:164px; width:129px; height:19px; "/>
  665. <input id="ipt_cntrcnty" ref="/root/main/inpt/inpt_cntrcnty" class="input_default" navindex="5" imemode="hangul" style="left:91px; top:140px; width:129px; height:19px; "/>
  666. <caption id="caption26" class="cell_1" style="left:883px; top:139px; width:80px; height:23px; text-align:left; vertical-align:middle; ">전화번호</caption>
  667. <caption id="caption27" class="cell_1" style="left:223px; top:163px; width:88px; height:23px; vertical-align:middle; ">신청방법</caption>
  668. <input id="ipt_chrgernm" ref="/root/main/inpt/inpt_chrgernm" class="input_default" navindex="9" imemode="hangul" style="left:748px; top:164px; width:131px; height:19px; "/>
  669. <input id="ipt_tel" ref="/root/main/inpt/inpt_tel" class="input_default" navindex="10" style="left:966px; top:140px; width:129px; height:19px; "/>
  670. <caption id="caption29" class="cell_1" style="left:883px; top:163px; width:80px; height:23px; text-align:left; vertical-align:middle; ">팩스번호</caption>
  671. <input id="ipt_faxno" ref="/root/main/inpt/inpt_faxno" class="input_default" navindex="11" style="left:966px; top:164px; width:129px; height:19px; "/>
  672. <caption id="caption42" class="tit_2" style="left:2px; top:283px; width:170px; height:13px; ">긴급지원 청구내역</caption>
  673. <line id="line7" class="line_1" style="x1:0px; y1:219px; x2:598px; y2:219px; "/>
  674. <caption id="caption48" class="tit_2" style="left:5px; top:203px; width:170px; height:14px; ">퇴원참고사항</caption>
  675. <textarea id="tar_mngtcnts" ref="/root/main/inpt/inpt_remfact" imemode="hangul" style="left:0px; top:223px; width:598px; height:43px; "/>
  676. <line id="line9" class="line_1" style="x1:0px; y1:298px; x2:1194px; y2:298px; "/>
  677. <line id="line18" class="line_1" style="x1:0px; y1:480px; x2:1194px; y2:480px; "/>
  678. <caption id="caption53" class="tit_2" style="left:5px; top:465px; width:130px; height:13px; ">긴급복지 청구현황</caption>
  679. <line id="line5" class="line_3" style="x1:0px; y1:453px; x2:1194px; y2:453px; "/>
  680. <button id="button5" class="btn5_letter6" style="left:1108px; top:278px; width:86px; height:19px; ">
  681. <caption>청구내역저장</caption>
  682. <script type="javascript" ev:event="DOMActivate">
  683. <![CDATA[
  684. var cur_row = grd_pmcheoac.row;
  685. model.makeValue("/root/main/grdpmchlist/grdpmcheoac[" + cur_row + "]/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  686. model.makeValue("/root/main/grdpmchlist/grdpmcheoac[" + cur_row + "]/indd", model.getValue("/root/main/ptbs/ptbs_indd"));
  687. model.makeValue("/root/send/updatedate/grdpmcheoac",grd_pmcheoac.getUpdateData());
  688. if ( submit("TRPMC00604") ) {
  689. grd_pmcheoac.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  690. //model.copyNode("/root/main/grdpmchlist/grdpmcheoac", "/root/hidden/tmp");
  691. grd_pmcheoac.rebuild();
  692. }
  693. ]]>
  694. </script>
  695. </button>
  696. <input id="input14" ref="/root/send/data1/issfromdd" class="input_default" inputtype="date" style="left:278px; top:458px; width:97px; height:19px; "/>
  697. <input id="input25" ref="/root/send/data1/isstodd" class="input_default" inputtype="date" style="left:389px; top:458px; width:96px; height:19px; "/>
  698. <caption id="caption31" style="left:375px; top:461px; width:15px; height:16px; vertical-align:middle; ">~</caption>
  699. <button id="button9" class="btn2_letter2" style="left:1152px; top:5px; width:42px; height:19px; ">
  700. <caption>상병</caption>
  701. <script type="javascript" ev:event="DOMActivate">
  702. <![CDATA[
  703. model.setValue("/root/hidden/srchdiag/selectedrdodiagkind","1");
  704. model.setValue("/root/hidden/srchdiag/basedd",getCurrentDate());
  705. model.setValue("/root/hidden/srchdiag/diagcd", "");
  706. model.setValue("/root/hidden/srchdiag/diagnm", "");
  707. model.setValue("/root/hidden/srchdiag/flag","D");
  708. modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/hidden/srchdiag", "/root/init");
  709. ]]>
  710. </script>
  711. </button>
  712. <line id="line4" class="line_3" style="x1:0px; y1:186px; x2:1194px; y2:186px; "/>
  713. <input id="input9" ref="/root/main/ptbs/ptbs_zipcd1" class="input_default" disabled="true" style="left:83px; top:79px; width:33px; height:19px; "/>
  714. <input id="ipt_indd" ref="/root/main/ptbs/ptbs_indd" class="input_default" disabled="true" inputtype="date" style="left:922px; top:31px; width:98px; height:19px; "/>
  715. <input id="ipt_rrgstno1" ref="/root/main/ptbs/ptbs_rrgstno1" class="input_default" disabled="true" navindex="3" maxlength="6" style="left:327px; top:31px; width:78px; height:19px; "/>
  716. <input id="ipt_rrgstno2" ref="/root/main/ptbs/ptbs_rrgstno2" class="input_default" disabled="true" navindex="4" maxlength="7" style="left:408px; top:31px; width:80px; height:19px; "/>
  717. <input id="ipt_pid" ref="/root/main/ptbs/ptbs_pid" class="input_essential" navindex="1" maxlength="10" style="left:83px; top:31px; width:120px; height:19px; ">
  718. <script type="javascript" ev:event="onkeypress">
  719. <![CDATA[
  720. if (event.keyCode=='13') {
  721. //조회전 클리어..
  722. model.resetInstanceNode("/root/send/data3");
  723. model.resetInstanceNode("/root/main/popupendflag");
  724. model.setValue("/root/send/data3/srchcond","1");
  725. model.setValue("/root/main/ptbs/ptbs_pid",ipt_pid.currentText);
  726. model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  727. // 환자의 입원내역 카운트 조회
  728. if (ipt_pid.currentText != "") {
  729. submit("TRPMC00607");
  730. }
  731. var chkcnt = getNodesetCount("/root/main/patinfo/patinfolist");
  732. //alert("chkcnt--->"+chkcnt);
  733. if (chkcnt > 0) {
  734. if (chkcnt > 1) {
  735. model.resetInstanceNode("/root/send/data3");
  736. model.setValue("/root/send/data3/srchcond","1");
  737. model.setValue("/root/main/ptbs/ptbs_pid",ipt_pid.currentText);
  738. model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  739. // 입원내역조회 팝업
  740. modal("SSPMC00601", "1","150", "150", "SSPMC00601", "/root/send/data3", "/root/send");
  741. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  742. model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  743. model.setValue("/root/main/ptbs/ptbs_indd",model.getValue("/root/main/patinfo/patinfolist/indd"));
  744. model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  745. model.setValue("/root/send/data3/indd",model.getValue("/root/main/ptbs/ptbs_indd"));
  746. if (ipt_pid.currentText != "") {
  747. fPatInfoSrch();
  748. }
  749. model.refresh();
  750. } else {
  751. return false;
  752. }
  753. } else {
  754. //model.resetInstanceNode("/root/send/data3");
  755. model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  756. model.setValue("/root/main/ptbs/ptbs_indd",model.getValue("/root/main/patinfo/patinfolist/indd"));
  757. model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  758. model.setValue("/root/send/data3/indd",model.getValue("/root/main/ptbs/ptbs_indd"));
  759. if (ipt_pid.currentText != "") {
  760. fPatInfoSrch();
  761. }
  762. model.refresh();
  763. }
  764. }
  765. }
  766. ]]>
  767. </script>
  768. </input>
  769. <select1 id="rdo_specordyn" ref="/root/main/ptbs/ptbs_specordyn" disabled="true" appearance="full" cols="2" overflow="visible" style="left:1093px; top:57px; width:85px; height:15px; border-style:none; ">
  770. <choices>
  771. <item>
  772. <label>Yes</label>
  773. <value>Y</value>
  774. </item>
  775. <item>
  776. <label>No</label>
  777. <value>N</value>
  778. </item>
  779. </choices>
  780. </select1>
  781. <caption id="caption20" class="cell_1" style="left:563px; top:30px; width:87px; height:23px; vertical-align:middle; ">진료과</caption>
  782. <input id="input10" ref="/root/main/ptbs/ptbs_zipcd2" class="input_default" disabled="true" style="left:119px; top:79px; width:33px; height:19px; "/>
  783. <caption id="caption10" class="cell_1" style="left:1023px; top:30px; width:70; height:23px; vertical-align:middle; ">입원경로</caption>
  784. <caption id="caption3" class="cell_1" style="left:687px; top:78px; width:58px; height:23px; vertical-align:middle; ">보조유형</caption>
  785. <caption id="caption11" class="cell_1" style="left:0px; top:54px; width:80px; height:23px; vertical-align:middle; ">성명[한글]</caption>
  786. <select1 id="cmb_inpath" ref="/root/main/ptbs/ptbs_inpath" disabled="true" appearance="minimal" style="left:1094px; top:31px; width:100px; height:19px; ">
  787. <choices>
  788. <itemset nodeset="/root/init/P0002list/P0002">
  789. <label ref="cdnm"/>
  790. <value ref="cdid"/>
  791. </itemset>
  792. </choices>
  793. </select1>
  794. <select1 id="cmb_suppkind" ref="/root/main/ptbs/ptbs_suppkind" class="combo_default" disabled="true" appearance="minimal" style="left:747px; top:79px; width:88px; height:19px; ">
  795. <choices>
  796. <itemset nodeset="/root/init/P0010list/P0010">
  797. <label ref="cdnm"/>
  798. <value ref="cdid"/>
  799. </itemset>
  800. </choices>
  801. </select1>
  802. <caption id="caption4" class="cell_1" style="left:563px; top:54px; width:87px; height:23px; vertical-align:middle; ">전문의/주치의</caption>
  803. <input id="ipt_dschdd" ref="/root/main/ptbs/ptbs_dschdd" class="input_default" disabled="true" inputtype="date" style="left:922px; top:55px; width:98px; height:19px; "/>
  804. <input id="input1" ref="/root/main/ptbs/ptbs_detladdr" class="input_default" disabled="true" style="left:326px; top:79px; width:170px; height:19px; "/>
  805. <input id="ipt_hngnm" ref="/root/main/ptbs/ptbs_hngnm" class="input_essential" navindex="2" imemode="hangul" style="left:83px; top:55px; width:120px; height:19px; ">
  806. <script type="javascript" ev:event="onkeypress">
  807. <![CDATA[
  808. // 2008.05.20 최병진 - 성명으로 조회 시 먼저 환자기본정보를 조회하고 선택된 환자의 환자번호를 기반으로 입원내역을 조회하도록 변경
  809. // 이전 버전은 ClearCase 2008.05.20 이전 날짜의 버전을 통해서 확인
  810. if (event.keyCode=='13') {
  811. if (fHngNmVeri("onkeypress") == false) return;
  812. //조회전 클리어..
  813. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  814. model.resetInstanceNode("/root/send/data3");
  815. model.setValue("/root/send/data3/srchcond","2");
  816. model.setValue("/root/main/ptbs/ptbs_hngnm",ipt_hngnm.currentText);
  817. model.setValue("/root/send/data3/hngnm",model.getValue("/root/main/ptbs/ptbs_hngnm"));
  818. // 환자기초정보조회
  819. modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data3", "/root/send");
  820. model.resetInstanceNode("/root/send/data3");
  821. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  822. model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  823. model.setValue("/root/send/data3/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  824. }
  825. // 입원내역조회
  826. if (model.getValue("/root/main/ptbs/ptbs_pid") != "") {
  827. submit("TRPMC00607");
  828. }
  829. var ptbs_chkcnt = getNodesetCount("/root/main/patinfo/patinfolist");
  830. if (ptbs_chkcnt > 0) {
  831. //ptbs의 자료가 한개이상일 경우 팝업을 띄워준다.
  832. if (ptbs_chkcnt > 1) {
  833. //조회전 클리어..
  834. model.resetInstanceNode("/root/send/data3");
  835. model.setValue("/root/send/data3/srchcond","1");
  836. //model.setValue("/root/main/ptbs/ptbs_pid",ipt_pid.currentText);
  837. model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  838. modal("SSPMC00601", "1","150", "150", "SSPMC00601", "/root/send/data3", "/root/send");
  839. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  840. model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  841. model.setValue("/root/main/ptbs/ptbs_hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  842. model.setValue("/root/main/ptbs/ptbs_indd",model.getValue("/root/main/patinfo/patinfolist/indd"));
  843. model.setValue("/root/send/data3/indd",model.getValue("/root/main/ptbs/ptbs_indd"));
  844. var sPid = model.getValue("/root/main/ptbs/ptbs_pid");
  845. if (sPid != "") {
  846. fPatInfoSrch();
  847. }
  848. model.refresh();
  849. } else {
  850. return false;
  851. }
  852. } else {
  853. model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  854. model.setValue("/root/main/ptbs/ptbs_hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  855. model.setValue("/root/main/ptbs/ptbs_indd",model.getValue("/root/main/patinfo/patinfolist/indd"));
  856. model.setValue("/root/send/data3/indd",model.getValue("/root/main/ptbs/ptbs_indd"));
  857. var sPid = model.getValue("/root/main/ptbs/ptbs_pid");
  858. if (sPid != "") {
  859. fPatInfoSrch();
  860. }
  861. model.refresh();
  862. }
  863. } else {
  864. messageBox("환자인적이","I004");
  865. model.resetInstanceNode("/root/main/ptbs");
  866. model.refresh();
  867. return false;
  868. }
  869. }
  870. ]]>
  871. </script>
  872. </input>
  873. <caption id="caption36" class="cell_1" style="left:839px; top:30px; width:80px; height:23px; vertical-align:middle; ">입원일자</caption>
  874. <input id="input15" ref="/root/main/ptbs/ptbs_hometel" class="input_default" disabled="true" style="left:327px; top:55px; width:115px; height:19px; "/>
  875. <caption id="caption14" class="cell_1" style="left:206px; top:54px; width:118px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
  876. <caption id="caption5" class="cell_1" style="left:0px; top:78px; width:80px; height:23px; vertical-align:middle; ">주소</caption>
  877. <caption id="caption37" class="cell_1" style="left:839px; top:54px; width:80px; height:23px; vertical-align:middle; ">퇴원일자</caption>
  878. <caption id="caption15" class="cell_1" style="left:498px; top:78px; width:62px; height:23px; vertical-align:middle; ">보험유형</caption>
  879. <input id="input2" ref="/root/main/ptbs/ptbs_mpphontel" class="input_default" disabled="true" style="left:445px; top:55px; width:115px; height:19px; "/>
  880. <input id="input16" ref="/root/main/ptbs/ptbs_zipnm" class="input_default" disabled="true" style="left:177px; top:79px; width:147px; height:19px; "/>
  881. <input id="input3" ref="/root/main/ptbs/ptbs_zipcdseq" disabled="true" style="left:155px; top:79px; width:19px; height:19px; "/>
  882. <caption id="caption7" class="cell_1" style="left:0px; top:30px; width:80px; height:23px; vertical-align:middle; ">환자번호</caption>
  883. <line id="line2" class="line_3" style="x1:0px; y1:100px; x2:1194px; y2:100px; "/>
  884. <caption id="caption17" class="cell_1" style="left:1023px; top:54px; width:70; height:23px; vertical-align:middle; ">선택진료</caption>
  885. <input id="input4" ref="/root/main/ptbs/ptbs_sex" class="input_default" disabled="true" style="left:491px; top:31px; width:33px; height:19px; "/>
  886. <caption id="caption8" class="cell_1" style="left:206px; top:30px; width:118px; height:23px; vertical-align:middle; ">주민번호/성별/나이</caption>
  887. <input id="input5" ref="/root/main/ptbs/ptbs_age" class="input_default" disabled="true" style="left:527px; top:31px; width:33px; height:19px; "/>
  888. <datagrid id="grd_pmcheoac" nodeset="/root/main/grdpmchlist/grdpmcheoac" caption="환자번호^접수일자^청구일자^청구금액^급여^비급여^선택진료비^입원일자^퇴원일자^적용일자^종료일자^입금액^입금일자^청구일련번호" colsep="^" colwidth="92, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0" dataheight="23" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:303px; width:1194px; height:149px; ">
  889. <col disabled="true" ref="pid" type="output" style="text-align:center; "/>
  890. <col ref="acptdd" type="inputdate" style="text-align:center; "/>
  891. <col ref="clamdd" type="inputdate" style="text-align:center; "/>
  892. <col ref="clamamt" type="input" format="#,###" style="text-align:right; "/>
  893. <col ref="payamt" type="input" format="#,###" style="text-align:right; "/>
  894. <col ref="nopyamt" type="input" format="#,###" style="text-align:right; "/>
  895. <col ref="choiordamt" type="input" format="#,###" style="text-align:right; "/>
  896. <col disabled="true" ref="indd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  897. <col disabled="true" ref="dschdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  898. <col ref="appdd" type="inputdate" style="text-align:center; "/>
  899. <col ref="enddd" type="inputdate" style="text-align:center; "/>
  900. <col ref="rcptamt" type="input" format="#,###" style="text-align:right; "/>
  901. <col ref="rcptdd" type="inputdate" style="text-align:center; "/>
  902. <col disabled="true" ref="clamseqno" type="output"/>
  903. <script type="javascript" ev:event="onkeyup">
  904. <![CDATA[
  905. if (event.keyCode=='46') {
  906. var cur_row = grd_pmcheoac.row;
  907. grd_pmcheoac.deleteItem(cur_row);
  908. model.refresh();
  909. } else if (event.keyCode=='45') {
  910. grd_pmcheoac.addRow();
  911. var cur_row = grd_pmcheoac.row;
  912. model.setValue("/root/main/grdpmchlist/grdpmcheoac[" + cur_row + "]/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  913. model.setValue("/root/main/grdpmchlist/grdpmcheoac[" + cur_row + "]/indd", model.getValue("/root/main/ptbs/ptbs_indd"));
  914. model.refresh();
  915. }
  916. ]]>
  917. </script>
  918. </datagrid>
  919. <select1 id="cmb_orddrid" ref="/root/main/ptbs/ptbs_medispclid" disabled="true" appearance="minimal" style="left:653px; top:55px; width:90px; height:19px; ">
  920. <choices>
  921. <itemset nodeset="/root/hidden/init/orddrid">
  922. <label ref="nm"/>
  923. <value ref="cd"/>
  924. </itemset>
  925. </choices>
  926. </select1>
  927. <select1 id="cmb_insukind" ref="/root/main/ptbs/ptbs_insukind" class="combo_default" disabled="true" appearance="minimal" style="left:562px; top:79px; width:121px; height:19px; ">
  928. <choices>
  929. <itemset nodeset="/root/init/P0008list/P0008">
  930. <label ref="cdnm"/>
  931. <value ref="cdid"/>
  932. </itemset>
  933. </choices>
  934. </select1>
  935. <select1 id="cmb_orddeptcd" ref="/root/main/ptbs/ptbs_orddeptcd" disabled="true" appearance="minimal" style="left:653px; top:31px; width:183px; height:19px; ">
  936. <choices>
  937. <itemset nodeset="/root/hidden/init/orddeptcd">
  938. <label ref="nm"/>
  939. <value ref="cd"/>
  940. </itemset>
  941. </choices>
  942. </select1>
  943. <select1 id="cmb_atdoctid" ref="/root/main/ptbs/ptbs_atdoctid" disabled="true" appearance="minimal" style="left:746px; top:55px; width:90px; height:19px; ">
  944. <choices>
  945. <itemset nodeset="/root/hidden/init/orddrid">
  946. <label ref="nm"/>
  947. <value ref="cd"/>
  948. </itemset>
  949. </choices>
  950. </select1>
  951. <line id="line6" class="line_3" style="x1:0px; y1:267px; x2:598px; y2:267px; "/>
  952. <button id="button53" class="btn2_letter3" style="left:998px; top:278px; width:53px; height:19px; ">
  953. <caption>행추가</caption>
  954. <script type="javascript" ev:event="DOMActivate">
  955. <![CDATA[
  956. grd_pmcheoac.addRow();
  957. var cur_row = grd_pmcheoac.row;
  958. model.setValue("/root/main/grdpmchlist/grdpmcheoac[" + cur_row + "]/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  959. model.setValue("/root/main/grdpmchlist/grdpmcheoac[" + cur_row + "]/indd", model.getValue("/root/main/ptbs/ptbs_indd"));
  960. model.refresh();
  961. ]]>
  962. </script>
  963. </button>
  964. <button id="button54" class="btn2_letter3" style="left:1053px; top:278px; width:53px; height:19px; ">
  965. <caption>행삭제</caption>
  966. <script type="javascript" ev:event="DOMActivate">
  967. <![CDATA[
  968. var cur_row = grd_pmcheoac.row;
  969. grd_pmcheoac.deleteItem(cur_row);
  970. model.refresh();
  971. ]]>
  972. </script>
  973. </button>
  974. <button id="button10" class="btn5_letter2" style="left:954px; top:278px; width:42px; height:19px; ">
  975. <caption>조회</caption>
  976. <script type="javascript" ev:event="DOMActivate">
  977. <![CDATA[
  978. model.setValue("/root/send/data2/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  979. model.setValue("/root/send/data2/indd",model.getValue("/root/main/ptbs/ptbs_indd"));
  980. submit("TRPMC00605")
  981. ]]>
  982. </script>
  983. </button>
  984. <datagrid id="grd_pmchlist" nodeset="/root/main/grdpmcheoaclist/grdpmcheoaclist" caption="환자번호^환자성명^유형^성별^나이^입원일자^퇴원일자^진료과^전문의^청구금액^청구일자^입금금액^입금일자^관할시군구청^진단명" colsep="^" colwidth="67, 66, 68, 32, 32, 93, 97, 108, 66, 72, 97, 76, 104, 100, 253" dataheight="23" defaultrows="0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:485px; width:1194px; height:256px; ">
  985. <col ref="pid" style="text-align:center; "/>
  986. <col ref="hngnm" style="text-align:center; "/>
  987. <col ref="insukind" style="text-align:center; "/>
  988. <col ref="sex" style="text-align:center; "/>
  989. <col ref="age" style="text-align:center; "/>
  990. <col ref="indd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  991. <col ref="dschdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  992. <col ref="orddeptcd"/>
  993. <col ref="medispclid" style="text-align:center; "/>
  994. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  995. <col ref="clamdd" type="inputdate" style="text-align:center; "/>
  996. <col ref="rcptamt" style="text-align:center; "/>
  997. <col ref="rcptdd" type="inputdate" style="text-align:center; "/>
  998. <col ref="cntrcnty"/>
  999. <col ref="diagnm"/>
  1000. <script type="javascript" ev:event="ondblclick">
  1001. <![CDATA[
  1002. var currentRow = grd_pmchlist.row;
  1003. model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/main/grdpmcheoaclist/grdpmcheoaclist[" + currentRow + "]/pid"));
  1004. model.setValue("/root/main/ptbs/ptbs_indd",model.getValue("/root/main/grdpmcheoaclist/grdpmcheoaclist[" + currentRow + "]/indd"));
  1005. model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  1006. model.setValue("/root/send/data3/indd",model.getValue("/root/main/ptbs/ptbs_indd"));
  1007. var sPid = model.getValue("/root/main/grdpmcheoaclist/grdpmcheoaclist/pid");
  1008. if (sPid != "") {
  1009. fPatInfoSrch();
  1010. }
  1011. model.refresh();
  1012. ]]>
  1013. </script>
  1014. <script type="javascript" ev:event="onaftersort">
  1015. <![CDATA[
  1016. //sorting 시 인스턴스 구조를 재구성
  1017. grd_pmchlist.gridToInstance();
  1018. ]]>
  1019. </script>
  1020. </datagrid>
  1021. <select1 id="cmb_appmthd" ref="/root/main/inpt/inpt_appmthd" appearance="minimal" style="left:314px; top:164px; width:130px; height:19px; ">
  1022. <choices>
  1023. <itemset nodeset="/root/init/P0447list/P0447">
  1024. <label ref="cdnm"/>
  1025. <value ref="cdid"/>
  1026. </itemset>
  1027. </choices>
  1028. </select1>
  1029. <select1 id="cmb_patrela" ref="/root/main/inpt/inpt_patrela" appearance="minimal" style="left:531px; top:164px; width:130px; height:19px; ">
  1030. <choices>
  1031. <itemset nodeset="/root/init/P0448list/P0448">
  1032. <label ref="cdnm"/>
  1033. <value ref="cdid"/>
  1034. </itemset>
  1035. </choices>
  1036. </select1>
  1037. <button id="btn_uncyprint" class="btn2_letter2" style="left:910px; top:278px; width:42px; height:19px; ">
  1038. <caption>출력</caption>
  1039. <script type="javascript" ev:event="DOMActivate">
  1040. <![CDATA[
  1041. // 2008.05.22 긴급지원 청구내역 기반으로 출력
  1042. var selectedRow = grd_pmcheoac.row;
  1043. if (selectedRow < 1) {
  1044. messageBox("출력할 청구내역을", "C002");
  1045. return false;
  1046. } else {
  1047. // 병원정보조회
  1048. submit("TRPMC00609");
  1049. var claimAppdd = model.getValue("/root/main/grdpmchlist/grdpmcheoac/appdd");
  1050. var claimEnddd = model.getValue("/root/main/grdpmchlist/grdpmcheoac/enddd");
  1051. var ctrtDate = getCurrentDate();
  1052. var yearFrom = claimAppdd.substr(0, 4);
  1053. var monthFrom = claimAppdd.substr(4, 2);
  1054. var dayFrom = claimAppdd.substr(6, 2);
  1055. var yearTo = claimEnddd.substr(0, 4);
  1056. var monthTo = claimEnddd.substr(4, 2);
  1057. var dayTo = claimEnddd.substr(6, 2);
  1058. var ctrtYear = ctrtDate.substr(0, 4);
  1059. var ctrtMonth = ctrtDate.substr(4, 2);
  1060. var ctrtDay = ctrtDate.substr(6, 2);
  1061. var koreanAmt = model.getValue("/root/main/grdpmchlist/grdpmcheoac/clamamt").setAmountToKorean();
  1062. var numberAmt = fGetMoneyTypeNumber(model.getValue("/root/main/grdpmchlist/grdpmcheoac/clamamt"));
  1063. var claimAmt = "금 " + koreanAmt + "원정" + "(₩" + numberAmt + ")";
  1064. model.setValue("/root/main/ugcy_print/pat_pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  1065. model.setValue("/root/main/ugcy_print/pat_hngnm", model.getValue("/root/main/ptbs/ptbs_hngnm"));
  1066. model.setValue("/root/main/ugcy_print/pat_rrgstno", (model.getValue("/root/main/ptbs/ptbs_rrgstno1").concat(model.getValue("/root/main/ptbs/ptbs_rrgstno2"))));
  1067. model.setValue("/root/main/ugcy_print/pat_addr", (model.getValue("/root/main/ptbs/ptbs_zipnm").concat(model.getValue("/root/main/ptbs/ptbs_detladdr"))));
  1068. model.setValue("/root/main/ugcy_print/minst_name", model.getValue("/root/hidden/hosp/hospinfo/hospnm"));
  1069. model.setValue("/root/main/ugcy_print/minst_prsd", model.getValue("/root/hidden/hosp/hospinfo/prsdnm"));
  1070. model.setValue("/root/main/ugcy_print/minst_bizmngrgstno", model.getValue("/root/hidden/hosp/hospinfo/bizmngrgstno"));
  1071. model.setValue("/root/main/ugcy_print/minst_addr", model.getValue("/root/hidden/hosp/hospinfo/fulladdr"));
  1072. model.setValue("/root/main/ugcy_print/minst_phone", model.getValue("/root/hidden/hosp/hospinfo/reprtel1"));
  1073. model.setValue("/root/main/ugcy_print/minst_yearfrom", yearFrom);
  1074. model.setValue("/root/main/ugcy_print/minst_monthfrom", monthFrom);
  1075. model.setValue("/root/main/ugcy_print/minst_dayfrom", dayFrom);
  1076. model.setValue("/root/main/ugcy_print/minst_yearto", yearTo);
  1077. model.setValue("/root/main/ugcy_print/minst_monthto", monthTo);
  1078. model.setValue("/root/main/ugcy_print/minst_dayto", dayTo);
  1079. model.setValue("/root/main/ugcy_print/claimamt", claimAmt);
  1080. model.setValue("/root/main/ugcy_print/bank_name", model.getValue("/root/hidden/speccode/speccodelist[(cdid = 'B')]/cdnm"));
  1081. model.setValue("/root/main/ugcy_print/bank_acount", model.getValue("/root/hidden/speccode/speccodelist[(cdid = 'A')]/cdnm"));
  1082. model.setValue("/root/main/ugcy_print/bank_owner", model.getValue("/root/hidden/speccode/speccodelist[(cdid = 'O')]/cdnm"));
  1083. model.setValue("/root/main/ugcy_print/ctrt_year", ctrtYear);
  1084. model.setValue("/root/main/ugcy_print/ctrt_month", ctrtMonth);
  1085. model.setValue("/root/main/ugcy_print/ctrt_day", ctrtDay);
  1086. model.setValue("/root/main/ugcy_print/ctrt_name", model.getValue("/root/main/ptbs/ptbs_hngnm"));
  1087. model.setValue("/root/main/ugcy_print/ctrt_inst_name", model.getValue("/root/hidden/hosp/hospinfo/hospnm"));
  1088. model.setValue("/root/main/ugcy_print/ctrt_inst_prsd", model.getValue("/root/hidden/hosp/hospinfo/prsdnm"));
  1089. model.setValue("/root/main/ugcy_print/ctrt_to", model.getValue("/root/main/inpt/inpt_cntrcnty"));
  1090. // 긴급지원비용 청구서 출력
  1091. exeReportPreview("RPPMC00600", "XMLSTR", "", "", "true", "", "", "", "", "Y","", "", "", "", "", "", "");
  1092. //exeReportPreview("RPPMC00600", "XMLSTR" , "" , "" , "true" , "", "", "", "", "");
  1093. }
  1094. ]]>
  1095. </script>
  1096. </button>
  1097. <button id="btn_listprint" class="btn2_letter2" visibility="hidden" style="left:1087px; top:460px; width:42px; height:19px; ">
  1098. <caption>출력</caption>
  1099. </button>
  1100. <button id="btn_excel" class="btn2_letter4" style="left:1130px; top:460px; width:64px; height:19px; ">
  1101. <caption>액셀저장</caption>
  1102. <script type="javascript" ev:event="DOMActivate">
  1103. <![CDATA[
  1104. var fileName = window.fileDialog("save", ",", false, "긴금복지청구현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1105. if (fileName != "")
  1106. {
  1107. grd_pmchlist.saveExcel(fileName, "grd_pmchlist", true, true, "", "", true);
  1108. }
  1109. ]]>
  1110. </script>
  1111. </button>
  1112. <button id="btn_reference" class="btn5_letter2" style="left:923px; top:458px; width:42px; height:19px; ">
  1113. <caption>조회</caption>
  1114. <script type="javascript" ev:event="DOMActivate">
  1115. <![CDATA[
  1116. submit("TRPMC00606")
  1117. ]]>
  1118. </script>
  1119. </button>
  1120. <input id="input6" ref="/root/main/ptbs/ptbs_maindiag" class="input_default" disabled="true" style="left:922px; top:79px; width:270px; height:19px; "/>
  1121. <caption id="caption9" class="cell_1" style="left:223px; top:139px; width:88px; height:23px; text-align:left; vertical-align:middle; ">한도액</caption>
  1122. <input id="input7" ref="/root/main/inpt/inpt_limitamt" class="input_default" navindex="5" imemode="hangul" format="#,###" style="left:314px; top:140px; width:129px; height:19px; text-align:right; "/>
  1123. <input id="input8" ref="/root/main/inpt/inpt_fromdd" class="input_default" navindex="5" imemode="hangul" inputtype="date" style="left:531px; top:140px; width:129px; height:19px; "/>
  1124. <caption id="caption12" class="cell_1" style="left:447px; top:139px; width:80px; height:23px; text-align:left; vertical-align:middle; ">지원기간</caption>
  1125. <input id="input11" ref="/root/main/inpt/inpt_todd" class="input_default" navindex="5" imemode="hangul" inputtype="date" style="left:681px; top:140px; width:129px; height:19px; "/>
  1126. <caption id="caption13" style="left:665px; top:144px; width:15px; height:11px; ">~</caption>
  1127. <textarea id="textarea1" ref="/root/main/inpt/inpt_mngtcnts" imemode="hangul" style="left:603px; top:223px; width:590px; height:43px; "/>
  1128. <caption id="caption16" class="tit_2" style="left:608px; top:203px; width:170px; height:14px; ">관리내용</caption>
  1129. <line id="line11" class="line_3" style="x1:603px; y1:267px; x2:1193px; y2:267px; "/>
  1130. <line id="line12" class="line_1" style="x1:603px; y1:219px; x2:1193px; y2:219px; "/>
  1131. <button id="button3" class="btn5_letter6" style="left:511px; top:199px; width:86px; height:19px; ">
  1132. <caption>참고사항저장</caption>
  1133. <script type="javascript" ev:event="DOMActivate">
  1134. <![CDATA[
  1135. model.setValue("/root/send/data7/inpt_pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  1136. model.setValue("/root/send/data7/inpt_remfact",model.getValue("/root/main/inpt/inpt_remfact"));
  1137. model.setValue("/root/send/data7/inpt_instcd",model.getValue("/root/main/inpt/inpt_instcd"));
  1138. submit("TXPAI02201");
  1139. ]]>
  1140. </script>
  1141. </button>
  1142. <caption id="caption32" class="search_name" style="left:189px; top:458px; width:90px; height:17px; ">청구일자 :</caption>
  1143. <caption id="caption18" class="search_name" style="left:558px; top:458px; width:67px; height:17px; ">구분 :</caption>
  1144. <line id="line40" class="line_4" style="x1:913px; y1:459px; x2:913px; y2:476px; "/>
  1145. <select1 id="combo1" ref="/root/send/data1/refflag" appearance="minimal" style="left:621px; top:457px; width:109px; height:19px; ">
  1146. <choices>
  1147. <item>
  1148. <label>전체</label>
  1149. <value>0</value>
  1150. </item>
  1151. <item>
  1152. <label>진료과별</label>
  1153. <value>1</value>
  1154. </item>
  1155. <item>
  1156. <label>환자번호별</label>
  1157. <value>2</value>
  1158. </item>
  1159. <item>
  1160. <label>환자성명별</label>
  1161. <value>3</value>
  1162. </item>
  1163. <item>
  1164. <label>관할시군구청별</label>
  1165. <value>5</value>
  1166. </item>
  1167. <item>
  1168. <label>청구액별</label>
  1169. <value>6</value>
  1170. </item>
  1171. <item>
  1172. <label>입금액별</label>
  1173. <value>7</value>
  1174. </item>
  1175. <item>
  1176. <label>입금일별</label>
  1177. <value>8</value>
  1178. </item>
  1179. </choices>
  1180. <script type="javascript" ev:event="xforms-select">
  1181. <![CDATA[
  1182. var choiflag = model.getValue("/root/send/data1/refflag");
  1183. //검색조건
  1184. fChoiValue(choiflag);
  1185. // model.removeNodeset("/root/main/gridlist");
  1186. // model.makeNode("/root/main/gridlist/roominfolist");
  1187. // model.makeNode("/root/main/gridlist/roominfolistprint");
  1188. // model.resetInstanceNode("/root/main/gridlist/item");
  1189. // model.refresh();
  1190. //
  1191. // if (choiflag == '1' || choiflag == '9' || choiflag == '10' || choiflag == '11') {
  1192. // submit("TRPMB00301");
  1193. //
  1194. // }
  1195. ]]>
  1196. </script>
  1197. </select1>
  1198. <input id="ipt_refamt" ref="/root/send/data1/refvalue" class="input_default" navindex="11" visibility="hidden" format="#,###" style="left:782px; top:457px; width:129px; height:19px; "/>
  1199. <input id="ipt_refdate" ref="/root/send/data1/refvalue" class="input_default" navindex="11" visibility="hidden" inputtype="date" style="left:767px; top:457px; width:129px; height:19px; "/>
  1200. <input id="ipt_refinput" ref="/root/send/data1/refvalue" class="input_default" navindex="11" visibility="hidden" style="left:747px; top:457px; width:129px; height:19px; ">
  1201. <script type="javascript" ev:event="onkeypress">
  1202. <![CDATA[
  1203. var choiflag = model.getValue("/root/send/data1/refflag");
  1204. if (choiflag == '2') {
  1205. if(event.keyCode == "13") {
  1206. setInputNodeCurText();
  1207. //model.setValue("/root/send/search1/pid",model.getValue("/root/main/primaryInfo/pid"));
  1208. model.setValue("/root/send/search1/pid",model.getValue("/root/send/data1/refvalue"));
  1209. model.setValue("/root/send/search1/srchcond","1");
  1210. modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
  1211. model.setValue("/root/send/data1/refvalue",model.getValue("/root/main/patinfo/patinfolist/pid"));
  1212. model.refresh();
  1213. inputEnterKey("btn_reference", "DOMActivate");
  1214. }
  1215. } else if (choiflag == '3') {
  1216. if(event.keyCode == "13") {
  1217. setInputNodeCurText();
  1218. model.setValue("/root/send/search1/hngnm",model.getValue("/root/send/data1/refvalue"));
  1219. model.setValue("/root/send/search1/srchcond","2");
  1220. modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
  1221. model.setValue("/root/send/data1/refvalue",model.getValue("/root/main/patinfo/patinfolist/pid"));
  1222. model.refresh();
  1223. inputEnterKey("btn_reference", "DOMActivate");
  1224. }
  1225. }
  1226. ]]>
  1227. </script>
  1228. </input>
  1229. <select1 id="cmb_reforddeptcd" ref="/root/send/data1/refvalue" appearance="minimal" style="left:731px; top:457px; width:130px; height:19px; ">
  1230. <choices>
  1231. <itemset nodeset="/root/hidden/init/orddeptcd">
  1232. <label ref="nm"/>
  1233. <value ref="cd"/>
  1234. </itemset>
  1235. </choices>
  1236. </select1>
  1237. <caption id="cap_up" visibility="hidden" style="left:974px; top:461px; width:30px; height:15px; ">이상</caption>
  1238. <bool id="ipt_clamddyn" navindex="8" checkvalue="Y,N" appearance="bool" ref="/root/send/data1/clamddyn" style="left:490px; top:460px; width:15px; height:20px; text-align:center; "/>
  1239. <caption id="caption19" style="left:505px; top:462px; width:30px; height:15px; ">제외</caption>
  1240. <caption id="caption21" class="cell_1" style="left:1101px; top:139px; width:40px; height:46px; text-align:center; vertical-align:middle; ">
  1241. <![CDATA[종결
  1242. 구분]]>
  1243. </caption>
  1244. <select1 id="rdo_endflagcd" ref="/root/main/inpt/inpt_endflagcd" appearance="full" overflow="visible" style="left:1144px; top:145px; width:45px; height:35px; border-style:none; ">
  1245. <choices>
  1246. <item>
  1247. <label>종결</label>
  1248. <value>1</value>
  1249. </item>
  1250. <item>
  1251. <label>계속</label>
  1252. <value>2</value>
  1253. </item>
  1254. </choices>
  1255. </select1>
  1256. </group>
  1257. <group id="group6" style="left:0px; top:757px; width:1195px; height:27px; ">
  1258. <button id="button6" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  1259. <caption>초기화</caption>
  1260. <script type="javascript" ev:event="DOMActivate">
  1261. <![CDATA[
  1262. fInitialize("0");
  1263. ]]>
  1264. </script>
  1265. </button>
  1266. <button id="button8" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
  1267. <caption>저장</caption>
  1268. <script type="javascript" ev:event="DOMActivate">
  1269. <![CDATA[
  1270. //기존자료가 존재하는지를 체크한다.
  1271. model.resetInstanceNode("/root/send/data2");
  1272. model.resetInstanceNode("/root/hidden/rcvflag/flag/chkcount");
  1273. model.setValue("/root/send/data2/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  1274. model.setValue("/root/send/data2/indd",model.getValue("/root/main/ptbs/ptbs_indd"));
  1275. submit("TRPMC00602")
  1276. var ichkcount = model.getValue("/root/hidden/rcvflag/flag/chkcount");
  1277. //데이터 존재 - 컨트롤 값이 변경되었는지 체크하여 변경시 업데이트
  1278. if (ichkcount > 0) {
  1279. tlpm_flag = 'u'
  1280. model.makenode("/root/temp/h_inpt/inpt");
  1281. model.makenode("/root/main/inpt/inpt_pid");
  1282. model.makenode("/root/main/inpt/inpt_indd");
  1283. model.makenode("/root/main/inpt/inpt_status");
  1284. model.copynode("/root/temp/h_inpt/inpt", "/root/main/inpt");
  1285. model.setValue("/root/temp/h_inpt/inpt/inpt_pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  1286. model.setValue("/root/temp/h_inpt/inpt/inpt_indd",model.getValue("/root/main/ptbs/ptbs_indd"));
  1287. model.setValue("/root/temp/h_inpt/inpt/inpt_status",tlpm_flag);
  1288. model.setValue("/root/send/data2/instcd",model.getValue("/root/main/ptbs/ptbs_instcd"));
  1289. submit("TRPMC00603")
  1290. //데이터 미존재 - 신규저장
  1291. } else {
  1292. tlpm_flag = 'i'
  1293. model.makenode("/root/temp/h_inpt/inpt");
  1294. model.makenode("/root/main/inpt/inpt_pid");
  1295. model.makenode("/root/main/inpt/inpt_indd");
  1296. model.makenode("/root/main/inpt/inpt_status");
  1297. model.copynode("/root/temp/h_inpt/inpt", "/root/main/inpt");
  1298. model.setValue("/root/temp/h_inpt/inpt/inpt_pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  1299. model.setValue("/root/temp/h_inpt/inpt/inpt_indd",model.getValue("/root/main/ptbs/ptbs_indd"));
  1300. model.setValue("/root/temp/h_inpt/inpt/inpt_status",tlpm_flag);
  1301. model.setValue("/root/send/data2/instcd",model.getValue("/root/main/ptbs/ptbs_instcd"));
  1302. submit("TRPMC00603")
  1303. }
  1304. ]]>
  1305. </script>
  1306. </button>
  1307. <button id="button4" class="btn3_letter4" style="left:0px; top:5px; width:115px; height:22px; ">
  1308. <caption>퇴원수납</caption>
  1309. <script type="javascript" ev:event="DOMActivate">
  1310. <![CDATA[
  1311. modal("SMPAI00100");
  1312. ]]>
  1313. </script>
  1314. </button>
  1315. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1316. <button id="button1" class="btn3_letter3" style="left:81px; top:5px; width:80px; height:22px; ">
  1317. <caption>진단서</caption>
  1318. <script type="javascript" ev:event="DOMActivate">
  1319. <![CDATA[
  1320. model.removenode("/root/main/patinfo");
  1321. model.makeNode("/root/main/patinfo/pid");
  1322. model.makeNode("/root/main/patinfo/hngnm");
  1323. model.makeNode("/root/main/patinfo/age");
  1324. model.makeNode("/root/main/patinfo/brthdd");
  1325. model.makeNode("/root/main/patinfo/rrgstno1");
  1326. model.makeNode("/root/main/patinfo/addr");
  1327. model.makeNode("/root/main/patinfo/hometel");
  1328. model.setValue("/root/main/patinfo/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  1329. model.setValue("/root/main/patinfo/hngnm", model.getValue("/root/main/ptbs/ptbs_hngnm"));
  1330. model.setValue("/root/main/patinfo/age", model.getValue("/root/main/ptbs/ptbs_age"));
  1331. var rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
  1332. var rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
  1333. var rrgstno = rrgstno1 + '-' + rrgstno2;
  1334. model.setValue("/root/main/patinfo/rrgstno1", rrgstno);
  1335. var today = getCurrentDate().substring(0,4);
  1336. var yy = rrgstno1.substring(0,2);
  1337. var dd = rrgstno1.substring(2,6);
  1338. var brthdd = (parseInt(today) - parseInt(yy) + 1).toString(10) + dd;
  1339. model.setValue("/root/main/patinfo/brthdd", brthdd);
  1340. var addr1 = model.getValue("/root/main/ptbs/ptbs_zipnm");
  1341. var addr2 = model.getValue("/root/main/ptbs/ptbs_detladdr");
  1342. var addr = addr1 + " " + addr2;
  1343. model.setValue("/root/main/patinfo/addr", addr);
  1344. model.setValue("/root/main/patinfo/hometel", model.getValue("/root/main/ptbs/ptbs_hometel"));
  1345. modal("../../../emr/medirecweb/xrw/SMMMR02900_제증명관리", "1","10", "150", "SMMMR02900", "/root/main/patinfo", "/root/main/patinfo");
  1346. model.removenode("/root/main/patinfo");
  1347. model.makeNode("/root/main/patinfo/patinfolist");
  1348. ]]>
  1349. </script>
  1350. </button>
  1351. <button id="button2" class="btn3_letter6" style="left:150px; top:5px; width:104px; height:22px; ">
  1352. <caption>특이환자관리</caption>
  1353. <script type="javascript" ev:event="DOMActivate">
  1354. <![CDATA[
  1355. model.makeNode("/root/main/patinfo/patinfolist/pid");
  1356. model.makeNode("/root/main/patinfo/patinfolist/hngnm");
  1357. model.makeNode("/root/main/patinfo/patinfolist/rrgstno1");
  1358. model.makeNode("/root/main/patinfo/patinfolist/rrgstno2");
  1359. modal("../../../pam/patinfomngtweb/xrw/SMPMC01300_특이환자관리", "1","10", "150", "SMPMC01300", "/root/main/patinfo/patinfolist", "/root/main/patinfo/patinfolist");
  1360. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  1361. ]]>
  1362. </script>
  1363. </button>
  1364. </group>
  1365. </xhtml:body>
  1366. </xhtml:html>