SMPMC02700_산재환자관리.xrw 184 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304
  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. <primarySearch>
  11. <type/>
  12. <pid/>
  13. <mngtno/>
  14. <suppkind/>
  15. </primarySearch>
  16. <primarySearch1>
  17. <insukind/>
  18. <suppkind/>
  19. <reference/>
  20. <reference1/>
  21. <reference2/>
  22. <inhospflag/>
  23. <renew/>
  24. </primarySearch1>
  25. <insertdata/>
  26. <insertdata1>
  27. <pid/>
  28. <mngtno/>
  29. <mtrtseqno/>
  30. <seqno/>
  31. <histstat/>
  32. <chospresn/>
  33. <chosresndetl/>
  34. <ordflag/>
  35. <orddeptcd/>
  36. <orddrid/>
  37. <specordyn/>
  38. <reqdd/>
  39. <orddd/>
  40. <ordfromdd/>
  41. <ordtodd/>
  42. <aprydd/>
  43. <apryfromdd/>
  44. <aprytodd/>
  45. <aprydayno/>
  46. <aprtinstcd/>
  47. <inducstermrem/>
  48. <nurseflag/>
  49. <inducsbrchcd/>
  50. <endyn/>
  51. </insertdata1>
  52. <instcd/>
  53. <selectinfo>
  54. <pid/>
  55. <mngtno/>
  56. <insukind/>
  57. </selectinfo>
  58. <icswsaveinfo/>
  59. <iapfsaveinfo/>
  60. <icmssaveinfo>
  61. </icmssaveinfo>
  62. <sppiz00400/>
  63. <iaiwsend>
  64. <pid/>
  65. <mngtno/>
  66. <instcd/>
  67. <insukind/>
  68. </iaiwsend>
  69. <srchdiag>
  70. <basedd/>
  71. <diagcd/>
  72. <diagnm/>
  73. <selectedrdodiagkind/>
  74. </srchdiag>
  75. <search1>
  76. <srchcond/>
  77. <pid/>
  78. <hngnm/>
  79. <rrgstno1/>
  80. <rrgstno2/>
  81. <autoflag/>
  82. </search1>
  83. <smpmc03700>
  84. <cond/>
  85. <reference/>
  86. </smpmc03700>
  87. <SMPAI0020>
  88. <ipatflag/>
  89. <pid/>
  90. <indd/>
  91. <dschdd/>
  92. <fromdd/>
  93. <todd/>
  94. <cretno/>
  95. <instcd/>
  96. <mskind/>
  97. <sess_posinstcd/>
  98. </SMPAI0020>
  99. <airasend>
  100. <pid/>
  101. <mngtno/>
  102. <instcd/>
  103. <insukind/>
  104. </airasend>
  105. <newinsertdata1>
  106. <list/>
  107. <info>
  108. <pid/>
  109. <mngtno/>
  110. </info>
  111. </newinsertdata1>
  112. <iaiwreceive>
  113. <pid/>
  114. <mngtno/>
  115. <instcd/>
  116. <insukind/>
  117. </iaiwreceive>
  118. <indcaselist>
  119. <pid/>
  120. <mngtno/>
  121. <acddd/>
  122. <inducsbrchcd/>
  123. <hngnm/>
  124. <rrgstno/>
  125. </indcaselist>
  126. </send>
  127. <main>
  128. <primaryInfo>
  129. <insukind>41</insukind>
  130. <suppkind/>
  131. <reference>0</reference>
  132. <inhospflag>1</inhospflag>
  133. <renew/>
  134. <pid/>
  135. <hngnm/>
  136. <rrgstno/>
  137. <tel/>
  138. <inducsbrchcd/>
  139. <bizplcenm/>
  140. <date1/>
  141. <date2/>
  142. </primaryInfo>
  143. <icpmgrd>
  144. <grdicpminfo>
  145. <pid/>
  146. <hngnm/>
  147. <rrgstno/>
  148. <insukind/>
  149. <suppkind/>
  150. <mngtno/>
  151. <acddd/>
  152. <inducsbrchcd/>
  153. <bizplcergstseqno/>
  154. <ordopendd/>
  155. <ordtodd/>
  156. <chrgnm/>
  157. <endflag/>
  158. <inducsrem/>
  159. <lastupdtdt/>
  160. <lastupdtrid/>
  161. <seqno/>
  162. <histstat/>
  163. <endcnts/>
  164. <bizplceseqno/>
  165. </grdicpminfo>
  166. <ptbs>
  167. <pid/>
  168. <hngnm/>
  169. <rrgstno/>
  170. <hometel/>
  171. <zipcd1/>
  172. <zipcd2/>
  173. <zipcdseq/>
  174. <zipcdaddr/>
  175. <detladdr/>
  176. <mpphontel/>
  177. <sex/>
  178. <age/>
  179. <remfact/>
  180. </ptbs>
  181. </icpmgrd>
  182. <ptbsinfo>
  183. <pid/>
  184. <hngnm/>
  185. <rrgstno/>
  186. <hometel/>
  187. <zipcd1/>
  188. <zipcd2/>
  189. <zipcdseq/>
  190. <zipcdaddr/>
  191. <detladdr/>
  192. <mpphontel/>
  193. <sex/>
  194. <age/>
  195. <remfact/>
  196. </ptbsinfo>
  197. <icpminfo>
  198. <insukind>41</insukind>
  199. <suppkind/>
  200. <mngtno/>
  201. <inducsbrchcd/>
  202. <acddd/>
  203. <bizplcenm/>
  204. <ordopendd/>
  205. <ordtodd/>
  206. <chrgnm/>
  207. <endflag/>
  208. <inducsrem/>
  209. <seqno/>
  210. <pid/>
  211. <endcnts/>
  212. <bizplcergstseqno/>
  213. <bizplceseqno/>
  214. <coordresncd/>
  215. <mngtno_org/>
  216. </icpminfo>
  217. <icmtgrd>
  218. <grdicmtinfo>
  219. <chospresn/>
  220. <chosresndetl/>
  221. <ordflag/>
  222. <orddeptcd/>
  223. <orddrid/>
  224. <specordyn/>
  225. <reqdd/>
  226. <orddd/>
  227. <ordfromdd/>
  228. <ordtodd/>
  229. <aprydd/>
  230. <apryfromdd/>
  231. <aprytodd/>
  232. <aprydayno/>
  233. <aprtinstcd/>
  234. <inducstermrem/>
  235. <nurseflag/>
  236. <lastupdtdt/>
  237. <lastupdtrid/>
  238. <histstat/>
  239. <seqno/>
  240. <mtrtseqno/>
  241. <inducsbrchcd/>
  242. <endyn/>
  243. <orgspecordyn/>
  244. <coordresncd/>
  245. </grdicmtinfo>
  246. </icmtgrd>
  247. <icswgrd>
  248. <grdicswinfo>
  249. <issdd/>
  250. <snwpart/>
  251. <snwcd/>
  252. <detldesc/>
  253. <tootpart/>
  254. <cordtool/>
  255. <orddeptcd/>
  256. <orddrid/>
  257. <appdd/>
  258. <snwflagcd/>
  259. <snwcdcnts/>
  260. <snwapryyn/>
  261. <todd/>
  262. <inducssnwrem/>
  263. <lastupdtrid/>
  264. <lastupdtdt/>
  265. <pid/>
  266. <mngtno/>
  267. <snwseqno/>
  268. <seqno/>
  269. <histstat/>
  270. </grdicswinfo>
  271. </icswgrd>
  272. <iapfgrd>
  273. <grdiapfinfo>
  274. <profflagcd/>
  275. <orddeptcd/>
  276. <issdrid/>
  277. <cnfmdd/>
  278. <cnfmfromdd/>
  279. <cnfmtodd/>
  280. <cnfmdayno/>
  281. <cnfmamt/>
  282. <clamyn/>
  283. <profdocurem/>
  284. <lastupdtdt/>
  285. <lastupdtrid/>
  286. <histstat/>
  287. <pid/>
  288. <mngtno/>
  289. <insukind/>
  290. <profdocuseqno/>
  291. <seqno/>
  292. </grdiapfinfo>
  293. </iapfgrd>
  294. <icmsgrd>
  295. <grdicmsinfo>
  296. <mtrtamtflag/>
  297. <appfromdd/>
  298. <apptodd/>
  299. <appdd/>
  300. <pid/>
  301. <mngtno/>
  302. <seqno/>
  303. <histstat/>
  304. </grdicmsinfo>
  305. </icmsgrd>
  306. <patinfo>
  307. <patinfolist/>
  308. </patinfo>
  309. <newicmtgrd>
  310. <newgrdicmtinfo>
  311. <chospresn/>
  312. <chosresndetl/>
  313. <ordflag/>
  314. <orddeptcd/>
  315. <orddrid/>
  316. <specordyn/>
  317. <mtrtseqno/>
  318. <seqno/>
  319. <orddeptcd2/>
  320. <orddrid2/>
  321. <specordyn2/>
  322. <mtrtseqno2/>
  323. <seqno2/>
  324. <orddeptcd3/>
  325. <orddrid3/>
  326. <specordyn3/>
  327. <mtrtseqno3/>
  328. <seqno3/>
  329. <orddeptcd4/>
  330. <orddrid4/>
  331. <specordyn4/>
  332. <mtrtseqno4/>
  333. <seqno4/>
  334. <orddeptcd5/>
  335. <orddrid5/>
  336. <specordyn5/>
  337. <mtrtseqno5/>
  338. <seqno5/>
  339. <orddeptcd6/>
  340. <orddrid6/>
  341. <specordyn6/>
  342. <mtrtseqno6/>
  343. <seqno6/>
  344. <orddeptcd7/>
  345. <orddrid7/>
  346. <specordyn7/>
  347. <mtrtseqno7/>
  348. <seqno7/>
  349. <orddeptcd8/>
  350. <orddrid8/>
  351. <specordyn8/>
  352. <mtrtseqno8/>
  353. <seqno8/>
  354. <orddeptcd9/>
  355. <orddrid9/>
  356. <specordyn9/>
  357. <mtrtseqno9/>
  358. <seqno9/>
  359. <orddeptcd10/>
  360. <orddrid10/>
  361. <specordyn10/>
  362. <mtrtseqno10/>
  363. <seqno10/>
  364. <reqdd/>
  365. <orddd/>
  366. <ordfromdd/>
  367. <ordtodd/>
  368. <aprydd/>
  369. <apryfromdd/>
  370. <aprytodd/>
  371. <aprydayno/>
  372. <aprtinstcd/>
  373. <inducstermrem/>
  374. <nurseflag/>
  375. <lastupdtdt/>
  376. <lastupdtrid/>
  377. <histstat/>
  378. <orgspecordyn/>
  379. <orgspecordyn2/>
  380. <orgspecordyn3/>
  381. <orgspecordyn4/>
  382. <orgspecordyn5/>
  383. <orgspecordyn6/>
  384. <orgspecordyn7/>
  385. <orgspecordyn8/>
  386. <orgspecordyn9/>
  387. <orgspecordyn10/>
  388. </newgrdicmtinfo>
  389. </newicmtgrd>
  390. <iaiwgrid>
  391. <grdiaiwsearch>
  392. <insukind/>
  393. <insukindnm/>
  394. <workdd/>
  395. <cnstdd/>
  396. <cnstspec/>
  397. <seqno/>
  398. </grdiaiwsearch>
  399. </iaiwgrid>
  400. <popupendflag/>
  401. </main>
  402. <init>
  403. <hidden>
  404. <suppkind>
  405. <up/>
  406. <nm/>
  407. <cd/>
  408. <ios/>
  409. </suppkind>
  410. <chosresn>
  411. <nm/>
  412. <cd/>
  413. </chosresn>
  414. <endcnts>
  415. <nm/>
  416. <cd/>
  417. </endcnts>
  418. <mtrtamtflag>
  419. <nm/>
  420. <cd/>
  421. </mtrtamtflag>
  422. <orddeptcd>
  423. <cd/>
  424. <nm/>
  425. <deptengabbr/>
  426. <io/>
  427. </orddeptcd>
  428. <orddrid>
  429. <cd/>
  430. <nm/>
  431. <dp/>
  432. <sp/>
  433. </orddrid>
  434. <specordyn>
  435. <item>
  436. <cd>Y</cd>
  437. <nm>Y</nm>
  438. </item>
  439. <item>
  440. <cd>N</cd>
  441. <nm>N</nm>
  442. </item>
  443. </specordyn>
  444. <insukind>
  445. <items>
  446. <cd>41</cd>
  447. <nm>산재</nm>
  448. </items>
  449. <items>
  450. <cd>42</cd>
  451. <nm>공상</nm>
  452. </items>
  453. </insukind>
  454. <bizplce>
  455. <nm/>
  456. <cd/>
  457. </bizplce>
  458. <indulist>
  459. <nm/>
  460. <cd/>
  461. </indulist>
  462. <profcd>
  463. <nm/>
  464. <cd/>
  465. </profcd>
  466. <coordresncd>
  467. <nm/>
  468. <cd/>
  469. </coordresncd>
  470. </hidden>
  471. <P0028list>
  472. <P0028>
  473. <cdid/>
  474. <cdnm/>
  475. </P0028>
  476. </P0028list>
  477. </init>
  478. <hidden>
  479. <source>
  480. <srchcond/>
  481. <pid/>
  482. <hngnm/>
  483. <rrgstno1/>
  484. <rrgstno2/>
  485. </source>
  486. <icmsinfo>
  487. <pid/>
  488. <mngtno/>
  489. <mtrtamtflag/>
  490. <appfromdd/>
  491. <seqno/>
  492. <histstat/>
  493. <apptodd/>
  494. <apptodd/>
  495. </icmsinfo>
  496. <popupmenu>
  497. <gridmenu>
  498. <item>
  499. <name>추가</name>
  500. <func>fGridAddRow</func>
  501. </item>
  502. <item>
  503. <name>삽입</name>
  504. <func>fGridInsertRow</func>
  505. </item>
  506. <item>
  507. <name>삭제</name>
  508. <func>fGridDeleteRow</func>
  509. </item>
  510. <item>
  511. <name>엑셀저장</name>
  512. <func>fGridSaveExcel</func>
  513. </item>
  514. </gridmenu>
  515. </popupmenu>
  516. <sppiz00400>
  517. <rslt>
  518. <diagcd/>
  519. <diaghngnm/>
  520. <diagengnm/>
  521. </rslt>
  522. </sppiz00400>
  523. <orddeptcd>
  524. <cd/>
  525. <nm/>
  526. <deptengabbr/>
  527. <io/>
  528. </orddeptcd>
  529. <spclspecrem>
  530. <spclspec/>
  531. <oldspclspec/>
  532. </spclspecrem>
  533. <icmtrowcopy>
  534. <row/>
  535. </icmtrowcopy>
  536. <viewoption/>
  537. <updateresult/>
  538. </hidden>
  539. </root>
  540. </instance>
  541. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  542. <submission id="TRPMC02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/primarySearch1" resultref="/root/main/icpmgrd"/>
  543. <submission id="TRPMC02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/primarySearch" resultref="/root/main/ptbsinfo"/>
  544. <submission id="TXPMC02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/insertdata" resultref="/root/hidden/updateresult"/>
  545. <submission id="TXPMC02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/insertdata" resultref="/root/hidden/updateresult"/>
  546. <submission id="TXPMC02713" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/insertdata" resultref="/root/hidden/updateresult"/>
  547. <submission id="TXPMC02714" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ptbs" resultref="/root/temp/ptbs"/>
  548. <submission id="TRPMC02704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/primarySearch" resultref="/root/main/icmtgrd"/>
  549. <submission id="TXPMC02703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/insertdata1" resultref="/root/hidden/updateresult"/>
  550. <submission id="TRPMC02705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/selectinfo" resultref="/root/main/icswgrd"/>
  551. <submission id="TXPMC02705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/icswsaveinfo" resultref="/root/hidden/updateresult"/>
  552. <submission id="TXPMC02706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/icswsaveinfo" resultref="/root/hidden/updateresult"/>
  553. <submission id="TRPMC02706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/selectinfo" resultref="/root/main/iapfgrd"/>
  554. <submission id="TXPMC02707" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/iapfsaveinfo" resultref="/root/hidden/updateresult"/>
  555. <submission id="TXPMC02708" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/iapfsaveinfo" resultref="/root/hidden/updateresult"/>
  556. <submission id="TRPMC02707" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/selectinfo" resultref="/root/main/icmsgrd/grdicmsinfo"/>
  557. <submission id="TXPMC02709" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/icmssaveinfo" resultref="/root/hidden/updateresult"/>
  558. <submission id="TXPMC02710" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/icmssaveinfo" resultref="/root/hidden/updateresult"/>
  559. <submission id="TRPMC02708" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/instcd" resultref="/root/init/hidden"/>
  560. <submission id="TXPMC02704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/insertdata1"/>
  561. <submission id="TRPMC02709" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/primarySearch" resultref="/root/main/newicmtgrd"/>
  562. <submission id="TRPMC03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/iaiwreceive" resultref="/root/main/iaiwgrid"/>
  563. </model>
  564. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  565. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  566. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  567. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  568. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  569. <script type="javascript">
  570. <![CDATA[
  571. // 메뉴 파라미터를 통한 산재/공상 UI 구분
  572. function fSetScrnInfo() {
  573. var sMenuParam = model.getValue("/root/properties/menu/menuparam");
  574. if (sMenuParam == "41") { // 산재
  575. model.setValue("/root/main/primaryInfo/insukind", sMenuParam);
  576. model.setValue("/root/main/icpminfo/insukind", sMenuParam);
  577. caption6.text = "산재환자관리";
  578. button16.text = "산재지사관리";
  579. caption21.text = "산재관리번호";
  580. caption13.text = "산재지사";
  581. caption17.text = "사업장명";
  582. button22.text = "산재최초신청서";
  583. button24.text = "산재연장신청서";
  584. button6.text = "사업장관리";
  585. button6.attribute("class") = "btn2_letter5";
  586. button16.attribute("class") = "btn2_letter6";
  587. //button6.attribute("left") = "318px";
  588. //button16.attribute("left") = "231px";
  589. button20.visible = true;
  590. button21.visible = true;
  591. input9.attribute("format") ="999-99-99999-9";
  592. grd_icpminfo.caption = "환자번호^성명^주민번호^보험유형^보조유형^병행진료사유^관리번호^사고일자^산재지사^사업장명^진료개시일^진료종료일^외래예약^입원예약^담당자^종결구분^참고사항^수정일자^작업자^일련번호^이력상태^종결사유^bizplceseqno";
  593. grd_icpminfo.colwidth(7) = 73;
  594. grd_pmchicmt.caption = "요양구분^요양구분상세^외래/입원^진료과^의사^선택진료청구여부^결정통지일^승인시작일^승인종료일^종료여부^산재지사^승인요청일자^진료일자^시작일^종료일^일수^승인기관^참고사항^간병인여부^수정일자^작업자^이력상태^일련번호^요양일련번호";
  595. grd_pmchicmt.colwidth(11) = 90;
  596. grd_pmchicmt.colHidden(1) = false;
  597. grd_pmchicmt.colHidden(2) = false;
  598. } else if (sMenuParam == "42") { // 공상
  599. model.setValue("/root/main/primaryInfo/insukind", sMenuParam);
  600. model.setValue("/root/main/icpminfo/insukind", sMenuParam);
  601. caption6.text = "공상환자관리";
  602. button16.text = "공단";
  603. caption21.text = "승인번호";
  604. caption13.text = "공단";
  605. caption17.text = "연금취급기관";
  606. button22.text = "공상최초신청서";
  607. button24.text = "공상연장신청서";
  608. button6.text = "연금취급기관";
  609. button6.attribute("class") = "btn2_letter6";
  610. button16.attribute("class") = "btn2_letter2";
  611. //button6.attribute("left") = "307px";
  612. //button16.attribute("left") = "264px";
  613. button20.visible = false;
  614. button21.visible = false;
  615. input9.attribute("format") ="";
  616. grd_icpminfo.caption = "환자번호^성명^주민번호^보험유형^보조유형^병행진료사유^관리번호^사고일자^공단^연금취급기관^진료개시일^진료종료일^외래예약^입원예약^담당자^종결구분^참고사항^수정일자^작업자^일련번호^이력상태^종결사유^bizplceseqno";
  617. grd_icpminfo.colwidth(8) = 90;
  618. grd_pmchicmt.caption = "요양구분^요양구분상세^외래/입원^진료과^의사^선택진료청구여부^결정통지일^승인시작일^승인종료일^종료여부^공단^승인요청일자^진료일자^시작일^종료일^일수^승인기관^참고사항^간병인여부^수정일자^작업자^이력상태^일련번호^요양일련번호";
  619. //grd_pmchicmt.colwidth(11) = 90;
  620. grd_pmchicmt.colHidden(1) = true;
  621. grd_pmchicmt.colHidden(2) = true;
  622. } else { // 산재 - default
  623. model.setValue("/root/main/primaryInfo/insukind", "41");
  624. model.setValue("/root/main/icpminfo/insukind", "41");
  625. caption6.text = "산재환자관리";
  626. button16.text = "산재지사관리";
  627. caption21.text = "산재관리번호";
  628. caption13.text = "산재지사";
  629. caption17.text = "사업장명";
  630. button22.text = "산재최초신청서";
  631. button24.text = "산재연장신청서";
  632. button6.text = "사업장관리";
  633. button6.attribute("class") = "btn2_letter5";
  634. button16.attribute("class") = "btn2_letter6";
  635. //button6.attribute("left") = "318px";
  636. //button16.attribute("left") = "231px";
  637. button20.visible = true;
  638. button21.visible = true;
  639. input9.attribute("format") ="999-99-99999-9";
  640. grd_icpminfo.caption = "환자번호^성명^주민번호^보험유형^보조유형^병행진료사유^관리번호^사고일자^산재지사^사업장명^진료개시일^진료종료일^외래예약^입원예약^담당자^종결구분^참고사항^수정일자^작업자^일련번호^이력상태^종결사유^bizplceseqno";
  641. grd_icpminfo.colwidth(7) = 73;
  642. grd_pmchicmt.caption = "요양구분^요양구분상세^외래/입원^진료과^의사^선택진료청구여부^결정통지일^승인시작일^승인종료일^종료여부^산재지사^승인요청일자^진료일자^시작일^종료일^일수^승인기관^참고사항^간병인여부^수정일자^작업자^이력상태^일련번호^요양일련번호";
  643. grd_pmchicmt.colwidth(11) = 90;
  644. grd_pmchicmt.colHidden(1) = false;
  645. grd_pmchicmt.colHidden(2) = false;
  646. /*
  647. model.setValue("/root/main/primaryInfo/insukind", "42");
  648. model.setValue("/root/main/icpminfo/insukind", "42");
  649. caption6.text = "공상환자관리";
  650. button16.text = "공단";
  651. caption21.text = "승인번호";
  652. caption13.text = "공단";
  653. caption17.text = "연금취급기관";
  654. button22.text = "공상최초신청서";
  655. button24.text = "공상연장신청서";
  656. button6.text = "연금취급기관";
  657. button6.attribute("class") = "btn2_letter6";
  658. button16.attribute("class") = "btn2_letter2";
  659. button6.attribute("left") = "307px";
  660. button16.attribute("left") = "264px";
  661. button20.visible = false;
  662. button21.visible = false;
  663. input9.attribute("format") ="";
  664. grd_icpminfo.caption = "환자번호^성명^주민번호^보험유형^보조유형^관리번호^사고일자^공단^연금취급기관^진료개시일^진료종료일^외래예약^입원예약^담당자^종결구분^참고사항^수정일자^작업자^일련번호^이력상태^종결사유^bizplceseqno";
  665. grd_icpminfo.colwidth(8) = 90;
  666. grd_pmchicmt.caption = "요양구분^요양구분상세^외래/입원^진료과^의사^선택진료청구여부^승인일자^승인시작일^승인종료일^종료여부^공단^승인요청일자^진료일자^시작일^종료일^일수^승인기관^참고사항^간병인여부^수정일자^작업자^이력상태^일련번호^요양일련번호";
  667. //grd_pmchicmt.colwidth(11) = 90;
  668. grd_pmchicmt.colHidden(1) = true;
  669. grd_pmchicmt.colHidden(2) = true;
  670. */
  671. }
  672. fSuppKindSet();
  673. fSuppKindSet1();
  674. }
  675. function fSetDiagCdNm(){
  676. if (grd_icswinfo.row >= 1){
  677. if (model.getvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/histstat") != "I"){
  678. grd_icswinfo.addstatus(grd_icswinfo.row, "update");
  679. model.setvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/histstat", "U");
  680. }
  681. model.setValue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/snwcd", model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
  682. if (model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm") != "") {
  683. model.setValue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/detldesc",model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  684. } else {
  685. model.setValue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/detldesc",model.getValue("/root/hidden/sppiz00400/rslt/diagengnm"));
  686. }
  687. model.refresh();
  688. }
  689. }
  690. function fOrdDrSet(name)
  691. {
  692. if(name.col == 4 && name == grd_pmchicmt){
  693. var sorddeptcd = name.valueMatrix(name.row, 4);
  694. name.cellComboNodeset(name.row,5) ="/root/init/hidden/orddrid[dp = '" + sorddeptcd + "' ]";
  695. name.refresh();
  696. }
  697. if(name.col == 8 && name == grd_icswinfo){
  698. var sorddeptcd = name.valueMatrix(name.row, 8);
  699. name.cellComboNodeset(name.row,9) ="/root/init/hidden/orddrid[dp = '" + sorddeptcd + "' ]";
  700. name.refresh();
  701. }
  702. if(name.col == 2 && name == grd_iapfinfo){
  703. var sorddeptcd = name.valueMatrix(name.row, 2);
  704. name.cellComboNodeset(name.row,3) ="/root/init/hidden/orddrid[dp = '" + sorddeptcd + "' ]";
  705. name.refresh();
  706. }
  707. }
  708. function fSuppKindSet()
  709. {
  710. var ssuppkindcd = model.getValue("/root/main/icpminfo/insukind");
  711. cbo_suppkind1.choices.itemset.attribute("nodeset") = "/root/init/hidden/suppkind[up = '" + ssuppkindcd + "' ]";
  712. cbo_suppkind1.refresh();
  713. }
  714. function fSuppKindSet1()
  715. {
  716. var ssuppkindcd = model.getValue("/root/main/primaryInfo/insukind");
  717. if (ssuppkindcd != "1") {
  718. cbo_suppkind.choices.itemset.attribute("nodeset") = "/root/init/hidden/suppkind[up = '" + ssuppkindcd + "' ]";
  719. cbo_suppkind.refresh();
  720. }
  721. }
  722. //화면 초기화
  723. function fInitialize(){
  724. model.resetInstanceNode("/root/main/primaryInfo");
  725. model.resetInstanceNode("/root/main/ptbsinfo");
  726. model.resetInstanceNode("/root/main/icpminfo");
  727. model.resetInstanceNode("/root/send/insertdata");
  728. model.removeNodeset("/root/main/icpmgrd/grdicpminfo");
  729. model.removeNodeset("/root/main/icmtgrd/grdicmtinfo");
  730. model.removeNodeset("/root/main/icswgrd/grdicswinfo");
  731. model.removeNodeset("/root/main/iapfgrd/grdiapfinfo");
  732. model.removeNodeset("/root/main/icmsgrd/grdicmsinfo");
  733. model.setValue("/root/main/primaryInfo/insukind",1);
  734. model.setValue("/root/main/primaryInfo/suppkind","");
  735. model.setValue("/root/main/primaryInfo/reference",0);
  736. model.setValue("/root/main/primaryInfo/inhospflag",1);
  737. grp_spclspec.visible = false;
  738. ipt_pid1.visible = false;
  739. ipt_date1.visible = false;
  740. ipt_date2.visible=false;
  741. cmb_inducsbrchcd1.visible = false;
  742. ipt_bizplcenm1.visible = false;
  743. ipt_tel1.visible = false;
  744. ipt_rrgstno1.visible = false;
  745. ipt_hngnm1.visible = false;
  746. caption1.visible= false;
  747. grd_pmchicmt.visible = true;
  748. grd_newpmchicmt.visible = false;
  749. input2.visible= true;
  750. btn_insrow.visible = true;
  751. btn_upicmt.visible= false;
  752. btn_insicmt1.visible = true;
  753. btn_delicmt.visible = true;
  754. btn_insicmt2.visible = true;
  755. btn_excelicmt.visible = true;
  756. btn_saveicmt.visible = true;
  757. button11.visible = false;
  758. button10.visible = false;
  759. button17.visible = false;
  760. button14.visible = false;
  761. button18.visible = false;
  762. button13.visible = false;
  763. //model.setValue("/root/main/primaryInfo/insukind", "41");
  764. //model.setValue("/root/main/icpminfo/insukind", "41");
  765. fSetScrnInfo();
  766. fSuppKindSet();
  767. fSuppKindSet1();
  768. model.setFocus("/root/main/primaryInfo/pid");
  769. model.refresh();
  770. }
  771. function fInitialize1(){
  772. model.resetInstanceNode("/root/main/ptbsinfo");
  773. model.resetInstanceNode("/root/main/icpminfo");
  774. model.resetInstanceNode("/root/send/insertdata");
  775. model.removeNodeset("/root/main/icpmgrd/grdicpminfo");
  776. model.removeNodeset("/root/main/icmtgrd/grdicmtinfo");
  777. model.removeNodeset("/root/main/icswgrd/grdicswinfo");
  778. model.removeNodeset("/root/main/iapfgrd/grdiapfinfo");
  779. model.removeNodeset("/root/main/icmsgrd/grdicmsinfo");
  780. model.resetInstanceNode("/root/send/primarySearch1");
  781. //model.setValue("/root/main/primaryInfo/insukind", "41");
  782. //model.setValue("/root/main/icpminfo/insukind", "41");
  783. fSetScrnInfo();
  784. fSuppKindSet();
  785. fSuppKindSet1();
  786. model.refresh();
  787. }
  788. function fGridAddRow() {
  789. var currentdate = getCurrentDate();
  790. grd_pmchicmt.addRow(grd_pmchicmt.row, true);
  791. grd_pmchicmt.cellStyle("background-image", grd_pmchicmt.row, 1) = "../../../com/commonweb/images/icon_i.gif";
  792. model.setvalue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/histstat", "I");
  793. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/orddd",currentdate)
  794. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/ordfromdd",currentdate)
  795. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/reqdd",currentdate)
  796. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/aprydd",currentdate)
  797. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/apryfromdd",currentdate)
  798. grd_pmchicmt.refresh();
  799. }
  800. function fGridInsertRow() {
  801. if(grd_aimtSearch.row != -1) {
  802. var currentdate = getCurrentDate();
  803. grd_pmchicmt.insertRow(grd_pmchicmt.row, true);
  804. grd_pmchicmt.cellStyle("background-image", grd_pmchicmt.row, 1) = "../../../com/commonweb/images/icon_i.gif";
  805. model.setvalue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/histstat", "I");
  806. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/orddd",currentdate)
  807. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/ordfromdd",currentdate)
  808. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/reqdd",currentdate)
  809. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/aprydd",currentdate)
  810. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/apryfromdd",currentdate)
  811. grd_pmchicmt.refresh();
  812. }
  813. }
  814. function fGridDeleteRow() {
  815. grd_pmchicmt.addStatus(grd_pmchicmt.row, "delete");
  816. grd_pmchicmt.cellStyle("background-image", grd_pmchicmt.row, 1) = "../../../com/commonweb/images/icon_d.gif";
  817. }
  818. function fMakePtbsNode() {
  819. model.makeNode("/root/main/ptbsinfo/pid");
  820. model.makeNode("/root/main/ptbsinfo/hngnm");
  821. model.makeNode("/root/main/ptbsinfo/rrgstno");
  822. }
  823. function fbutton10_up(){
  824. grd_pmchicmt.attribute("height") = 129;
  825. grd_newpmchicmt.attribute("height") = 129;
  826. }
  827. function fbutton10_down(){
  828. grd_pmchicmt.attribute("height") = 329;
  829. grd_newpmchicmt.attribute("height") = 329;
  830. }
  831. function fbutton10_change(){
  832. if(grd_pmchicmt.visible == true){
  833. grd_pmchicmt.visible= false;
  834. grd_newpmchicmt.visible= true;
  835. input2.visible= false;
  836. btn_insrow.visible = false;
  837. btn_upicmt.visible= false;
  838. btn_insicmt1.visible = false;
  839. btn_delicmt.visible = false;
  840. btn_insicmt2.visible = false;
  841. btn_excelicmt.visible = false;
  842. btn_saveicmt.visible = false;
  843. button11.visible = false;
  844. button10.visible = false;
  845. button17.visible = false;
  846. button14.visible = false;
  847. button18.visible = false;
  848. button13.visible = false;
  849. }else{
  850. grd_pmchicmt.visible= true;
  851. grd_newpmchicmt.visible= false;
  852. input2.visible= true;
  853. btn_insrow.visible = true;
  854. btn_upicmt.visible= false;
  855. btn_insicmt1.visible = true;
  856. btn_delicmt.visible = true;
  857. btn_insicmt2.visible = true;
  858. btn_excelicmt.visible = true;
  859. btn_saveicmt.visible = true;
  860. button11.visible = false;
  861. button10.visible = false;
  862. button17.visible = false;
  863. button14.visible = false;
  864. button18.visible = false;
  865. button13.visible = false;
  866. button11.attribute("left") = 869;
  867. button10.attribute("left") = 923;
  868. button17.attribute("left") = 977;
  869. button14.attribute("left") = 1031;
  870. button18.attribute("left") = 1085;
  871. button13.attribute("left") = 1150;
  872. button11.attribute("top") = 378;
  873. button10.attribute("top") = 378;
  874. button17.attribute("top") = 378;
  875. button14.attribute("top") = 378;
  876. button18.attribute("top") = 378;
  877. button13.attribute("top") = 378;
  878. }
  879. }
  880. // 기간이력조회 팝업...
  881. function fbutton10_Search(){
  882. var chospresn = model.getValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/chospresn");
  883. var ordflag = model.getValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/ordflag");
  884. var orddeptcd = model.getValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/orddeptcd");
  885. var orddrid = model.getValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/orddrid");
  886. var aprydd = model.getValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/aprydd");
  887. var apryfromdd = model.getValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/apryfromdd");
  888. var aprytodd = model.getValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/aprytodd");
  889. var pid = model.getValue("/root/main/ptbsinfo/pid");
  890. var hngnm = model.getValue("/root/main/ptbsinfo/hngnm");
  891. var mngtno = model.getValue("/root/main/icpminfo/mngtno");
  892. var inducsbrchcd = model.getValue("/root/main/icpminfo/inducsbrchcd");
  893. model.makeNode("/root/tmp/icmt/search/chospresn");
  894. model.makeNode("/root/tmp/icmt/search/ordflag");
  895. model.makeNode("/root/tmp/icmt/search/orddeptcd");
  896. model.makeNode("/root/tmp/icmt/search/orddrid");
  897. model.makeNode("/root/tmp/icmt/search/aprydd");
  898. model.makeNode("/root/tmp/icmt/search/apryfromdd");
  899. model.makeNode("/root/tmp/icmt/search/aprytodd");
  900. model.makeNode("/root/tmp/icmt/search/pid");
  901. model.makeNode("/root/tmp/icmt/search/hngnm");
  902. model.makeNode("/root/tmp/icmt/search/mngtno");
  903. model.makeNode("/root/tmp/icmt/search/inducsbrchcd");
  904. model.setValue("/root/tmp/icmt/search/chospresn", chospresn);
  905. model.setValue("/root/tmp/icmt/search/ordflag", ordflag);
  906. model.setValue("/root/tmp/icmt/search/orddeptcd", orddeptcd);
  907. model.setValue("/root/tmp/icmt/search/orddrid", orddrid);
  908. model.setValue("/root/tmp/icmt/search/aprydd", aprydd);
  909. model.setValue("/root/tmp/icmt/search/apryfromdd", apryfromdd);
  910. model.setValue("/root/tmp/icmt/search/aprytodd", aprytodd);
  911. model.setValue("/root/tmp/icmt/search/pid", pid);
  912. model.setValue("/root/tmp/icmt/search/hngnm", hngnm);
  913. model.setValue("/root/tmp/icmt/search/mngtno", mngtno);
  914. model.setValue("/root/tmp/icmt/search/inducsbrchcd", inducsbrchcd);
  915. modal("SPPMC02800", "1", "50", "50", "SPPMC02800_산재기간관리이력조회", "/root/tmp/icmt/search", "/root/send");
  916. model.removenode("/root/tmp/icmt/search");
  917. }
  918. // 이력조회 - 개별과거이력조회
  919. function fBeforeIcpminfo(){
  920. var pid = model.getValue("/root/main/icpmgrd/grdicpminfo[" + grd_icpminfo.row + "]/pid");
  921. var mngtno = model.getValue("/root/main/icpmgrd/grdicpminfo[" + grd_icpminfo.row + "]/mngtno");
  922. var acddd = model.getValue("/root/main/icpmgrd/grdicpminfo[" + grd_icpminfo.row + "]/acddd");
  923. var inducsbrchcd = model.getValue("/root/main/icpmgrd/grdicpminfo[" + grd_icpminfo.row + "]/inducsbrchcd");
  924. model.makeNode("/root/tmp/search/pid");
  925. model.makeNode("/root/tmp/search/mngtno");
  926. model.makeNode("/root/tmp/search/acddd");
  927. model.makeNode("/root/tmp/search/inducsbrchcd");
  928. model.setValue("/root/tmp/search/pid", pid);
  929. model.setValue("/root/tmp/search/mngtno", mngtno);
  930. model.setValue("/root/tmp/search/acddd", acddd);
  931. model.setValue("/root/tmp/search/inducsbrchcd", inducsbrchcd);
  932. modal("SPPMC02700", "1", "50", "50", "SPPMC02700_산재개별과거이력조회", "/root/tmp/search", "/root/send/search");
  933. model.removenode("/root/tmp/search");
  934. }
  935. // 2009.09.25 - 기간관리의 유효건, 전체 보기 기능추가
  936. function fViewValidData() {
  937. var sViewOption = model.getValue("/root/hidden/viewoption");
  938. var sCurrentDate = getCurrentDate();
  939. var iCount = getNodesetCount("/root/main/icmtgrd/grdicmtinfo");
  940. if (sViewOption == "Y") { // 전체
  941. for (var idx = 1 ; idx <= iCount ; idx++ ) {
  942. grd_pmchicmt.rowHidden(idx) = false;
  943. }
  944. } else { // 유효건만
  945. for (var idx = 1 ; idx <= iCount ; idx++ ) {
  946. var sCurrentApryTodd = model.getValue("/root/main/icmtgrd/grdicmtinfo[" + idx + "]/aprytodd");
  947. if (sCurrentApryTodd >= sCurrentDate) {
  948. grd_pmchicmt.rowHidden(idx) = false;
  949. } else {
  950. grd_pmchicmt.rowHidden(idx) = true;
  951. }
  952. }
  953. }
  954. grd_pmchicmt.refresh();
  955. }
  956. // 산재환자정보 조회
  957. function fGetPatInfo() {
  958. var pid = model.getValue("/root/main/ptbsinfo/pid");
  959. if(pid == null ||pid == "" ){pid = model.getValue("/root/hidden/pid");}
  960. fInitialize();
  961. model.setValue("/root/main/ptbsinfo/pid", pid);
  962. model.setValue("/root/send/primarySearch1/insukind", model.getValue("/root/main/primaryInfo/insukind"));
  963. model.setValue("/root/send/primarySearch1/suppkind", model.getValue("/root/main/primaryInfo/suppkind"));
  964. model.setValue("/root/send/primarySearch1/reference", "1");
  965. model.setValue("/root/send/primarySearch1/reference1", model.getValue("/root/main/ptbsinfo/pid"));
  966. model.setValue("/root/send/primarySearch1/reference2", "");
  967. // 산재등록 마스터icpm 조회
  968. submit("TRPMC02701");
  969. //추가
  970. copyNodeType("/root/main/ptbsinfo","/root/main/icpmgrd/ptbs","replace");
  971. if (grd_icpminfo.rows >= 2) {
  972. model.setvalue("/root/main/icpminfo/insukind",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/insukind"));
  973. model.setvalue("/root/main/icpminfo/suppkind",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/suppkind"));
  974. model.setvalue("/root/main/icpminfo/mngtno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/mngtno"));
  975. model.setvalue("/root/main/icpminfo/mngtno_org",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/mngtno_org"));
  976. model.setvalue("/root/main/icpminfo/inducsbrchcd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/inducsbrchcd"));
  977. model.setvalue("/root/main/icpminfo/acddd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/acddd"));
  978. model.setvalue("/root/main/icpminfo/bizplcenm",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/bizplcenm"));
  979. model.setvalue("/root/main/icpminfo/ordopendd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/ordopendd"));
  980. model.setvalue("/root/main/icpminfo/bizplcergstseqno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/bizplcergstseqno"));
  981. model.setvalue("/root/main/icpminfo/ordtodd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/ordtodd"));
  982. model.setvalue("/root/main/icpminfo/chrgnm",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/chrgnm"));
  983. model.setvalue("/root/main/icpminfo/endflag",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/endflag"));
  984. combo7.dispatch("xforms-value-changed");
  985. model.setvalue("/root/main/icpminfo/inducsrem",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/inducsrem"));
  986. model.setvalue("/root/main/icpminfo/seqno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/seqno"));
  987. model.setvalue("/root/main/icpminfo/pid",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/pid"));
  988. model.setvalue("/root/main/icpminfo/endcnts",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/endcnts"));
  989. model.setvalue("/root/main/icpminfo/bizplceseqno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/bizplceseqno"));
  990. model.setvalue("/root/main/icpminfo/coordresncd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/coordresncd"));
  991. model.setvalue("/root/send/primarySearch/type", "1");
  992. model.setvalue("/root/send/primarySearch/pid", model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/pid"));
  993. model.setvalue("/root/send/primarySearch/mngtno", model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/mngtno"));
  994. // 환자인적정보조회
  995. submit("TRPMC02702");
  996. // 산재환자 기간관리조회
  997. if(submit("TRPMC02704")){
  998. for(var i =1; i<=grd_pmchicmt.rows; i++){
  999. var sorddeptcd = grd_pmchicmt.valueMatrix(i, 4);
  1000. grd_pmchicmt.cellComboNodeset(i,5) ="/root/init/hidden/orddrid[dp = '" + sorddeptcd + "' ]";
  1001. }
  1002. }
  1003. // 산재환자 기간 그룹별조회
  1004. //submit("TRPMC02709");
  1005. model.setvalue("/root/send/selectinfo/pid",model.getvalue("/root/main/icpminfo/pid"));
  1006. model.setvalue("/root/send/selectinfo/mngtno",model.getvalue("/root/main/icpminfo/mngtno"));
  1007. model.setvalue("/root/send/selectinfo/insukind",model.getvalue("/root/main/icpminfo/insukind"));
  1008. // 산재환자 상병조회
  1009. submit("TRPMC02705");
  1010. // 산재환자 증명서조회
  1011. submit("TRPMC02706");
  1012. // 휴업급여요양비조회
  1013. submit("TRPMC02707");
  1014. // 2009.09.25 - 전체/유효건 보기
  1015. fViewValidData();
  1016. } else {
  1017. model.setvalue("/root/send/primarySearch/type","1");
  1018. model.setvalue("/root/send/primarySearch/pid", pid);
  1019. // 환자인적정보조회
  1020. submit("TRPMC02702");
  1021. var iCount = getNodesetCount("/root/main/ptbsinfo");
  1022. if (iCount == 0) {
  1023. fMakePtbsNode();
  1024. }
  1025. }
  1026. /* ---------------------------------------------------------------------------------------------------------- */
  1027. if (model.getValue("/root/main/ptbsinfo/pid") != "" ) {
  1028. model.setvalue("/root/send/iaiwreceive/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  1029. model.setvalue("/root/send/iaiwreceive/mngtno", model.getvalue("/root/main/icpminfo/mngtno"));
  1030. model.setvalue("/root/send/iaiwreceive/instcd", getUserInfo("dutplceinstcd"));
  1031. model.setvalue("/root/send/iaiwreceive/insukind", "41");
  1032. }
  1033. // 재원환자 팝업처리
  1034. if (model.getvalue("/root/main/ptbsinfo/inhospyn") == "Y") {
  1035. messageBox("현재 재원중입니다.", "I000");
  1036. }
  1037. // 면담조회(면담여부확인하여버튼색변경)
  1038. submit("TRPMC03501");
  1039. var iCount = getNodesetCount("/root/main/iaiwgrid/grdiaiwsearch");
  1040. if(iCount > 0){
  1041. button3.attribute("color") = "#ff0000";
  1042. }else{
  1043. button3.attribute("color") = "#184d8b";
  1044. }
  1045. /* ---------------------------------------------------------------------------------------------------------- */
  1046. model.refresh();
  1047. }
  1048. ]]>
  1049. </script>
  1050. <script type="javascript" ev:event="xforms-ready">
  1051. <![CDATA[
  1052. // 2009.07.20 - 메뉴파라미터에 따른 화면설정 - 산재/공상
  1053. //fSetScrnInfo();
  1054. //강남 요구사항
  1055. //기간관리.간병인여부 - 'N' , 상병관리.척추기구 - 'N' , 상병관리.상병구분 - 'D(의사상병)' 모두 hidden 기본값은 xml변경
  1056. zbcfGetCodeList(new Array("P0028"),new Array("/root/init/P0028list"));
  1057. fInitialize();
  1058. submit("TRPMC02708");
  1059. copyNodesetType("/root/hidden/orddeptcd", "/root/init/hidden/orddeptcd", "replace");
  1060. //2007-10-16 이동식 추가 - 다른화면에서 호출시 자동환자정보조회
  1061. if (checkOpener()){ //팝업화면으로 사용될 때
  1062. //RSRVFLAG, ETCORDFLAG 를 받아온다.
  1063. var pid = opener.javascript.getParameter("SMPMC02700_pid");
  1064. opener.javascript.clearParameter("SMPMC02700_pid");
  1065. // var array_parm = SMPMO00200_PARM.split("▦");
  1066. // var rsrvflag = array_parm[0];
  1067. // var etcordflag = array_parm[1];
  1068. cmb_reference.value = '1';
  1069. cmb_reference.dispatch("xforms-select");
  1070. model.setValue("/root/main/primaryInfo/pid", pid);
  1071. btn_search.dispatch("DOMActivate");
  1072. }
  1073. //END..
  1074. ]]>
  1075. </script>
  1076. </xhtml:head>
  1077. <xhtml:body guideline="1,1197;1,1199;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1078. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  1079. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:98px; height:14px; ">산재환자관리</caption>
  1080. </group>
  1081. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  1082. <line id="line5" class="line_1" style="x1:0px; y1:398px; x2:1194px; y2:398px; "/>
  1083. <caption id="caption8" class="tit_2" style="left:6px; top:383px; width:111px; height:13px; ">기간관리</caption>
  1084. <datagrid id="grd_icpminfo" nodeset="/root/main/icpmgrd/grdicpminfo" caption="환자번호^성명^주민번호^보험유형^보조유형^병행진료사유^관리번호^사고일자^산재지사^사업장명^진료개시일^진료종료일^외래예약^입원예약^담당자^종결구분^참고사항^수정일자^작업자^일련번호^caption1^caption2^caption3^caption4^이력상태^종결사유^bizplceseqno" colsep="^" colwidth="67, 75, 103, 59, 97, 154, 100, 78, 73, 76, 74, 83, 133, 133, 82, 100, 272, 130, 79, 100, 100, 100, 100, 100" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:485px; top:152px; width:709px; height:202px; color:transparent; background-color:transparent; ">
  1085. <col disabled="true" ref="pid" style="text-align:center; "/>
  1086. <col disabled="true" ref="hngnm" style="text-align:center; "/>
  1087. <col disabled="true" ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
  1088. <col disabled="true" ref="insukind" type="combo" style="text-align:center; ">
  1089. <choices>
  1090. <item>
  1091. <label>산재</label>
  1092. <value>41</value>
  1093. </item>
  1094. <item>
  1095. <label>공상</label>
  1096. <value>42</value>
  1097. </item>
  1098. </choices>
  1099. </col>
  1100. <col disabled="true" ref="suppkind" type="combo">
  1101. <choices>
  1102. <itemset nodeset="/root/init/hidden/suppkind">
  1103. <label ref="nm"/>
  1104. <value ref="cd"/>
  1105. </itemset>
  1106. </choices>
  1107. </col>
  1108. <col disabled="true" ref="coordresncd" type="combo">
  1109. <choices>
  1110. <itemset nodeset="/root/init/hidden/coordresncd">
  1111. <label ref="nm"/>
  1112. <value ref="cd"/>
  1113. </itemset>
  1114. </choices>
  1115. </col>
  1116. <col disabled="true" ref="mngtno" format="999-99-99999-9"/>
  1117. <col disabled="true" ref="acddd" format="yyyy-mm-dd" style="text-align:center; "/>
  1118. <col disabled="true" ref="inducsbrchcd" type="combo">
  1119. <choices>
  1120. <itemset nodeset="/root/init/hidden/indulist">
  1121. <label ref="nm"/>
  1122. <value ref="cd"/>
  1123. </itemset>
  1124. </choices>
  1125. </col>
  1126. <col disabled="true" ref="bizplcergstseqno" type="combo">
  1127. <choices>
  1128. <itemset nodeset="/root/init/hidden/bizplce">
  1129. <label ref="nm"/>
  1130. <value ref="cd"/>
  1131. </itemset>
  1132. </choices>
  1133. </col>
  1134. <col disabled="true" ref="ordopendd" format="yyyy-mm-dd" style="text-align:center; "/>
  1135. <col disabled="true" ref="ordtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  1136. <col disabled="true" ref="outorddd"/>
  1137. <col disabled="true" ref="inadrvdd"/>
  1138. <col disabled="true" ref="chrgnm" style="text-align:center; "/>
  1139. <col disabled="true" ref="endflag" style="text-align:center; "/>
  1140. <col disabled="true" ref="inducsrem"/>
  1141. <col disabled="true" ref="lastupdtdt" format="yyyy-mm-dd hh:mm:ss"/>
  1142. <col disabled="true" ref="lastupdtrid"/>
  1143. <col disabled="true" ref="seqno"/>
  1144. <col disabled="true" ref="histstat" visibility="hidden"/>
  1145. <col disabled="true" ref="endcnts" visibility="hidden"/>
  1146. <col ref="bizplceseqno" visibility="hidden"/>
  1147. <col ref="mngtno_org" visibility="hidden"/>
  1148. <script type="javascript" ev:event="ondblclick">
  1149. <![CDATA[
  1150. if( isDataCell() ){
  1151. var row = grd_icpminfo.row;
  1152. if ( grd_icpminfo.isCell(event.target) && row >= grd_icpminfo.fixedrows){
  1153. model.setvalue("/root/main/icpminfo/insukind",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/insukind"));
  1154. model.setvalue("/root/main/icpminfo/suppkind",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/suppkind"));
  1155. model.setvalue("/root/main/icpminfo/mngtno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/mngtno"));
  1156. model.setvalue("/root/main/icpminfo/mngtno_org",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/mngtno_org"));
  1157. model.setvalue("/root/main/icpminfo/inducsbrchcd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/inducsbrchcd"));
  1158. model.setvalue("/root/main/icpminfo/acddd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/acddd"));
  1159. model.setvalue("/root/main/icpminfo/bizplcenm",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/bizplcenm"));
  1160. model.setvalue("/root/main/icpminfo/ordopendd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/ordopendd"));
  1161. model.setvalue("/root/main/icpminfo/ordtodd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/ordtodd"));
  1162. model.setvalue("/root/main/icpminfo/chrgnm",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/chrgnm"));
  1163. model.setvalue("/root/main/icpminfo/endflag",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/endflag"));
  1164. combo7.dispatch("xforms-value-changed");
  1165. model.setvalue("/root/main/icpminfo/inducsrem",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/inducsrem"));
  1166. model.setvalue("/root/main/icpminfo/seqno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/seqno"));
  1167. model.setvalue("/root/main/icpminfo/pid",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/pid"));
  1168. model.setvalue("/root/main/icpminfo/endcnts",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/endcnts"));
  1169. model.setvalue("/root/main/icpminfo/bizplcergstseqno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/bizplcergstseqno"));
  1170. model.setvalue("/root/main/icpminfo/bizplceseqno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/bizplceseqno"));
  1171. model.setvalue("/root/main/icpminfo/coordresncd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/coordresncd"));
  1172. // copyNodeType("/root/send/primarySearch", "/root/main/primaryInfo", "replace");
  1173. model.setvalue("/root/send/primarySearch/type", "1");
  1174. model.setvalue("/root/send/primarySearch/pid", model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/pid"));
  1175. model.setvalue("/root/send/primarySearch/mngtno", model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/mngtno"));
  1176. model.setvalue("/root/send/primarySearch/suppkind",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + row + "]/suppkind"));
  1177. // 환자인적정보조회
  1178. submit("TRPMC02702");
  1179. // 산재환자 기간관리조회
  1180. if(submit("TRPMC02704")){
  1181. for(var i =1; i<=grd_pmchicmt.rows; i++){
  1182. var sorddeptcd = grd_pmchicmt.valueMatrix(i, 4);
  1183. grd_pmchicmt.cellComboNodeset(i,5) ="/root/init/hidden/orddrid[dp = '" + sorddeptcd + "' ]";
  1184. }
  1185. }
  1186. // 산재환자 기간 그룹별조회
  1187. //submit("TRPMC02709");
  1188. // model.setvalue("/root/send/icswselectinfo/pid",model.getvalue("/root/main/icpminfo/pid"));
  1189. // model.setvalue("/root/send/icswselectinfo/mngtno",model.getvalue("/root/main/icpminfo/mngtno"));
  1190. model.setvalue("/root/send/selectinfo/pid",model.getvalue("/root/main/icpminfo/pid"));
  1191. model.setvalue("/root/send/selectinfo/mngtno",model.getvalue("/root/main/icpminfo/mngtno"));
  1192. model.setvalue("/root/send/selectinfo/insukind",model.getvalue("/root/main/icpminfo/insukind"));
  1193. // 산재환자 상병조회
  1194. submit("TRPMC02705");
  1195. // 산재환자 증명서조회
  1196. submit("TRPMC02706");
  1197. // 휴업급여요양비조회
  1198. submit("TRPMC02707");
  1199. /* ---------------------------------------------------------------------------------------------------------- */
  1200. if (model.getValue("/root/main/ptbsinfo/pid") != "" ) {
  1201. model.setvalue("/root/send/iaiwreceive/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  1202. model.setvalue("/root/send/iaiwreceive/mngtno", model.getvalue("/root/main/icpminfo/mngtno"));
  1203. model.setvalue("/root/send/iaiwreceive/instcd", getUserInfo("dutplceinstcd"));
  1204. model.setvalue("/root/send/iaiwreceive/insukind", "41");
  1205. }
  1206. // 면담조회(면담여부확인하여버튼색변경)
  1207. submit("TRPMC03501");
  1208. var iCount = getNodesetCount("/root/main/iaiwgrid/grdiaiwsearch");
  1209. if(iCount > 0){
  1210. button3.attribute("color") = "#ff0000";
  1211. }else{
  1212. button3.attribute("color") = "#184d8b";
  1213. }
  1214. /* ---------------------------------------------------------------------------------------------------------- */
  1215. // 유효건/전체 보기 - 2009.09.25
  1216. fViewValidData();
  1217. }
  1218. }
  1219. ]]>
  1220. </script>
  1221. <script type="javascript" ev:event="onaftersort">
  1222. <![CDATA[
  1223. //sorting 시 인스턴스 구조를 재구성
  1224. grd_icpminfo.gridToInstance();
  1225. ]]>
  1226. </script>
  1227. </datagrid>
  1228. <button id="btn_insicmt1" class="btn2_letter3" style="left:923px; top:378px; width:53px; height:19px; ">
  1229. <caption>행추가</caption>
  1230. <script type="javascript" ev:event="onclick">
  1231. <![CDATA[
  1232. var currentdate = getCurrentDate();
  1233. grd_pmchicmt.addRow(grd_pmchicmt.row, true);
  1234. model.setvalue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/histstat", "I");
  1235. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/chospresn","01"); // 진찰의뢰 기본으로 셋팅 2009.06.03 JHP 수정추가, - 2009.06.22 다시제외 - 2009.07.01 다시 최초기본셋팅
  1236. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/orddd",currentdate);
  1237. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/ordfromdd",currentdate);
  1238. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/aprytodd",'99991231');
  1239. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/reqdd",currentdate);
  1240. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/specordyn", "N"); // 선택으로 기본 셋팅 2009.06.03 JHP 수정추가, - 2009.06.22 다시제외 - 2009.07.01 다시 N기본셋팅
  1241. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/endyn", "N");
  1242. ]]>
  1243. </script>
  1244. </button>
  1245. <button id="btn_delicmt" class="btn2_letter3" style="left:977px; top:378px; width:53px; height:19px; ">
  1246. <caption>행삭제</caption>
  1247. <script type="javascript" ev:event="onclick">
  1248. <![CDATA[
  1249. if(grd_pmchicmt.row >= 0 ){
  1250. var rstatus = grd_pmchicmt.rowStatus(grd_pmchicmt.row);
  1251. if ( rstatus == "1" || rstatus == "3") {
  1252. grd_pmchicmt.deleteRow(grd_pmchicmt.row);
  1253. } else {
  1254. if (model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/chospresn") != ""){
  1255. grd_pmchicmt.addstatus(grd_pmchicmt.row, "delete");
  1256. model.setvalue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/histstat", "D");
  1257. } else {
  1258. grd_pmchicmt.removeRow(false);
  1259. }
  1260. }
  1261. }
  1262. ]]>
  1263. </script>
  1264. </button>
  1265. <button id="btn_insicmt2" class="btn2_letter3" style="left:1031px; top:378px; width:53px; height:19px; ">
  1266. <caption>행삽입</caption>
  1267. <script type="javascript" ev:event="onclick">
  1268. <![CDATA[
  1269. if(grd_pmchicmt.row >= 0 ){
  1270. var currentdate = getCurrentDate();
  1271. //grd_pmchicmt.addRow(grd_pmchicmt.row, true);
  1272. grd_pmchicmt.insertRow(grd_pmchicmt.row, "above", true, false);
  1273. //grd_pmchicmt.cellStyle("background-image", grd_pmchicmt.row, 1) = "../../../com/commonweb/images/icon_i.gif";
  1274. model.setvalue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/histstat", "I");
  1275. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/chospresn","01"); // 진찰의뢰 기본으로 셋팅 2009.06.03 JHP 수정추가, - 2009.06.22 다시제외 -- 2009.07.01 최초기본셋팅
  1276. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/orddd",currentdate);
  1277. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/ordfromdd",currentdate);
  1278. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/reqdd",currentdate);
  1279. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/specordyn", "N"); // 선택 기본으로 셋팅 2009.06.03 JHP 수정추가, - 2009.06.22 다시제외 -- 2009.07.01 'N' 기본셋팅
  1280. }
  1281. ]]>
  1282. </script>
  1283. </button>
  1284. <input id="input7" ref="/root/main/ptbsinfo/hometel" class="input_default" disabled="true" editable="false" style="left:480px; top:76px; width:109px; height:19px; "/>
  1285. <caption id="caption3" class="tit_2" style="left:6px; top:55px; width:78px; height:13px; ">인적사항</caption>
  1286. <input id="input13" ref="/root/main/ptbsinfo/mpphontel" class="input_default" disabled="true" editable="false" style="left:480px; top:100px; width:109px; height:19px; "/>
  1287. <caption id="caption5" class="cell_1" style="left:392px; top:99px; width:85px; height:23px; vertical-align:middle; ">휴대폰</caption>
  1288. <caption id="caption23" class="cell_1" style="left:392px; top:75px; width:85px; height:23px; vertical-align:middle; ">연락처</caption>
  1289. <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  1290. <line id="line4" class="line_2" style="x1:1px; y1:174px; x2:479px; y2:174px; "/>
  1291. <line id="line31" class="line_2" style="x1:0px; y1:97px; x2:952px; y2:97px; "/>
  1292. <caption id="caption20" class="tit_2" style="left:489px; top:132px; width:144px; height:13px; ">이력조회</caption>
  1293. <line id="line11" class="line_1" style="x1:484px; y1:147px; x2:1194px; y2:147px; "/>
  1294. <caption id="caption21" class="cell_1" style="left:0px; top:177px; width:95px; height:23px; vertical-align:middle; ">산재관리번호</caption>
  1295. <caption id="caption12" class="cell_1" style="left:0px; top:152px; width:95px; height:23px; vertical-align:middle; ">보험유형</caption>
  1296. <caption id="caption26" class="cell_1" style="left:0px; top:203px; width:95px; height:23px; vertical-align:middle; ">재해발생일</caption>
  1297. <caption id="caption27" class="cell_1" style="left:204px; top:151px; width:93px; height:23px; vertical-align:middle; ">보조유형</caption>
  1298. <input id="input25" ref="/root/main/ptbsinfo/sex" class="input_default" disabled="true" editable="false" style="left:273px; top:100px; width:56px; height:19px; "/>
  1299. <input id="input26" ref="/root/main/ptbsinfo/rrgstno" class="input_s_essential" maxlength="14" format="999999-9999999" style="left:273px; top:76px; width:116px; height:19px; ">
  1300. <script type="javascript" ev:event="onkeypress">
  1301. <![CDATA[
  1302. if(event.keyCode == "13") {
  1303. setInputNodeCurText();
  1304. var rrgstno = model.getValue("/root/main/ptbsinfo/rrgstno");
  1305. fInitialize();
  1306. model.setValue("/root/main/ptbsinfo/rrgstno", rrgstno);
  1307. model.setValue("/root/send/primarySearch1/insukind", model.getValue("/root/main/primaryInfo/insukind"));
  1308. model.setValue("/root/send/primarySearch1/suppkind", model.getValue("/root/main/primaryInfo/suppkind"));
  1309. model.setValue("/root/send/primarySearch1/reference", "3");
  1310. model.setValue("/root/send/primarySearch1/reference1", model.getValue("/root/main/ptbsinfo/rrgstno"));
  1311. model.setValue("/root/send/primarySearch1/reference2", "");
  1312. // 산재등록 마스터icpm 조회
  1313. submit("TRPMC02701");
  1314. if (grd_icpminfo.rows >= 2) {
  1315. model.setvalue("/root/main/icpminfo/insukind",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/insukind"));
  1316. model.setvalue("/root/main/icpminfo/suppkind",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/suppkind"));
  1317. model.setvalue("/root/main/icpminfo/mngtno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/mngtno"));
  1318. model.setvalue("/root/main/icpminfo/mngtno_org",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/mngtno_org"));
  1319. model.setvalue("/root/main/icpminfo/inducsbrchcd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/inducsbrchcd"));
  1320. model.setvalue("/root/main/icpminfo/acddd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/acddd"));
  1321. model.setvalue("/root/main/icpminfo/bizplcenm",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/bizplcenm"));
  1322. model.setvalue("/root/main/icpminfo/ordopendd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/ordopendd"));
  1323. model.setvalue("/root/main/icpminfo/ordtodd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/ordtodd"));
  1324. model.setvalue("/root/main/icpminfo/chrgnm",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/chrgnm"));
  1325. model.setvalue("/root/main/icpminfo/endflag",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/endflag"));
  1326. combo7.dispatch("xforms-value-changed");
  1327. model.setvalue("/root/main/icpminfo/inducsrem",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/inducsrem"));
  1328. model.setvalue("/root/main/icpminfo/seqno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/seqno"));
  1329. model.setvalue("/root/main/icpminfo/pid",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/pid"));
  1330. model.setvalue("/root/main/icpminfo/endcnts",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/endcnts"));
  1331. model.setvalue("/root/main/icpminfo/coordresncd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/coordresncd"));
  1332. model.setvalue("/root/send/primarySearch/type","1");
  1333. model.setvalue("/root/send/primarySearch/pid",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/pid"));
  1334. // 환자인적정보조회
  1335. submit("TRPMC02702");
  1336. // 산재환자 기간관리조회
  1337. if(submit("TRPMC02704")){
  1338. for(var i =1; i<=grd_pmchicmt.rows; i++){
  1339. var sorddeptcd = grd_pmchicmt.valueMatrix(i, 4);
  1340. grd_pmchicmt.cellComboNodeset(i,5) ="/root/init/hidden/orddrid[dp = '" + sorddeptcd + "' ]";
  1341. }
  1342. }
  1343. // 산재환자 기간 그룹별조회
  1344. //submit("TRPMC02709");
  1345. model.setvalue("/root/send/selectinfo/pid",model.getvalue("/root/main/icpminfo/pid"));
  1346. model.setvalue("/root/send/selectinfo/mngtno",model.getvalue("/root/main/icpminfo/mngtno"));
  1347. model.setvalue("/root/send/selectinfo/insukind",model.getvalue("/root/main/icpminfo/insukind"));
  1348. // 산재환자 상병조회
  1349. submit("TRPMC02705");
  1350. // 산재환자 증명서조회
  1351. submit("TRPMC02706");
  1352. // 휴업급여요양비조회
  1353. submit("TRPMC02707");
  1354. // 2009.09.25 - 전체/유효건 보기
  1355. fViewValidData();
  1356. } else {
  1357. model.setvalue("/root/send/primarySearch/type","3");
  1358. model.setvalue("/root/send/primarySearch/pid", rrgstno);
  1359. // 환자인적정보조회
  1360. submit("TRPMC02702");
  1361. var iCount = getNodesetCount("/root/main/ptbsinfo");
  1362. if (iCount == 0) {
  1363. fMakePtbsNode();
  1364. }
  1365. }
  1366. /* ---------------------------------------------------------------------------------------------------------- */
  1367. if (model.getValue("/root/main/ptbsinfo/pid") != "" ) {
  1368. model.setvalue("/root/send/iaiwreceive/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  1369. model.setvalue("/root/send/iaiwreceive/mngtno", model.getvalue("/root/main/icpminfo/mngtno"));
  1370. model.setvalue("/root/send/iaiwreceive/instcd", getUserInfo("dutplceinstcd"));
  1371. model.setvalue("/root/send/iaiwreceive/insukind", "41");
  1372. }
  1373. // 면담조회(면담여부확인하여버튼색변경)
  1374. submit("TRPMC03501");
  1375. var iCount = getNodesetCount("/root/main/iaiwgrid/grdiaiwsearch");
  1376. if(iCount > 0){
  1377. button3.attribute("color") = "#ff0000";
  1378. }else{
  1379. button3.attribute("color") = "#184d8b";
  1380. }
  1381. /* ---------------------------------------------------------------------------------------------------------- */
  1382. model.refresh();
  1383. }
  1384. ]]>
  1385. </script>
  1386. </input>
  1387. <caption id="caption29" class="cell_1" style="left:0px; top:99px; width:75px; height:23px; text-align:left; vertical-align:middle; ">성명</caption>
  1388. <caption id="caption30" class="cell_1" style="left:197px; top:99px; width:73px; height:23px; vertical-align:middle; ">성별/나이</caption>
  1389. <caption id="caption31" class="cell_1" style="left:0px; top:75px; width:75px; height:23px; text-align:left; vertical-align:middle; ">환자번호</caption>
  1390. <caption id="caption32" class="cell_1" style="left:197px; top:75px; width:73px; height:23px; vertical-align:middle; ">주민번호</caption>
  1391. <input id="input27" ref="/root/main/ptbsinfo/age" class="input_default" disabled="true" editable="false" style="left:331px; top:100px; width:58px; height:19px; "/>
  1392. <input id="input28" ref="/root/main/ptbsinfo/hngnm" class="input_s_essential" imemode="hangul" style="left:78px; top:100px; width:116px; height:19px; ">
  1393. <script type="javascript" ev:event="onkeypress">
  1394. <![CDATA[
  1395. if(event.keyCode == "13") {
  1396. setInputNodeCurText();
  1397. var hngnm = model.getValue("/root/main/ptbsinfo/hngnm");
  1398. fInitialize();
  1399. model.setValue("/root/main/ptbsinfo/hngnm", hngnm);
  1400. model.setValue("/root/send/primarySearch1/insukind", model.getValue("/root/main/primaryInfo/insukind"));
  1401. model.setValue("/root/send/primarySearch1/suppkind", model.getValue("/root/main/primaryInfo/suppkind"));
  1402. model.setValue("/root/send/primarySearch1/reference", "2");
  1403. model.setValue("/root/send/primarySearch1/reference1", model.getValue("/root/main/ptbsinfo/hngnm"));
  1404. model.setValue("/root/send/primarySearch1/reference2", "");
  1405. // 산재등록 마스터icpm 조회
  1406. submit("TRPMC02701");
  1407. if (grd_icpminfo.rows >= 2) {
  1408. model.setvalue("/root/main/icpminfo/insukind",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/insukind"));
  1409. model.setvalue("/root/main/icpminfo/suppkind",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/suppkind"));
  1410. model.setvalue("/root/main/icpminfo/mngtno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/mngtno"));
  1411. model.setvalue("/root/main/icpminfo/mngtno_org",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/mngtno_org"));
  1412. model.setvalue("/root/main/icpminfo/inducsbrchcd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/inducsbrchcd"));
  1413. model.setvalue("/root/main/icpminfo/acddd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/acddd"));
  1414. model.setvalue("/root/main/icpminfo/bizplcenm",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/bizplcenm"));
  1415. model.setvalue("/root/main/icpminfo/ordopendd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/ordopendd"));
  1416. model.setvalue("/root/main/icpminfo/ordtodd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/ordtodd"));
  1417. model.setvalue("/root/main/icpminfo/chrgnm",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/chrgnm"));
  1418. model.setvalue("/root/main/icpminfo/endflag",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/endflag"));
  1419. combo7.dispatch("xforms-value-changed");
  1420. model.setvalue("/root/main/icpminfo/inducsrem",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/inducsrem"));
  1421. model.setvalue("/root/main/icpminfo/seqno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/seqno"));
  1422. model.setvalue("/root/main/icpminfo/pid",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/pid"));
  1423. model.setvalue("/root/main/icpminfo/endcnts",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/endcnts"));
  1424. model.setvalue("/root/main/icpminfo/coordresncd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/coordresncd"));
  1425. model.setvalue("/root/send/primarySearch/type","1");
  1426. model.setvalue("/root/send/primarySearch/pid",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/pid"));
  1427. // 환자인적정보조회
  1428. submit("TRPMC02702");
  1429. // 산재환자 기간관리조회
  1430. if(submit("TRPMC02704")){
  1431. for(var i =1; i<=grd_pmchicmt.rows; i++){
  1432. var sorddeptcd = grd_pmchicmt.valueMatrix(i, 4);
  1433. grd_pmchicmt.cellComboNodeset(i,5) ="/root/init/hidden/orddrid[dp = '" + sorddeptcd + "' ]";
  1434. }
  1435. }
  1436. // 산재환자 기간 그룹별조회
  1437. //submit("TRPMC02709");
  1438. model.setvalue("/root/send/selectinfo/pid",model.getvalue("/root/main/icpminfo/pid"));
  1439. model.setvalue("/root/send/selectinfo/mngtno",model.getvalue("/root/main/icpminfo/mngtno"));
  1440. model.setvalue("/root/send/selectinfo/insukind",model.getvalue("/root/main/icpminfo/insukind"));
  1441. // 산재환자 상병조회
  1442. submit("TRPMC02705");
  1443. // 산재환자 증명서조회
  1444. submit("TRPMC02706");
  1445. // 휴업급여요양비조회
  1446. submit("TRPMC02707");
  1447. // 2009.09.25 - 전체/유효건 보기
  1448. fViewValidData();
  1449. } else {
  1450. model.setvalue("/root/send/primarySearch/type","2");
  1451. model.setvalue("/root/send/primarySearch/pid", hngnm);
  1452. // 환자인적정보조회
  1453. submit("TRPMC02702");
  1454. var iCount = getNodesetCount("/root/main/ptbsinfo");
  1455. if (iCount == 0) {
  1456. fMakePtbsNode();
  1457. }
  1458. }
  1459. /* ---------------------------------------------------------------------------------------------------------- */
  1460. if (model.getValue("/root/main/ptbsinfo/pid") != "" ) {
  1461. model.setvalue("/root/send/iaiwreceive/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  1462. model.setvalue("/root/send/iaiwreceive/mngtno", model.getvalue("/root/main/icpminfo/mngtno"));
  1463. model.setvalue("/root/send/iaiwreceive/instcd", getUserInfo("dutplceinstcd"));
  1464. model.setvalue("/root/send/iaiwreceive/insukind", "41");
  1465. }
  1466. // 면담조회(면담여부확인하여버튼색변경)
  1467. submit("TRPMC03501");
  1468. var iCount = getNodesetCount("/root/main/iaiwgrid/grdiaiwsearch");
  1469. if(iCount > 0){
  1470. button3.attribute("color") = "#ff0000";
  1471. }else{
  1472. button3.attribute("color") = "#184d8b";
  1473. }
  1474. /* ---------------------------------------------------------------------------------------------------------- */
  1475. model.refresh();
  1476. }
  1477. ]]>
  1478. </script>
  1479. </input>
  1480. <input id="ipt_pid" ref="/root/main/ptbsinfo/pid" class="input_s_essential" maxlength="10" style="left:78px; top:76px; width:116px; height:19px; ">
  1481. <script type="javascript" ev:event="onkeypress">
  1482. <![CDATA[
  1483. if(event.keyCode == "13") {
  1484. setInputNodeCurText();
  1485. fGetPatInfo();
  1486. }
  1487. ]]>
  1488. </script>
  1489. </input>
  1490. <input id="input12" ref="/root/main/ptbsinfo/detladdr" class="input_default" disabled="true" editable="false" style="left:680px; top:100px; width:273px; height:19px; "/>
  1491. <line id="line1" class="line_2" style="x1:2px; y1:200px; x2:479px; y2:200px; "/>
  1492. <line id="line12" class="line_3" style="x1:0px; y1:354px; x2:479px; y2:354px; "/>
  1493. <input id="input37" ref="/root/main/icpminfo/acddd" class="input_default" inputtype="date" style="left:97px; top:205px; width:102px; height:19px; "/>
  1494. <input id="input3" ref="/root/main/icpminfo/ordtodd" class="input_default" inputtype="date" style="left:97px; top:256px; width:102px; height:19px; "/>
  1495. <input id="input4" ref="/root/main/icpminfo/ordopendd" class="input_default" inputtype="date" style="left:97px; top:230px; width:102px; height:19px; "/>
  1496. <input id="input9" ref="/root/main/icpminfo/mngtno" class="input_essential" format="999-99-99999-9" maxbyte="30" style="left:97px; top:178px; width:102px; height:19px; "/>
  1497. <caption id="caption7" class="cell_1" style="left:0px; top:305px; width:95px; height:47px; vertical-align:middle; ">참고사항</caption>
  1498. <textarea id="textarea1" ref="/root/main/icpminfo/inducsrem" maxlength="150" style="left:97px; top:307px; width:382px; height:44px; "/>
  1499. <caption id="caption28" class="cell_1" style="left:204px; top:177px; width:93px; height:23px; vertical-align:middle; ">병행진료사유</caption>
  1500. <caption id="caption17" class="cell_1" style="left:204px; top:229px; width:93px; height:23px; vertical-align:middle; ">사업장명</caption>
  1501. <line id="line7" class="line_2" style="x1:1px; y1:226px; x2:478px; y2:226px; "/>
  1502. <line id="line14" class="line_2" style="x1:123px; y1:252px; x2:479px; y2:252px; "/>
  1503. <line id="line8" class="line_3" style="x1:0px; y1:122px; x2:1194px; y2:122px; "/>
  1504. <line id="line16" class="line_1" style="x1:0px; y1:147px; x2:479px; y2:147px; "/>
  1505. <caption id="caption14" class="tit_2" style="left:6px; top:132px; width:144px; height:13px; ">보험사항</caption>
  1506. <input id="input1" ref="/root/main/ptbsinfo/zipcd2" class="input_default" disabled="true" editable="false" style="left:739px; top:76px; width:56px; height:19px; "/>
  1507. <input id="input5" ref="/root/main/ptbsinfo/zipcd1" class="input_default" disabled="true" editable="false" style="left:680px; top:76px; width:56px; height:19px; "/>
  1508. <input id="input6" ref="/root/main/ptbsinfo/zipcdaddr" class="input_default" disabled="true" editable="false" style="left:798px; top:76px; width:155px; height:19px; "/>
  1509. <caption id="caption18" class="cell_1" style="left:592px; top:75px; width:85px; height:23px; vertical-align:middle; ">주소</caption>
  1510. <caption id="caption10" class="cell_1" style="left:592px; top:99px; width:85px; height:23px; vertical-align:middle; ">상세주소</caption>
  1511. <line id="line6" class="line_2" style="x1:1px; y1:277px; x2:479px; y2:277px; "/>
  1512. <input id="input14" ref="/root/main/icpminfo/chrgnm" class="input_default" imemode="hangul" style="left:97px; top:281px; width:102px; height:19px; "/>
  1513. <button id="button3" class="btn2_letter4" style="left:815px; top:127px; width:64px; height:19px; ">
  1514. <caption>면담관리</caption>
  1515. <script type="javascript" ev:event="DOMActivate">
  1516. <![CDATA[
  1517. if (model.getValue("/root/main/ptbsinfo/pid") != "" ) {
  1518. model.setvalue("/root/send/iaiwsend/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  1519. model.setvalue("/root/send/iaiwsend/mngtno", model.getvalue("/root/main/icpminfo/mngtno"));
  1520. model.setvalue("/root/send/iaiwsend/instcd", getUserInfo("dutplceinstcd"));
  1521. model.setvalue("/root/send/iaiwsend/insukind", model.getValue("/root/main/icpminfo/insukind"));
  1522. //model.setvalue("/root/send/iaiwsend/insukind", "41");
  1523. modal("SMPMC03500_산재자보면담내역7", "1", "400", "300", "", "/root/send/iaiwsend", "/root/send/iaiwreceive");
  1524. } else {
  1525. messageBox("이력조회 내역을", "C002");
  1526. }
  1527. ]]>
  1528. </script>
  1529. </button>
  1530. <caption id="caption25" class="cell_1" style="left:0px; top:280px; width:95px; height:23px; vertical-align:middle; ">담당자</caption>
  1531. <select1 id="cbo_insukind1" ref="/root/main/icpminfo/insukind" class="combo_default" disabled="true" appearance="minimal" style="left:97px; top:153px; width:102px; height:19px; ">
  1532. <choices>
  1533. <item>
  1534. <label>산재</label>
  1535. <value>41</value>
  1536. </item>
  1537. <item>
  1538. <label>공상</label>
  1539. <value>42</value>
  1540. </item>
  1541. </choices>
  1542. <script type="javascript" ev:event="xforms-value-changed">
  1543. <![CDATA[
  1544. // model.setValue("/root/properties/menu/menuparam", model.getValue("/root/main/primaryInfo/insukind"));
  1545. fSuppKindSet();
  1546. ]]>
  1547. </script>
  1548. </select1>
  1549. <select1 id="cbo_suppkind1" ref="/root/main/icpminfo/suppkind" class="combo_default" appearance="minimal" style="left:299px; top:153px; width:180px; height:19px; ">
  1550. <choices>
  1551. <itemset nodeset="/root/init/hidden/suppkind">
  1552. <label ref="nm"/>
  1553. <value ref="cd"/>
  1554. </itemset>
  1555. </choices>
  1556. </select1>
  1557. <button id="button16" class="btn2_letter6" style="left:186px; top:127px; width:86px; height:19px; ">
  1558. <caption>산재지사관리</caption>
  1559. <script type="javascript" ev:event="DOMActivate">
  1560. <![CDATA[
  1561. modal("SMPMB00100", "4", "", "", "", "", "/root/send/airasend", "/root/send");
  1562. ]]>
  1563. </script>
  1564. </button>
  1565. <caption id="caption11" class="cell_1" style="left:0px; top:229px; width:95px; height:48px; vertical-align:middle; ">
  1566. <![CDATA[진료
  1567. 개시일/종료일]]>
  1568. </caption>
  1569. <select1 id="cmb_inducsbrchcd" ref="/root/main/icpminfo/coordresncd" class="combo_default" appearance="minimal" editmode="search" itemcount="30" style="left:299px; top:179px; width:180px; height:19px; ">
  1570. <choices>
  1571. <itemset nodeset="/root/init/hidden/coordresncd">
  1572. <label ref="nm"/>
  1573. <value ref="cd"/>
  1574. </itemset>
  1575. </choices>
  1576. </select1>
  1577. <caption id="caption4" class="cell_1" style="left:956px; top:74px; width:86px; height:48px; vertical-align:middle; ">참고사항</caption>
  1578. <textarea id="textarea2" ref="/root/main/ptbsinfo/remfact" scroll="autovscroll" style="left:1045px; top:76px; width:149px; height:43px; padding:2; "/>
  1579. <select1 id="combo7" ref="/root/main/icpminfo/endflag" class="combo_default" appearance="minimal" style="left:299px; top:255px; width:180px; height:19px; ">
  1580. <choices>
  1581. <item>
  1582. <label>계속</label>
  1583. <value>N</value>
  1584. </item>
  1585. <item>
  1586. <label>종결</label>
  1587. <value>Y</value>
  1588. </item>
  1589. </choices>
  1590. <script type="javascript" ev:event="xforms-value-changed">
  1591. <![CDATA[
  1592. // var endflag = model.getValue("/root/main/icpminfo/endflag");
  1593. // if( endflag == 'Y' ){ //종결
  1594. // cbo_endcnts.choices.itemset.attribute("nodeset") = "/root/init/hidden/endcnts[cd.substr(0, 1) = '" + endflag + "' ]";
  1595. // }else if( endflag == 'N' ){ //계속
  1596. // cbo_endcnts.choices.itemset.attribute("nodeset") = "/root/init/hidden/endcnts[cd.substr(0, 1) = '" + endflag + "' ]";
  1597. // }
  1598. // cbo_endcnts.refresh();
  1599. ]]>
  1600. </script>
  1601. </select1>
  1602. <caption id="caption9" class="cell_1" style="left:204px; top:254px; width:93px; height:23px; vertical-align:middle; ">종결구분</caption>
  1603. <line id="line3" class="line_2" style="x1:1px; y1:302px; x2:479px; y2:302px; "/>
  1604. <switch id="switch2" style="left:0px; top:567px; width:1193px; height:172px; ">
  1605. <case id="case1" selected="true">
  1606. <!-- 20091015 JHP 수정내용 변경요청 윤영옥 명칭변경 승인일자 => 결정통지일-->
  1607. <datagrid id="grd_icswinfo" nodeset="/root/main/icswgrd/grdicswinfo" caption="부위^상병코드^상병명^결정통지일^상병승인^종료일자^참고사항^승인신청일^치식^상병내용^척추기구^진료과^의사^상병구분^수정일자^작업자^등록번호^관리번호^상병일련번호^일련번호^이력상태" colsep="^" colwidth="54, 120, 337, 90, 60, 90, 411, 100, 0, 100, 54, 94, 76, 82, 40, 40, 40, 40, 40, 40, 40" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="free" style="left:2px; top:30px; width:1185px; height:135px; ">
  1608. <col autonext="true" ref="snwpart" type="combo">
  1609. <choices>
  1610. <item>
  1611. <label>두부</label>
  1612. <value>1</value>
  1613. </item>
  1614. <item>
  1615. <label>상지</label>
  1616. <value>2</value>
  1617. </item>
  1618. <item>
  1619. <label>체간</label>
  1620. <value>3</value>
  1621. </item>
  1622. <item>
  1623. <label>수족</label>
  1624. <value>4</value>
  1625. </item>
  1626. <item>
  1627. <label>하지</label>
  1628. <value>5</value>
  1629. </item>
  1630. <item>
  1631. <label>전신</label>
  1632. <value>6</value>
  1633. </item>
  1634. <item>
  1635. <label>기타</label>
  1636. <value>7</value>
  1637. </item>
  1638. </choices>
  1639. </col>
  1640. <col imemode="alpha" ref="snwcd" type="input" _chartype="upper"/>
  1641. <col imemode="hangul" ref="detldesc" type="input"/>
  1642. <col autonext="false" ref="appdd" type="inputdate" style="text-align:left; "/>
  1643. <col ref="snwapryyn" type="combo" style="text-align:center; ">
  1644. <choices>
  1645. <item>
  1646. <label>Y</label>
  1647. <value>Y</value>
  1648. </item>
  1649. <item>
  1650. <label>N</label>
  1651. <value>N</value>
  1652. </item>
  1653. </choices>
  1654. </col>
  1655. <col autonext="false" ref="todd" type="inputdate" style="text-align:left; "/>
  1656. <col ref="inducssnwrem" type="input"/>
  1657. <col ref="issdd" type="inputdate" visibility="hidden"/>
  1658. <col ref="tootpart" type="input"/>
  1659. <col ref="snwcdcnts" type="input" visibility="hidden"/>
  1660. <col ref="cordtool" type="combo" visibility="hidden">
  1661. <choices>
  1662. <item>
  1663. <label>Y</label>
  1664. <value>Y</value>
  1665. </item>
  1666. <item>
  1667. <label>N</label>
  1668. <value>N</value>
  1669. </item>
  1670. </choices>
  1671. </col>
  1672. <col ref="orddeptcd" type="combo" visibility="hidden">
  1673. <choices>
  1674. <itemset nodeset="/root/init/hidden/orddeptcd">
  1675. <label ref="nm"/>
  1676. <value ref="cd"/>
  1677. </itemset>
  1678. </choices>
  1679. </col>
  1680. <col ref="orddrid" type="combo" visibility="hidden">
  1681. <choices>
  1682. <itemset nodeset="/root/init/hidden/orddrid">
  1683. <label ref="nm"/>
  1684. <value ref="cd"/>
  1685. </itemset>
  1686. </choices>
  1687. </col>
  1688. <col ref="snwflagcd" type="combo" visibility="hidden">
  1689. <choices>
  1690. <item>
  1691. <label>의사상병</label>
  1692. <value>D</value>
  1693. </item>
  1694. <item>
  1695. <label>관리상병</label>
  1696. <value>I</value>
  1697. </item>
  1698. </choices>
  1699. </col>
  1700. <col ref="lastupdtrid" visibility="hidden"/>
  1701. <col ref="lastupdtdt" visibility="hidden"/>
  1702. <col ref="pid" visibility="hidden"/>
  1703. <col ref="mngtno" visibility="hidden"/>
  1704. <col ref="snwseqno" visibility="hidden"/>
  1705. <col ref="seqno" visibility="hidden"/>
  1706. <col ref="histstat" visibility="hidden"/>
  1707. <script type="javascript" ev:event="xforms-select">
  1708. <![CDATA[
  1709. if(grd_icswinfo.col == 8){
  1710. fOrdDrSet(grd_icswinfo);
  1711. }
  1712. ]]>
  1713. </script>
  1714. <script type="javascript" ev:event="onkeypress">
  1715. <![CDATA[
  1716. if(grd_icswinfo.col == 8){
  1717. fOrdDrSet(grd_icswinfo);
  1718. }
  1719. ]]>
  1720. </script>
  1721. <script type="javascript" ev:event="xforms-value-changed">
  1722. <![CDATA[
  1723. if (model.getvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/histstat") != "I"){
  1724. grd_icswinfo.addstatus(grd_icswinfo.row, "update");
  1725. model.setvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/histstat", "U");
  1726. }
  1727. ]]>
  1728. </script>
  1729. </datagrid>
  1730. <line id="line17" class="line_1" style="x1:2px; y1:25px; x2:1187px; y2:25px; "/>
  1731. <button id="btn_insicsw1" class="btn2_letter3" style="left:914px; top:5px; width:53px; height:19px; ">
  1732. <caption>행추가</caption>
  1733. <script type="javascript" ev:event="DOMActivate">
  1734. <![CDATA[
  1735. var currentdate = getCurrentDate();
  1736. grd_icswinfo.addRow(grd_icswinfo.row, true);
  1737. model.setvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/histstat", "I");
  1738. model.setvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/pid",model.getValue("/root/main/ptbsinfo/pid"));
  1739. model.setvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/mngtno",model.getValue("/root/main/icpminfo/mngtno"));
  1740. model.setvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/snwseqno","1");
  1741. model.setValue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/issdd",currentdate);
  1742. model.setValue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/appdd",currentdate);
  1743. model.setValue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/todd", '99991231');
  1744. ]]>
  1745. </script>
  1746. </button>
  1747. <button id="btn_delicsw" class="btn2_letter3" style="left:969px; top:5px; width:53px; height:19px; ">
  1748. <caption>행삭제</caption>
  1749. <script type="javascript" ev:event="DOMActivate">
  1750. <![CDATA[
  1751. if (model.getvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/pid")){
  1752. grd_icswinfo.addstatus(grd_icswinfo.row, "delete");
  1753. model.setvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/histstat", "D");
  1754. } else {
  1755. grd_icswinfo.removeRow(false);
  1756. }
  1757. ]]>
  1758. </script>
  1759. </button>
  1760. <button id="btn_insicsw2" class="btn2_letter3" style="left:1024px; top:5px; width:53px; height:19px; ">
  1761. <caption>행삽입</caption>
  1762. <script type="javascript" ev:event="DOMActivate">
  1763. <![CDATA[
  1764. var currentdate = getCurrentDate();
  1765. grd_icswinfo.insertRow(grd_icswinfo.row, "below", false);
  1766. model.setvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/histstat", "I");
  1767. model.setvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/pid","/root/main/ptbsinfo/pid");
  1768. model.setvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/mngtno","/root/main/icpminfo/mngtno");
  1769. ]]>
  1770. </script>
  1771. </button>
  1772. <button id="button12" class="btn2_letter4" visibility="hidden" style="left:580px; top:0px; width:64px; height:19px; ">
  1773. <caption>의사상병</caption>
  1774. </button>
  1775. <button id="btn_saveicsw" class="btn5_letter2" style="left:1145px; top:5px; width:42px; height:19px; ">
  1776. <caption>저장</caption>
  1777. <script type="javascript" ev:event="DOMActivate">
  1778. <![CDATA[
  1779. var i;
  1780. for ( i = 1; i <= grd_icswinfo.rows-1; i++) {
  1781. model.resetInstanceNode("/root/send/icswselectinfo");
  1782. if (model.getvalue("/root/main/icswgrd/grdicswinfo[" + i + "]/histstat") == "I") {
  1783. var sSnwcd = model.getValue("/root/main/icswgrd/grdicswinfo[" + i + "]/snwcd");
  1784. if(isNull(sSnwcd)) {
  1785. messageBox("상병코드를", "C001");
  1786. return;
  1787. }
  1788. copyNodeType("/root/send/icswsaveinfo", "/root/main/icswgrd/grdicswinfo[" + i + "]", "replace");
  1789. if( model.getValue("/root/send/icswsaveinfo/todd") == "" ){
  1790. model.setValue("/root/send/icswsaveinfo/todd", "99991231");
  1791. }
  1792. submit("TXPMC02705");
  1793. }
  1794. if (model.getvalue("/root/main/icswgrd/grdicswinfo[" + i + "]/histstat") == "U") {
  1795. copyNodeType("/root/send/icswsaveinfo", "/root/main/icswgrd/grdicswinfo[" + i + "]", "replace");
  1796. if( model.getValue("/root/send/icswsaveinfo/todd") == "" ){
  1797. model.setValue("/root/send/icswsaveinfo/todd", "99991231");
  1798. }
  1799. submit("TXPMC02705");
  1800. submit("TXPMC02706");
  1801. }
  1802. if (model.getvalue("/root/main/icswgrd/grdicswinfo[" + i + "]/histstat") == "D") {
  1803. copyNodeType("/root/send/icswsaveinfo", "/root/main/icswgrd/grdicswinfo[" + i + "]", "replace");
  1804. submit("TXPMC02706");
  1805. }
  1806. }
  1807. model.removeNodeset("/root/main/icswgrd/grdicswinfo");
  1808. // 산재환자 상병조회
  1809. submit("TRPMC02705");
  1810. model.refresh();
  1811. ]]>
  1812. </script>
  1813. </button>
  1814. <button id="btn_excelicsw" class="btn2_letter4" style="left:1079px; top:5px; width:64px; height:19px; ">
  1815. <caption>엑셀저장</caption>
  1816. <script type="javascript" ev:event="DOMActivate">
  1817. <![CDATA[
  1818. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1819. if (fileName != "")
  1820. {
  1821. grd_icswinfo.saveExcel(fileName, "grdicswinfo", true, true, "", "", true);
  1822. }
  1823. ]]>
  1824. </script>
  1825. </button>
  1826. <button id="btn_upicsw" class="btn2_letter3" visibility="hidden" style="left:655px; top:5px; width:53px; height:19px; ">
  1827. <caption>행수정</caption>
  1828. <script type="javascript" ev:event="DOMActivate">
  1829. <![CDATA[
  1830. if( isDataCell() ){
  1831. grd_icswinfo.addstatus(grd_pmchicmt.row, "update");
  1832. model.setvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/histstat", "U");
  1833. model.setvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/pid","/root/main/ptbsinfo/pid");
  1834. model.setvalue("/root/main/icswgrd/grdicswinfo[" + grd_icswinfo.row + "]/mngtno","/root/main/icpminfo/mngtno");
  1835. }
  1836. ]]>
  1837. </script>
  1838. </button>
  1839. <button id="button5" class="btn2_letter4" style="left:849px; top:5px; width:64px; height:19px; ">
  1840. <caption>상병조회</caption>
  1841. <script type="javascript" ev:event="DOMActivate">
  1842. <![CDATA[
  1843. model.setValue("/root/send/srchdiag/basedd", getCurrentDate());
  1844. modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/send/srchdiag", "/root/init");
  1845. ]]>
  1846. </script>
  1847. </button>
  1848. </case>
  1849. <case id="case2">
  1850. <datagrid id="grd_iapfinfo" nodeset="/root/main/iapfgrd/grdiapfinfo" caption="증명구분^진료과코드^발급의사ID^확인일자^확인시작일^확인종료일^확인일수^확인금액^청구여부^참고사항^수정일자^작업자^이력상태^등록번호^관리번호^보험유형^증명서일련번호^일련번호" colsep="^" colwidth="131, 76, 76, 100, 100, 100, 79, 98, 61, 342, 0, 0, 0, 0, 0, 0, 0" dataheight="25" defaultrows="1" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:5px; top:30px; width:1180px; height:135px; ">
  1851. <col ref="profflagcd" type="combo" style="text-align:center; ">
  1852. <choices>
  1853. <itemset nodeset="/root/init/hidden/profcd">
  1854. <label ref="nm"/>
  1855. <value ref="cd"/>
  1856. </itemset>
  1857. </choices>
  1858. </col>
  1859. <col ref="orddeptcd" type="combo">
  1860. <choices>
  1861. <itemset nodeset="/root/init/hidden/orddeptcd">
  1862. <label ref="nm"/>
  1863. <value ref="cd"/>
  1864. </itemset>
  1865. </choices>
  1866. </col>
  1867. <col ref="issdrid" type="combo">
  1868. <choices>
  1869. <itemset nodeset="/root/init/hidden/orddrid">
  1870. <label ref="nm"/>
  1871. <value ref="cd"/>
  1872. </itemset>
  1873. </choices>
  1874. </col>
  1875. <col ref="cnfmdd" type="inputdate" style="text-align:center; "/>
  1876. <col ref="cnfmfromdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  1877. <col ref="cnfmtodd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  1878. <col ref="cnfmdayno" type="input" style="text-align:center; "/>
  1879. <col ref="cnfmamt" type="input" format="#,###" style="text-align:right; "/>
  1880. <col ref="clamyn" type="combo" style="text-align:right; ">
  1881. <choices>
  1882. <item>
  1883. <label>Y</label>
  1884. <value>Y</value>
  1885. </item>
  1886. <item>
  1887. <label>N</label>
  1888. <value>N</value>
  1889. </item>
  1890. </choices>
  1891. </col>
  1892. <col ref="profdocurem" type="input" style="left:1122px; top:25px; width:93px; height:25px; "/>
  1893. <col ref="lastupdtdt"/>
  1894. <col ref="lastupdtrid"/>
  1895. <col ref="histstat"/>
  1896. <col ref="pid"/>
  1897. <col ref="mngtno"/>
  1898. <col ref="insukind"/>
  1899. <col ref="profdocuseqno"/>
  1900. <col ref="seqno"/>
  1901. <script type="javascript" ev:event="xforms-select">
  1902. <![CDATA[
  1903. if(grd_iapfinfo.col == 2){
  1904. fOrdDrSet(grd_iapfinfo);
  1905. }
  1906. ]]>
  1907. </script>
  1908. <script type="javascript" ev:event="xforms-value-changed">
  1909. <![CDATA[
  1910. if (model.getvalue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/histstat") != "I"){
  1911. grd_iapfinfo.addstatus(grd_iapfinfo.row, "update");
  1912. model.setvalue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/histstat", "U");
  1913. }
  1914. ]]>
  1915. </script>
  1916. </datagrid>
  1917. <line id="line15" class="line_1" style="x1:5px; y1:25px; x2:1185px; y2:25px; "/>
  1918. <button id="btn_insiapf1" class="btn2_letter3" style="left:910px; top:4px; width:53px; height:19px; ">
  1919. <caption>행추가</caption>
  1920. <script type="javascript" ev:event="DOMActivate">
  1921. <![CDATA[
  1922. var currentdate = getCurrentDate();
  1923. grd_iapfinfo.addRow(grd_iapfinfo.row, true);
  1924. model.setvalue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/histstat", "I");
  1925. model.setValue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/pid",model.getValue("/root/send/selectinfo/pid"));
  1926. model.setValue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/mngtno",model.getValue("/root/send/selectinfo/mngtno"));
  1927. model.setValue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/insukind",model.getValue("/root/send/selectinfo/insukind"));
  1928. model.setValue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/cnfmdd",currentdate);
  1929. model.setValue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/cnfmfromdd",currentdate);
  1930. model.setValue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/clamyn","N");
  1931. model.setValue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/cnfmamt","0");
  1932. ]]>
  1933. </script>
  1934. </button>
  1935. <button id="btn_deliapf" class="btn2_letter3" style="left:966px; top:4px; width:53px; height:19px; ">
  1936. <caption>행삭제</caption>
  1937. <script type="javascript" ev:event="DOMActivate">
  1938. <![CDATA[
  1939. if (model.getvalue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/profflagcd") != ""){
  1940. grd_iapfinfo.addstatus(grd_iapfinfo.row, "delete");
  1941. model.setvalue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/histstat", "D");
  1942. } else {
  1943. grd_iapfinfo.removeRow(false);
  1944. }
  1945. ]]>
  1946. </script>
  1947. </button>
  1948. <button id="btn_insiapf2" class="btn2_letter3" style="left:1022px; top:4px; width:53px; height:19px; ">
  1949. <caption>행삽입</caption>
  1950. <script type="javascript" ev:event="DOMActivate">
  1951. <![CDATA[
  1952. var currentdate = getCurrentDate();
  1953. grd_iapfinfo.insertRow(grd_iapfinfo.row, "below", false);
  1954. model.setvalue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/histstat", "I");
  1955. model.setValue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/pid",model.getValue("/root/send/selectinfo/pid"));
  1956. model.setValue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/mngtno",model.getValue("/root/send/selectinfo/mngtno"));
  1957. model.setValue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/insukind",model.getValue("/root/send/selectinfo/insukind"));
  1958. model.setValue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/cnfmdd",currentdate);
  1959. model.setValue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/cnfmfromdd",currentdate);
  1960. model.setValue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/clamyn","N");
  1961. model.setValue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/cnfmamt","0");
  1962. ]]>
  1963. </script>
  1964. </button>
  1965. <button id="button2" class="btn2_letter4" style="left:1078px; top:4px; width:64px; height:19px; ">
  1966. <caption>엑셀저장</caption>
  1967. <script type="javascript" ev:event="DOMActivate">
  1968. <![CDATA[
  1969. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1970. if (fileName != "") {
  1971. grd_iapfinfo.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1972. }
  1973. ]]>
  1974. </script>
  1975. </button>
  1976. <button id="btn_saveiapf" class="btn5_letter2" style="left:1143px; top:4px; width:42px; height:19px; ">
  1977. <caption>저장</caption>
  1978. <script type="javascript" ev:event="DOMActivate">
  1979. <![CDATA[
  1980. // 환자번호 존재 체크
  1981. var sPid = model.getValue("/root/main/ptbsinfo/pid");
  1982. if (isNull(sPid)) {
  1983. messageBox("환자가 조회되지 않았습니다!!", "C");
  1984. return;
  1985. }
  1986. for (var i = 1; i <= grd_iapfinfo.rows-1; i++) {
  1987. model.resetInstanceNode("/root/send/iapfsaveinfo");
  1988. copyNodeType("/root/send/iapfsaveinfo", "/root/main/iapfgrd/grdiapfinfo[" + i + "]", "replace");
  1989. if (model.getvalue("/root/main/iapfgrd/grdiapfinfo[" + i + "]/histstat") == "I") {
  1990. submit("TXPMC02707");
  1991. }
  1992. if (model.getvalue("/root/main/iapfgrd/grdiapfinfo[" + i + "]/histstat") == "U") {
  1993. submit("TXPMC02708");
  1994. }
  1995. if (model.getvalue("/root/main/iapfgrd/grdiapfinfo[" + i + "]/histstat") == "D") {
  1996. submit("TXPMC02708");
  1997. }
  1998. var sProfFlagCd = model.getValue("/root/main/iapfgrd/grdiapfinfo[" + i + "]/profflagcd");
  1999. if (isNull(sProfFlagCd)) {
  2000. messageBox("[" + i + "]행의 증명구분은", "I003");
  2001. return;
  2002. }
  2003. var sOrdDeptCd = model.getValue("/root/main/iapfgrd/grdiapfinfo[" + i + "]/orddeptcd");
  2004. if (isNull(sOrdDeptCd)) {
  2005. messageBox("[" + i + "]행의 진료과코드는", "I003");
  2006. return;
  2007. }
  2008. }
  2009. model.removeNodeset("/root/main/iapfgrd/grdiapfinfo");
  2010. // 산재환자 증명서조회
  2011. submit("TRPMC02706");
  2012. model.refresh();
  2013. ]]>
  2014. </script>
  2015. </button>
  2016. <button id="btn_upiapf" class="btn2_letter3" visibility="hidden" style="left:854px; top:4px; width:53px; height:19px; ">
  2017. <caption>행수정</caption>
  2018. <script type="javascript" ev:event="DOMActivate">
  2019. <![CDATA[
  2020. grd_iapfinfo.addstatus(grd_iapfinfo.row, "update");
  2021. model.setvalue("/root/main/iapfgrd/grdiapfinfo[" + grd_iapfinfo.row + "]/histstat", "U");
  2022. ]]>
  2023. </script>
  2024. </button>
  2025. </case>
  2026. <case id="case3" style="left:0px; top:0px; width:1191px; height:292px; ">
  2027. <button id="btn_saveicms" class="btn5_letter2" style="left:1143px; top:5px; width:42px; height:19px; ">
  2028. <caption>저장</caption>
  2029. <script type="javascript" ev:event="DOMActivate">
  2030. <![CDATA[
  2031. var i;
  2032. for ( i = 1; i <= grd_icmsinfo.rows-1; i++) {
  2033. model.resetInstanceNode("/root/send/icmssaveinfo");
  2034. if (model.getvalue("/root/main/icmsgrd/grdicmsinfo[" + i + "]/histstat") == "I") {
  2035. copyNodeType("/root/send/icmssaveinfo", "/root/main/icmsgrd/grdicmsinfo[" + i + "]", "replace");
  2036. submit("TXPMC02709");
  2037. }
  2038. if (model.getvalue("/root/main/icmsgrd/grdicmsinfo[" + i + "]/histstat") == "U") {
  2039. copyNodeType("/root/send/icmssaveinfo", "/root/main/icmsgrd/grdicmsinfo[" + i + "]", "replace");
  2040. submit("TXPMC02709");
  2041. submit("TXPMC02710");
  2042. }
  2043. if (model.getvalue("/root/main/icmsgrd/grdicmsinfo[" + i + "]/histstat") == "D") {
  2044. copyNodeType("/root/send/icmssaveinfo", "/root/main/icmsgrd/grdicmsinfo[" + i + "]", "replace");
  2045. submit("TXPMC02710");
  2046. }
  2047. }
  2048. model.removeNodeset("/root/main/icmsgrd/grdicmsinfo");
  2049. // 휴업급여요양비조회
  2050. submit("TRPMC02707");
  2051. ]]>
  2052. </script>
  2053. </button>
  2054. <button id="btn_upicms" class="btn2_letter3" disabled="true" visibility="hidden" style="left:854px; top:5px; width:53px; height:19px; ">
  2055. <caption>행수정</caption>
  2056. <script type="javascript" ev:event="DOMActivate">
  2057. <![CDATA[
  2058. grd_icmsinfo.addstatus(grd_icmsinfo.row, "update");
  2059. model.setvalue("/root/main/icmsgrd/grdicmsinfo[" + grd_icmsinfo.row + "]/histstat", "U");
  2060. ]]>
  2061. </script>
  2062. </button>
  2063. <button id="btn_excelicms" class="btn2_letter4" style="left:1078px; top:5px; width:64px; height:19px; ">
  2064. <caption>엑셀저장</caption>
  2065. <script type="javascript" ev:event="DOMActivate">
  2066. <![CDATA[
  2067. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  2068. if (fileName != "")
  2069. {
  2070. grd_icmsinfo.saveExcel(fileName, "grd_icmsinfo", true, true, "", "", true);
  2071. }
  2072. ]]>
  2073. </script>
  2074. </button>
  2075. <button id="btn_insicms" class="btn2_letter3" style="left:910px; top:5px; width:53px; height:19px; ">
  2076. <caption>행추가</caption>
  2077. <script type="javascript" ev:event="DOMActivate">
  2078. <![CDATA[
  2079. var currentdate = getCurrentDate();
  2080. grd_icmsinfo.addRow(grd_icmsinfo.row, true);
  2081. model.setvalue("/root/main/icmsgrd/grdicmsinfo[" + grd_icmsinfo.row + "]/histstat", "I");
  2082. model.setvalue("/root/main/icmsgrd/grdicmsinfo[" + grd_icmsinfo.row + "]/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  2083. model.setvalue("/root/main/icmsgrd/grdicmsinfo[" + grd_icmsinfo.row + "]/mngtno", model.getvalue("/root/main/icpminfo/mngtno"));
  2084. model.setValue("/root/main/icmsgrd/grdicmsinfo[" + grd_icmsinfo.row + "]/appfromdd",currentdate);
  2085. model.setValue("/root/main/icmsgrd/grdicmsinfo[" + grd_icmsinfo.row + "]/appdd",currentdate);
  2086. ]]>
  2087. </script>
  2088. </button>
  2089. <button id="btn_insicms2" class="btn2_letter3" style="left:1022px; top:5px; width:53px; height:19px; ">
  2090. <caption>행삽입</caption>
  2091. <script type="javascript" ev:event="DOMActivate">
  2092. <![CDATA[
  2093. var currentdate = getCurrentDate();
  2094. grd_icmsinfo.insertRow(grd_icmsinfo.row, "below", false);
  2095. model.setvalue("/root/main/icmsgrd/grdicmsinfo[" + grd_icmsinfo.row + "]/histstat", "I");
  2096. model.setvalue("/root/main/icmsgrd/grdicmsinfo[" + grd_icmsinfo.row + "]/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  2097. model.setvalue("/root/main/icmsgrd/grdicmsinfo[" + grd_icmsinfo.row + "]/mngtno", model.getvalue("/root/main/icpminfo/mngtno"));
  2098. model.setValue("/root/main/icmsgrd/grdicmsinfo[" + grd_icmsinfo.row + "]/appfromdd",currentdate);
  2099. model.setValue("/root/main/icmsgrd/grdicmsinfo[" + grd_icmsinfo.row + "]/appdd",currentdate);
  2100. ]]>
  2101. </script>
  2102. </button>
  2103. <button id="btn_delicms" class="btn2_letter3" style="left:966px; top:5px; width:53px; height:19px; ">
  2104. <caption>행삭제</caption>
  2105. <script type="javascript" ev:event="DOMActivate">
  2106. <![CDATA[
  2107. if (model.getvalue("/root/main/icmsgrd/grdicmsinfo[" + grd_icmsinfo.row + "]/mtrtamtflag")){
  2108. grd_icmsinfo.addstatus(grd_icmsinfo.row, "delete");
  2109. model.setvalue("/root/main/icmsgrd/grdicmsinfo[" + grd_icmsinfo.row + "]/histstat", "D");
  2110. } else {
  2111. grd_icmsinfo.removeRow();
  2112. }
  2113. ]]>
  2114. </script>
  2115. </button>
  2116. <datagrid id="grd_icmsinfo" nodeset="/root/main/icmsgrd/grdicmsinfo" caption="구분^신청기간^신청기간^신청일^등록번호^관리번호^일련번호^이력상태" colsep="^" colwidth="405, 250, 250, 250, 0, 0, 0, 0" dataheight="25" defaultrows="1" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:5px; top:30px; width:1180px; height:135px; ">
  2117. <col ref="mtrtamtflag" type="combo">
  2118. <choices>
  2119. <itemset nodeset="/root/init/hidden/mtrtamtflag">
  2120. <label ref="nm"/>
  2121. <value ref="cd"/>
  2122. </itemset>
  2123. </choices>
  2124. </col>
  2125. <col ref="appfromdd" type="inputdate"/>
  2126. <col ref="apptodd" type="inputdate"/>
  2127. <col ref="appdd" type="inputdate"/>
  2128. <col ref="pid"/>
  2129. <col ref="mngtno"/>
  2130. <col ref="seqno"/>
  2131. <col ref="histstat"/>
  2132. <script type="javascript" ev:event="xforms-value-changed">
  2133. <![CDATA[
  2134. if (isDataCell() && model.getvalue("/root/main/icmsgrd/grdicmsinfo[" + grd_icmsinfo.row + "]/histsta") != "I"){
  2135. grd_icmsinfo.addstatus(grd_icmsinfo.row, "update");
  2136. model.setvalue("/root/main/icmsgrd/grdicmsinfo[" + grd_icmsinfo.row + "]/histstat", "U");
  2137. }
  2138. ]]>
  2139. </script>
  2140. </datagrid>
  2141. <line id="line9" class="line_1" style="x1:5px; y1:25px; x2:1185px; y2:25px; "/>
  2142. </case>
  2143. </switch>
  2144. <button id="button66" class="btn_sw" group="tab" selected="true" style="left:0px; top:547px; width:80px; height:22px; ">
  2145. <caption>상병관리</caption>
  2146. <toggle case="case1" ev:event="DOMActivate"/>
  2147. </button>
  2148. <button id="button67" class="btn_sw" visibility="hidden" group="tab" selected="false" style="left:80px; top:547px; width:92px; height:22px; ">
  2149. <caption>증명서관리</caption>
  2150. <toggle case="case2" ev:event="DOMActivate"/>
  2151. </button>
  2152. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  2153. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  2154. <button id="btn_search" class="btn1_letter2" style="left:1127px; top:7px; width:56px; height:22px; ">
  2155. <caption>조회</caption>
  2156. <script type="javascript" ev:event="DOMActivate">
  2157. <![CDATA[
  2158. fInitialize1();
  2159. // copyNodeType("/root/send/primarySearch", "/root/main/primaryInfo", "replace");
  2160. model.setValue("/root/send/primarySearch1/insukind", model.getValue("/root/main/primaryInfo/insukind"));
  2161. model.setValue("/root/send/primarySearch1/suppkind", model.getValue("/root/main/primaryInfo/suppkind"));
  2162. var flag = true;
  2163. var referenceValue = cmb_reference.value;
  2164. var sPid = model.getValue("/root/main/primaryInfo/pid");
  2165. model.setValue("/root/send/primarySearch1/reference", referenceValue);
  2166. switch (referenceValue){
  2167. case "0":
  2168. model.setValue("/root/send/primarySearch1/reference", "0");
  2169. model.setValue("/root/send/primarySearch1/reference1", "");
  2170. model.setValue("/root/send/primarySearch1/reference2", "");
  2171. break;
  2172. case "1":
  2173. if (model.getValue("/root/main/primaryInfo/pid") == "") {
  2174. flag = false;
  2175. }
  2176. model.setValue("/root/send/primarySearch1/reference1", model.getValue("/root/main/primaryInfo/pid"));
  2177. model.setValue("/root/send/primarySearch1/reference2", "");
  2178. break;
  2179. case "2":
  2180. if (model.getValue("/root/main/primaryInfo/hngnm") == "") {
  2181. flag = false;
  2182. }
  2183. model.setValue("/root/send/primarySearch1/reference1", model.getValue("/root/main/primaryInfo/hngnm"));
  2184. model.setValue("/root/send/primarySearch1/reference2", "");
  2185. break;
  2186. case "3":
  2187. if (model.getValue("/root/main/primaryInfo/rrgstno") == "") {
  2188. flag = false;
  2189. }
  2190. model.setValue("/root/send/primarySearch1/reference1", model.getValue("/root/main/primaryInfo/rrgstno"));
  2191. model.setValue("/root/send/primarySearch1/reference2", "");
  2192. break;
  2193. case "4":
  2194. if (model.getValue("/root/main/primaryInfo/tel") == "") {
  2195. flag = false;
  2196. }
  2197. model.setValue("/root/send/primarySearch1/reference1", model.getValue("/root/main/primaryInfo/tel"));
  2198. model.setValue("/root/send/primarySearch1/reference2", "");
  2199. break;
  2200. case "5":
  2201. if (model.getValue("/root/main/primaryInfo/inducsbrchcd") == "") {
  2202. flag = false;
  2203. }
  2204. model.setValue("/root/send/primarySearch1/reference1", model.getValue("/root/main/primaryInfo/inducsbrchcd"));
  2205. model.setValue("/root/send/primarySearch1/reference2", "");
  2206. break;
  2207. case "6":
  2208. if (model.getValue("/root/main/primaryInfo/bizplcenm") == "") {
  2209. flag = false;
  2210. }
  2211. model.setValue("/root/send/primarySearch1/reference1", model.getValue("/root/main/primaryInfo/bizplcenm"));
  2212. model.setValue("/root/send/primarySearch1/reference2", "");
  2213. break;
  2214. case "7":
  2215. if (model.getValue("/root/main/primaryInfo/date1") == "") {
  2216. flag = false;
  2217. }
  2218. model.setValue("/root/send/primarySearch1/reference1", model.getValue("/root/main/primaryInfo/date1"));
  2219. model.setValue("/root/send/primarySearch1/reference2", model.getValue("/root/main/primaryInfo/date2"));
  2220. break;
  2221. case "8":
  2222. if (model.getValue("/root/main/primaryInfo/date1") == "") {
  2223. flag = false;
  2224. }
  2225. model.setValue("/root/send/primarySearch1/reference1", model.getValue("/root/main/primaryInfo/date1"));
  2226. model.setValue("/root/send/primarySearch1/reference2", model.getValue("/root/main/primaryInfo/date2"));
  2227. break;
  2228. }
  2229. model.setValue("/root/send/primarySearch1/inhospflag", model.getValue("/root/main/primaryInfo/inhospflag"));
  2230. model.setValue("/root/send/primarySearch1/renew", model.getValue("/root/main/primaryInfo/renew"));
  2231. if (flag == true) {
  2232. // 산재등록 마스터icpm 조회
  2233. submit("TRPMC02701");
  2234. copyNodeType("/root/main/ptbsinfo","/root/main/icpmgrd/ptbs","replace");
  2235. if (grd_icpminfo.rows >= 2) {
  2236. model.setvalue("/root/main/icpminfo/insukind",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/insukind"));
  2237. model.setvalue("/root/main/icpminfo/suppkind",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/suppkind"));
  2238. model.setvalue("/root/main/icpminfo/mngtno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/mngtno"));
  2239. model.setvalue("/root/main/icpminfo/mngtno_org",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/mngtno_org"));
  2240. model.setvalue("/root/main/icpminfo/inducsbrchcd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/inducsbrchcd"));
  2241. model.setvalue("/root/main/icpminfo/acddd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/acddd"));
  2242. model.setvalue("/root/main/icpminfo/bizplcenm",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/bizplcenm"));
  2243. model.setvalue("/root/main/icpminfo/bizplcergstseqno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/bizplcergstseqno"));
  2244. model.setvalue("/root/main/icpminfo/ordopendd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/ordopendd"));
  2245. model.setvalue("/root/main/icpminfo/ordtodd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/ordtodd"));
  2246. model.setvalue("/root/main/icpminfo/chrgnm",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/chrgnm"));
  2247. model.setvalue("/root/main/icpminfo/endflag",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/endflag"));
  2248. combo7.dispatch("xforms-value-changed");
  2249. model.setvalue("/root/main/icpminfo/inducsrem",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/inducsrem"));
  2250. model.setvalue("/root/main/icpminfo/seqno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/seqno"));
  2251. model.setvalue("/root/main/icpminfo/pid",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/pid"));
  2252. model.setvalue("/root/main/icpminfo/endcnts",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/endcnts"));
  2253. model.setvalue("/root/main/icpminfo/bizplceseqno",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/bizplceseqno"));
  2254. model.setvalue("/root/main/icpminfo/coordresncd",model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/coordresncd"));
  2255. model.setvalue("/root/send/primarySearch/type", "1");
  2256. model.setvalue("/root/send/primarySearch/pid", model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/pid"));
  2257. model.setvalue("/root/send/primarySearch/mngtno", model.getvalue("/root/main/icpmgrd/grdicpminfo[" + 1 + "]/mngtno"));
  2258. // 환자인적정보조회
  2259. submit("TRPMC02702");
  2260. // 산재환자 기간관리조회
  2261. if(submit("TRPMC02704")){
  2262. for(var i =1; i<=grd_pmchicmt.rows; i++){
  2263. var sorddeptcd = grd_pmchicmt.valueMatrix(i, 4);
  2264. grd_pmchicmt.cellComboNodeset(i,5) ="/root/init/hidden/orddrid[dp = '" + sorddeptcd + "' ]";
  2265. }
  2266. }
  2267. // 산재환자 기간 그룹별조회
  2268. //submit("TRPMC02709");
  2269. model.setvalue("/root/send/selectinfo/pid",model.getvalue("/root/main/icpminfo/pid"));
  2270. model.setvalue("/root/send/selectinfo/mngtno",model.getvalue("/root/main/icpminfo/mngtno"));
  2271. model.setvalue("/root/send/selectinfo/insukind",model.getvalue("/root/main/icpminfo/insukind"));
  2272. // 산재환자 상병조회
  2273. submit("TRPMC02705");
  2274. // 산재환자 증명서조회
  2275. submit("TRPMC02706");
  2276. // 휴업급여요양비조회
  2277. submit("TRPMC02707");
  2278. // 2009.09.25 - 전체/유효건 보기
  2279. fViewValidData();
  2280. model.refresh();
  2281. } else {
  2282. if (model.getValue("/root/send/primarySearch/reference") == 1) {
  2283. model.setValue("/root/send/primarySearch/reference","1");
  2284. model.setValue("/root/send/primarySearch/reference1", sPid);
  2285. // 환자인적정보조회
  2286. submit("TRPMC02702");
  2287. var iCount = getNodesetCount("/root/main/ptbsinfo");
  2288. if (iCount == 0) {
  2289. fMakePtbsNode();
  2290. }
  2291. }
  2292. //messageBox("조회된 결과가", "I004");
  2293. }
  2294. if (grd_icpminfo.rows == 0 && model.getValue("/root/main/ptbsinfo/pid") != "") {
  2295. var currentdate = getCurrentDate();
  2296. if (cmb_reference.value == "1" || cmb_reference.value == "2" || cmb_reference.value == "3" || cmb_reference.value == "4") {
  2297. model.setvalue("/root/send/primarySearch/type",model.getvalue("/root/send/primarySearch1/reference"));
  2298. model.setvalue("/root/send/primarySearch/pid",model.getvalue("/root/send/primarySearch1/reference1"));
  2299. // 환자인적정보조회
  2300. submit("TRPMC02702");
  2301. model.setvalue("/root/main/icpminfo/insukind","41");
  2302. model.setvalue("/root/main/icpminfo/ordopendd",currentdate);
  2303. model.setvalue("/root/main/icpminfo/ordtodd","99991231");
  2304. model.setvalue("/root/main/icpminfo/endflag","N");
  2305. combo7.dispatch("xforms-value-changed");
  2306. model.setvalue("/root/main/icpminfo/endcnts","");
  2307. model.refresh();
  2308. }
  2309. }
  2310. /* ---------------------------------------------------------------------------------------------------------- */
  2311. if (model.getValue("/root/main/ptbsinfo/pid") != "" ) {
  2312. model.setvalue("/root/send/iaiwreceive/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  2313. model.setvalue("/root/send/iaiwreceive/mngtno", model.getvalue("/root/main/icpminfo/mngtno"));
  2314. model.setvalue("/root/send/iaiwreceive/instcd", getUserInfo("dutplceinstcd"));
  2315. model.setvalue("/root/send/iaiwreceive/insukind", "41");
  2316. }
  2317. // 면담조회(면담여부확인하여버튼색변경)
  2318. submit("TRPMC03501");
  2319. var iCount = getNodesetCount("/root/main/iaiwgrid/grdiaiwsearch");
  2320. if(iCount > 0){
  2321. button3.attribute("color") = "#ff0000";
  2322. }else{
  2323. button3.attribute("color") = "#184d8b";
  2324. }
  2325. /* ---------------------------------------------------------------------------------------------------------- */
  2326. }
  2327. ]]>
  2328. </script>
  2329. </button>
  2330. <select id="chk_renew" ref="/root/main/primaryInfo/renew" class="checkbox_search" overflow="visible" appearance="full" style="left:1013px; top:10px; width:92px; height:20px; border-style:none; ">
  2331. <choices>
  2332. <item>
  2333. <label>연장신청환자</label>
  2334. <value>0</value>
  2335. </item>
  2336. </choices>
  2337. </select>
  2338. <line id="line10" class="line_4" style="x1:1113px; y1:7px; x2:1113px; y2:29px; "/>
  2339. <caption id="caption15" class="search_name" style="left:367px; top:10px; width:86px; height:17px; ">조회조건 :</caption>
  2340. <caption id="caption19" class="search_name" style="left:787px; top:10px; width:86px; height:17px; ">구분 :</caption>
  2341. <caption id="caption24" class="search_name" style="left:8px; top:9px; width:86px; height:17px; ">보험유형 :</caption>
  2342. <select1 id="cmb_reference" ref="/root/main/primaryInfo/reference" class="combo_search" appearance="minimal" style="left:454px; top:9px; width:95px; height:19px; ">
  2343. <choices>
  2344. <item>
  2345. <label>전체</label>
  2346. <value>0</value>
  2347. </item>
  2348. <item>
  2349. <label>환자번호</label>
  2350. <value>1</value>
  2351. </item>
  2352. <item>
  2353. <label>환자성명</label>
  2354. <value>2</value>
  2355. </item>
  2356. <item>
  2357. <label>주민번호</label>
  2358. <value>3</value>
  2359. </item>
  2360. <item>
  2361. <label>전화번호</label>
  2362. <value>4</value>
  2363. </item>
  2364. <item>
  2365. <label>노동지사</label>
  2366. <value>5</value>
  2367. </item>
  2368. <item>
  2369. <label>사업장명</label>
  2370. <value>6</value>
  2371. </item>
  2372. <item>
  2373. <label>재해발생일</label>
  2374. <value>7</value>
  2375. </item>
  2376. <item>
  2377. <label>진료기간</label>
  2378. <value>8</value>
  2379. </item>
  2380. </choices>
  2381. <script type="javascript" ev:event="xforms-select">
  2382. <![CDATA[
  2383. model.resetInstanceNode("/root/main/primaryInfo/reference1");
  2384. model.resetInstanceNode("/root/main/primaryInfo/reference2");
  2385. model.setFocus("/root/main/primaryInfo/reference1");
  2386. switch (model.getvalue("/root/main/primaryInfo/reference")){
  2387. case "0":
  2388. ipt_pid1.visible = false;
  2389. ipt_date1.visible = false;
  2390. ipt_date2.visible=false;
  2391. cmb_inducsbrchcd1.visible = false;
  2392. ipt_bizplcenm1.visible = false;
  2393. ipt_tel1.visible = false;
  2394. ipt_rrgstno1.visible = false;
  2395. ipt_hngnm1.visible = false;
  2396. caption1.visible= false;
  2397. //rdo_inhospflag.value=1;
  2398. rdo_inhospflag.disabled=false;
  2399. break;
  2400. case "1":
  2401. model.setValue("/root/main/primaryInfo/pid", "");
  2402. ipt_pid1.visible = true;
  2403. ipt_date1.visible = false;
  2404. ipt_date2.visible=false;
  2405. cmb_inducsbrchcd1.visible = false;
  2406. ipt_bizplcenm1.visible = false;
  2407. ipt_tel1.visible = false;
  2408. ipt_rrgstno1.visible = false;
  2409. ipt_hngnm1.visible = false;
  2410. caption1.visible= false;
  2411. model.refresh();
  2412. model.setFocus("ipt_pid1");
  2413. rdo_inhospflag.value=1;
  2414. rdo_inhospflag.disabled=true;
  2415. break;
  2416. case "2":
  2417. model.setValue("/root/main/primaryInfo/hngnm", "");
  2418. ipt_hngnm1.visible = true;
  2419. ipt_date1.visible = false;
  2420. ipt_date2.visible=false;
  2421. cmb_inducsbrchcd1.visible = false;
  2422. ipt_bizplcenm1.visible = false;
  2423. ipt_tel1.visible = false;
  2424. ipt_rrgstno1.visible = false;
  2425. ipt_pid1.visible=false;
  2426. caption1.visible= false;
  2427. ipt_hngnm1.refresh();
  2428. model.setFocus("ipt_hngnm1");
  2429. rdo_inhospflag.value=1;
  2430. rdo_inhospflag.disabled=true;
  2431. break;
  2432. case "3":
  2433. model.setValue("/root/main/primaryInfo/rrgstno", "");
  2434. ipt_rrgstno1.visible = true;
  2435. ipt_date1.visible = false;
  2436. ipt_date2.visible=false;
  2437. cmb_inducsbrchcd1.visible = false;
  2438. ipt_bizplcenm1.visible = false;
  2439. ipt_tel1.visible = false;
  2440. ipt_hngnm1.visible = false;
  2441. ipt_pid1.visible=false;
  2442. caption1.visible= false;
  2443. ipt_rrgstno1.refresh();
  2444. model.setFocus("ipt_rrgstno1");
  2445. rdo_inhospflag.value=1;
  2446. rdo_inhospflag.disabled=true;
  2447. break;
  2448. case "4":
  2449. model.setValue("/root/main/primaryInfo/tel", "");
  2450. ipt_tel1.visible = true;
  2451. ipt_date1.visible = false;
  2452. ipt_date2.visible=false;
  2453. cmb_inducsbrchcd1.visible = false;
  2454. ipt_bizplcenm1.visible = false;
  2455. ipt_rrgstno1.visible = false;
  2456. ipt_hngnm1.visible = false;
  2457. ipt_pid1.visible=false;
  2458. caption1.visible= false;
  2459. ipt_tel1.refresh();
  2460. model.setFocus("ipt_tel1");
  2461. rdo_inhospflag.value=1;
  2462. rdo_inhospflag.disabled=true;
  2463. break;
  2464. case "5":
  2465. model.setValue("/root/main/primaryInfo/inducsbrchcd", "");
  2466. cmb_inducsbrchcd1.visible = true;
  2467. ipt_date1.visible = false;
  2468. ipt_date2.visible=false;
  2469. ipt_bizplcenm1.visible = false;
  2470. ipt_tel1.visible = false;
  2471. ipt_rrgstno1.visible = false;
  2472. ipt_hngnm1.visible = false;
  2473. ipt_pid1.visible=false;
  2474. caption1.visible= false;
  2475. cmb_inducsbrchcd1.refresh();
  2476. model.setFocus("cmb_inducsbrchcd1");
  2477. rdo_inhospflag.value=1;
  2478. rdo_inhospflag.disabled=true;
  2479. break;
  2480. case "6":
  2481. model.setValue("/root/main/primaryInfo/bizplcenm", "");
  2482. ipt_bizplcenm1.visible = true;
  2483. ipt_date1.visible = false;
  2484. ipt_date2.visible=false;
  2485. cmb_inducsbrchcd1.visible = false;
  2486. ipt_tel1.visible = false;
  2487. ipt_rrgstno1.visible = false;
  2488. ipt_hngnm1.visible = false;
  2489. ipt_pid1.visible=false;
  2490. caption1.visible= false;
  2491. ipt_bizplcenm1.refresh();
  2492. model.setFocus("ipt_bizplcenm1");
  2493. rdo_inhospflag.value=1;
  2494. rdo_inhospflag.disabled=true;
  2495. break;
  2496. case "7":
  2497. model.setValue("/root/main/primaryInfo/date1", "");
  2498. model.setValue("/root/main/primaryInfo/date2", "");
  2499. ipt_date1.visible = true;
  2500. ipt_date2.visible=true;
  2501. cmb_inducsbrchcd1.visible = false;
  2502. ipt_bizplcenm1.visible = false;
  2503. ipt_tel1.visible = false;
  2504. ipt_rrgstno1.visible = false;
  2505. ipt_hngnm1.visible = false;
  2506. ipt_pid1.visible=false;
  2507. caption1.visible= true;
  2508. ipt_date1.refresh();
  2509. ipt_date2.refresh();
  2510. model.setFocus("ipt_date1");
  2511. rdo_inhospflag.value=1;
  2512. rdo_inhospflag.disabled=true;
  2513. break;
  2514. case "8":
  2515. model.setValue("/root/main/primaryInfo/date1", "");
  2516. model.setValue("/root/main/primaryInfo/date2", "");
  2517. ipt_date1.visible = true;
  2518. ipt_date2.visible=true;
  2519. cmb_inducsbrchcd1.visible = false;
  2520. ipt_bizplcenm1.visible = false;
  2521. ipt_tel1.visible = false;
  2522. ipt_rrgstno1.visible = false;
  2523. ipt_hngnm1.visible = false;
  2524. ipt_pid1.visible=false;
  2525. caption1.visible= true;
  2526. ipt_date1.refresh();
  2527. ipt_date2.refresh();
  2528. model.setFocus("ipt_date1");
  2529. rdo_inhospflag.value=1;
  2530. rdo_inhospflag.disabled=true;
  2531. break;
  2532. }
  2533. model.refresh();
  2534. ]]>
  2535. </script>
  2536. </select1>
  2537. <select1 id="rdo_inhospflag" ref="/root/main/primaryInfo/inhospflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:855px; top:10px; width:135px; height:19px; border-style:none; ">
  2538. <choices>
  2539. <item>
  2540. <label>전체</label>
  2541. <value>1</value>
  2542. </item>
  2543. <item>
  2544. <label>외래</label>
  2545. <value>3</value>
  2546. </item>
  2547. <item>
  2548. <label>재원</label>
  2549. <value>2</value>
  2550. </item>
  2551. </choices>
  2552. </select1>
  2553. <select1 id="cmb_insukind" ref="/root/main/primaryInfo/insukind" class="combo_search" appearance="minimal" style="left:97px; top:9px; width:80px; height:19px; ">
  2554. <choices>
  2555. <item>
  2556. <label>전체</label>
  2557. <value>1</value>
  2558. </item>
  2559. <item>
  2560. <label>산재</label>
  2561. <value>41</value>
  2562. </item>
  2563. <item>
  2564. <label>공상</label>
  2565. <value>42</value>
  2566. </item>
  2567. </choices>
  2568. <script type="javascript" ev:event="xforms-select">
  2569. <![CDATA[
  2570. fSuppKindSet1();
  2571. ]]>
  2572. </script>
  2573. <script type="javascript" ev:event="xforms-value-changed">
  2574. <![CDATA[
  2575. model.setValue("/root/properties/menu/menuparam", model.getValue("/root/main/primaryInfo/insukind"));
  2576. ]]>
  2577. </script>
  2578. </select1>
  2579. <input id="ipt_pid1" ref="/root/main/primaryInfo/pid" class="input_search" imemode="numeric" maxlength="10" style="left:555px; top:9px; width:90px; height:19px; ">
  2580. <script type="javascript" ev:event="onkeypress">
  2581. <![CDATA[
  2582. if(event.keyCode == "13") {
  2583. // inputEnterKey("btn_search", "DOMActivate");
  2584. setInputNodeCurText();
  2585. model.setValue("/root/send/search1/pid",model.getValue("/root/main/primaryInfo/pid"));
  2586. model.setValue("/root/send/search1/srchcond","1");
  2587. modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
  2588. model.setValue("/root/main/primaryInfo/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  2589. inputEnterKey("btn_search", "DOMActivate");
  2590. ipt_pid1.visible = false;
  2591. ipt_date1.visible = false;
  2592. ipt_date2.visible = false;
  2593. caption1.visible= false;
  2594. ipt_hngnm1.visible = false;
  2595. ipt_rrgstno1.visible = false;
  2596. ipt_tel1.visible = false;
  2597. model.refresh();
  2598. }
  2599. ]]>
  2600. </script>
  2601. </input>
  2602. <input id="ipt_hngnm1" ref="/root/main/primaryInfo/hngnm" class="input_search" imemode="hangul" maxlength="50" style="left:555px; top:9px; width:90px; height:19px; ">
  2603. <script type="javascript" ev:event="onkeypress">
  2604. <![CDATA[
  2605. if(event.keyCode == "13") {
  2606. // inputEnterKey("btn_search", "DOMActivate");
  2607. setInputNodeCurText();
  2608. model.setValue("/root/send/search1/hngnm",model.getValue("/root/main/primaryInfo/hngnm"));
  2609. model.setValue("/root/send/search1/srchcond","2");
  2610. modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
  2611. model.setValue("/root/main/primaryInfo/reference", "1");
  2612. model.setValue("/root/main/primaryInfo/hngnm", "");
  2613. model.setValue("/root/main/primaryInfo/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  2614. inputEnterKey("btn_search", "DOMActivate");
  2615. ipt_pid1.visible = false;
  2616. ipt_hngnm1.visible = false;
  2617. ipt_rrgstno1.visible = false;
  2618. model.refresh();
  2619. }
  2620. ]]>
  2621. </script>
  2622. </input>
  2623. <input id="ipt_rrgstno1" ref="/root/main/primaryInfo/rrgstno" class="input_search" imemode="numeric" maxlength="14" format="999999-9999999" style="left:555px; top:9px; width:90px; height:19px; ">
  2624. <script type="javascript" ev:event="onkeypress">
  2625. <![CDATA[
  2626. if(event.keyCode == "13") {
  2627. // inputEnterKey("btn_search", "DOMActivate");
  2628. setInputNodeCurText();
  2629. var rrgstno = model.getValue("/root/main/primaryInfo/rrgstno");
  2630. model.setValue("/root/send/search1/rrgstno1", rrgstno.substring(0,6));
  2631. model.setValue("/root/send/search1/rrgstno2", rrgstno.substring(7,14));
  2632. model.setValue("/root/send/search1/srchcond","3");
  2633. modal("SPPMC02500_환자조회", "1","150", "150", "", "/root/send/search1", "/root/send");
  2634. model.setValue("/root/main/primaryInfo/reference", "1");
  2635. model.setValue("/root/main/primaryInfo/rrgstno", "");
  2636. model.setValue("/root/main/primaryInfo/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  2637. inputEnterKey("btn_search", "DOMActivate");
  2638. ipt_pid1.visible = false;
  2639. ipt_hngnm1.visible = false;
  2640. ipt_rrgstno1.visible = false;
  2641. model.refresh();
  2642. }
  2643. ]]>
  2644. </script>
  2645. </input>
  2646. <input id="ipt_tel1" ref="/root/main/primaryInfo/tel" class="input_search" imemode="numeric" maxlength="13" style="left:555px; top:9px; width:90px; height:19px; ">
  2647. <script type="javascript" ev:event="onkeypress">
  2648. <![CDATA[
  2649. if(event.keyCode == "13") {
  2650. // btn_search.dispatch("DOMActivate");
  2651. inputEnterKey("btn_search", "DOMActivate");
  2652. }
  2653. ]]>
  2654. </script>
  2655. </input>
  2656. <select1 id="cmb_inducsbrchcd1" ref="/root/main/primaryInfo/inducsbrchcd" class="combo_search" appearance="minimal" style="left:555px; top:9px; width:90px; height:19px; ">
  2657. <choices>
  2658. <item>
  2659. <label>수원지사</label>
  2660. <value>1</value>
  2661. </item>
  2662. </choices>
  2663. <script type="javascript" ev:event="onkeypress">
  2664. <![CDATA[
  2665. if(event.keyCode == "13") {
  2666. // btn_search.dispatch("DOMActivate");
  2667. inputEnterKey("btn_search", "DOMActivate");
  2668. }
  2669. ]]>
  2670. </script>
  2671. </select1>
  2672. <input id="ipt_bizplcenm1" ref="/root/main/primaryInfo/bizplcenm" class="combo_search" imemode="hangul" style="left:555px; top:9px; width:90px; height:19px; ">
  2673. <script type="javascript" ev:event="onkeypress">
  2674. <![CDATA[
  2675. if(event.keyCode == "13") {
  2676. // btn_search.dispatch("DOMActivate");
  2677. inputEnterKey("btn_search", "DOMActivate");
  2678. }
  2679. ]]>
  2680. </script>
  2681. </input>
  2682. <input id="ipt_date1" ref="/root/main/primaryInfo/date1" class="input_search" imemode="numeric" inputtype="date" maxlength="10" format="yyyy-mm-dd" style="left:555px; top:9px; width:90px; height:19px; ">
  2683. <script type="javascript" ev:event="onkeypress">
  2684. <![CDATA[
  2685. if(event.keyCode == "13") {
  2686. model.setFocus("ipt_date2");
  2687. }
  2688. ]]>
  2689. </script>
  2690. </input>
  2691. <input id="ipt_date2" ref="/root/main/primaryInfo/date2" class="input_search" imemode="numeric" inputtype="date" maxlength="10" format="yyyy-mm-dd" style="left:669px; top:9px; width:90px; height:19px; ">
  2692. <script type="javascript" ev:event="onkeypress">
  2693. <![CDATA[
  2694. if(event.keyCode == "13") {
  2695. // btn_search.dispatch("DOMActivate");
  2696. inputEnterKey("btn_search", "DOMActivate");
  2697. }
  2698. ]]>
  2699. </script>
  2700. </input>
  2701. <caption id="caption1" style="left:650px; top:10px; width:15px; height:20px; ">~</caption>
  2702. <select1 id="cbo_suppkind" ref="/root/main/primaryInfo/suppkind" class="combo_search" appearance="minimal" style="left:276px; top:10px; width:80px; height:19px; ">
  2703. <choices>
  2704. <itemset nodeset="/root/init/hidden/suppkind">
  2705. <label ref="nm"/>
  2706. <value ref="cd"/>
  2707. </itemset>
  2708. </choices>
  2709. <script type="javascript" ev:event="xforms-value-changed">
  2710. <![CDATA[
  2711. model.setFocus("cmb_reference");
  2712. ]]>
  2713. </script>
  2714. <script type="javascript" ev:event="onkeydown">
  2715. <![CDATA[
  2716. if(event.keyCode == "13") {
  2717. model.setFocus("cmb_reference");
  2718. }
  2719. ]]>
  2720. </script>
  2721. </select1>
  2722. <caption id="caption2" class="search_name" style="left:187px; top:10px; width:86px; height:17px; ">보조유형 :</caption>
  2723. </group>
  2724. <button id="button1" class="btn2_letter4" style="left:1130px; top:127px; width:64px; height:19px; ">
  2725. <caption>엑셀저장</caption>
  2726. <script type="javascript" ev:event="DOMActivate">
  2727. <![CDATA[
  2728. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  2729. if (fileName != "")
  2730. {
  2731. grd_icpminfo.saveExcel(fileName, "SheetName", true, true, "", "", false);
  2732. }
  2733. ]]>
  2734. </script>
  2735. </button>
  2736. <button id="btn_excelicmt" class="btn2_letter4" style="left:1085px; top:378px; width:64px; height:19px; ">
  2737. <caption>엑셀저장</caption>
  2738. <script type="javascript" ev:event="DOMActivate">
  2739. <![CDATA[
  2740. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  2741. if (fileName != "")
  2742. {
  2743. grd_pmchicmt.saveExcel(fileName, "grd_pmchicmt", true, true, "", "", true);
  2744. }
  2745. ]]>
  2746. </script>
  2747. </button>
  2748. <button id="btn_saveicmt" class="btn5_letter2" style="left:1150px; top:378px; width:42px; height:19px; ">
  2749. <caption>저장</caption>
  2750. <script type="javascript" ev:event="DOMActivate">
  2751. <![CDATA[
  2752. var i = 1;
  2753. var flag = true;
  2754. while ( i <= grd_pmchicmt.rows-1) {
  2755. var rstatus = grd_pmchicmt.rowStatus(i);
  2756. if( rstatus == "1" || rstatus == "2" || rstatus == "3" ){
  2757. if (model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/chospresn") == "") {
  2758. window.alert("요양구분은 필히 선택해주셔야 합니다.", "알림");
  2759. flag = false;
  2760. break;
  2761. }
  2762. if (model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/ordflag") == "") {
  2763. window.alert("외래/입원 구분은 필히 선택해주셔야 합니다.", "알림");
  2764. flag = false;
  2765. break;
  2766. }
  2767. if (model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/orddeptcd") == "") {
  2768. window.alert("진료과는 필히 선택해주셔야 합니다.", "알림");
  2769. flag = false;
  2770. break;
  2771. }
  2772. //20101227 이동식 추가 - 종료여부 입력하지 않을 경우 기간관리 저장 안됨.
  2773. if (model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/endyn") == "") {
  2774. window.alert("종료여부는 필히 선택해주셔야 합니다.", "알림");
  2775. flag = false;
  2776. break;
  2777. }
  2778. // 강남 요구사항 20081020 이성인
  2779. // if (model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/orddrid") == "") {
  2780. // window.alert("의사는 필히 선택해주셔야 합니다.", "알림");
  2781. // flag = false;
  2782. // break;
  2783. // }
  2784. if (model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/specordyn") == "") {
  2785. window.alert("선택진료구분은 필히 입력 해주셔야 합니다.", "알림");
  2786. flag = false;
  2787. break;
  2788. }
  2789. }
  2790. i++;
  2791. }
  2792. // 2011.1.3 저장할 row가 insert, update, delete인 것만 체크하여 저장로직 타도록 수정
  2793. var rstatus = grd_pmchicmt.rowStatus(grd_pmchicmt.row);
  2794. if (flag == true) {
  2795. for (i = 1; i <= grd_pmchicmt.rows-1; i++) {
  2796. if( rstatus == "1" || rstatus == "2" || rstatus == "3" || rstatus == "4" ){
  2797. model.resetInstanceNode("/root/send/insertdata1");
  2798. model.setvalue("/root/send/insertdata1/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  2799. model.setvalue("/root/send/insertdata1/mngtno", model.getvalue("/root/main/icpminfo/mngtno"));
  2800. model.setvalue("/root/send/insertdata1/mtrtseqno", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/mtrtseqno"));
  2801. model.setvalue("/root/send/insertdata1/seqno", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/seqno"));
  2802. model.setvalue("/root/send/insertdata1/histstat", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/histstat"));
  2803. model.setvalue("/root/send/insertdata1/chospresn", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/chospresn"));
  2804. model.setvalue("/root/send/insertdata1/chosresndetl", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/chosresndetl"));
  2805. model.setvalue("/root/send/insertdata1/ordflag", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/ordflag"));
  2806. model.setvalue("/root/send/insertdata1/orddeptcd", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/orddeptcd"));
  2807. if(model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/orddrid") == "") {model.setvalue("/root/send/insertdata1/orddrid",'-' );}
  2808. else{ model.setvalue("/root/send/insertdata1/orddrid", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/orddrid"));}
  2809. model.setvalue("/root/send/insertdata1/specordyn", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/specordyn"));
  2810. model.setvalue("/root/send/insertdata1/reqdd", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/reqdd"));
  2811. model.setvalue("/root/send/insertdata1/orddd", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/orddd"));
  2812. model.setvalue("/root/send/insertdata1/ordfromdd", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/ordfromdd"));
  2813. model.setvalue("/root/send/insertdata1/ordtodd", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/ordtodd"));
  2814. model.setvalue("/root/send/insertdata1/aprydd", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/aprydd"));
  2815. model.setvalue("/root/send/insertdata1/apryfromdd", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/apryfromdd"));
  2816. model.setvalue("/root/send/insertdata1/aprytodd", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/aprytodd"));
  2817. model.setvalue("/root/send/insertdata1/aprydayno", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/aprydayno"));
  2818. model.setvalue("/root/send/insertdata1/aprtinstcd", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/aprtinstcd"));
  2819. model.setvalue("/root/send/insertdata1/inducstermrem", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/inducstermrem"));
  2820. model.setvalue("/root/send/insertdata1/nurseflag", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/nurseflag"));
  2821. model.setvalue("/root/send/insertdata1/inducsbrchcd", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/inducsbrchcd"));
  2822. model.setvalue("/root/send/insertdata1/endyn", model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/endyn"));
  2823. if (model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/histstat") == "I") {
  2824. submit("TXPMC02703");
  2825. }
  2826. if (model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/histstat") == "U") {
  2827. submit("TXPMC02704");
  2828. // submit("TXPMC02703");
  2829. }
  2830. if (model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + i + "]/histstat") == "D") {
  2831. submit("TXPMC02704");
  2832. }
  2833. }
  2834. }
  2835. model.removeNodeset("/root/main/icmtgrd/grdicmtinfo");
  2836. model.setvalue("/root/send/primarySearch/type","1");
  2837. model.setvalue("/root/send/primarySearch/pid",model.getvalue("/root/main/ptbsinfo/pid"));
  2838. // 산재환자 기간관리조회
  2839. if(submit("TRPMC02704")){
  2840. for(var i =1; i<=grd_pmchicmt.rows; i++){
  2841. var sorddeptcd = grd_pmchicmt.valueMatrix(i, 4);
  2842. grd_pmchicmt.cellComboNodeset(i,5) ="/root/init/hidden/orddrid[dp = '" + sorddeptcd + "' ]";
  2843. }
  2844. }
  2845. // 산재환자 기간 그룹별조회
  2846. //submit("TRPMC02709");
  2847. // 2009.09.25 - 전체/유효건 보기
  2848. fViewValidData();
  2849. }
  2850. ]]>
  2851. </script>
  2852. </button>
  2853. <input id="input8" ref="/root/main/icpminfo/seqno" visibility="hidden" style="left:560px; top:127px; width:15px; height:19px; "/>
  2854. <button id="btn_save" class="btn5_letter2" style="left:394px; top:127px; width:42px; height:19px; ">
  2855. <caption>수정</caption>
  2856. <script type="javascript" ev:event="DOMActivate">
  2857. <![CDATA[
  2858. var sPid = model.getvalue("/root/main/ptbsinfo/pid");
  2859. var sBiz = model.getvalue("/root/main/icpminfo/bizplcergstseqno");
  2860. if (isNull(sPid)) {
  2861. messageBox("환자번호가 없습니다!!", "I");
  2862. return;
  2863. }
  2864. if (isNull(sBiz)) {
  2865. messageBox("사업장명을 입력 후 저장 하십시오!", "I");
  2866. return;
  2867. }
  2868. if (isNull(model.getValue("/root/main/icpminfo/mngtno"))) {
  2869. messageBox("산재관리번호를 입력 후 저장 하십시오!", "I");
  2870. return;
  2871. }
  2872. model.resetInstanceNode("/root/send/insertdata");
  2873. if (model.getvalue("/root/main/icpminfo/seqno") == "") {
  2874. messageBox("신규 저장이면 [신규]버튼을 누르시고 수정이면 수정할 산재이력을 선택하신 후 정보 수정 후 [수정]버튼을 누르세요", "E999", "");
  2875. return false;
  2876. } else {
  2877. model.setvalue("/root/main/icpminfo/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  2878. model.setvalue("/root/main/icpminfo/endcnts", model.getvalue("/root/main/icpminfo/endcnts"));
  2879. model.setvalue("/root/main/icpminfo/mngtno" , model.getvalue("/root/main/icpminfo/mngtno").removeMask('\n'));
  2880. copyNodeType("/root/send/insertdata", "/root/main/icpminfo", "replace");
  2881. if(submit("TXPMC02713")) {
  2882. // submit("TXPMC02701");
  2883. }
  2884. }
  2885. fInitialize1();
  2886. event.keyCode = 13;
  2887. model.setValue("/root/send/primarySearch1/reference", "1");
  2888. model.makeValue("/root/hidden/pid" , sPid);
  2889. ipt_pid.dispatch("onkeypress");
  2890. //btn_search.dispatch("DOMActivate");
  2891. ]]>
  2892. </script>
  2893. </button>
  2894. <button id="btn_cancel" class="btn5_letter2" style="left:437px; top:127px; width:42px; height:19px; ">
  2895. <caption>삭제</caption>
  2896. <script type="javascript" ev:event="DOMActivate">
  2897. <![CDATA[
  2898. var sPid = model.getvalue("/root/main/ptbsinfo/pid");
  2899. if (isNull(sPid)) {
  2900. messageBox("환자번호가 없습니다!!", "I");
  2901. return;
  2902. }
  2903. var msg = "【 " + model.getValue("/root/main/ptbsinfo/hngnm") + " 】님의 산재/공상이력을"
  2904. copyNodeType("/root/send/insertdata", "/root/main/icpminfo", "replace");
  2905. if (messageBox(msg, "Q001") == "6") {
  2906. submit("TXPMC02702");
  2907. //fInitialize1();
  2908. // btn_search.dispatch("DOMActivate");
  2909. }
  2910. fInitialize1();
  2911. event.keyCode = 13;
  2912. model.setValue("/root/send/primarySearch1/reference", "1");
  2913. model.makeValue("/root/hidden/pid" , sPid);
  2914. ipt_pid.dispatch("onkeypress");
  2915. ]]>
  2916. </script>
  2917. </button>
  2918. <button id="btn_upicmt" class="btn2_letter3" visibility="hidden" style="left:799px; top:378px; width:53px; height:19px; ">
  2919. <caption>행수정</caption>
  2920. <script type="javascript" ev:event="DOMActivate">
  2921. <![CDATA[
  2922. if( isDataCell() ){
  2923. grd_pmchicmt.addstatus(grd_pmchicmt.row, "update");
  2924. model.setvalue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/histstat", "U");
  2925. }
  2926. ]]>
  2927. </script>
  2928. </button>
  2929. <button id="button4" class="btn_sw" visibility="hidden" group="tab" selected="false" style="left:172px; top:547px; width:92px; height:22px; ">
  2930. <caption>휴업급여요양비</caption>
  2931. <toggle case="case3" ev:event="DOMActivate"/>
  2932. </button>
  2933. <select1 id="cbo_endcnts" ref="/root/main/icpminfo/endcnts" class="combo_default" appearance="minimal" style="left:299px; top:281px; width:180px; height:19px; ">
  2934. <choices>
  2935. <itemset nodeset="/root/init/hidden/endcnts">
  2936. <label ref="nm"/>
  2937. <value ref="cd"/>
  2938. </itemset>
  2939. </choices>
  2940. </select1>
  2941. <caption id="caption16" class="cell_1" style="left:204px; top:280px; width:93px; height:23px; ">종결사유</caption>
  2942. <button id="button6" class="btn2_letter5" style="left:273px; top:127px; width:75px; height:19px; ">
  2943. <caption>사업장관리</caption>
  2944. <script type="javascript" ev:event="DOMActivate">
  2945. <![CDATA[
  2946. model.setValue("/root/send/smpmc03700/cond", "0");
  2947. model.setValue("/root/send/smpmc03700/reference", "");
  2948. modal("SMPMC03700", "4", "", "", "", "", "/root/send/smpmc03700", "/root/send/ref");
  2949. submit("TRPMC02708");
  2950. ]]>
  2951. </script>
  2952. </button>
  2953. <button id="btn_roomamt" class="btn2_letter5" style="left:739px; top:127px; width:75px; height:19px; ">
  2954. <caption>병실료차액</caption>
  2955. <script type="javascript" ev:event="DOMActivate">
  2956. <![CDATA[
  2957. if (!isNull(model.getvalue("/root/main/icpminfo/mngtno"))) {
  2958. model.setvalue("/root/send/airasend/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  2959. model.setvalue("/root/send/airasend/mngtno", model.getvalue("/root/main/icpminfo/mngtno"));
  2960. model.setvalue("/root/send/airasend/instcd", getUserInfo("dutplceinstcd"));
  2961. model.setvalue("/root/send/airasend/insukind", model.getValue("/root/main/icpminfo/insukind"));
  2962. //model.setvalue("/root/send/airasend/insukind", "41");
  2963. modal("SMPMC03400_자보병실차액", "", "400", "300", "", "/root/send/airasend", "/root/send/airareceive");
  2964. } else {
  2965. messageBox("환자의 산재등록정보가", "I004");
  2966. }
  2967. ]]>
  2968. </script>
  2969. </button>
  2970. <button id="button10_up" class="icon_top_direction" navindex="-1" style="left:190px; top:378px; width:26px; height:19px; ">
  2971. <caption/>
  2972. <script type="javascript" ev:event="onclick">
  2973. <![CDATA[
  2974. fbutton10_up();
  2975. ]]>
  2976. </script>
  2977. </button>
  2978. <button id="button10_down" class="icon_bottom_direction" navindex="-1" style="left:217px; top:378px; width:26px; height:19px; ">
  2979. <caption/>
  2980. <script type="javascript" ev:event="onclick">
  2981. <![CDATA[
  2982. fbutton10_down();
  2983. ]]>
  2984. </script>
  2985. </button>
  2986. <button id="button10_change" class="btn2_letter8" navindex="-1" visibility="hidden" style="left:81px; top:378px; width:97px; height:19px; ">
  2987. <caption>싱글입력/그룹조회</caption>
  2988. <script type="javascript" ev:event="onclick">
  2989. <![CDATA[
  2990. fbutton10_change();
  2991. ]]>
  2992. </script>
  2993. </button>
  2994. <button id="button9" class="btn2_letter6" navindex="-1" style="left:244px; top:378px; width:86px; height:19px; ">
  2995. <caption>기간이력조회</caption>
  2996. <script type="javascript" ev:event="onclick">
  2997. <![CDATA[
  2998. fbutton10_Search();
  2999. ]]>
  3000. </script>
  3001. </button>
  3002. <button id="button10" class="btn2_letter3" style="left:484px; top:378px; width:53px; height:19px; ">
  3003. <caption>행추가</caption>
  3004. <script type="javascript" ev:event="onclick">
  3005. <![CDATA[
  3006. var currentdate = getCurrentDate();
  3007. grd_newpmchicmt.addRow(grd_newpmchicmt.row, true);
  3008. model.setvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/histstat", "I");
  3009. model.setValue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/chospresn","06"); // 진찰의뢰 기본으로 셋팅 2009.06.03 JHP 수정추가
  3010. model.setValue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/orddd",currentdate);
  3011. model.setValue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/ordfromdd",currentdate);
  3012. model.setValue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/aprytodd",'99991231');
  3013. model.setValue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/reqdd",currentdate);
  3014. model.setValue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/specordyn", "Y"); // 선택으로 기본 셋팅 2009.06.03 JHP 수정추가
  3015. ]]>
  3016. </script>
  3017. </button>
  3018. <button id="button11" class="btn2_letter3" visibility="hidden" style="left:430px; top:378px; width:53px; height:19px; ">
  3019. <caption>행수정</caption>
  3020. <script type="javascript" ev:event="DOMActivate">
  3021. <![CDATA[
  3022. if( isDataCell() ){
  3023. grd_newpmchicmt.addstatus(grd_newpmchicmt.row, "update");
  3024. model.setvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/histstat", "U");
  3025. }
  3026. ]]>
  3027. </script>
  3028. </button>
  3029. <button id="button13" class="btn5_letter2" style="left:711px; top:378px; width:42px; height:19px; ">
  3030. <caption>저장</caption>
  3031. <script type="javascript" ev:event="DOMActivate">
  3032. <![CDATA[
  3033. var i = 1;
  3034. var flag = true;
  3035. while ( i <= grd_newpmchicmt.rows-1) {
  3036. //alert(i);
  3037. if (model.getvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + i + "]/chospresn") == "") {
  3038. window.alert("요양구분은 필히 선택해주셔야 합니다.", "알림");
  3039. flag = false;
  3040. break;
  3041. }
  3042. if (model.getvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + i + "]/ordflag") == "") {
  3043. window.alert("외래/입원 구분은 필히 선택해주셔야 합니다.", "알림");
  3044. flag = false;
  3045. break;
  3046. }
  3047. if (model.getvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + i + "]/orddeptcd") == "") {
  3048. window.alert("진료과는 필히 선택해주셔야 합니다.", "알림");
  3049. flag = false;
  3050. break;
  3051. }
  3052. if (model.getvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + i + "]/specordyn") == "") {
  3053. window.alert("선택진료구분은 필히 입력 해주셔야 합니다.", "알림");
  3054. flag = false;
  3055. break;
  3056. }
  3057. i++;
  3058. }
  3059. if (flag == true) {
  3060. model.setValue("/root/send/newinsertdata1/list", grd_newpmchicmt.getUpdateData());
  3061. model.setvalue("/root/send/newinsertdata1/info/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  3062. model.setvalue("/root/send/newinsertdata1/info/mngtno", model.getvalue("/root/main/icpminfo/mngtno"));
  3063. model.refreshpart("/root/send/newinsertdata1");
  3064. submit("TXPMC02711");
  3065. }
  3066. ]]>
  3067. </script>
  3068. </button>
  3069. <button id="button14" class="btn2_letter3" style="left:592px; top:378px; width:53px; height:19px; ">
  3070. <caption>행삽입</caption>
  3071. <script type="javascript" ev:event="onclick">
  3072. <![CDATA[
  3073. var currentdate = getCurrentDate();
  3074. // grd_pmchicmt.addRow(grd_pmchicmt.row, true);
  3075. grd_newpmchicmt.insertRow(grd_newpmchicmt.row, "below", false);
  3076. // grd_pmchicmt.cellStyle("background-image", grd_pmchicmt.row, 1) = "../../../com/commonweb/images/icon_i.gif";
  3077. model.setvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/histstat", "I");
  3078. model.setValue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/chospresn","06"); // 진찰의뢰 기본으로 셋팅 2009.06.03 JHP 수정추가
  3079. model.setValue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/orddd",currentdate);
  3080. model.setValue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/ordfromdd",currentdate);
  3081. model.setValue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/reqdd",currentdate);
  3082. model.setValue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/specordyn", "Y"); // 선택 기본으로 셋팅 2009.06.03 JHP 수정추가
  3083. ]]>
  3084. </script>
  3085. </button>
  3086. <button id="button17" class="btn2_letter3" style="left:538px; top:378px; width:53px; height:19px; ">
  3087. <caption>행삭제</caption>
  3088. <script type="javascript" ev:event="onclick">
  3089. <![CDATA[
  3090. if (model.getvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/chospresn") != ""){
  3091. grd_newpmchicmt.addstatus(grd_newpmchicmt.row, "delete");
  3092. model.setvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/histstat", "D");
  3093. } else {
  3094. grd_newpmchicmt.removeRow(false);
  3095. }
  3096. ]]>
  3097. </script>
  3098. </button>
  3099. <button id="button18" class="btn2_letter4" style="left:646px; top:378px; width:64px; height:19px; ">
  3100. <caption>엑셀저장</caption>
  3101. <script type="javascript" ev:event="DOMActivate">
  3102. <![CDATA[
  3103. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  3104. if (fileName != "")
  3105. {
  3106. grd_newpmchicmt.saveExcel(fileName, "grd_newpmchicmt", true, true, "", "", true);
  3107. }
  3108. ]]>
  3109. </script>
  3110. </button>
  3111. <button id="button19" class="btn2_letter8" style="left:1021px; top:127px; width:108px; height:19px; ">
  3112. <caption>개별과거이력조회</caption>
  3113. <script type="javascript" ev:event="DOMActivate">
  3114. <![CDATA[
  3115. fBeforeIcpminfo();
  3116. ]]>
  3117. </script>
  3118. </button>
  3119. <button id="btn_insrow" class="btn2_letter3" navindex="8" style="left:869px; top:378px; width:53px; height:19px; ">
  3120. <caption>행복사</caption>
  3121. <script type="javascript" ev:event="DOMActivate">
  3122. <![CDATA[
  3123. var row = grd_pmchicmt.row;
  3124. if(row <= 0){
  3125. messageBox("복사할 행을","C002");
  3126. }
  3127. var copyrow = model.getValue("/root/hidden/icmtrowcopy/row");
  3128. if(copyrow == "0" || copyrow == ""){
  3129. copyrow = "1";
  3130. }
  3131. for(var i = 1; i <= copyrow; i++){
  3132. grd_pmchicmt.AddRow();
  3133. model.copyNode("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row+" ]","/root/main/icmtgrd/grdicmtinfo[" + row +" ]");
  3134. model.setValue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row+" ]/histstat", "I");
  3135. }
  3136. model.refresh();
  3137. ]]>
  3138. </script>
  3139. </button>
  3140. <input id="input2" ref="/root/hidden/icmtrowcopy/row" class="input_default" style="left:853px; top:378px; width:15px; height:19px; "/>
  3141. <!-- comment : 2009.06.23, JHP, 진료과가 2번나와서 확인해보니 입원,외래에 해당하는 진료과가 같이나와서 그러함. 입원외래에 값이 있으면 진료과 중복없이 나옴. -->
  3142. <datagrid id="grd_newpmchicmt" nodeset="/root/main/newicmtgrd/newgrdicmtinfo" class="datagrid2" caption="요양구분^요양구분&#xA;상세^외래/&#xA;입원^진료과^의사^선택진료&#xA;청구여부^요양일련&#xA;번호^일련&#xA;번호^진료과2^의사2^선택진료&#xA;청구여부2^요양일련&#xA;번호2^일련&#xA;번호2^진료과3^의사3^선택진료&#xA;청구여부3^요양일련&#xA;번호3^일련&#xA;번호3^진료과4^의사4^선택진료&#xA;청구여부4^요양일련&#xA;번호4^일련&#xA;번호4^진료과5^의사5^선택진료&#xA;청구여부5^요양일련&#xA;번호5^일련&#xA;번호5^진료과6^의사6^선택진료&#xA;청구여부6^요양일련&#xA;번호6^일련&#xA;번호6^진료과7^의사7^선택진료&#xA;청구여부7^요양일련&#xA;번호7^일련&#xA;번호7^진료과8^의사8^선택진료&#xA;청구여부8^요양일련&#xA;번호8^일련&#xA;번호8^진료과9^의사9^선택진료&#xA;청구여부9^요양일련&#xA;번호9^일련&#xA;번호9^진료과10^의사10^선택진료&#xA;청구여부10^요양일련&#xA;번호10^일련&#xA;번호10^결정통지일^승인시작일^승인종료일^종료여부^산재지사^승인요청일자^진료일자^시작일^종료일^일수^승인기관^참고사항^간병인여부^수정일자^작업자^이력상태^1^2^3^4^5^6^7^8^9^10" colsep="^" colwidth="71, 61, 41, 100, 56, 60, 55, 30, 100, 56, 60, 55, 35, 100, 56, 60, 55, 35, 100, 56, 60, 55, 35, 100, 56, 60, 55, 35, 100, 56, 60, 55, 35, 100, 56, 60, 55, 35, 100, 56, 60, 55, 35, 100, 56, 60, 55, 35, 100, 56, 60, 55, 35, 90, 90, 90, 90, 90, 90, 90, 90, 90, 42, 10, 260, 40, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:403px; width:1194px; height:137px; ">
  3143. <col disabled="true" ref="chospresn" type="combo">
  3144. <choices>
  3145. <itemset nodeset="/root/init/hidden/chosresn">
  3146. <label ref="nm"/>
  3147. <value ref="cd"/>
  3148. </itemset>
  3149. </choices>
  3150. </col>
  3151. <col disabled="true" ref="chosresndetl" type="input" visibility="hidden"/>
  3152. <col disabled="true" ref="ordflag" type="combo" style="text-align:center; ">
  3153. <choices>
  3154. <itemset nodeset="/root/init/P0028list/P0028">
  3155. <label ref="cdnm"/>
  3156. <value ref="cdid"/>
  3157. </itemset>
  3158. </choices>
  3159. </col>
  3160. <col disabled="true" ref="orddeptcd" type="combo" style="left:193px; top:32px; width:82px; height:23px; ">
  3161. <choices>
  3162. <itemset nodeset="/root/init/hidden/orddeptcd">
  3163. <label ref="nm"/>
  3164. <value ref="cd"/>
  3165. </itemset>
  3166. </choices>
  3167. </col>
  3168. <col disabled="true" ref="orddrid" type="combo">
  3169. <choices>
  3170. <itemset nodeset="/root/init/hidden/orddrid">
  3171. <label ref="nm"/>
  3172. <value ref="cd"/>
  3173. </itemset>
  3174. </choices>
  3175. </col>
  3176. <col disabled="true" ref="specordyn" type="combo" style="text-align:center; ">
  3177. <choices>
  3178. <item>
  3179. <label>Y</label>
  3180. <value>Y</value>
  3181. </item>
  3182. <item>
  3183. <label>N</label>
  3184. <value>N</value>
  3185. </item>
  3186. </choices>
  3187. </col>
  3188. <col disabled="true" ref="mtrtseqno" visibility="hidden"/>
  3189. <col disabled="true" ref="seqno" visibility="hidden"/>
  3190. <col disabled="true" ref="orddeptcd2" type="combo">
  3191. <choices>
  3192. <itemset nodeset="/root/init/hidden/orddeptcd">
  3193. <label ref="nm"/>
  3194. <value ref="cd"/>
  3195. </itemset>
  3196. </choices>
  3197. </col>
  3198. <col disabled="true" ref="orddrid2" type="combo" visibility="hidden">
  3199. <choices>
  3200. <itemset nodeset="/root/init/hidden/orddrid">
  3201. <label ref="nm"/>
  3202. <value ref="cd"/>
  3203. </itemset>
  3204. </choices>
  3205. </col>
  3206. <col disabled="true" ref="specordyn2" type="combo" visibility="hidden" style="text-align:center; ">
  3207. <choices>
  3208. <item>
  3209. <label>Y</label>
  3210. <value>Y</value>
  3211. </item>
  3212. <item>
  3213. <label>N</label>
  3214. <value>N</value>
  3215. </item>
  3216. </choices>
  3217. </col>
  3218. <col disabled="true" ref="mtrtseqno2" visibility="hidden"/>
  3219. <col disabled="true" ref="seqno2" visibility="hidden"/>
  3220. <col disabled="true" ref="orddeptcd3" type="combo">
  3221. <choices>
  3222. <itemset nodeset="/root/init/hidden/orddeptcd">
  3223. <label ref="nm"/>
  3224. <value ref="cd"/>
  3225. </itemset>
  3226. </choices>
  3227. </col>
  3228. <col disabled="true" ref="orddrid3" type="combo" visibility="hidden">
  3229. <choices>
  3230. <itemset nodeset="/root/init/hidden/orddrid">
  3231. <label ref="nm"/>
  3232. <value ref="cd"/>
  3233. </itemset>
  3234. </choices>
  3235. </col>
  3236. <col disabled="true" ref="specordyn3" type="combo" visibility="hidden" style="text-align:center; ">
  3237. <choices>
  3238. <item>
  3239. <label>Y</label>
  3240. <value>Y</value>
  3241. </item>
  3242. <item>
  3243. <label>N</label>
  3244. <value>N</value>
  3245. </item>
  3246. </choices>
  3247. </col>
  3248. <col disabled="true" ref="mtrtseqno3" visibility="hidden"/>
  3249. <col disabled="true" ref="seqno3" visibility="hidden"/>
  3250. <col disabled="true" ref="orddeptcd4" type="combo">
  3251. <choices>
  3252. <itemset nodeset="/root/init/hidden/orddeptcd">
  3253. <label ref="nm"/>
  3254. <value ref="cd"/>
  3255. </itemset>
  3256. </choices>
  3257. </col>
  3258. <col disabled="true" ref="orddrid4" type="combo" visibility="hidden">
  3259. <choices>
  3260. <itemset nodeset="/root/init/hidden/orddrid">
  3261. <label ref="nm"/>
  3262. <value ref="cd"/>
  3263. </itemset>
  3264. </choices>
  3265. </col>
  3266. <col disabled="true" ref="specordyn4" type="combo" visibility="hidden" style="text-align:center; ">
  3267. <choices>
  3268. <item>
  3269. <label>Y</label>
  3270. <value>Y</value>
  3271. </item>
  3272. <item>
  3273. <label>N</label>
  3274. <value>N</value>
  3275. </item>
  3276. </choices>
  3277. </col>
  3278. <col disabled="true" ref="mtrtseqno4" visibility="hidden"/>
  3279. <col disabled="true" ref="seqno4" visibility="hidden"/>
  3280. <col disabled="true" ref="orddeptcd5" type="combo">
  3281. <choices>
  3282. <itemset nodeset="/root/init/hidden/orddeptcd">
  3283. <label ref="nm"/>
  3284. <value ref="cd"/>
  3285. </itemset>
  3286. </choices>
  3287. </col>
  3288. <col disabled="true" ref="orddrid5" type="combo" visibility="hidden">
  3289. <choices>
  3290. <itemset nodeset="/root/init/hidden/orddrid">
  3291. <label ref="nm"/>
  3292. <value ref="cd"/>
  3293. </itemset>
  3294. </choices>
  3295. </col>
  3296. <col disabled="true" ref="specordyn5" type="combo" visibility="hidden" style="text-align:center; ">
  3297. <choices>
  3298. <item>
  3299. <label>Y</label>
  3300. <value>Y</value>
  3301. </item>
  3302. <item>
  3303. <label>N</label>
  3304. <value>N</value>
  3305. </item>
  3306. </choices>
  3307. </col>
  3308. <col disabled="true" ref="mtrtseqno5" visibility="hidden"/>
  3309. <col disabled="true" ref="seqno5" visibility="hidden"/>
  3310. <col disabled="true" ref="orddeptcd6" type="combo">
  3311. <choices>
  3312. <itemset nodeset="/root/init/hidden/orddeptcd">
  3313. <label ref="nm"/>
  3314. <value ref="cd"/>
  3315. </itemset>
  3316. </choices>
  3317. </col>
  3318. <col disabled="true" ref="orddrid6" type="combo" visibility="hidden">
  3319. <choices>
  3320. <itemset nodeset="/root/init/hidden/orddrid">
  3321. <label ref="nm"/>
  3322. <value ref="cd"/>
  3323. </itemset>
  3324. </choices>
  3325. </col>
  3326. <col disabled="true" ref="specordyn6" type="combo" visibility="hidden" style="text-align:center; ">
  3327. <choices>
  3328. <item>
  3329. <label>Y</label>
  3330. <value>Y</value>
  3331. </item>
  3332. <item>
  3333. <label>N</label>
  3334. <value>N</value>
  3335. </item>
  3336. </choices>
  3337. </col>
  3338. <col disabled="true" ref="mtrtseqno6" visibility="hidden"/>
  3339. <col disabled="true" ref="seqno6" visibility="hidden"/>
  3340. <col disabled="true" ref="orddeptcd7" type="combo">
  3341. <choices>
  3342. <itemset nodeset="/root/init/hidden/orddeptcd">
  3343. <label ref="nm"/>
  3344. <value ref="cd"/>
  3345. </itemset>
  3346. </choices>
  3347. </col>
  3348. <col disabled="true" ref="orddrid7" type="combo" visibility="hidden">
  3349. <choices>
  3350. <itemset nodeset="/root/init/hidden/orddrid">
  3351. <label ref="nm"/>
  3352. <value ref="cd"/>
  3353. </itemset>
  3354. </choices>
  3355. </col>
  3356. <col disabled="true" ref="specordyn7" type="combo" visibility="hidden" style="text-align:center; ">
  3357. <choices>
  3358. <item>
  3359. <label>Y</label>
  3360. <value>Y</value>
  3361. </item>
  3362. <item>
  3363. <label>N</label>
  3364. <value>N</value>
  3365. </item>
  3366. </choices>
  3367. </col>
  3368. <col disabled="true" ref="mtrtseqno7" visibility="hidden"/>
  3369. <col disabled="true" ref="seqno7" visibility="hidden"/>
  3370. <col disabled="true" ref="orddeptcd8" type="combo">
  3371. <choices>
  3372. <itemset nodeset="/root/init/hidden/orddeptcd">
  3373. <label ref="nm"/>
  3374. <value ref="cd"/>
  3375. </itemset>
  3376. </choices>
  3377. </col>
  3378. <col disabled="true" ref="orddrid8" type="combo" visibility="hidden">
  3379. <choices>
  3380. <itemset nodeset="/root/init/hidden/orddrid">
  3381. <label ref="nm"/>
  3382. <value ref="cd"/>
  3383. </itemset>
  3384. </choices>
  3385. </col>
  3386. <col disabled="true" ref="specordyn8" type="combo" visibility="hidden" style="text-align:center; ">
  3387. <choices>
  3388. <item>
  3389. <label>Y</label>
  3390. <value>Y</value>
  3391. </item>
  3392. <item>
  3393. <label>N</label>
  3394. <value>N</value>
  3395. </item>
  3396. </choices>
  3397. </col>
  3398. <col disabled="true" ref="mtrtseqno8" visibility="hidden"/>
  3399. <col disabled="true" ref="seqno8" visibility="hidden"/>
  3400. <col disabled="true" ref="orddeptcd9" type="combo">
  3401. <choices>
  3402. <itemset nodeset="/root/init/hidden/orddeptcd">
  3403. <label ref="nm"/>
  3404. <value ref="cd"/>
  3405. </itemset>
  3406. </choices>
  3407. </col>
  3408. <col disabled="true" ref="orddrid9" type="combo" visibility="hidden">
  3409. <choices>
  3410. <itemset nodeset="/root/init/hidden/orddrid">
  3411. <label ref="nm"/>
  3412. <value ref="cd"/>
  3413. </itemset>
  3414. </choices>
  3415. </col>
  3416. <col disabled="true" ref="specordyn9" type="combo" visibility="hidden" style="text-align:center; ">
  3417. <choices>
  3418. <item>
  3419. <label>Y</label>
  3420. <value>Y</value>
  3421. </item>
  3422. <item>
  3423. <label>N</label>
  3424. <value>N</value>
  3425. </item>
  3426. </choices>
  3427. </col>
  3428. <col disabled="true" ref="mtrtseqno9" visibility="hidden"/>
  3429. <col disabled="true" ref="seqno9" visibility="hidden"/>
  3430. <col disabled="true" ref="orddeptcd10" type="combo">
  3431. <choices>
  3432. <itemset nodeset="/root/init/hidden/orddeptcd">
  3433. <label ref="nm"/>
  3434. <value ref="cd"/>
  3435. </itemset>
  3436. </choices>
  3437. </col>
  3438. <col disabled="true" ref="orddrid10" type="combo" visibility="hidden">
  3439. <choices>
  3440. <itemset nodeset="/root/init/hidden/orddrid">
  3441. <label ref="nm"/>
  3442. <value ref="cd"/>
  3443. </itemset>
  3444. </choices>
  3445. </col>
  3446. <col disabled="true" ref="specordyn10" type="combo" visibility="hidden" style="text-align:center; ">
  3447. <choices>
  3448. <item>
  3449. <label>Y</label>
  3450. <value>Y</value>
  3451. </item>
  3452. <item>
  3453. <label>N</label>
  3454. <value>N</value>
  3455. </item>
  3456. </choices>
  3457. </col>
  3458. <col disabled="true" ref="mtrtseqno10" visibility="hidden"/>
  3459. <col disabled="true" ref="seqno10" visibility="hidden"/>
  3460. <col disabled="true" ref="reqdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  3461. <col disabled="true" ref="orddd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  3462. <col disabled="true" ref="ordfromdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  3463. <col disabled="true" ref="ordtodd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  3464. <col ref="endyn" type="combo" style="text-align:center; ">
  3465. <choices>
  3466. <item>
  3467. <label>Y</label>
  3468. <value>Y</value>
  3469. </item>
  3470. <item>
  3471. <label>N</label>
  3472. <value>N</value>
  3473. </item>
  3474. </choices>
  3475. </col>
  3476. <col ref="inducsbrchcd" type="combo" style="text-align:center; ">
  3477. <choices>
  3478. <itemset nodeset="/root/init/hidden/indulist">
  3479. <label ref="nm"/>
  3480. <value ref="cd"/>
  3481. </itemset>
  3482. </choices>
  3483. </col>
  3484. <col disabled="true" ref="aprydd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  3485. <col disabled="true" ref="apryfromdd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  3486. <col disabled="true" ref="aprytodd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  3487. <col disabled="true" ref="aprydayno" type="input" style="text-align:center; "/>
  3488. <col ref="aprtinstcd" type="input" style="left:901px; top:25px; width:80px; height:25px; text-align:center; "/>
  3489. <col disabled="true" ref="inducstermrem" type="inputbutton"/>
  3490. <col disabled="true" ref="nurseflag" type="combo" visibility="hidden">
  3491. <choices>
  3492. <item>
  3493. <label>Y</label>
  3494. <value>Y</value>
  3495. </item>
  3496. <item>
  3497. <label>N</label>
  3498. <value>N</value>
  3499. </item>
  3500. </choices>
  3501. </col>
  3502. <col ref="lastupdtdt" visibility="hidden"/>
  3503. <col ref="lastupdtrid" visibility="hidden"/>
  3504. <col ref="histstat" visibility="hidden"/>
  3505. <col disabled="true" ref="orgspecordyn" visibility="hidden"/>
  3506. <col disabled="true" ref="orgspecordyn2" visibility="hidden"/>
  3507. <col disabled="true" ref="orgspecordyn3" visibility="hidden"/>
  3508. <col disabled="true" ref="orgspecordyn4" visibility="hidden"/>
  3509. <col disabled="true" ref="orgspecordyn5" visibility="hidden"/>
  3510. <col disabled="true" ref="orgspecordyn6" visibility="hidden"/>
  3511. <col disabled="true" ref="orgspecordyn7" visibility="hidden"/>
  3512. <col disabled="true" ref="orgspecordyn8" visibility="hidden"/>
  3513. <col disabled="true" ref="orgspecordyn9" visibility="hidden"/>
  3514. <col disabled="true" ref="orgspecordyn10" visibility="hidden"/>
  3515. <script type="javascript" ev:event="xforms-select">
  3516. <![CDATA[
  3517. if (grd_newpmchicmt.col == 4){
  3518. fOrdDrSet(grd_newnewpmchicmt);
  3519. }
  3520. if (grd_newpmchicmt.col == 3){
  3521. var sIO = grd_newpmchicmt.valueMatrix(grd_newpmchicmt.row, 3);
  3522. if (sIO == "E") {
  3523. sIO = "I";
  3524. }
  3525. grd_newpmchicmt.cellComboNodeset(grd_newpmchicmt.row,4) ="/root/init/hidden/orddeptcd[io = '" + sIO + "' ]";
  3526. grd_newpmchicmt.refresh();
  3527. }
  3528. ]]>
  3529. </script>
  3530. <script type="javascript" ev:event="DOMFocusOut">
  3531. <![CDATA[
  3532. window.setPopupMenu(false);
  3533. ]]>
  3534. </script>
  3535. <script type="javascript" ev:event="xforms-value-changed">
  3536. <![CDATA[
  3537. if (model.getvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/histstat") != "I"){
  3538. grd_newpmchicmt.addstatus(grd_newpmchicmt.row, "update");
  3539. model.setvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/histstat", "U");
  3540. }
  3541. //승인종료일에 따른 승인일수 계산
  3542. if (grd_newpmchicmt.col == 13 && grd_newpmchicmt.valueMatrix(grd_newpmchicmt.row,12) != ""){
  3543. var diffDate = getDateInterval(model.getvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/apryfromdd"), model.getvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/aprytodd"));
  3544. grd_newpmchicmt.valueMatrix(grd_newpmchicmt.row,14) = diffDate + 1;
  3545. }
  3546. //승인일수에 따른 승인종료일 계산
  3547. if (grd_newpmchicmt.col == 14 && grd_newpmchicmt.valueMatrix(grd_newpmchicmt.row,12) != ""){
  3548. var apryFromDay = model.getvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/apryfromdd");
  3549. var apryDayNo = parseInt(model.getvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/aprydayno"));
  3550. var addDy = apryFromDay.toDate().getAddDate(apryDayNo,"D");
  3551. addDy = addDy.getDateFormat();
  3552. grd_newpmchicmt.valueMatrix(grd_newpmchicmt.row,13) = addDy-1;
  3553. }
  3554. ]]>
  3555. </script>
  3556. <script type="javascript" ev:event="onbuttonclick">
  3557. <![CDATA[
  3558. var row = grd_newpmchicmt.row;
  3559. var col = grd_newpmchicmt.col;
  3560. var status = grd_newpmchicmt.rowStatus(row);
  3561. if( col == '23') {
  3562. if (grp_spclspec.visible == true) {
  3563. grp_spclspec.visible = false;
  3564. } else {
  3565. //model.setValue("/root/hidden/spclspec", model.getValue("/root/main/list1/listatsu[" + grd_pmchicmt.mouseRow + "]/spclspec"));
  3566. //model.setValue("/root/hidden/oldspclspec", model.getValue("/root/main/list1/listatsu[" + grd_pmchicmt.mouseRow + "]/spclspec"));
  3567. model.setValue("/root/hidden/spclspecrem/spclspec", model.getValue("/root/main/newicmtgrd/newgrdicmtinfo[" + row + "]/inducstermrem"));
  3568. model.setValue("/root/hidden/spclspecrem/oldspclspec", model.getValue("/root/main/newicmtgrd/newgrdicmtinfo[" + row + "]/inducstermrem"));
  3569. grp_spclspec.visible = true;
  3570. model.setFocus("tar_spclspec");
  3571. tar_spclspec.refresh();
  3572. }
  3573. }
  3574. ]]>
  3575. </script>
  3576. </datagrid>
  3577. <!-- 수정이력 : 20090825 : JHP, 승인일자 -> 결정통지일자로 명칭 변경 -->
  3578. <!-- 20091015 JHP 수정내용 변경요청 윤영옥 명칭변경 결정통지일자 => 결정통지일-->
  3579. <datagrid id="grd_pmchicmt" nodeset="/root/main/icmtgrd/grdicmtinfo" caption="요양구분^요양구분상세^외래/입원^진료과^의사^선택진료청구여부^결정통지일^승인시작일^승인종료일^종료여부^산재지사^승인요청일자^진료일자^시작일^종료일^일수^승인기관^참고사항^간병인여부^수정일자^작업자^이력상태^일련번호^요양일련번호" colsep="^" colwidth="92, 94, 67, 96, 75, 105, 90, 90, 90, 64, 90, 90, 90, 90, 90, 42, 40, 260, 40, 40, 40, 56, 40, 40" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="free" style="left:0px; top:403px; width:1194px; height:137px; ">
  3580. <col ref="chospresn" type="combo">
  3581. <choices>
  3582. <itemset nodeset="/root/init/hidden/chosresn">
  3583. <label ref="nm"/>
  3584. <value ref="cd"/>
  3585. </itemset>
  3586. </choices>
  3587. </col>
  3588. <col ref="chosresndetl" type="input" visibility="hidden"/>
  3589. <col ref="ordflag" type="combo" style="text-align:center; ">
  3590. <choices>
  3591. <itemset nodeset="/root/init/P0028list/P0028">
  3592. <label ref="cdnm"/>
  3593. <value ref="cdid"/>
  3594. </itemset>
  3595. </choices>
  3596. </col>
  3597. <col ref="orddeptcd" type="combo">
  3598. <choices>
  3599. <itemset nodeset="/root/init/hidden/orddeptcd">
  3600. <label ref="nm"/>
  3601. <value ref="cd"/>
  3602. </itemset>
  3603. </choices>
  3604. </col>
  3605. <col ref="orddrid" type="combo">
  3606. <choices>
  3607. <itemset nodeset="/root/init/hidden/orddrid">
  3608. <label ref="nm"/>
  3609. <value ref="cd"/>
  3610. </itemset>
  3611. </choices>
  3612. </col>
  3613. <col ref="specordyn" type="combo" style="text-align:center; ">
  3614. <choices>
  3615. <item>
  3616. <label>Y</label>
  3617. <value>Y</value>
  3618. </item>
  3619. <item>
  3620. <label>N</label>
  3621. <value>N</value>
  3622. </item>
  3623. </choices>
  3624. </col>
  3625. <col ref="aprydd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  3626. <col ref="apryfromdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  3627. <col ref="aprytodd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  3628. <col ref="endyn" type="combo" style="text-align:center; ">
  3629. <choices>
  3630. <item>
  3631. <label>Y</label>
  3632. <value>Y</value>
  3633. </item>
  3634. <item>
  3635. <label>N</label>
  3636. <value>N</value>
  3637. </item>
  3638. </choices>
  3639. </col>
  3640. <col ref="inducsbrchcd" type="combo" style="text-align:center; ">
  3641. <choices>
  3642. <itemset nodeset="/root/init/hidden/indulist">
  3643. <label ref="nm"/>
  3644. <value ref="cd"/>
  3645. </itemset>
  3646. </choices>
  3647. </col>
  3648. <col ref="reqdd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  3649. <col ref="orddd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  3650. <col ref="ordfromdd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  3651. <col ref="ordtodd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  3652. <col ref="aprydayno" type="input" style="text-align:center; "/>
  3653. <col ref="aprtinstcd" type="input" visibility="hidden" style="left:901px; top:25px; width:80px; height:25px; text-align:center; "/>
  3654. <col ref="inducstermrem" type="inputbutton"/>
  3655. <col ref="nurseflag" type="combo" visibility="hidden">
  3656. <choices>
  3657. <item>
  3658. <label>Y</label>
  3659. <value>Y</value>
  3660. </item>
  3661. <item>
  3662. <label>N</label>
  3663. <value>N</value>
  3664. </item>
  3665. </choices>
  3666. </col>
  3667. <col ref="lastupdtdt" visibility="hidden"/>
  3668. <col ref="lastupdtrid" visibility="hidden"/>
  3669. <col disabled="true" ref="histstat" visibility="visible"/>
  3670. <col ref="seqno" visibility="hidden"/>
  3671. <col ref="mtrtseqno" visibility="hidden"/>
  3672. <script type="javascript" ev:event="xforms-select">
  3673. <![CDATA[
  3674. if (grd_pmchicmt.col == 4){
  3675. fOrdDrSet(grd_pmchicmt);
  3676. }
  3677. if (grd_pmchicmt.col == 3){
  3678. var sIO = grd_pmchicmt.valueMatrix(grd_pmchicmt.row, 3);
  3679. if (sIO == "E") {
  3680. sIO = "I";
  3681. }
  3682. grd_pmchicmt.cellComboNodeset(grd_pmchicmt.row,4) ="/root/init/hidden/orddeptcd[io = '" + sIO + "' ]";
  3683. grd_pmchicmt.refresh();
  3684. }
  3685. ]]>
  3686. </script>
  3687. <script type="javascript" ev:event="DOMFocusOut">
  3688. <![CDATA[
  3689. window.setPopupMenu(false);
  3690. ]]>
  3691. </script>
  3692. <script type="javascript" ev:event="xforms-value-changed">
  3693. <![CDATA[
  3694. if (model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/histstat") != "I"){
  3695. grd_pmchicmt.addstatus(grd_pmchicmt.row, "update");
  3696. model.setvalue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/histstat", "U");
  3697. }
  3698. //승인종료일에 따른 승인일수 계산
  3699. if (grd_pmchicmt.col == 13 && grd_pmchicmt.valueMatrix(grd_pmchicmt.row,12) != ""){
  3700. var diffDate = getDateInterval(model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/apryfromdd"), model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/aprytodd"));
  3701. grd_pmchicmt.valueMatrix(grd_pmchicmt.row,14) = diffDate + 1;
  3702. }
  3703. //승인일수에 따른 승인종료일 계산
  3704. if (grd_pmchicmt.col == 14 && grd_pmchicmt.valueMatrix(grd_pmchicmt.row,12) != ""){
  3705. var apryFromDay = model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/apryfromdd");
  3706. var apryDayNo = parseInt(model.getvalue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/aprydayno"));
  3707. var addDy = apryFromDay.toDate().getAddDate(apryDayNo,"D");
  3708. addDy = addDy.getDateFormat();
  3709. grd_pmchicmt.valueMatrix(grd_pmchicmt.row,13) = addDy-1;
  3710. }
  3711. // 요양구분이 진료의뢰일때는 처음에 선택진료청구여부는 Y로 셋팅한다. 추가 : 2009.06.22
  3712. if(grd_pmchicmt.colRef("chospresn") == 1){
  3713. var chospresnvalue = grd_pmchicmt.valueMatrix(grd_pmchicmt.row, grd_pmchicmt.colRef("chospresn"));
  3714. if(chospresnvalue == "06"){
  3715. grd_pmchicmt.valueMatrix(grd_pmchicmt.row, grd_pmchicmt.colRef("specordyn")) = "Y";
  3716. grd_pmchicmt.refresh();
  3717. }
  3718. }
  3719. ]]>
  3720. </script>
  3721. <script type="javascript" ev:event="onbuttonclick">
  3722. <![CDATA[
  3723. var row = grd_pmchicmt.row;
  3724. var col = grd_pmchicmt.col;
  3725. var status = grd_pmchicmt.rowStatus(row);
  3726. if( col == '18') {
  3727. if (grp_spclspec.visible == true) {
  3728. grp_spclspec.visible = false;
  3729. } else {
  3730. //model.setValue("/root/hidden/spclspec", model.getValue("/root/main/list1/listatsu[" + grd_pmchicmt.mouseRow + "]/spclspec"));
  3731. //model.setValue("/root/hidden/oldspclspec", model.getValue("/root/main/list1/listatsu[" + grd_pmchicmt.mouseRow + "]/spclspec"));
  3732. model.setValue("/root/hidden/spclspecrem/spclspec", model.getValue("/root/main/icmtgrd/grdicmtinfo[" + row + "]/inducstermrem"));
  3733. model.setValue("/root/hidden/spclspecrem/oldspclspec", model.getValue("/root/main/icmtgrd/grdicmtinfo[" + row + "]/inducstermrem"));
  3734. grp_spclspec.visible = true;
  3735. model.setFocus("tar_spclspec");
  3736. tar_spclspec.refresh();
  3737. }
  3738. }
  3739. ]]>
  3740. </script>
  3741. </datagrid>
  3742. <!-- group id="grp_spclspec" visibility="hidden" style="left:375px; top:180px; width:430px; height:250px; " -->
  3743. <button id="button20" class="btn2_letter8" style="left:77px; top:127px; width:108px; height:19px; ">
  3744. <caption>후유증상진단관리</caption>
  3745. <script type="javascript" ev:event="DOMActivate">
  3746. <![CDATA[
  3747. modal("SMPMC06700_산재후유증상관리", "", "400", "300", "", "", "");
  3748. ]]>
  3749. </script>
  3750. </button>
  3751. <button id="button21" class="btn2_letter10" style="left:608px; top:127px; width:130px; height:19px; ">
  3752. <caption>후유증상진단개별등록</caption>
  3753. <script type="javascript" ev:event="DOMActivate">
  3754. <![CDATA[
  3755. if (!isNull(model.getvalue("/root/main/icpmgrd/grdicpminfo[" + grd_icpminfo.row + "]/pid"))) {
  3756. model.setvalue("/root/send/indcaselist/pid", model.getvalue("/root/main/icpmgrd/grdicpminfo[" + grd_icpminfo.row + "]/pid"));
  3757. model.setvalue("/root/send/indcaselist/mngtno", model.getvalue("/root/main/icpmgrd/grdicpminfo[" + grd_icpminfo.row + "]/mngtno"));
  3758. model.setvalue("/root/send/indcaselist/acddd", model.getvalue("/root/main/icpmgrd/grdicpminfo[" + grd_icpminfo.row + "]/acddd"));
  3759. model.setvalue("/root/send/indcaselist/inducsbrchcd", model.getvalue("/root/main/icpmgrd/grdicpminfo[" + grd_icpminfo.row + "]/inducsbrchcd"));
  3760. model.setvalue("/root/send/indcaselist/hngnm", model.getvalue("/root/main/icpmgrd/grdicpminfo[" + grd_icpminfo.row + "]/hngnm"));
  3761. model.setvalue("/root/send/indcaselist/rrgstno", model.getvalue("/root/main/icpmgrd/grdicpminfo[" + grd_icpminfo.row + "]/rrgstno"));
  3762. } else {
  3763. messageBox("환자의 산재이력 선택정보가 ", "I004");
  3764. }
  3765. modal("SPPMC02900_산재후유증상개별등록", "", "400", "300", "", "/root/send/indcaselist", "/root/send/search");
  3766. ]]>
  3767. </script>
  3768. </button>
  3769. <select id="checkbox1" ref="/root/hidden/viewoption" overflow="visible" appearance="full" style="left:340px; top:380px; width:45px; height:20px; border-style:none; ">
  3770. <choices>
  3771. <item>
  3772. <label>전체</label>
  3773. <value>Y</value>
  3774. </item>
  3775. </choices>
  3776. <script type="javascript" ev:event="xforms-value-changed">
  3777. <![CDATA[
  3778. // 유효건/전체 보기 - 2009.09.25
  3779. fViewValidData();
  3780. ]]>
  3781. </script>
  3782. </select>
  3783. <select1 id="cmb_bizplcenm" ref="/root/main/icpminfo/bizplcergstseqno" class="input_essential" appearance="minimal" editmode="search" itemcount="30" showvalue="true" style="left:299px; top:231px; width:180px; height:19px; ">
  3784. <choices>
  3785. <itemset nodeset="/root/init/hidden/bizplce">
  3786. <label ref="nm"/>
  3787. <value ref="cd"/>
  3788. </itemset>
  3789. </choices>
  3790. </select1>
  3791. <button id="button29" class="btn5_letter2" style="left:350px; top:127px; width:42px; height:19px; ">
  3792. <caption>신규</caption>
  3793. <script type="javascript" ev:event="DOMActivate">
  3794. <![CDATA[
  3795. var sPid = model.getvalue("/root/main/ptbsinfo/pid");
  3796. var sBiz = model.getvalue("/root/main/icpminfo/bizplcergstseqno");
  3797. if (isNull(sPid)) {
  3798. messageBox("환자번호가 없습니다!!", "I");
  3799. return;
  3800. }
  3801. if (isNull(sBiz)) {
  3802. messageBox("사업장명을 입력 후 저장 하십시오!", "I");
  3803. return;
  3804. }
  3805. if (isNull(model.getValue("/root/main/icpminfo/mngtno"))) {
  3806. messageBox("산재관리번호를 입력 후 저장 하십시오!", "I");
  3807. return;
  3808. }
  3809. model.resetInstanceNode("/root/send/insertdata");
  3810. //if (model.getvalue("/root/main/icpminfo/seqno") == "") {
  3811. model.setvalue("/root/main/icpminfo/seqno", "1");
  3812. model.setvalue("/root/main/icpminfo/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  3813. model.setvalue("/root/main/icpminfo/mngtno" , model.getvalue("/root/main/icpminfo/mngtno").removeMask('\n'));
  3814. copyNodeType("/root/send/insertdata", "/root/main/icpminfo", "replace");
  3815. submit("TXPMC02701");
  3816. // } else {
  3817. // model.setvalue("/root/main/icpminfo/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  3818. // model.setvalue("/root/main/icpminfo/endcnts", model.getvalue("/root/main/icpminfo/endcnts"));
  3819. // model.setvalue("/root/main/icpminfo/mngtno" , model.getvalue("/root/main/icpminfo/mngtno").removeMask('\n'));
  3820. // copyNodeType("/root/send/insertdata", "/root/main/icpminfo", "replace");
  3821. // if(submit("TXPMC02701")) {
  3822. // // submit("TXPMC02702");
  3823. // }
  3824. // }
  3825. fInitialize1();
  3826. event.keyCode = 13;
  3827. model.setValue("/root/send/primarySearch1/reference", "1");
  3828. model.makeValue("/root/hidden/pid" , sPid);
  3829. ipt_pid.dispatch("onkeypress");
  3830. //btn_search.dispatch("DOMActivate");
  3831. ]]>
  3832. </script>
  3833. </button>
  3834. <caption id="caption13" class="cell_1" style="left:204px; top:203px; width:93px; height:23px; vertical-align:middle; ">산재지사</caption>
  3835. <select1 id="combo1" ref="/root/main/icpminfo/inducsbrchcd" class="combo_default" appearance="minimal" editmode="search" itemcount="30" style="left:299px; top:205px; width:180px; height:19px; ">
  3836. <choices>
  3837. <itemset nodeset="/root/init/hidden/indulist">
  3838. <label ref="nm"/>
  3839. <value ref="cd"/>
  3840. </itemset>
  3841. </choices>
  3842. </select1>
  3843. <button id="btn_remfact" class="btn2_letter6" style="left:1108px; top:50px; width:86px; height:19px; ">
  3844. <caption>참고사항저장</caption>
  3845. <script type="javascript" ev:event="DOMActivate">
  3846. <![CDATA[
  3847. if (messageBox("환자 참고 사항을 저장하시겠습니까?", "Q999") == 6) {
  3848. model.makeValue("/root/temp/ptbs/remfact", "");
  3849. model.makeValue("/root/send/ptbs/pid", model.getValue("/root/main/ptbsinfo/pid"));
  3850. model.makeValue("/root/send/ptbs/remfact", model.getValue("/root/main/ptbsinfo/remfact"));
  3851. submit("TXPMC02714", false);
  3852. model.setValue("/root/main/ptbsinfo/remfact", model.getValue("/root/temp/ptbs/remfact"));
  3853. textarea2.refresh();
  3854. }
  3855. ]]>
  3856. </script>
  3857. </button>
  3858. <button id="btn_pidsearch" class="icon_search" style="left:56px; top:77px; width:16px; height:16px; ">
  3859. <caption/>
  3860. <script type="javascript" ev:event="DOMActivate">
  3861. <![CDATA[
  3862. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/source", "/root/send");
  3863. if (model.getValue("/root/main/popupendflag") == "ok") {
  3864. model.resetInstanceNode("/root/main/popupendflag");
  3865. var spid = model.getValue("/root/main/patinfo/patinfolist/pid");
  3866. if (spid == null || spid == "" || spid == " ") {
  3867. return false;
  3868. }
  3869. model.setValue("/root/main/ptbsinfo/pid", spid);
  3870. fGetPatInfo();
  3871. }
  3872. ]]>
  3873. </script>
  3874. </button>
  3875. <group id="grp_spclspec" visibility="hidden" style="left:360px; top:120px; width:430px; height:250px; ">
  3876. <line id="line13" class="line_1" style="x1:0px; y1:20px; x2:430px; y2:20px; "/>
  3877. <caption id="caption22" class="tit_2" style="left:5px; top:5px; width:126px; height:14px; ">기간관리 참고사항</caption>
  3878. <textarea id="tar_spclspec" ref="/root/hidden/spclspecrem/spclspec" style="left:0px; top:25px; width:430px; height:190px; "/>
  3879. <button id="btn_memosave" class="btn4_letter2" style="left:310px; top:220px; width:56px; height:22px; ">
  3880. <caption>확인</caption>
  3881. <script type="javascript" ev:event="DOMActivate">
  3882. <![CDATA[
  3883. if(grd_pmchicmt.visible == true){
  3884. model.setValue("/root/main/icmtgrd/grdicmtinfo["+grd_pmchicmt.row+"]/inducstermrem", model.getValue("/root/hidden/spclspecrem/spclspec"));
  3885. }else{
  3886. model.setValue("/root/main/newicmtgrd/newgrdicmtinfo["+grd_newpmchicmt.row+"]/inducstermrem", model.getValue("/root/hidden/spclspecrem/spclspec"));
  3887. }
  3888. grp_spclspec.visible = false;
  3889. // 내용이 변경되면 update 상태 처리
  3890. var oldspclspec = model.getValue("/root/hidden/spclspecrem/oldspclspec");
  3891. var spclspec = model.getValue("/root/hidden/spclspecrem/spclspec");
  3892. if (oldspclspec != spclspec) {
  3893. if(grd_pmchicmt.visible == true){
  3894. var status = grd_pmchicmt.rowstatus(grd_pmchicmt.row);
  3895. if (status == 0) {
  3896. grd_pmchicmt.rowstatus(grd_pmchicmt.row) = 2;
  3897. model.setvalue("/root/main/icmtgrd/grdicmtinfo[" + grd_pmchicmt.row + "]/histstat", "U");
  3898. }
  3899. }else{
  3900. var status = grd_newpmchicmt.rowstatus(grd_newpmchicmt.row);
  3901. if (status == 0) {
  3902. grd_newpmchicmt.rowstatus(grd_newpmchicmt.row) = 2;
  3903. model.setvalue("/root/main/newicmtgrd/newgrdicmtinfo[" + grd_newpmchicmt.row + "]/histstat", "U");
  3904. }
  3905. }
  3906. }
  3907. ]]>
  3908. </script>
  3909. </button>
  3910. <button id="button8" class="btn4_letter2" style="left:370px; top:220px; width:56px; height:22px; ">
  3911. <caption>취소</caption>
  3912. <script type="javascript" ev:event="DOMActivate">
  3913. <![CDATA[
  3914. grp_spclspec.visible = false;
  3915. ]]>
  3916. </script>
  3917. </button>
  3918. </group>
  3919. <caption id="caption33" style="left:399px; top:379px; width:400px; height:20px; color:#ff0000; ">※보조유형이 "후유증상"인 경우, 요양구분이 "후유증상"만 조회됩니다.</caption>
  3920. </group>
  3921. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  3922. <button id="button24" class="btn3_letter7" disabled="true" visibility="hidden" style="left:118px; top:5px; width:116px; height:22px; ">
  3923. <caption>산재연장신청서</caption>
  3924. </button>
  3925. <button id="button22" class="btn3_letter7" disabled="true" visibility="hidden" style="left:0px; top:5px; width:116px; height:22px; ">
  3926. <caption>산재최초신청서</caption>
  3927. </button>
  3928. <button id="button15" class="btn3_letter5" style="left:270px; top:5px; width:92px; height:22px; ">
  3929. <caption>진료비내역</caption>
  3930. <script type="javascript" ev:event="DOMActivate">
  3931. <![CDATA[
  3932. model.setValue("/root/send/SMPAI0020/pid", model.getValue("/root/main/ptbsinfo/pid"));
  3933. modal("SMPAI00200", "3", "", "", "", "", "/root/send/SMPAI0020", "/root/send");
  3934. ]]>
  3935. </script>
  3936. </button>
  3937. <button id="button23" class="btn3_letter4" style="left:106px; top:5px; width:80px; height:22px; ">
  3938. <caption>내원내역</caption>
  3939. <script type="javascript" ev:event="DOMActivate">
  3940. <![CDATA[
  3941. modal("SMPMC01900", "3", "", "", "", "", "/root/main/ptbsinfo/pid", "/root/send/pid");
  3942. ]]>
  3943. </script>
  3944. </button>
  3945. <button id="button26" class="btn3_letter4" style="left:188px; top:5px; width:80px; height:22px; ">
  3946. <caption>입원예약</caption>
  3947. <script type="javascript" ev:event="DOMActivate">
  3948. <![CDATA[
  3949. modal("SMPMI00200", "3", "", "", "", "", "/root/main/ptbsinfo/pid", "/root/main/ptbspatinfo/pid");
  3950. ]]>
  3951. </script>
  3952. </button>
  3953. <button id="btn_clear" class="btn4_letter3" style="left:1124px; top:5px; width:68px; height:22px; font-size:11px; ">
  3954. <caption>초기화</caption>
  3955. <script type="javascript" ev:event="DOMActivate">
  3956. <![CDATA[
  3957. fInitialize();
  3958. ]]>
  3959. </script>
  3960. </button>
  3961. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  3962. <button id="button7" class="btn3_letter6" style="left:0px; top:5px; width:104px; height:22px; ">
  3963. <caption>신환환자등록</caption>
  3964. <script type="javascript" ev:event="DOMActivate">
  3965. <![CDATA[
  3966. modal("SMPMC01400", "3", "", "", "", "", "/root/main/ptbspatinfo/pid", "/root/send/pid");
  3967. ]]>
  3968. </script>
  3969. </button>
  3970. <button id="button25" class="btn4_letter4" style="left:1044px; top:5px; width:80px; height:22px; font-size:11px; ">
  3971. <caption>전체저장</caption>
  3972. <script type="javascript" ev:event="DOMActivate">
  3973. <![CDATA[
  3974. var chk = messageBox("1. 전체저장시 사용자 실수에 의한 저장이 발생될수 있습니다. \n2. 기간관리 여러건 등록시 전체저장은 오류를 야기합니다. \n\n","Q003");
  3975. if(chk == "6"){
  3976. // 산재환자 마스터저장
  3977. var sPid = model.getvalue("/root/main/ptbsinfo/pid");
  3978. if (isNull(sPid)) {
  3979. messageBox("환자번호가 없습니다!!", "I");
  3980. return;
  3981. }
  3982. model.resetInstanceNode("/root/send/insertdata");
  3983. if (model.getvalue("/root/main/icpminfo/seqno") == "") {
  3984. if (grd_icpminfo.rows == 1) {
  3985. model.setvalue("/root/main/icpminfo/seqno", "1");
  3986. } else {
  3987. model.setvalue("/root/main/icpminfo/seqno", grd_icpminfo.rows + 1);
  3988. }
  3989. model.setvalue("/root/main/icpminfo/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  3990. model.setvalue("/root/main/icpminfo/endcnts", model.getvalue("/root/main/icpminfo/endcnts"));
  3991. model.setvalue("/root/main/icpminfo/mngtno" , model.getvalue("/root/main/icpminfo/mngtno").removeMask('\n'));
  3992. copyNodeType("/root/send/insertdata", "/root/main/icpminfo", "replace");
  3993. submit("TXPMC02701");
  3994. } else {
  3995. model.setvalue("/root/main/icpminfo/pid", model.getvalue("/root/main/ptbsinfo/pid"));
  3996. model.setvalue("/root/main/icpminfo/endcnts", model.getvalue("/root/main/icpminfo/endcnts"));
  3997. model.setvalue("/root/main/icpminfo/mngtno" , model.getvalue("/root/main/icpminfo/mngtno").removeMask('\n'));
  3998. copyNodeType("/root/send/insertdata", "/root/main/icpminfo", "replace");
  3999. if(submit("TXPMC02701")) {
  4000. submit("TXPMC02702");
  4001. }
  4002. }
  4003. // 산재환자 기간관리 저장
  4004. btn_saveicmt.dispatch("DOMActivate");
  4005. // 산재환자 상병관리 저장
  4006. btn_saveicsw.dispatch("DOMActivate");
  4007. }
  4008. fInitialize1();
  4009. event.keyCode = 13;
  4010. model.setValue("/root/send/primarySearch1/reference", "1");
  4011. model.makeValue("/root/hidden/pid" , sPid);
  4012. ipt_pid.dispatch("onkeypress");
  4013. ]]>
  4014. </script>
  4015. </button>
  4016. <button id="button27" class="btn3_letter7" visibility="hidden" style="left:364px; top:5px; width:116px; height:22px; ">
  4017. <caption>교통비지급내역</caption>
  4018. <script type="javascript" ev:event="DOMActivate">
  4019. <![CDATA[
  4020. setParameter("SPPMC09000_FLAG" , "carfare")
  4021. setParameter("SPPMC09000_PID" , model.getValue("/root/main/ptbsinfo/pid")); //환자번호
  4022. setParameter("SPPMC09000_HNGNM" , model.getValue("/root/main/ptbsinfo/hngnm")); //환자명
  4023. setParameter("SPPMC09000_RRGSTNO" , model.getValue("/root/main/ptbsinfo/rrgstno")); //주민번호
  4024. setParameter("SPPMC09000_MNGTNO" , model.getValue("/root/main/icpminfo/mngtno")); //산재관리번호
  4025. setParameter("SPPMC09000_BIZPLCE" , model.getValue("/root/main/icpminfo/bizplcergstseqno")); //사업장명
  4026. setParameter("SPPMC09000_ACDDD" , model.getValue("/root/main/icpminfo/acddd" )); //재해발생일
  4027. //opener.javascript.setParameter("SPPMC09000" , model.getValue());
  4028. setParameter("SPPMC09000_ORDOPENDD" , model.getValue("/root/main/icpminfo/ordopendd")); //진료개시일
  4029. setParameter("SPPMC09000_ORDTODD" , model.getValue("/root/main/icpminfo/ordtodd")); //진료종료일
  4030. //opener.javascript.setParameter("SPPMC09000" , model.getValue());
  4031. modal("SPPMC09000");
  4032. ]]>
  4033. </script>
  4034. </button>
  4035. <button id="button28" class="btn3_letter8" visibility="hidden" style="left:482px; top:5px; width:128px; height:22px; ">
  4036. <caption>산보미수납리스트</caption>
  4037. </button>
  4038. </group>
  4039. </xhtml:body>
  4040. </xhtml:html>