SMPMI00900_재원환자관리.xrw 142 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885
  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. <findcond>
  11. <pid/>
  12. <hngnm/>
  13. <orddeptcd/>
  14. <atdoctid/>
  15. <wardcd/>
  16. <insucd/>
  17. <instat>1</instat>
  18. <payownbamt/>
  19. <uncoamt/>
  20. <fstrgstdt1/>
  21. <fstrgstdt2/>
  22. <ihflag>0</ihflag>
  23. <inhospdays/>
  24. <ddflag>IN</ddflag>
  25. </findcond>
  26. <insihcs>
  27. <pid/>
  28. <indd/>
  29. <cretno/>
  30. <cnstseqno/>
  31. <acptdd/>
  32. <reqflag/>
  33. <reqresn/>
  34. <inhospflag/>
  35. <inhospresn/>
  36. <reqdd/>
  37. <reqdeptcd/>
  38. <reqdrid/>
  39. <delivefact/>
  40. <prcsstatcd/>
  41. <prcsstatcnts/>
  42. <endgrde/>
  43. <state/>
  44. <chnghospresn/>
  45. <endstatdd/>
  46. </insihcs>
  47. <insihdc>
  48. <pid/>
  49. <indd/>
  50. <cretno/>
  51. <cnstflag/>
  52. <cnstdetlseqno/>
  53. <workdd/>
  54. <cnstspec/>
  55. </insihdc>
  56. <cond1>
  57. <pid/>
  58. </cond1>
  59. <cond2>
  60. <type/>
  61. <pid/>
  62. <indd/>
  63. <cretno/>
  64. <orddeptcd/>
  65. <acptdd/>
  66. <cnstseqno/>
  67. </cond2>
  68. <cond3>
  69. <pid/>
  70. <indd/>
  71. <cretno/>
  72. <cnstdetlseqno/>
  73. </cond3>
  74. <cond4>
  75. <pid/>
  76. <rcptdd/>
  77. <rcptno/>
  78. <rcptseqno/>
  79. <dschdd/>
  80. <insukind/>
  81. <ordtype/>
  82. </cond4>
  83. <insihgt>
  84. <pid/>
  85. <indd/>
  86. <cretno/>
  87. <grnternm/>
  88. <grntertel/>
  89. <realcd/>
  90. <addr/>
  91. <grnternm1/>
  92. <grntertel1/>
  93. <real1/>
  94. <addr1/>
  95. <grnternm2/>
  96. <grntertel2/>
  97. <real2/>
  98. <addr2/>
  99. <state/>
  100. </insihgt>
  101. <data5>
  102. <srchcond/>
  103. <pid/>
  104. </data5>
  105. <prestinhosp>
  106. <inflag/>
  107. <indays/>
  108. </prestinhosp>
  109. <inhospendprescond>
  110. <fromdd/>
  111. <todd/>
  112. </inhospendprescond>
  113. <ihcsdelinfo>
  114. <instcd/>
  115. <pid/>
  116. <indd/>
  117. <cretno/>
  118. <acptdd/>
  119. <cnstseqno/>
  120. </ihcsdelinfo>
  121. </send>
  122. <main>
  123. <uncopat>
  124. <uncopatlist>
  125. <grduncopatlist>
  126. <pid/>
  127. <hngnm/>
  128. <indd/>
  129. <orddeptcd/>
  130. <wardcd/>
  131. <roomcd/>
  132. <totalamt/>
  133. <ownbtotamt/>
  134. <uncoamt/>
  135. <midrcptamt/>
  136. <cretno/>
  137. <insukind/>
  138. <mdlclamyn/>
  139. </grduncopatlist>
  140. <grduncopatprtnlist/>
  141. </uncopatlist>
  142. <ihgtinfo>
  143. <grnternm/>
  144. <grntertel/>
  145. <realcd/>
  146. <addr/>
  147. <grnternm1/>
  148. <grntertel1/>
  149. <real1/>
  150. <addr1/>
  151. <grnternm2/>
  152. <grntertel2/>
  153. <real2/>
  154. <addr2/>
  155. <state/>
  156. </ihgtinfo>
  157. <uncopatinfo>
  158. <pid/>
  159. <hngnm/>
  160. <zipcd1/>
  161. <zipcd2/>
  162. <zipcdseq/>
  163. <zipcdaddr/>
  164. <detladdr/>
  165. <age/>
  166. <sex/>
  167. <mpphontel/>
  168. <indd/>
  169. <dschdd/>
  170. <orddeptcd/>
  171. <orddeptnm/>
  172. <medispclid/>
  173. <medispclnm/>
  174. <atdoctid/>
  175. <atdoctnm/>
  176. <roomcd/>
  177. <insukind/>
  178. <cretno/>
  179. </uncopatinfo>
  180. <otptinptlist>
  181. <grdotptinpt>
  182. <ordtype/>
  183. <indd/>
  184. <dschdd/>
  185. <orddeptcd/>
  186. <atdoctid/>
  187. <insukind/>
  188. <suppkind/>
  189. </grdotptinpt>
  190. </otptinptlist>
  191. <opmiadmilist>
  192. <grdopmiadmi>
  193. <ordtype/>
  194. <indd/>
  195. <rcptexecdd/>
  196. <totalamt/>
  197. <totownbamt/>
  198. <payinsubamt/>
  199. <cashamt/>
  200. <uncoamt/>
  201. <uncorcptflag/>
  202. </grdopmiadmi>
  203. </opmiadmilist>
  204. <diagoprc>
  205. <diag/>
  206. <opcd/>
  207. </diagoprc>
  208. <uncoamt/>
  209. </uncopat>
  210. <mngtpat>
  211. <ptbsinfo>
  212. <pid/>
  213. <hngnm/>
  214. <zipcd1/>
  215. <zipcd2/>
  216. <zipcdseq/>
  217. <zipcdaddr/>
  218. <detladdr/>
  219. <age/>
  220. <sex/>
  221. <mpphontel/>
  222. <indd/>
  223. <dschdd/>
  224. <orddeptcd/>
  225. <orddeptnm/>
  226. <medispclid/>
  227. <medispclnm/>
  228. <atdoctid/>
  229. <atdoctnm/>
  230. <roomcd/>
  231. <inpath/>
  232. <indays/>
  233. <insukind/>
  234. <cretno/>
  235. <chngdept/>
  236. <inuncoamt/>
  237. <fstindays/>
  238. </ptbsinfo>
  239. <ihcsinfo>
  240. <acptdd/>
  241. <cnstseqno/>
  242. <inhospresn/>
  243. <reqresn/>
  244. <prcsstatcd>
  245. </prcsstatcd>
  246. <prcsstatcnts/>
  247. <endgrde/>
  248. <delivefact/>
  249. <fstindays/>
  250. <chnghospresn/>
  251. <endstatdd/>
  252. </ihcsinfo>
  253. <patreflist>
  254. <grdpatreflist>
  255. <rgstyn/>
  256. <cnstseqno/>
  257. <hngnm/>
  258. <roomcd/>
  259. <histstat/>
  260. <reqdd/>
  261. <reqdrid/>
  262. <impression/>
  263. <pid/>
  264. <indd/>
  265. <cretno/>
  266. <cnstseqno/>
  267. </grdpatreflist>
  268. <grdpatrefprtnlist/>
  269. </patreflist>
  270. <inpatdiaginfo>
  271. <inpatdiag/>
  272. <inpatopcd/>
  273. <instruments/>
  274. <nursememo/>
  275. <testtreat/>
  276. <nursetreat/>
  277. <spclmemo/>
  278. </inpatdiaginfo>
  279. <prestinhosplist>
  280. <prestinhosp/>
  281. </prestinhosplist>
  282. </mngtpat>
  283. <ihdcinfo>
  284. <grdihdcinfo>
  285. <cnstflag/>
  286. <workdd/>
  287. <cnstspec/>
  288. <lastupdtrnm/>
  289. <lastupdtrid/>
  290. <cnstdetlseqno/>
  291. </grdihdcinfo>
  292. </ihdcinfo>
  293. <ihdcinfo2>
  294. <workdd/>
  295. <cnstspec/>
  296. <cnstdetlseqno/>
  297. </ihdcinfo2>
  298. <ihcs_print>
  299. <rex_ihcs>
  300. <ihcs_acptdd/>
  301. <ihcs_hngnm/>
  302. <ihcs_sexage/>
  303. <ihcs_inhospdays/>
  304. <ihcs_pid/>
  305. <ihcs_orddeptnm/>
  306. <ihcs_medispclnm/>
  307. <ihcs_atdoctnm/>
  308. <ihcs_indd/>
  309. <ihcs_diagnm/>
  310. <ihcs_dschdd/>
  311. <ihcs_wardroomnm/>
  312. <ihcs_inpath/>
  313. <ihcs_chngdept/>
  314. <ihcs_reqresn/>
  315. <ihcs_inhospresn/>
  316. <ihcs_reqpath/>
  317. <ihcs_insukindnm/>
  318. <ihcs_cnstcnt/>
  319. <ihcs_phone/>
  320. <ihcs_address/>
  321. <ihcs_dschinhospdays/>
  322. <ihcs_prcsstat/>
  323. <ihcs_delivefact/>
  324. <ihcs_logo>http://dev999.cmcnu.or.kr:9081/himed/webapps/com/commonweb/images/logo001.gif</ihcs_logo>
  325. <ihcs_instcd>012</ihcs_instcd>
  326. </rex_ihcs>
  327. <rex_ihdc>
  328. <workdd/>
  329. <cnstspec/>
  330. <lastupdtrnm/>
  331. </rex_ihdc>
  332. </ihcs_print>
  333. <inhospendprescond>
  334. <prescondlist>
  335. <list/>
  336. </prescondlist>
  337. </inhospendprescond>
  338. </main>
  339. <init>
  340. <orddeptcd>
  341. <cd/>
  342. <nm/>
  343. <deptengabbr/>
  344. </orddeptcd>
  345. <orddrid>
  346. <cd/>
  347. <nm/>
  348. <dp/>
  349. <sp/>
  350. </orddrid>
  351. <discuncocd>
  352. <cd/>
  353. <nm/>
  354. </discuncocd>
  355. <insukind>
  356. <cd/>
  357. <nm/>
  358. </insukind>
  359. <suppkind>
  360. <up/>
  361. <cd/>
  362. <nm/>
  363. <ios/>
  364. </suppkind>
  365. <wardcd>
  366. <cd/>
  367. <nm/>
  368. <of/>
  369. </wardcd>
  370. <uncocd>
  371. <cd/>
  372. <nm/>
  373. <cls/>
  374. </uncocd>
  375. <instcd/>
  376. <P0002list>
  377. <P0002>
  378. <cdid/>
  379. <cdnm/>
  380. </P0002>
  381. </P0002list>
  382. <P0046list>
  383. <P0046>
  384. <cdid/>
  385. <cdnm/>
  386. </P0046>
  387. </P0046list>
  388. <P0497list>
  389. <P0497>
  390. <cdid/>
  391. <cdnm/>
  392. </P0497>
  393. </P0497list>
  394. <P0498list>
  395. <P0498>
  396. <cdid/>
  397. <cdnm/>
  398. </P0498>
  399. </P0498list>
  400. <P0499list>
  401. <P0499>
  402. <cdid/>
  403. <cdnm/>
  404. </P0499>
  405. </P0499list>
  406. <P0500list>
  407. <P0500>
  408. <cdid>-</cdid>
  409. <cdnm>-</cdnm>
  410. </P0500>
  411. </P0500list>
  412. <P0501list>
  413. <P0501>
  414. <cdid/>
  415. <cdnm/>
  416. </P0501>
  417. </P0501list>
  418. <PAM>
  419. <P0022list>
  420. <P0022>
  421. <cdid/>
  422. <cdnm/>
  423. </P0022>
  424. </P0022list>
  425. </PAM>
  426. </init>
  427. <hidden>
  428. <ihrqinfo>
  429. <reqflag/>
  430. <reqresn/>
  431. <inhospflag/>
  432. <inhospresn/>
  433. <reqdd/>
  434. <reqdeptcd/>
  435. <reqdrid/>
  436. </ihrqinfo>
  437. <ihcsinfo>
  438. <acptdd/>
  439. <cnstseqno/>
  440. <inhospresn/>
  441. <reqresn/>
  442. <prcsstatcnts/>
  443. <endgrde/>
  444. <delivefact/>
  445. <fstindays/>
  446. <prcsstatcd/>
  447. <chnghospresn/>
  448. <endstatdd/>
  449. </ihcsinfo>
  450. <ihgtinfo>
  451. <grnternm/>
  452. <grntertel/>
  453. <realcd/>
  454. <addr/>
  455. <grnternm1/>
  456. <grntertel1/>
  457. <real1/>
  458. <addr1/>
  459. <grnternm2/>
  460. <grntertel2/>
  461. <real2/>
  462. <addr2/>
  463. </ihgtinfo>
  464. <state/>
  465. <menuvalue/>
  466. <cmblist>
  467. <inhospresn/>
  468. <reqresn/>
  469. <chnghosp/>
  470. </cmblist>
  471. </hidden>
  472. <temp>
  473. <items>
  474. <nm>
  475. </nm>
  476. <cd>
  477. </cd>
  478. </items>
  479. <items>
  480. <nm>본인</nm>
  481. <cd>1</cd>
  482. </items>
  483. <items>
  484. <nm>배우자</nm>
  485. <cd>2</cd>
  486. </items>
  487. <items>
  488. <nm>자녀</nm>
  489. <cd>3</cd>
  490. </items>
  491. <items>
  492. <nm>부모</nm>
  493. <cd>4</cd>
  494. </items>
  495. <items>
  496. <nm>기타</nm>
  497. <cd>5</cd>
  498. </items>
  499. </temp>
  500. </root>
  501. </instance>
  502. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  503. <submission id="TRPMI00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/instcd" resultref="/root/init"/>
  504. <submission id="TRPMI00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond2" resultref="/root/hidden/ihgtinfo"/>
  505. <submission id="TRPMI00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond2" resultref="/root/main/uncopat/diagoprc"/>
  506. <submission id="TRPMI00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond2" resultref="/root/main/mngtpat/inpatdiaginfo"/>
  507. <submission id="TRPMI00905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond1/pid" resultref="/root/main/mngtpat/ptbsinfo"/>
  508. <submission id="TRPMI00906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond2" resultref="/root/hidden/ihrqinfo"/>
  509. <submission id="TRPMI00907" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond2" resultref="/root/hidden/ihcsinfo"/>
  510. <submission id="TRPMI00908" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond2" resultref="/root/main/ihdcinfo"/>
  511. <submission id="TRPMI00909" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond3" resultref="/root/main/ihdcinfo2"/>
  512. <submission id="TRPMI00910" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/findcond" resultref="/root/main/mngtpat/patreflist"/>
  513. <submission id="TRPMI00911" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond2" resultref="/root/main/mngtpat/ptbsinfo"/>
  514. <submission id="TRPMI00912" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/findcond" resultref="/root/main/uncopat/uncopatlist"/>
  515. <submission id="TRPMI00913" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond2" resultref="/root/main/uncopat/uncopatinfo"/>
  516. <submission id="TRPMI00914" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond4" resultref="/root/main/otptinptlist"/>
  517. <submission id="TRPMI00915" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond4" resultref="/root/main/opmiadmilist"/>
  518. <submission id="TRPMI00916" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond2" resultref="/root/main/uncopat/otptinptlist"/>
  519. <submission id="TRPMI00917" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond2" resultref="/root/main/uncopat/opmiadmilist"/>
  520. <submission id="TRPMI00918" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond1" resultref="/root/main/uncopat/uncopatinfo"/>
  521. <submission id="TRPMI00920" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond2" resultref="/root/main/uncopat/opcd"/>
  522. <submission id="TXPMI00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/insihcs"/>
  523. <submission id="TXPMI00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/insihdc"/>
  524. <submission id="TXPMI00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/insihdc"/>
  525. <submission id="TXPMI00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/insihgt"/>
  526. <!-- 20100122 JHP 수정추가 -->
  527. <submission id="TRPMI00921" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prestinhosp" resultref="/root/main/mngtpat/prestinhosplist"/>
  528. <!-- 20100128 JHP 수정추가 -->
  529. <submission id="TRPMI00922" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/inhospendprescond" resultref="/root/main/inhospendprescond/prescondlist"/>
  530. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  531. <submission id="TXPMI00905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ihcsdelinfo"/>
  532. </model>
  533. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  534. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  535. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  536. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  537. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  538. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  539. <script type="javascript">
  540. <![CDATA[
  541. function fOrdDrSet()
  542. {
  543. var sorddeptcd = model.getValue("/root/send/findcond/orddeptcd");
  544. if (model.getValue("/root/send/findcond/orddeptcd") != "") {
  545. cbo_atdoctid.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp = '" + sorddeptcd + "' ]";
  546. cbo_atdoctid.refresh();
  547. } else {
  548. cbo_atdoctid.choices.itemset.attribute("nodeset") = "/root/init/orddrid";
  549. cbo_atdoctid.refresh();
  550. }
  551. }
  552. function fInitialize(){
  553. model.resetInstanceNode("/root/main/mngtpat/ptbsinfo");
  554. model.resetInstanceNode("/root/main/ihcsinfo");
  555. model.removeNodeset("/root/main/ihdcinfo/grdihdcinfo");
  556. model.resetInstanceNode("/root/main/ihdcinfo2");
  557. model.removeNodeset("/root/main/mngtpat/patreflist/grdpatreflist");
  558. model.removeNodeset("/root/main/uncopat/uncopatlist/grduncopatlist");
  559. model.resetInstanceNode("/root/main/uncopat/uncopatinfo");
  560. model.removeNodeset("/root/main/uncopat/otptinptlist/grdotptinpt");
  561. model.removeNodeset("/root/main/uncopat/opmiadmilist/grdopmiadmi");
  562. model.resetInstanceNode("/root/main/uncopat/ihgtinfo");
  563. model.resetInstanceNode("/root/send/insihcs");
  564. model.resetInstanceNode("/root/send/insihdc");
  565. model.resetInstanceNode("/root/send/cond1");
  566. model.resetInstanceNode("/root/send/cond2");
  567. model.resetInstanceNode("/root/send/cond3");
  568. model.resetInstanceNode("/root/send/cond4");
  569. model.resetInstanceNode("/root/send/insihgt");
  570. model.resetInstanceNode("/root/hidden/ihrqinfo");
  571. model.resetInstanceNode("/root/hidden/ihcsinfo");
  572. model.resetInstanceNode("/root/hidden/ihgtinfo");
  573. }
  574. function clearIhcs(){
  575. model.resetInstanceNode("/root/main/mngtpat/ptbsinfo");
  576. model.resetInstanceNode("/root/main/mngtpat/ihcsinfo");
  577. model.resetInstanceNode("/root/main/mngtpat/inpatdiaginfo");
  578. }
  579. function clearInpatInfo(){
  580. model.resetInstanceNode("/root/main/mngtpat/ptbsinfo");
  581. model.resetInstanceNode("/root/main/mngtpat/ptbsinfo/hngnm");
  582. model.resetInstanceNode("/root/main/mngtpat/ptbsinfo/zipcd1");
  583. }
  584. function clearUnco(){
  585. model.resetInstanceNode("/root/main/uncopat/uncopatinfo");
  586. model.resetInstanceNode("/root/main/uncopat/uncoamt");
  587. model.resetInstanceNode("/root/main/uncopat/diagoprc");
  588. model.resetInstanceNode("/root/main/uncopat/ihgtinfo");
  589. model.removeNodeset("/root/main/uncopat/otptinptlist/grdotptinpt");
  590. model.removeNodeset("/root/main/uncopat/opmiadmilist/grdopmiadmi");
  591. }
  592. function clearIhdc(){
  593. model.resetInstanceNode("/root/main/ihdcinfo2/workdd");
  594. model.resetInstanceNode("/root/main/ihdcinfo2/cnstspec");
  595. model.resetInstanceNode("/root/main/ihdcinfo2/cnstdetlseqno");
  596. model.removeNodeset("/root/main/ihdcinfo/grdihdcinfo");
  597. }
  598. function fPrntSeq1(){
  599. var nodeList= instance1.selectNodes("/root/main/uncopat/uncopatlist/grduncopatprtnlist");
  600. if((nodeList != null) && (nodeList.length >0 )){
  601. exeReportPreview("RPPMI00902", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
  602. }else{
  603. }
  604. }
  605. function fPrntSeq2(){
  606. var nodeList= instance1.selectNodes("/root/main/mngtpat/patreflist/grdpatrefprtnlist");
  607. if((nodeList != null) && (nodeList.length >0 )){
  608. // 종결로 조회시에 종결일자 넣는다.
  609. if( model.getValue("/root/send/findcond/ddflag") == "END"){
  610. model.makeValue("/root/main/mngtpat/patreflist/grdpatrefprtnlist/ddflag/first", model.getValue("/root/send/findcond/fstrgstdt1"));
  611. model.makeValue("/root/main/mngtpat/patreflist/grdpatrefprtnlist/ddflag/last", model.getValue("/root/send/findcond/fstrgstdt2"));
  612. }
  613. exeReportPreview("RPPMI00903", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
  614. }else{
  615. }
  616. }
  617. function fPrntSeq3(){
  618. var nodeList= instance1.selectNodes("/root/main/mngtpat/prestinhosplist/prestinhosp");
  619. if((nodeList != null) && (nodeList.length >0 )){
  620. exeReportPreview("RPPMI00904", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
  621. }else{
  622. }
  623. }
  624. // 재원환자관리 환자조회 dbclick시 상단정보셋팅
  625. function fUpPatientInfos(){
  626. var pid = model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/pid");
  627. var indd = model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/indd");
  628. var cretno = model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/cretno");
  629. var instcd = model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/instcd");
  630. var ordtype = model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/ordtype");
  631. var indschacptstat = model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/indschacptstat");
  632. var dschdd = model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/dschdd");
  633. if(indschacptstat == "D" || indschacptstat == "T"){
  634. var srchdd = dschdd;
  635. }else{
  636. var srchdd = getCurrentDate();
  637. }
  638. // param 첫번째 붙는 값은 외래 : O, 입원 : I, 지원부서 : S, 수술 : T, 응급 : E, 의뢰 : C
  639. //var param = "I" + "▦" + pid + "▦" + indd + "▦" + cretno + "▦" + instcd + "▦" + srchdd;
  640. if(ordtype == "E"){
  641. var param = "E" + "▦" + pid + "▦" + indd + "▦" + cretno + "▦" + instcd + "▦" + srchdd;
  642. }else{
  643. var param = "I" + "▦" + pid + "▦" + indd + "▦" + cretno + "▦" + instcd + "▦" + srchdd;
  644. }
  645. setParameter("condparam", param);
  646. setParameter("errflag", "Y");
  647. modal("SPMMO08900", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  648. var useyn = getParameter("SPMMO08900_rtn_useyn");
  649. if(useyn == "Y") {
  650. setParameter("SPMMO08900_rtn_useyn", "");
  651. }else{
  652. }
  653. }
  654. ]]>
  655. </script>
  656. <script type="javascript" ev:event="xforms-ready">
  657. <![CDATA[
  658. if(submit("TRPMI00901") == false) {
  659. messageBox("공통코드 조회를", "E009");
  660. }
  661. model.makeNode("/root/init/P0002list");
  662. model.makeNode("/root/init/P0046list");
  663. model.makeNode("/root/init/P0497list");
  664. model.makeNode("/root/init/P0498list");
  665. model.makeNode("/root/init/P0499list");
  666. model.makeNode("/root/init/P0500list");
  667. model.makeNode("/root/init/P0501list");
  668. zbcfGetCodeList(new Array("P0002", "P0046", "P0497", "P0498", "P0499", "P0500", "P0501"),
  669. new Array("/root/init/P0002list", "/root/init/P0046list", "/root/init/P0497list", "/root/init/P0498list", "/root/init/P0499list", "/root/init/P0500list", "/root/init/P0501list"));
  670. model.makeNode("/root/init/PAM/P0022list");
  671. // 20100204 원무공통코드조회 pamcomnweb/js/PAM001.js TRPAM00105
  672. pamfGetCodeList(new Array("P0022"), new Array("/root/init/PAM/P0022list"));
  673. button10.dispatch("onclick");
  674. var currentdate = getCurrentDate();
  675. model.makeValue("/root/main/ihdcinfo2/workdd", currentdate);
  676. /*
  677. if (switch1.case2.attribute("selected") == "true") {
  678. model.setValue("/root/send/findcond/fstrgstdt1", "19000101");
  679. }else{
  680. model.setValue("/root/send/findcond/fstrgstdt1", currentdate);
  681. }
  682. */
  683. model.setValue("/root/send/findcond/fstrgstdt1", currentdate);
  684. model.setValue("/root/send/findcond/fstrgstdt2", currentdate);
  685. model.setValue("/root/send/findcond/inhospdays", 0);
  686. makeReportPreview(0, 0, 10, 10, "grp_report");
  687. var sUserID = getUserId().toUpperCase();
  688. if (sUserID == "83030101" || sUserID == "DEV207" || sUserID == "20700457" || sUserID == "12345678" ) {
  689. cmb_emrmenu.visible = true;
  690. } else {
  691. cmb_emrmenu.visible = false;
  692. }
  693. // 카덱스 관리, 전원관리, 전원현황, 전원소견서 버튼은 병원마다 다르게 적용되어 코디네이터가 간호쪽, 의료정보와 협의되어야 내용 적용될수 있다. (P0022, 350)
  694. var valueUserid = model.getValue("/root/init/PAM/P0022list/P0022[cdid='350']/cdnm");
  695. if(sUserID == valueUserid) {
  696. btn_cardex.disabled = false;
  697. btn_movehospmngt.disabled = false;
  698. btn_movehospstat.disabled = false;
  699. btn_movehosppaper.disabled = false;
  700. }else{
  701. btn_cardex.disabled = true;
  702. btn_movehospmngt.disabled = true;
  703. btn_movehospstat.disabled = true;
  704. btn_movehosppaper.disabled = true;
  705. }
  706. model.refresh();
  707. ]]>
  708. </script>
  709. <script type="javascript" ev:event="xforms-model-destruct">
  710. <![CDATA[
  711. // 상단정보 제거
  712. delPatientInfos(); //common.js
  713. ]]>
  714. </script>
  715. </xhtml:head>
  716. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  717. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  718. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:245px; height:13px; ">재원미수관리및 재원환자관리</caption>
  719. </group>
  720. <group id="group3" style="left:0px; top:13px; width:1195px; height:744px; ">
  721. <button id="btn_print2" class="btn2_letter2" style="left:321px; top:173px; width:42px; height:19px; ">
  722. <caption>출력</caption>
  723. <script type="javascript" ev:event="DOMActivate">
  724. <![CDATA[
  725. fPrntSeq2();
  726. ]]>
  727. </script>
  728. </button>
  729. <button id="btn_etc1" class="btn2_letter3" style="left:429px; top:173px; width:53px; height:19px; ">
  730. <caption>펼치기</caption>
  731. <script type="javascript" ev:event="DOMActivate">
  732. <![CDATA[
  733. if (grd_patreflist.attribute("width") == "482") {
  734. grd_patreflist.attribute("width") = "1000";
  735. btn_etc1.attribute("class") = "btn5_letter3";
  736. btn_etc1.attribute("color") = "#ff0066";
  737. } else {
  738. grd_patreflist.attribute("width") = "482";
  739. btn_etc1.attribute("class") = "btn2_letter3";
  740. }
  741. //649
  742. ]]>
  743. </script>
  744. </button>
  745. <switch id="switch1" class="sw_box" style="left:487px; top:32px; width:707px; height:507px; border-color:#cc99ff; border-style:solid; ">
  746. <case id="case1" selected="true">
  747. <line id="line29" class="line_2" style="x1:5px; y1:100px; x2:700px; y2:100px; "/>
  748. <line id="line28" class="line_2" style="x1:5px; y1:76px; x2:700px; y2:76px; "/>
  749. <line id="line32" class="line_2" style="x1:5px; y1:196px; x2:700px; y2:196px; "/>
  750. <line id="line31" class="line_2" style="x1:5px; y1:220px; x2:700px; y2:220px; "/>
  751. <line id="line30" class="line_2" style="x1:5px; y1:124px; x2:700px; y2:124px; "/>
  752. <line id="line27" class="line_2" style="x1:5px; y1:52px; x2:700px; y2:52px; "/>
  753. <input id="input38" ref="/root/main/uncopat/uncopatinfo/zipcd1" class="input_default" disabled="true" editable="false" style="left:285px; top:31px; width:30px; height:19px; "/>
  754. <input id="input40" ref="/root/main/uncopat/uncoamt" class="input_default" disabled="true" editable="false" format="#,###" style="left:99px; top:103px; width:100px; height:19px; text-align:right; "/>
  755. <caption id="caption51" class="cell_1" style="left:383px; top:102px; width:80px; height:23px; vertical-align:middle; ">병실</caption>
  756. <input id="input41" ref="/root/main/uncopat/uncopatinfo/zipcd2" class="input_default" disabled="true" editable="false" style="left:318px; top:31px; width:30px; height:19px; "/>
  757. <input id="input43" ref="/root/main/uncopat/uncopatinfo/age" class="input_default" disabled="true" editable="false" style="left:614px; top:31px; width:41px; height:19px; "/>
  758. <caption id="caption53" class="cell_1" style="left:5px; top:102px; width:91px; height:23px; vertical-align:middle; ">재원미수금</caption>
  759. <caption id="caption54" class="cell_1" style="left:202px; top:78px; width:80px; height:23px; vertical-align:middle; ">진료과</caption>
  760. <caption id="caption55" class="cell_1" style="left:5px; top:78px; width:91px; height:23px; vertical-align:middle; ">보험유형</caption>
  761. <input id="input45" ref="/root/main/uncopat/uncopatinfo/sex" class="input_default" disabled="true" editable="false" style="left:658px; top:31px; width:42px; height:19px; "/>
  762. <input id="input46" ref="/root/main/uncopat/uncopatinfo/mpphontel" class="input_default" disabled="true" editable="false" style="left:614px; top:55px; width:86px; height:19px; "/>
  763. <caption id="caption59" class="tit_2" style="left:10px; top:10px; width:170px; height:13px; ">환자정보</caption>
  764. <input id="input48" ref="/root/main/uncopat/uncopatinfo/roomcd" class="input_default" disabled="true" editable="false" style="left:466px; top:103px; width:62px; height:19px; "/>
  765. <caption id="caption60" class="cell_1" style="left:531px; top:54px; width:80px; height:23px; vertical-align:middle; ">전화번호</caption>
  766. <caption id="caption61" class="cell_1" style="left:5px; top:54px; width:91px; height:23px; vertical-align:middle; ">성명</caption>
  767. <input id="input49" ref="/root/main/uncopat/uncopatinfo/detladdr" class="input_default" disabled="true" editable="false" style="left:285px; top:55px; width:243px; height:19px; "/>
  768. <caption id="caption62" class="cell_1" style="left:5px; top:30px; width:91px; height:23px; vertical-align:middle; ">환자번호</caption>
  769. <input id="input51" ref="/root/main/uncopat/uncopatinfo/indd" class="input_default" disabled="true" editable="false" format="yyyy-mm-dd" style="left:614px; top:79px; width:86px; height:19px; "/>
  770. <caption id="caption63" class="cell_1" style="left:531px; top:78px; width:80px; height:23px; vertical-align:middle; ">입원일자</caption>
  771. <input id="input53" ref="/root/main/uncopat/uncopatinfo/zipcdaddr" class="input_default" disabled="true" editable="false" style="left:351px; top:31px; width:177px; height:19px; "/>
  772. <caption id="caption65" class="cell_1" style="left:202px; top:54px; width:80px; height:23px; vertical-align:middle; ">하위주소</caption>
  773. <line id="line5" class="line_1" style="x1:5px; y1:25px; x2:700px; y2:25px; "/>
  774. <input id="input55" ref="/root/main/uncopat/uncopatinfo/dschdd" class="input_default" disabled="true" editable="false" format="yyyy-mm-dd" style="left:614px; top:103px; width:86px; height:19px; "/>
  775. <caption id="caption67" class="cell_1" style="left:531px; top:102px; width:80px; height:23px; vertical-align:middle; ">퇴원일자</caption>
  776. <caption id="caption68" class="cell_1" style="left:202px; top:30px; width:80px; height:23px; vertical-align:middle; ">주소</caption>
  777. <caption id="caption69" class="cell_1" style="left:202px; top:102px; width:80px; height:23px; vertical-align:middle; ">전문의</caption>
  778. <caption id="caption71" class="cell_1" style="left:531px; top:30px; width:80px; height:23px; vertical-align:middle; ">나이/성별</caption>
  779. <input id="ipt_pid" ref="/root/main/uncopat/uncopatinfo/pid" class="input_essential" navindex="11" style="left:99px; top:31px; width:100px; height:19px; ">
  780. <script type="javascript" ev:event="onkeypress">
  781. <![CDATA[
  782. setInputNodeCurText();
  783. if(event.keyCode == "13") {
  784. var pid = model.getValue("/root/main/uncopat/uncopatinfo/pid");
  785. clearUnco();
  786. clearIhdc();
  787. //여기에 등록번호를 입력하고 엔터를 치면 단순하게 재원중 환자정보만 보여진다.
  788. //여기서는 단순히 새로 입력하고자 할때 번호입력후 엔터를 친다.
  789. //혹여 기존 입력된 미수내역을 조회하고자 할때는 조회조건에 있는 환자번호에 등록번호를 입력하고 조회해서 봐야한다.
  790. model.setValue("/root/main/uncopat/uncopatinfo/pid", pid);
  791. model.setValue("/root/send/cond1/pid", model.getValue("/root/main/uncopat/uncopatinfo/pid"));
  792. //재원환자정보
  793. if (submit("TRPMI00918")) {
  794. var sPid = model.getValue("/root/main/uncopat/uncopatinfo/pid");
  795. if(isNull(sPid)) {
  796. model.makeNode("/root/main/uncopat/uncopatinfo/pid");
  797. messageBox("조회된 결과가", "I004");
  798. return;
  799. }
  800. }
  801. if(model.getValue("/root/main/uncopat/uncopatinfo/dschdd") == "99991231") {
  802. model.setValue("/root/main/uncopat/uncopatinfo/dschdd" , "");
  803. }
  804. model.setValue("/root/send/cond2/type", "1");
  805. model.setValue("/root/send/cond2/pid", model.getValue("/root/main/uncopat/uncopatinfo/pid"));
  806. model.setValue("/root/send/cond2/indd", model.getValue("/root/main/uncopat/uncopatinfo/indd"));
  807. model.setValue("/root/send/cond2/cretno", model.getValue("/root/main/uncopat/uncopatinfo/cretno"));
  808. model.resetInstanceNode("/root/main/ihgtinfo");
  809. submit("TRPMI00902"); /* 보증인 조회 */
  810. // copyNodeType("/root/main/ihgtinfo", "/root/hidden/ihgtinfo", "replace");
  811. model.setValue("/root/main/uncopat/ihgtinfo/grnternm", model.getValue("/root/hidden/ihgtinfo/grnternm"));
  812. model.setValue("/root/main/uncopat/ihgtinfo/grntertel", model.getValue("/root/hidden/ihgtinfo/grntertel"));
  813. model.setValue("/root/main/uncopat/ihgtinfo/realcd", model.getValue("/root/hidden/ihgtinfo/realcd"));
  814. model.setValue("/root/main/uncopat/ihgtinfo/addr", model.getValue("/root/hidden/ihgtinfo/addr"));
  815. model.setValue("/root/main/uncopat/ihgtinfo/grnternm1", model.getValue("/root/hidden/ihgtinfo/grnternm1"));
  816. model.setValue("/root/main/uncopat/ihgtinfo/grntertel1", model.getValue("/root/hidden/ihgtinfo/grntertel1"));
  817. model.setValue("/root/main/uncopat/ihgtinfo/real1", model.getValue("/root/hidden/ihgtinfo/real1"));
  818. model.setValue("/root/main/uncopat/ihgtinfo/addr1", model.getValue("/root/hidden/ihgtinfo/addr1"));
  819. model.setValue("/root/main/uncopat/ihgtinfo/grnternm2", model.getValue("/root/hidden/ihgtinfo/grnternm2"));
  820. model.setValue("/root/main/uncopat/ihgtinfo/grntertel2", model.getValue("/root/hidden/ihgtinfo/grntertel2"));
  821. model.setValue("/root/main/uncopat/ihgtinfo/real2", model.getValue("/root/hidden/ihgtinfo/real2"));
  822. model.setValue("/root/main/uncopat/ihgtinfo/addr2", model.getValue("/root/hidden/ihgtinfo/addr2"));
  823. if (model.getValue("/root/hidden/ihgtinfo/grnternm") == "") {
  824. model.setValue("/root/main/uncopat/ihgtinfo/state", "I");
  825. } else {
  826. model.setValue("/root/main/uncopat/ihgtinfo/state", "U");
  827. }
  828. model.setValue("/root/send/cond2/type", model.getValue("/root/main/uncopat/uncopatinfo/orddeptcd"));
  829. submit("TRPMI00903"); /* 상병 조회 */
  830. submit("TRPMI00920"); //수술명조회
  831. submit("TRPMI00916"); /* 내원내역 */
  832. submit("TRPMI00917"); /* 수납내역 */
  833. model.removeNodeset("/root/main/ihdcinfo/grdihdcinfo");
  834. model.setValue("/root/send/cond2/type", "1");
  835. submit("TRPMI00908"); /* 상세내역 조회 */
  836. var currentdate = getCurrentDate();
  837. model.setValue("/root/main/ihdcinfo2/workdd", currentdate);
  838. model.refresh();
  839. }
  840. ]]>
  841. </script>
  842. </input>
  843. <input id="input58" ref="/root/main/uncopat/uncopatinfo/hngnm" class="input_essential" style="left:99px; top:55px; width:100px; height:19px; "/>
  844. <input id="input39" ref="/root/main/uncopat/diagoprc/diag" class="input_default" disabled="true" editable="false" style="left:99px; top:199px; width:601px; height:19px; "/>
  845. <caption id="caption26" class="cell_1" style="left:5px; top:222px; width:91px; height:23px; vertical-align:middle; ">수술명</caption>
  846. <input id="input54" ref="/root/main/uncopat/diagoprc/opcd" class="input_default" disabled="true" editable="false" style="left:99px; top:223px; width:601px; height:19px; "/>
  847. <caption id="caption52" class="cell_1" style="left:5px; top:198px; width:91px; height:23px; vertical-align:middle; ">진단명</caption>
  848. <caption id="caption56" class="tit_2" style="left:10px; top:254px; width:170px; height:13px; ">내원내역</caption>
  849. <line id="line6" class="line_1" style="x1:5px; y1:269px; x2:700px; y2:269px; "/>
  850. <datagrid id="grd_otptinpt" nodeset="/root/main/uncopat/otptinptlist/grdotptinpt" caption="구분^진료/입원일자^퇴원일자^진료과^진료의^보험유형^보조유형" colsep="^" colwidth="40, 85, 85, 100, 90, 155, 117" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:5px; top:274px; width:695px; height:92px; ">
  851. <col disabled="true" ref="ordtype" type="combo" style="text-align:center; ">
  852. <choices>
  853. <item>
  854. <label>입원</label>
  855. <value>1</value>
  856. </item>
  857. <item>
  858. <label>외래</label>
  859. <value>2</value>
  860. </item>
  861. </choices>
  862. </col>
  863. <col ref="indd" type="output" format="yyyy-mm-dd"/>
  864. <col ref="dschdd" type="output" format="yyyy-mm-dd"/>
  865. <col disabled="true" ref="orddeptcd" type="combo">
  866. <choices>
  867. <itemset nodeset="/root/init/orddeptcd">
  868. <label ref="nm"/>
  869. <value ref="cd"/>
  870. </itemset>
  871. </choices>
  872. </col>
  873. <col disabled="true" ref="atdoctid" type="combo">
  874. <choices>
  875. <itemset nodeset="/root/init/orddrid">
  876. <label ref="nm"/>
  877. <value ref="cd"/>
  878. </itemset>
  879. </choices>
  880. </col>
  881. <col disabled="true" ref="insukind" type="combo">
  882. <choices>
  883. <itemset nodeset="/root/init/insukind">
  884. <label ref="nm"/>
  885. <value ref="cd"/>
  886. </itemset>
  887. </choices>
  888. </col>
  889. <col disabled="true" ref="suppkind" type="combo">
  890. <choices>
  891. <itemset nodeset="/root/init/suppkind">
  892. <label ref="nm"/>
  893. <value ref="cd"/>
  894. </itemset>
  895. </choices>
  896. </col>
  897. </datagrid>
  898. <datagrid id="grd_opmiadmi" nodeset="/root/main/uncopat/opmiadmilist/grdopmiadmi" caption="구분^진료/입원일자^수납일자^총진료비^본인부담^보험자부담^수납금액^미수금액^미수사유^진료과^보험유형^보조유형" colsep="^" colwidth="40, 85, 85, 80, 75, 75, 75, 75, 83" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:396px; width:695px; height:100px; ">
  899. <col disabled="true" ref="ordtype" type="combo" style="text-align:center; ">
  900. <choices>
  901. <item>
  902. <label>입원</label>
  903. <value>1</value>
  904. </item>
  905. <item>
  906. <label>외래</label>
  907. <value>2</value>
  908. </item>
  909. </choices>
  910. </col>
  911. <col ref="indd" type="output" format="yyyy-mm-dd"/>
  912. <col ref="rcptexecdd" type="output" format="yyyy-mm-dd"/>
  913. <col ref="totalamt" format="#,###" style="text-align:right; "/>
  914. <col ref="totownbamt" format="#,###" style="text-align:right; "/>
  915. <col ref="payinsubamt" format="#,###" style="text-align:right; "/>
  916. <col ref="cashamt" format="#,###" style="text-align:right; "/>
  917. <col ref="uncoamt" format="#,###" style="text-align:right; "/>
  918. <col disabled="true" ref="uncorcptflag" type="combo">
  919. <choices>
  920. <itemset nodeset="/root/init/uncocd">
  921. <label ref="nm"/>
  922. <value ref="cd"/>
  923. </itemset>
  924. </choices>
  925. </col>
  926. </datagrid>
  927. <caption id="caption72" class="tit_2" style="left:10px; top:375px; width:170px; height:13px; ">수납내역</caption>
  928. <line id="line7" class="line_1" style="x1:5px; y1:391px; x2:700px; y2:391px; "/>
  929. <input id="ipt_grnternm" ref="/root/main/uncopat/ihgtinfo/grnternm" class="input_default" navindex="12" imemode="hangul" style="left:99px; top:127px; width:80px; height:19px; "/>
  930. <input id="ipt_grnternm1" ref="/root/main/uncopat/ihgtinfo/grnternm1" class="input_default" navindex="15" imemode="hangul" style="left:99px; top:151px; width:80px; height:19px; "/>
  931. <input id="ipt_grnternm2" ref="/root/main/uncopat/ihgtinfo/grnternm2" class="input_default" navindex="18" imemode="hangul" style="left:99px; top:175px; width:80px; height:19px; "/>
  932. <input id="ipt_grntertel" ref="/root/main/uncopat/ihgtinfo/grntertel" class="input_default" navindex="13" imemode="numeric" style="left:182px; top:127px; width:90px; height:19px; "/>
  933. <input id="ipt_grntertel1" ref="/root/main/uncopat/ihgtinfo/grntertel1" class="input_default" navindex="16" imemode="numeric" style="left:182px; top:151px; width:90px; height:19px; "/>
  934. <input id="ipt_grntertel2" ref="/root/main/uncopat/ihgtinfo/grntertel2" class="input_default" navindex="19" imemode="numeric" style="left:182px; top:175px; width:90px; height:19px; "/>
  935. <input id="ipt_addr" ref="/root/main/uncopat/ihgtinfo/addr" class="input_default" navindex="14" imemode="hangul" style="left:340px; top:127px; width:360px; height:19px; "/>
  936. <input id="ipt_addr1" ref="/root/main/uncopat/ihgtinfo/addr1" class="input_default" navindex="17" imemode="hangul" style="left:340px; top:151px; width:360px; height:19px; "/>
  937. <input id="ipt_addr2" ref="/root/main/uncopat/ihgtinfo/addr2" class="input_default" navindex="20" imemode="hangul" style="left:340px; top:175px; width:360px; height:19px; "/>
  938. <caption id="caption90" class="cell_1" style="left:5px; top:126px; width:91px; height:71px; ">연대보증인 (성명/연락처/관계/주소)</caption>
  939. <line id="line34" class="line_2" style="x1:99px; y1:148px; x2:700px; y2:148px; "/>
  940. <line id="line35" class="line_2" style="x1:99px; y1:172px; x2:700px; y2:172px; "/>
  941. <line id="line33" class="line_3" style="x1:5px; y1:244px; x2:700px; y2:244px; "/>
  942. <input id="input2" ref="/root/main/uncopat/uncopatinfo/cretno" visibility="hidden" style="left:665px; top:245px; width:25px; height:15px; "/>
  943. <select1 id="combo1" ref="/root/main/uncopat/ihgtinfo/realcd" appearance="minimal" style="left:275px; top:127px; width:60px; height:19px; ">
  944. <choices>
  945. <itemset nodeset="/root/temp/items">
  946. <label ref="nm"/>
  947. <value ref="cd"/>
  948. </itemset>
  949. </choices>
  950. </select1>
  951. <select1 id="combo2" ref="/root/main/uncopat/ihgtinfo/real1" appearance="minimal" style="left:275px; top:151px; width:60px; height:19px; ">
  952. <choices>
  953. <itemset nodeset="/root/temp/items">
  954. <label ref="nm"/>
  955. <value ref="cd"/>
  956. </itemset>
  957. </choices>
  958. </select1>
  959. <select1 id="combo3" ref="/root/main/uncopat/ihgtinfo/real2" appearance="minimal" style="left:275px; top:175px; width:60px; height:19px; ">
  960. <choices>
  961. <itemset nodeset="/root/temp/items">
  962. <label ref="nm"/>
  963. <value ref="cd"/>
  964. </itemset>
  965. </choices>
  966. </select1>
  967. <select1 id="combo5" ref="/root/main/uncopat/uncopatinfo/insukind" disabled="true" appearance="minimal" style="left:99px; top:80px; width:100px; height:19px; ">
  968. <choices>
  969. <itemset nodeset="/root/init/insukind">
  970. <label ref="nm"/>
  971. <value ref="cd"/>
  972. </itemset>
  973. </choices>
  974. </select1>
  975. <input id="input21" ref="/root/main/uncopat/uncopatinfo/orddeptnm" class="input_default" disabled="true" editable="false" style="left:285px; top:79px; width:243px; height:19px; "/>
  976. <input id="input22" ref="/root/main/uncopat/uncopatinfo/medispclnm" class="input_default" disabled="true" editable="false" style="left:285px; top:103px; width:95px; height:19px; text-align:left; "/>
  977. </case>
  978. <case id="case2">
  979. <group id="grp_imsi" visibility="hidden" style="left:5px; top:355px; width:695px; height:5px; ">
  980. <datagrid id="grd_prescondlist" nodeset="/root/main/inhospendprescond/prescondlist/list" class="datagrid2" visibility="hidden" caption="진료과^등록건수^해결건수^귀가^협력병원^비협력병원^자매병원^가정간호^사망^취소^기타" colsep="^" colwidth="148, 58, 62, 34, 55, 66, 60, 57, 44, 42, 37" dataheight="23" defaultrows="1" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:367px; top:358px; width:333px; height:138px; ">
  981. <col ref="orddeptcd" style="text-align:center; "/>
  982. <col ref="incnt" style="text-align:center; "/>
  983. <col ref="solvecnt" style="text-align:center; "/>
  984. <col ref="comehome" style="text-align:center; "/>
  985. <col ref="coophosp" style="left:322px; top:32px; width:55px; height:23px; text-align:center; "/>
  986. <col ref="ncoophosp" style="text-align:center; "/>
  987. <col ref="sishosp" style="text-align:center; "/>
  988. <col ref="homenursing" style="text-align:left; "/>
  989. <col ref="deth" style="text-align:center; "/>
  990. <col ref="cncl" style="text-align:center; "/>
  991. <col ref="etc" style="text-align:center; "/>
  992. </datagrid>
  993. <line id="line20" class="line_2" visibility="hidden" style="x1:5px; y1:446px; x2:365px; y2:446px; "/>
  994. <line id="line42" class="line_2" visibility="hidden" style="x1:5px; y1:421px; x2:365px; y2:421px; "/>
  995. <caption id="caption40" class="cell_1" visibility="hidden" style="left:5px; top:473px; width:91px; height:23px; vertical-align:middle; ">기구및삽관</caption>
  996. <input id="input30" ref="/root/main/mngtpat/inpatdiaginfo/instruments" class="input_default" disabled="true" visibility="hidden" editable="false" style="left:98px; top:475px; width:65px; height:19px; "/>
  997. <input id="input20" ref="/root/main/mngtpat/inpatdiaginfo/nursetreat" class="input_default" disabled="true" visibility="hidden" editable="false" style="left:98px; top:450px; width:65px; height:19px; "/>
  998. <line id="line24" class="line_2" visibility="hidden" style="x1:5px; y1:471px; x2:365px; y2:471px; "/>
  999. <line id="line25" class="line_3" visibility="hidden" style="x1:5px; y1:496px; x2:699px; y2:496px; "/>
  1000. <input id="input13" ref="/root/main/mngtpat/inpatdiaginfo/inpatdiag" class="input_default" disabled="true" visibility="hidden" editable="false" style="left:98; top:425px; width:65px; height:19px; "/>
  1001. <caption id="caption24" class="cell_1" visibility="hidden" style="left:5px; top:356px; width:91px; height:65px; vertical-align:middle; ">메모</caption>
  1002. <caption id="caption47" class="cell_1" visibility="hidden" style="left:5px; top:448px; width:91px; height:23px; vertical-align:middle; ">간호처치</caption>
  1003. <input id="input17" ref="/root/main/mngtpat/inpatdiaginfo/spclmemo" class="input_default" disabled="true" visibility="hidden" editable="false" style="left:264px; top:475px; width:98px; height:19px; "/>
  1004. <caption id="caption27" class="cell_1" visibility="hidden" style="left:170px; top:423px; width:91px; height:23px; vertical-align:middle; ">수술명</caption>
  1005. <input id="input18" ref="/root/main/mngtpat/inpatdiaginfo/inpatopcd" class="input_default" disabled="true" visibility="hidden" editable="false" style="left:264px; top:425px; width:98px; height:19px; "/>
  1006. <caption id="caption28" class="cell_1" visibility="hidden" style="left:170px; top:448px; width:91px; height:23px; vertical-align:middle; ">검사/처치</caption>
  1007. <input id="input19" ref="/root/main/mngtpat/inpatdiaginfo/testtreat" class="input_default" disabled="true" visibility="hidden" editable="false" style="left:264px; top:450px; width:98px; height:19px; "/>
  1008. <caption id="caption29" class="cell_1" visibility="hidden" style="left:170px; top:473px; width:91px; height:23px; vertical-align:middle; ">금기및특이사항</caption>
  1009. <caption id="caption19" class="cell_1" visibility="hidden" style="left:5px; top:423px; width:91px; height:23px; vertical-align:middle; ">진단명</caption>
  1010. <textarea id="textarea5" ref="/root/main/mngtpat/inpatdiaginfo/nursememo" class="input_default" disabled="true" visibility="hidden" editable="false" style="left:98px; top:360px; width:265px; height:58px; "/>
  1011. </group>
  1012. <line id="line18" class="line_2" style="x1:5px; y1:328px; x2:699px; y2:328px; "/>
  1013. <line id="line17" class="line_2" style="x1:5px; y1:287px; x2:699px; y2:287px; "/>
  1014. <line id="line16" class="line_2" style="x1:5px; y1:262px; x2:699px; y2:262px; "/>
  1015. <line id="line15" class="line_2" style="x1:5px; y1:237px; x2:699px; y2:237px; "/>
  1016. <line id="line13" class="line_2" style="x1:5px; y1:172px; x2:699px; y2:172px; "/>
  1017. <line id="line12" class="line_2" style="x1:5px; y1:148px; x2:699px; y2:148px; "/>
  1018. <line id="line11" class="line_2" style="x1:5px; y1:124px; x2:699px; y2:124px; "/>
  1019. <line id="line10" class="line_2" style="x1:5px; y1:100px; x2:699px; y2:100px; "/>
  1020. <line id="line9" class="line_2" style="x1:5px; y1:76px; x2:699px; y2:76px; "/>
  1021. <line id="line8" class="line_2" style="x1:5px; y1:52px; x2:699px; y2:52px; "/>
  1022. <caption id="caption11" class="tit_2" style="left:10px; top:10px; width:170px; height:14px; ">환자정보</caption>
  1023. <line id="line2" class="line_1" style="x1:5px; y1:25px; x2:699px; y2:25px; "/>
  1024. <caption id="caption30" class="cell_1" style="left:5px; top:289px; width:91px; height:39px; font-weight:bold; vertical-align:middle; ">
  1025. <![CDATA[<< 진행상태]]>
  1026. </caption>
  1027. <caption id="caption21" class="cell_1" style="left:5px; top:150px; width:91px; height:23px; vertical-align:middle; ">보험유형</caption>
  1028. <caption id="caption33" class="cell_1" style="left:5px; top:78px; width:91px; height:23px; vertical-align:middle; ">접수일자</caption>
  1029. <caption id="caption12" class="cell_1" style="left:5px; top:54px; width:91px; height:23px; vertical-align:middle; ">성명</caption>
  1030. <caption id="caption35" class="cell_1" style="left:5px; top:214px; width:91px; height:23px; font-weight:bold; vertical-align:middle; ">
  1031. <![CDATA[<< 재원사유]]>
  1032. </caption>
  1033. <caption id="caption13" class="cell_1" style="left:5px; top:30px; width:91px; height:23px; vertical-align:middle; ">환자번호</caption>
  1034. <caption id="caption36" class="cell_1" style="left:5px; top:239px; width:91px; height:23px; font-weight:bold; vertical-align:middle; ">
  1035. <![CDATA[<< 등록사유]]>
  1036. </caption>
  1037. <caption id="caption14" class="cell_1" style="left:5px; top:102px; width:91px; height:23px; vertical-align:middle; ">접수번호</caption>
  1038. <caption id="caption15" class="cell_1" style="left:5px; top:174px; width:91px; height:23px; vertical-align:middle; ">전과</caption>
  1039. <caption id="caption17" class="cell_1" style="left:5px; top:126px; width:91px; height:23px; vertical-align:middle; ">내원경로</caption>
  1040. <input id="input7" ref="/root/main/mngtpat/ihcsinfo/acptdd" class="input_default" disabled="true" editable="false" format="yyyy-mm-dd" style="left:99px; top:79px; width:100px; height:19px; "/>
  1041. <input id="input8" ref="/root/main/mngtpat/ihcsinfo/cnstseqno" class="input_default" disabled="true" editable="false" style="left:99px; top:103px; width:100px; height:19px; "/>
  1042. <input id="input23" ref="/root/main/mngtpat/ptbsinfo/chngdept" class="input_default" disabled="true" editable="false" style="left:99px; top:175px; width:100px; height:19px; "/>
  1043. <textarea id="txt_inhospresn" ref="/root/main/mngtpat/ihcsinfo/inhospresn" style="left:256px; top:216px; width:443px; height:19px; "/>
  1044. <textarea id="txt_reqresn" ref="/root/main/mngtpat/ihcsinfo/reqresn" imemode="hangul" style="left:256px; top:241px; width:443px; height:19px; "/>
  1045. <input id="input1" ref="/root/main/mngtpat/ptbsinfo/pid" class="input_essential" style="left:99px; top:32px; width:100px; height:19px; ">
  1046. <script type="javascript" ev:event="onkeyup">
  1047. <![CDATA[
  1048. if (event.keyCode == "13") {
  1049. setInputNodeCurText();
  1050. model.setvalue("/root/send/cond1/pid", model.getValue("/root/main/mngtpat/ptbsinfo/pid"));
  1051. // 환자기본정보 조회
  1052. if(submit("TRPMI00905")) {
  1053. var sPid = model.getValue("/root/main/mngtpat/ptbsinfo/pid");
  1054. if (isNull(sPid)) {
  1055. model.makeNode("/root/main/mngtpat/ptbsinfo/pid");
  1056. messageBox("조회된 결과가", "I004");
  1057. return;
  1058. }
  1059. }
  1060. // ihrq, ihcs 재원환자의뢰내역, 재원환자상담내역 조회, ihdc 재원환자 상세상담내역 조회
  1061. // 20091209 JHP 추가 indd, cretno 주석처리 - 환자번호 입력후 엔터는 새로운 입력이라는 전제 하에 기존데이터 불러오는 부분은 주석처리함.
  1062. /*
  1063. model.setvalue("/root/send/cond2/pid", model.getValue("/root/main/mngtpat/ptbsinfo/pid"));
  1064. model.setvalue("/root/send/cond2/indd", model.getValue("/root/main/mngtpat/ptbsinfo/indd"));
  1065. model.setvalue("/root/send/cond2/cretno", model.getValue("/root/main/mngtpat/ptbsinfo/cretno"));
  1066. submit("TRPMI00906");
  1067. submit("TRPMI00907");
  1068. if (model.getvalue("/root/hidden/ihcsinfo/acptdd") == "" && model.getvalue("/root/hidden/ihrqinfo/reqdd") != "") {
  1069. //model.setValue("/root/main/mngtpat/ihcsinfo/inhospresn", model.getValue("/root/hidden/ihrqinfo/inhospresn"));
  1070. //model.setvalue("/root/main/mngtpat/ihcsinfo/reqresn", model.getValue("/root/hidden/ihrqinfo/reqresn"));
  1071. model.setValue("/root/hidden/state", "I");
  1072. }
  1073. if (model.getValue("/root/hidden/ihcsinfo/acptdd") != "") {
  1074. model.setValue("/root/main/mngtpat/ihcsinfo/acptdd", model.getValue("/root/hidden/ihcsinfo/acptdd"));
  1075. model.setValue("/root/main/mngtpat/ihcsinfo/cnstseqno", model.getValue("/root/hidden/ihcsinfo/cnstseqno"));
  1076. model.setValue("/root/main/mngtpat/ihcsinfo/inhospresn", model.getValue("/root/hidden/ihcsinfo/inhospresn"));
  1077. model.setValue("/root/main/mngtpat/ihcsinfo/reqresn", model.getValue("/root/hidden/ihcsinfo/reqresn"));
  1078. model.setValue("/root/main/mngtpat/ihcsinfo/prcsstatcnts", model.getValue("/root/hidden/ihcsinfo/prcsstatcnts"));
  1079. model.setValue("/root/main/mngtpat/ihcsinfo/endgrde", model.getValue("/root/hidden/ihcsinfo/endgrde"));
  1080. model.setValue("/root/main/mngtpat/ihcsinfo/delivefact", model.getValue("/root/hidden/ihcsinfo/delivefact"));
  1081. model.setValue("/root/main/mngtpat/ihcsinfo/fstindays", model.getValue("/root/hidden/ihcsinfo/fstindays"));
  1082. model.setValue("/root/main/mngtpat/ihcsinfo/prcsstatcd", model.getValue("/root/hidden/ihcsinfo/prcsstatcd"));
  1083. model.setValue("/root/hidden/state", "U");
  1084. submit("TRPMI00908");
  1085. }
  1086. */
  1087. model.refresh();
  1088. }
  1089. ]]>
  1090. </script>
  1091. </input>
  1092. <input id="input6" ref="/root/main/mngtpat/ptbsinfo/hngnm" class="input_essential" style="left:99px; top:55px; width:100px; height:19px; "/>
  1093. <input id="input9" ref="/root/main/mngtpat/ptbsinfo/zipcd1" class="input_default" disabled="true" editable="false" style="left:285px; top:31px; width:30px; height:19px; "/>
  1094. <input id="ipt_indays" ref="/root/main/mngtpat/ptbsinfo/indays" class="input_default" disabled="true" editable="false" style="left:466px; top:127px; width:62px; height:19px; "/>
  1095. <caption id="caption41" class="cell_1" style="left:202px; top:126px; width:80px; height:23px; vertical-align:middle; ">담당의</caption>
  1096. <caption id="caption42" class="cell_1" style="left:383px; top:102px; width:80px; height:23px; vertical-align:middle; ">병실</caption>
  1097. <input id="input10" ref="/root/main/mngtpat/ptbsinfo/zipcd2" class="input_default" disabled="true" editable="false" style="left:318px; top:31px; width:30px; height:19px; "/>
  1098. <caption id="caption31" class="cell_1" style="left:202px; top:150px; width:107px; height:23px; vertical-align:middle; ">최초등록재원일수</caption>
  1099. <input id="input11" ref="/root/main/mngtpat/ptbsinfo/age" class="input_default" disabled="true" editable="false" style="left:614px; top:31px; width:41px; height:19px; "/>
  1100. <caption id="caption43" class="cell_1" style="left:383px; top:126px; width:80px; height:23px; vertical-align:middle; ">재원일수</caption>
  1101. <caption id="caption32" class="cell_1" style="left:202px; top:78px; width:80px; height:23px; vertical-align:middle; ">진료과</caption>
  1102. <input id="input34" ref="/root/main/mngtpat/ptbsinfo/mpphontel" class="input_default" disabled="true" editable="false" style="left:614px; top:55px; width:85px; height:19px; "/>
  1103. <input id="input12" ref="/root/main/mngtpat/ptbsinfo/sex" class="input_default" disabled="true" editable="false" style="left:658px; top:31px; width:41px; height:19px; "/>
  1104. <caption id="caption22" class="cell_1" style="left:531px; top:126px; width:80px; height:23px; vertical-align:middle; ">재원미수금</caption>
  1105. <caption id="caption44" class="cell_1" style="left:383px; top:150px; width:143px; height:23px; vertical-align:middle; ">관리대상환자 조정난이도</caption>
  1106. <caption id="caption23" class="cell_1" style="left:531px; top:54px; width:80px; height:23px; vertical-align:middle; ">전화번호</caption>
  1107. <input id="input24" ref="/root/main/mngtpat/ptbsinfo/roomcd" class="input_default" disabled="true" editable="false" style="left:466px; top:103px; width:62px; height:19px; "/>
  1108. <input id="input14" ref="/root/main/mngtpat/ptbsinfo/detladdr" class="input_default" disabled="true" editable="false" style="left:285px; top:55px; width:243px; height:19px; "/>
  1109. <input id="input26" ref="/root/main/mngtpat/ptbsinfo/indd" class="input_default" disabled="true" editable="false" format="yyyy-mm-dd" style="left:614px; top:79px; width:85px; height:19px; "/>
  1110. <caption id="caption25" class="cell_1" style="left:531px; top:78px; width:80px; height:23px; vertical-align:middle; ">입원일자</caption>
  1111. <input id="input27" ref="/root/main/mngtpat/ptbsinfo/fstindays" class="input_default" disabled="true" editable="false" style="left:312px; top:151px; width:68px; height:19px; "/>
  1112. <input id="input16" ref="/root/main/mngtpat/ptbsinfo/zipcdaddr" class="input_default" disabled="true" editable="false" style="left:351px; top:31px; width:177px; height:19px; "/>
  1113. <caption id="caption37" class="cell_1" style="left:202px; top:54px; width:80px; height:23px; vertical-align:middle; ">하위주소</caption>
  1114. <input id="ipt_dschdd" ref="/root/main/mngtpat/ptbsinfo/dschdd" class="input_default" disabled="true" editable="false" format="yyyy-mm-dd" style="left:614px; top:103px; width:85px; height:19px; "/>
  1115. <caption id="caption16" class="cell_1" style="left:531px; top:102px; width:80px; height:23px; vertical-align:middle; ">퇴원일자</caption>
  1116. <select1 id="rdo_endgrde" ref="/root/main/mngtpat/ihcsinfo/endgrde" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:529px; top:153px; width:171px; height:20px; background-color:transparent; border-style:none; ">
  1117. <choices>
  1118. <item>
  1119. <label>상</label>
  1120. <value>1</value>
  1121. </item>
  1122. <item>
  1123. <label>중</label>
  1124. <value>2</value>
  1125. </item>
  1126. <item>
  1127. <label>하</label>
  1128. <value>3</value>
  1129. </item>
  1130. <item>
  1131. <label>조정중</label>
  1132. <value>4</value>
  1133. </item>
  1134. </choices>
  1135. </select1>
  1136. <caption id="caption38" class="cell_1" style="left:202px; top:30px; width:80px; height:23px; vertical-align:middle; ">주소</caption>
  1137. <input id="input29" ref="/root/main/mngtpat/ptbsinfo/inuncoamt" class="input_default" disabled="true" editable="false" format="#,###" style="left:614px; top:127px; width:85px; height:19px; text-align:right; "/>
  1138. <caption id="caption39" class="cell_1" style="left:202px; top:102px; width:80px; height:23px; vertical-align:middle; ">전문의</caption>
  1139. <caption id="caption18" class="cell_1" style="left:531px; top:30px; width:80px; height:23px; vertical-align:middle; ">나이/성별</caption>
  1140. <select1 id="combo8" ref="/root/main/mngtpat/ptbsinfo/inpath" class="combo_default" disabled="true" appearance="minimal" style="left:99px; top:127px; width:100px; height:19px; ">
  1141. <choices>
  1142. <itemset nodeset="/root/init/P0002list/P0002">
  1143. <label ref="cdnm"/>
  1144. <value ref="cdid"/>
  1145. </itemset>
  1146. </choices>
  1147. </select1>
  1148. <button id="btn_movehosppaper" class="btn2_letter5" disabled="true" style="left:624px; top:5px; width:75px; height:19px; font-weight:bold; ">
  1149. <caption>전원소견서</caption>
  1150. <script type="javascript" ev:event="DOMActivate">
  1151. <![CDATA[
  1152. model.makeValue("/root/hidden/childprnt/srchprofhist/fromdd","");
  1153. model.makeValue("/root/hidden/childprnt/srchprofhist/todd","");
  1154. model.makeValue("/root/hidden/childprnt/srchprofhist/issflag","-");
  1155. model.makeValue("/root/hidden/childprnt/srchprofhist/pid",model.getValue("/root/main/mngtpat/ptbsinfo/pid"));
  1156. model.makeValue("/root/hidden/childprnt/srchprofhist/srchflag","rec");
  1157. model.makeValue("/root/hidden/childprnt/srchprofhist/srchdata","");
  1158. model.makeValue("/root/hidden/childprnt/srchprofhist/patsrchflag","1");
  1159. model.makeValue("/root/hidden/childprnt/srchprofhist/holograpflag","-");
  1160. model.makeValue("/root/hidden/childprnt/srchprofhist/formcd","0000002536");
  1161. modal("../../../emr/medirecweb/xrw/SMMMR02300", "1","","", "SMMMR02300", "/root/hidden/childprnt/srchprofhist","/root/main/srchprofhist");
  1162. model.removeNodeset("/root/hidden/childprnt/srchprofhist");
  1163. ]]>
  1164. </script>
  1165. </button>
  1166. <button id="button14" class="btn2_letter3" visibility="hidden" style="left:364px; top:5px; width:53px; height:19px; ">
  1167. <caption>회신서</caption>
  1168. <script type="javascript" ev:event="DOMActivate">
  1169. <![CDATA[
  1170. window.load("SMPMI01400_상담의뢰회신서.xrw","modal","","left:100px; top:100px; width:620px; height:580px");
  1171. ]]>
  1172. </script>
  1173. </button>
  1174. <input id="ipt_cretno" ref="/root/main/mngtpat/ptbsinfo/cretno" visibility="hidden" style="left:676px; top:152px; width:20px; height:19px; "/>
  1175. <button id="btn_save1" class="btn2_letter2" style="left:657px; top:332px; width:42px; height:19px; ">
  1176. <caption>저장</caption>
  1177. <script type="javascript" ev:event="DOMActivate">
  1178. <![CDATA[
  1179. // 진행상태만 저장
  1180. // btn_saveihrq.dispatch("DOMActivate"); 기존것
  1181. // 입력인지, 수정인지 구분 로직 필요
  1182. var iuFlag = "I";
  1183. if (isNull(model.getValue("/root/main/mngtpat/ihcsinfo/acptdd"))) {
  1184. iuFlag = "I";
  1185. } else {
  1186. iuFlag = "U";
  1187. }
  1188. var sPid = model.getValue("/root/main/mngtpat/ptbsinfo/pid");
  1189. if (!isNull(sPid)) {
  1190. if (iuFlag == "I") {
  1191. model.setValue("/root/send/insihcs/acptdd", getCurrentDate());
  1192. model.setValue("/root/send/insihcs/cnstseqno", 1);
  1193. } else {
  1194. model.setValue("/root/send/insihcs/acptdd", model.getValue("/root/main/mngtpat/ihcsinfo/acptdd"));
  1195. model.setValue("/root/send/insihcs/cnstseqno", model.getValue("/root/main/mngtpat/ihcsinfo/cnstseqno"));
  1196. }
  1197. // 테이블 변경 코드성 플래그는 null일때 '-'셋팅하도록함.
  1198. if(model.getValue("/root/main/mngtpat/ihcsinfo/prcsstatcd") == null){
  1199. model.setValue("/root/main/mngtpat/ihcsinfo/prcsstatcd", "-");
  1200. }
  1201. if(model.getValue("/root/main/mngtpat/ihcsinfo/endgrde") == null){
  1202. model.setValue("/root/main/mngtpat/ihcsinfo/endgrde", "-");
  1203. }
  1204. model.setValue("/root/send/insihcs/pid" , model.getValue("/root/main/mngtpat/ptbsinfo/pid"));
  1205. model.setValue("/root/send/insihcs/indd" , model.getValue("/root/main/mngtpat/ptbsinfo/indd"));
  1206. model.setValue("/root/send/insihcs/cretno" , model.getValue("/root/main/mngtpat/ptbsinfo/cretno"));
  1207. model.setValue("/root/send/insihcs/reqflag", "-"); //, model.getValue("/root/hidden/ihrqinfo/reqflag")); // 진료의뢰(ihrq)에서 가져와야는데 현재 안쓰므로 '-'처리
  1208. model.setValue("/root/send/insihcs/reqresn" , model.getValue("/root/main/mngtpat/ihcsinfo/reqresn"));
  1209. model.setValue("/root/send/insihcs/inhospflag", "-"); //, model.getValue("/root/hidden/ihrqinfo/inhospflag")); // 진료의뢰(ihrq)에서 가져와야는데 현재 안쓰므로 '-'처리
  1210. model.setValue("/root/send/insihcs/inhospresn" , model.getValue("/root/main/mngtpat/ihcsinfo/inhospresn"));
  1211. model.setValue("/root/send/insihcs/reqdd", "-"); //, model.getValue("/root/hidden/ihrqinfo/reqdd")); // 진료의뢰(ihrq)에서 가져와야는데 현재 안쓰므로 '-'처리
  1212. model.setValue("/root/send/insihcs/reqdeptcd", "-"); //, model.getValue("/root/hidden/ihrqinfo/reqdeptcd")); // 진료의뢰(ihrq)에서 가져와야는데 현재 안쓰므로 '-'처리
  1213. model.setValue("/root/send/insihcs/reqdrid", "-"); //, model.getValue("/root/hidden/ihrqinfo/reqdrid")); // 진료의뢰(ihrq)에서 가져와야는데 현재 안쓰므로 '-'처리
  1214. model.setValue("/root/send/insihcs/delivefact" , model.getValue("/root/main/mngtpat/ihcsinfo/delivefact"));
  1215. model.setValue("/root/send/insihcs/prcsstatcd" , model.getValue("/root/main/mngtpat/ihcsinfo/prcsstatcd"));
  1216. model.setValue("/root/send/insihcs/prcsstatcnts" , model.getValue("/root/main/mngtpat/ihcsinfo/prcsstatcnts"));
  1217. model.setValue("/root/send/insihcs/endgrde" , model.getValue("/root/main/mngtpat/ihcsinfo/endgrde"));
  1218. model.setValue("/root/send/insihcs/state" , iuFlag);
  1219. model.setValue("/root/send/insihcs/chnghospresn" ,model.getValue("/root/main/mngtpat/ihcsinfo/chnghospresn"));
  1220. model.setValue("/root/send/insihcs/endstatdd" ,model.getValue("/root/main/mngtpat/ihcsinfo/endstatdd"));
  1221. submit("TXPMI00901");
  1222. model.removeNodeset("/root/main/mngtpat/patreflist/grdpatreflist");
  1223. //btn_search.dispatch("DOMActivate"); 기존것
  1224. submit("TRPMI00910");
  1225. grd_prestinhosp.visible = false;
  1226. grd_patreflist.visible = true;
  1227. grd_uncopatlist.visible = false;
  1228. model.refresh();
  1229. } else {
  1230. messageBox("환자정보가 조회되지 않았습니다!!", "C");
  1231. return;
  1232. }
  1233. ]]>
  1234. </script>
  1235. </button>
  1236. <select1 id="combo9" ref="/root/main/mngtpat/ptbsinfo/insukind" disabled="true" appearance="minimal" style="left:98px; top:151px; width:100px; height:19px; ">
  1237. <choices>
  1238. <itemset nodeset="/root/init/insukind">
  1239. <label ref="nm"/>
  1240. <value ref="cd"/>
  1241. </itemset>
  1242. </choices>
  1243. </select1>
  1244. <input id="input3" ref="/root/main/mngtpat/ptbsinfo/orddeptnm" class="input_default" disabled="true" editable="false" style="left:285px; top:79px; width:243px; height:19px; "/>
  1245. <input id="input5" ref="/root/main/mngtpat/ptbsinfo/medispclnm" class="input_default" disabled="true" editable="false" style="left:285px; top:103px; width:94px; height:19px; "/>
  1246. <input id="input15" ref="/root/main/mngtpat/ptbsinfo/atdoctnm" class="input_default" disabled="true" editable="false" style="left:285px; top:127px; width:94px; height:19px; "/>
  1247. <group id="grp_report" visibility="hidden" style="left:205px; top:8px; width:9px; height:15px; "/>
  1248. <select1 id="cmb_emrmenu" ref="/root/hidden/menuvalue" appearance="minimal" style="left:238px; top:5px; width:125px; height:19px; ">
  1249. <choices>
  1250. <item>
  1251. <label>통합결과조회</label>
  1252. <value>1</value>
  1253. </item>
  1254. <item>
  1255. <label>통합기록조회</label>
  1256. <value>2</value>
  1257. </item>
  1258. <item>
  1259. <label>환자진료정보</label>
  1260. <value>3</value>
  1261. </item>
  1262. <item>
  1263. <label>병동업무관리</label>
  1264. <value>4</value>
  1265. </item>
  1266. <item>
  1267. <label>퇴원진행현황관리</label>
  1268. <value>5</value>
  1269. </item>
  1270. </choices>
  1271. <script type="javascript" ev:event="xforms-select">
  1272. <![CDATA[
  1273. var sMenuValue = model.getValue("/root/hidden/menuvalue");
  1274. if (sMenuValue == "1") modal("SMAER00800");
  1275. if (sMenuValue == "2") modal("SMMRI00400");
  1276. if (sMenuValue == "3") modal("SMMMO02500");
  1277. if (sMenuValue == "4") modal("SMMNW05500");
  1278. if (sMenuValue == "5") modal("SMMNW12700");
  1279. ]]>
  1280. </script>
  1281. </select1>
  1282. <select1 id="cmb_inhospresn" ref="/root/hidden/cmblist/inhospresn" class="combo_default" appearance="minimal" editmode="search" style="left:99px; top:216px; width:156px; height:19px; text-align:left; ">
  1283. <choices>
  1284. <itemset nodeset="/root/init/P0499list/P0499">
  1285. <label ref="cdnm"/>
  1286. <value ref="cdid"/>
  1287. </itemset>
  1288. </choices>
  1289. <script type="javascript" ev:event="xforms-select">
  1290. <![CDATA[
  1291. txt_inhospresn.value = cmb_inhospresn.label;
  1292. ]]>
  1293. </script>
  1294. </select1>
  1295. <select1 id="cmb_reqresn" ref="/root/hidden/cmblist/reqresn" class="combo_default" appearance="minimal" editmode="search" style="left:99px; top:241px; width:156px; height:19px; text-align:left; ">
  1296. <choices>
  1297. <itemset nodeset="/root/init/P0498list/P0498">
  1298. <label ref="cdnm"/>
  1299. <value ref="cdid"/>
  1300. </itemset>
  1301. </choices>
  1302. <script type="javascript" ev:event="xforms-select">
  1303. <![CDATA[
  1304. txt_reqresn.value = cmb_reqresn.label;
  1305. ]]>
  1306. </script>
  1307. </select1>
  1308. <textarea id="txt_chnghosp" ref="/root/main/mngtpat/ihcsinfo/chnghospresn" imemode="hangul" style="left:256px; top:266px; width:443px; height:19px; "/>
  1309. <select1 id="cmb_chnghosp" ref="/root/hidden/cmblist/chnghosp" class="combo_default" appearance="minimal" editmode="search" style="left:99px; top:266px; width:156px; height:19px; text-align:left; ">
  1310. <choices>
  1311. <itemset nodeset="/root/init/P0497list/P0497">
  1312. <label ref="cdnm"/>
  1313. <value ref="cdid"/>
  1314. </itemset>
  1315. </choices>
  1316. <script type="javascript" ev:event="xforms-select">
  1317. <![CDATA[
  1318. txt_chnghosp.value = cmb_chnghosp.label;
  1319. ]]>
  1320. </script>
  1321. </select1>
  1322. <caption id="caption64" class="cell_1" style="left:5px; top:264px; width:91px; height:23px; font-weight:bold; vertical-align:middle; ">
  1323. <![CDATA[<< 전원사유]]>
  1324. </caption>
  1325. <select1 id="rdo_prcsstatcd" ref="/root/main/mngtpat/ihcsinfo/prcsstatcd" appearance="full" cellspacing="20" cols="7" vcellspacing="3" overflow="visible" style="left:99px; top:290px; width:381px; height:32px; vertical-align:top; border-style:none; ">
  1326. <choices>
  1327. <itemset nodeset="/root/init/P0501list/P0501">
  1328. <label ref="cdnm"/>
  1329. <value ref="cdid"/>
  1330. </itemset>
  1331. </choices>
  1332. </select1>
  1333. <caption id="caption34" class="cell_1" style="left:5px; top:330px; width:91px; height:23px; font-weight:bold; vertical-align:middle; ">
  1334. <![CDATA[<< 종결일자]]>
  1335. </caption>
  1336. <input id="input25" ref="/root/main/mngtpat/ihcsinfo/endstatdd" class="input_default" editable="false" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:99px; top:332px; width:131px; height:19px; "/>
  1337. <input id="input35" ref="/root/main/mngtpat/ihcsinfo/prcsstatcnts" class="input_default" imemode="hangul" style="left:500px; top:308px; width:181px; height:19px; "/>
  1338. <button id="button15" class="btn5_letter8" style="left:96px; top:5px; width:108px; height:19px; ">
  1339. <caption>재원관리종결현황</caption>
  1340. <script type="javascript" ev:event="DOMActivate">
  1341. <![CDATA[
  1342. grp_inhospendprescond.visible = true;
  1343. grp_inhospendprescond.attribute("top") = "65";
  1344. grp_inhospendprescond.attribute("left") = "505";
  1345. //model.setValue("/root/send/inhospendprescond/fromdd", getCurrentDate());
  1346. //model.setValue("/root/send/inhospendprescond/todd", getCurrentDate());
  1347. input28.value= getCurrentDate();
  1348. input31.value= getCurrentDate();
  1349. ]]>
  1350. </script>
  1351. </button>
  1352. <button id="btn_cardex" class="btn2_letter5" disabled="true" style="left:418px; top:5px; width:75px; height:19px; font-weight:bold; ">
  1353. <caption>카덱스관리</caption>
  1354. <script type="javascript" ev:event="DOMActivate">
  1355. <![CDATA[
  1356. //delPatientInfos(); //common.js
  1357. //fUpPatientInfos();
  1358. /*
  1359. var pid = model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/pid");
  1360. var indd = model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/indd");
  1361. var cretno = model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/cretno");
  1362. var instcd = model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/instcd");
  1363. var ordtype = model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/ordtype");
  1364. var indschacptstat = model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/indschacptstat");
  1365. var dschdd = model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/dschdd");
  1366. if(indschacptstat == "D" || indschacptstat == "T"){
  1367. var srchdd = dschdd;
  1368. }else{
  1369. var srchdd = getCurrentDate();
  1370. }
  1371. // param 첫번째 붙는 값은 외래 : O, 입원 : I, 지원부서 : S, 수술 : T, 응급 : E, 의뢰 : C
  1372. //var param = "I" + "▦" + pid + "▦" + indd + "▦" + cretno + "▦" + instcd + "▦" + srchdd;
  1373. if(ordtype == "E"){
  1374. var param = "E" + "▦" + pid + "▦" + indd + "▦" + cretno + "▦" + instcd + "▦" + srchdd;
  1375. }else{
  1376. var param = "I" + "▦" + pid + "▦" + indd + "▦" + cretno + "▦" + instcd + "▦" + srchdd;
  1377. }
  1378. setParameter("condparam", param);
  1379. setParameter("errflag", "Y");
  1380. modal("SPMMO08900", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  1381. var useyn = getParameter("SPMMO08900_rtn_useyn");
  1382. if(useyn == "Y") {
  1383. setParameter("SPMMO08900_rtn_useyn", "");
  1384. }else{
  1385. }
  1386. */
  1387. model.makeNode("/root/hidden/cardex/paminfo");
  1388. // 환자정보 조회
  1389. var sPamInfo = getGlobalVariable("paminfo");
  1390. setCSVToNode("/root/hidden/cardex/paminfo",sPamInfo,"pamlist");
  1391. modal("../../../emr/wardcareweb/xrw/SMMNB00200", "1","","", "SMMNB00200", "/root/hidden/cardex/paminfo/pamlist","/root/main/paminfo/pamlist");
  1392. model.removeNodeset("/root/hidden/cardex/paminfo");
  1393. ]]>
  1394. </script>
  1395. </button>
  1396. <button id="btn_movehospmngt" class="btn2_letter4" disabled="true" style="left:494px; top:5px; width:64px; height:19px; font-weight:bold; ">
  1397. <caption>전원관리</caption>
  1398. <script type="javascript" ev:event="DOMActivate">
  1399. <![CDATA[
  1400. //modal("../../../emr/healcarecoopweb/xrw/SMARC01400", "1","","", "SMARC01400", "/root/main/mngtpat/ptbsinfo/pid","/root/send/pid");
  1401. modal("../../../ast/healcarecoopweb/xrw/SMARC01400", "1","","", "SMARC01400");
  1402. ]]>
  1403. </script>
  1404. </button>
  1405. <button id="btn_movehospstat" class="btn2_letter4" disabled="true" style="left:559px; top:5px; width:64px; height:19px; font-weight:bold; ">
  1406. <caption>전원현황</caption>
  1407. <script type="javascript" ev:event="DOMActivate">
  1408. <![CDATA[
  1409. modal("../../../ast/healcarecoopweb/xrw/SMARC01600", "1","","", "SMARC01600");
  1410. ]]>
  1411. </script>
  1412. </button>
  1413. <line id="line40" class="line_3" style="x1:5px; y1:197px; x2:699px; y2:197px; "/>
  1414. <line id="line14" class="line_1" style="x1:5px; y1:209px; x2:699px; y2:209px; "/>
  1415. <line id="line19" class="line_3" style="x1:5px; y1:353px; x2:699px; y2:353px; "/>
  1416. </case>
  1417. </switch>
  1418. <button id="button4" class="btn_sw" group="tab" selected="true" style="left:487px; top:11px; width:108px; height:22px; ">
  1419. <caption>재원환자미수관리</caption>
  1420. <script type="javascript" ev:event="onclick">
  1421. <![CDATA[
  1422. fInitialize();
  1423. clearUnco();
  1424. model.toggle("case1");
  1425. caption7.value = "입원일자 :";
  1426. cmb_ddflag.visible = false;
  1427. ipt_fstrgstdt1.attribute("left") = "104px";
  1428. ipt_fstrgstdt2.attribute("left") = "216px";
  1429. caption20.attribute("left") = "200px";
  1430. grd_patreflist.visible = false;
  1431. grd_uncopatlist.visible = true;
  1432. btn_saveIhgt.visible = true;
  1433. btn_saveihrq.visible = false;
  1434. //caption10.visible = false; // 의뢰회신구분 caption
  1435. //cmb_ihflag.visible = false; // 의뢰회신구분 combo
  1436. caption58.visible = true; // 재원기간 caption
  1437. combo6.visible = true; // 재원기간 combo
  1438. caption8.visible = true;
  1439. ipt_uncoamt.visible = true;
  1440. caption3.visible = true;
  1441. ipt_payownbamt.visible = true;
  1442. button5.disabled = true; // 관리일지 출력
  1443. btn_etc.visible = true;
  1444. btn_etc1.visible= false;
  1445. btn_print1.visible= true;
  1446. btn_print2.visible= false;
  1447. caption58.attribute("left") = 237;
  1448. caption58.attribute("top") = 107;
  1449. combo6.attribute("left") = 352;
  1450. combo6.attribute("top") = 106;
  1451. // 20100122 JHP 수정추가
  1452. button6.visible = false;
  1453. btn_nowdel.visible= false;
  1454. grd_prestinhosp.visible = false;
  1455. // 우측화면 사이즈 변경, 관리일지 부분 그리드 변경
  1456. switch1.attribute("height")= 507;
  1457. caption45.attribute("top")= 549;
  1458. line3.attribute("y1")= 564;
  1459. line3.attribute("y2")= 564;
  1460. grd_ihdcinfo.attribute("top")= 569;
  1461. grd_ihdcinfo.attribute("height")= 74;
  1462. model.refresh();
  1463. ]]>
  1464. </script>
  1465. </button>
  1466. <line id="line23" class="line_2" style="x1:488px; y1:671px; x2:1189px; y2:671px; "/>
  1467. <caption id="caption46" class="tit_2" style="left:5px; top:178px; width:80px; height:14px; ">관리환자</caption>
  1468. <line id="line4" class="line_1" style="x1:0px; y1:193px; x2:482px; y2:193px; "/>
  1469. <input id="ipt_workdd" ref="/root/main/ihdcinfo2/workdd" class="input_default" inputtype="date" style="left:582px; top:650px; width:103px; height:19px; "/>
  1470. <line id="line3" class="line_1" style="x1:487px; y1:564px; x2:1188px; y2:564px; "/>
  1471. <caption id="caption45" class="tit_2" style="left:492px; top:549px; width:170px; height:14px; ">관리일지 작성 및 조회</caption>
  1472. <textarea id="txt_cnstspec" ref="/root/main/ihdcinfo2/cnstspec" navindex="22" imemode="hangul" style="left:582px; top:676px; width:606px; height:47px; "/>
  1473. <caption id="caption48" class="cell_1" style="left:488px; top:649px; width:91px; height:23px; vertical-align:middle; ">작성일자</caption>
  1474. <caption id="caption49" class="cell_1" style="left:488px; top:673px; width:91px; height:55px; vertical-align:middle; ">내용</caption>
  1475. <datagrid id="grd_ihdcinfo" nodeset="/root/main/ihdcinfo/grdihdcinfo" scroll="vertical" caption="분류^작성일자^내용^작성자^일련번호" colsep="^" colwidth="80, 90, 422, 90, 0" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:487px; top:569px; width:700px; height:74px; ">
  1476. <col disabled="true" ref="cnstflag" type="combo">
  1477. <choices>
  1478. <item>
  1479. <label>재원미수</label>
  1480. <value>1</value>
  1481. </item>
  1482. <item>
  1483. <label>재원환자</label>
  1484. <value>2</value>
  1485. </item>
  1486. <item>
  1487. <label>퇴원미수</label>
  1488. <value>3</value>
  1489. </item>
  1490. <item>
  1491. <label>응급대불</label>
  1492. <value>4</value>
  1493. </item>
  1494. </choices>
  1495. </col>
  1496. <col ref="workdd" style="text-align:center; "/>
  1497. <col ref="cnstspec"/>
  1498. <col ref="lastupdtrnm" style="text-align:center; "/>
  1499. <col ref="cnstdetlseqno"/>
  1500. <script type="javascript" ev:event="ondblclick">
  1501. <![CDATA[
  1502. if(isDataCell()) {
  1503. if (switch1.case1.attribute("selected") == "true") {
  1504. model.setValue("/root/send/cond3/pid", model.getValue("/root/main/uncopat/uncopatinfo/pid"));
  1505. model.setValue("/root/send/cond3/indd", model.getValue("/root/main/uncopat/uncopatinfo/indd"));
  1506. model.setValue("/root/send/cond3/cretno", model.getValue("/root/main/uncopat/uncopatinfo/cretno"));
  1507. model.setValue("/root/send/cond3/cnstdetlseqno", model.getValue("/root/main/ihdcinfo/grdihdcinfo[" + grd_ihdcinfo.row + "]/cnstdetlseqno"));
  1508. }
  1509. if (switch1.case2.attribute("selected") == "true") {
  1510. model.setValue("/root/send/cond3/pid", model.getValue("/root/main/mngtpat/ptbsinfo/pid"));
  1511. model.setValue("/root/send/cond3/indd", model.getValue("/root/main/mngtpat/ptbsinfo/indd"));
  1512. model.setValue("/root/send/cond3/cretno", model.getValue("/root/main/mngtpat/ptbsinfo/cretno"));
  1513. model.setValue("/root/send/cond3/cnstdetlseqno", model.getValue("/root/main/ihdcinfo/grdihdcinfo[" + grd_ihdcinfo.row + "]/cnstdetlseqno"));
  1514. }
  1515. submit("TRPMI00909");
  1516. }
  1517. ]]>
  1518. </script>
  1519. </datagrid>
  1520. <group id="group2" style="left:0px; top:10px; width:482px; height:161px; ">
  1521. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:482px; height:159px; background-color:#fffbf2; border-color:#ffd799; "/>
  1522. <caption id="caption1" class="search_name" style="left:15px; top:57px; width:88px; height:17px; ">진료과 :</caption>
  1523. <select1 id="cbo_orddeptcd" ref="/root/send/findcond/orddeptcd" class="combo_search" navindex="2" appearance="minimal" style="left:104px; top:56px; width:115px; height:19px; ">
  1524. <choices>
  1525. <itemset nodeset="/root/init/orddeptcd">
  1526. <label ref="nm"/>
  1527. <value ref="cd"/>
  1528. </itemset>
  1529. </choices>
  1530. <script type="javascript" ev:event="xforms-value-changed">
  1531. <![CDATA[
  1532. fOrdDrSet();
  1533. ]]>
  1534. </script>
  1535. </select1>
  1536. <caption id="caption3" class="search_name" style="left:237px; top:83px; width:118px; height:17px; ">본인부담금 ≥</caption>
  1537. <caption id="caption2" class="search_name" style="left:15px; top:81px; width:100px; height:17px; ">전문의 :</caption>
  1538. <caption id="caption4" class="search_name" style="left:15px; top:105px; width:86px; height:17px; ">병동 :</caption>
  1539. <caption id="caption5" class="search_name" style="left:237px; top:34px; width:118px; height:17px; ">재원구분 :</caption>
  1540. <caption id="caption7" class="search_name" style="left:15px; top:130px; width:86px; height:17px; ">기 간 :</caption>
  1541. <select1 id="cbo_atdoctid" ref="/root/send/findcond/atdoctid" class="combo_search" navindex="3" appearance="minimal" style="left:104px; top:80px; width:115px; height:19px; ">
  1542. <choices>
  1543. <itemset nodeset="/root/init/orddrid">
  1544. <label ref="nm"/>
  1545. <value ref="cd"/>
  1546. </itemset>
  1547. </choices>
  1548. </select1>
  1549. <select1 id="cbo_wardcd" ref="/root/send/findcond/wardcd" class="combo_search" navindex="4" appearance="minimal" style="left:104px; top:104px; width:115px; height:19px; ">
  1550. <choices>
  1551. <itemset nodeset="/root/init/wardcd">
  1552. <label ref="nm"/>
  1553. <value ref="cd"/>
  1554. </itemset>
  1555. </choices>
  1556. </select1>
  1557. <select1 id="cbo_ordtype" ref="/root/send/findcond/instat" class="combo_search" navindex="6" appearance="minimal" style="left:352px; top:33px; width:115px; height:19px; ">
  1558. <choices>
  1559. <item>
  1560. <label>전체</label>
  1561. <value>1</value>
  1562. </item>
  1563. <item>
  1564. <label>입원</label>
  1565. <value>2</value>
  1566. </item>
  1567. <item>
  1568. <label>퇴원</label>
  1569. <value>3</value>
  1570. </item>
  1571. <item>
  1572. <label>퇴원예고</label>
  1573. <value>4</value>
  1574. </item>
  1575. <item>
  1576. <label>사망</label>
  1577. <value>5</value>
  1578. </item>
  1579. <item>
  1580. <label>전원</label>
  1581. <value>6</value>
  1582. </item>
  1583. <item>
  1584. <label>재원</label>
  1585. <value>7</value>
  1586. </item>
  1587. </choices>
  1588. <script type="javascript" ev:event="xforms-select">
  1589. <![CDATA[
  1590. var sInStat = model.getValue("/root/send/findcond/instat");
  1591. var sInHospDays = model.getValue("/root/send/findcond/inhospdays");
  1592. if (sInStat == "7") {
  1593. ipt_fstrgstdt1.disabled = true;
  1594. ipt_fstrgstdt2.disabled = true;
  1595. } else {
  1596. model.setValue("/root/send/findcond/inhospdays", 0);
  1597. ipt_fstrgstdt1.disabled = false;
  1598. ipt_fstrgstdt2.disabled = false;
  1599. }
  1600. model.refresh();
  1601. ]]>
  1602. </script>
  1603. </select1>
  1604. <input id="ipt_fstrgstdt1" ref="/root/send/findcond/fstrgstdt1" class="input_search" inputtype="date" style="left:104px; top:129px; width:90px; height:19px; "/>
  1605. <input id="ipt_fstrgstdt2" ref="/root/send/findcond/fstrgstdt2" class="input_search" inputtype="date" style="left:216px; top:129px; width:90px; height:19px; "/>
  1606. <caption id="caption8" class="search_name" style="left:237px; top:58px; width:118px; height:17px; ">미수금 ≥</caption>
  1607. <caption id="caption9" class="search_name" style="left:237px; top:9px; width:118px; height:17px; ">보험유형 :</caption>
  1608. <input id="ipt_uncoamt" ref="/root/send/findcond/uncoamt" class="input_search" navindex="9" imemode="numeric" format="#,###" style="left:352px; top:57px; width:115px; height:19px; text-align:right; "/>
  1609. <select1 id="cbo_insucd" ref="/root/send/findcond/insucd" class="combo_search" navindex="5" appearance="minimal" style="left:352px; top:8px; width:115px; height:19px; ">
  1610. <choices>
  1611. <itemset nodeset="/root/init/insukind">
  1612. <label ref="nm"/>
  1613. <value ref="cd"/>
  1614. </itemset>
  1615. </choices>
  1616. </select1>
  1617. <button id="btn_search" class="btn1_letter2" navindex="10" style="left:411px; top:129px; width:56px; height:22px; ">
  1618. <caption>조회</caption>
  1619. <script type="javascript" ev:event="DOMActivate">
  1620. <![CDATA[
  1621. clearIhcs(); /* 재원환자관리부분 클리어 */
  1622. clearUnco(); /* 미수관리부분 클리어 */
  1623. clearIhdc(); /* 관리일지부분 클리어 */
  1624. model.removeNodeset("/root/main/uncopat/uncopatlist/grduncopatlist"); /* 환자조회부분 클리어 */
  1625. model.removeNodeset("/root/main/mngtpat/patreflist/grdpatreflist"); /* 환자조회부분 클리어 */
  1626. // 재원미수관리
  1627. if (switch1.case1.attribute("selected") == "true") {
  1628. if (model.getValue("/root/send/findcond/payownbamt") == ""){
  1629. model.setValue("/root/send/findcond/payownbamt", "0");
  1630. }
  1631. if (model.getValue("/root/send/findcond/uncoamt") == ""){
  1632. model.setValue("/root/send/findcond/uncoamt", "0");
  1633. }
  1634. if(submit("TRPMI00912")) {
  1635. } else {
  1636. messageBox("재원미수환자 조회 실패!!", "C");
  1637. }
  1638. // 20100122 JHP 수정추가
  1639. grd_prestinhosp.visible = false;
  1640. grd_patreflist.visible = false;
  1641. grd_uncopatlist.visible = true;
  1642. if (model.getValue("/root/send/findcond/payownbamt") == "0") {
  1643. model.setValue("/root/send/findcond/payownbamt", "");
  1644. }
  1645. if (model.getValue("/root/send/findcond/uncoamt") == "0") {
  1646. model.setValue("/root/send/findcond/uncoamt", "");
  1647. }
  1648. }
  1649. // 재원환자관리
  1650. if (switch1.case2.attribute("selected") == "true") {
  1651. submit("TRPMI00910");
  1652. // 20100122 JHP 수정추가
  1653. grd_prestinhosp.visible = false;
  1654. grd_patreflist.visible = true;
  1655. grd_uncopatlist.visible = false;
  1656. }
  1657. var currentdate = getCurrentDate();
  1658. model.setValue("/root/main/ihdcinfo2/workdd", currentdate);
  1659. model.refresh();
  1660. ]]>
  1661. </script>
  1662. </button>
  1663. <line id="line1" class="line_4" style="x1:396px; y1:129px; x2:396px; y2:149px; border-color:#ffe4bb; border-left-style:solid; "/>
  1664. <caption id="caption20" class="search_no_b" style="left:200px; top:130px; width:12px; height:17px; ">~</caption>
  1665. <input id="ipt_payownbamt" ref="/root/send/findcond/payownbamt" class="input_search" navindex="8" imemode="numeric" format="#,###" style="left:352px; top:82px; width:115px; height:19px; text-align:right; "/>
  1666. <caption id="caption50" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">환자번호 :</caption>
  1667. <input id="input66" ref="/root/send/findcond/pid" class="input_search" navindex="0" style="left:104px; top:8px; width:115px; height:19px; "/>
  1668. <caption id="caption57" class="search_name" style="left:15px; top:33px; width:86px; height:17px; ">환자성명 :</caption>
  1669. <input id="input67" ref="/root/send/findcond/hngnm" class="input_search" navindex="1" imemode="hangul" style="left:104px; top:32px; width:115px; height:19px; "/>
  1670. <!--<select1 id="cmb_ihflag" ref="/root/send/findcond/ihflag" class="combo_search" navindex="7" appearance="minimal" style="left:352px; top:106px; width:115px; height:19px; ">
  1671. <choices>
  1672. <item>
  1673. <label>전체</label>
  1674. <value>1</value>
  1675. </item>
  1676. <item>
  1677. <label>의뢰</label>
  1678. <value>2</value>
  1679. </item>
  1680. <item>
  1681. <label>회신</label>
  1682. <value>3</value>
  1683. </item>
  1684. <item>
  1685. <label>등록</label>
  1686. <value>4</value>
  1687. </item>
  1688. </choices>
  1689. </select1>-->
  1690. <!--<caption id="caption10" class="search_name" style="left:237px; top:107px; width:118px; height:17px; ">의뢰회신구분 :</caption>-->
  1691. <caption id="caption58" class="search_name" visibility="hidden" style="left:237px; top:107px; width:118px; height:17px; ">재원기간 :</caption>
  1692. <select1 id="combo6" ref="/root/send/findcond/inhospdays" class="combo_search" navindex="7" visibility="hidden" appearance="minimal" style="left:352px; top:106px; width:115px; height:19px; ">
  1693. <choices>
  1694. <item>
  1695. <label>전체</label>
  1696. <value>0</value>
  1697. </item>
  1698. <item>
  1699. <label>20일 이상</label>
  1700. <value>20</value>
  1701. </item>
  1702. <item>
  1703. <label>30일 이상</label>
  1704. <value>30</value>
  1705. </item>
  1706. <item>
  1707. <label>60일 이상</label>
  1708. <value>60</value>
  1709. </item>
  1710. <item>
  1711. <label>90일 이상</label>
  1712. <value>90</value>
  1713. </item>
  1714. </choices>
  1715. <script type="javascript" ev:event="xforms-select">
  1716. <![CDATA[
  1717. var sInHospDays = model.getValue("/root/send/findcond/inhospdays");
  1718. if (sInHospDays != 0) {
  1719. model.setValue("/root/send/findcond/instat", "7"); // 재원
  1720. ipt_fstrgstdt1.disabled = true;
  1721. ipt_fstrgstdt2.disabled = true;
  1722. model.refresh();
  1723. }
  1724. ]]>
  1725. </script>
  1726. </select1>
  1727. <select1 id="combo4" ref="/root/send/findcond/insucd" class="combo_search" navindex="5" appearance="minimal" style="left:352px; top:8px; width:115px; height:19px; ">
  1728. <choices>
  1729. <itemset nodeset="/root/init/insukind">
  1730. <label ref="nm"/>
  1731. <value ref="cd"/>
  1732. </itemset>
  1733. </choices>
  1734. </select1>
  1735. <select1 id="cmb_ddflag" ref="/root/send/findcond/ddflag" class="combo_search" navindex="4" visibility="hidden" appearance="minimal" style="left:104px; top:129px; width:62px; height:19px; ">
  1736. <choices>
  1737. <item>
  1738. <label>등록</label>
  1739. <value>IN</value>
  1740. </item>
  1741. <item>
  1742. <label>종결</label>
  1743. <value>END</value>
  1744. </item>
  1745. <item>
  1746. <label>퇴원</label>
  1747. <value>DSCH</value>
  1748. </item>
  1749. </choices>
  1750. </select1>
  1751. </group>
  1752. <line id="line37" class="line_1" style="x1:487px; y1:644px; x2:1188px; y2:644px; "/>
  1753. <line id="line22" class="line_3" style="x1:488px; y1:727px; x2:1189px; y2:727px; "/>
  1754. <button id="button10" class="btn_sw" group="tab" style="left:595px; top:11px; width:84px; height:22px; ">
  1755. <caption>재원환자관리</caption>
  1756. <script type="javascript" ev:event="onclick">
  1757. <![CDATA[
  1758. fInitialize();
  1759. clearInpatInfo();
  1760. clearIhcs();
  1761. model.toggle("case2");
  1762. caption7.value = "기 간 :";
  1763. cmb_ddflag.visible = true;
  1764. ipt_fstrgstdt1.attribute("left") = "167px";
  1765. ipt_fstrgstdt2.attribute("left") = "279px";
  1766. caption20.attribute("left") = "263px";
  1767. grd_patreflist.visible = true;
  1768. grd_uncopatlist.visible = false;
  1769. btn_saveIhgt.visible = false;
  1770. btn_saveihrq.visible = true;
  1771. //caption10.visible = true; // 의뢰회신구분 caption
  1772. //cmb_ihflag.visible = true; // 의뢰회신구분 combo
  1773. caption58.visible = true; // 재원기간 caption
  1774. combo6.visible = true; // 재원기간 combo
  1775. caption8.visible = false;
  1776. ipt_uncoamt.visible = false;
  1777. caption3.visible = false;
  1778. ipt_payownbamt.visible = false;
  1779. button5.disabled = false; // 관리일지 출력
  1780. btn_etc.visible = false;
  1781. btn_etc1.visible= true;
  1782. btn_print1.visible= false;
  1783. btn_print2.visible= true;
  1784. //caption10.attribute("left") = 237;
  1785. //caption10.attribute("top") = 58;
  1786. //cmb_ihflag.attribute("left") = 352;
  1787. //cmb_ihflag.attribute("top") = 57;
  1788. //caption58.attribute("left") = 237;
  1789. //caption58.attribute("top") = 83;
  1790. //combo6.attribute("left") = 352;
  1791. //combo6.attribute("top") = 82;
  1792. caption58.attribute("left") = 237;
  1793. caption58.attribute("top") = 58;
  1794. combo6.attribute("left") = 352;
  1795. combo6.attribute("top") = 57;
  1796. // 20100122 JHP 수정추가
  1797. button6.visible = true;
  1798. btn_nowdel.visible= true;
  1799. grd_prestinhosp.visible = false;
  1800. // 우측화면 사이즈 변경, 관리일지 부분 그리드 변경
  1801. switch1.attribute("height")= 370;
  1802. caption45.attribute("top")= 412;
  1803. line3.attribute("y1")= 427;
  1804. line3.attribute("y2")= 427;
  1805. grd_ihdcinfo.attribute("top")= 432;
  1806. grd_ihdcinfo.attribute("height")= 211;
  1807. var currentdate = getCurrentDate();
  1808. model.setValue("/root/main/ihdcinfo2/workdd", currentdate);
  1809. ]]>
  1810. </script>
  1811. </button>
  1812. <!-- 수정이력 20091202 JHP - cnstseqno 상담일련번호(접수번호) 추가
  1813. 20091209 JHP - acptdd 접수일자 추가
  1814. -->
  1815. <input id="input4" ref="/root/main/ihdcinfo2/cnstdetlseqno" visibility="hidden" style="left:1141px; top:652px; width:15px; height:19px; "/>
  1816. <button id="button1" class="btn2_letter4" style="left:364px; top:173px; width:64px; height:19px; ">
  1817. <caption>엑셀저장</caption>
  1818. <script type="javascript" ev:event="DOMActivate">
  1819. <![CDATA[
  1820. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1821. // 재원미수
  1822. if (switch1.case1.attribute("selected") == "true") {
  1823. if (fileName != "") {
  1824. grd_uncopatlist.saveExcel(fileName, "SheetName", false, false, "", "");
  1825. }
  1826. }
  1827. // 재원환자
  1828. if (switch1.case2.attribute("selected") == "true") {
  1829. if (fileName != "") {
  1830. grd_patreflist.saveExcel(fileName, "SheetName", false, false, "", "");
  1831. }
  1832. }
  1833. window.exec(fileName);
  1834. ]]>
  1835. </script>
  1836. </button>
  1837. <button id="btn_etc" class="btn2_letter3" style="left:429px; top:173px; width:53px; height:19px; ">
  1838. <caption>펼치기</caption>
  1839. <script type="javascript" ev:event="DOMActivate">
  1840. <![CDATA[
  1841. if (grd_uncopatlist.attribute("width") == "482") {
  1842. grd_uncopatlist.attribute("width") = "960";
  1843. btn_etc.attribute("class") = "btn5_letter3";
  1844. btn_etc.attribute("color") = "#ff0066";
  1845. } else {
  1846. grd_uncopatlist.attribute("width") = "482";
  1847. btn_etc.attribute("class") = "btn2_letter3";
  1848. }
  1849. //649
  1850. ]]>
  1851. </script>
  1852. </button>
  1853. <button id="btn_print1" class="btn2_letter2" style="left:321px; top:173px; width:42px; height:19px; ">
  1854. <caption>출력</caption>
  1855. <script type="javascript" ev:event="DOMActivate">
  1856. <![CDATA[
  1857. fPrntSeq1();
  1858. ]]>
  1859. </script>
  1860. </button>
  1861. <!-- 20100122 JHP 수정추가 -->
  1862. <button id="button6" class="btn5_letter7" visibility="hidden" style="left:85px; top:173px; width:130px; height:19px; font-weight:bold; ">
  1863. <caption>현재재원환자</caption>
  1864. <script type="javascript" ev:event="DOMActivate">
  1865. <![CDATA[
  1866. group4.visible = true;
  1867. group4.attribute("left") = 0;
  1868. group4.attribute("top") = 10;
  1869. group4.attribute("height") = 482;
  1870. group4.attribute("height") = 160;
  1871. combo18.value= '7';
  1872. btn_print1.disabled = true;
  1873. btn_print2.disabled = true;
  1874. button1.disabled = true;
  1875. btn_etc.disabled = true;
  1876. btn_etc1.disabled = true;
  1877. btn_nowdel.disabled = true;
  1878. ]]>
  1879. </script>
  1880. </button>
  1881. <datagrid id="grd_uncopatlist" nodeset="/root/main/uncopat/uncopatlist/grduncopatlist" class="datagrid2" caption="등록번호^환자성명^입원일자^진료과^병동^병실^총진료비^본인부담금^미수금액^수납금액^청구^E50생성일자^E50 본임부담금^생성번호^보험유형" colsep="^" colwidth="59, 59, 67, 90, 90, 80, 91, 95, 82, 94, 30, 100, 100, 0, 0" dataheight="23" defaultrows="1" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:198px; width:482px; height:532px; ">
  1882. <col ref="pid"/>
  1883. <col ref="hngnm" style="text-align:left; "/>
  1884. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  1885. <col disabled="true" editmode="search" ref="orddeptcd" type="combo" style="text-align:left; ">
  1886. <choices>
  1887. <itemset nodeset="/root/init/orddeptcd">
  1888. <label ref="nm"/>
  1889. <value ref="cd"/>
  1890. </itemset>
  1891. </choices>
  1892. </col>
  1893. <col disabled="true" editmode="search" ref="wardcd" type="combo" style="text-align:left; ">
  1894. <choices>
  1895. <itemset nodeset="/root/init/wardcd">
  1896. <label ref="nm"/>
  1897. <value ref="cd"/>
  1898. </itemset>
  1899. </choices>
  1900. </col>
  1901. <col ref="roomcd" style="text-align:center; "/>
  1902. <col ref="totalamt" format="#,###" style="text-align:right; "/>
  1903. <col ref="ownbtotamt" format="#,###" style="text-align:right; "/>
  1904. <col ref="uncoamt" format="#,###" style="text-align:right; "/>
  1905. <col ref="midrcptamt" format="#,###" style="text-align:right; "/>
  1906. <col ref="mdlclamyn" type="output" style="text-align:center; "/>
  1907. <col ref="e50printdd" format="yyyy-mm-dd"/>
  1908. <col ref="e50totownamt" format="#,###" style="text-align:right; "/>
  1909. <col ref="insukind"/>
  1910. <col ref="mdlclamyn"/>
  1911. <script type="javascript" ev:event="ondblclick">
  1912. <![CDATA[
  1913. clearUnco(); /* 미수관리부분 클리어 */
  1914. clearIhdc(); /* 관리일지부분 클리어 */
  1915. if( isDataCell() ){
  1916. if (grd_uncopatlist.row >= 1 && model.getValue("/root/main/uncopat/uncopatlist/grduncopatlist[" + grd_uncopatlist.row + "]/pid") != "") {
  1917. model.setValue("/root/send/cond2/pid", model.getValue("/root/main/uncopat/uncopatlist/grduncopatlist[" + grd_uncopatlist.row + "]/pid"));
  1918. model.setValue("/root/send/cond2/indd", model.getValue("/root/main/uncopat/uncopatlist/grduncopatlist[" + grd_uncopatlist.row + "]/indd"));
  1919. model.setValue("/root/send/cond2/cretno", model.getValue("/root/main/uncopat/uncopatlist/grduncopatlist[" + grd_uncopatlist.row + "]/cretno"));
  1920. model.setValue("/root/send/cond2/type", model.getValue("/root/main/uncopat/uncopatlist/grduncopatlist[" + grd_uncopatlist.row + "]/insukind"));
  1921. model.setValue("/root/main/uncopat/uncoamt", model.getValue("/root/main/uncopat/uncopatlist/grduncopatlist[" + grd_uncopatlist.row + "]/uncoamt"));
  1922. submit("TRPMI00913"); /* 미수관리부분 조회 */
  1923. model.setValue("/root/send/cond2/orddeptcd", model.getValue("/root/main/uncopat/uncopatlist/grduncopatlist[" + grd_uncopatlist.row + "]/orddeptcd"));
  1924. submit("TRPMI00903"); /* 상병 조회 + 수술명조회*/
  1925. //submit("TRPMI00920"); //수술명조회
  1926. // if (model.getvalue("/root/send/cond4/ordtype") == "O") {
  1927. // submit("TRPMI00914");
  1928. // submit("TRPMI00915");
  1929. // }
  1930. // if (model.getvalue("/root/send/cond4/ordtype") == "I") {
  1931. submit("TRPMI00916"); /* 내원내역 */
  1932. submit("TRPMI00917"); /* 수납내역 */
  1933. // }
  1934. //
  1935. if (switch1.case1.attribute("selected") == "true") {
  1936. model.setValue("/root/send/cond2/type", "1");
  1937. model.setValue("/root/send/cond2/pid", model.getValue("/root/main/uncopat/uncopatinfo/pid"));
  1938. model.setValue("/root/send/cond2/indd", model.getValue("/root/main/uncopat/uncopatinfo/indd"));
  1939. model.setValue("/root/send/cond2/cretno", model.getValue("/root/main/uncopat/uncopatinfo/cretno"));
  1940. model.resetInstanceNode("/root/main/ihgtinfo");
  1941. submit("TRPMI00902"); /* 보증인 조회 */
  1942. // copyNodeType("/root/main/ihgtinfo", "/root/hidden/ihgtinfo", "replace");
  1943. model.setValue("/root/main/uncopat/ihgtinfo/grnternm", model.getValue("/root/hidden/ihgtinfo/grnternm"));
  1944. model.setValue("/root/main/uncopat/ihgtinfo/grntertel", model.getValue("/root/hidden/ihgtinfo/grntertel"));
  1945. model.setValue("/root/main/uncopat/ihgtinfo/realcd", model.getValue("/root/hidden/ihgtinfo/realcd"));
  1946. model.setValue("/root/main/uncopat/ihgtinfo/addr", model.getValue("/root/hidden/ihgtinfo/addr"));
  1947. model.setValue("/root/main/uncopat/ihgtinfo/grnternm1", model.getValue("/root/hidden/ihgtinfo/grnternm1"));
  1948. model.setValue("/root/main/uncopat/ihgtinfo/grntertel1", model.getValue("/root/hidden/ihgtinfo/grntertel1"));
  1949. model.setValue("/root/main/uncopat/ihgtinfo/real1", model.getValue("/root/hidden/ihgtinfo/real1"));
  1950. model.setValue("/root/main/uncopat/ihgtinfo/addr1", model.getValue("/root/hidden/ihgtinfo/addr1"));
  1951. model.setValue("/root/main/uncopat/ihgtinfo/grnternm2", model.getValue("/root/hidden/ihgtinfo/grnternm2"));
  1952. model.setValue("/root/main/uncopat/ihgtinfo/grntertel2", model.getValue("/root/hidden/ihgtinfo/grntertel2"));
  1953. model.setValue("/root/main/uncopat/ihgtinfo/real2", model.getValue("/root/hidden/ihgtinfo/real2"));
  1954. model.setValue("/root/main/uncopat/ihgtinfo/addr2", model.getValue("/root/hidden/ihgtinfo/addr2"));
  1955. if (model.getValue("/root/hidden/ihgtinfo/grnternm") == "") {
  1956. model.setValue("/root/main/uncopat/ihgtinfo/state", "I");
  1957. } else {
  1958. model.setValue("/root/main/uncopat/ihgtinfo/state", "U");
  1959. }
  1960. }
  1961. if (switch1.case2.attribute("selected") == "true") {
  1962. model.setValue("/root/send/cond2/type", "2");
  1963. model.setValue("/root/send/cond2/pid", model.getValue("/root/main/mngtpat/ptbsinfo/pid"));
  1964. model.setValue("/root/send/cond2/indd", model.getValue("/root/main/mngtpat/ptbsinfo/indd"));
  1965. model.setValue("/root/send/cond2/cretno", model.getValue("/root/main/mngtpat/ptbsinfo/cretno"));
  1966. submit("TRPMI00907");
  1967. if (model.getValue("/root/main/mngtpat/ihcsinfo/acptdd") != "") {
  1968. model.setValue("/root/hidden/state", "U");
  1969. } else {
  1970. model.setValue("/root/hidden/state", "I");
  1971. }
  1972. }
  1973. model.removeNodeset("/root/main/ihdcinfo/grdihdcinfo");
  1974. submit("TRPMI00908"); /* 상세내역 조회 */
  1975. var currentdate = getCurrentDate();
  1976. model.setValue("/root/main/ihdcinfo2/workdd", currentdate);
  1977. }
  1978. }
  1979. ]]>
  1980. </script>
  1981. <script type="javascript" ev:event="onaftersort">
  1982. <![CDATA[
  1983. grd_uncopatlist.gridToInstance();
  1984. ]]>
  1985. </script>
  1986. </datagrid>
  1987. <datagrid id="grd_patreflist" nodeset="/root/main/mngtpat/patreflist/grdpatreflist" class="datagrid2" caption="접수일자^접수^환자명^병실^재원^소견^등록번호^진행상태^진료과^성/나이^재원일수^종결상태^퇴원일^병원명^전원사유^난이도^입원일^생성번호^기관코드^병동^진료형태^진행상태^퇴원일자" colsep="^" colwidth="90, 55, 65, 62, 32, 32, 64, 94, 92, 60, 65, 67, 80, 111, 193, 69, 50, 65, 30, 30, 30, 30, 30" dataheight="23" defaultrows="1" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:198px; width:482px; height:532px; ">
  1988. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1989. <col ref="cnstseqno" style="text-align:center; "/>
  1990. <col ref="hngnm" style="text-align:center; "/>
  1991. <col ref="roomcd" style="text-align:center; "/>
  1992. <col ref="inin" style="text-align:center; "/>
  1993. <col ref="jindan" style="text-align:center; "/>
  1994. <col ref="pid" style="text-align:center; "/>
  1995. <col ref="prcsstatcd" type="combo" style="text-align:center; ">
  1996. <choices>
  1997. <itemset nodeset="/root/init/P0501list/P0501">
  1998. <label ref="cdnm"/>
  1999. <value ref="cdid"/>
  2000. </itemset>
  2001. </choices>
  2002. </col>
  2003. <col ref="orddeptcd" type="combo" style="text-align:center; ">
  2004. <choices>
  2005. <itemset nodeset="/root/init/orddeptcd">
  2006. <label ref="nm"/>
  2007. <value ref="cd"/>
  2008. </itemset>
  2009. </choices>
  2010. </col>
  2011. <col ref="sexage" style="text-align:center; "/>
  2012. <col ref="indays" style="text-align:center; "/>
  2013. <col ref="endprcsstatcd" type="combo" style="text-align:center; ">
  2014. <choices>
  2015. <itemset nodeset="/root/init/P0500list/P0500">
  2016. <label ref="cdnm"/>
  2017. <value ref="cdid"/>
  2018. </itemset>
  2019. </choices>
  2020. </col>
  2021. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  2022. <col ref="prcsstatcnts" style="text-align:center; "/>
  2023. <col ref="chnghospresn" style="text-align:center; "/>
  2024. <col ref="endgrde" type="combo" style="text-align:center; ">
  2025. <choices>
  2026. <item>
  2027. <label>상</label>
  2028. <value>1</value>
  2029. </item>
  2030. <item>
  2031. <label>중</label>
  2032. <value>2</value>
  2033. </item>
  2034. <item>
  2035. <label>하</label>
  2036. <value>3</value>
  2037. </item>
  2038. <item>
  2039. <label>조정중</label>
  2040. <value>4</value>
  2041. </item>
  2042. </choices>
  2043. </col>
  2044. <col ref="indd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  2045. <col ref="cretno" visibility="hidden" style="text-align:center; "/>
  2046. <!-- instcd, wardcd, ordtype, indschacptstat, dschdd는 카데스관리 팝업창 띄우기 위해서 상단정보 셋팅, 상단정보 조회, 카덱스관리 화면 셋팅, 형태로 가져오기 위해 추가함.-->
  2047. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  2048. <col ref="wardcd" visibility="hidden" style="text-align:center; "/>
  2049. <col ref="ordtype" visibility="hidden" style="text-align:center; "/>
  2050. <col ref="indschacptstat" visibility="hidden" style="text-align:center; "/>
  2051. <col ref="dschdd" visibility="hidden" style="text-align:center; "/>
  2052. <script type="javascript" ev:event="ondblclick">
  2053. <![CDATA[
  2054. clearIhcs(); /* 재원환자관리부분 클리어 */
  2055. clearIhdc(); /* 관리일지부분 클리어 */
  2056. if( isDataCell() ){
  2057. if (grd_patreflist.row >= 1 && model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/pid") != "") {
  2058. model.setvalue("/root/send/cond2/type", "2");
  2059. model.setvalue("/root/send/cond2/pid", model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/pid"));
  2060. model.setvalue("/root/send/cond2/indd", model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/indd"));
  2061. model.setvalue("/root/send/cond2/cretno", model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/cretno"));
  2062. submit("TRPMI00911"); /* 재원환자정보 조회 */
  2063. submit("TRPMI00906"); /* 재원환자 의뢰내역 조회 */
  2064. model.setvalue("/root/send/cond2/orddeptcd", model.getValue("/root/main/mngtpat/ptbsinfo/orddeptcd"));
  2065. submit("TRPMI00904"); /* 진단명 조회 */
  2066. model.setvalue("/root/send/cond2/cnstseqno", model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/cnstseqno"));
  2067. //20091209 JHP acptdd 접수일자 조회 조건에 추가함.
  2068. model.setvalue("/root/send/cond2/acptdd", model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/acptdd"));
  2069. submit("TRPMI00907"); /* 상담내역 조회 */
  2070. if (model.getvalue("/root/hidden/ihcsinfo/acptdd") == "" && model.getvalue("/root/hidden/ihrqinfo/reqdd") != "") {
  2071. // model.setValue("/root/main/mngtpat/ihcsinfo/inhospresn", model.getValue("/root/hidden/ihrqinfo/inhospresn"));
  2072. // model.setvalue("/root/main/mngtpat/ihcsinfo/reqresn", model.getValue("/root/hidden/ihrqinfo/reqresn"));
  2073. }
  2074. if (model.getValue("/root/hidden/ihcsinfo/acptdd") != "") {
  2075. model.setValue("/root/main/mngtpat/ihcsinfo/acptdd", model.getValue("/root/hidden/ihcsinfo/acptdd"));
  2076. model.setValue("/root/main/mngtpat/ihcsinfo/cnstseqno", model.getValue("/root/hidden/ihcsinfo/cnstseqno"));
  2077. model.setValue("/root/main/mngtpat/ihcsinfo/inhospresn", model.getValue("/root/hidden/ihcsinfo/inhospresn"));
  2078. model.setValue("/root/main/mngtpat/ihcsinfo/reqresn", model.getValue("/root/hidden/ihcsinfo/reqresn"));
  2079. model.setValue("/root/main/mngtpat/ihcsinfo/prcsstatcnts", model.getValue("/root/hidden/ihcsinfo/prcsstatcnts"));
  2080. model.setValue("/root/main/mngtpat/ihcsinfo/endgrde", model.getValue("/root/hidden/ihcsinfo/endgrde"));
  2081. model.setValue("/root/main/mngtpat/ihcsinfo/delivefact", model.getValue("/root/hidden/ihcsinfo/delivefact"));
  2082. model.setValue("/root/main/mngtpat/ihcsinfo/fstindays", model.getValue("/root/hidden/ihcsinfo/fstindays"));
  2083. model.setValue("/root/main/mngtpat/ihcsinfo/prcsstatcd", model.getValue("/root/hidden/ihcsinfo/prcsstatcd"));
  2084. model.setValue("/root/main/mngtpat/ihcsinfo/chnghospresn", model.getValue("/root/hidden/ihcsinfo/chnghospresn"));
  2085. model.setValue("/root/main/mngtpat/ihcsinfo/endstatdd", model.getValue("/root/hidden/ihcsinfo/endstatdd"));
  2086. }
  2087. submit("TRPMI00908"); /* 재원환자, 재원미수환자, 퇴원미수환자의 상세 상담내역을 일자별로 관리 내역 조회 */
  2088. // }
  2089. }
  2090. var currentdate = getCurrentDate();
  2091. model.setValue("/root/main/ihdcinfo2/workdd", currentdate);
  2092. // 상단정보셋팅
  2093. fUpPatientInfos();
  2094. model.refresh();
  2095. }
  2096. ]]>
  2097. </script>
  2098. <script type="javascript" ev:event="onaftersort">
  2099. <![CDATA[
  2100. grd_patreflist.gridToInstance();
  2101. ]]>
  2102. </script>
  2103. </datagrid>
  2104. <datagrid id="grd_prestinhosp" nodeset="/root/main/mngtpat/prestinhosplist/prestinhosp" class="datagrid2" caption="등록번호^환자명^병동^병실^총재원일&#xA;(현재과재원일)^진료과^전문의^담당의^진단명^보험유형^전과^나이^성별^재원사유" colsep="^" colwidth="68, 64, 116, 60, 88, 100, 51, 60, 138, 83, 98, 37, 36, 300" dataheight="23" defaultrows="1" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:198px; width:482px; height:532px; ">
  2105. <col ref="pid" style="text-align:center; "/>
  2106. <col ref="hngnm" style="text-align:center; "/>
  2107. <col ref="wardcd" style="text-align:center; "/>
  2108. <col ref="roomcd" style="text-align:center; "/>
  2109. <col ref="indaycnt" style="text-align:center; "/>
  2110. <col ref="orddeptcd" style="text-align:center; "/>
  2111. <col ref="medispclid" style="text-align:center; "/>
  2112. <col ref="atdoctid" style="text-align:center; "/>
  2113. <col ref="diagnm" style="text-align:left; "/>
  2114. <col ref="insukind" style="text-align:center; "/>
  2115. <col ref="bforddeptcd" style="text-align:center; "/>
  2116. <col ref="age" style="text-align:center; "/>
  2117. <col ref="gender" style="text-align:center; "/>
  2118. <col ref="inhospresn" style="text-align:center; "/>
  2119. <script type="javascript" ev:event="ondblclick">
  2120. <![CDATA[
  2121. clearIhcs(); /* 재원환자관리부분 클리어 */
  2122. clearIhdc(); /* 관리일지부분 클리어 */
  2123. if( isDataCell() ){
  2124. if (grd_patreflist.row >= 1 && model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/pid") != "") {
  2125. model.setvalue("/root/send/cond2/type", "2");
  2126. model.setvalue("/root/send/cond2/pid", model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/pid"));
  2127. model.setvalue("/root/send/cond2/indd", model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/indd"));
  2128. model.setvalue("/root/send/cond2/cretno", model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/cretno"));
  2129. submit("TRPMI00911"); /* 재원환자정보 조회 */
  2130. submit("TRPMI00906"); /* 재원환자 의뢰내역 조회 */
  2131. model.setvalue("/root/send/cond2/orddeptcd", model.getValue("/root/main/mngtpat/ptbsinfo/orddeptcd"));
  2132. submit("TRPMI00904"); /* 진단명 조회 */
  2133. model.setvalue("/root/send/cond2/cnstseqno", model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/cnstseqno"));
  2134. //20091209 JHP acptdd 접수일자 조회 조건에 추가함.
  2135. model.setvalue("/root/send/cond2/acptdd", model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + grd_patreflist.row + "]/acptdd"));
  2136. submit("TRPMI00907"); /* 상담내역 조회 */
  2137. if (model.getvalue("/root/hidden/ihcsinfo/acptdd") == "" && model.getvalue("/root/hidden/ihrqinfo/reqdd") != "") {
  2138. // model.setValue("/root/main/mngtpat/ihcsinfo/inhospresn", model.getValue("/root/hidden/ihrqinfo/inhospresn"));
  2139. // model.setvalue("/root/main/mngtpat/ihcsinfo/reqresn", model.getValue("/root/hidden/ihrqinfo/reqresn"));
  2140. }
  2141. if (model.getValue("/root/hidden/ihcsinfo/acptdd") != "") {
  2142. model.setValue("/root/main/mngtpat/ihcsinfo/acptdd", model.getValue("/root/hidden/ihcsinfo/acptdd"));
  2143. model.setValue("/root/main/mngtpat/ihcsinfo/cnstseqno", model.getValue("/root/hidden/ihcsinfo/cnstseqno"));
  2144. model.setValue("/root/main/mngtpat/ihcsinfo/inhospresn", model.getValue("/root/hidden/ihcsinfo/inhospresn"));
  2145. model.setValue("/root/main/mngtpat/ihcsinfo/reqresn", model.getValue("/root/hidden/ihcsinfo/reqresn"));
  2146. model.setValue("/root/main/mngtpat/ihcsinfo/prcsstatcnts", model.getValue("/root/hidden/ihcsinfo/prcsstatcnts"));
  2147. model.setValue("/root/main/mngtpat/ihcsinfo/endgrde", model.getValue("/root/hidden/ihcsinfo/endgrde"));
  2148. model.setValue("/root/main/mngtpat/ihcsinfo/delivefact", model.getValue("/root/hidden/ihcsinfo/delivefact"));
  2149. model.setValue("/root/main/mngtpat/ihcsinfo/fstindays", model.getValue("/root/hidden/ihcsinfo/fstindays"));
  2150. model.setValue("/root/main/mngtpat/ihcsinfo/prcsstatcd", model.getValue("/root/hidden/ihcsinfo/prcsstatcd"));
  2151. }
  2152. submit("TRPMI00908"); /* 재원환자, 재원미수환자, 퇴원미수환자의 상세 상담내역을 일자별로 관리 내역 조회 */
  2153. // }
  2154. }
  2155. var currentdate = getCurrentDate();
  2156. model.setValue("/root/main/ihdcinfo2/workdd", currentdate);
  2157. model.refresh();
  2158. }
  2159. ]]>
  2160. </script>
  2161. <script type="javascript" ev:event="onaftersort">
  2162. <![CDATA[
  2163. grd_patreflist.gridToInstance();
  2164. ]]>
  2165. </script>
  2166. </datagrid>
  2167. <group id="group4" visibility="hidden" style="left:0px; top:410px; width:482px; height:160px; ">
  2168. <shape id="roundrect4" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:108px; width:482px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  2169. <button id="button9" class="btn1_letter2" navindex="10" style="left:418px; top:113px; width:56px; height:22px; ">
  2170. <caption>조회</caption>
  2171. <script type="javascript" ev:event="DOMActivate">
  2172. <![CDATA[
  2173. model.removeNodeset("/root/main/mngtpat/prestinhosplist/prestinhosp"); /* 환자조회부분 클리어 */
  2174. var days = model.getValue("/root/send/prestinhosp/indays");
  2175. if(days == "" || days == " " || days == null){
  2176. }else{
  2177. submit("TRPMI00921");
  2178. }
  2179. grd_prestinhosp.visible = true;
  2180. grd_patreflist.visible = false;
  2181. grd_uncopatlist.visible = false;
  2182. model.refresh();
  2183. ]]>
  2184. </script>
  2185. </button>
  2186. <line id="line41" class="line_4" style="x1:405px; y1:115px; x2:405px; y2:135px; border-color:#ffe4bb; border-left-style:solid; "/>
  2187. <select1 id="combo18" ref="/root/send/prestinhosp/inflag" class="combo_search" navindex="6" appearance="minimal" style="left:101px; top:114px; width:79px; height:19px; ">
  2188. <choices>
  2189. <item>
  2190. <label>전체</label>
  2191. <value>1</value>
  2192. </item>
  2193. <item>
  2194. <label>입원</label>
  2195. <value>2</value>
  2196. </item>
  2197. <item>
  2198. <label>퇴원</label>
  2199. <value>3</value>
  2200. </item>
  2201. <item>
  2202. <label>퇴원예고</label>
  2203. <value>4</value>
  2204. </item>
  2205. <item>
  2206. <label>사망</label>
  2207. <value>5</value>
  2208. </item>
  2209. <item>
  2210. <label>전원</label>
  2211. <value>6</value>
  2212. </item>
  2213. <item>
  2214. <label>재원</label>
  2215. <value>7</value>
  2216. </item>
  2217. </choices>
  2218. <script type="javascript" ev:event="xforms-select">
  2219. <![CDATA[
  2220. var sInStat = model.getValue("/root/send/findcond/instat");
  2221. var sInHospDays = model.getValue("/root/send/findcond/inhospdays");
  2222. if (sInStat == "7") {
  2223. ipt_fstrgstdt1.disabled = true;
  2224. ipt_fstrgstdt2.disabled = true;
  2225. } else {
  2226. model.setValue("/root/send/findcond/inhospdays", 0);
  2227. ipt_fstrgstdt1.disabled = false;
  2228. ipt_fstrgstdt2.disabled = false;
  2229. }
  2230. model.refresh();
  2231. ]]>
  2232. </script>
  2233. </select1>
  2234. <caption id="caption87" class="search_name" style="left:10px; top:115px; width:95px; height:17px; ">재원구분 :</caption>
  2235. <caption id="caption88" class="search_name" style="left:190px; top:115px; width:90px; height:17px; ">재원일 :</caption>
  2236. <input id="input42" ref="/root/send/prestinhosp/indays" class="input_search" navindex="0" style="left:269px; top:114px; width:45px; height:19px; "/>
  2237. <caption id="caption89" style="left:315px; top:118px; width:43px; height:15px; font-size:8pt; font-weight:bold; ">일이상</caption>
  2238. <img id="img1" src="../../../com/commonweb/images/icon_x.gif" style="left:461px; top:90px; width:16px; height:15px; background-stretch:stretch; ">
  2239. <script type="javascript" ev:event="onclick">
  2240. <![CDATA[
  2241. group4.visible = false;
  2242. grd_prestinhosp.visible = false;
  2243. grd_patreflist.visible = true;
  2244. grd_uncopatlist.visible = false;
  2245. btn_print1.disabled = false;
  2246. btn_print2.disabled = false;
  2247. button1.disabled = false;
  2248. btn_etc.disabled = false;
  2249. btn_etc1.disabled = false;
  2250. btn_nowdel.disabled = false;
  2251. ]]>
  2252. </script>
  2253. </img>
  2254. <button id="button7" class="btn2_letter2" style="left:3px; top:87px; width:42px; height:19px; ">
  2255. <caption>출력</caption>
  2256. <script type="javascript" ev:event="DOMActivate">
  2257. <![CDATA[
  2258. fPrntSeq3();
  2259. ]]>
  2260. </script>
  2261. </button>
  2262. </group>
  2263. <group id="grp_inhospendprescond" visibility="hidden" style="left:0px; top:600px; width:482px; height:32px; ">
  2264. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:482px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  2265. <button id="button16" class="btn1_letter4" navindex="10" style="left:393px; top:6px; width:80px; height:22px; ">
  2266. <caption>조회출력</caption>
  2267. <script type="javascript" ev:event="DOMActivate">
  2268. <![CDATA[
  2269. model.resetInstanceNode("/root/main/inhospendprescond/prescondlist");
  2270. model.resetInstanceNode("/root/main/inhospendprescond/prescondsrch");
  2271. var fromdd = model.getValue("/root/send/inhospendprescond/fromdd");
  2272. var todd = model.getValue("/root/send/inhospendprescond/todd");
  2273. if(fromdd == "" || todd == ""){
  2274. model.setValue("/root/send/inhospendprescond/fromdd", getCurrentDate());
  2275. model.setValue("/root/send/inhospendprescond/todd", getCurrentDate());
  2276. }
  2277. submit("TRPMI00922");
  2278. // 토탈, 과평균, 일평균 구하기
  2279. grd_prescondlist.subtotal("sum", -1, 2, "", "background-color:#99ff99", 1, "TOTAL");
  2280. grd_prescondlist.subtotal("sum", -1, 2, "", "background-color:#99ff99", 1, "TOTAL");
  2281. grd_prescondlist.subtotal("sum", -1, 3, "", "background-color:#99ff99", 1, "TOTAL");
  2282. grd_prescondlist.subtotal("sum", -1, 4, "", "background-color:#99ff99", 1, "TOTAL");
  2283. grd_prescondlist.subtotal("sum", -1, 5, "", "background-color:#99ff99", 1, "TOTAL");
  2284. grd_prescondlist.subtotal("sum", -1, 6, "", "background-color:#99ff99", 1, "TOTAL");
  2285. grd_prescondlist.subtotal("sum", -1, 7, "", "background-color:#99ff99", 1, "TOTAL");
  2286. grd_prescondlist.subtotal("sum", -1, 8, "", "background-color:#99ff99", 1, "TOTAL");
  2287. grd_prescondlist.subtotal("sum", -1, 9, "", "background-color:#99ff99", 1, "TOTAL");
  2288. grd_prescondlist.subtotal("sum", -1, 10, "", "background-color:#99ff99", 1, "TOTAL");
  2289. //datagrid.subtotal("avg", 0, 3, "#,###", "background-color:#99ff99", 0, "과평균");
  2290. //datagrid.subtotal("avg", 0, 3, "#,###", "background-color:#99ff99", 0, "일평균");
  2291. model.makeValue("/root/main/inhospendprescond/prescondsrch/cnt", getNodesetCount("/root/main/inhospendprescond/prescondlist/list"));
  2292. model.makeValue("/root/main/inhospendprescond/prescondsrch/fromdd", model.getValue("/root/send/inhospendprescond/fromdd"));
  2293. model.makeValue("/root/main/inhospendprescond/prescondsrch/todd", model.getValue("/root/send/inhospendprescond/todd"));
  2294. exeReportPreview("RPPMI00905", "XMLSTR", "" , "" , "false" , "", "", "", "", "false");
  2295. model.refresh();
  2296. ]]>
  2297. </script>
  2298. </button>
  2299. <line id="line39" class="line_4" style="x1:385px; y1:8px; x2:385px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  2300. <caption id="caption10" class="search_name" style="left:30px; top:8px; width:129px; height:17px; ">종결(퇴원)기간 :</caption>
  2301. <input id="input28" ref="/root/send/inhospendprescond/fromdd" class="input_search" navindex="0" inputtype="date" style="left:160px; top:7px; width:100px; height:19px; "/>
  2302. <img id="img2" src="../../../com/commonweb/images/icon_x.gif" style="left:5px; top:9px; width:16px; height:15px; background-stretch:stretch; ">
  2303. <script type="javascript" ev:event="onclick">
  2304. <![CDATA[
  2305. grp_inhospendprescond.visible = false;
  2306. ]]>
  2307. </script>
  2308. </img>
  2309. <caption id="caption66" style="left:264px; top:9px; width:15px; height:15px; font-size:8pt; font-weight:bold; ">~</caption>
  2310. <input id="input31" ref="/root/send/inhospendprescond/todd" class="input_search" navindex="0" inputtype="date" style="left:276px; top:8px; width:100px; height:19px; "/>
  2311. </group>
  2312. <!-- 20100518 JHP 수정추가 관리환자를 삭제한다. 실제는 삭제하면 되지만 혹시 몰라 instcd를 000으로 만들어준다. -->
  2313. <button id="btn_nowdel" class="btn5_letter2" visibility="hidden" style="left:278px; top:173px; width:42px; height:19px; ">
  2314. <caption>삭제</caption>
  2315. <script type="javascript" ev:event="DOMActivate">
  2316. <![CDATA[
  2317. var row = grd_patreflist.row;
  2318. if(row < 1){
  2319. messageBox("리스트에서 삭제할 정보를","C002");
  2320. }else{
  2321. var msgvalue = messageBox("선택하신 내용을","Q001");
  2322. if(msgvalue == "6"){
  2323. var vinstcd = grd_patreflist.valueMatrix(row,grd_patreflist.colRef("instcd")); // 기관코드
  2324. var vpid = grd_patreflist.valueMatrix(row,grd_patreflist.colRef("pid")); // 환자번호
  2325. var vindd = grd_patreflist.valueMatrix(row,grd_patreflist.colRef("indd")); // 입원일자
  2326. var vcretno = grd_patreflist.valueMatrix(row,grd_patreflist.colRef("cretno")); // 생성번호
  2327. var vacptdd = grd_patreflist.valueMatrix(row,grd_patreflist.colRef("acptdd")); // 재원환자접수일자
  2328. var vcnstseqno = grd_patreflist.valueMatrix(row,grd_patreflist.colRef("cnstseqno")); // 상담일련번호(재원환자접수번호)
  2329. model.setValue("/root/send/ihcsdelinfo/instcd", vinstcd);
  2330. model.setValue("/root/send/ihcsdelinfo/pid", vpid);
  2331. model.setValue("/root/send/ihcsdelinfo/indd", vindd);
  2332. model.setValue("/root/send/ihcsdelinfo/cretno", vcretno);
  2333. model.setValue("/root/send/ihcsdelinfo/acptdd", vacptdd);
  2334. model.setValue("/root/send/ihcsdelinfo/cnstseqno", vcnstseqno);
  2335. submit("TXPMI00905")
  2336. btn_search.dispatch("DOMActivate");
  2337. }else{
  2338. messageBox("취소","I001");
  2339. }
  2340. }
  2341. ]]>
  2342. </script>
  2343. </button>
  2344. </group>
  2345. <group id="group5" style="left:0px; top:750px; width:1195px; height:28px; ">
  2346. <button id="button2" class="btn4_letter3" navindex="25" style="left:1126px; top:5px; width:68px; height:22px; ">
  2347. <caption>초기화</caption>
  2348. <script type="javascript" ev:event="DOMActivate">
  2349. <![CDATA[
  2350. model.resetInstanceNode("/root/send/findcond");
  2351. fInitialize();
  2352. clearIhcs();
  2353. clearUnco();
  2354. clearIhdc();
  2355. var currentdate = getCurrentDate();
  2356. model.setValue("/root/main/ihdcinfo2/workdd", currentdate);
  2357. model.refresh();
  2358. ]]>
  2359. </script>
  2360. </button>
  2361. <button id="btn_saveihrq" class="btn4_letter6" style="left:814px; top:5px; width:104px; height:22px; ">
  2362. <caption>환자정보저장</caption>
  2363. <script type="javascript" ev:event="DOMActivate">
  2364. <![CDATA[
  2365. // 입력인지, 수정인지 구분 로직 필요
  2366. var iuFlag = "I";
  2367. if (isNull(model.getValue("/root/main/mngtpat/ihcsinfo/acptdd"))) {
  2368. iuFlag = "I";
  2369. } else {
  2370. iuFlag = "U";
  2371. }
  2372. var sPid = model.getValue("/root/main/mngtpat/ptbsinfo/pid");
  2373. if (!isNull(sPid)) {
  2374. if (iuFlag == "I") {
  2375. model.setValue("/root/send/insihcs/acptdd", getCurrentDate());
  2376. model.setValue("/root/send/insihcs/cnstseqno", 1);
  2377. } else {
  2378. model.setValue("/root/send/insihcs/acptdd", model.getValue("/root/main/mngtpat/ihcsinfo/acptdd"));
  2379. model.setValue("/root/send/insihcs/cnstseqno", model.getValue("/root/main/mngtpat/ihcsinfo/cnstseqno"));
  2380. }
  2381. // 테이블 변경 코드성 플래그는 null일때 '-'셋팅하도록함.
  2382. if(model.getValue("/root/main/mngtpat/ihcsinfo/prcsstatcd") == null){
  2383. model.setValue("/root/main/mngtpat/ihcsinfo/prcsstatcd", "-");
  2384. }
  2385. if(model.getValue("/root/main/mngtpat/ihcsinfo/endgrde") == null){
  2386. model.setValue("/root/main/mngtpat/ihcsinfo/endgrde", "-");
  2387. }
  2388. model.setValue("/root/send/insihcs/pid" , model.getValue("/root/main/mngtpat/ptbsinfo/pid"));
  2389. model.setValue("/root/send/insihcs/indd" , model.getValue("/root/main/mngtpat/ptbsinfo/indd"));
  2390. model.setValue("/root/send/insihcs/cretno" , model.getValue("/root/main/mngtpat/ptbsinfo/cretno"));
  2391. model.setValue("/root/send/insihcs/reqflag", "-"); //, model.getValue("/root/hidden/ihrqinfo/reqflag")); // 진료의뢰(ihrq)에서 가져와야는데 현재 안쓰므로 '-'처리
  2392. model.setValue("/root/send/insihcs/reqresn" , model.getValue("/root/main/mngtpat/ihcsinfo/reqresn"));
  2393. model.setValue("/root/send/insihcs/inhospflag", "-"); //, model.getValue("/root/hidden/ihrqinfo/inhospflag")); // 진료의뢰(ihrq)에서 가져와야는데 현재 안쓰므로 '-'처리
  2394. model.setValue("/root/send/insihcs/inhospresn" , model.getValue("/root/main/mngtpat/ihcsinfo/inhospresn"));
  2395. model.setValue("/root/send/insihcs/reqdd", "-"); //, model.getValue("/root/hidden/ihrqinfo/reqdd")); // 진료의뢰(ihrq)에서 가져와야는데 현재 안쓰므로 '-'처리
  2396. model.setValue("/root/send/insihcs/reqdeptcd", "-"); //, model.getValue("/root/hidden/ihrqinfo/reqdeptcd")); // 진료의뢰(ihrq)에서 가져와야는데 현재 안쓰므로 '-'처리
  2397. model.setValue("/root/send/insihcs/reqdrid", "-"); //, model.getValue("/root/hidden/ihrqinfo/reqdrid")); // 진료의뢰(ihrq)에서 가져와야는데 현재 안쓰므로 '-'처리
  2398. model.setValue("/root/send/insihcs/delivefact" , model.getValue("/root/main/mngtpat/ihcsinfo/delivefact"));
  2399. model.setValue("/root/send/insihcs/prcsstatcd" , model.getValue("/root/main/mngtpat/ihcsinfo/prcsstatcd"));
  2400. model.setValue("/root/send/insihcs/prcsstatcnts" , model.getValue("/root/main/mngtpat/ihcsinfo/prcsstatcnts"));
  2401. model.setValue("/root/send/insihcs/endgrde" , model.getValue("/root/main/mngtpat/ihcsinfo/endgrde"));
  2402. model.setValue("/root/send/insihcs/state" , iuFlag);
  2403. model.setValue("/root/send/insihcs/chnghospresn" ,model.getValue("/root/main/mngtpat/ihcsinfo/chnghospresn"));
  2404. model.setValue("/root/send/insihcs/endstatdd" ,model.getValue("/root/main/mngtpat/ihcsinfo/endstatdd"));
  2405. submit("TXPMI00901");
  2406. model.removeNodeset("/root/main/mngtpat/patreflist/grdpatreflist");
  2407. btn_search.dispatch("DOMActivate");
  2408. clearInpatInfo();
  2409. clearIhcs();
  2410. clearIhdc();
  2411. } else {
  2412. messageBox("환자정보가 조회되지 않았습니다!!", "C");
  2413. return;
  2414. }
  2415. ]]>
  2416. </script>
  2417. </button>
  2418. <button id="btn_saveihdc" class="btn4_letter6" navindex="23" style="left:918px; top:5px; width:104px; height:22px; ">
  2419. <caption>관리일지저장</caption>
  2420. <script type="javascript" ev:event="DOMActivate">
  2421. <![CDATA[
  2422. model.resetInstanceNode("/root/send/insihdc");
  2423. model.resetInstanceNode("/root/send/cond2");
  2424. if (switch1.case1.attribute("selected") == "true") {
  2425. model.setValue("/root/send/insihdc/pid", model.getValue("/root/main/uncopat/uncopatinfo/pid"));
  2426. model.setValue("/root/send/insihdc/indd", model.getValue("/root/main/uncopat/uncopatinfo/indd"));
  2427. model.setValue("/root/send/insihdc/cretno", model.getValue("/root/main/uncopat/uncopatinfo/cretno"));
  2428. model.setValue("/root/send/insihdc/cnstflag", "1");
  2429. model.setValue("/root/send/insihdc/cnstdetlseqno", model.getValue("/root/main/ihdcinfo2/cnstdetlseqno"));
  2430. model.setValue("/root/send/insihdc/workdd", model.getValue("/root/main/ihdcinfo2/workdd"));
  2431. model.setValue("/root/send/insihdc/cnstspec", model.getValue("/root/main/ihdcinfo2/cnstspec"));
  2432. model.setValue("/root/send/cond2/type", "1");
  2433. model.setValue("/root/send/cond2/pid", model.getValue("/root/main/uncopat/uncopatinfo/pid"));
  2434. model.setValue("/root/send/cond2/indd", model.getValue("/root/main/uncopat/uncopatinfo/indd"));
  2435. model.setValue("/root/send/cond2/cretno", model.getValue("/root/main/uncopat/uncopatinfo/cretno"));
  2436. }
  2437. if (switch1.case2.attribute("selected") == "true") {
  2438. model.setValue("/root/send/insihdc/pid", model.getValue("/root/main/mngtpat/ptbsinfo/pid"));
  2439. model.setValue("/root/send/insihdc/indd", model.getValue("/root/main/mngtpat/ptbsinfo/indd"));
  2440. model.setValue("/root/send/insihdc/cretno", model.getValue("/root/main/mngtpat/ptbsinfo/cretno"));
  2441. model.setValue("/root/send/insihdc/cnstflag", "2");
  2442. model.setValue("/root/send/insihdc/cnstdetlseqno", model.getValue("/root/main/ihdcinfo2/cnstdetlseqno"));
  2443. model.setValue("/root/send/insihdc/workdd", model.getValue("/root/main/ihdcinfo2/workdd"));
  2444. model.setValue("/root/send/insihdc/cnstspec", model.getValue("/root/main/ihdcinfo2/cnstspec"));
  2445. model.setValue("/root/send/cond2/type", "2");
  2446. model.setValue("/root/send/cond2/pid", model.getValue("/root/main/mngtpat/ptbsinfo/pid"));
  2447. model.setValue("/root/send/cond2/indd", model.getValue("/root/main/mngtpat/ptbsinfo/indd"));
  2448. model.setValue("/root/send/cond2/cretno", model.getValue("/root/main/mngtpat/ptbsinfo/cretno"));
  2449. }
  2450. submit("TXPMI00902");
  2451. model.resetInstanceNode("/root/main/ihdcinfo2/workdd");
  2452. model.resetInstanceNode("/root/main/ihdcinfo2/cnstspec");
  2453. model.removeNodeset("/root/main/ihdcinfo/grdihdcinfo");
  2454. submit("TRPMI00908"); /* 상담상세내역 조회 */
  2455. var currentdate = getCurrentDate();
  2456. model.setValue("/root/main/ihdcinfo2/workdd", currentdate);
  2457. model.refresh();
  2458. ]]>
  2459. </script>
  2460. </button>
  2461. <button id="btn_delihdc" class="btn4_letter6" navindex="24" style="left:1022px; top:5px; width:104px; height:22px; ">
  2462. <caption>관리일지삭제</caption>
  2463. <script type="javascript" ev:event="DOMActivate">
  2464. <![CDATA[
  2465. model.resetInstanceNode("/root/send/insihdc");
  2466. model.resetInstanceNode("/root/send/cond2");
  2467. if (switch1.case1.attribute("selected") == "true") {
  2468. model.setValue("/root/send/insihdc/pid", model.getValue("/root/main/uncopat/uncopatinfo/pid"));
  2469. model.setValue("/root/send/insihdc/indd", model.getValue("/root/main/uncopat/uncopatinfo/indd"));
  2470. model.setValue("/root/send/insihdc/cretno", model.getValue("/root/main/uncopat/uncopatinfo/cretno"));
  2471. model.setValue("/root/send/insihdc/cnstflag", "1");
  2472. model.setValue("/root/send/insihdc/cnstdetlseqno", model.getValue("/root/main/ihdcinfo2/cnstdetlseqno"));
  2473. model.setValue("/root/send/insihdc/workdd", model.getValue("/root/main/ihdcinfo2/workdd"));
  2474. model.setValue("/root/send/insihdc/cnstspec", model.getValue("/root/main/ihdcinfo2/cnstspec"));
  2475. model.setValue("/root/send/cond2/type", "1");
  2476. model.setValue("/root/send/cond2/pid", model.getValue("/root/main/uncopat/uncopatinfo/pid"));
  2477. model.setValue("/root/send/cond2/indd", model.getValue("/root/main/uncopat/uncopatinfo/indd"));
  2478. model.setValue("/root/send/cond2/cretno", model.getValue("/root/main/uncopat/uncopatinfo/cretno"));
  2479. }
  2480. if (switch1.case2.attribute("selected") == "true") {
  2481. model.setValue("/root/send/insihdc/pid", model.getValue("/root/main/mngtpat/ptbsinfo/pid"));
  2482. model.setValue("/root/send/insihdc/indd", model.getValue("/root/main/mngtpat/ptbsinfo/indd"));
  2483. model.setValue("/root/send/insihdc/cretno", model.getValue("/root/main/mngtpat/ptbsinfo/cretno"));
  2484. model.setValue("/root/send/insihdc/cnstflag", "2");
  2485. model.setValue("/root/send/insihdc/cnstdetlseqno", model.getValue("/root/main/ihdcinfo2/cnstdetlseqno"));
  2486. model.setValue("/root/send/insihdc/workdd", model.getValue("/root/main/ihdcinfo2/workdd"));
  2487. model.setValue("/root/send/insihdc/cnstspec", model.getValue("/root/main/ihdcinfo2/cnstspec"));
  2488. model.setValue("/root/send/cond2/type", "2");
  2489. model.setValue("/root/send/cond2/pid", model.getValue("/root/main/mngtpat/ptbsinfo/pid"));
  2490. model.setValue("/root/send/cond2/indd", model.getValue("/root/main/mngtpat/ptbsinfo/indd"));
  2491. model.setValue("/root/send/cond2/cretno", model.getValue("/root/main/mngtpat/ptbsinfo/cretno"));
  2492. }
  2493. submit("TXPMI00903");
  2494. model.setValue("/root/main/ihdcinfo2/workdd", "");
  2495. model.setValue("/root/main/ihdcinfo2/cnstspec", "");
  2496. model.setValue("/root/main/ihdcinfo2/cnstdetlseqno", "");
  2497. model.removeNodeset("/root/main/ihdcinfo/grdihdcinfo");
  2498. submit("TRPMI00908");
  2499. var currentdate = getCurrentDate();
  2500. model.setValue("/root/main/ihdcinfo2/workdd", currentdate);
  2501. ]]>
  2502. </script>
  2503. </button>
  2504. <button id="button5" class="btn4_letter6" style="left:710px; top:5px; width:104px; height:22px; ">
  2505. <caption>관리일지출력</caption>
  2506. <script type="javascript" ev:event="DOMActivate">
  2507. <![CDATA[
  2508. // 1. 재원환자관리에 등록된 환자인지 체크
  2509. // 2. 츨력 데이터 생성
  2510. // 3. 출력
  2511. var sPid = model.getValue("/root/main/mngtpat/ptbsinfo/pid");
  2512. var iCount = getNodesetCount("/root/main/mngtpat/patreflist/grdpatreflist");
  2513. var bIsExisted = false;
  2514. for (var idx = 1 ; idx <= iCount ; idx++) {
  2515. var sGridPid = model.getValue("/root/main/mngtpat/patreflist/grdpatreflist[" + idx + "]/pid");
  2516. if (sPid == sGridPid) {
  2517. bIsExisted = true;
  2518. break;
  2519. }
  2520. }
  2521. if (bIsExisted == true) {
  2522. // 출력을 위한 데이터 생성
  2523. var sAcptdd = model.getValue("/root/main/mngtpat/ihcsinfo/acptdd");
  2524. sAcptdd = sAcptdd.substring(0, 4) + "/" + sAcptdd.substring(4, 6) + "/"+ sAcptdd.substring(6, 8);
  2525. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_acptdd", sAcptdd);
  2526. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_hngnm", model.getValue("/root/main/mngtpat/ptbsinfo/hngnm"));
  2527. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_sexage", model.getValue("/root/main/mngtpat/ptbsinfo/sex") +"/"+model.getValue("/root/main/mngtpat/ptbsinfo/age"));
  2528. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_inhospdays", model.getValue("/root/main/mngtpat/ptbsinfo/fstindays"));
  2529. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_pid", model.getValue("/root/main/mngtpat/ptbsinfo/pid"));
  2530. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_orddeptnm", model.getValue("/root/main/mngtpat/ptbsinfo/orddeptnm"));
  2531. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_medispclnm", model.getValue("/root/main/mngtpat/ptbsinfo/medispclnm"));
  2532. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_atdoctnm", model.getValue("/root/main/mngtpat/ptbsinfo/atdoctnm"));
  2533. var sIndd = model.getValue("/root/main/mngtpat/ptbsinfo/indd");
  2534. sIndd = sIndd.substring(0, 4) + "/" + sIndd.substring(4, 6) + "/"+ sIndd.substring(6, 8);
  2535. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_indd", sIndd);
  2536. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_diagnm", model.getValue("/root/main/mngtpat/inpatdiaginfo/inpatdiag"));
  2537. var sDschdd = model.getValue("/root/main/mngtpat/ptbsinfo/dschdd");
  2538. sDschdd = sDschdd.substring(0, 4) + "/" +sDschdd.substring(4, 6) + "/"+ sDschdd.substring(6, 8);
  2539. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_dschdd", sDschdd);
  2540. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_wardroomnm", model.getValue("/root/main/mngtpat/ptbsinfo/roomcd"));
  2541. var sInpath = model.getValue("/root/main/mngtpat/ptbsinfo/inpath");
  2542. var sInpathNm = model.getValue("/root/init/P0002list/P0002[cdid='" + sInpath + "']/cdnm");
  2543. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_inpath", sInpathNm);
  2544. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_chngdept", model.getValue("/root/main/mngtpat/ptbsinfo/chngdept"));
  2545. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_reqresn", model.getValue("/root/main/mngtpat/ihcsinfo/reqresn"));
  2546. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_inhospresn", model.getValue("/root/main/mngtpat/ihcsinfo/inhospresn"));
  2547. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_reqpath", "");
  2548. var sInsuKind = model.getValue("/root/main/mngtpat/ptbsinfo/insukind");
  2549. var sInsuNm = model.getValue("/root/init/insukind[cd ='" + sInsuKind + "']/nm");
  2550. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_insukindnm", sInsuNm);
  2551. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_cnstcnt", getNodesetCount("/root/main/ihdcinfo/grdihdcinfo"));
  2552. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_phone", model.getValue("/root/main/mngtpat/ptbsinfo/mpphontel"));
  2553. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_address", model.getValue("/root/main/mngtpat/ptbsinfo/zipcdaddr") +" "+ model.getValue("/root/main/mngtpat/ptbsinfo/detladdr"));
  2554. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_dschinhospdays", model.getValue("/root/main/mngtpat/ptbsinfo/indays"));
  2555. //model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_prcsstat", model.getValue("/root/main/mngtpat/ihcsinfo/prcsstatcd") +" "+ model.getValue("/root/main/mngtpat/ihcsinfo/prcsstatcnts"));
  2556. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_prcsstat", rdo_prcsstatcd.label +" "+ model.getValue("/root/main/mngtpat/ihcsinfo/prcsstatcnts"));
  2557. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_delivefact", model.getValue("/root/main/mngtpat/ihcsinfo/delivefact"));
  2558. //model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_logo", getLogoImageURL());
  2559. // 20100310 병원별 로고설정 (common.js) - 시작
  2560. var logoinstcd = getUserInfo("dutplceinstcd");
  2561. var getinstcd = "MIS" + logoinstcd;
  2562. var logourl = getLogoImageURL(getinstcd);
  2563. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_logo", logourl);
  2564. model.setValue("/root/main/ihcs_print/rex_ihcs/ihcs_instcd", logoinstcd);
  2565. // 20100310 병원별 로고설정 (common.js) - 끝
  2566. copyNodesetType("/root/main/ihcs_print/rex_ihdc", "/root/main/ihdcinfo/grdihdcinfo", "replace");
  2567. //exeReportPreview("RPPMI00901", "XMLSTR", "", "", "true", "", "", "", "", "", "", "grp_report");
  2568. exeReportPreview("RPPMI00901", "XMLSTR", "" , "" , "false" , "", "", "", "", "false");
  2569. model.removeNodeset("/root/main/capm_print/rex_cacm");
  2570. } else {
  2571. messageBox("재원환자관리에 등록된 환자만 출력할 수 있습니다.!!", "I");
  2572. }
  2573. ]]>
  2574. </script>
  2575. </button>
  2576. <button id="button11" class="btn3_letter4" style="left:1px; top:5px; width:104px; height:22px; ">
  2577. <caption>수진환자</caption>
  2578. <script type="javascript" ev:event="DOMActivate">
  2579. <![CDATA[
  2580. modal("SMPMC00300");
  2581. ]]>
  2582. </script>
  2583. </button>
  2584. <button id="button12" class="btn3_letter4" style="left:81px; top:5px; width:80px; height:22px; ">
  2585. <caption>특이환자</caption>
  2586. <script type="javascript" ev:event="DOMActivate">
  2587. <![CDATA[
  2588. model.setValue("/root/send/data5/srchcond", 1);
  2589. // 재원미수
  2590. if (switch1.case1.attribute("selected") == "true") {
  2591. model.setValue("/root/send/data5/pid", model.getValue("/root/main/uncopat/uncopatinfo/pid"));
  2592. }
  2593. // 재원환자
  2594. if (switch1.case2.attribute("selected") == "true") {
  2595. model.setValue("/root/send/data5/pid", model.getValue("/root/main/mngtpat/ptbsinfo/pid"));
  2596. }
  2597. modal("SMPMC01300", "1", "", "", "SMPMC01300", "/root/send/data5", "/root/source");
  2598. ]]>
  2599. </script>
  2600. </button>
  2601. <button id="button13" class="btn3_letter4" style="left:161px; top:5px; width:80px; height:22px; ">
  2602. <caption>민원환자</caption>
  2603. <script type="javascript" ev:event="DOMActivate">
  2604. <![CDATA[
  2605. modal("SMPMC00100");
  2606. ]]>
  2607. </script>
  2608. </button>
  2609. <button id="button36" class="btn3_letter7" style="left:241px; top:5px; width:116px; height:22px; ">
  2610. <caption>진료비상세내역</caption>
  2611. <script type="javascript" ev:event="DOMActivate">
  2612. <![CDATA[
  2613. if (switch1.case1.attribute("selected") == "true") {
  2614. if (model.getValue("/root/main/uncopat/uncopatinfo/pid") == "" || model.getValue("/root/main/uncopat/uncopatinfo/pid") == null) {
  2615. modal("../../../pam/inordamtmngtweb/xrw/SMPAI00200", "1","","", "SMPAI00200", "","");
  2616. } else {
  2617. modal("../../../pam/inordamtmngtweb/xrw/SMPAI00200", "1","","", "SMPAI00200", "/root/main/uncopat/uncopatinfo/pid","/root/send/pid");
  2618. }
  2619. }
  2620. if (switch1.case2.attribute("selected") == "true") {
  2621. if (model.getValue("/root/main/mngtpat/ptbsinfo/pid") == "" || model.getValue("/root/main/mngtpat/ptbsinfo/pid") == null) {
  2622. modal("../../../pam/inordamtmngtweb/xrw/SMPAI00200", "1","","", "SMPAI00200", "","");
  2623. } else {
  2624. modal("../../../pam/inordamtmngtweb/xrw/SMPAI00200", "1","","", "SMPAI00200", "/root/main/mngtpat/ptbsinfo/pid","/root/send/pid");
  2625. }
  2626. }
  2627. ]]>
  2628. </script>
  2629. </button>
  2630. <line id="line36" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  2631. <button id="btn_saveIhgt" class="btn4_letter6" navindex="21" style="left:814px; top:5px; width:104px; height:22px; ">
  2632. <caption>보증인저장</caption>
  2633. <script type="javascript" ev:event="DOMActivate">
  2634. <![CDATA[
  2635. //alert(model.getValue("/root/main/uncopat/ihgtinfo/state"));
  2636. model.setValue("/root/send/insihgt/pid", model.getValue("/root/main/uncopat/uncopatinfo/pid"));
  2637. model.setValue("/root/send/insihgt/indd", model.getValue("/root/main/uncopat/uncopatinfo/indd"));
  2638. model.setValue("/root/send/insihgt/cretno", model.getValue("/root/main/uncopat/uncopatinfo/cretno"));
  2639. model.setValue("/root/send/insihgt/grnternm", model.getValue("/root/main/uncopat/ihgtinfo/grnternm"));
  2640. model.setValue("/root/send/insihgt/grntertel", model.getValue("/root/main/uncopat/ihgtinfo/grntertel"));
  2641. model.setValue("/root/send/insihgt/realcd", model.getValue("/root/main/uncopat/ihgtinfo/realcd"));
  2642. model.setValue("/root/send/insihgt/addr", model.getValue("/root/main/uncopat/ihgtinfo/addr"));
  2643. model.setValue("/root/send/insihgt/grnternm1", model.getValue("/root/main/uncopat/ihgtinfo/grnternm1"));
  2644. model.setValue("/root/send/insihgt/grntertel1", model.getValue("/root/main/uncopat/ihgtinfo/grntertel1"));
  2645. model.setValue("/root/send/insihgt/real1", model.getValue("/root/main/uncopat/ihgtinfo/real1"));
  2646. model.setValue("/root/send/insihgt/addr1", model.getValue("/root/main/uncopat/ihgtinfo/addr1"));
  2647. model.setValue("/root/send/insihgt/grnternm2", model.getValue("/root/main/uncopat/ihgtinfo/grnternm2"));
  2648. model.setValue("/root/send/insihgt/grntertel2", model.getValue("/root/main/uncopat/ihgtinfo/grntertel2"));
  2649. model.setValue("/root/send/insihgt/real2", model.getValue("/root/main/uncopat/ihgtinfo/real2"));
  2650. model.setValue("/root/send/insihgt/addr2", model.getValue("/root/main/uncopat/ihgtinfo/addr2"));
  2651. model.setValue("/root/send/insihgt/state", model.getValue("/root/main/uncopat/ihgtinfo/state"));
  2652. submit("TXPMI00904");
  2653. // clearIhcs();
  2654. // clearUnco();
  2655. // clearIhdc();
  2656. ]]>
  2657. </script>
  2658. </button>
  2659. <button id="button3" class="btn3_letter6" style="left:357px; top:5px; width:104px; height:22px; ">
  2660. <caption>개인미수입금</caption>
  2661. <script type="javascript" ev:event="DOMActivate">
  2662. <![CDATA[
  2663. modal("../../../pam/uncoamtmngtweb/xrw/SMPAM00100", "1","","", "SMPAM00100.xrw", "","");
  2664. ]]>
  2665. </script>
  2666. </button>
  2667. </group>
  2668. </xhtml:body>
  2669. </xhtml:html>