SMPMC02600_자보환자관리.xrw 177 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748
  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. <search>
  11. <reference/>
  12. <reference1/>
  13. <suppkind/>
  14. <histstat/>
  15. <endstat/>
  16. <reference2/>
  17. <reference3/>
  18. <fromdd/>
  19. <todd/>
  20. <useyn/>
  21. </search>
  22. <save/>
  23. <save1>
  24. </save1>
  25. <cancel>
  26. <pid/>
  27. <mngtno/>
  28. <seqno/>
  29. </cancel>
  30. <airasend>
  31. <pid/>
  32. <mngtno/>
  33. <instcd/>
  34. <insukind/>
  35. </airasend>
  36. <search1>
  37. <srchcond/>
  38. <pid/>
  39. <hngnm/>
  40. <rrgstno1/>
  41. <rrgstno2/>
  42. <acptdd/>
  43. </search1>
  44. <SMPAI0020>
  45. <ipatflag/>
  46. <pid/>
  47. <indd/>
  48. <dschdd/>
  49. <fromdd/>
  50. <todd/>
  51. <cretno/>
  52. <instcd/>
  53. <mskind/>
  54. <sess_posinstcd/>
  55. </SMPAI0020>
  56. <search2>
  57. <pid/>
  58. <instcd/>
  59. <aprvfromdd/>
  60. <aprvtodd/>
  61. <srchdd/>
  62. </search2>
  63. <data1>
  64. <pid/>
  65. <remfact/>
  66. <inpt_instcd/>
  67. </data1>
  68. </send>
  69. <main>
  70. <condition2>
  71. <reference>0</reference>
  72. <pid/>
  73. <hngnm/>
  74. <rrgstno/>
  75. <tel/>
  76. <acddd/>
  77. <insucd/>
  78. <mngtno/>
  79. <carno/>
  80. <date1/>
  81. <date2/>
  82. <suppkind/>
  83. <histstat>1</histstat>
  84. <endstat>1</endstat>
  85. <term/>
  86. </condition2>
  87. <condition>
  88. <reference>6</reference>
  89. <pid/>
  90. <hngnm/>
  91. <rrgstno/>
  92. <tel/>
  93. <acddd/>
  94. <insucd/>
  95. <suppkind/>
  96. <mngtno/>
  97. <carno/>
  98. <date1/>
  99. <date2/>
  100. <histstat>1</histstat>
  101. <endstat>1</endstat>
  102. </condition>
  103. <ptbspatinfo>
  104. <hngnm/>
  105. <rrgstno/>
  106. <hometel/>
  107. <mpphontel/>
  108. <zipcode1/>
  109. <zipcode2/>
  110. <zipcdseq/>
  111. <zipcdaddr/>
  112. <detladdr/>
  113. <remfact/>
  114. <sex/>
  115. <age/>
  116. <insucdnm/>
  117. <ordopendd/>
  118. <acddd/>
  119. <mngtno/>
  120. <oldmngtno/>
  121. <autmbinsuseqno/>
  122. <suppkind/>
  123. <carno/>
  124. <chrgrnm/>
  125. <chrgrtel/>
  126. <aprvfromdd/>
  127. <aprvtodd/>
  128. <paylimamt/>
  129. <chospathcd>
  130. </chospathcd>
  131. <endflag>N</endflag>
  132. <endresncd/>
  133. <agreenddd/>
  134. <autmbinsurem/>
  135. <seqno/>
  136. <pid/>
  137. <insertid/>
  138. <chrgrfaxno/>
  139. </ptbspatinfo>
  140. <aipmgrdlist>
  141. <gridaipmptbs>
  142. <pid/>
  143. <hngnm/>
  144. <rrgstno/>
  145. <insucdnm/>
  146. <agreenddd/>
  147. <ordopendd/>
  148. <acddd/>
  149. <mngtno/>
  150. <aprvfromdd/>
  151. <aprvtodd/>
  152. <suppkind/>
  153. <paylimamt/>
  154. <carno/>
  155. <chospathcd/>
  156. <endflag/>
  157. <endresncd/>
  158. <chrgrnm/>
  159. <chrgrtel/>
  160. <autmbinsurem/>
  161. <hometel/>
  162. <zipcd1/>
  163. <zipcd2/>
  164. <zipcdseq/>
  165. <mpphontel/>
  166. <detladdr/>
  167. <remfact/>
  168. <autmbinsuseqno/>
  169. <brthdd/>
  170. <sex/>
  171. <seqno/>
  172. <insucd/>
  173. <histstat/>
  174. </gridaipmptbs>
  175. </aipmgrdlist>
  176. <aipmgrd>
  177. <gridInsurance>
  178. <pid/>
  179. <hngnm/>
  180. <rrgstno/>
  181. <insucdnm/>
  182. <agreenddd/>
  183. <ordopendd/>
  184. <acddd/>
  185. <mngtno/>
  186. <oldmngtno/>
  187. <aprvfromdd/>
  188. <aprvtodd/>
  189. <suppkind/>
  190. <paylimamt/>
  191. <carno/>
  192. <chospathcd/>
  193. <endflag/>
  194. <endresncd/>
  195. <chrgrnm/>
  196. <chrgrtel/>
  197. <chrgrfaxno/>
  198. <autmbinsurem/>
  199. <hometel/>
  200. <zipcd1/>
  201. <zipcd2/>
  202. <zipcdseq/>
  203. <mpphontel/>
  204. <detladdr/>
  205. <remfact/>
  206. <autmbinsuseqno/>
  207. <brthdd/>
  208. <sex/>
  209. <seqno/>
  210. <insucd/>
  211. <histstat/>
  212. <outorddd/>
  213. <inadrvdd/>
  214. </gridInsurance>
  215. </aipmgrd>
  216. <aimtgrd>
  217. <gridaimtsearch>
  218. <update/>
  219. <state/>
  220. <pid/>
  221. <mngtno/>
  222. <mtrtseqno/>
  223. <seqno/>
  224. <instcd/>
  225. <histstat/>
  226. <ordflag/>
  227. <orddeptcd/>
  228. <orddeptnm/>
  229. <specordyn/>
  230. <ordopendd/>
  231. <ordtodd/>
  232. <autmbinsutermrem/>
  233. <orgspecordyn/>
  234. </gridaimtsearch>
  235. </aimtgrd>
  236. <paygrntgrd>
  237. <paygrntinfo>
  238. <update/>
  239. <state/>
  240. <pid/>
  241. <mngtno/>
  242. <mtrtseqno/>
  243. <seqno/>
  244. <instcd/>
  245. <histstat/>
  246. <paygrntno/>
  247. <ordopendd/>
  248. <ordtodd/>
  249. <paygrntrem/>
  250. </paygrntinfo>
  251. </paygrntgrd>
  252. <otptgrd>
  253. <otptinfo>
  254. <update/>
  255. <state/>
  256. <pid/>
  257. <orddd/>
  258. <orddeptcd/>
  259. <orddeptnm/>
  260. <insucd/>
  261. </otptinfo>
  262. </otptgrd>
  263. <profcertgrd>
  264. <grdprofcertinfo>
  265. <chosflag/>
  266. <prntkind/>
  267. <orddd/>
  268. <orddept/>
  269. <doctnm/>
  270. <issdd/>
  271. <freeissresn/>
  272. </grdprofcertinfo>
  273. </profcertgrd>
  274. <patinfo>
  275. <patinfolist/>
  276. </patinfo>
  277. <popupendflag/>
  278. <autolimit>
  279. <aipm_insucdnm/>
  280. <aipm_aprvfromdd/>
  281. <aipm_aprvtodd/>
  282. <aipm_paylimamt/>
  283. <aipm_intotuseamt/>
  284. <aipm_outtotuseamt/>
  285. <aipm_bal/>
  286. </autolimit>
  287. <paygrntgrd/>
  288. </main>
  289. <hidden>
  290. <ptbspatinfo>
  291. <pid/>
  292. <rrgstno/>
  293. <hngnm/>
  294. <hometel/>
  295. <zipcd1/>
  296. <zipcd2/>
  297. <zipcdseq/>
  298. <mpphontel/>
  299. <detladdr/>
  300. <remfact/>
  301. <sex/>
  302. <brthdd/>
  303. </ptbspatinfo>
  304. <popupmenu>
  305. <gridmenu>
  306. <item>
  307. <name>추가</name>
  308. <func>fGridAddRow</func>
  309. </item>
  310. <item>
  311. <name>삽입</name>
  312. <func>fGridInsertRow</func>
  313. </item>
  314. <item>
  315. <name>삭제</name>
  316. <func>fGridDeleteRow</func>
  317. </item>
  318. <item>
  319. <name>엑셀저장</name>
  320. <func>fGridSaveExcel</func>
  321. </item>
  322. </gridmenu>
  323. </popupmenu>
  324. <session/>
  325. <rcv/>
  326. </hidden>
  327. <init>
  328. <insucd>
  329. <cd/>
  330. <nm/>
  331. </insucd>
  332. <orddeptcd>
  333. <cd/>
  334. <nm/>
  335. <deptengabbr/>
  336. <io/>
  337. </orddeptcd>
  338. <suppkind>
  339. <up/>
  340. <cd/>
  341. <nm/>
  342. <io/>
  343. </suppkind>
  344. <endresncd>
  345. <cd/>
  346. <nm/>
  347. </endresncd>
  348. <instcd>012</instcd>
  349. <sess_posinstcd>012</sess_posinstcd>
  350. </init>
  351. <temp>
  352. <chospathcd>
  353. <items>
  354. <cd>1</cd>
  355. <nm>외래</nm>
  356. </items>
  357. <items>
  358. <cd>2</cd>
  359. <nm>응급실</nm>
  360. </items>
  361. <items>
  362. <cd>3</cd>
  363. <nm>전원</nm>
  364. </items>
  365. </chospathcd>
  366. <endresncd>
  367. <items>
  368. <nm>계속</nm>
  369. <cd>1</cd>
  370. </items>
  371. <items>
  372. <nm>합의</nm>
  373. <cd>2</cd>
  374. </items>
  375. <items>
  376. <nm>사망</nm>
  377. <cd>3</cd>
  378. </items>
  379. <items>
  380. <nm>중지</nm>
  381. <cd>4</cd>
  382. </items>
  383. <items>
  384. <nm>전원</nm>
  385. <cd>5</cd>
  386. </items>
  387. </endresncd>
  388. <autmbinsuamtlist>
  389. <aipm_pid/>
  390. <aipm_hngnm/>
  391. <aipm_instcd/>
  392. <aipm_insukind/>
  393. <aipm_suppkind/>
  394. <aipm_autmbinsuseqno/>
  395. <aipm_insucmpycd/>
  396. <aipm_insucdnm/>
  397. <aipm_ordopendd/>
  398. <aipm_aprvfromdd/>
  399. <aipm_aprvtodd/>
  400. <aipm_paylimamt/>
  401. <aipm_orddd/>
  402. <aipm_ordtype/>
  403. <aipm_totamt/>
  404. <aipm_insuamt/>
  405. <aipm_ownamt/>
  406. <aipm_acmlamt/>
  407. <aipm_balamt/>
  408. <aipm_percent/>
  409. </autmbinsuamtlist>
  410. <checkendflag/>
  411. </temp>
  412. <init1>
  413. <P0101list>
  414. <P0101>
  415. <cdnm/>
  416. <cdid/>
  417. </P0101>
  418. </P0101list>
  419. <P0028list>
  420. <P0028>
  421. <cdnm/>
  422. <cdid/>
  423. </P0028>
  424. </P0028list>
  425. <P0038list>
  426. <P0038>
  427. <cdnm/>
  428. <cdid/>
  429. </P0038>
  430. </P0038list>
  431. </init1>
  432. </root>
  433. </instance>
  434. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  435. <submission id="TXPAI02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/hidden/rcv"/>
  436. <!--
  437. <submission id="TRPAI02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search2" replace="instance" resultref="/root/main/autolimit"/>
  438. -->
  439. <submission id="TRPMC02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/aipmgrd"/>
  440. <submission id="TRPMC02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/instcd" resultref="/root/init"/>
  441. <submission id="TRPMC02603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/ptbspatinfo/pid" resultref="/root/main/profcertgrd"/>
  442. <submission id="TRPMC02604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save1" resultref="/root/main/aimtgrd"/>
  443. <submission id="TRPMC02605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/hidden"/>
  444. <submission id="TRPMC02606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/aipmgrdlist"/>
  445. <submission id="TRPMC02607" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search2" resultref="/root/temp/autmbinsuamtlist"/>
  446. <submission id="TRPMC02608" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save1" resultref="/root/main/paygrntgrd"/>
  447. <submission id="TRPMC02610" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save1" resultref="/root/main/otptgrd"/>
  448. <submission id="TRPMC02611" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save1" resultref="/root/temp/undoexeclist"/>
  449. <submission id="TXPMC02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save"/>
  450. <submission id="TXPMC02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cancel"/>
  451. <submission id="TXPMC02603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save1"/>
  452. <submission id="TXPMC02604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save1"/>
  453. <submission id="TXPMC02605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save1"/>
  454. <submission id="TXPMC02606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save"/>
  455. </model>
  456. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  457. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  458. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  459. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  460. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  461. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  462. <script type="javascript" ev:event="xforms-ready">
  463. <![CDATA[
  464. //2014/08/29 이정택 추가
  465. ipt_fromdd.value=getCurrentDate();
  466. ipt_todd.value=getCurrentDate();
  467. rdo_useyn.value="N";
  468. //2014/08/29 이정택 추가
  469. fGetUserInfosSampling(); //세션정보
  470. zbcfGetCodeList(new Array("P0101","P0028","P0038"),new Array("/root/init1/P0101list","/root/init1/P0028list","/root/init1/P0038list"));
  471. model.setValue("/root/main/ptbspatinfo/endresncd" , "1");
  472. model.setValue("/root/main/condition/endstat" , "1");
  473. model.setValue("/root/main/condition/histstat" , "1");
  474. cmb_endresncd.disabled = true;
  475. submit("TRPMC02602");
  476. // 화면 오픈 시 개인자보관리 탭이 기본으로 열리도록 수정
  477. btn_mngt.selected= true;
  478. btn_mngt.dispatch("xforms-activate");
  479. ipt_pid1.visible = false;
  480. ipt_date1.visible = false;
  481. ipt_date2.visible = false;
  482. ipt_carno1.visible = false;
  483. ipt_mngtno1.visible = false;
  484. cmb_insucd1.visible = false;
  485. ipt_acddd1.visible = false;
  486. caption1.visible= false;
  487. ipt_hngnm1.visible = false;
  488. ipt_rrgstno1.visible = false;
  489. ipt_tel1.visible = false;
  490. //2008.03.14 추가
  491. ipt_pid2.visible = false;
  492. ipt_date3.visible = false;
  493. ipt_date4.visible = false;
  494. ipt_carno2.visible = false;
  495. ipt_mngtno2.visible = false;
  496. cmb_insucd2.visible = false;
  497. ipt_acddd2.visible = false;
  498. caption8.visible= false;
  499. ipt_hngnm2.visible = false;
  500. ipt_rrgstno2.visible = false;
  501. ipt_tel2.visible = false;
  502. bool6.visible = false;
  503. caption41.visible = false;
  504. //2007-10-16 이동식 추가 - 다른화면에서 호출시 자동환자정보조회
  505. if (checkOpener()){ //팝업화면으로 사용될 때
  506. //RSRVFLAG, ETCORDFLAG 를 받아온다.
  507. var pid = opener.javascript.getParameter("SMPMC02600_pid");
  508. if( pid == '' || pid == ' ' || pid == '-' ){
  509. model.setValue("/root/main/condition/reference", "6"); //보험회사
  510. cmb_reference.dispatch("xforms-select");
  511. }else{
  512. model.setValue("/root/main/condition/reference", "1"); //환자번호
  513. cmb_reference.dispatch("xforms-select");
  514. model.setValue("/root/main/condition/pid", pid);
  515. btn_search.dispatch("DOMActivate");
  516. }
  517. // model.setValue("/root/main/condition/reference", "0");
  518. // cmb_reference.refresh();
  519. // ipt_pid1.visible = false;
  520. //
  521. // btn_mngt.selected= true;
  522. // btn_mngt.dispatch("xforms-activate");
  523. } else {
  524. // 기본으로 환자번호 조건 설정
  525. model.setValue("/root/main/condition/reference", "6");
  526. cmb_reference.refresh();
  527. cmb_reference.dispatch("xforms-select");
  528. //ipt_carno1.visible = true;
  529. //model.setFocus("ipt_pid1");
  530. }
  531. //END..
  532. model.refresh();
  533. ]]>
  534. </script>
  535. <script type="javascript">
  536. <![CDATA[
  537. /*
  538. * Byte 수를 저장할 변수 체크
  539. */
  540. function fGetOracleByteLength(pValue){
  541. var rtnValue = 0;
  542. for(var i=0; i < pValue.length; i++){
  543. (pValue.charCodeAt(i) > 255) ? rtnValue += 3 : rtnValue += 1; //한글이 들어오면 255보다 크다
  544. }
  545. return rtnValue;
  546. }
  547. /*
  548. * 세션정보
  549. */
  550. function fGetUserInfosSampling(){
  551. var sUserInfosS = getUserInfos();
  552. sUserInfosS = sUserInfosS + "|";
  553. var UserInfosS_Array = sUserInfosS.split("|");
  554. var userid = UserInfosS_Array[0]; //사용자번호
  555. var usernm = UserInfosS_Array[1]; //사용자이름
  556. var posinstcd = UserInfosS_Array[2]; //소속기관코드
  557. var posinstnm = UserInfosS_Array[3]; //소속기관명
  558. var posdeptcd = UserInfosS_Array[4]; //소속부서코드
  559. var posdeptnm = UserInfosS_Array[5]; //소속부서명
  560. model.makeNode("/root/hidden/session/" + "userid");
  561. model.makeNode("/root/hidden/session/" + "usernm");
  562. model.makeNode("/root/hidden/session/" + "posinstcd");
  563. model.makeNode("/root/hidden/session/" + "posinstnm");
  564. model.makeNode("/root/hidden/session/" + "posdeptcd");
  565. model.makeNode("/root/hidden/session/" + "posdeptnm")
  566. if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
  567. if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "012";
  568. model.setValue("/root/hidden/session/userid",userid);
  569. model.setValue("/root/hidden/session/usernm",usernm);
  570. model.setValue("/root/hidden/session/posinstcd",posinstcd);
  571. model.setValue("/root/hidden/session/posinstnm",posinstnm);
  572. model.setValue("/root/hidden/session/posdeptcd",posdeptcd);
  573. model.setValue("/root/hidden/session/posdeptnm",posdeptnm);
  574. model.refresh();
  575. }
  576. function condition_initialize(){
  577. model.setValue("/root/main/condition/pid", "");
  578. model.setValue("/root/main/condition/hngnm", "");
  579. model.setValue("/root/main/condition/rrgstno", "");
  580. model.setValue("/root/main/condition/tel", "");
  581. model.setValue("/root/main/condition/acddd", "");
  582. model.setValue("/root/main/condition/insucd", "");
  583. model.setValue("/root/main/condition/suppkind", "");
  584. model.setValue("/root/main/condition/mngtno", "");
  585. model.setValue("/root/main/condition/carno", "");
  586. model.setValue("/root/main/condition/date1", "");
  587. model.setValue("/root/main/condition/date2", "");
  588. model.refresh();
  589. }
  590. function condition2_initialize(){
  591. model.setValue("/root/main/condition2/pid", "");
  592. model.setValue("/root/main/condition2/hngnm", "");
  593. model.setValue("/root/main/condition2/rrgstno", "");
  594. model.setValue("/root/main/condition2/tel", "");
  595. model.setValue("/root/main/condition2/acddd", "");
  596. model.setValue("/root/main/condition2/insucd", "");
  597. model.setValue("/root/main/condition2/suppkind", "");
  598. model.setValue("/root/main/condition2/mngtno", "");
  599. model.setValue("/root/main/condition2/carno", "");
  600. model.setValue("/root/main/condition2/date1", "");
  601. model.setValue("/root/main/condition2/date2", "");
  602. model.refresh();
  603. }
  604. function fInitialize(){
  605. model.resetInstanceNode("/root/main/ptbspatinfo"); //인적사항import clear
  606. //그 외에 화면 초기화
  607. model.resetInstanceNode("/root/main/ptbspatinfo/pid");
  608. model.resetInstanceNode("/root/main/ptbspatinfo/rrgstno");
  609. model.resetInstanceNode("/root/hidden/ptbspatinfo");
  610. model.resetInstanceNode("/root/send/save");
  611. model.resetInstanceNode("/root/send/save1");
  612. model.resetInstanceNode("/root/send/cancel");
  613. model.resetInstanceNode("/root/send/airasend");
  614. model.removeNodeset("/root/main/aipmgrd/gridInsurance");
  615. model.removeNodeset("/root/main/aimtgrd/gridaimtsearch");
  616. model.removeNodeset("/root/main/aimtgrd/grdprofcertinfo");
  617. model.removeNodeset("/root/main/paygrntgrd/paygrntinfo");
  618. // model.setValue("/root/send/srchcond","AA"); //조회조건 [전체]로 세팅
  619. // model.setValue("/root/main/ptbspatinfo/autmbinsuseqno", getCurrentDate());
  620. model.refresh();
  621. }
  622. function fGridAddRow() {
  623. grd_aimtSearch.addRow(grd_aimtSearch.row, true);
  624. grd_aimtSearch.cellStyle("background-image", grd_aimtSearch.row, 1) = "../../../com/commonweb/images/icon_i.gif";
  625. // model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/state", "I");
  626. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/pid", model.getvalue("/root/main/ptbspatinfo/pid"));
  627. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mngtno", model.getvalue("/root/main/ptbspatinfo/mngtno"));
  628. if (grd_aimtSearch.row <= grd_aimtSearch.rows-1) {
  629. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.row);
  630. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.row);
  631. } else {
  632. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.rows-1);
  633. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.rows-1);
  634. }
  635. //model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", "1");
  636. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/instcd", model.getValue("/root/hidden/session/posinstcd"));
  637. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/histstat", "Y");
  638. grd_aimtSearch.refresh();
  639. }
  640. function fGridInsertRow() {
  641. if(grd_aimtSearch.row != -1) {
  642. grd_aimtSearch.insertRow(grd_aimtSearch.row, true);
  643. grd_aimtSearch.cellStyle("background-image", grd_aimtSearch.row, 1) = "../../../com/commonweb/images/icon_i.gif";
  644. // model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/state", "I");
  645. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/pid", model.getvalue("/root/main/ptbspatinfo/pid"));
  646. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mngtno", model.getvalue("/root/main/ptbspatinfo/mngtno"));
  647. if (grd_aimtSearch.row <= grd_aimtSearch.rows-1) {
  648. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.row);
  649. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.row);
  650. } else {
  651. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.rows-1);
  652. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.rows-1);
  653. }
  654. //model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", "1");
  655. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/instcd", model.getValue("/root/hidden/session/posinstcd"));
  656. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/histstat", "Y");
  657. grd_aimtSearch.refresh();
  658. }
  659. }
  660. function fGridDeleteRow() {
  661. grd_aimtSearch.addStatus(grd_aimtSearch.row, "delete");
  662. grd_aimtSearch.cellStyle("background-image", grd_aimtSearch.row, 1) = "../../../com/commonweb/images/icon_d.gif";
  663. }
  664. /*
  665. * 2008.03.20 최병진 - 자보한도액, 발생금액 비교(80% 초과 체크)
  666. */
  667. function fGetAutmbInsuLimAmt(gridID, data){
  668. var gridObj = document.all(gridID);
  669. gridObj.allstyle("all", "background-color") = "#ffffff";
  670. for(var idx=gridObj.fixedRows; idx<gridObj.rows; idx++){
  671. /*
  672. * 보조유형 체크
  673. * 18-자손/책임/무보험
  674. * 91-자손/책임/무보험 안전띠미착용20% - 201307005
  675. */
  676. var sSuppkind = model.getValue("/root/main/aipmgrdlist/gridaipmptbs[" + idx +"]/suppkind");
  677. if (sSuppkind == "18" || sSuppkind == "91"){
  678. model.setValue("/root/send/search2/pid" , model.getValue("/root/main/aipmgrdlist/gridaipmptbs[" + idx +"]/pid"));
  679. model.setValue("/root/send/search2/instcd" , getUserInfo("posinstcd"));
  680. model.setValue("/root/send/search2/aprvfromdd" , model.getValue("/root/main/aipmgrdlist/gridaipmptbs[" + idx +"]/aprvfromdd"));
  681. model.setValue("/root/send/search2/aprvtodd" , model.getValue("/root/main/aipmgrdlist/gridaipmptbs[" + idx +"]/aprvtodd"));
  682. model.setValue("/root/send/search2/srchdd" , "");
  683. submit("TRPMC02607");
  684. var rows = getNodesetCount("/root/temp/autmbinsuamtlist");
  685. if (rows > 0) {
  686. for (var i = 1 ; i <= rows ; i++) {
  687. var tPercent = model.getValue("/root/temp/autmbinsuamtlist[" + i + "]/aipm_percent");
  688. if (parseFloat(tPercent) >= parseFloat(data)) {
  689. gridObj.rowstyle( idx , "data" , "background-color" ) = "#ffe79d";
  690. break;
  691. }
  692. }
  693. }
  694. }
  695. }
  696. model.refresh();
  697. }
  698. /*
  699. * 보조유형 체크
  700. * 18-자손/책임/무보험
  701. * 91-자손/책임/무보험 안전띠미착용20% - 201307005
  702. */
  703. function fCheckAutmbInsuLimAmt(){
  704. var sSuppkind = model.getValue("/root/main/ptbspatinfo/suppkind");
  705. var iPayLimAmt = Number(model.getValue("/root/main/ptbspatinfo/paylimamt"));
  706. if(sSuppkind == "18" || sSuppkind == "91"){
  707. if(iPayLimAmt <= 0){
  708. messageBox("보조유형과 지불한도액을 확인하세요!", "I000");
  709. return false;
  710. }
  711. }else if(iPayLimAmt > 0){
  712. messageBox("보조유형과 지불한도액을 확인하세요!", "I000");
  713. return false;
  714. }
  715. return true;
  716. }
  717. /*
  718. * 보험이력 체크
  719. */
  720. function fCheckAipm(){
  721. var insucdnm = model.getValue("/root/main/ptbspatinfo/insucdnm");
  722. var acddd = model.getValue("/root/main/ptbspatinfo/acddd");
  723. var mngtno = model.getValue("/root/main/ptbspatinfo/mngtno");
  724. var returnValue = "true";
  725. while(i<=grd_Insurance.rows-1){
  726. if(model.getValue("/root/main/aipmgrd/gridInsurance[" + i + "]/insucdnm") == insucdnm
  727. && model.getValue("/root/main/aipmgrd/gridInsurance[" + i + "]/acddd") == acddd
  728. && model.getValue("/root/main/aipmgrd/gridInsurance[" + i + "]/mngtno") == mngtno){
  729. messageBox("[" + i + "]번째 중복된 보험이력이 존재합니다. "+ insucdnm + "(" + acddd + " " +mngtno + ")", "I000");
  730. returnValue = "false";
  731. break;
  732. }
  733. i++;
  734. }
  735. return returnValue;
  736. }
  737. /*
  738. * 종결처리 시 미시행 처방 체크
  739. */
  740. function fCheckUndoExec(){
  741. copyNodeType("/root/send/save1", "/root/main/ptbspatinfo", "replace");
  742. submit("TRPMC02611");
  743. var rows = getNodesetCount("/root/temp/undoexeclist");
  744. if(rows > 0){
  745. var orddd = model.getValue("/root/temp/undoexeclist/orddd");
  746. var orddeptnm = model.getValue("/root/temp/undoexeclist/orddeptnm");
  747. var orddrnm = model.getValue("/root/temp/undoexeclist/orddrnm");
  748. var msg = "[진료일자 : " + orddd + " " + orddeptnm + "(" + orddrnm + ")]";
  749. if(messageBox("미시행 처방이 존재합니다."+msg+" 계속", "Q002", "") != 6 ){
  750. return false;
  751. }
  752. return true;
  753. }
  754. return true;
  755. }
  756. /*
  757. * 세부정보 조회
  758. * 기간관리, 지급보증번호, 진료이력관리
  759. */
  760. function fGetDetInfo(){
  761. copyNodeType("/root/send/save1", "/root/main/ptbspatinfo", "replace");
  762. model.removeNodeset("/root/main/aimtgrd/gridaimtsearch");
  763. model.removeNodeset("/root/main/aimtgrd/grdprofcertinfo");
  764. model.removeNodeset("/root/main/paygrntgrd/paygrntinfo");
  765. model.removeNodeset("/root/main/otpgrd/otptinfo");
  766. grd_aimtSearch.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
  767. grd_profcertinfo.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
  768. grd_paygrnt.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
  769. grd_otpt.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
  770. submit("TRPMC02604"); //자보 기간관리 조회
  771. submit("TRPMC02608"); //자보 지급보증번호 조회
  772. submit("TRPMC02610"); //자보 진료이력 조회
  773. }
  774. ]]>
  775. </script>
  776. </xhtml:head>
  777. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  778. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  779. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:98px; ">자보환자관리</caption>
  780. </group>
  781. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  782. <switch id="swt_aipmmngt" style="left:0px; top:26px; width:1194px; height:713px; ">
  783. <case id="aipmlist">
  784. <group id="group5" style="left:10px; top:10px; width:1172px; height:65px; vertical-align:top; ">
  785. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1172px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
  786. <input id="ipt_mngtno2" ref="/root/main/condition2/mngtno" class="input_search" style="left:199px; top:9px; width:90px; height:19px; ">
  787. <script type="javascript" ev:event="onkeypress">
  788. <![CDATA[
  789. if(event.keyCode == "13") {
  790. // btn_search.dispatch("DOMActivate");
  791. inputEnterKey("btn_search", "DOMActivate");
  792. }
  793. ]]>
  794. </script>
  795. </input>
  796. <input id="ipt_rrgstno2" ref="/root/main/condition2/rrgstno" class="input_search" maxlength="14" format="999999-9999999" style="left:199px; top:9px; width:150px; height:19px; ">
  797. <script type="javascript" ev:event="onkeypress">
  798. <![CDATA[
  799. if(event.keyCode == "13") {
  800. // inputEnterKey("btn_search", "DOMActivate");
  801. setInputNodeCurText();
  802. var rrgstno = model.getValue("/root/main/condition/rrgstno");
  803. model.setValue("/root/send/search1/rrgstno1", rrgstno.substring(0,6));
  804. model.setValue("/root/send/search1/rrgstno2", rrgstno.substring(7,14));
  805. model.setValue("/root/send/search1/srchcond","3");
  806. modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
  807. // ipt_rrgstno1.visible = "hidden";
  808. model.setValue("/root/main/condition/reference", "1");
  809. model.setValue("/root/main/condition/rrgstno", "");
  810. model.setValue("/root/main/condition/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  811. inputEnterKey("btn_search", "DOMActivate");
  812. ipt_pid1.visible = false;
  813. ipt_hngnm1.visible = false;
  814. ipt_rrgstno1.visible = false;
  815. model.refresh();
  816. }
  817. ]]>
  818. </script>
  819. </input>
  820. <input id="ipt_carno2" ref="/root/main/condition2/carno" class="input_search" maxlength="20" style="left:199px; top:9px; width:90px; height:19px; ">
  821. <script type="javascript" ev:event="onkeypress">
  822. <![CDATA[
  823. if(event.keyCode == "13") {
  824. // btn_search.dispatch("DOMActivate");
  825. inputEnterKey("btn_search", "DOMActivate");
  826. }
  827. ]]>
  828. </script>
  829. </input>
  830. <select1 id="cmb_insucd2" ref="/root/main/condition2/insucd" class="combo_search" appearance="minimal" style="left:199px; top:34px; width:236px; height:19px; ">
  831. <choices>
  832. <itemset nodeset="/root/init/insucd">
  833. <label ref="nm"/>
  834. <value ref="cd"/>
  835. </itemset>
  836. </choices>
  837. <script type="javascript" ev:event="xforms-value-changed">
  838. <![CDATA[
  839. btn_search.dispatch("DOMActivate");
  840. // inputEnterKey("btn_search", "DOMActivate");
  841. ]]>
  842. </script>
  843. </select1>
  844. <caption id="caption8" style="left:312px; top:10px; width:15px; height:20px; ">~</caption>
  845. <input id="ipt_acddd2" ref="/root/main/condition2/acddd" class="input_search" inputtype="date" style="left:199px; top:9px; width:111px; height:19px; ">
  846. <script type="javascript" ev:event="onkeypress">
  847. <![CDATA[
  848. if(event.keyCode == "13") {
  849. // btn_search.dispatch("DOMActivate");
  850. inputEnterKey("btn_search", "DOMActivate");
  851. }
  852. ]]>
  853. </script>
  854. </input>
  855. <input id="ipt_pid2" ref="/root/main/condition2/pid" class="input_search" imemode="numeric" maxlength="10" format="9999999999" style="left:199px; top:9px; width:90px; height:19px; ">
  856. <script type="javascript" ev:event="onkeypress">
  857. <![CDATA[
  858. if(event.keyCode == "13") {
  859. // inputEnterKey("btn_search", "DOMActivate");
  860. setInputNodeCurText();
  861. model.setValue("/root/send/search1/pid",model.getValue("/root/main/condition/pid"));
  862. model.setValue("/root/send/search1/srchcond","1");
  863. modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
  864. model.setValue("/root/main/condition/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  865. inputEnterKey("btn_search", "DOMActivate");
  866. ipt_pid1.visible = false;
  867. ipt_hngnm1.visible = false;
  868. ipt_rrgstno1.visible = false;
  869. model.refresh();
  870. }
  871. ]]>
  872. </script>
  873. </input>
  874. <input id="ipt_tel2" ref="/root/main/condition2/tel" class="input_search" imemode="numeric" maxlength="13" style="left:199px; top:9px; width:90px; height:19px; ">
  875. <script type="javascript" ev:event="onkeypress">
  876. <![CDATA[
  877. if(event.keyCode == "13") {
  878. // btn_search.dispatch("DOMActivate");
  879. inputEnterKey("btn_search", "DOMActivate");
  880. }
  881. ]]>
  882. </script>
  883. </input>
  884. <input id="ipt_hngnm2" ref="/root/main/condition2/hngnm" class="input_search" imemode="hangul" maxlength="50" style="left:199px; top:9px; width:90px; height:19px; ">
  885. <script type="javascript" ev:event="onkeypress">
  886. <![CDATA[
  887. if(event.keyCode == "13") {
  888. // inputEnterKey("btn_search", "DOMActivate");
  889. setInputNodeCurText();
  890. model.setValue("/root/send/search1/hngnm",model.getValue("/root/main/condition/hngnm"));
  891. model.setValue("/root/send/search1/srchcond","2");
  892. modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
  893. model.setValue("/root/main/condition/reference", "1");
  894. model.setValue("/root/main/condition/hngnm", "");
  895. model.setValue("/root/main/condition/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  896. inputEnterKey("btn_search", "DOMActivate");
  897. ipt_pid1.visible = false;
  898. ipt_hngnm1.visible = false;
  899. ipt_rrgstno1.visible = false;
  900. model.refresh();
  901. }
  902. ]]>
  903. </script>
  904. </input>
  905. <caption id="caption39" class="search_name" style="left:18px; top:9px; width:86px; height:17px; ">조회조건</caption>
  906. <select1 id="cmb_reference2" ref="/root/main/condition2/reference" class="combo_search" appearance="minimal" style="left:104px; top:9px; width:90px; height:19px; ">
  907. <choices>
  908. <item>
  909. <label>전체</label>
  910. <value>0</value>
  911. </item>
  912. <item>
  913. <label>환자번호</label>
  914. <value>1</value>
  915. </item>
  916. <item>
  917. <label>환자성명</label>
  918. <value>2</value>
  919. </item>
  920. <item>
  921. <label>주민번호</label>
  922. <value>3</value>
  923. </item>
  924. <item>
  925. <label>전화번호</label>
  926. <value>4</value>
  927. </item>
  928. <item>
  929. <label>사고일시</label>
  930. <value>5</value>
  931. </item>
  932. <item>
  933. <label>보험회사</label>
  934. <value>6</value>
  935. </item>
  936. <item>
  937. <label>접수번호</label>
  938. <value>7</value>
  939. </item>
  940. <item>
  941. <label>차량번호</label>
  942. <value>8</value>
  943. </item>
  944. <item>
  945. <label>외래일자</label>
  946. <value>9</value>
  947. </item>
  948. <item>
  949. <label>입원일자</label>
  950. <value>10</value>
  951. </item>
  952. <item>
  953. <label>진료개시일</label>
  954. <value>11</value>
  955. </item>
  956. <item>
  957. <label>승인시작일</label>
  958. <value>12</value>
  959. </item>
  960. </choices>
  961. <script type="javascript" ev:event="xforms-select">
  962. <![CDATA[
  963. condition_initialize();
  964. // fInitialize();
  965. var referenceValue = cmb_reference2.value;
  966. if (referenceValue == "10") {
  967. model.setValue("/root/main/condition2/histstat", "2"); // 재원구분 '재원'으로 설정
  968. rdo_histstat2.refresh();
  969. }
  970. switch (referenceValue){
  971. case "0":
  972. ipt_pid2.visible = false;
  973. ipt_date3.visible = false;
  974. ipt_date4.visible = false;
  975. ipt_carno2.visible = false;
  976. ipt_mngtno2.visible = false;
  977. cmb_insucd2.visible = false;
  978. ipt_acddd2.visible = false;
  979. caption8.visible= false;
  980. ipt_hngnm2.visible = false;
  981. ipt_rrgstno2.visible = false;
  982. ipt_tel2.visible = false;
  983. bool6.visible = false;
  984. caption41.visible = false;
  985. break;
  986. case "1":
  987. ipt_pid2.visible = true;
  988. ipt_date3.visible = false;
  989. ipt_date4.visible = false;
  990. ipt_carno2.visible = false;
  991. ipt_mngtno2.visible = false;
  992. cmb_insucd2.visible = false;
  993. ipt_acddd2.visible = false;
  994. caption8.visible= false;
  995. ipt_hngnm2.visible = false;
  996. ipt_rrgstno2.visible = false;
  997. ipt_tel2.visible = false;
  998. bool6.visible = false;
  999. caption41.visible = false;
  1000. ipt_pid2.refresh();
  1001. model.setFocus("ipt_pid2");
  1002. break;
  1003. case "2":
  1004. ipt_hngnm2.visible = true;
  1005. ipt_date3.visible = false;
  1006. ipt_date4.visible = false;
  1007. ipt_carno2.visible = false;
  1008. ipt_mngtno2.visible = false;
  1009. cmb_insucd2.visible = false;
  1010. ipt_acddd2.visible = false;
  1011. caption8.visible= false;
  1012. ipt_pid2.visible=false;
  1013. ipt_rrgstno2.visible = false;
  1014. ipt_tel2.visible = false;
  1015. ipt_rrgstno2.visible = false;
  1016. bool6.visible = false;
  1017. caption41.visible = false;
  1018. ipt_hngnm2.refresh();
  1019. model.setFocus("ipt_hngnm2");
  1020. break;
  1021. case "3":
  1022. ipt_rrgstno2.visible = true;
  1023. ipt_date3.visible = false;
  1024. ipt_date4.visible = false;
  1025. ipt_carno2.visible = false;
  1026. ipt_mngtno2.visible = false;
  1027. cmb_insucd2.visible = false;
  1028. ipt_acddd2.visible = false;
  1029. ipt_hngnm2.visible=false;
  1030. ipt_pid2.visible=false;
  1031. caption8.visible= false;
  1032. ipt_tel2.visible = false;
  1033. bool6.visible = false;
  1034. caption41.visible = false;
  1035. ipt_rrgstno2.refresh();
  1036. model.setFocus("ipt_rrgstno2");
  1037. break;
  1038. case "4":
  1039. ipt_tel2.visible = true;
  1040. ipt_date3.visible = false;
  1041. ipt_date4.visible = false;
  1042. ipt_carno2.visible = false;
  1043. ipt_mngtno2.visible = false;
  1044. cmb_insucd2.visible = false;
  1045. ipt_acddd2.visible = false;
  1046. ipt_rrgstno2.visible = false;
  1047. ipt_hngnm2.visible=false;
  1048. ipt_pid2.visible=false;
  1049. caption8.visible= false;
  1050. bool6.visible = false;
  1051. caption41.visible = false;
  1052. ipt_tel2.refresh();
  1053. model.setFocus("ipt_tel2");
  1054. break;
  1055. case "5":
  1056. ipt_acddd2.visible = true;
  1057. ipt_date3.visible = false;
  1058. ipt_date4.visible = false;
  1059. ipt_carno2.visible = false;
  1060. ipt_mngtno2.visible = false;
  1061. cmb_insucd2.visible = false;
  1062. ipt_tel2.visible = false;
  1063. ipt_rrgstno2.visible = false;
  1064. ipt_hngnm2.visible=false;
  1065. ipt_pid2.visible=false;
  1066. caption8.visible= false;
  1067. bool6.visible = false;
  1068. caption41.visible = false;
  1069. ipt_acddd2.refresh();
  1070. model.setFocus("ipt_acddd2");
  1071. break;
  1072. case "6":
  1073. cmb_insucd2.visible = true;
  1074. ipt_date3.visible = true;
  1075. ipt_date4.visible = true;
  1076. ipt_carno2.visible = false;
  1077. ipt_mngtno2.visible = false;
  1078. ipt_acddd2.visible = false;
  1079. ipt_tel2.visible = false;
  1080. ipt_rrgstno2.visible = false;
  1081. ipt_hngnm2.visible=false;
  1082. ipt_pid2.visible=false;
  1083. caption8.visible= true;
  1084. bool6.visible = true;
  1085. caption41.visible = true;
  1086. cmb_insucd2.refresh();
  1087. model.setFocus("cmb_insucd2");
  1088. break;
  1089. case "7":
  1090. ipt_mngtno2.visible = true;
  1091. ipt_date3.visible = false;
  1092. ipt_date4.visible = false;
  1093. ipt_carno2.visible = false;
  1094. cmb_insucd2.visible = false;
  1095. ipt_acddd2.visible = false;
  1096. ipt_tel2.visible = false;
  1097. ipt_rrgstno2.visible = false;
  1098. ipt_hngnm2.visible=false;
  1099. ipt_pid2.visible=false;
  1100. caption8.visible= false;
  1101. bool6.visible = false;
  1102. caption41.visible = false;
  1103. ipt_mngtno2.refresh();
  1104. model.setFocus("ipt_mngtno2");
  1105. break;
  1106. case "8":
  1107. ipt_carno2.visible = true;
  1108. ipt_date3.visible = false;
  1109. ipt_date4.visible = false;
  1110. ipt_mngtno2.visible = false;
  1111. cmb_insucd2.visible = false;
  1112. ipt_acddd2.visible = false;
  1113. ipt_tel2.visible = false;
  1114. ipt_rrgstno2.visible = false;
  1115. ipt_hngnm2.visible=false;
  1116. ipt_pid2.visible=false;
  1117. caption8.visible= false;
  1118. bool6.visible = false;
  1119. caption41.visible = false;
  1120. ipt_carno2.refresh();
  1121. model.setFocus("ipt_carno2");
  1122. break;
  1123. case "9":
  1124. ipt_date3.visible = true;
  1125. ipt_date4.visible = true;
  1126. caption8.visible= true;
  1127. ipt_carno2.visible = false;
  1128. cmb_insucd2.visible = false;
  1129. ipt_mngtno2.visible = false;
  1130. ipt_acddd2.visible = false;
  1131. ipt_tel2.visible = false;
  1132. ipt_rrgstno2.visible = false;
  1133. ipt_hngnm2.visible=false;
  1134. ipt_pid2.visible=false;
  1135. bool6.visible = false;
  1136. caption41.visible = false;
  1137. ipt_date3.refresh();
  1138. ipt_date4.refresh();
  1139. model.setFocus("ipt_date3");
  1140. break;
  1141. case "10":
  1142. ipt_date3.visible = true;
  1143. ipt_date4.visible = true;
  1144. caption8.visible= true;
  1145. ipt_carno2.visible = false;
  1146. cmb_insucd2.visible = false;
  1147. ipt_mngtno2.visible = false;
  1148. ipt_acddd2.visible = false;
  1149. ipt_tel2.visible = false;
  1150. ipt_rrgstno2.visible = false;
  1151. ipt_hngnm2.visible=false;
  1152. ipt_pid2.visible=false;
  1153. bool6.visible = false;
  1154. caption41.visible = false;
  1155. ipt_date3.refresh();
  1156. ipt_date4.refresh();
  1157. caption8.refresh();
  1158. model.setFocus("ipt_date3");
  1159. break;
  1160. case "11":
  1161. ipt_date3.visible = true;
  1162. ipt_date4.visible = true;
  1163. caption8.visible= true;
  1164. ipt_carno2.visible = false;
  1165. cmb_insucd2.visible = false;
  1166. ipt_mngtno2.visible = false;
  1167. ipt_acddd2.visible = false;
  1168. ipt_tel2.visible = false;
  1169. ipt_rrgstno2.visible = false;
  1170. ipt_hngnm2.visible=false;
  1171. ipt_pid2.visible=false;
  1172. bool6.visible = false;
  1173. caption41.visible = false;
  1174. ipt_date3.refresh();
  1175. ipt_date4.refresh();
  1176. model.setFocus("ipt_date3");
  1177. break;
  1178. case "12":
  1179. ipt_date3.visible = true;
  1180. ipt_date4.visible = true;
  1181. caption8.visible= true;
  1182. ipt_carno2.visible = false;
  1183. cmb_insucd2.visible = false;
  1184. ipt_mngtno2.visible = false;
  1185. ipt_acddd2.visible = false;
  1186. ipt_tel2.visible = false;
  1187. ipt_rrgstno2.visible = false;
  1188. ipt_hngnm2.visible=false;
  1189. ipt_pid2.visible=false;
  1190. bool6.visible = false;
  1191. caption41.visible = false;
  1192. ipt_date3.refresh();
  1193. ipt_date4.refresh();
  1194. model.setFocus("ipt_date3");
  1195. break;
  1196. }
  1197. ]]>
  1198. </script>
  1199. </select1>
  1200. <input id="ipt_date3" ref="/root/main/condition2/date1" class="input_search" inputtype="date" style="left:199px; top:9px; width:111px; height:19px; ">
  1201. <script type="javascript" ev:event="onkeypress">
  1202. <![CDATA[
  1203. if(event.keyCode == "13") {
  1204. model.setFocus("ipt_date2");
  1205. }
  1206. ]]>
  1207. </script>
  1208. </input>
  1209. <input id="ipt_date4" ref="/root/main/condition2/date2" class="input_search" inputtype="date" style="left:324px; top:9px; width:111px; height:19px; ">
  1210. <script type="javascript" ev:event="onkeypress">
  1211. <![CDATA[
  1212. if(event.keyCode == "13") {
  1213. // btn_search.dispatch("DOMActivate");
  1214. inputEnterKey("btn_search", "DOMActivate");
  1215. }
  1216. ]]>
  1217. </script>
  1218. </input>
  1219. <button id="btn_search2" class="btn1_letter2" style="left:1096px; top:22px; width:56px; height:22px; ">
  1220. <caption>조회</caption>
  1221. <script type="javascript" ev:event="DOMActivate">
  1222. <![CDATA[
  1223. fInitialize();
  1224. var flag = true;
  1225. var referenceValue = cmb_reference2.value;
  1226. model.setValue("/root/send/search/reference", referenceValue);
  1227. switch (referenceValue){
  1228. case "0":
  1229. model.setValue("/root/send/search/reference", "0");
  1230. model.setValue("/root/send/search/reference1", "");
  1231. model.setValue("/root/send/search/reference2", "");
  1232. model.setValue("/root/send/search/reference3", "");
  1233. break;
  1234. case "1":
  1235. if (model.getValue("/root/main/condition2/pid") == "") {
  1236. flag = false;
  1237. }
  1238. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/pid"));
  1239. model.setValue("/root/send/search/reference2", "");
  1240. model.setValue("/root/send/search/reference3", "");
  1241. break;
  1242. case "2":
  1243. // model.setValue("/root/send/search1/srchcond","2");
  1244. // model.setValue("/root/send/search1/hngnm", model.getValue("/root/main/condition/hngnm"));
  1245. // modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/search1", "/root/send");
  1246. // model.resetInstanceNode("/root/send/search1");
  1247. if (model.getValue("/root/main/condition2/hngnm") == "") {
  1248. flag = false;
  1249. }
  1250. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/hngnm"));
  1251. model.setValue("/root/send/search/reference2", "");
  1252. model.setValue("/root/send/search/reference3", "");
  1253. break;
  1254. case "3":
  1255. if (model.getValue("/root/main/condition2/rrgstno") == "") {
  1256. flag = false;
  1257. }
  1258. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/rrgstno"));
  1259. model.setValue("/root/send/search/reference2", "");
  1260. model.setValue("/root/send/search/reference3", "");
  1261. break;
  1262. case "4":
  1263. if (model.getValue("/root/main/condition2/tel") == "") {
  1264. flag = false;
  1265. }
  1266. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/tel"));
  1267. model.setValue("/root/send/search/reference2", "");
  1268. model.setValue("/root/send/search/reference3", "");
  1269. break;
  1270. case "5":
  1271. if (model.getValue("/root/main/condition2/acddd") == "") {
  1272. flag = false;
  1273. }
  1274. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/acddd"));
  1275. model.setValue("/root/send/search/reference2", "");
  1276. model.setValue("/root/send/search/reference3", "");
  1277. break;
  1278. case "6":
  1279. if (model.getValue("/root/main/condition2/insucd") == "") {
  1280. flag = false;
  1281. }
  1282. var terms = model.getValue("/root/main/condition2/term");
  1283. if(terms=="Y" ){
  1284. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/insucd"));
  1285. model.setValue("/root/send/search/reference2", "");
  1286. model.setValue("/root/send/search/reference3", "");
  1287. }
  1288. else {
  1289. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/insucd"));
  1290. model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition2/date1"));
  1291. model.setValue("/root/send/search/reference3", model.getValue("/root/main/condition2/date2"));
  1292. }
  1293. break;
  1294. case "7":
  1295. if (model.getValue("/root/main/condition2/mngtno") == "") {
  1296. flag = false;
  1297. }
  1298. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/mngtno"));
  1299. model.setValue("/root/send/search/reference2", "");
  1300. model.setValue("/root/send/search/reference3", "");
  1301. break;
  1302. case "8":
  1303. if (model.getValue("/root/main/condition2/carno") == "") {
  1304. flag = false;
  1305. }
  1306. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/carno"));
  1307. model.setValue("/root/send/search/reference2", "");
  1308. model.setValue("/root/send/search/reference3", "");
  1309. break;
  1310. case "9":
  1311. if (model.getValue("/root/main/condition2/date1") == "") {
  1312. flag = false;
  1313. }
  1314. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/date1"));
  1315. model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition2/date2"));
  1316. model.setValue("/root/send/search/reference3", "");
  1317. break;
  1318. case "10":
  1319. if (model.getValue("/root/main/condition2/date1") == "") {
  1320. flag = false;
  1321. }
  1322. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/date1"));
  1323. model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition2/date2"));
  1324. model.setValue("/root/send/search/reference3", "");
  1325. break;
  1326. case "11":
  1327. if (model.getValue("/root/main/condition2/date1") == "") {
  1328. flag = false;
  1329. }
  1330. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/date1"));
  1331. model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition2/date2"));
  1332. model.setValue("/root/send/search/reference3", "");
  1333. break;
  1334. case "12":
  1335. if (model.getValue("/root/main/condition2/date1") == "") {
  1336. flag = false;
  1337. }
  1338. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition2/date1"));
  1339. model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition2/date2"));
  1340. model.setValue("/root/send/search/reference3", "");
  1341. break;
  1342. }
  1343. model.setValue("/root/send/search/suppkind", model.getValue("/root/main/condition2/suppkind"));
  1344. model.setValue("/root/send/search/histstat", model.getValue("/root/main/condition2/histstat"));
  1345. model.setValue("/root/send/search/endstat", model.getValue("/root/main/condition2/endstat"));
  1346. if (flag == true) {
  1347. // submission 추가해야함
  1348. submit("TRPMC02606"); /* 보험이력조회 */
  1349. // 2009.07.11 - 조회 후 조회조건 초기화 하지 않음 - 성가 요청
  1350. //model.setValue("/root/main/condition2/reference", "0");
  1351. //model.setValue("/root/main/condition2/endstat","1");
  1352. //model.setValue("/root/main/condition2/histstat","1");
  1353. //cmb_reference2.dispatch("xforms-select");
  1354. //condition2_initialize();
  1355. // 자보한도액이 80%이상인 환자는 컬러 변경
  1356. fGetAutmbInsuLimAmt("grd_aipmptbslist", "80");
  1357. }
  1358. ]]>
  1359. </script>
  1360. </button>
  1361. <select1 id="cmb_suppkind2" ref="/root/main/condition2/suppkind" class="combo_search" visibility="visible" appearance="minimal" style="left:620px; top:9px; width:115px; height:19px; ">
  1362. <choices>
  1363. <itemset nodeset="/root/init/suppkind">
  1364. <label ref="nm"/>
  1365. <value ref="cd"/>
  1366. </itemset>
  1367. </choices>
  1368. <script type="javascript" ev:event="xforms-value-changed">
  1369. <![CDATA[
  1370. model.setFocus("rdo_histstat2");
  1371. // btn_search.dispatch("DOMActivate");
  1372. ]]>
  1373. </script>
  1374. <script type="javascript" ev:event="onkeydown">
  1375. <![CDATA[
  1376. if(event.keyCode == "13") {
  1377. model.setFocus("rdo_histstat2");
  1378. }
  1379. ]]>
  1380. </script>
  1381. </select1>
  1382. <select1 id="rdo_endstat2" ref="/root/main/condition2/endstat" class="radio_search" visibility="visible" appearance="full" cols="3" overflow="visible" style="left:850px; top:35px; width:139px; height:19px; border-style:none; ">
  1383. <choices>
  1384. <item>
  1385. <label>전체</label>
  1386. <value>1</value>
  1387. </item>
  1388. <item>
  1389. <label>계속</label>
  1390. <value>2</value>
  1391. </item>
  1392. <item>
  1393. <label>종결</label>
  1394. <value>3</value>
  1395. </item>
  1396. </choices>
  1397. <script type="javascript" ev:event="onkeydown">
  1398. <![CDATA[
  1399. if(event.keyCode == "13") {
  1400. inputEnterKey("btn_search2", "DOMActivate");
  1401. }
  1402. ]]>
  1403. </script>
  1404. </select1>
  1405. <caption id="caption33" class="search_name" visibility="visible" style="left:761px; top:9px; width:81px; height:17px; ">재원구분 :</caption>
  1406. <caption id="caption35" class="search_name" visibility="visible" style="left:529px; top:9px; width:81px; height:17px; ">보조유형 :</caption>
  1407. <caption id="caption38" class="search_name" visibility="visible" style="left:762px; top:35px; width:86px; height:17px; ">종결구분</caption>
  1408. <select1 id="rdo_histstat2" ref="/root/main/condition2/histstat" class="radio_search" visibility="visible" appearance="full" cols="3" overflow="visible" style="left:850px; top:9px; width:141px; height:19px; border-style:none; ">
  1409. <choices>
  1410. <item>
  1411. <label>전체</label>
  1412. <value>1</value>
  1413. </item>
  1414. <item>
  1415. <label>재원</label>
  1416. <value>2</value>
  1417. </item>
  1418. <item>
  1419. <label>외래</label>
  1420. <value>3</value>
  1421. </item>
  1422. </choices>
  1423. <script type="javascript" ev:event="onkeypress">
  1424. <![CDATA[
  1425. if(event.keyCode == "13") {
  1426. model.setFocus("rdo_endstat2");
  1427. }
  1428. ]]>
  1429. </script>
  1430. </select1>
  1431. <bool id="bool6" checkvalue="Y,N" ref="/root/main/condition2/term" style="left:439px; top:9px; width:20px; height:20px; ">
  1432. <script type="javascript" ev:event="xforms-value-changed">
  1433. <![CDATA[
  1434. if(bool6.value == 'Y'){
  1435. ipt_date3.visible = false;
  1436. ipt_date4.visible = false;
  1437. caption8.visible = false;
  1438. }else{
  1439. ipt_date3.visible = true;
  1440. ipt_date4.visible = true;
  1441. caption8.visible = true;
  1442. }
  1443. model.refresh();
  1444. ]]>
  1445. </script>
  1446. <hint>
  1447. <![CDATA[전체조회]]>
  1448. </hint>
  1449. </bool>
  1450. <caption id="caption41" style="left:456px; top:9px; width:55px; height:20px; ">전체조회</caption>
  1451. </group>
  1452. <line id="line19" class="line_1" style="x1:10px; y1:105px; x2:1182px; y2:105px; "/>
  1453. <caption id="caption40" class="tit_2" style="left:10px; top:90px; width:124px; height:13px; ">자보환자현황</caption>
  1454. <datagrid id="grd_aipmptbslist" nodeset="/root/main/aipmgrdlist/gridaipmptbs" caption="환자번호^성명^주민번호^보험회사^합의종결일^진료개시일^사고일자^접수번호^연번호^승인시작일^승인종료일^보조유형^지불한도액^차량번호^내원경로^종결구분^종결사유^담당자^담당자연락처^호실^참고사항^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8" colsep="^" colwidth="57, 67, 99, 170, 75, 75, 75, 160, 60, 75, 75, 80, 75, 80, 55, 55, 60, 58, 80, 45, 277, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" defaultrows="1" explorerbar="sort" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:10px; top:110px; width:1172px; height:600px; ">
  1455. <col disabled="true" ref="pid"/>
  1456. <col disabled="true" ref="hngnm"/>
  1457. <col disabled="true" ref="rrgstno" format="999999-9999999" style="left:233px; top:25px; width:49px; height:30px; text-align:center; "/>
  1458. <col disabled="true" ref="insucdnm"/>
  1459. <col disabled="true" ref="agreenddd" format="yyyy-mm-dd" style="text-align:center; "/>
  1460. <col disabled="true" ref="ordopendd" format="yyyy-mm-dd" style="text-align:center; "/>
  1461. <col disabled="true" ref="acddd" format="yyyy-mm-dd" style="text-align:center; "/>
  1462. <col disabled="true" ref="mngtno"/>
  1463. <col ref="autmbinsuseqno"/>
  1464. <col disabled="true" ref="aprvfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1465. <col disabled="true" ref="aprvtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  1466. <col disabled="true" ref="suppkind" type="combo">
  1467. <choices>
  1468. <itemset nodeset="/root/init/suppkind">
  1469. <label ref="nm"/>
  1470. <value ref="cd"/>
  1471. </itemset>
  1472. </choices>
  1473. </col>
  1474. <col disabled="true" ref="paylimamt" format="#,###" style="text-align:right; "/>
  1475. <col disabled="true" ref="carno"/>
  1476. <col disabled="true" ref="chospathcd" type="combo" style="text-align:center; ">
  1477. <choices>
  1478. <itemset nodeset="/root/init1/P0028list/P0028">
  1479. <label ref="cdnm"/>
  1480. <value ref="cdid"/>
  1481. </itemset>
  1482. </choices>
  1483. </col>
  1484. <col disabled="true" ref="endflag" type="combo" style="text-align:center; ">
  1485. <choices>
  1486. <itemset nodeset="/root/init1/P0038list/P0038">
  1487. <label ref="cdnm"/>
  1488. <value ref="cdid"/>
  1489. </itemset>
  1490. </choices>
  1491. </col>
  1492. <col disabled="true" ref="endresncd" type="combo">
  1493. <choices>
  1494. <itemset nodeset="/root/temp/endresncd/items">
  1495. <label ref="nm"/>
  1496. <value ref="cd"/>
  1497. </itemset>
  1498. </choices>
  1499. </col>
  1500. <col disabled="true" ref="chrgrnm"/>
  1501. <col disabled="true" ref="chrgrtel"/>
  1502. <col disabled="true" ref="roomcd" style="text-align:center; "/>
  1503. <col disabled="true" ref="autmbinsurem"/>
  1504. <col disabled="true" ref="hometel"/>
  1505. <col disabled="true" ref="zipcd1" style="text-align:center; "/>
  1506. <col disabled="true" ref="zipcd2" style="text-align:center; "/>
  1507. <col disabled="true" ref="zipcdseq" style="text-align:center; "/>
  1508. <col disabled="true" ref="mpphontel"/>
  1509. <col disabled="true" ref="detladdr"/>
  1510. <col disabled="true" ref="remfact"/>
  1511. <col disabled="true" ref="autmbinsuseqno"/>
  1512. <col disabled="true" ref="brthdd"/>
  1513. <col disabled="true" ref="sex"/>
  1514. <col disabled="true" ref="seqno"/>
  1515. <col disabled="true" ref="insucd"/>
  1516. <script type="javascript" ev:event="onaftersort">
  1517. <![CDATA[
  1518. //sorting 시 인스턴스 구조를 재구성
  1519. grd_aipmptbslist.gridToInstance();
  1520. ]]>
  1521. </script>
  1522. <script type="javascript" ev:event="ondblclick">
  1523. <![CDATA[
  1524. var currow = grd_aipmptbslist.row;
  1525. model.setValue("/root/main/condition/reference", "1");
  1526. cmb_reference.refresh();
  1527. cmb_reference.dispatch("xforms-select");
  1528. model.setValue("/root/main/condition/pid", model.getValue("/root/main/aipmgrdlist/gridaipmptbs[" + currow +"]/pid"));
  1529. ipt_pid1.refresh();
  1530. btn_search.dispatch("DOMActivate");
  1531. model.setValue("/root/main/condition/reference", "0");
  1532. cmb_reference.refresh();
  1533. ipt_pid1.visible = false;
  1534. btn_mngt.selected= true;
  1535. btn_mngt.dispatch("xforms-activate");
  1536. ]]>
  1537. </script>
  1538. </datagrid>
  1539. <button id="btn_saveexcel" class="btn2_letter4" style="left:1118px; top:85px; width:64px; height:19px; ">
  1540. <caption>엑셀저장</caption>
  1541. <script type="javascript" ev:event="DOMActivate">
  1542. <![CDATA[
  1543. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1544. if (fileName != ""){
  1545. grd_aipmptbslist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1546. }
  1547. ]]>
  1548. </script>
  1549. </button>
  1550. </case>
  1551. <case id="aipminfo" class="sw_box" selected="true" style="left:0px; top:0px; width:1194px; height:753px; ">
  1552. <line id="line9" class="line_3" style="x1:10px; y1:122px; x2:1184px; y2:122px; "/>
  1553. <input id="ipt_pid" ref="/root/main/ptbspatinfo/pid" class="input_s_essential" maxlength="10" style="left:78px; top:76px; width:100px; height:19px; ">
  1554. <script type="javascript" ev:event="onkeypress">
  1555. <![CDATA[
  1556. if(event.keyCode == "13") {
  1557. setInputNodeCurText();
  1558. var pid = model.getValue("/root/main/ptbspatinfo/pid");
  1559. fInitialize();
  1560. model.setValue("/root/main/ptbspatinfo/pid", pid);
  1561. model.setValue("/root/send/search/reference", "1");
  1562. model.setValue("/root/send/search/reference1", model.getValue("/root/main/ptbspatinfo/pid"));
  1563. model.setValue("/root/send/search/reference2", "");
  1564. submit("TRPMC02601");
  1565. if (grd_Insurance.rows >= 2) {
  1566. model.setvalue("/root/main/ptbspatinfo/pid",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/pid"));
  1567. model.setvalue("/root/main/ptbspatinfo/hngnm", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hngnm"));
  1568. model.setvalue("/root/main/ptbspatinfo/rrgstno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/rrgstno"));
  1569. model.setvalue("/root/main/ptbspatinfo/sex",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/sex"));
  1570. model.setvalue("/root/main/ptbspatinfo/hometel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hometel"));
  1571. model.setvalue("/root/main/ptbspatinfo/mpphontel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mpphontel"));
  1572. model.setvalue("/root/main/ptbspatinfo/zipcode1",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd1"));
  1573. model.setvalue("/root/main/ptbspatinfo/zipcode2",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd2"));
  1574. model.setvalue("/root/main/ptbspatinfo/zipcdseq",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcdseq"));
  1575. model.setvalue("/root/main/ptbspatinfo/zipcdaddr",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcdaddr"));
  1576. model.setvalue("/root/main/ptbspatinfo/detladdr",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/detladdr"));
  1577. model.setvalue("/root/main/ptbspatinfo/remfact",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/remfact"));
  1578. var birthdd = model.getValue("/root/main/aipmgrd/gridInsurance/brthdd");
  1579. if(birthdd != "" || birthdd != null){
  1580. if (isValidDateTime(birthdd,"YYYYMMDD") == true)
  1581. model.setvalue("/root/main/ptbspatinfo/age",getFullAge(birthdd));
  1582. }
  1583. model.setvalue("/root/main/ptbspatinfo/insucdnm",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/insucd"));
  1584. model.setvalue("/root/main/ptbspatinfo/acddd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/acddd"));
  1585. model.setvalue("/root/main/ptbspatinfo/mngtno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
  1586. model.setvalue("/root/main/ptbspatinfo/oldmngtno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
  1587. model.setvalue("/root/main/ptbspatinfo/autmbinsuseqno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsuseqno"));
  1588. model.setvalue("/root/main/ptbspatinfo/suppkind",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/suppkind"));
  1589. model.setvalue("/root/main/ptbspatinfo/carno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/carno"));
  1590. model.setvalue("/root/main/ptbspatinfo/chrgrnm",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrnm"));
  1591. model.setvalue("/root/main/ptbspatinfo/chrgrtel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrtel"));
  1592. model.setvalue("/root/main/ptbspatinfo/chrgrfaxno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrfaxno"));
  1593. model.setvalue("/root/main/ptbspatinfo/autmbinsurem",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsurem"));
  1594. model.setvalue("/root/main/ptbspatinfo/ordopendd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/ordopendd"));
  1595. model.setvalue("/root/main/ptbspatinfo/aprvfromdd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvfromdd"));
  1596. model.setvalue("/root/main/ptbspatinfo/aprvtodd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvtodd"));
  1597. model.setvalue("/root/main/ptbspatinfo/paylimamt", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/paylimamt"));
  1598. model.setvalue("/root/main/ptbspatinfo/chospathcd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chospathcd"));
  1599. model.setvalue("/root/main/ptbspatinfo/endflag",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endflag"));
  1600. model.setvalue("/root/main/ptbspatinfo/endresncd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endresncd"));
  1601. model.setvalue("/root/main/ptbspatinfo/agreenddd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/agreenddd"));
  1602. model.setvalue("/root/main/ptbspatinfo/seqno", parseInt(model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/seqno"))+1);
  1603. fGetDetInfo();
  1604. model.refresh();
  1605. model.toggle("case1");
  1606. button66.selected= true;
  1607. }
  1608. }
  1609. ]]>
  1610. </script>
  1611. </input>
  1612. <input id="ipt_rrgstno" ref="/root/main/ptbspatinfo/rrgstno" class="input_s_essential" disabled="true" maxlength="14" format="999999-9999999" style="left:247px; top:76px; width:100px; height:19px; ">
  1613. <script type="javascript" ev:event="onkeypress">
  1614. <![CDATA[
  1615. if(event.keyCode == "13") {
  1616. setInputNodeCurText();
  1617. var rrgstno = model.getValue("/root/main/ptbspatinfo/rrgstno");
  1618. fInitialize();
  1619. model.setValue("/root/main/ptbspatinfo/rrgstno", rrgstno);
  1620. model.setValue("/root/send/search/reference", "11");
  1621. model.setValue("/root/send/search/reference1", model.getValue("/root/main/ptbspatinfo/rrgstno"));
  1622. model.setValue("/root/send/search/reference2", "");
  1623. submit("TRPMC02601");
  1624. if (grd_Insurance.rows >= 2) {
  1625. model.setvalue("/root/main/ptbspatinfo/pid",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/pid"));
  1626. model.setvalue("/root/main/ptbspatinfo/hngnm", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hngnm"));
  1627. model.setvalue("/root/main/ptbspatinfo/rrgstno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/rrgstno"));
  1628. model.setvalue("/root/main/ptbspatinfo/sex",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/sex"));
  1629. model.setvalue("/root/main/ptbspatinfo/hometel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hometel"));
  1630. model.setvalue("/root/main/ptbspatinfo/mpphontel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mpphontel"));
  1631. model.setvalue("/root/main/ptbspatinfo/zipcode1",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd1"));
  1632. model.setvalue("/root/main/ptbspatinfo/zipcode2",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd2"));
  1633. model.setvalue("/root/main/ptbspatinfo/zipcdseq",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcdseq"));
  1634. model.setvalue("/root/main/ptbspatinfo/detladdr",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/detladdr"));
  1635. model.setvalue("/root/main/ptbspatinfo/remfact",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/remfact"));
  1636. var birthdd = model.getValue("/root/main/aipmgrd/gridInsurance/brthdd");
  1637. if(birthdd != "" || birthdd != null){
  1638. if (isValidDateTime(birthdd,"YYYYMMDD") == true){
  1639. model.setvalue("/root/main/ptbspatinfo/age",getFullAge(birthdd));
  1640. }
  1641. }
  1642. model.setvalue("/root/main/ptbspatinfo/insucdnm",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/insucd"));
  1643. model.setvalue("/root/main/ptbspatinfo/acddd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/acddd"));
  1644. model.setvalue("/root/main/ptbspatinfo/mngtno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
  1645. model.setvalue("/root/main/ptbspatinfo/oldmngtno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
  1646. model.setvalue("/root/main/ptbspatinfo/autmbinsuseqno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsuseqno"));
  1647. model.setvalue("/root/main/ptbspatinfo/suppkind",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/suppkind"));
  1648. model.setvalue("/root/main/ptbspatinfo/carno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/carno"));
  1649. model.setvalue("/root/main/ptbspatinfo/chrgrnm",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrnm"));
  1650. model.setvalue("/root/main/ptbspatinfo/chrgrtel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrtel"));
  1651. model.setvalue("/root/main/ptbspatinfo/chrgrfaxno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrfaxno"));
  1652. model.setvalue("/root/main/ptbspatinfo/autmbinsurem",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsurem"));
  1653. model.setvalue("/root/main/ptbspatinfo/ordopendd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/ordopendd"));
  1654. model.setvalue("/root/main/ptbspatinfo/aprvfromdd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvfromdd"));
  1655. model.setvalue("/root/main/ptbspatinfo/aprvtodd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvtodd"));
  1656. model.setvalue("/root/main/ptbspatinfo/paylimamt", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/paylimamt"));
  1657. model.setvalue("/root/main/ptbspatinfo/chospathcd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chospathcd"));
  1658. model.setvalue("/root/main/ptbspatinfo/endflag",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endflag"));
  1659. model.setvalue("/root/main/ptbspatinfo/endresncd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endresncd"));
  1660. model.setvalue("/root/main/ptbspatinfo/agreenddd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/agreenddd"));
  1661. model.setvalue("/root/main/ptbspatinfo/seqno", parseInt(model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/seqno"))+1);
  1662. fGetDetInfo();
  1663. model.refresh();
  1664. }
  1665. }
  1666. ]]>
  1667. </script>
  1668. </input>
  1669. <caption id="caption30" class="cell_1" style="left:181px; top:99px; width:63px; height:23px; vertical-align:middle; ">성별/나이</caption>
  1670. <caption id="caption31" class="cell_1" style="left:10px; top:75px; width:65px; height:23px; text-align:left; vertical-align:middle; ">환자번호</caption>
  1671. <caption id="caption32" class="cell_1" style="left:181px; top:75px; width:63px; height:23px; vertical-align:middle; ">주민번호</caption>
  1672. <caption id="caption10" class="cell_1" style="left:550px; top:99px; width:75px; height:23px; vertical-align:middle; ">상세주소</caption>
  1673. <textarea id="tar_remfact" ref="/root/main/ptbspatinfo/remfact" editable="true" imemode="hangul" style="left:983px; top:76px; width:200px; height:43px; "/>
  1674. <input id="ipt_detladdr" ref="/root/main/ptbspatinfo/detladdr" disabled="true" editable="false" style="left:628px; top:100px; width:283px; height:19px; "/>
  1675. <input id="ipt_zipcode1" ref="/root/main/ptbspatinfo/zipcode1" disabled="true" editable="false" style="left:628px; top:76px; width:30px; height:19px; "/>
  1676. <caption id="caption12" class="cell_1" style="left:350px; top:99px; width:75px; height:23px; vertical-align:middle; ">휴대폰</caption>
  1677. <caption id="caption23" class="cell_1" style="left:350px; top:75px; width:75px; height:23px; vertical-align:middle; ">연락처</caption>
  1678. <input id="ipt_hngnm" ref="/root/main/ptbspatinfo/hngnm" class="input_s_essential" style="left:78px; top:100px; width:100px; height:19px; ">
  1679. <script type="javascript" ev:event="onkeypress">
  1680. <![CDATA[
  1681. if(event.keyCode == "13") {
  1682. setInputNodeCurText();
  1683. var hngnm = model.getValue("/root/main/ptbspatinfo/hngnm");
  1684. fInitialize();
  1685. model.setValue("/root/main/ptbspatinfo/hngnm", hngnm);
  1686. model.setValue("/root/send/search/reference", "2");
  1687. model.setValue("/root/send/search/reference1", model.getValue("/root/main/ptbspatinfo/hngnm"));
  1688. model.setValue("/root/send/search/reference2", "");
  1689. submit("TRPMC02601");
  1690. if (grd_Insurance.rows >= 2) {
  1691. model.setvalue("/root/main/ptbspatinfo/pid",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/pid"));
  1692. model.setvalue("/root/main/ptbspatinfo/hngnm", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hngnm"));
  1693. model.setvalue("/root/main/ptbspatinfo/rrgstno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/rrgstno"));
  1694. model.setvalue("/root/main/ptbspatinfo/sex",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/sex"));
  1695. model.setvalue("/root/main/ptbspatinfo/hometel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hometel"));
  1696. model.setvalue("/root/main/ptbspatinfo/mpphontel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mpphontel"));
  1697. model.setvalue("/root/main/ptbspatinfo/zipcode1",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd1"));
  1698. model.setvalue("/root/main/ptbspatinfo/zipcode2",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd2"));
  1699. model.setvalue("/root/main/ptbspatinfo/zipcdseq",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcdseq"));
  1700. model.setvalue("/root/main/ptbspatinfo/detladdr",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/detladdr"));
  1701. model.setvalue("/root/main/ptbspatinfo/remfact",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/remfact"));
  1702. var birthdd = model.getValue("/root/main/aipmgrd/gridInsurance/brthdd");
  1703. if(birthdd != "" || birthdd != null){
  1704. if(isValidDateTime(birthdd,"YYYYMMDD") == true){
  1705. model.setvalue("/root/main/ptbspatinfo/age",getFullAge(birthdd));
  1706. }
  1707. }
  1708. model.setvalue("/root/main/ptbspatinfo/insucdnm",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/insucd"));
  1709. model.setvalue("/root/main/ptbspatinfo/acddd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/acddd"));
  1710. model.setvalue("/root/main/ptbspatinfo/mngtno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
  1711. model.setvalue("/root/main/ptbspatinfo/oldmngtno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
  1712. model.setvalue("/root/main/ptbspatinfo/autmbinsuseqno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsuseqno"));
  1713. model.setvalue("/root/main/ptbspatinfo/suppkind",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/suppkind"));
  1714. model.setvalue("/root/main/ptbspatinfo/carno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/carno"));
  1715. model.setvalue("/root/main/ptbspatinfo/chrgrnm",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrnm"));
  1716. model.setvalue("/root/main/ptbspatinfo/chrgrtel",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrtel"));
  1717. model.setvalue("/root/main/ptbspatinfo/chrgrfaxno",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrfaxno"));
  1718. model.setvalue("/root/main/ptbspatinfo/autmbinsurem",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsurem"));
  1719. model.setvalue("/root/main/ptbspatinfo/ordopendd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/ordopendd"));
  1720. model.setvalue("/root/main/ptbspatinfo/aprvfromdd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvfromdd"));
  1721. model.setvalue("/root/main/ptbspatinfo/aprvtodd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvtodd"));
  1722. model.setvalue("/root/main/ptbspatinfo/paylimamt", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/paylimamt"));
  1723. model.setvalue("/root/main/ptbspatinfo/chospathcd",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chospathcd"));
  1724. model.setvalue("/root/main/ptbspatinfo/endflag",model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endflag"));
  1725. model.setvalue("/root/main/ptbspatinfo/endresncd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endresncd"));
  1726. model.setvalue("/root/main/ptbspatinfo/agreenddd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/agreenddd"));
  1727. model.setvalue("/root/main/ptbspatinfo/seqno", parseInt(model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/seqno"))+1);
  1728. fGetDetInfo();
  1729. model.refresh();
  1730. }
  1731. }
  1732. ]]>
  1733. </script>
  1734. </input>
  1735. <input id="ipt_age" ref="/root/main/ptbspatinfo/age" disabled="true" editable="false" style="left:293px; top:100px; width:54px; height:19px; "/>
  1736. <input id="ipt_zipcode2" ref="/root/main/ptbspatinfo/zipcode2" disabled="true" editable="false" style="left:661px; top:76px; width:30px; height:19px; "/>
  1737. <input id="ipt_hometel" ref="/root/main/ptbspatinfo/hometel" disabled="true" editable="false" style="left:428px; top:76px; width:119px; height:19px; "/>
  1738. <caption id="caption5" class="cell_1" style="left:914px; top:74px; width:66px; height:48px; vertical-align:middle; ">참고사항</caption>
  1739. <line id="line2" class="line_1" style="x1:10px; y1:70px; x2:1184px; y2:70px; "/>
  1740. <caption id="caption15" class="cell_1" style="left:550px; top:75px; width:75px; height:23px; vertical-align:middle; ">주소</caption>
  1741. <input id="ipt_mpphontel" ref="/root/main/ptbspatinfo/mpphontel" disabled="true" editable="false" style="left:428px; top:100px; width:119px; height:19px; "/>
  1742. <input id="ipt_zipcdseq" ref="/root/main/ptbspatinfo/zipcdaddr" disabled="true" editable="false" style="left:694px; top:76px; width:217px; height:19px; "/>
  1743. <caption id="caption29" class="cell_1" style="left:10px; top:99px; width:65px; height:23px; text-align:left; vertical-align:middle; ">성명</caption>
  1744. <input id="ipt_sex" ref="/root/main/ptbspatinfo/sex" disabled="true" editable="false" style="left:247px; top:100px; width:43px; height:19px; "/>
  1745. <button id="btn_cancel" class="btn5_letter2" style="left:432px; top:126px; width:42px; height:19px; ">
  1746. <caption>삭제</caption>
  1747. <script type="javascript" ev:event="DOMActivate">
  1748. <![CDATA[
  1749. var msg = "【 " + model.getValue("/root/main/ptbspatinfo/hngnm") + " 】님의 보험이력을"
  1750. model.setValue("/root/send/cancel/pid",model.getValue("/root/main/ptbspatinfo/pid"));
  1751. model.setValue("/root/send/cancel/mngtno",model.getValue("/root/main/ptbspatinfo/mngtno"));
  1752. model.setValue("/root/send/cancel/seqno",model.getValue("/root/main/ptbspatinfo/seqno"));
  1753. if (messageBox(msg, "Q001") == "6") {
  1754. submit("TXPMC02602");
  1755. fInitialize();
  1756. btn_search.dispatch("DOMActivate");
  1757. }
  1758. ]]>
  1759. </script>
  1760. </button>
  1761. <select1 id="cmb_suppkind1" ref="/root/main/ptbspatinfo/suppkind" class="combo_default" appearance="minimal" style="left:107px; top:251px; width:178px; height:19px; ">
  1762. <choices>
  1763. <itemset nodeset="/root/init/suppkind">
  1764. <label ref="nm"/>
  1765. <value ref="cd"/>
  1766. </itemset>
  1767. </choices>
  1768. <script type="javascript" ev:event="xforms-value-changed">
  1769. <![CDATA[
  1770. var sPid = model.getValue("/root/main/ptbspatinfo/pid");
  1771. if (sPid == null || sPid == "" || sPid == " ") {
  1772. return;
  1773. }
  1774. //보조유형 체크
  1775. if(!fCheckAutmbInsuLimAmt()){
  1776. return;
  1777. }
  1778. /* 보조유형에 따라서 지불한도액 초기화 및 disable되도록 설정
  1779. if (sSuppkind == "00" || sSuppkind == "01") {
  1780. var sPayLimAmt = model.getValue("/root/main/ptbspatinfo/paylimamt");
  1781. if (sPayLimAmt != "0") {
  1782. var msgResult = messageBox("지불한도액이 존재합니다.", "Q003");
  1783. if (msgResult == "6") { // YES
  1784. model.setValue("/root/main/ptbspatinfo/paylimamt", "0");
  1785. ipt_paylimamt.disabled = true;
  1786. ipt_paylimamt.refresh();
  1787. } else { // NO
  1788. model.setValue("/root/main/ptbspatinfo/suppkind", "18");
  1789. return false;
  1790. }
  1791. } else {
  1792. ipt_paylimamt.disabled = true;
  1793. ipt_paylimamt.refresh();
  1794. }
  1795. } else {
  1796. ipt_paylimamt.disabled = false;
  1797. ipt_paylimamt.refresh();
  1798. }
  1799. */
  1800. ]]>
  1801. </script>
  1802. </select1>
  1803. <line id="line8" class="line_1" style="x1:10px; y1:147px; x2:474px; y2:147px; "/>
  1804. <datagrid id="grd_Insurance" nodeset="/root/main/aipmgrd/gridInsurance" caption="환자번호^성명^주민번호^보험회사^합의종결일^진료개시일^사고일자^접수번호^연번호^승인시작일^승인종료일^보조유형^지불한도액^차량번호^내원경로^종결구분^종결사유^담당자^담당자연락처^담당자FAX번호^참고사항^외래예약^입원예약^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8" colsep="^" colwidth="57, 67, 92, 150, 70, 70, 70, 150, 80, 70, 70, 84, 75, 80, 55, 55, 60, 60, 100, 100, 280, 150, 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100" dataheight="25" defaultrows="1" explorerbar="sort" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:484px; top:152px; width:700px; height:244px; ">
  1805. <col disabled="true" ref="pid"/>
  1806. <col disabled="true" ref="hngnm"/>
  1807. <col disabled="true" ref="rrgstno" format="999999-9999999" style="left:233px; top:25px; width:49px; height:30px; text-align:center; "/>
  1808. <col disabled="true" ref="insucdnm"/>
  1809. <col disabled="true" ref="agreenddd" format="yyyy-mm-dd" style="text-align:center; "/>
  1810. <col disabled="true" ref="ordopendd" format="yyyy-mm-dd" style="text-align:center; "/>
  1811. <col disabled="true" ref="acddd" format="yyyy-mm-dd" style="text-align:center; "/>
  1812. <col disabled="true" ref="mngtno"/>
  1813. <col disabled="true" ref="autmbinsuseqno"/>
  1814. <col disabled="true" ref="aprvfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1815. <col disabled="true" ref="aprvtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  1816. <col disabled="true" ref="suppkind" type="combo">
  1817. <choices>
  1818. <itemset nodeset="/root/init/suppkind">
  1819. <label ref="nm"/>
  1820. <value ref="cd"/>
  1821. </itemset>
  1822. </choices>
  1823. </col>
  1824. <col disabled="true" ref="paylimamt" format="#,###" style="text-align:right; "/>
  1825. <col disabled="true" ref="carno"/>
  1826. <col disabled="true" ref="chospathcd" type="combo" style="text-align:center; ">
  1827. <choices>
  1828. <itemset nodeset="/root/init1/P0028list/P0028">
  1829. <label ref="cdnm"/>
  1830. <value ref="cdid"/>
  1831. </itemset>
  1832. </choices>
  1833. </col>
  1834. <col disabled="true" ref="endflag" type="combo" style="text-align:center; ">
  1835. <choices>
  1836. <itemset nodeset="/root/init1/P0038list/P0038">
  1837. <label ref="cdnm"/>
  1838. <value ref="cdid"/>
  1839. </itemset>
  1840. </choices>
  1841. </col>
  1842. <col disabled="true" ref="endresncd" type="combo">
  1843. <choices>
  1844. <itemset nodeset="/root/temp/endresncd/items">
  1845. <label ref="nm"/>
  1846. <value ref="cd"/>
  1847. </itemset>
  1848. </choices>
  1849. </col>
  1850. <col disabled="true" ref="chrgrnm" visibility="hidden"/>
  1851. <col disabled="true" ref="chrgrtel"/>
  1852. <col disabled="true" ref="chrgrfaxno"/>
  1853. <col disabled="true" ref="autmbinsurem"/>
  1854. <col ref="outorddd"/>
  1855. <col ref="inadrvdd"/>
  1856. <col disabled="true" ref="hometel" visibility="hidden"/>
  1857. <col disabled="true" ref="mpphontel" visibility="hidden"/>
  1858. <col disabled="true" ref="zipcd1" visibility="hidden" style="text-align:center; "/>
  1859. <col disabled="true" ref="zipcd2" visibility="hidden" style="text-align:center; "/>
  1860. <col disabled="true" ref="zipcdseq" visibility="hidden" style="text-align:center; "/>
  1861. <col disabled="true" ref="zipcdaddr" visibility="hidden"/>
  1862. <col disabled="true" ref="detladdr" visibility="hidden"/>
  1863. <col disabled="true" ref="remfact" visibility="hidden"/>
  1864. <col disabled="true" ref="autmbinsuseqno" visibility="hidden"/>
  1865. <col disabled="true" ref="brthdd" visibility="hidden"/>
  1866. <col disabled="true" ref="seqno" visibility="hidden"/>
  1867. <col disabled="true" ref="insucd" visibility="hidden"/>
  1868. <col disabled="true" ref="histstat" visibility="hidden"/>
  1869. <script type="javascript" ev:event="ondblclick">
  1870. <![CDATA[
  1871. if( isDataCell() ){
  1872. var row = grd_Insurance.row;
  1873. if (row >= grd_Insurance.fixedrows){
  1874. model.setvalue("/root/main/ptbspatinfo/pid", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/pid"));
  1875. model.setvalue("/root/main/ptbspatinfo/hngnm", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/hngnm"));
  1876. model.setvalue("/root/main/ptbspatinfo/rrgstno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/rrgstno"));
  1877. model.setvalue("/root/main/ptbspatinfo/sex", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/sex"));
  1878. model.setvalue("/root/main/ptbspatinfo/hometel", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/hometel"));
  1879. model.setvalue("/root/main/ptbspatinfo/mpphontel", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/mpphontel"));
  1880. model.setvalue("/root/main/ptbspatinfo/zipcode1", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/zipcd1"));
  1881. model.setvalue("/root/main/ptbspatinfo/zipcode2", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/zipcd2"));
  1882. model.setvalue("/root/main/ptbspatinfo/zipcdseq", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/zipcdseq"));
  1883. model.setvalue("/root/main/ptbspatinfo/zipcdaddr", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/zipcdaddr"));
  1884. model.setvalue("/root/main/ptbspatinfo/detladdr", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/detladdr"));
  1885. model.setvalue("/root/main/ptbspatinfo/remfact", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/remfact"));
  1886. var birthdd = model.getValue("/root/main/aipmgrd/gridInsurance[" + row + "]/brthdd");
  1887. if(birthdd != "" || birthdd != null){
  1888. if(isValidDateTime(birthdd,"YYYYMMDD") == true){
  1889. model.setvalue("/root/main/ptbspatinfo/age",getFullAge(birthdd));
  1890. }
  1891. }
  1892. model.setvalue("/root/main/ptbspatinfo/insucdnm", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/insucd"));
  1893. //model.setvalue("/root/init/insucd/cdnm", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/insucd"));
  1894. model.setvalue("/root/main/ptbspatinfo/acddd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/acddd"));
  1895. model.setvalue("/root/main/ptbspatinfo/mngtno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/mngtno"));
  1896. model.setvalue("/root/main/ptbspatinfo/oldmngtno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/mngtno"));
  1897. model.setvalue("/root/main/ptbspatinfo/autmbinsuseqno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/autmbinsuseqno"));
  1898. model.setvalue("/root/main/ptbspatinfo/suppkind", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/suppkind"));
  1899. model.setvalue("/root/main/ptbspatinfo/carno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/carno"));
  1900. model.setvalue("/root/main/ptbspatinfo/chrgrnm", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/chrgrnm"));
  1901. model.setvalue("/root/main/ptbspatinfo/chrgrtel", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/chrgrtel"));
  1902. model.setvalue("/root/main/ptbspatinfo/chrgrfaxno", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/chrgrfaxno"));
  1903. model.setvalue("/root/main/ptbspatinfo/autmbinsurem", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/autmbinsurem"));
  1904. model.setvalue("/root/main/ptbspatinfo/ordopendd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/ordopendd"));
  1905. model.setvalue("/root/main/ptbspatinfo/aprvfromdd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/aprvfromdd"));
  1906. model.setvalue("/root/main/ptbspatinfo/aprvtodd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/aprvtodd"));
  1907. model.setvalue("/root/main/ptbspatinfo/paylimamt", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/paylimamt"));
  1908. model.setvalue("/root/main/ptbspatinfo/chospathcd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/chospathcd"));
  1909. model.setvalue("/root/main/ptbspatinfo/endflag", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/endflag"));
  1910. model.setvalue("/root/main/ptbspatinfo/endresncd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/endresncd"));
  1911. model.setvalue("/root/main/ptbspatinfo/agreenddd", model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/agreenddd"));
  1912. model.setvalue("/root/main/ptbspatinfo/seqno", parseInt(model.getvalue("/root/main/aipmgrd/gridInsurance[" + row + "]/seqno"))+1);
  1913. // submit("TRPMC02603");
  1914. fGetDetInfo();
  1915. model.refresh();
  1916. }
  1917. cmb_suppkind1.dispatch("xforms-value-changed");
  1918. }
  1919. ]]>
  1920. </script>
  1921. <script type="javascript" ev:event="onaftersort">
  1922. <![CDATA[
  1923. //sorting 시 인스턴스 구조를 재구성
  1924. grd_Insurance.gridToInstance();
  1925. ]]>
  1926. </script>
  1927. </datagrid>
  1928. <button id="button9" class="btn2_letter4" style="left:875px; top:125px; width:64px; height:19px; ">
  1929. <caption>엑셀저장</caption>
  1930. <script type="javascript" ev:event="DOMActivate">
  1931. <![CDATA[
  1932. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1933. if (fileName != "") {
  1934. grd_Insurance.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false;");
  1935. }
  1936. ]]>
  1937. </script>
  1938. </button>
  1939. <button id="button16" class="btn2_letter5" style="left:941px; top:125px; width:75px; height:19px; ">
  1940. <caption>보험사관리</caption>
  1941. <script type="javascript" ev:event="DOMActivate">
  1942. <![CDATA[
  1943. modal("SMPMB00100", "3", "", "", "", "", "/root/send/airasend", "/root/send");
  1944. ]]>
  1945. </script>
  1946. </button>
  1947. <input id="ipt_aprvfromdd" ref="/root/main/ptbspatinfo/aprvfromdd" class="input_default" navindex="4" inputtype="date" style="left:378px; top:177px; width:96px; height:19px; "/>
  1948. <select1 id="cmb_endflag" ref="/root/main/ptbspatinfo/endflag" class="combo_default" navindex="12" appearance="minimal" style="left:378px; top:276px; width:96px; height:19px; ">
  1949. <choices>
  1950. <itemset nodeset="/root/init1/P0038list/P0038">
  1951. <label ref="cdnm"/>
  1952. <value ref="cdid"/>
  1953. </itemset>
  1954. </choices>
  1955. <script type="javascript" ev:event="xforms-select">
  1956. <![CDATA[
  1957. if (model.getValue("/root/main/ptbspatinfo/endflag") == "N"){
  1958. model.setValue("/root/main/ptbspatinfo/endresncd","1");
  1959. model.setValue("/root/main/ptbspatinfo/agreenddd", "");
  1960. cmb_endresncd.disabled = true;
  1961. cmb_endresncd.refresh();
  1962. ipt_agreenddd.refresh();
  1963. } else {
  1964. cmb_endresncd.disabled = false;
  1965. model.setValue("/root/main/ptbspatinfo/endresncd","Y");
  1966. model.setValue("/root/main/ptbspatinfo/agreenddd", getCurrentDate());
  1967. cmb_endresncd.refresh();
  1968. ipt_agreenddd.refresh();
  1969. }
  1970. ]]>
  1971. </script>
  1972. </select1>
  1973. <button id="btn_roomamt" class="btn2_letter7" style="left:1084px; top:125px; width:97px; height:19px; ">
  1974. <caption>병실료차액기간</caption>
  1975. <script type="javascript" ev:event="DOMActivate">
  1976. <![CDATA[
  1977. if (model.getvalue("/root/main/ptbspatinfo/mngtno") != "") {
  1978. model.setvalue("/root/send/airasend/pid", model.getvalue("/root/main/ptbspatinfo/pid"));
  1979. model.setvalue("/root/send/airasend/mngtno", model.getvalue("/root/main/ptbspatinfo/mngtno"));
  1980. model.setvalue("/root/send/airasend/instcd", getUserInfo("dutplceinstcd"));
  1981. model.setvalue("/root/send/airasend/insukind", "31");
  1982. modal("SMPMC03400_자보병실차액", "", "400", "300", "", "/root/send/airasend", "/root/send/airareceive");
  1983. }
  1984. ]]>
  1985. </script>
  1986. </button>
  1987. <input id="ipt_agreenddd" ref="/root/main/ptbspatinfo/agreenddd" class="input_default" navindex="16" inputtype="date" style="left:378px; top:324px; width:96px; height:19px; "/>
  1988. <line id="line10" class="line_2" style="x1:10px; y1:246px; x2:473px; y2:246px; "/>
  1989. <select1 id="cmb_insucd" ref="/root/main/ptbspatinfo/insucdnm" navindex="1" appearance="minimal" showvalue="true" style="left:107px; top:153px; width:178px; height:19px; ">
  1990. <choices>
  1991. <itemset nodeset="/root/init/insucd">
  1992. <label ref="nm"/>
  1993. <value ref="cd"/>
  1994. </itemset>
  1995. </choices>
  1996. </select1>
  1997. <input id="ipt_aprvtodd" ref="/root/main/ptbspatinfo/aprvtodd" class="input_default" navindex="6" inputtype="date" style="left:378px; top:202px; width:96px; height:19px; ">
  1998. <script type="javascript" ev:event="xforms-value-changed">
  1999. <![CDATA[
  2000. var rows=getNodesetCount("/root/main/aimtgrd/gridaimtsearch");
  2001. if (rows>0){
  2002. for (var i = 1; i <= rows;i++) {
  2003. // var iRowStatus = grd_aimtSearch.rowStatus(i);
  2004. // if (iRowStatus > 0) { // 0은 변경없음
  2005. grd_aimtSearch.addStatus(i, "update");
  2006. grd_aimtSearch.cellStyle("background-image", i, 1) = "../../../com/commonweb/images/icon_u.gif";
  2007. model.setvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/state", "U");
  2008. model.setValue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordtodd",model.getValue("/root/main/ptbspatinfo/aprvtodd") );
  2009. }
  2010. }
  2011. ]]>
  2012. </script>
  2013. </input>
  2014. <input id="ipt_mngtno" ref="/root/main/ptbspatinfo/mngtno" class="input_essential" navindex="5" imemode="hangul" style="left:107px; top:202px; width:178px; height:19px; "/>
  2015. <line id="line11" class="line_1" style="x1:484px; y1:147px; x2:1184px; y2:147px; "/>
  2016. <line id="line12" class="line_2" style="x1:10px; y1:271px; x2:473px; y2:271px; "/>
  2017. <caption id="caption20" class="tit_2" style="left:489px; top:132px; width:124px; height:13px; ">보험이력조회</caption>
  2018. <input id="ipt_chrgrnm" ref="/root/main/ptbspatinfo/chrgrtel" class="input_default" navindex="13" imemode="hangul" style="left:107px; top:300px; width:178px; height:19px; "/>
  2019. <caption id="caption21" class="cell_1" style="left:288px; top:274px; width:88px; height:23px; vertical-align:middle; ">종결구분</caption>
  2020. <input id="ipt_seqno" ref="/root/main/ptbspatinfo/seqno" visibility="hidden" style="left:440px; top:340px; width:25px; height:19px; "/>
  2021. <line id="line14" class="line_2" style="x1:10px; y1:296px; x2:473px; y2:296px; "/>
  2022. <input id="ipt_paylimamt" ref="/root/main/ptbspatinfo/paylimamt" class="input_default" navindex="8" format="#,###" style="left:378px; top:226px; width:96px; height:19px; text-align:right; "/>
  2023. <caption id="caption2" class="tit_2" style="left:11px; top:132px; width:74px; height:13px; ">보험사항</caption>
  2024. <caption id="caption11" class="cell_1" style="left:288px; top:152px; width:88px; height:23px; vertical-align:middle; ">진료개시일</caption>
  2025. <line id="line15" class="line_2" style="x1:10px; y1:320px; x2:473px; y2:320px; "/>
  2026. <caption id="caption4" class="cell_1" style="left:10px; top:176px; width:95px; height:23px; vertical-align:middle; ">사고일자</caption>
  2027. <caption id="caption13" class="cell_1" style="left:288px; top:249px; width:88px; height:23px; vertical-align:middle; ">내원경로</caption>
  2028. <line id="line16" class="line_2" style="x1:10px; y1:345px; x2:473px; y2:345px; "/>
  2029. <input id="ipt_chrgrtel" ref="/root/main/ptbspatinfo/chrgrfaxno" class="input_default" navindex="15" style="left:107px; top:325px; width:178px; height:19px; "/>
  2030. <caption id="caption24" class="cell_1" style="left:10px; top:225px; width:95px; height:23px; vertical-align:middle; ">연번호</caption>
  2031. <line id="line17" class="line_2" style="x1:10px; y1:199px; x2:473px; y2:199px; "/>
  2032. <select1 id="cmb_chospathcd" ref="/root/main/ptbspatinfo/chospathcd" class="combo_default" navindex="10" appearance="minimal" style="left:378px; top:251px; width:96px; height:19px; ">
  2033. <choices>
  2034. <item>
  2035. <label>응급</label>
  2036. <value>E</value>
  2037. </item>
  2038. <item>
  2039. <label>외래</label>
  2040. <value>O</value>
  2041. </item>
  2042. </choices>
  2043. </select1>
  2044. <caption id="caption36" class="cell_1" style="left:11px; top:348px; width:94px; height:47px; vertical-align:middle; ">참고사항</caption>
  2045. <caption id="caption14" class="cell_1" style="left:10px; top:201px; width:95px; height:23px; vertical-align:middle; ">접수번호</caption>
  2046. <line id="line1" class="line_2" style="x1:10px; y1:198px; x2:230px; y2:198px; "/>
  2047. <input id="ipt_acddd" ref="/root/main/ptbspatinfo/acddd" class="input_default" navindex="3" inputtype="date" style="left:107px; top:177px; width:178px; height:19px; "/>
  2048. <caption id="caption26" class="cell_1" style="left:288px; top:176px; width:88px; height:48px; vertical-align:middle; ">
  2049. <![CDATA[승인기간
  2050. (From~To)]]>
  2051. </caption>
  2052. <line id="line3" class="line_2" style="x1:10px; y1:222px; x2:473px; y2:222px; "/>
  2053. <caption id="caption16" class="cell_1" style="left:288px; top:323px; width:88px; height:23px; vertical-align:middle; ">합의종결일</caption>
  2054. <caption id="caption7" class="cell_1" style="left:288px; top:225px; width:88px; height:23px; vertical-align:middle; ">지불한도액</caption>
  2055. <caption id="caption27" class="cell_1" style="left:10px; top:249px; width:95px; height:23px; vertical-align:middle; ">보조유형</caption>
  2056. <input id="ipt_carno" ref="/root/main/ptbspatinfo/carno" class="input_default" navindex="11" imemode="hangul" style="left:107px; top:276px; width:178px; height:19px; "/>
  2057. <caption id="caption28" class="cell_1" style="left:10px; top:152px; width:95px; height:23px; vertical-align:middle; ">보험회사</caption>
  2058. <button id="btn_save" class="btn5_letter2" style="left:385px; top:126px; width:42px; height:19px; ">
  2059. <caption>저장</caption>
  2060. <script type="javascript" ev:event="DOMActivate">
  2061. <![CDATA[
  2062. var flag = true;
  2063. if (model.getvalue("/root/main/ptbspatinfo/insucdnm") == "") {
  2064. messageBox("보험회사는 필히 선택해주셔야 합니다.", "I000");
  2065. flag = false;
  2066. }
  2067. if (model.getvalue("/root/main/ptbspatinfo/suppkind") == "") {
  2068. messageBox("보조유형은 필히 선택해주셔야 합니다.", "I000");
  2069. flag = false;
  2070. }
  2071. if (model.getvalue("/root/main/ptbspatinfo/mngtno") == "") {
  2072. messageBox("접수번호는 필히 입력해주셔야 합니다.", "I000");
  2073. flag = false;
  2074. }
  2075. if (model.getvalue("/root/main/ptbspatinfo/aprvfromdd") == ""
  2076. || model.getvalue("/root/main/ptbspatinfo/aprvtodd") == "") {
  2077. messageBox("승인기간은 필히 입력해주셔야 합니다.", "I000");
  2078. flag = false;
  2079. }
  2080. //보조유형 체크
  2081. if(!fCheckAutmbInsuLimAmt()){
  2082. flag = false;
  2083. }
  2084. //보험이력 체크 - 보류 20130711
  2085. // if(!fCheckAipm()){
  2086. // flag = false;
  2087. // }
  2088. //종결구분 - 계속(N), 종결(Y)
  2089. if(model.getvalue("/root/main/ptbspatinfo/endflag") == "Y") {
  2090. //종결처리 시 미시행 처방 체크
  2091. if(!fCheckUndoExec()){
  2092. flag = false;
  2093. }
  2094. }
  2095. // 2009.10.05 - 연번호 자동발생 로직 복원에 따른 체크로직 주석처리
  2096. /*
  2097. if (model.getvalue("/root/main/ptbspatinfo/autmbinsuseqno") == "") {
  2098. messageBox("연번호는 필히 입력해 주셔야 합니다.", "I000");
  2099. model.setFocus("ipt_autmbinsuseqno");
  2100. flag = false;
  2101. }
  2102. */
  2103. if (flag == true){
  2104. var pid = model.getValue("/root/main/ptbspatinfo/pid");
  2105. model.setvalue("/root/main/ptbspatinfo/mngtno", model.getvalue("/root/main/ptbspatinfo/mngtno").removeMask('\n'));
  2106. copyNodeType("/root/send/save", "/root/main/ptbspatinfo", "replace");
  2107. if(submit("TXPMC02601")){
  2108. btn_search.dispatch("DOMActivate");
  2109. }
  2110. }
  2111. ]]>
  2112. </script>
  2113. </button>
  2114. <caption id="caption18" class="cell_1" style="left:288px; top:299px; width:88px; height:23px; vertical-align:middle; ">종결사유</caption>
  2115. <textarea id="tar_autmbinsurem" ref="/root/main/ptbspatinfo/autmbinsurem" navindex="17" imemode="hangul" maxlength="150" style="left:107px; top:349px; width:368px; height:44px; "/>
  2116. <caption id="caption9" class="cell_1" style="left:10px; top:274px; width:95px; height:23px; vertical-align:middle; ">차량번호</caption>
  2117. <button id="button13" class="btn2_letter4" style="left:1018px; top:125px; width:64px; height:19px; ">
  2118. <caption>면담관리</caption>
  2119. <script type="javascript" ev:event="DOMActivate">
  2120. <![CDATA[
  2121. if(model.getvalue("/root/main/ptbspatinfo/mngtno") != ""){
  2122. model.setvalue("/root/send/airasend/pid", model.getvalue("/root/main/ptbspatinfo/pid"));
  2123. model.setvalue("/root/send/airasend/mngtno", model.getvalue("/root/main/ptbspatinfo/mngtno"));
  2124. model.setvalue("/root/send/airasend/instcd", getUserInfo("dutplceinstcd"));
  2125. model.setvalue("/root/send/airasend/insukind", "31");
  2126. modal("SMPMC03500_산재자보면담내역", "1", "400", "300", "", "/root/send/airasend", "/root/send/iaiwreceive");
  2127. }
  2128. ]]>
  2129. </script>
  2130. </button>
  2131. <select1 id="cmb_endresncd" ref="/root/main/ptbspatinfo/endresncd" class="combo_default" navindex="14" appearance="minimal" style="left:378px; top:300px; width:96px; height:19px; ">
  2132. <choices>
  2133. <itemset nodeset="/root/temp/endresncd/items">
  2134. <label ref="nm"/>
  2135. <value ref="cd"/>
  2136. </itemset>
  2137. </choices>
  2138. <script type="javascript" ev:event="xforms-select">
  2139. <![CDATA[
  2140. if (model.getValue("/root/main/ptbspatinfo/endresncd") != "2"){
  2141. model.setValue("/root/main/ptbspatinfo/agreenddd", getCurrentDate());
  2142. //ipt_agreenddd.disabled = true;
  2143. ipt_agreenddd.refresh();
  2144. }
  2145. ]]>
  2146. </script>
  2147. </select1>
  2148. <input id="ipt_ordopendd" ref="/root/main/ptbspatinfo/ordopendd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:378px; top:153px; width:96px; height:19px; "/>
  2149. <line id="line6" class="line_3" style="x1:10px; y1:395px; x2:474px; y2:395px; "/>
  2150. <input id="ipt_autmbinsuseqno" ref="/root/main/ptbspatinfo/autmbinsuseqno" navindex="7" maxlength="10" style="left:107px; top:226px; width:178px; height:19px; ">
  2151. <hint>
  2152. <![CDATA[입력하지 않으면 자동발생 됨]]>
  2153. </hint>
  2154. </input>
  2155. <line id="line7" class="line_2" style="x1:10px; y1:173px; x2:474px; y2:173px; "/>
  2156. <button id="button66" class="btn_sw" group="tab" selected="true" style="left:10px; top:405px; width:70px; height:22px; ">
  2157. <caption>기간관리</caption>
  2158. <toggle case="case1" ev:event="onclick"/>
  2159. </button>
  2160. <button id="button67" class="btn_sw" group="tab" selected="false" style="left:79px; top:405px; width:82px; height:22px; ">
  2161. <caption>증명서관리</caption>
  2162. <toggle case="case2" ev:event="onclick"/>
  2163. </button>
  2164. <button id="button1" class="btn_sw" group="tab" selected="false" style="left:160px; top:405px; width:96px; height:22px; ">
  2165. <caption>지급보증번호</caption>
  2166. <toggle case="case3" ev:event="onclick"/>
  2167. </button>
  2168. <group id="group4" scroll="auto" style="left:11px; top:675px; width:1171px; height:30px; ">
  2169. <button id="button8" class="btn3_letter5" style="left:0px; top:5px; width:92px; height:22px; ">
  2170. <caption>진료비내역</caption>
  2171. <script type="javascript" ev:event="DOMActivate">
  2172. <![CDATA[
  2173. var sPid = model.getValue("/root/main/ptbspatinfo/pid");
  2174. //기간관리 선택여부 체크
  2175. var currentRow = grd_aimtSearch.row;
  2176. if (currentRow < 1) {
  2177. return false;
  2178. } else {
  2179. var sOrdFlag = model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + currentRow + "]/ordflag");
  2180. //외래, 응급 수납조회 팝업 SMPAO00300, 파라미터 환자번호 : SMPAO00300_PARM2
  2181. if (sOrdFlag == "O" || sOrdFlag == "E") {
  2182. var pid = model.getValue("/root/main/ptbspatinfo/pid");
  2183. var param = pid + "▦";
  2184. setParameter("SMPAO00300_PARM2", param);
  2185. modal("SMPAO00300");
  2186. }
  2187. // 입원 진료비상세내역 팝업 SMPAI00200 파라미터 없음
  2188. if (sOrdFlag == "I") {
  2189. model.setValue("/root/send/SMPAI0020/pid", model.getValue("/root/main/ptbspatinfo/pid"));
  2190. modal("SMPAI00200", "3", "", "", "", "", "/root/send/SMPAI0020", "/root/send");
  2191. }
  2192. }
  2193. ]]>
  2194. </script>
  2195. </button>
  2196. <button id="button15" class="btn3_letter6" style="left:94px; top:5px; width:104px; height:22px; ">
  2197. <caption>신환환자등록</caption>
  2198. <script type="javascript" ev:event="DOMActivate">
  2199. <![CDATA[
  2200. modal("SMPMC01400", "3", "", "", "", "", "/root/main/ptbspatinfo/pid", "/root/send/pid");
  2201. ]]>
  2202. </script>
  2203. </button>
  2204. <button id="button17" class="btn3_letter5" style="left:200px; top:5px; width:92px; height:22px; ">
  2205. <caption>컨설트조회</caption>
  2206. <script type="javascript" ev:event="DOMActivate">
  2207. <![CDATA[
  2208. var pid = model.getValue("/root/main/ptbspatinfo/pid");
  2209. var param = pid + "▦▦▦▦▦▦";
  2210. setParameter("SMMMR05000_param_userdept", "doctor");
  2211. setParameter("SMMMR05000_param_pinfo", param);
  2212. modal("SMMMR05000");
  2213. ]]>
  2214. </script>
  2215. </button>
  2216. <button id="button19" class="btn3_letter7" style="left:294px; top:5px; width:116px; height:22px; ">
  2217. <caption>증명서발행내역</caption>
  2218. <script type="javascript" ev:event="DOMActivate">
  2219. <![CDATA[
  2220. // 제증명리스트 화면 팝업
  2221. modal("SMMMR02300");
  2222. ]]>
  2223. </script>
  2224. </button>
  2225. <button id="button23" class="btn3_letter4" style="left:412px; top:5px; width:80px; height:22px; ">
  2226. <caption>내원내역</caption>
  2227. <script type="javascript" ev:event="DOMActivate">
  2228. <![CDATA[
  2229. model.setValue("/root/send/search1/srchcond", 1);
  2230. model.setValue("/root/send/search1/pid",model.getValue("/root/main/ptbspatinfo/pid"));
  2231. modal("../../patinfomngtweb/xrw/SMPMC01900_환자상세내역조회", "", "100", "100", "SMPMC01900","/root/send/search1","/root/source");
  2232. ]]>
  2233. </script>
  2234. </button>
  2235. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1167px; y2:0px; "/>
  2236. <button id="btn_clear" class="btn4_letter3" style="left:1102px; top:5px; width:68px; height:22px; font-size:11px; ">
  2237. <caption>초기화</caption>
  2238. <script type="javascript" ev:event="DOMActivate">
  2239. <![CDATA[
  2240. model.resetInstanceNode("/root/main/ptbspatinfo");
  2241. model.removeNodeset("/root/main/aipmgrd/gridInsurance");
  2242. model.removeNodeset("/root/main/aimtgrd/gridaimtsearch");
  2243. model.resetInstanceNode("/root/hidden/ptbspatinfo");
  2244. model.resetInstanceNode("/root/send/search");
  2245. model.resetInstanceNode("/root/send/cancel");
  2246. model.resetInstanceNode("/root/send/airasend");
  2247. model.resetInstanceNode("/root/send/save");
  2248. model.resetInstanceNode("/root/send/save1");
  2249. model.resetInstanceNode("/root/main/condition");
  2250. model.setValue("/root/main/condition/reference", "0");
  2251. ipt_pid1.visible = false;
  2252. ipt_date1.visible = false;
  2253. ipt_date2.visible = false;
  2254. ipt_carno1.visible = false;
  2255. ipt_mngtno1.visible = false;
  2256. cmb_insucd1.visible = false;
  2257. ipt_acddd1.visible = false;
  2258. caption1.visible= false;
  2259. ipt_hngnm1.visible = false;
  2260. ipt_rrgstno1.visible = false;
  2261. ipt_tel1.visible = false;
  2262. model.setValue("/root/main/condition/endstat","1");
  2263. model.setValue("/root/main/condition/histstat","1");
  2264. ]]>
  2265. </script>
  2266. </button>
  2267. </group>
  2268. <group id="group2" style="left:10px; top:10px; width:1065px; height:55px; vertical-align:top; ">
  2269. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1065px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
  2270. <button id="btn_search" class="btn1_letter2" style="left:995px; top:15px; width:56px; height:22px; ">
  2271. <caption>조회</caption>
  2272. <script type="javascript" ev:event="DOMActivate">
  2273. <![CDATA[
  2274. fInitialize();
  2275. var flag = true;
  2276. var referenceValue = cmb_reference.value;
  2277. model.setValue("/root/send/search/reference", referenceValue);
  2278. switch (referenceValue){
  2279. case "0":
  2280. model.setValue("/root/send/search/reference", "0");
  2281. model.setValue("/root/send/search/reference1", "");
  2282. model.setValue("/root/send/search/reference2", "");
  2283. break;
  2284. case "1":
  2285. if (model.getValue("/root/main/condition/pid") == "") {
  2286. flag = false;
  2287. }
  2288. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/pid"));
  2289. model.setValue("/root/send/search/reference2", "");
  2290. break;
  2291. case "2":
  2292. // model.setValue("/root/send/search1/srchcond","2");
  2293. // model.setValue("/root/send/search1/hngnm", model.getValue("/root/main/condition/hngnm"));
  2294. // modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/search1", "/root/send");
  2295. // model.resetInstanceNode("/root/send/search1");
  2296. if (model.getValue("/root/main/condition/hngnm") == "") {
  2297. flag = false;
  2298. }
  2299. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/hngnm"));
  2300. model.setValue("/root/send/search/reference2", "");
  2301. break;
  2302. case "3":
  2303. if (model.getValue("/root/main/condition/rrgstno") == "") {
  2304. flag = false;
  2305. }
  2306. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/rrgstno"));
  2307. model.setValue("/root/send/search/reference2", "");
  2308. break;
  2309. case "4":
  2310. if (model.getValue("/root/main/condition/tel") == "") {
  2311. flag = false;
  2312. }
  2313. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/tel"));
  2314. model.setValue("/root/send/search/reference2", "");
  2315. break;
  2316. case "5":
  2317. if (model.getValue("/root/main/condition/acddd") == "") {
  2318. flag = false;
  2319. }
  2320. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/acddd"));
  2321. model.setValue("/root/send/search/reference2", "");
  2322. break;
  2323. case "6":
  2324. if (model.getValue("/root/main/condition/insucd") == "") {
  2325. flag = false;
  2326. }
  2327. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/insucd"));
  2328. model.setValue("/root/send/search/reference2", "");
  2329. break;
  2330. case "7":
  2331. if (model.getValue("/root/main/condition/mngtno") == "") {
  2332. flag = false;
  2333. }
  2334. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/mngtno"));
  2335. model.setValue("/root/send/search/reference2", "");
  2336. break;
  2337. case "8":
  2338. if (model.getValue("/root/main/condition/carno") == "") {
  2339. flag = false;
  2340. }
  2341. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/carno"));
  2342. model.setValue("/root/send/search/reference2", "");
  2343. break;
  2344. case "9":
  2345. if (model.getValue("/root/main/condition/date1") == "") {
  2346. flag = false;
  2347. }
  2348. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/date1"));
  2349. model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition/date2"));
  2350. break;
  2351. case "10":
  2352. if (model.getValue("/root/main/condition/date1") == "") {
  2353. flag = false;
  2354. }
  2355. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/date1"));
  2356. model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition/date2"));
  2357. break;
  2358. case "11":
  2359. if (model.getValue("/root/main/condition/date1") == "") {
  2360. flag = false;
  2361. }
  2362. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/date1"));
  2363. model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition/date2"));
  2364. break;
  2365. case "12":
  2366. if (model.getValue("/root/main/condition/date1") == "") {
  2367. flag = false;
  2368. }
  2369. model.setValue("/root/send/search/reference1", model.getValue("/root/main/condition/date1"));
  2370. model.setValue("/root/send/search/reference2", model.getValue("/root/main/condition/date2"));
  2371. break;
  2372. }
  2373. model.setValue("/root/send/search/suppkind", model.getValue("/root/main/condition/suppkind"));
  2374. model.setValue("/root/send/search/histstat", model.getValue("/root/main/condition/histstat"));
  2375. model.setValue("/root/send/search/endstat", model.getValue("/root/main/condition/endstat"));
  2376. if (flag == true) {
  2377. submit("TRPMC02601"); /* 보험이력조회 */
  2378. if (grd_Insurance.rows == 1) {
  2379. var currentdate = getCurrentDate();
  2380. if (cmb_reference.value == "1" || cmb_reference.value == "2" || cmb_reference.value == "3" || cmb_reference.value == "4") {
  2381. submit("TRPMC02605"); /*환자인적사항조회 */
  2382. model.setvalue("/root/main/ptbspatinfo/pid" , model.getvalue("/root/hidden/ptbspatinfo/pid"));
  2383. model.setvalue("/root/main/ptbspatinfo/rrgstno" , model.getvalue("/root/hidden/ptbspatinfo/rrgstno"));
  2384. model.setvalue("/root/main/ptbspatinfo/hometel" , model.getvalue("/root/hidden/ptbspatinfo/hometel"));
  2385. model.setvalue("/root/main/ptbspatinfo/zipcode1" , model.getvalue("/root/hidden/ptbspatinfo/zipcd1"));
  2386. model.setvalue("/root/main/ptbspatinfo/zipcode2" , model.getvalue("/root/hidden/ptbspatinfo/zipcd2"));
  2387. model.setvalue("/root/main/ptbspatinfo/zipcdseq" , model.getvalue("/root/hidden/ptbspatinfo/zipcdseq"));
  2388. model.setvalue("/root/main/ptbspatinfo/hngnm" , model.getvalue("/root/hidden/ptbspatinfo/hngnm"));
  2389. model.setvalue("/root/main/ptbspatinfo/sex" , model.getvalue("/root/hidden/ptbspatinfo/sex"));
  2390. model.setvalue("/root/main/ptbspatinfo/age" , model.getvalue("/root/main/aipmgrd/gridInsurance/brthdd"));
  2391. model.setvalue("/root/main/ptbspatinfo/mpphontel" , model.getvalue("/root/hidden/ptbspatinfo/mpphontel"));
  2392. model.setvalue("/root/main/ptbspatinfo/zipcdaddr" , model.getvalue("/root/hidden/ptbspatinfo/zipcdaddr"));
  2393. model.setvalue("/root/main/ptbspatinfo/detladdr" , model.getvalue("/root/hidden/ptbspatinfo/detladdr"));
  2394. model.setvalue("/root/main/ptbspatinfo/remfact" , model.getvalue("/root/hidden/ptbspatinfo/remfact"));
  2395. if (model.getValue("/root/main/ptbspatinfo/pid") != "") {
  2396. model.setvalue("/root/main/ptbspatinfo/insertid" , model.getValue("/root/hidden/session/posinstcd"));
  2397. model.setvalue("/root/main/ptbspatinfo/seqno" , "1");
  2398. model.setvalue("/root/main/ptbspatinfo/ordopendd" , currentdate);
  2399. model.setvalue("/root/main/ptbspatinfo/aprvfromdd" , currentdate);
  2400. model.setvalue("/root/main/ptbspatinfo/aprvtodd" , "99991231");
  2401. model.setvalue("/root/main/ptbspatinfo/chospathcd" , "O");
  2402. model.setvalue("/root/main/ptbspatinfo/endflag" , "N");
  2403. model.setvalue("/root/main/ptbspatinfo/paylimamt" , "0");
  2404. model.setValue("/root/main/ptbspatinfo/endresncd" , "1");
  2405. model.refresh();
  2406. }
  2407. }
  2408. }
  2409. if (grd_Insurance.rows >= 2) {
  2410. model.setvalue("/root/main/ptbspatinfo/pid" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/pid"));
  2411. model.setvalue("/root/main/ptbspatinfo/hngnm" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hngnm"));
  2412. model.setvalue("/root/main/ptbspatinfo/rrgstno" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/rrgstno"));
  2413. model.setvalue("/root/main/ptbspatinfo/sex" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/sex"));
  2414. model.setvalue("/root/main/ptbspatinfo/hometel" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/hometel"));
  2415. model.setvalue("/root/main/ptbspatinfo/mpphontel" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mpphontel"));
  2416. model.setvalue("/root/main/ptbspatinfo/zipcode1" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd1"));
  2417. model.setvalue("/root/main/ptbspatinfo/zipcode2" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcd2"));
  2418. model.setvalue("/root/main/ptbspatinfo/zipcdaddr" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcdaddr"));
  2419. model.setvalue("/root/main/ptbspatinfo/zipcdseq" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/zipcdseq"));
  2420. model.setvalue("/root/main/ptbspatinfo/detladdr" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/detladdr"));
  2421. model.setvalue("/root/main/ptbspatinfo/remfact" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/remfact"));
  2422. var birthdd = model.getValue("/root/main/aipmgrd/gridInsurance/brthdd");
  2423. if(birthdd != "" || birthdd != null){
  2424. if (isValidDateTime(birthdd,"YYYYMMDD") == true){
  2425. model.setvalue("/root/main/ptbspatinfo/age",getFullAge(birthdd));
  2426. }
  2427. }
  2428. model.setvalue("/root/main/ptbspatinfo/insucdnm" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/insucd"));
  2429. model.setvalue("/root/main/ptbspatinfo/acddd" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/acddd"));
  2430. model.setvalue("/root/main/ptbspatinfo/mngtno" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
  2431. model.setvalue("/root/main/ptbspatinfo/oldmngtno" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/mngtno"));
  2432. model.setvalue("/root/main/ptbspatinfo/autmbinsuseqno" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsuseqno"));
  2433. model.setvalue("/root/main/ptbspatinfo/suppkind" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/suppkind"));
  2434. model.setvalue("/root/main/ptbspatinfo/carno" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/carno"));
  2435. model.setvalue("/root/main/ptbspatinfo/chrgrnm" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrnm"));
  2436. model.setvalue("/root/main/ptbspatinfo/chrgrtel" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrtel"));
  2437. model.setvalue("/root/main/ptbspatinfo/chrgrfaxno" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chrgrfaxno"));
  2438. model.setvalue("/root/main/ptbspatinfo/autmbinsurem" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/autmbinsurem"));
  2439. model.setvalue("/root/main/ptbspatinfo/ordopendd" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/ordopendd"));
  2440. model.setvalue("/root/main/ptbspatinfo/aprvfromdd" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvfromdd"));
  2441. model.setvalue("/root/main/ptbspatinfo/aprvtodd" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/aprvtodd"));
  2442. model.setvalue("/root/main/ptbspatinfo/paylimamt" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/paylimamt"));
  2443. model.setvalue("/root/main/ptbspatinfo/chospathcd" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/chospathcd"));
  2444. model.setvalue("/root/main/ptbspatinfo/endflag" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endflag"));
  2445. model.setvalue("/root/main/ptbspatinfo/endresncd" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/endresncd"));
  2446. model.setvalue("/root/main/ptbspatinfo/agreenddd" , model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/agreenddd"));
  2447. model.setvalue("/root/main/ptbspatinfo/seqno" , parseInt(model.getvalue("/root/main/aipmgrd/gridInsurance[" + 1 + "]/seqno"))+1);
  2448. fGetDetInfo();
  2449. model.refresh();
  2450. }
  2451. // 2009.07.11 - 조회 후 조회조건 초기화 하지 않음 - 성가 요청
  2452. //model.setValue("/root/main/condition/reference", "0");
  2453. //model.setValue("/root/main/condition/endstat","1");
  2454. //model.setValue("/root/main/condition/histstat","1");
  2455. //condition_initialize();
  2456. //cmb_reference.dispatch("xforms-select");
  2457. cmb_suppkind1.dispatch("xforms-value-changed");
  2458. }
  2459. ]]>
  2460. </script>
  2461. </button>
  2462. <line id="line5" class="line_4" style="x1:985px; y1:15px; x2:985px; y2:37px; border-color:#ffe4bb; border-left-style:solid; "/>
  2463. <caption id="caption19" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
  2464. <caption id="caption22" class="search_name" style="left:15px; top:33px; width:90px; height:17px; ">재원구분 :</caption>
  2465. <caption id="caption25" class="search_name" style="left:440px; top:33px; width:86px; height:17px; ">종결구분 :</caption>
  2466. <select1 id="cmb_reference" ref="/root/main/condition/reference" class="combo_search" appearance="minimal" style="left:103px; top:9px; width:97px; height:19px; ">
  2467. <choices>
  2468. <item>
  2469. <label>전체</label>
  2470. <value>0</value>
  2471. </item>
  2472. <item>
  2473. <label>환자번호</label>
  2474. <value>1</value>
  2475. </item>
  2476. <item>
  2477. <label>환자성명</label>
  2478. <value>2</value>
  2479. </item>
  2480. <item>
  2481. <label>주민번호</label>
  2482. <value>3</value>
  2483. </item>
  2484. <item>
  2485. <label>전화번호</label>
  2486. <value>4</value>
  2487. </item>
  2488. <item>
  2489. <label>사고일시</label>
  2490. <value>5</value>
  2491. </item>
  2492. <item>
  2493. <label>보험회사</label>
  2494. <value>6</value>
  2495. </item>
  2496. <item>
  2497. <label>접수번호</label>
  2498. <value>7</value>
  2499. </item>
  2500. <item>
  2501. <label>차량번호</label>
  2502. <value>8</value>
  2503. </item>
  2504. <item>
  2505. <label>외래일자</label>
  2506. <value>9</value>
  2507. </item>
  2508. <item>
  2509. <label>입원일자</label>
  2510. <value>10</value>
  2511. </item>
  2512. <item>
  2513. <label>진료개시일</label>
  2514. <value>11</value>
  2515. </item>
  2516. <item>
  2517. <label>승인시작일</label>
  2518. <value>12</value>
  2519. </item>
  2520. </choices>
  2521. <script type="javascript" ev:event="xforms-select">
  2522. <![CDATA[
  2523. condition_initialize();
  2524. //fInitialize();
  2525. var referenceValue = cmb_reference.value;
  2526. if (referenceValue == "10") {
  2527. model.setValue("/root/main/condition/histstat", "2"); // 재원구분 '재원'으로 설정
  2528. rdo_histstat.refresh();
  2529. }
  2530. switch (referenceValue){
  2531. case "0":
  2532. ipt_pid1.visible = false;
  2533. ipt_date1.visible = false;
  2534. ipt_date2.visible = false;
  2535. ipt_carno1.visible = false;
  2536. ipt_mngtno1.visible = false;
  2537. cmb_insucd1.visible = false;
  2538. ipt_acddd1.visible = false;
  2539. caption1.visible= false;
  2540. ipt_hngnm1.visible = false;
  2541. ipt_rrgstno1.visible = false;
  2542. ipt_tel1.visible = false;
  2543. break;
  2544. case "1":
  2545. ipt_pid1.visible = true;
  2546. ipt_date1.visible = false;
  2547. ipt_date2.visible = false;
  2548. ipt_carno1.visible = false;
  2549. ipt_mngtno1.visible = false;
  2550. cmb_insucd1.visible = false;
  2551. ipt_acddd1.visible = false;
  2552. caption1.visible= false;
  2553. ipt_hngnm1.visible = false;
  2554. ipt_rrgstno1.visible = false;
  2555. ipt_tel1.visible = false;
  2556. ipt_pid1.refresh();
  2557. model.setFocus("ipt_pid1");
  2558. break;
  2559. case "2":
  2560. ipt_hngnm1.visible = true;
  2561. ipt_date1.visible = false;
  2562. ipt_date2.visible = false;
  2563. ipt_carno1.visible = false;
  2564. ipt_mngtno1.visible = false;
  2565. cmb_insucd1.visible = false;
  2566. ipt_acddd1.visible = false;
  2567. caption1.visible= false;
  2568. ipt_pid1.visible=false;
  2569. ipt_rrgstno1.visible = false;
  2570. ipt_tel1.visible = false;
  2571. ipt_rrgstno1.visible = false;
  2572. ipt_hngnm1.refresh();
  2573. model.setFocus("ipt_hngnm1");
  2574. break;
  2575. case "3":
  2576. ipt_rrgstno1.visible = true;
  2577. ipt_date1.visible = false;
  2578. ipt_date2.visible = false;
  2579. ipt_carno1.visible = false;
  2580. ipt_mngtno1.visible = false;
  2581. cmb_insucd1.visible = false;
  2582. ipt_acddd1.visible = false;
  2583. ipt_hngnm1.visible=false;
  2584. ipt_pid1.visible=false;
  2585. caption1.visible= false;
  2586. ipt_tel1.visible = false;
  2587. ipt_rrgstno1.refresh();
  2588. model.setFocus("ipt_rrgstno1");
  2589. break;
  2590. case "4":
  2591. ipt_tel1.visible = true;
  2592. ipt_date1.visible = false;
  2593. ipt_date2.visible = false;
  2594. ipt_carno1.visible = false;
  2595. ipt_mngtno1.visible = false;
  2596. cmb_insucd1.visible = false;
  2597. ipt_acddd1.visible = false;
  2598. ipt_rrgstno1.visible = false;
  2599. ipt_hngnm1.visible=false;
  2600. ipt_pid1.visible=false;
  2601. caption1.visible= false;
  2602. ipt_tel1.refresh();
  2603. model.setFocus("ipt_tel1");
  2604. break;
  2605. case "5":
  2606. ipt_acddd1.visible = true;
  2607. ipt_date1.visible = false;
  2608. ipt_date2.visible = false;
  2609. ipt_carno1.visible = false;
  2610. ipt_mngtno1.visible = false;
  2611. cmb_insucd1.visible = false;
  2612. ipt_tel1.visible = false;
  2613. ipt_rrgstno1.visible = false;
  2614. ipt_hngnm1.visible=false;
  2615. ipt_pid1.visible=false;
  2616. caption1.visible= false;
  2617. ipt_acddd1.refresh();
  2618. model.setFocus("ipt_acddd1");
  2619. break;
  2620. case "6":
  2621. cmb_insucd1.visible = true;
  2622. ipt_date1.visible = false;
  2623. ipt_date2.visible = false;
  2624. ipt_carno1.visible = false;
  2625. ipt_mngtno1.visible = false;
  2626. ipt_acddd1.visible = false;
  2627. ipt_tel1.visible = false;
  2628. ipt_rrgstno1.visible = false;
  2629. ipt_hngnm1.visible=false;
  2630. ipt_pid1.visible=false;
  2631. caption1.visible= false;
  2632. cmb_insucd1.refresh();
  2633. model.setFocus("cmb_insucd1");
  2634. break;
  2635. case "7":
  2636. ipt_mngtno1.visible = true;
  2637. ipt_date1.visible = false;
  2638. ipt_date2.visible = false;
  2639. ipt_carno1.visible = false;
  2640. cmb_insucd1.visible = false;
  2641. ipt_acddd1.visible = false;
  2642. ipt_tel1.visible = false;
  2643. ipt_rrgstno1.visible = false;
  2644. ipt_hngnm1.visible=false;
  2645. ipt_pid1.visible=false;
  2646. caption1.visible= false;
  2647. ipt_mngtno1.refresh();
  2648. model.setFocus("ipt_mngtno1");
  2649. break;
  2650. case "8":
  2651. ipt_carno1.visible = true;
  2652. ipt_date1.visible = false;
  2653. ipt_date2.visible = false;
  2654. ipt_mngtno1.visible = false;
  2655. cmb_insucd1.visible = false;
  2656. ipt_acddd1.visible = false;
  2657. ipt_tel1.visible = false;
  2658. ipt_rrgstno1.visible = false;
  2659. ipt_hngnm1.visible=false;
  2660. ipt_pid1.visible=false;
  2661. caption1.visible= false;
  2662. ipt_carno1.refresh();
  2663. model.setFocus("ipt_carno1");
  2664. break;
  2665. case "9":
  2666. ipt_date1.visible = true;
  2667. ipt_date2.visible = true;
  2668. caption1.visible= true;
  2669. ipt_carno1.visible = false;
  2670. cmb_insucd1.visible = false;
  2671. ipt_mngtno1.visible = false;
  2672. ipt_acddd1.visible = false;
  2673. ipt_tel1.visible = false;
  2674. ipt_rrgstno1.visible = false;
  2675. ipt_hngnm1.visible=false;
  2676. ipt_pid1.visible=false;
  2677. ipt_date1.refresh();
  2678. ipt_date2.refresh();
  2679. model.setFocus("ipt_date1");
  2680. break;
  2681. case "10":
  2682. ipt_date1.visible = true;
  2683. ipt_date2.visible = true;
  2684. caption1.visible= true;
  2685. ipt_carno1.visible = false;
  2686. cmb_insucd1.visible = false;
  2687. ipt_mngtno1.visible = false;
  2688. ipt_acddd1.visible = false;
  2689. ipt_tel1.visible = false;
  2690. ipt_rrgstno1.visible = false;
  2691. ipt_hngnm1.visible=false;
  2692. ipt_pid1.visible=false;
  2693. ipt_date1.refresh();
  2694. ipt_date2.refresh();
  2695. caption1.refresh();
  2696. model.setFocus("ipt_date1");
  2697. break;
  2698. case "11":
  2699. ipt_date1.visible = true;
  2700. ipt_date2.visible = true;
  2701. caption1.visible= true;
  2702. ipt_carno1.visible = false;
  2703. cmb_insucd1.visible = false;
  2704. ipt_mngtno1.visible = false;
  2705. ipt_acddd1.visible = false;
  2706. ipt_tel1.visible = false;
  2707. ipt_rrgstno1.visible = false;
  2708. ipt_hngnm1.visible=false;
  2709. ipt_pid1.visible=false;
  2710. ipt_date1.refresh();
  2711. ipt_date2.refresh();
  2712. model.setFocus("ipt_date1");
  2713. break;
  2714. case "12":
  2715. ipt_date1.visible = true;
  2716. ipt_date2.visible = true;
  2717. caption1.visible= true;
  2718. ipt_carno1.visible = false;
  2719. cmb_insucd1.visible = false;
  2720. ipt_mngtno1.visible = false;
  2721. ipt_acddd1.visible = false;
  2722. ipt_tel1.visible = false;
  2723. ipt_rrgstno1.visible = false;
  2724. ipt_hngnm1.visible=false;
  2725. ipt_pid1.visible=false;
  2726. ipt_date1.refresh();
  2727. ipt_date2.refresh();
  2728. model.setFocus("ipt_date1");
  2729. break;
  2730. }
  2731. model.refresh();
  2732. ]]>
  2733. </script>
  2734. </select1>
  2735. <select1 id="cmb_suppkind" ref="/root/main/condition/suppkind" class="combo_search" appearance="minimal" style="left:529px; top:9px; width:141px; height:19px; ">
  2736. <choices>
  2737. <itemset nodeset="/root/init/suppkind">
  2738. <label ref="nm"/>
  2739. <value ref="cd"/>
  2740. </itemset>
  2741. </choices>
  2742. <script type="javascript" ev:event="xforms-value-changed">
  2743. <![CDATA[
  2744. model.setFocus("rdo_histstat");
  2745. // btn_search.dispatch("DOMActivate");
  2746. ]]>
  2747. </script>
  2748. <script type="javascript" ev:event="onkeydown">
  2749. <![CDATA[
  2750. if(event.keyCode == "13") {
  2751. model.setFocus("rdo_histstat");
  2752. }
  2753. ]]>
  2754. </script>
  2755. </select1>
  2756. <select1 id="rdo_endstat" ref="/root/main/condition/endstat" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:530px; top:33px; width:139px; height:19px; border-style:none; ">
  2757. <choices>
  2758. <item>
  2759. <label>전체</label>
  2760. <value>1</value>
  2761. </item>
  2762. <item>
  2763. <label>계속</label>
  2764. <value>2</value>
  2765. </item>
  2766. <item>
  2767. <label>종결</label>
  2768. <value>3</value>
  2769. </item>
  2770. </choices>
  2771. <script type="javascript" ev:event="onkeydown">
  2772. <![CDATA[
  2773. if(event.keyCode == "13") {
  2774. inputEnterKey("btn_search", "DOMActivate");
  2775. }
  2776. ]]>
  2777. </script>
  2778. </select1>
  2779. <caption id="caption34" class="search_name" style="left:440px; top:9px; width:85px; height:17px; ">보조유형 :</caption>
  2780. <select1 id="rdo_histstat" ref="/root/main/condition/histstat" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:104px; top:33px; width:141px; height:19px; border-style:none; ">
  2781. <choices>
  2782. <item>
  2783. <label>전체</label>
  2784. <value>1</value>
  2785. </item>
  2786. <item>
  2787. <label>재원</label>
  2788. <value>2</value>
  2789. </item>
  2790. <item>
  2791. <label>외래</label>
  2792. <value>3</value>
  2793. </item>
  2794. </choices>
  2795. <script type="javascript" ev:event="onkeypress">
  2796. <![CDATA[
  2797. if(event.keyCode == "13") {
  2798. model.setFocus("rdo_endstat");
  2799. }
  2800. ]]>
  2801. </script>
  2802. </select1>
  2803. <caption id="caption1" visibility="hidden" style="left:310px; top:10px; width:15px; height:20px; ">~</caption>
  2804. <input id="ipt_pid1" ref="/root/main/condition/pid" class="input_search" visibility="hidden" imemode="numeric" maxlength="10" style="left:205px; top:9px; width:100px; height:19px; ">
  2805. <script type="javascript" ev:event="onkeypress">
  2806. <![CDATA[
  2807. if(event.keyCode == "13") {
  2808. // inputEnterKey("btn_search", "DOMActivate");
  2809. // setInputNodeCurText();
  2810. // model.setValue("/root/send/search1/pid",model.getValue("/root/main/condition/pid"));
  2811. // model.setValue("/root/send/search1/srchcond","1");
  2812. // modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
  2813. // model.setValue("/root/main/condition/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  2814. inputEnterKey("btn_search", "DOMActivate");
  2815. // ipt_pid1.visible = true;
  2816. // ipt_hngnm1.visible = false;
  2817. // ipt_rrgstno1.visible = false;
  2818. model.refresh();
  2819. }
  2820. ]]>
  2821. </script>
  2822. </input>
  2823. <input id="ipt_hngnm1" ref="/root/main/condition/hngnm" class="input_search" visibility="hidden" imemode="hangul" maxlength="50" style="left:205px; top:9px; width:100px; height:19px; ">
  2824. <script type="javascript" ev:event="onkeypress">
  2825. <![CDATA[
  2826. if(event.keyCode == "13") {
  2827. // inputEnterKey("btn_search", "DOMActivate");
  2828. setInputNodeCurText();
  2829. model.setValue("/root/send/search1/hngnm",model.getValue("/root/main/condition/hngnm"));
  2830. model.setValue("/root/send/search1/srchcond","2");
  2831. modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
  2832. model.setValue("/root/main/condition/reference", "1");
  2833. model.setValue("/root/main/condition/hngnm", "");
  2834. model.setValue("/root/main/condition/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  2835. inputEnterKey("btn_search", "DOMActivate");
  2836. ipt_pid1.visible = true;
  2837. ipt_hngnm1.visible = false;
  2838. ipt_rrgstno1.visible = false;
  2839. model.refresh();
  2840. }
  2841. ]]>
  2842. </script>
  2843. </input>
  2844. <input id="ipt_rrgstno1" ref="/root/main/condition/rrgstno" class="input_search" visibility="hidden" maxlength="14" format="999999-9999999" style="left:205px; top:9px; width:100px; height:19px; ">
  2845. <script type="javascript" ev:event="onkeypress">
  2846. <![CDATA[
  2847. if(event.keyCode == "13") {
  2848. // inputEnterKey("btn_search", "DOMActivate");
  2849. setInputNodeCurText();
  2850. var rrgstno = model.getValue("/root/main/condition/rrgstno");
  2851. model.setValue("/root/send/search1/rrgstno1", rrgstno.substring(0,6));
  2852. model.setValue("/root/send/search1/rrgstno2", rrgstno.substring(7,14));
  2853. model.setValue("/root/send/search1/srchcond","3");
  2854. modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
  2855. // ipt_rrgstno1.visible = "hidden";
  2856. model.setValue("/root/main/condition/reference", "1");
  2857. model.setValue("/root/main/condition/rrgstno", "");
  2858. model.setValue("/root/main/condition/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  2859. inputEnterKey("btn_search", "DOMActivate");
  2860. ipt_pid1.visible = true;
  2861. ipt_hngnm1.visible = false;
  2862. ipt_rrgstno1.visible = false;
  2863. model.refresh();
  2864. }
  2865. ]]>
  2866. </script>
  2867. </input>
  2868. <input id="ipt_tel1" ref="/root/main/condition/tel" class="input_search" visibility="hidden" imemode="numeric" maxlength="13" style="left:205px; top:9px; width:100px; height:19px; ">
  2869. <script type="javascript" ev:event="onkeypress">
  2870. <![CDATA[
  2871. if(event.keyCode == "13") {
  2872. // btn_search.dispatch("DOMActivate");
  2873. inputEnterKey("btn_search", "DOMActivate");
  2874. }
  2875. ]]>
  2876. </script>
  2877. </input>
  2878. <input id="ipt_acddd1" ref="/root/main/condition/acddd" class="input_search" visibility="hidden" inputtype="date" style="left:205px; top:9px; width:100px; height:19px; ">
  2879. <script type="javascript" ev:event="onkeypress">
  2880. <![CDATA[
  2881. if(event.keyCode == "13") {
  2882. // btn_search.dispatch("DOMActivate");
  2883. inputEnterKey("btn_search", "DOMActivate");
  2884. }
  2885. ]]>
  2886. </script>
  2887. </input>
  2888. <select1 id="cmb_insucd1" ref="/root/main/condition/insucd" class="combo_search" visibility="hidden" appearance="minimal" style="left:205px; top:9px; width:200px; height:19px; ">
  2889. <choices>
  2890. <itemset nodeset="/root/init/insucd">
  2891. <label ref="nm"/>
  2892. <value ref="cd"/>
  2893. </itemset>
  2894. </choices>
  2895. <script type="javascript" ev:event="xforms-value-changed">
  2896. <![CDATA[
  2897. btn_search.dispatch("DOMActivate");
  2898. // inputEnterKey("btn_search", "DOMActivate");
  2899. ]]>
  2900. </script>
  2901. </select1>
  2902. <input id="ipt_mngtno1" ref="/root/main/condition/mngtno" class="input_search" visibility="hidden" style="left:205px; top:9px; width:100px; height:19px; ">
  2903. <script type="javascript" ev:event="onkeypress">
  2904. <![CDATA[
  2905. if(event.keyCode == "13") {
  2906. // btn_search.dispatch("DOMActivate");
  2907. inputEnterKey("btn_search", "DOMActivate");
  2908. }
  2909. ]]>
  2910. </script>
  2911. </input>
  2912. <input id="ipt_carno1" ref="/root/main/condition/carno" class="input_search" visibility="hidden" maxlength="20" style="left:205px; top:9px; width:100px; height:19px; ">
  2913. <script type="javascript" ev:event="onkeypress">
  2914. <![CDATA[
  2915. if(event.keyCode == "13") {
  2916. // btn_search.dispatch("DOMActivate");
  2917. inputEnterKey("btn_search", "DOMActivate");
  2918. }
  2919. ]]>
  2920. </script>
  2921. </input>
  2922. <input id="ipt_date1" ref="/root/main/condition/date1" class="input_search" visibility="hidden" inputtype="date" style="left:205px; top:9px; width:100px; height:19px; ">
  2923. <script type="javascript" ev:event="onkeypress">
  2924. <![CDATA[
  2925. if(event.keyCode == "13") {
  2926. model.setFocus("ipt_date2");
  2927. }
  2928. ]]>
  2929. </script>
  2930. </input>
  2931. <input id="ipt_date2" ref="/root/main/condition/date2" class="input_search" visibility="hidden" inputtype="date" style="left:325px; top:9px; width:100px; height:19px; ">
  2932. <script type="javascript" ev:event="onkeypress">
  2933. <![CDATA[
  2934. if(event.keyCode == "13") {
  2935. // btn_search.dispatch("DOMActivate");
  2936. inputEnterKey("btn_search", "DOMActivate");
  2937. }
  2938. ]]>
  2939. </script>
  2940. </input>
  2941. <caption id="caption3" class="search_name" style="left:685px; top:10px; width:85px; height:17px; ">검색기간:</caption>
  2942. <input id="ipt_fromdd" ref="/root/send/search/fromdd" inputtype="date" style="left:770px; top:10px; width:90px; height:19px; "/>
  2943. <caption id="caption46" style="left:865px; top:10px; width:15px; height:20px; ">~</caption>
  2944. <input id="ipt_todd" ref="/root/send/search/todd" inputtype="date" style="left:880px; top:10px; width:90px; height:19px; "/>
  2945. <caption id="caption47" class="search_name" style="left:685px; top:33px; width:145px; height:17px; ">검색기간사용여부 :</caption>
  2946. <select1 id="rdo_useyn" ref="/root/send/search/useyn" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:825px; top:33px; width:105px; height:19px; border-style:none; ">
  2947. <choices>
  2948. <item>
  2949. <label>사용</label>
  2950. <value>Y</value>
  2951. </item>
  2952. <item>
  2953. <label>미사용</label>
  2954. <value>N</value>
  2955. </item>
  2956. </choices>
  2957. </select1>
  2958. </group>
  2959. <switch id="swt_term" style="left:10px; top:426px; width:1173px; height:244px; border-color:#c7a3cf; border-style:solid; ">
  2960. <case id="case1" class="sw_box" selected="true" style="left:0px; top:0px; width:1173px; height:244px; ">
  2961. <line id="line4" class="line_1" style="x1:0px; y1:26px; x2:1172px; y2:26px; "/>
  2962. <datagrid id="grd_aimtSearch" nodeset="/root/main/aimtgrd/gridaimtsearch" caption="^^등록번호^관리번호^요양일련번호^일련번호^기관코드^이력상태^진료구분^진료과코드^선택진료여부^진료개시일자^진료종료일자^자보기간 참고사항" colsep="^" colwidth="25, 0, 0, 0, 0, 0, 0, 0, 100, 100, 100, 100, 100, 600" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:1171px; height:212px; ">
  2963. <col class="update_n" ref="update"/>
  2964. <col ref="state"/>
  2965. <col ref="pid"/>
  2966. <col ref="mngtno"/>
  2967. <col ref="mtrtseqno"/>
  2968. <col ref="seqno"/>
  2969. <col ref="instcd"/>
  2970. <col ref="histstat"/>
  2971. <col ref="ordflag" type="combo" style="left:626px; top:25px; width:100px; height:27px; text-align:center; ">
  2972. <choices>
  2973. <itemset nodeset="/root/init1/P0028list/P0028">
  2974. <label ref="cdnm"/>
  2975. <value ref="cdid"/>
  2976. </itemset>
  2977. </choices>
  2978. </col>
  2979. <!--<col ref="orddeptnm"/>-->
  2980. <col ref="orddeptcd" type="combo">
  2981. <choices>
  2982. <itemset nodeset="/root/init/orddeptcd">
  2983. <label ref="nm"/>
  2984. <value ref="cd"/>
  2985. </itemset>
  2986. </choices>
  2987. </col>
  2988. <col ref="specordyn" type="combo" style="text-align:center; ">
  2989. <choices>
  2990. <item>
  2991. <label>Y</label>
  2992. <value>Y</value>
  2993. </item>
  2994. <item>
  2995. <label>N</label>
  2996. <value>N</value>
  2997. </item>
  2998. </choices>
  2999. </col>
  3000. <col ref="ordopendd" type="inputdate" style="text-align:center; "/>
  3001. <col ref="ordtodd" type="inputdate" style="text-align:center; "/>
  3002. <col imemode="hangul" ref="autmbinsutermrem" type="input"/>
  3003. <script type="javascript" ev:event="onmousedown">
  3004. <![CDATA[
  3005. if (event.button == 3) { // 3 : 오른쪽 버튼
  3006. if (grd_aimtSearch.isCell(event.target) && grd_aimtSearch.mouseRow >= grd_aimtSearch.fixedrows) {
  3007. window.setPopupMenu(true, "/root/hidden/popupmenu/gridmenu/item", "name", "func", false);
  3008. } else {
  3009. window.setPopupMenu(false);
  3010. }
  3011. }
  3012. ]]>
  3013. </script>
  3014. <script type="javascript" ev:event="DOMFocusOut">
  3015. <![CDATA[
  3016. // window.setPopupMenu(false);
  3017. ]]>
  3018. </script>
  3019. <script type="javascript" ev:event="xforms-select">
  3020. <![CDATA[
  3021. // 2008.09.30 최병진 - 진료형태에 따른 진료과코드 맵핑
  3022. var sOrdFlag = model.getValue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/ordflag");
  3023. if (sOrdFlag == "E") {
  3024. sOrdFlag = "I";
  3025. }
  3026. if (grd_aimtSearch.col == 9){
  3027. grd_aimtSearch.cellComboNodeset(grd_aimtSearch.row, 10) = "/root/init/orddeptcd[io = '" + sOrdFlag + "' ]";
  3028. grd_aimtSearch.refresh();
  3029. }
  3030. ]]>
  3031. </script>
  3032. <script type="javascript" ev:event="xforms-value-changed">
  3033. <![CDATA[
  3034. if (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/state") != "I"){
  3035. grd_aimtSearch.addStatus(grd_aimtSearch.row, "update");
  3036. grd_aimtSearch.cellStyle("background-image", grd_aimtSearch.row, 1) = "../../../com/commonweb/images/icon_u.gif";
  3037. model.setvalue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/state", "U");
  3038. }
  3039. // 2008.03.17 최병진 - 진료구분(입원,외래)에 따른 진료종료일자 자동설정. 승인종료일자를 기본으로 설정
  3040. var sOrdFlag = model.getValue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/ordflag");
  3041. var sOrdTodd = model.getValue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/ordtodd");
  3042. if(sOrdTodd == "" && sOrdFlag == "O") {
  3043. model.setValue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/ordtodd", model.getValue("/root/main/ptbspatinfo/aprvtodd") );
  3044. }
  3045. if(sOrdTodd == "" && sOrdFlag == "I") {
  3046. model.setValue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/ordtodd", model.getValue("/root/main/ptbspatinfo/aprvtodd") );
  3047. }
  3048. if(sOrdTodd == "" && sOrdFlag == "E") {
  3049. model.setValue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row + "]/ordtodd", model.getValue("/root/main/ptbspatinfo/aprvtodd") );
  3050. }
  3051. model.refresh();
  3052. ]]>
  3053. </script>
  3054. </datagrid>
  3055. <button id="btn_addRow" class="btn2_letter3" style="left:892px; top:5px; width:53px; height:19px; ">
  3056. <caption>행추가</caption>
  3057. <script type="javascript" ev:event="onclick">
  3058. <![CDATA[
  3059. grd_aimtSearch.addRow();
  3060. grd_aimtSearch.cellStyle("background-image", grd_aimtSearch.row, 1) = "../../../com/commonweb/images/icon_i.gif";
  3061. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/state", "I");
  3062. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/pid", model.getvalue("/root/main/ptbspatinfo/pid"));
  3063. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mngtno", model.getvalue("/root/main/ptbspatinfo/mngtno"));
  3064. if (grd_aimtSearch.row <= grd_aimtSearch.rows-1) {
  3065. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.row);
  3066. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.row);
  3067. } else {
  3068. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.rows-1);
  3069. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.rows-1);
  3070. }
  3071. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/ordflag", "2");
  3072. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/specordyn", "Y");
  3073. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/instcd", model.getValue("/root/hidden/session/posinstcd"));
  3074. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/histstat", "Y");
  3075. model.setValue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/ordopendd", model.getValue("/root/main/ptbspatinfo/aprvfromdd"));
  3076. model.setValue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/ordtodd", model.getValue("/root/main/ptbspatinfo/aprvtodd"));
  3077. grd_aimtSearch.refresh();
  3078. ]]>
  3079. </script>
  3080. </button>
  3081. <button id="btn_deleteRow" class="btn2_letter3" style="left:948px; top:5px; width:53px; height:19px; ">
  3082. <caption>행삭제</caption>
  3083. <script type="javascript" ev:event="onclick">
  3084. <![CDATA[
  3085. if (grd_aimtSearch.row >= 1) {
  3086. grd_aimtSearch.addStatus(grd_aimtSearch.row, "delete");
  3087. grd_aimtSearch.cellStyle("background-image", grd_aimtSearch.row, 1) = "../../../com/commonweb/images/icon_d.gif";
  3088. model.setvalue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row +"]/state", "D");
  3089. model.refresh();
  3090. }
  3091. ]]>
  3092. </script>
  3093. </button>
  3094. <button id="btn_insertRow" class="btn2_letter3" style="left:1004px; top:5px; width:53px; height:19px; ">
  3095. <caption>행삽입</caption>
  3096. <script type="javascript" ev:event="onclick">
  3097. <![CDATA[
  3098. if (grd_aimtSearch.rows >= 2) {
  3099. grd_aimtSearch.insertRow(grd_aimtSearch.row, "below", false);
  3100. grd_aimtSearch.cellStyle("background-image", grd_aimtSearch.row, 1) = "../../../com/commonweb/images/icon_i.gif";
  3101. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/state", "I");
  3102. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/pid", model.getvalue("/root/main/ptbspatinfo/pid"));
  3103. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mngtno", model.getvalue("/root/main/ptbspatinfo/mngtno"));
  3104. if (grd_aimtSearch.row <= grd_aimtSearch.rows-1) {
  3105. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.row);
  3106. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.row);
  3107. } else {
  3108. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/mtrtseqno", grd_aimtSearch.rows-1);
  3109. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/seqno", grd_aimtSearch.rows-1);
  3110. }
  3111. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/ordflag", "2");
  3112. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/specordyn", "Y");
  3113. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/instcd", model.getValue("/root/hidden/session/posinstcd"));
  3114. model.setvalue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/histstat", "Y");
  3115. model.setValue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/ordopendd", model.getValue("/root/main/ptbspatinfo/aprvfromdd"));
  3116. model.setValue("/root/main/aimtgrd/gridaimtsearch["+grd_aimtSearch.row+"]/ordtodd", model.getValue("/root/main/ptbspatinfo/aprvtodd"));
  3117. grd_aimtSearch.refresh();
  3118. }
  3119. ]]>
  3120. </script>
  3121. </button>
  3122. <button id="btn_aimtsave" class="btn5_letter2" style="left:1127px; top:5px; width:42px; height:19px; ">
  3123. <caption>저장</caption>
  3124. <script type="javascript" ev:event="DOMActivate">
  3125. <![CDATA[
  3126. var i = 1;
  3127. var flag = true;
  3128. var status = 0;
  3129. while ( i <= grd_aimtSearch.rows-1) {
  3130. status = grd_aimtSearch.rowStatus(i);
  3131. if (status == 0) { // 0은 변경없음
  3132. i++;
  3133. continue;
  3134. }
  3135. if (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordflag") == "" && model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/state") != "D") {
  3136. messageBox("진료구분은 필히 선택해주셔야 합니다.", "I000");
  3137. flag = false;
  3138. break;
  3139. }
  3140. if (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/orddeptcd") == "" && model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/state") != "D") {
  3141. messageBox("진료과는 필히 선택해주셔야 합니다.", "I000");
  3142. flag = false;
  3143. break;
  3144. }
  3145. if (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/specordyn") == "" && model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/state") != "D") {
  3146. messageBox("선택진료여부는 필히 선택해주셔야 합니다.", "I000");
  3147. flag = false;
  3148. break;
  3149. }
  3150. if (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordopendd") == "" && model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/state") != "D") {
  3151. messageBox("진료개시일자는 필히 입력해주셔야 합니다.", "I000");
  3152. flag = false;
  3153. break;
  3154. }
  3155. // if (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordtodd") == "" && model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/state") != "D") {
  3156. // messageBox("진료종료일자는 필히 입력해주셔야 합니다.", "I000");
  3157. // flag = false;
  3158. // break;
  3159. // }
  3160. if (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordtodd") < model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordopendd") && (model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordtodd")) != "") {
  3161. messageBox("진료개시일자는 진료종료일자보다 클 수 없습니다.", "I000");
  3162. flag = false;
  3163. break;
  3164. }
  3165. //2008.03.17 최병진 - 승인기간안에 진료개시일자가 유효한지 검사
  3166. if (model.getValue("/root/main/ptbspatinfo/aprvfromdd") > model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordopendd")
  3167. || model.getValue("/root/main/ptbspatinfo/aprvtodd") < model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordopendd")) {
  3168. messageBox("[" + i + "]번째 행의 진료개시일자가 승인기간 안에 포함되지 않습니다.!!", "I000");
  3169. flag = false;
  3170. break;
  3171. }
  3172. //2008.03.17 최병진 - 승인기간안에 진료종료일자가 유효한지 검사
  3173. if (model.getValue("/root/main/ptbspatinfo/aprvfromdd") > model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordtodd")
  3174. || model.getValue("/root/main/ptbspatinfo/aprvtodd") < model.getvalue("/root/main/aimtgrd/gridaimtsearch[" + i + "]/ordtodd")) {
  3175. messageBox("[" + i + "]번째 행의 진료종료일자가 승인기간 안에 포함되지 않습니다.!!", "I000");
  3176. flag = false;
  3177. break;
  3178. }
  3179. i++;
  3180. }
  3181. if (flag == true) {
  3182. model.resetInstanceNode("/root/send/save1");
  3183. for (var i = 1; i <= grd_aimtSearch.rows-1;i++){
  3184. var iRowStatus = grd_aimtSearch.rowStatus(i);
  3185. if (iRowStatus > 0) { // 0은 변경없음
  3186. copyNodeType("/root/send/save1", "/root/main/aimtgrd/gridaimtsearch[" + i + "]", "replace");
  3187. if (submit("TXPMC02603")) {
  3188. model.resetInstanceNode("/root/send/save1");
  3189. }
  3190. }
  3191. }
  3192. grd_aimtSearch.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
  3193. fGetDetInfo();
  3194. model.refresh();
  3195. }
  3196. ]]>
  3197. </script>
  3198. </button>
  3199. <button id="btn_aimtexcelsave" class="btn2_letter4" style="left:1060px; top:5px; width:64px; height:19px; ">
  3200. <caption>엑셀저장</caption>
  3201. <script type="javascript" ev:event="DOMActivate">
  3202. <![CDATA[
  3203. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  3204. if (fileName != "") {
  3205. grd_aimtSearch.saveExcel(fileName, "SheetName", true, true, "", "", true);
  3206. }
  3207. ]]>
  3208. </script>
  3209. </button>
  3210. <caption id="caption45" class="tit_2" style="left:0px; top:10px; width:95px; height:15px; ">기간관리</caption>
  3211. </case>
  3212. <case id="case2" style="left:0px; top:0px; width:1171px; height:242px; ">
  3213. <line id="line18" class="line_1" style="x1:0px; y1:26px; x2:1171px; y2:26px; "/>
  3214. <datagrid id="grd_profcertinfo" nodeset="/root/main/profcertgrd/grdprofcertinfo" caption="내원구분^증명구분^진료일^진료과^진료의^발급일^무료발급사유" colsep="^" colwidth="100, 150, 130, 130, 120, 130, 408" dataheight="25" defaultrows="1" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:30px; width:1171px; height:212px; ">
  3215. <col disabled="true" ref="chosflag" type="combo" style="text-align:center; ">
  3216. <choices>
  3217. <itemset nodeset="/root/init1/P0028list/P0028">
  3218. <label ref="cdnm"/>
  3219. <value ref="cdid"/>
  3220. </itemset>
  3221. </choices>
  3222. </col>
  3223. <col disabled="true" ref="prntkind" style="text-align:center; "/>
  3224. <col disabled="true" ref="orddd" type="inputdate" style="text-align:center; "/>
  3225. <col disabled="true" ref="orddept" type="combo" style="text-align:center; ">
  3226. <choices>
  3227. <itemset nodeset="/root/init/orddeptcd" style="text-align:center;">
  3228. <label ref="nm"/>
  3229. <value ref="cd"/>
  3230. </itemset>
  3231. </choices>
  3232. </col>
  3233. <col disabled="true" ref="doctnm" style="text-align:center; "/>
  3234. <col disabled="true" ref="issdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  3235. <col disabled="true" ref="freeissresn" style="text-align:center; "/>
  3236. </datagrid>
  3237. <caption id="caption42" class="tit_2" style="left:0px; top:10px; width:95px; height:15px; ">증명서관리</caption>
  3238. </case>
  3239. <case id="case3" class="sw_box" style="left:0px; top:0px; width:1173px; height:244px; ">
  3240. <line id="line13" class="line_1" style="x1:0px; y1:26px; x2:1172px; y2:26px; "/>
  3241. <datagrid id="grd_paygrnt" nodeset="/root/main/paygrntgrd/paygrntinfo" caption="^^등록번호^관리번호^요양일련번호^일련번호^기관코드^이력상태^지급보증번호^진료개시일자^진료종료일자^지급보증 참고사항" colsep="^" colwidth="25, 0, 0, 0, 0, 0, 0, 0, 180, 100, 100, 720" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:1171px; height:212px; ">
  3242. <col class="update_n" ref="update"/>
  3243. <col ref="state"/>
  3244. <col ref="pid"/>
  3245. <col ref="mngtno"/>
  3246. <col ref="mtrtseqno"/>
  3247. <col ref="seqno"/>
  3248. <col ref="instcd"/>
  3249. <col ref="histstat"/>
  3250. <col ref="paygrntno" type="input"/>
  3251. <col ref="ordopendd" type="inputdate" style="text-align:center; "/>
  3252. <col ref="ordtodd" type="inputdate" style="text-align:center; "/>
  3253. <col ref="paygrntrem" type="input"/>
  3254. <script type="javascript" ev:event="xforms-value-changed">
  3255. <![CDATA[
  3256. if (model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + grd_paygrnt.row + "]/state") != "I"){
  3257. grd_paygrnt.addStatus(grd_paygrnt.row, "update");
  3258. grd_paygrnt.cellStyle("background-image", grd_paygrnt.row, 1) = "../../../com/commonweb/images/icon_u.gif";
  3259. model.setvalue("/root/main/paygrntgrd/paygrntinfo[" + grd_paygrnt.row + "]/state", "U");
  3260. }
  3261. var sOrdTodd = model.getValue("/root/main/paygrntgrd/paygrntinfo[" + grd_paygrnt.row + "]/ordtodd");
  3262. if(sOrdTodd == "") {
  3263. model.setValue("/root/main/paygrntgrd/paygrntinfo[" + grd_paygrnt.row + "]/ordtodd", model.getValue("/root/main/ptbspatinfo/aprvtodd") );
  3264. }
  3265. model.refresh();
  3266. ]]>
  3267. </script>
  3268. </datagrid>
  3269. <button id="button2" class="btn2_letter3" style="left:892px; top:5px; width:53px; height:19px; ">
  3270. <caption>행추가</caption>
  3271. <script type="javascript" ev:event="onclick">
  3272. <![CDATA[
  3273. grd_paygrnt.addRow();
  3274. grd_paygrnt.cellStyle("background-image", grd_paygrnt.row, 1) = "../../../com/commonweb/images/icon_i.gif";
  3275. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/state" , "I");
  3276. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/pid" , model.getvalue("/root/main/ptbspatinfo/pid"));
  3277. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/mngtno" , model.getvalue("/root/main/ptbspatinfo/mngtno"));
  3278. if(grd_paygrnt.row <= grd_paygrnt.rows-1) {
  3279. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/mtrtseqno" , grd_paygrnt.row);
  3280. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/seqno" , grd_paygrnt.row);
  3281. }else{
  3282. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/mtrtseqno" , grd_paygrnt.rows-1);
  3283. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/seqno" , grd_paygrnt.rows-1);
  3284. }
  3285. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/instcd" , model.getValue("/root/hidden/session/posinstcd"));
  3286. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/histstat" , "Y");
  3287. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/ordopendd" , getCurrentDate());
  3288. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/ordtodd" , model.getValue("/root/main/ptbspatinfo/aprvtodd"));
  3289. grd_paygrnt.refresh();
  3290. ]]>
  3291. </script>
  3292. </button>
  3293. <button id="button3" class="btn2_letter3" style="left:948px; top:5px; width:53px; height:19px; ">
  3294. <caption>행삭제</caption>
  3295. <script type="javascript" ev:event="onclick">
  3296. <![CDATA[
  3297. if (grd_paygrnt.row >= 1) {
  3298. grd_paygrnt.addStatus(grd_paygrnt.row, "delete");
  3299. grd_paygrnt.cellStyle("background-image", grd_paygrnt.row, 1) = "../../../com/commonweb/images/icon_d.gif";
  3300. model.setvalue("/root/main/paygrntgrd/paygrntinfo[" + grd_paygrnt.row +"]/state", "D");
  3301. model.refresh();
  3302. }
  3303. ]]>
  3304. </script>
  3305. </button>
  3306. <button id="button4" class="btn2_letter3" style="left:1004px; top:5px; width:53px; height:19px; ">
  3307. <caption>행삽입</caption>
  3308. <script type="javascript" ev:event="onclick">
  3309. <![CDATA[
  3310. if (grd_paygrnt.rows >= 2) {
  3311. grd_paygrnt.insertRow(grd_paygrnt.row, "below", false);
  3312. grd_paygrnt.cellStyle("background-image", grd_paygrnt.row, 1) = "../../../com/commonweb/images/icon_i.gif";
  3313. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/state" , "I");
  3314. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/pid" , model.getvalue("/root/main/ptbspatinfo/pid"));
  3315. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/mngtno" , model.getvalue("/root/main/ptbspatinfo/mngtno"));
  3316. if (grd_paygrnt.row <= grd_paygrnt.rows-1) {
  3317. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/mtrtseqno" , grd_paygrnt.row);
  3318. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/seqno" , grd_paygrnt.row);
  3319. } else {
  3320. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/mtrtseqno" , grd_paygrnt.rows-1);
  3321. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/seqno" , grd_paygrnt.rows-1);
  3322. }
  3323. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/instcd" , model.getValue("/root/hidden/session/posinstcd"));
  3324. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/histstat" , "Y");
  3325. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/ordopendd" , getCurrentDate());
  3326. model.setvalue("/root/main/paygrntgrd/paygrntinfo["+grd_paygrnt.row+"]/ordtodd" , model.getValue("/root/main/ptbspatinfo/aprvtodd"));
  3327. grd_paygrnt.refresh();
  3328. }
  3329. ]]>
  3330. </script>
  3331. </button>
  3332. <button id="button5" class="btn5_letter2" style="left:1127px; top:5px; width:42px; height:19px; ">
  3333. <caption>저장</caption>
  3334. <script type="javascript" ev:event="DOMActivate">
  3335. <![CDATA[
  3336. var i = 1;
  3337. var flag = true;
  3338. var status = 0;
  3339. while(i <= grd_paygrnt.rows-1){
  3340. status = grd_paygrnt.rowStatus(i);
  3341. if (status == 0) { // 0은 변경없음
  3342. i++;
  3343. continue;
  3344. }
  3345. if(model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/state") != "D"){
  3346. if (model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/paygrntno") == ""){
  3347. messageBox("지급보증번호는 필히 입력해주셔야 합니다.", "I000");
  3348. flag = false;
  3349. break;
  3350. }
  3351. if (model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordopendd") == ""){
  3352. messageBox("진료개시일자는 필히 입력해주셔야 합니다.", "I000");
  3353. flag = false;
  3354. break;
  3355. }
  3356. if (model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd") == ""){
  3357. messageBox("진료종료일자는 필히 입력해주셔야 합니다.", "I000");
  3358. flag = false;
  3359. break;
  3360. }
  3361. if (model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd") < model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordopendd") && (model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd")) != ""){
  3362. messageBox("진료개시일자는 진료종료일자보다 클 수 없습니다.", "I000");
  3363. flag = false;
  3364. break;
  3365. }
  3366. //2008.03.17 최병진 - 승인기간안에 진료개시일자가 유효한지 검사
  3367. if (model.getValue("/root/main/ptbspatinfo/aprvfromdd") > model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordopendd") || model.getValue("/root/main/ptbspatinfo/aprvtodd") < model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordopendd")){
  3368. messageBox("[" + i + "]번째 행의 진료개시일자가 승인기간 안에 포함되지 않습니다.!!", "I000");
  3369. flag = false;
  3370. break;
  3371. }
  3372. //2008.03.17 최병진 - 승인기간안에 진료종료일자가 유효한지 검사
  3373. if (model.getValue("/root/main/ptbspatinfo/aprvfromdd") > model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd") || model.getValue("/root/main/ptbspatinfo/aprvtodd") < model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd")){
  3374. messageBox("[" + i + "]번째 행의 진료종료일자가 승인기간 안에 포함되지 않습니다.!!", "I000");
  3375. flag = false;
  3376. break;
  3377. }
  3378. var j = 1;
  3379. while(j <= grd_paygrnt.rows-1){
  3380. if(i != j){
  3381. if(model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + j + "]/state") != "D"){
  3382. if(model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordopendd") == model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + j + "]/ordopendd")){
  3383. messageBox("[" + i + "]번째 행은 [" + j + "]번째 행의 진료개시일자가 중복입니다.!!", "I000");
  3384. flag = false;
  3385. break;
  3386. }
  3387. if(model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd") == model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + j + "]/ordtodd")){
  3388. messageBox("[" + i + "]번째 행은 [" + j + "]번째 행의 진료종료일자가 중복입니다.!!", "I000");
  3389. flag = false;
  3390. break;
  3391. }
  3392. if(model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordopendd") > model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + j + "]/ordopendd") && model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordopendd") < model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + j + "]/ordtodd")){
  3393. messageBox("[" + i + "]번째 행은 [" + j + "]번째 행의 진료기간이 중복입니다.!!", "I000");
  3394. flag = false;
  3395. break;
  3396. }
  3397. if(model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd") < model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + j + "]/ordtodd") && model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + i + "]/ordtodd") > model.getvalue("/root/main/paygrntgrd/paygrntinfo[" + j + "]/ordopendd")){
  3398. messageBox("[" + i + "]번째 행은 [" + j + "]번째 행의 진료기간이 중복입니다.!!", "I000");
  3399. flag = false;
  3400. break;
  3401. }
  3402. }
  3403. }
  3404. j++;
  3405. }
  3406. if(flag == false){
  3407. break;
  3408. }
  3409. }
  3410. i++;
  3411. }
  3412. if(flag == true){
  3413. model.resetInstanceNode("/root/send/save1");
  3414. for (var i = 1; i <= grd_paygrnt.rows-1;i++){
  3415. var iRowStatus = grd_paygrnt.rowStatus(i);
  3416. if (iRowStatus > 0) { // 0은 변경없음
  3417. copyNodeType("/root/send/save1", "/root/main/paygrntgrd/paygrntinfo[" + i + "]", "replace");
  3418. if (submit("TXPMC02604")){
  3419. model.resetInstanceNode("/root/send/save1");
  3420. }
  3421. }
  3422. }
  3423. grd_paygrnt.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
  3424. fGetDetInfo();
  3425. model.refresh();
  3426. }
  3427. ]]>
  3428. </script>
  3429. </button>
  3430. <button id="button6" class="btn2_letter4" style="left:1060px; top:5px; width:64px; height:19px; ">
  3431. <caption>엑셀저장</caption>
  3432. <script type="javascript" ev:event="DOMActivate">
  3433. <![CDATA[
  3434. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  3435. if (fileName != "") {
  3436. grd_paygrnt.saveExcel(fileName, "SheetName", true, true, "", "", true);
  3437. }
  3438. ]]>
  3439. </script>
  3440. </button>
  3441. <caption id="caption37" class="tit_2" style="left:0px; top:10px; width:95px; height:15px; ">지급보증번호</caption>
  3442. </case>
  3443. <case id="case4" class="sw_box" style="left:0px; top:0px; width:1173px; height:244px; ">
  3444. <line id="line20" class="line_1" style="x1:0px; y1:26px; x2:1172px; y2:26px; "/>
  3445. <datagrid id="grd_otpt" nodeset="/root/main/otptgrd/otptinfo" caption="^^환자번호^진료일자^생성번호^진료과^보험회사" colsep="^" colwidth="25, 0, 10, 85, 10, 120, 200" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:1171px; height:212px; ">
  3446. <col class="update_n" ref="update"/>
  3447. <col ref="state"/>
  3448. <col ref="pid" visibility="hidden"/>
  3449. <col disabled="true" ref="orddd"/>
  3450. <col ref="cretno" visibility="hidden"/>
  3451. <col ref="orddeptnm"/>
  3452. <!-- 치과개설에 따른 프로그램 수정(2016/06/01)
  3453. <col disabled="true" ref="orddeptcd" type="combo">
  3454. <choices>
  3455. <itemset nodeset="/root/init/orddeptcd">
  3456. <label ref="nm"/>
  3457. <value ref="cd"/>
  3458. </itemset>
  3459. </choices>
  3460. </col>
  3461. -->
  3462. <col ref="insucd" type="combo">
  3463. <choices>
  3464. <itemset nodeset="/root/init/insucd">
  3465. <label ref="nm"/>
  3466. <value ref="cd"/>
  3467. </itemset>
  3468. </choices>
  3469. </col>
  3470. <script type="javascript" ev:event="xforms-value-changed">
  3471. <![CDATA[
  3472. if (model.getvalue("/root/main/otptgrd/otptinfo[" + grd_otpt.row + "]/state") != "I"){
  3473. grd_otpt.addStatus(grd_otpt.row, "update");
  3474. grd_otpt.cellStyle("background-image", grd_otpt.row, 1) = "../../../com/commonweb/images/icon_u.gif";
  3475. model.setvalue("/root/main/otptgrd/otptinfo[" + grd_otpt.row + "]/state", "U");
  3476. }
  3477. model.refresh();
  3478. ]]>
  3479. </script>
  3480. </datagrid>
  3481. <button id="button11" class="btn5_letter2" style="left:1127px; top:5px; width:42px; height:19px; ">
  3482. <caption>저장</caption>
  3483. <script type="javascript" ev:event="DOMActivate">
  3484. <![CDATA[
  3485. model.resetInstanceNode("/root/send/save1");
  3486. var exeCnt = 0;
  3487. for(var i=1; i<=grd_otpt.rows-1; i++){
  3488. var iRowStatus = grd_otpt.rowStatus(i);
  3489. if(iRowStatus > 0){ // 0은 변경없음
  3490. copyNodeType("/root/send/save1", "/root/main/otptgrd/otptinfo[" + i + "]", "replace");
  3491. if(submit("TXPMC02605", false)){
  3492. model.resetInstanceNode("/root/send/save1");
  3493. exeCnt++;
  3494. }
  3495. }
  3496. }
  3497. if(exeCnt > 0){
  3498. grd_otpt.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
  3499. fGetDetInfo();
  3500. model.refresh();
  3501. }
  3502. ]]>
  3503. </script>
  3504. </button>
  3505. <caption id="caption17" class="tit_2" style="left:0px; top:10px; width:95px; height:15px; ">진료이력관리</caption>
  3506. </case>
  3507. </switch>
  3508. <button id="btn_limitamt" class="btn2_letter5" style="left:295px; top:227px; width:75px; height:19px; ">
  3509. <caption>지불한도액</caption>
  3510. <script type="javascript" ev:event="DOMActivate">
  3511. <![CDATA[
  3512. var tPid = model.getValue("/root/main/ptbspatinfo/pid");
  3513. if (tPid == null || tPid == "" || tPid == " ") {
  3514. messageBox("환자번호가", "I004");
  3515. return;
  3516. }
  3517. /*
  3518. * 보조유형 체크하여 지불한도액 입력가능
  3519. * 18-자손/책임/무보험
  3520. * 91-자손/책임/무보험 안전띠미착용20%
  3521. */
  3522. var tSuppkind = model.getValue("/root/main/ptbspatinfo/suppkind");
  3523. if(tSuppkind == "18" || tSuppkind == "91"){
  3524. model.setValue("/root/send/search2/pid" , model.getValue("/root/main/ptbspatinfo/pid")); // 환자번호
  3525. model.setValue("/root/send/search2/instcd" , getUserInfo("posinstcd")); // 기관코드
  3526. model.setValue("/root/send/search2/aprvfromdd" , model.getValue("/root/main/ptbspatinfo/aprvfromdd")); // 승인시작일자
  3527. model.setValue("/root/send/search2/aprvtodd" , model.getValue("/root/main/ptbspatinfo/aprvtodd")); // 승인종료일자
  3528. model.setValue("/root/send/search2/srchdd" , ""); // 조회일자(indd or orddd)
  3529. modal("SPPMC04500" ,"", "10", "10", "SPPMC04500", "/root/send/search2", "/root/send");
  3530. } else {
  3531. model.alert("보조유형이 [자손/책임/무보험]일 때만 조회할 수 있습니다.!!");
  3532. return;
  3533. }
  3534. ]]>
  3535. </script>
  3536. </button>
  3537. <button id="button14" class="btn5_letter6" style="left:1095px; top:28px; width:86px; height:19px; ">
  3538. <caption>참고사항저장</caption>
  3539. <script type="javascript" ev:event="DOMActivate">
  3540. <![CDATA[
  3541. var sPid = model.getValue("/root/main/ptbspatinfo/pid");
  3542. if (isNull(sPid)) {
  3543. messageBox("환자가 조회되지 않았습니다!!", "I");
  3544. return;
  3545. }
  3546. var sRemFact = model.getValue("/root/main/ptbspatinfo/remfact");
  3547. var iByte = fGetOracleByteLength(sRemFact);
  3548. if (iByte > 250) {
  3549. messageBox("참고사항의 길이가 너무 깁니다[현재 : " + iByte +"byte][제한용량 : 250byte, 영문/숫자:250자, 한글:83자]", "I");
  3550. return;
  3551. }
  3552. model.resetInstanceNode("/root/send/data1");
  3553. model.makeValue("/root/send/data1/pid", model.getValue("/root/main/ptbspatinfo/pid"));
  3554. model.makeValue("/root/send/data1/remfact", model.getValue("/root/main/ptbspatinfo/remfact"));
  3555. model.makeValue("/root/send/data1/inpt_instcd", getUserInfo("dutplceinstcd"));
  3556. if (submit("TXPAI02201")) {
  3557. messageBox("저장 완료!", "I");
  3558. }
  3559. model.refresh();
  3560. model.removenode("/root/send/data1");
  3561. model.makeNode("/root/send/data1");
  3562. ]]>
  3563. </script>
  3564. </button>
  3565. <line id="line21" class="line_2" style="x1:10px; y1:97px; x2:911px; y2:97px; "/>
  3566. <caption id="caption43" class="cell_1" style="left:10px; top:299px; width:95px; height:23px; vertical-align:middle; ">담당자명</caption>
  3567. <caption id="caption44" class="cell_1" style="left:10px; top:323px; width:95px; height:23px; vertical-align:middle; ">담당자연락처</caption>
  3568. <button id="button18" class="btn_sw" group="tab" selected="false" style="left:255px; top:405px; width:94px; height:22px; ">
  3569. <caption>진료이력관리</caption>
  3570. <toggle case="case4" ev:event="onclick"/>
  3571. </button>
  3572. <button id="button7" class="btn5_letter6" style="left:295px; top:126px; width:86px; height:19px; ">
  3573. <caption>접수번호수정</caption>
  3574. <script type="javascript" ev:event="DOMActivate">
  3575. <![CDATA[
  3576. var flag = true;
  3577. if (model.getvalue("/root/main/ptbspatinfo/insucdnm") == "") {
  3578. messageBox("보험회사는 필히 선택해주셔야 합니다.", "I000");
  3579. flag = false;
  3580. }
  3581. if (model.getvalue("/root/main/ptbspatinfo/suppkind") == "") {
  3582. messageBox("보조유형은 필히 선택해주셔야 합니다.", "I000");
  3583. flag = false;
  3584. }
  3585. if (model.getvalue("/root/main/ptbspatinfo/mngtno") == "") {
  3586. messageBox("접수번호는 필히 입력해주셔야 합니다.", "I000");
  3587. flag = false;
  3588. }
  3589. if (model.getvalue("/root/main/ptbspatinfo/aprvfromdd") == ""
  3590. || model.getvalue("/root/main/ptbspatinfo/aprvtodd") == "") {
  3591. messageBox("승인기간은 필히 입력해주셔야 합니다.", "I000");
  3592. flag = false;
  3593. }
  3594. //보조유형 체크
  3595. if(!fCheckAutmbInsuLimAmt()){
  3596. flag = false;
  3597. }
  3598. //보험이력 체크 - 보류 20130711
  3599. // if(!fCheckAipm()){
  3600. // flag = false;
  3601. // }
  3602. //종결구분 - 계속(N), 종결(Y)
  3603. if(model.getvalue("/root/main/ptbspatinfo/endflag") == "Y") {
  3604. //종결처리 시 미시행 처방 체크
  3605. if(!fCheckUndoExec()){
  3606. flag = false;
  3607. }
  3608. }
  3609. var mngtno = model.getvalue("/root/main/ptbspatinfo/mngtno");
  3610. var oldmngtno = model.getvalue("/root/main/ptbspatinfo/oldmngtno");
  3611. if(mngtno == oldmngtno){
  3612. messageBox("접수번호가 변경되지 않았습니다.", "I000");
  3613. flag = false;
  3614. }
  3615. if (flag == true){
  3616. model.setvalue("/root/main/ptbspatinfo/mngtno" , mngtno);
  3617. model.setvalue("/root/main/ptbspatinfo/oldmngtno" , oldmngtno);
  3618. copyNodeType("/root/send/save", "/root/main/ptbspatinfo", "replace");
  3619. if(submit("TXPMC02606")){
  3620. btn_search.dispatch("DOMActivate");
  3621. }
  3622. }
  3623. ]]>
  3624. </script>
  3625. </button>
  3626. </case>
  3627. </switch>
  3628. <button id="btn_prescond" class="btn_sw" group="tab" selected="true" style="left:0px; top:5px; width:96px; height:22px; ">
  3629. <caption>자보환자조회</caption>
  3630. <toggle case="aipmlist" ev:event="xforms-activate"/>
  3631. </button>
  3632. <button id="btn_mngt" class="btn_sw" group="tab" selected="false" style="left:95px; top:5px; width:99px; height:22px; ">
  3633. <caption>개인자보관리</caption>
  3634. <toggle case="aipminfo" ev:event="xforms-activate"/>
  3635. </button>
  3636. </group>
  3637. </xhtml:body>
  3638. </xhtml:html>