SMPMC00300_수진내역환자관리.xrw 176 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMPMC00300_수진내역환자관리.xrw
  4. * 설 명 : 수진내역관리
  5. * 설 계 자 : 김상민
  6. * 작 성 자 : 김상민
  7. * 작 성 일 : 2009.05.25
  8. * 수정이력 :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <script type="javascript">
  13. <![CDATA[
  14. // 초기화
  15. function fInitialize(gubn)
  16. {
  17. model.resetInstanceNode("/root/send/data1");
  18. model.resetInstanceNode("/root/main/ptbs");
  19. model.resetInstanceNode("/root/main/ptpm");
  20. model.resetInstanceNode("/root/send/data6");
  21. model.setValue("/root/main/retcount", "");
  22. model.removeNodeset("/root/main/list1");
  23. model.makeNode("/root/main/list1");
  24. model.removeNodeset("/root/main/list2");
  25. model.makeNode("/root/main/list2");
  26. // 조회 구분 초기화
  27. // fSrchCondChng("0");
  28. if (gubn == "all") {
  29. model.removeNodeset("/root/main/ptpmlist");
  30. model.makeNode("/root/main/ptpmlist");
  31. }
  32. model.resetInstanceNode("/root/send/data3");
  33. //model.makeNode("/root/send/data3");
  34. model.setValue("/root/hidden/currentDate", getCurrentDate());
  35. //model.setValue("/root/send/data6/srchcond1","0");
  36. button6.visible = true;
  37. button7.visible = false;
  38. // 접수일 올해일자만 고정
  39. model.setValue("/root/send/data6/acptfromdd", getCurrentDate().substring(0,4)+"0101");
  40. model.setValue("/root/send/data6/acpttodd", getCurrentDate());
  41. model.setValue("/root/send/data6/ioflag_s", "A");
  42. model.refresh();
  43. }
  44. // 환자 인정 사항 조회
  45. function fBaseInfoRef()
  46. {
  47. model.removeNodeset("/root/send/data5/ofidocacptdd");
  48. model.removeNodeset("/root/send/data5/ofidocretno");
  49. model.removeNodeset("/root/send/data3/ofidocretno");
  50. model.removeNodeset("/root/main/ptpm/ofidocretno");
  51. model.makeNode("/root/send/data5/ofidocacptdd");
  52. model.makeNode("/root/send/data5/ofidocretno");
  53. model.makeNode("/root/send/data3/ofidocretno");
  54. model.makeNode("/root/main/ptpm/ofidocretno");
  55. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  56. model.setValue("/root/send/data5/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  57. } else if ( model.getValue("/root/main/popupendflag") == "pass" ) {
  58. model.setValue("/root/send/data5/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  59. } else {
  60. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  61. model.resetInstanceNode("/root/main/ptbs");
  62. model.resetInstanceNode("/root/main/ptpm");
  63. model.refresh();
  64. return false;
  65. }
  66. // 환자 인적 사항, 민원 사항 조회
  67. if(submit("TRPMC03001")){
  68. model.resetInstanceNode("/root/main/ptpm");
  69. model.resetInstanceNode("/root/main/ptbs");
  70. model.removeNodeset("/root/main/list1");
  71. model.makeNode("/root/main/list1");
  72. if( getNodesetCount("/root/hidden/rcv/ptbs/ptbs_pid") > 0 ) {
  73. copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
  74. }
  75. //model.copyNodet
  76. var ptpmcnt = getNodesetCount("/root/hidden/rcv/ptpm/pid");
  77. // 민원 사항이 없을 경우
  78. if( ptpmcnt == 0 ){
  79. // 내원 기록 조회
  80. /*model.setValue("/root/send/data3/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  81. model.setValue("/root/send/data3/flag","A");
  82. fGetChosRecRef();*/
  83. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  84. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  85. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  86. model.setValue("/root/send/data3/flag","A");
  87. // 수진 내원 내역 조회
  88. //fGetChosRecRef();
  89. // 민원 사항이 1건만 있을 경우
  90. }else if( ptpmcnt == 1 ){
  91. var rtn = messageBox("새로운 수진내역을 입력하실 경우 예(YES) 등록된 수진내역을 조회하실 경우 아니오(NO)를 선택해 주십시요!", "Q999");
  92. if (rtn == 7 ) {
  93. model.resetInstanceNode("/root/main/ptpm");
  94. copyNodeType("/root/main/ptpm","/root/hidden/rcv/ptpm","replace");
  95. // 내원 기록 조회
  96. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptpm/pid"));
  97. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  98. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  99. model.setValue("/root/send/data3/flag","P");
  100. //model.alert(model.getValue("/root/send/data3/ofidocdocuno"));
  101. fGetChosRecRef();
  102. }else{
  103. model.removeNodeset("/root/main/list1");
  104. model.makeNode("/root/main/list1");
  105. model.removeNodeset("/root/main/list2");
  106. model.makeNode("/root/main/list2");
  107. model.setValue("/root/hidden/rcv/ptpm/ofidocretno", '');
  108. //새로입력시 전체조회할때 값을 구분하기위해 구분값 처리
  109. model.setValue("/root/temp/flag", "f");
  110. // 기관 심평원 기본 선택
  111. model.setValue("/root/main/ptpm/inst", "1");
  112. }
  113. // 민원 사항이 1건이상일 경우
  114. }else if( ptpmcnt > 1 ){
  115. // 수진 내역에 등록된 환자 조회
  116. fGetPtpmInfoRef();
  117. }
  118. }
  119. //인사정보의 직원, 직원가족정보 조회
  120. var rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
  121. var rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
  122. if( rrgstno1.length == 6 && rrgstno2.length == 7 ){
  123. var retValue = fGetPsnWorkInfo(rrgstno1 + rrgstno2);
  124. /*
  125. //선택한 직원정보 세팅
  126. if( retValue != '' && retValue != ' ' ){
  127. var arr_retValue = retValue.split("▦");
  128. model.setValue("/root/main/otpt/otpt_emplno", arr_retValue[0]);
  129. model.setValue("/root/main/otpt/otpt_emplnm", arr_retValue[1]);
  130. // model.refresh();
  131. }
  132. */
  133. }
  134. //민원환자관리 등록여부 체크
  135. submit("TRPMC03006");
  136. fCheckCampYn();
  137. model.refresh();
  138. }
  139. // 수진 내역에 등록된 환자 팝업 조회
  140. function fGetPtpmInfoRef()
  141. {
  142. var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
  143. if (!ptbs_pid == null || !ptbs_pid ==" " || !ptbs_pid == "") {
  144. //model.setValue("/root/send/data6/srchcond1","1");
  145. //model.setValue("/root/send/data6/srchcond2",ptbs_pid);
  146. model.setValue("/root/send/data6/pid",ptbs_pid);
  147. modal("../../../pam/patinfomngtweb/xrw/SMPMC00310", "1","150", "150", "SPPMC02500", "/root/send/data6", "/root/send/data1");
  148. }
  149. //model.setValue("/root/send/data6/srchcond1","");
  150. model.setValue("/root/send/data6/pid","");
  151. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  152. model.setValue("/root/send/data3/flag","P");
  153. // 환자 인정 사항, 민원 사항, 내원 기록 조회
  154. fGetPtpmPatInfo();
  155. //fGetChosRecRef();
  156. } else {
  157. //model.alert("aa");
  158. // 기관 심평원 기본 선택
  159. model.setValue("/root/main/ptpm/inst", "1");
  160. return false;
  161. }
  162. }
  163. // 환자 인정 사항, 민원 사항, 내원 기록 조회
  164. function fGetPtpmPatInfo()
  165. {
  166. if(submit("TRPMC03004")){
  167. model.resetInstanceNode("/root/main/ptbs");
  168. model.resetInstanceNode("/root/main/ptpm");
  169. model.removeNodeset("/root/main/list1");
  170. model.makeNode("/root/main/list1");
  171. model.removeNodeset("/root/main/list2");
  172. model.makeNode("/root/main/list2");
  173. // 인적 사항 조회
  174. var ptbscnt = getNodesetCount("/root/hidden/rcv/ptbs");
  175. if (ptbscnt > 0) {
  176. copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
  177. }
  178. // 민원 사항 조회
  179. if( getNodesetCount("/root/hidden/rcv/ptpm/pid") > 0 ){
  180. copyNodeType("/root/main/ptpm","/root/hidden/rcv/ptpm","replace");
  181. }
  182. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  183. // 내원 기록 조회
  184. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") > 0 ){
  185. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  186. }
  187. //청구기록 조회
  188. if( getNodesetCount("/root/hidden/rcv/list2/clamlist") > 0 ){
  189. copyNodeType("/root/main/list2","/root/hidden/rcv/list2","replace");
  190. }
  191. var chosreclistcnt = getNodesetCount("/root/hidden/rcv/list1/chosreclist");
  192. chosreclistcnt = parseInt(chosreclistcnt)+1;
  193. model.setValue("/root/temp/chosreclistcnt", chosreclistcnt);
  194. var clamlistcnt = getNodesetCount("/root/hidden/rcv/list2/clamlist");
  195. clamlistcnt = parseInt(clamlistcnt)+1;
  196. model.setValue("/root/temp/clamlistcnt", clamlistcnt);
  197. }
  198. /*
  199. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") <= 0 ){
  200. //수진 내역이 2이상이면서 수진내원내력이 없을경우 전체조회를 한다
  201. model.setValue("/root/send/data3/flag","A");
  202. if(submit("TRPMC03002")){
  203. model.removeNodeset("/root/main/list1");
  204. model.makeNode("/root/main/list1");
  205. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") > 0 ){
  206. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  207. }
  208. }
  209. }
  210. */
  211. model.toggle("case2");
  212. model.refresh();
  213. }
  214. /* */
  215. // 내원 기록 조회
  216. function fGetChosRecRef()
  217. {
  218. if(submit("TRPMC03002")){
  219. var chosreclistcnt = getNodesetCount("/root/hidden/rcv/list1/chosreclist");
  220. chosreclistcnt = parseInt(chosreclistcnt)+1;
  221. model.setValue("/root/temp/chosreclistcnt", chosreclistcnt);
  222. var clamlistcnt = getNodesetCount("/root/hidden/rcv/list2/clamlist");
  223. clamlistcnt = parseInt(clamlistcnt)+1;
  224. model.setValue("/root/temp/clamlistcnt", clamlistcnt);
  225. /*
  226. model.alert(model.getValue("/root/temp/chosreclistcnt"));
  227. model.alert(model.getValue("/root/temp/clamlistcnt"));
  228. */
  229. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") > 0 ){
  230. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  231. }
  232. if( getNodesetCount("/root/hidden/rcv/list2/clamlist") > 0 ){
  233. copyNodeType("/root/main/list2","/root/hidden/rcv/list2","replace");
  234. }
  235. grd_chosrec.refresh();
  236. }
  237. }
  238. // 저장 후 환자 인적 사항 조회
  239. function AfSafeBaseInfoRef()
  240. {
  241. model.removeNodeset("/root/send/data5/pid");
  242. model.removeNodeset("/root/send/data5/ofidocacptdd");
  243. model.removeNodeset("/root/send/data5/ofidocretno");
  244. model.makeNode("/root/send/data5/pid");
  245. model.makeNode("/root/send/data5/ofidocacptdd");
  246. model.makeNode("/root/send/data5/ofidocretno");
  247. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  248. model.setValue("/root/send/data5/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  249. model.setValue("/root/send/data5/ofidocacptdd",model.getValue("/root/main/ptpm/ofidocacptdd"));
  250. model.setValue("/root/send/data5/ofidocretno",model.getValue("/root/main/ptpm/ofidocretno"));
  251. } else if ( model.getValue("/root/main/popupendflag") == "pass" ) {
  252. model.setValue("/root/send/data5/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  253. model.setValue("/root/send/data5/ofidocacptdd",model.getValue("/root/main/ptpm/ofidocacptdd"));
  254. model.setValue("/root/send/data5/ofidocretno",model.getValue("/root/main/ptpm/ofidocretno"));
  255. } else {
  256. model.resetInstanceNode("/root/main/patinfo/patinfolist");
  257. model.resetInstanceNode("/root/main/ptbs");
  258. model.resetInstanceNode("/root/main/ptpm");
  259. model.refresh();
  260. return false;
  261. }
  262. if(submit("TRPMC03001")){
  263. model.resetInstanceNode("/root/main/ptpm");
  264. model.resetInstanceNode("/root/main/ptbs");
  265. model.removeNodeset("/root/main/list1");
  266. model.makeNode("/root/main/list1");
  267. if( getNodesetCount("/root/hidden/rcv/ptbs/ptbs_pid") > 0 ) {
  268. copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
  269. }
  270. //model.copyNodet
  271. var ptpmcnt = getNodesetCount("/root/hidden/rcv/ptpm/pid");
  272. copyNodeType("/root/main/ptpm","/root/hidden/rcv/ptpm","replace");
  273. // 내원 기록 조회
  274. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptpm/pid"));
  275. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  276. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  277. model.setValue("/root/send/data3/flag","P");
  278. //model.alert(model.getValue("/root/send/data3/ofidocdocuno"));
  279. fGetChosRecRef();
  280. model.refresh();
  281. }
  282. }
  283. function fGetColorChangeChoslist(){
  284. grd_chosrec.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  285. setRowStyle("grd_chosrec", "14","Y","histyn","equal"); //row의 색상을 변경한다.
  286. grd_chosrec.rebuild();
  287. datagrid1.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  288. setRowStyle("datagrid1", "14","Y","histyn","equal"); //row의 색상을 변경한다.
  289. datagrid1.rebuild();
  290. }
  291. function fCheckCampYn(){
  292. model.setValue("/root/send/data5/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  293. submit("TRPMC03006");
  294. if(model.getValue("/root/temp/pmchcapm/capmlist") != ""){
  295. var rtn = messageBox("재원중 민원환자입니다. 계속 진행하실 경우 예(YES) 초기화 하실 경우 아니오(NO)를 선택해 주십시요!", "Q999");
  296. if (rtn == 7 ) {
  297. fInitialize("all");
  298. }
  299. }
  300. }
  301. ]]>
  302. </script>
  303. <xhtml:head>
  304. <xhtml:title>수진내역관리</xhtml:title>
  305. <model id="model1">
  306. <instance id="instance1">
  307. <root xmlns="">
  308. <send>
  309. <data1/>
  310. <data2>
  311. <sess_posinstcd>012</sess_posinstcd>
  312. <retiredrdisp>Y</retiredrdisp>
  313. </data2>
  314. <data3>
  315. <pid/>
  316. <ofidocacptdd/>
  317. <ofidocdocuno/>
  318. <flag/>
  319. <ofidocretno/>
  320. </data3>
  321. <data4>
  322. <srchcond/>
  323. <pid/>
  324. <hngnm/>
  325. <rrgstno1/>
  326. <rrgstno2/>
  327. <autoflag/>
  328. </data4>
  329. <data5>
  330. <pid/>
  331. </data5>
  332. <data6>
  333. <srchcond1>0</srchcond1>
  334. <pid/>
  335. <hngnm/>
  336. <ioflag_s>A</ioflag_s>
  337. <orddeptcd/>
  338. <orddrid/>
  339. <acptfromdd/>
  340. <acpttodd/>
  341. <endfromdd/>
  342. <endtodd/>
  343. <tretflag/>
  344. <procexpt/>
  345. <pidsum/>
  346. <onlyrtnamt/>
  347. <tretfromdd/>
  348. <trettodd/>
  349. </data6>
  350. <update>
  351. <datalist>
  352. </datalist>
  353. </update>
  354. <inhopeddfrom/>
  355. <inhopeddto/>
  356. <sendflag/>
  357. <sess_posinstcd/>
  358. <data7>
  359. <pid/>
  360. <ofidocacptdd/>
  361. <ofidocretno/>
  362. <etcrem/>
  363. </data7>
  364. <data8>
  365. <srchFlag/>
  366. <srchFlagNm/>
  367. <judgrID01/>
  368. <memoFlag01/>
  369. <memoCls01/>
  370. </data8>
  371. <data9/>
  372. </send>
  373. <main>
  374. <patinfo>
  375. <patinfolist>
  376. <pid/>
  377. </patinfolist>
  378. </patinfo>
  379. <ptbs>
  380. <ptbs_status/>
  381. <ptbs_pid/>
  382. <ptbs_hngnm/>
  383. <ptbs_engnm/>
  384. <ptbs_rrgstno1/>
  385. <ptbs_rrgstno2/>
  386. <ptbs_brthdd/>
  387. <ptbs_sex/>
  388. <ptbs_age/>
  389. <ptbs_hometel/>
  390. <ptbs_mpphontel/>
  391. <ptbs_zipcd1/>
  392. <ptbs_zipcd2/>
  393. <ptbs_zipcdseq/>
  394. <ptbs_zipnm/>
  395. <ptbs_detladdr/>
  396. <ptbs_forgeryn/>
  397. <ptbs_recmyn/>
  398. <ptbs_recmerid/>
  399. <ptbs_vipyn/>
  400. <ptbs_religncd/>
  401. <ptbs_remfact/>
  402. <ptbs_inhospyn/>
  403. <totaluncoamt/>
  404. <ptbs_dethyn/>
  405. <ptbs_dethdt/>
  406. <ptbs_insukind/>
  407. <ptbs_orddrnm/>
  408. <ptbs_orddeptnm/>
  409. </ptbs>
  410. <ptpm>
  411. <stat/>
  412. <pid/>
  413. <ofidocacptdd/>
  414. <ofidocdocuno/>
  415. <instcd/>
  416. <inst>1</inst>
  417. <chrgernm/>
  418. <tel/>
  419. <tretflag/>
  420. <datadelive/>
  421. <datadelivedd/>
  422. <civilapler/>
  423. <civilaplertel/>
  424. <civilapleraddr/>
  425. <civilaplflag/>
  426. <civilaplcnts/>
  427. <nonpayallamt/>
  428. <choiordamt/>
  429. <insuteamrtnfcstamt/>
  430. <choiordrtnfcstamt/>
  431. <paycalcfcstamt/>
  432. <cncldocudelivedd/>
  433. <aprvcnclrtnfcstamt/>
  434. <fcstdecidd/>
  435. <fcstdeciamt/>
  436. <roothospexpsflag/>
  437. <ordfcstamt/>
  438. <ordfcstdd/>
  439. <lastenddd/>
  440. <obtappdd/>
  441. <obtapprslt/>
  442. <obtapprsltdd/>
  443. <obtapprcogamt/>
  444. <etcrem/>
  445. <jvirem/>
  446. <totalamt/>
  447. <edimedcaretotamt/>
  448. <ediownbamt/>
  449. <ediinsuclamamt/>
  450. <ediownbmaxexamt/>
  451. <edisuppamt/>
  452. <edisubtamt/>
  453. <edihandcaprfund/>
  454. <dedutretdd/>
  455. <dedudocuno/>
  456. <rtnschenotidd/>
  457. <rtnschenotidocuno/>
  458. <rtnschenotiamt/>
  459. <ioflag/>
  460. <ordfromdd/>
  461. <ordtodd/>
  462. <judgrid/>
  463. <addclamamt/>
  464. <addclamrem/>
  465. <obtappdocuno/>
  466. <obtappamt/>
  467. <obtappdecidd/>
  468. <obtappdecidocuno/>
  469. <obtappaftrtndeciamt/>
  470. <obtapprsltrem/>
  471. <judgclamdd/>
  472. <judgclamdocuno/>
  473. <judgclamamt/>
  474. <judgclamdecidd/>
  475. <judgclamdecidocuno/>
  476. <judgclamaftrtndeciamt/>
  477. <discamt/>
  478. <uncoamt/>
  479. <rtnendyn/>
  480. <fcsteordmat/>
  481. <fcsteinamt/>
  482. <fcstechrgfood/>
  483. <fcstemedimpsamt/>
  484. <fcsteinjamt/>
  485. <fcsteanstamt/>
  486. <fcstecureopamt/>
  487. <fcstetestamt/>
  488. <fcsteimgdiagrayamt/>
  489. <fcstescitamt/>
  490. <fcstepsypamt/>
  491. <fcstectordamt/>
  492. <fcstemriordamt/>
  493. <fcstepetordamt/>
  494. <fcstechoiordamt/>
  495. <fcstenopyamt/>
  496. <fcsteetcamt/>
  497. <fcstecurematramt/>
  498. <deciordmat/>
  499. <deciinamt/>
  500. <decichrgfood/>
  501. <decimedimpsamt/>
  502. <deciinjamt/>
  503. <decianstamt/>
  504. <decicureopamt/>
  505. <decitestamt/>
  506. <deciimgdiagrayamt/>
  507. <deciscitamt/>
  508. <decipsypamt/>
  509. <decictordamt/>
  510. <decimriordamt/>
  511. <decipetordamt/>
  512. <decichoiordamt/>
  513. <decinopyamt/>
  514. <decietcamt/>
  515. <decicurematramt/>
  516. <ofidocretno/>
  517. <ofidocacptddkey/>
  518. <patowntotamt/>
  519. <docucnt/>
  520. <obtapprcamt/>
  521. <addreqdd/>
  522. <addreqdepodd/>
  523. <addreqdepoamt/>
  524. <ordindd/>
  525. <dschdd/>
  526. <orddrid/>
  527. <orddeptcd/>
  528. <statflag/>
  529. <datacollanldrnotidd/>
  530. <jvinotidd/>
  531. <paycalcamt/>
  532. <purertnamt/>
  533. <drrsltnotidd/>
  534. <judgreqnorcamt/>
  535. <jviendnotidd/>
  536. <orddeptnm/>
  537. <orddrnm/>
  538. <memo/>
  539. <memojudgrid/>
  540. <judgmmdt/>
  541. <docchkdt/>
  542. <doccnfchk/>
  543. <refltdd/>
  544. <recalcyn/>
  545. <insttype/>
  546. <tretdd/>
  547. </ptpm>
  548. <ptpmlist>
  549. <grdpatspectlist>
  550. <ofidocacptdd/>
  551. <pid/>
  552. <hngnm/>
  553. <tretstat/>
  554. <insuteamrtnfcstamt/>
  555. <apntordrtnfcstamt/>
  556. <instrtnamt/>
  557. <paycalcfcstamt/>
  558. <lastenddd/>
  559. <datadelivedd/>
  560. <hospenddd/>
  561. <ofidocdocuno/>
  562. </grdpatspectlist>
  563. </ptpmlist>
  564. <list1>
  565. <chosreclist>
  566. </chosreclist>
  567. </list1>
  568. <ioflag/>
  569. <amtflag/>
  570. <list2>
  571. <clamlist/>
  572. </list2>
  573. <retcount/>
  574. <ptpmlistsum>
  575. <grdpatspectlist>
  576. <ofidocacptdd/>
  577. <pid/>
  578. <hngnm/>
  579. <tretstat/>
  580. <insuteamrtnfcstamt/>
  581. <apntordrtnfcstamt/>
  582. <instrtnamt/>
  583. <paycalcfcstamt/>
  584. <lastenddd/>
  585. <datadelivedd/>
  586. <hospenddd/>
  587. <ofidocdocuno/>
  588. </grdpatspectlist>
  589. </ptpmlistsum>
  590. <list3>
  591. <GridMemo01/>
  592. </list3>
  593. <list4>
  594. <memolist/>
  595. </list4>
  596. </main>
  597. <hidden>
  598. <rcv>
  599. <ptbs>
  600. <ptbs_status/>
  601. <ptbs_pid/>
  602. <ptbs_hngnm/>
  603. <ptbs_engnm/>
  604. <ptbs_rrgstno1/>
  605. <ptbs_rrgstno2/>
  606. <ptbs_brthdd/>
  607. <ptbs_sex/>
  608. <ptbs_age/>
  609. <ptbs_hometel/>
  610. <ptbs_mpphontel/>
  611. <ptbs_zipcd1/>
  612. <ptbs_zipcd2/>
  613. <ptbs_zipcdseq/>
  614. <ptbs_zipnm/>
  615. <ptbs_detladdr/>
  616. <ptbs_forgeryn/>
  617. <ptbs_recmyn/>
  618. <ptbs_recmerid/>
  619. <ptbs_vipyn/>
  620. <ptbs_religncd/>
  621. <ptbs_remfact/>
  622. <ptbs_inhospyn/>
  623. </ptbs>
  624. <ptpm>
  625. <stat/>
  626. <pid/>
  627. <ofidocacptdd/>
  628. <ofidocdocuno/>
  629. <instcd/>
  630. <pattel/>
  631. <civilaplertel/>
  632. <inst/>
  633. <chrgernm/>
  634. <tel/>
  635. <trsmno/>
  636. <datareqdd/>
  637. <datadelivedd/>
  638. <hospenddd/>
  639. <cncldocudelivedd/>
  640. <lastenddd/>
  641. <ordflag/>
  642. <tretstat/>
  643. <insuteamrtnfcstamt/>
  644. <apntordrtnfcstamt/>
  645. <paycalcfcstamt/>
  646. <aprvcnclrtnfcstamt/>
  647. <instrtnamt/>
  648. <jvirem/>
  649. <ofidocretno/>
  650. <ofidocacptddkey/>
  651. <orddrid/>
  652. <orddeptcd/>
  653. <statflag/>
  654. <datacollanldrnotidd/>
  655. <jvinotidd/>
  656. <paycalcamt/>
  657. <purertnamt/>
  658. <drrsltnotidd/>
  659. <judgreqnorcamt/>
  660. <jviendnotidd/>
  661. </ptpm>
  662. <ptpmuncoyn>
  663. <uncoyn/>
  664. </ptpmuncoyn>
  665. <list1>
  666. <chosreclist>
  667. <ioflag/>
  668. <ordindd/>
  669. <orddeptnm/>
  670. <orddrnm/>
  671. <orddeptcd/>
  672. <orddrid/>
  673. <insukind/>
  674. <suppkind/>
  675. <uncototamt/>
  676. <totordamt/>
  677. <payamt/>
  678. <nopayamt/>
  679. <specordamt/>
  680. <discamt/>
  681. <judgrid/>
  682. </chosreclist>
  683. </list1>
  684. <list2>
  685. <clamlist>
  686. <ioflag/>
  687. <clamflagcd/>
  688. <insukind/>
  689. <suppkind/>
  690. <clamdeptcd/>
  691. <orddeptcd/>
  692. <orddrid/>
  693. <acptno/>
  694. <docuseqno/>
  695. <ordfromdd/>
  696. <ordtodd/>
  697. <judgyn/>
  698. <edimedcaretotamt/>
  699. <ediownbamt/>
  700. <ediinsuclamamt/>
  701. <ediownbmaxexamt/>
  702. <edisuppamt/>
  703. <edisubtamt/>
  704. <edihandcaprfund/>
  705. <judgrid/>
  706. </clamlist>
  707. </list2>
  708. </rcv>
  709. <original>
  710. </original>
  711. <flag>
  712. <rcv_flag>
  713. </rcv_flag>
  714. </flag>
  715. <init>
  716. <disccd>
  717. <cd/>
  718. <nm/>
  719. </disccd>
  720. <insukind>
  721. <cd/>
  722. <nm/>
  723. </insukind>
  724. <suppkind>
  725. <cd/>
  726. <nm/>
  727. <up/>
  728. <io/>
  729. </suppkind>
  730. <orddeptcd>
  731. <cd/>
  732. <nm/>
  733. </orddeptcd>
  734. <orddrid>
  735. <cd/>
  736. <nm/>
  737. <dp/>
  738. <sp/>
  739. </orddrid>
  740. <wardcd>
  741. <cd/>
  742. <nm/>
  743. <of/>
  744. </wardcd>
  745. <roomcd>
  746. <cd/>
  747. <nm/>
  748. <wd/>
  749. <gr/>
  750. <ty/>
  751. </roomcd>
  752. <flag>
  753. <prestdd/>
  754. <mskindflag/>
  755. </flag>
  756. </init>
  757. <source>
  758. <pid/>
  759. </source>
  760. <target/>
  761. <userpopupinfo>
  762. <param/>
  763. <flag/>
  764. <searchitem/>
  765. </userpopupinfo>
  766. <oneselect/>
  767. <currentDate/>
  768. <temp/>
  769. </hidden>
  770. <init>
  771. <A0001list>
  772. <A0001>
  773. <cdid/>
  774. <cdnm/>
  775. </A0001>
  776. </A0001list>
  777. <P0001list>
  778. <P0001>
  779. <cdid/>
  780. <cdnm/>
  781. </P0001>
  782. </P0001list>
  783. <P0437list>
  784. <P0437>
  785. <cdid/>
  786. <cdnm/>
  787. </P0437>
  788. </P0437list>
  789. <P0155list>
  790. <P0155>
  791. <cdid/>
  792. <cdnm/>
  793. </P0155>
  794. </P0155list>
  795. <P0484list>
  796. <P0484>
  797. <cdid/>
  798. <cdnm/>
  799. </P0484>
  800. </P0484list>
  801. <P0485list>
  802. <P0485>
  803. <cdid/>
  804. <cdnm/>
  805. </P0485>
  806. </P0485list>
  807. <P0008list>
  808. <P0008>
  809. <cdid/>
  810. <cdnm/>
  811. </P0008>
  812. </P0008list>
  813. <P0010list>
  814. <P0010>
  815. <cdid/>
  816. <cdnm/>
  817. </P0010>
  818. </P0010list>
  819. <P0495list>
  820. <P0495>
  821. <cdid/>
  822. <cdnm/>
  823. </P0495>
  824. </P0495list>
  825. <P0496list>
  826. <P0496>
  827. <cdid/>
  828. <cdnm/>
  829. </P0496>
  830. </P0496list>
  831. </init>
  832. <init_com>
  833. <init>
  834. <P0006list/>
  835. <P0015list>
  836. <P0015>
  837. <cdid/>
  838. <cdnm/>
  839. </P0015>
  840. </P0015list>
  841. <P0016list>
  842. <P0016>
  843. <cdid/>
  844. <cdnm/>
  845. </P0016>
  846. </P0016list>
  847. <P0020list>
  848. <P0020>
  849. <cdid/>
  850. <cdnm/>
  851. </P0020>
  852. </P0020list>
  853. <P0021list>
  854. <P0021>
  855. <cdid/>
  856. <cdnm/>
  857. </P0021>
  858. </P0021list>
  859. <P0022list>
  860. <P0022>
  861. <cdid/>
  862. <cdnm/>
  863. </P0022>
  864. </P0022list>
  865. <P0032list>
  866. <P0032>
  867. <cdid/>
  868. <cdnm/>
  869. </P0032>
  870. </P0032list>
  871. <P0034list>
  872. <P0034>
  873. <cdid/>
  874. <cdnm/>
  875. </P0034>
  876. </P0034list>
  877. <P0158list>
  878. <P0158>
  879. <cdid/>
  880. <cdnm/>
  881. </P0158>
  882. </P0158list>
  883. </init>
  884. </init_com>
  885. <temp>
  886. <addclamrem/>
  887. <obtapprsltrem/>
  888. <chosreclistcnt/>
  889. <clamlistcnt/>
  890. <flag/>
  891. <pmchcapm>
  892. <capmlist/>
  893. </pmchcapm>
  894. </temp>
  895. <temp2>
  896. <yearptpmtot/>
  897. </temp2>
  898. <temp3/>
  899. <temp4>
  900. <U0001list/>
  901. </temp4>
  902. </root>
  903. </instance>
  904. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init"/>
  905. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/hidden/init"/>
  906. <submission id="TRPMC03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" replace="instance" resultref="/root/hidden/rcv"/>
  907. <submission id="TRPMC03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" replace="instance" resultref="/root/hidden/rcv"/>
  908. <submission id="TRPMC03003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" replace="instance" resultref="/root/hidden/rcv"/>
  909. <submission id="TRPMC03004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" replace="instance" resultref="/root/hidden/rcv"/>
  910. <submission id="TRPMC03008" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" replace="instance" resultref="/root/temp2"/>
  911. <submission id="TRPMC03010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" replace="instance" resultref="/root/temp3/"/>
  912. <submission id="TXPMC03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/hidden/rcv"/>
  913. <submission id="TXPMC03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/hidden/rcv"/>
  914. <submission id="TXPMC03003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/update" replace="instance" resultref="/root/hidden/rcv"/>
  915. <submission id="TXPMC03006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data7" replace="instance" resultref="/root/hidden/temp"/>
  916. <submission id="TXPMC03008" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data7" replace="instance" resultref="/root/hidden/temp"/>
  917. <submission id="TRPIB00603" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/temp4/U0001list"/>
  918. <submission id="TRPIB00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list3"/>
  919. <submission id="TRPMC03005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcv/ptpmuncoyn"/>
  920. <submission id="TXPMC03005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/update" replace="instance" resultref="/root/hidden/rcv"/>
  921. <submission id="TRPMC03802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/discpat" replace="instance" resultref="/root/temp/result"/>
  922. <submission id="TRPMC03006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" resultref="/root/temp/pmchcapm"/>
  923. <submission id="TXPMC03007" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data7" resultref="/root/hidden/temp"/>
  924. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/hidden/tmp"/>
  925. <submission id="TRPAM00107" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  926. </model>
  927. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  928. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  929. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  930. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  931. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  932. <script type="javascript" ev:event="xforms-ready">
  933. <![CDATA[
  934. document.title = "수진환자관리";
  935. submit("TRPIB00603");
  936. fInitialize("all"); //기본데이터 초기화
  937. zbcfGetCodeList(
  938. new Array("A0001", "P0001", "P0437", "P0155", "P0484", "P0485", "P0008", "P0010", "P0495","P0496"),
  939. new Array("/root/init/A0001list", "/root/init/P0001list", "/root/init/P0437list", "/root/init/P0155list", "/root/init/P0484list", "/root/init/P0485list", "/root/init/P0008list", "/root/init/P0010list", "/root/init/P0495list","/root/init/P0496list")
  940. );
  941. //submit("TRPMI00106");
  942. model.setValue("/root/main/ioflag", "A");
  943. model.setValue("/root/main/amtflag", "A");
  944. model.toggle("case1");
  945. button6.visible = true;
  946. button7.visible = false;
  947. pamGetDeptCDDrIDListAll();
  948. model.refresh();
  949. ]]>
  950. </script>
  951. <script type="javascript">
  952. <![CDATA[
  953. /*
  954. function fSrchCondChng(srchcond1){
  955. if (srchcond1 == '1' || srchcond1 == '2') {
  956. ipt_cond1.attribute("top") = "8xp";
  957. ipt_cond1.attribute("left") = "225px";
  958. ipt_cond1.visible = true;
  959. ipt_cond2.visible = false;
  960. ipt_cond3.visible = false;
  961. caption4.visible = false;
  962. cmb_cond2.visible = false;
  963. cmb_search_orddrid.visible = false;
  964. cmb_search_orddeptcd.visible = false;
  965. model.setFocus("ipt_cond1");
  966. } else if (srchcond1 == '3') {
  967. cmb_cond2.attribute("top") = "8xp";
  968. cmb_cond2.attribute("left") = "225xp";
  969. ipt_cond1.visible = false;
  970. ipt_cond2.visible = false;
  971. ipt_cond3.visible = false;
  972. caption4.visible = false;
  973. cmb_cond2.visible = true;
  974. cmb_search_orddrid.visible = false;
  975. cmb_search_orddeptcd.visible = false;
  976. //cmb_cond2.choices.itemset.attribute("nodeset") = "/root/hidden/init/wardcd";
  977. } else if (srchcond1 == '4' || srchcond1 == '5') {
  978. ipt_cond2.attribute("top") = "8xp";
  979. ipt_cond2.attribute("left") = "225xp";
  980. ipt_cond1.visible = false;
  981. ipt_cond2.visible = true;
  982. ipt_cond3.visible = true;
  983. caption4.visible = true;
  984. cmb_cond2.visible = false;
  985. cmb_search_orddrid.visible = false;
  986. cmb_search_orddeptcd.visible = false;
  987. //날자 입력 항목에 오늘 날자 세팅
  988. model.setValue("/root/send/data6/srchcond2",model.getValue("/root/hidden/currentDate"));
  989. model.setValue("/root/send/data6/srchcond3",model.getValue("/root/hidden/currentDate"));
  990. } else if (srchcond1 == '0') {
  991. ipt_cond1.visible = false;
  992. ipt_cond2.visible = false;
  993. ipt_cond3.visible = false;
  994. caption4.visible = false;
  995. cmb_cond2.visible = false;
  996. cmb_search_orddrid.visible = false;
  997. cmb_search_orddeptcd.visible = false;
  998. } else if (srchcond1 == '6') {
  999. ipt_cond1.visible = false;
  1000. ipt_cond2.visible = false;
  1001. ipt_cond3.visible = false;
  1002. caption4.visible = false;
  1003. cmb_cond2.visible = false;
  1004. cmb_search_orddrid.visible = true;
  1005. cmb_search_orddeptcd.visible = true;
  1006. }
  1007. ipt_cond1.refresh();
  1008. ipt_cond2.refresh();
  1009. ipt_cond3.refresh();
  1010. cmb_cond1.refresh();
  1011. cmb_cond2.refresh();
  1012. cmb_search_orddrid.refresh();
  1013. cmb_search_orddeptcd.refresh();
  1014. }
  1015. */
  1016. function fOtptChk(){
  1017. return true;
  1018. }
  1019. ]]>
  1020. </script>
  1021. </xhtml:head>
  1022. <xhtml:body inputtype="date" guideline="1,1196;2,771;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1023. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  1024. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:135px; height:13px; ">수진내역관리</caption>
  1025. </group>
  1026. <group id="group3" style="left:0px; top:13px; width:1195px; height:744px; ">
  1027. <switch id="switch1" style="left:0px; top:31px; width:1194px; height:713px; border-color:#cc99ff; border-style:solid; ">
  1028. <case id="case1" selected="true">
  1029. <datagrid id="grd_patspec" nodeset="/root/main/ptpmlist/grdpatspectlist" caption="공문접수일^발송기관^공문접수번호^순번^구분^병록번호^환자명^진료과^진료의^민원신청자^처리상태^진료기간^자료수집및분석주치교수통보일자^비급여전체금액^선택진료금액^심사자환불예상액^심평원결정정당금액^취하금액^환불취하금액^진행중금액^진행상태^심평원자료제출일자^심평원총괄진료비정산내역^심평원총괄진료비정산내역^심평원총괄진료비정산내역^심평원총괄진료비정산내역^진행사항^진행사항^진행사항^진행사항^이의신청^이의신청^이의신청^이의신청^이의신청^이의신청^심판청구^심판청구^심판청구^심판청구^심판청구^처리사항^처리사항^처리사항^처리사항^공단 공제처리 결과통보^공단 공제처리 결과통보^공단 공제처리 결과통보^공단 공제처리 결과통보^공단 공제처리 결과통보^환불금 상세내역^환불금 상세내역^환불금 상세내역^환불금 상세내역^환불금 상세내역^환불금 상세내역^환불금 상세내역^환불금 상세내역^환불금 상세내역^환불금 상세내역^환불금 상세내역^환불금 상세내역^환불금 상세내역^환불금 상세내역^환불금 상세내역^환불금 상세내역^환불금 상세내역^환불금 상세내역|공문접수일^발송기관^공문접수번호^순번^구분^병록번호^환자명^진료과^진료의^민원신청자^처리상태^진료기간^자료수집및분석주치교수통보일자^비급여전체금액^선택진료금액^심사자환불예상액^심평원결정정당금액^취하금액^환불취하금액^진행중금액^진행상태^심평원자료제출일자^심평원통보일^환불결정액^급여정산액^순수환불액^주치교수결과통보일^추가청구일자^추가청구액^추가청구비고^이의신청일^이의신청액^이의신청인정액^신청후환불결정액^이의신청결과비고^종결통보일자^심판청구일자^심판청구액^심판청구결과통보일자^심판청구불인정액^심판청구인정액^처리일자^취하서제출일^취하종결통보일자^처리방법^공문접수일^공제문서번호^지급일자^공제차수^환불금^진찰료^입원료^식대^투약및처방전료^주사료^마취료^처지및수술료^검사료^영상및방사선치료료^이학요법료^정신요법료^CT진단료^MRI진단료^PET진단료^선택진료료^비급여^기타^치료재료대" colsep="^" colwidth="90, 90, 90, 45, 50, 80, 70, 100, 70, 70, 60, 150, 109, 100, 100, 100, 113, 100, 120, 120, 70, 120, 100, 100, 100, 100, 110, 100, 100, 100, 100, 120, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 110, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 114, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="0" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:10px; top:103px; width:1174px; height:580px; ">
  1030. <col ref="ofidocacptdd" format="yyyy-mm-dd" style="left:20px; top:23px; width:90px; height:23px; text-align:center; "/>
  1031. <col ref="inst" type="combo" style="text-align:center; ">
  1032. <choices>
  1033. <item>
  1034. <label>심평원</label>
  1035. <value>1</value>
  1036. </item>
  1037. </choices>
  1038. </col>
  1039. <col ref="ofidocdocuno" style="text-align:center; "/>
  1040. <col ref="ofidocretno" visibility="visible" style="text-align:center; "/>
  1041. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  1042. <choices>
  1043. <itemset nodeset="/root/init/P0485list/P0485">
  1044. <label ref="cdnm"/>
  1045. <value ref="cdid"/>
  1046. </itemset>
  1047. </choices>
  1048. </col>
  1049. <col ref="pid" style="text-align:center; "/>
  1050. <col ref="hngnm" style="text-align:center; "/>
  1051. <col ref="orddeptnm" style="text-align:center; "/>
  1052. <col ref="orddrnm" style="text-align:center; "/>
  1053. <col ref="civilapler" style="text-align:center; "/>
  1054. <col ref="tretflag" style="text-align:center; "/>
  1055. <col ref="orddd"/>
  1056. <col ref="datacollanldrnotidd" format="yyyy-mm-dd"/>
  1057. <col ref="nonpayallamt" format="(-)#,###" style="text-align:right; "/>
  1058. <col ref="choiordamt" format="(-)#,###" style="text-align:right; "/>
  1059. <col ref="insuteamrtnfcstamt" format="(-)#,###" style="text-align:right; "/>
  1060. <col ref="choiordrtnfcstamt" format="(-)#,###" style="text-align:right; "/>
  1061. <col ref="aprvcnclrtnfcstamt" format="(-)#,###" style="text-align:right; "/>
  1062. <col ref="ordfcstamt" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
  1063. <col ref="edimedcaretotamt" format="(-)#,###" style="text-align:right; "/>
  1064. <col ref="statflag" type="combo" style="text-align:center; ">
  1065. <choices>
  1066. <item>
  1067. <label>자료수집</label>
  1068. <value>0</value>
  1069. </item>
  1070. <item>
  1071. <label>이의신청</label>
  1072. <value>1</value>
  1073. </item>
  1074. <item>
  1075. <label>추가청구</label>
  1076. <value>2</value>
  1077. </item>
  1078. <item>
  1079. <label>심판청구</label>
  1080. <value>3</value>
  1081. </item>
  1082. <item>
  1083. <label>종결</label>
  1084. <value>4</value>
  1085. </item>
  1086. </choices>
  1087. </col>
  1088. <col ref="datadelivedd" format="yyyy-mm-dd" style="text-align:center; "/>
  1089. <col ref="jvinotidd" format="yyyy-mm-dd" style="text-align:center; "/>
  1090. <col ref="rtnschenotiamt" format="(-)#,###" style="text-align:right; "/>
  1091. <col ref="paycalcamt" format="(-)#,###" style="text-align:right; "/>
  1092. <col ref="purertnamt" format="(-)#,###" style="text-align:right; "/>
  1093. <col ref="drrsltnotidd" format="yyyy-mm-dd" style="text-align:center; "/>
  1094. <col ref="addreqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1095. <col ref="addclamamt" format="(-)#,###" style="text-align:right; "/>
  1096. <col ref="addclamrem"/>
  1097. <col ref="obtappdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1098. <col ref="obtappamt" format="(-)#,###" style="text-align:right; "/>
  1099. <col ref="obtappaftrtndeciamt" format="(-)#,###" style="text-align:right; "/>
  1100. <col ref="obtapprsltrem" format="(-)#,###" style="text-align:right; "/>
  1101. <col ref="obtapprsltrem"/>
  1102. <col ref="jviendnotidd" format="yyyy-mm-dd" style="text-align:center; "/>
  1103. <col ref="judgclamdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1104. <col ref="judgclamamt" format="(-)#,###" style="text-align:right; "/>
  1105. <col ref="judgclamdecidd" format="yyyy-mm-dd" style="text-align:center; "/>
  1106. <col ref="judgreqnorcamt" format="(-)#,###" style="text-align:right; "/>
  1107. <col ref="judgclamaftrtndeciamt" format="(-)#,###" style="text-align:right; "/>
  1108. <col ref="tretdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1109. <col ref="cncldocudelivedd" format="yyyy-mm-dd" style="text-align:center; "/>
  1110. <col ref="fcstdecidd" format="yyyy-mm-dd" style="text-align:center; "/>
  1111. <col ref="roothospexpsflag" type="combo">
  1112. <choices>
  1113. <item>
  1114. <label>면담</label>
  1115. <value>A</value>
  1116. </item>
  1117. <item>
  1118. <label>전화상담</label>
  1119. <value>B</value>
  1120. </item>
  1121. <item>
  1122. <label>자료제출</label>
  1123. <value>C</value>
  1124. </item>
  1125. <item>
  1126. <label>취하서</label>
  1127. <value>D</value>
  1128. </item>
  1129. </choices>
  1130. </col>
  1131. <col ref="dedutretdd" format="yyyy-mm-dd" style="left:4624px; top:43px; width:100px; height:23px; text-align:center; "/>
  1132. <col ref="dedudocuno" style="text-align:center; "/>
  1133. <col ref="ordfcstdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1134. <col ref="lastenddd" style="text-align:center; "/>
  1135. <col ref="fcstdeciamt" format="(-)#,###" style="text-align:right; "/>
  1136. <col ref="deciordmat" format="(-)#,###" style="text-align:right; "/>
  1137. <col ref="deciinamt" format="(-)#,###" style="text-align:right; "/>
  1138. <col ref="decichrgfood" format="(-)#,###" style="text-align:right; "/>
  1139. <col ref="decimedimpsamt" format="(-)#,###" style="text-align:right; "/>
  1140. <col ref="deciinjamt" format="(-)#,###" style="text-align:right; "/>
  1141. <col ref="decianstamt" format="(-)#,###" style="text-align:right; "/>
  1142. <col ref="decicureopamt" format="(-)#,###" style="text-align:right; "/>
  1143. <col ref="decitestamt" format="(-)#,###" style="text-align:right; "/>
  1144. <col ref="deciimgdiagrayamt" format="(-)#,###" style="text-align:right; "/>
  1145. <col ref="deciscitamt" format="(-)#,###" style="text-align:right; "/>
  1146. <col ref="decipsypamt" format="(-)#,###" style="text-align:right; "/>
  1147. <col ref="decictordamt" format="(-)#,###" style="text-align:right; "/>
  1148. <col ref="decimriordamt" format="(-)#,###" style="text-align:right; "/>
  1149. <col ref="decipetordamt" format="(-)#,###" style="text-align:right; "/>
  1150. <col ref="decichoiordamt" format="(-)#,###" style="text-align:right; "/>
  1151. <col ref="decinopyamt" format="(-)#,###" style="text-align:right; "/>
  1152. <col ref="decietcamt" format="(-)#,###" style="text-align:right; "/>
  1153. <col ref="decicurematramt" format="(-)#,###" style="text-align:right; "/>
  1154. <col ref="paycalcfcstamt" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
  1155. <col ref="judgrid" visibility="hidden"/>
  1156. <col ref="orddeptcd" visibility="hidden" style="text-align:center; "/>
  1157. <col ref="orddrid" visibility="hidden" style="text-align:center; "/>
  1158. <script type="javascript" ev:event="ondblclick">
  1159. <![CDATA[
  1160. if(grd_patspec.isCell(event.target) && grd_patspec.row >= grd_patspec.fixedRows) {
  1161. //fInitialize("");
  1162. // ondblclick 후 이벤트 처리
  1163. var row = grd_patspec.row ;
  1164. btn_patspec.selected = true;
  1165. btn_patprescond.selected = false;
  1166. model.setValue("/root/send/data3/ofidocacptdd", grd_patspec.valueMatrix(row,grd_patspec.colRef("ofidocacptdd")));
  1167. model.setValue("/root/send/data3/pid", grd_patspec.valueMatrix(row,grd_patspec.colRef("pid")));
  1168. model.setValue("/root/send/data3/ofidocretno", grd_patspec.valueMatrix(row,grd_patspec.colRef("ofidocretno")));
  1169. model.setValue("/root/send/data3/flag","P");
  1170. /*
  1171. model.alert(model.getValue("/root/send/data3/ofidocacptdd"));
  1172. model.alert(model.getValue("/root/send/data3/pid"));
  1173. model.alert(model.getValue("/root/send/data3/cretno"));
  1174. model.alert(model.getValue("/root/send/data3/flag"));
  1175. return;
  1176. if(submit("TRPMC03005")){
  1177. var uncoyn = model.getValue("/root/hidden/rcv/ptpmuncoyn/uncoyn");
  1178. }
  1179. if(uncoyn =="Y"){
  1180. messageBox("미수금 내역이 존재하는 " ,"I005");
  1181. }
  1182. */
  1183. if(submit("TRPMC03004")){
  1184. model.resetInstanceNode("/root/main/ptbs");
  1185. model.resetInstanceNode("/root/main/ptpm");
  1186. model.removeNodeset("/root/main/list1");
  1187. model.makeNode("/root/main/list1");
  1188. model.removeNodeset("/root/main/list2");
  1189. model.makeNode("/root/main/list2");
  1190. model.refresh();
  1191. // 인적 사항 조회
  1192. var ptbscnt = getNodesetCount("/root/hidden/rcv/ptbs");
  1193. if (ptbscnt > 0) {
  1194. copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
  1195. }
  1196. // 민원 사항 조회
  1197. if( getNodesetCount("/root/hidden/rcv/ptpm/pid") > 0 ){
  1198. copyNodeType("/root/main/ptpm","/root/hidden/rcv/ptpm","replace");
  1199. }
  1200. // 내원 기록 조회
  1201. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") > 0 ){
  1202. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  1203. }
  1204. // 청구 기록 조회
  1205. if( getNodesetCount("/root/hidden/rcv/list2/clamlist") > 0 ){
  1206. copyNodeType("/root/main/list2","/root/hidden/rcv/list2","replace");
  1207. }
  1208. var chosreclistcnt = getNodesetCount("/root/hidden/rcv/list1/chosreclist");
  1209. chosreclistcnt = parseInt(chosreclistcnt)+1;
  1210. model.setValue("/root/temp/chosreclistcnt", chosreclistcnt);
  1211. var clamlistcnt = getNodesetCount("/root/hidden/rcv/list2/clamlist");
  1212. clamlistcnt = parseInt(clamlistcnt)+1;
  1213. model.setValue("/root/temp/clamlistcnt", clamlistcnt);
  1214. /*
  1215. model.alert(model.getValue("/root/temp/chosreclistcnt"));
  1216. model.alert(model.getValue("/root/temp/clamlistcnt"));
  1217. */
  1218. }
  1219. var rows = model.getValue("/root/temp/chosreclistcnt");
  1220. var totordamtsum = '0';
  1221. var totownbamtsum = '0';
  1222. var nopyamttsum = '0';
  1223. var specordamtsum = '0';
  1224. var uncoamtsum = '0';
  1225. var discamtsum = '0';
  1226. for (i=0; i<rows; i++) {
  1227. if(model.getValue("/root/main/list1/chosreclist["+ i + "]/patspecyn") == 'Y' ){
  1228. var temp1 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totordamt");
  1229. var temp2 = model.getValue("/root/main/list1/chosreclist["+ i + "]/nopyamt");
  1230. var temp3 = model.getValue("/root/main/list1/chosreclist["+ i + "]/specordamt");
  1231. var temp4 = model.getValue("/root/main/list1/chosreclist["+ i + "]/uncototamt");
  1232. var temp5 = model.getValue("/root/main/list1/chosreclist["+ i + "]/discamt");
  1233. var temp6 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totownbamt");
  1234. totordamtsum = parseInt(totordamtsum) + parseInt(temp1);
  1235. nopyamttsum = parseInt(nopyamttsum) + parseInt(temp2);
  1236. specordamtsum = parseInt(specordamtsum) + parseInt(temp3);
  1237. uncoamtsum = parseInt(uncoamtsum) + parseInt(temp4);
  1238. discamtsum = parseInt(discamtsum) + parseInt(temp5);
  1239. totownbamtsum = parseInt(totownbamtsum) + parseInt(temp6);
  1240. }
  1241. }
  1242. model.setValue("/root/main/ptpm/totalamt", totordamtsum);
  1243. model.setValue("/root/main/ptpm/patowntotamt", totownbamtsum);
  1244. model.setValue("/root/main/ptpm/nonpayallamt", nopyamttsum);
  1245. model.setValue("/root/main/ptpm/choiordamt", specordamtsum);
  1246. model.setValue("/root/main/ptpm/uncoamt", uncoamtsum);
  1247. model.setValue("/root/main/ptpm/discamt", discamtsum);
  1248. //submit("TRPMC03004");
  1249. model.toggle("case2");
  1250. //인사정보의 직원, 직원가족정보 조회
  1251. var rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
  1252. var rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
  1253. if( rrgstno1.length == 6 && rrgstno2.length == 7 ){
  1254. var retValue = fGetPsnWorkInfo(rrgstno1 + rrgstno2);
  1255. /*
  1256. //선택한 직원정보 세팅
  1257. if( retValue != '' && retValue != ' ' ){
  1258. var arr_retValue = retValue.split("▦");
  1259. model.setValue("/root/main/otpt/otpt_emplno", arr_retValue[0]);
  1260. model.setValue("/root/main/otpt/otpt_emplnm", arr_retValue[1]);
  1261. // model.refresh();
  1262. }
  1263. */
  1264. }
  1265. //민원환자관리등록여부 체크
  1266. fCheckCampYn();
  1267. model.refresh();
  1268. //fGetPtpmPatInfo();
  1269. }
  1270. ]]>
  1271. </script>
  1272. </datagrid>
  1273. <caption id="caption45" class="tit_2" style="left:15px; top:83px; width:110px; height:13px; font-family:돋움; vertical-align:middle; ">수진내역현황</caption>
  1274. <line id="line9" class="line_1" style="x1:10px; y1:98px; x2:1184px; y2:98px; "/>
  1275. <button id="button4" class="btn2_letter3" style="left:784px; top:77px; width:53px; height:19px; ">
  1276. <caption>츌력1</caption>
  1277. <script type="javascript" ev:event="DOMActivate">
  1278. <![CDATA[
  1279. //exeReportPreview("RPPMC03000", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  1280. exeReportPreview("RPPMC03000", "XMLSTR", "","", "false","","","","","false");
  1281. ]]>
  1282. </script>
  1283. </button>
  1284. <group id="group2" style="left:10px; top:4px; width:1174px; height:71px; ">
  1285. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1174px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
  1286. <input id="ipt_acptfromdd" ref="/root/send/data6/acptfromdd" class="input_default" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:785px; top:3px; width:85px; height:19px; "/>
  1287. <input id="ipt_acpttodd" ref="/root/send/data6/pid" class="input_default" visibility="visible" style="left:105px; top:7px; width:89px; height:19px; ">
  1288. <script type="javascript" ev:event="onkeypress">
  1289. <![CDATA[
  1290. inputEnterKey("btn_srch", "DOMActivate");
  1291. ]]>
  1292. </script>
  1293. </input>
  1294. <caption id="caption1" class="search_name" visibility="visible" style="left:15px; top:9px; width:90px; height:17px; ">환자번호 :</caption>
  1295. <line id="line2" class="line_4" visibility="visible" style="x1:1093px; y1:7px; x2:1093px; y2:49px; border-color:#ffe4bb; border-left-style:solid; "/>
  1296. <button id="btn_srch" class="btn1_letter2" style="left:1103px; top:16px; width:56px; height:22px; ">
  1297. <caption>조회</caption>
  1298. <script type="javascript" ev:event="DOMActivate">
  1299. <![CDATA[
  1300. model.removeNodeset("/root/main/ptpmlist");
  1301. model.makeNode("/root/main/ptpmlist");
  1302. if(submit("TRPMC03003")){
  1303. if( getNodesetCount("/root/hidden/rcv/ptpmlist/grdpatspectlist") > 0 ){
  1304. copyNodeType("/root/main/ptpmlist","/root/hidden/rcv/ptpmlist","replace");
  1305. }else{
  1306. model.resetInstanceNode("/root/main/ptpmlist");
  1307. }
  1308. grd_patspec.refresh();
  1309. // 정당이면서 정당금액 없는 경우, 환불이면서 환불금액 없는경우, 환불취하이면서 환불취하금액 없는 경우, 취하이면서 취하금액없는경우. 색표시
  1310. for(var i = 2 ; i < grd_patspec.rows ; i++) {
  1311. if ((grd_patspec.valueMatrix(i, grd_patspec.colRef("tretflag")) == "정당" && grd_patspec.valueMatrix(i, grd_patspec.colRef("rtnschenotiamt")) != "0")
  1312. || (grd_patspec.valueMatrix(i, grd_patspec.colRef("tretflag")) == "환불" && grd_patspec.valueMatrix(i, grd_patspec.colRef("rtnschenotiamt")) == "0")
  1313. || (grd_patspec.valueMatrix(i, grd_patspec.colRef("tretflag")) == "환불/취하" && grd_patspec.valueMatrix(i, grd_patspec.colRef("ordfcstamt")) == "0")
  1314. || (grd_patspec.valueMatrix(i, grd_patspec.colRef("tretflag")) == "취하" && grd_patspec.valueMatrix(i, grd_patspec.colRef("aprvcnclrtnfcstamt")) == "0")
  1315. ) {
  1316. grd_patspec.rowStyle(i, "data", "background-color") = "#FFF000";
  1317. }
  1318. }
  1319. }
  1320. model.setValue("/root/main/retcount", grd_patspec.rows - 2);
  1321. opt_retcount.refresh();
  1322. ]]>
  1323. </script>
  1324. </button>
  1325. <select1 id="cmb_cond2" ref="/root/send/data6/tretflag" class="combo_default" visibility="visible" appearance="minimal" style="left:540px; top:30px; width:102px; height:19px; ">
  1326. <choices>
  1327. <item>
  1328. <label>전체</label>
  1329. <value/>
  1330. </item>
  1331. <item>
  1332. <label>진행</label>
  1333. <value>1</value>
  1334. </item>
  1335. <item>
  1336. <label>정당</label>
  1337. <value>2</value>
  1338. </item>
  1339. <item>
  1340. <label>환불</label>
  1341. <value>3</value>
  1342. </item>
  1343. <item>
  1344. <label>환불/취하</label>
  1345. <value>4</value>
  1346. </item>
  1347. <item>
  1348. <label>취하</label>
  1349. <value>5</value>
  1350. </item>
  1351. </choices>
  1352. <script type="javascript" ev:event="xforms-select">
  1353. <![CDATA[
  1354. btn_srch.dispatch("DOMActivate");
  1355. ]]>
  1356. </script>
  1357. </select1>
  1358. <input id="ipt_cond3" ref="/root/send/data6/acpttodd" class="input_default" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:890px; top:3px; width:85px; height:19px; "/>
  1359. <caption id="caption4" visibility="visible" style="left:875px; top:5px; width:12px; height:16px; vertical-align:middle; ">~</caption>
  1360. <caption id="caption50" class="search_name" visibility="visible" style="left:450px; top:9px; width:90px; height:17px; ">구 분 :</caption>
  1361. <select1 id="radio2" ref="/root/send/data6/ioflag_s" visibility="visible" appearance="full" cols="4" overflow="visible" style="left:540px; top:9px; width:130px; height:16px; border-style:none; ">
  1362. <choices>
  1363. <item>
  1364. <label>전체</label>
  1365. <value>A</value>
  1366. </item>
  1367. <item>
  1368. <label>외래</label>
  1369. <value>O</value>
  1370. </item>
  1371. <item>
  1372. <label>입원</label>
  1373. <value>I</value>
  1374. </item>
  1375. </choices>
  1376. </select1>
  1377. <select1 id="cmb_search_orddrid" ref="/root/send/data6/orddrid" class="combo_default" disabled="false" visibility="visible" appearance="minimal" style="left:345px; top:30px; width:85px; height:19px; ">
  1378. <choices>
  1379. <itemset nodeset="/root/init/orddrid/orddridlist">
  1380. <label ref="nm"/>
  1381. <value ref="cd"/>
  1382. </itemset>
  1383. </choices>
  1384. </select1>
  1385. <select1 id="cmb_search_orddeptcd" ref="/root/send/data6/orddeptcd" class="combo_default" disabled="false" visibility="visible" appearance="minimal" itemcount="20" style="left:105px; top:30px; width:130px; height:19px; ">
  1386. <choices>
  1387. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  1388. <label ref="nm"/>
  1389. <value ref="cd"/>
  1390. </itemset>
  1391. </choices>
  1392. <script type="javascript" ev:event="xforms-value-changed">
  1393. <![CDATA[
  1394. cmb_search_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + model.getValue("/root/send/data6/orddeptcd") + "']";
  1395. //model.setValue("/root/main/ptpm/orddeptnm", cmb_orddeptcd.label);
  1396. model.resetInstanceNode("/root/send/data6/orddrid"); // 진료과가 변경되었으므로 주치의를 초기화한다.
  1397. model.refresh();
  1398. //cmb_search_orddrid.disabled = false;
  1399. ]]>
  1400. </script>
  1401. </select1>
  1402. <caption id="caption53" class="search_name" visibility="visible" style="left:255px; top:9px; width:90px; height:17px; ">성 명 :</caption>
  1403. <input id="input4" ref="/root/send/data6/hngnm" class="input_default" visibility="visible" style="left:345px; top:7px; width:85px; height:19px; ">
  1404. <script type="javascript" ev:event="onkeypress">
  1405. <![CDATA[
  1406. inputEnterKey("btn_srch", "DOMActivate");
  1407. ]]>
  1408. </script>
  1409. </input>
  1410. <caption id="caption55" class="search_name" visibility="visible" style="left:15px; top:33px; width:90px; height:17px; ">진 료 과 :</caption>
  1411. <caption id="caption69" class="search_name" visibility="visible" style="left:255px; top:30px; width:90px; height:17px; ">주 치 의 :</caption>
  1412. <caption id="caption89" class="search_name" visibility="visible" style="left:450px; top:30px; width:86px; height:17px; ">처리상태 :</caption>
  1413. <caption id="caption92" class="search_name" visibility="visible" style="left:690px; top:2px; width:90px; height:17px; ">접수일자 :</caption>
  1414. <caption id="caption93" class="search_name" visibility="visible" style="left:690px; top:24px; width:111px; height:17px; ">청구일자 :</caption>
  1415. <caption id="caption94" visibility="visible" style="left:875px; top:27px; width:12px; height:16px; vertical-align:middle; ">~</caption>
  1416. <input id="input5" ref="/root/send/data6/endfromdd" class="input_default" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:785px; top:25px; width:85px; height:19px; "/>
  1417. <input id="input7" ref="/root/send/data6/endtodd" class="input_default" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:890px; top:25px; width:85px; height:19px; "/>
  1418. <select id="checkbox1" ref="/root/send/data6/procexpt" overflow="visible" appearance="full" style="left:990px; top:5px; width:80px; height:15px; border-style:none; ">
  1419. <choices>
  1420. <item>
  1421. <label>진행제외</label>
  1422. <value>Y</value>
  1423. </item>
  1424. </choices>
  1425. </select>
  1426. <select id="checkbox2" ref="/root/send/data6/pidsum" overflow="visible" appearance="full" style="left:990px; top:35px; width:80px; height:18px; border-style:none; ">
  1427. <choices>
  1428. <item>
  1429. <label>환자별합산</label>
  1430. <value>Y</value>
  1431. </item>
  1432. </choices>
  1433. </select>
  1434. <select id="checkbox3" ref="/root/send/data6/onlyrtnamt" overflow="visible" appearance="full" style="left:990px; top:20px; width:80px; height:14px; border-style:none; ">
  1435. <choices>
  1436. <item>
  1437. <label>환불금만</label>
  1438. <value>Y</value>
  1439. </item>
  1440. </choices>
  1441. </select>
  1442. <input id="input14" ref="/root/send/data6/trettodd" class="input_default" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:890px; top:47px; width:85px; height:19px; "/>
  1443. <caption id="caption102" class="search_name" visibility="visible" style="left:690px; top:45px; width:111px; height:17px; ">처리일자 :</caption>
  1444. <caption id="caption103" visibility="visible" style="left:875px; top:49px; width:12px; height:16px; vertical-align:middle; ">~</caption>
  1445. <input id="input15" ref="/root/send/data6/tretfromdd" class="input_default" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:785px; top:47px; width:85px; height:19px; "/>
  1446. </group>
  1447. <button id="button5" class="btn2_letter4" style="left:1118px; top:77px; width:64px; height:19px; ">
  1448. <caption>엑셀저장</caption>
  1449. <script type="javascript" ev:event="DOMActivate">
  1450. <![CDATA[
  1451. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1452. if (fileName != "")
  1453. {
  1454. grd_patspec.saveExcel(fileName, "SheetName", true, true, "", "", "true");
  1455. }
  1456. ]]>
  1457. </script>
  1458. </button>
  1459. <button id="button11" class="btn2_letter4" style="left:717px; top:77px; width:64px; height:19px; ">
  1460. <caption>선택삭제</caption>
  1461. <script type="javascript" ev:event="DOMActivate">
  1462. <![CDATA[
  1463. if(grd_patspec.row > 0) {
  1464. model.setValue("/root/send/data7/pid", grd_patspec.valueMatrix(grd_patspec.row, grd_patspec.colRef("pid")));
  1465. model.setValue("/root/send/data7/ofidocacptdd", grd_patspec.valueMatrix(grd_patspec.row, grd_patspec.colRef("ofidocacptdd")));
  1466. model.setValue("/root/send/data7/ofidocretno", grd_patspec.valueMatrix(grd_patspec.row, grd_patspec.colRef("ofidocretno")));
  1467. if ( messageBox("","Q001")==6 ) {
  1468. submit("TXPMC03006");
  1469. }
  1470. btn_srch.dispatch("DOMActivate");
  1471. }
  1472. ]]>
  1473. </script>
  1474. </button>
  1475. <caption id="caption52" style="left:155px; top:82px; width:60px; height:15px; ">조회건수 :</caption>
  1476. <output id="opt_retcount" ref="/root/main/retcount" style="left:218px; top:79px; width:62px; height:19px; "/>
  1477. <button id="button12" class="btn4_letter3" navindex="37" style="left:1115px; top:685px; width:68px; height:22px; ">
  1478. <caption>초기화</caption>
  1479. <script type="javascript" ev:event="DOMActivate">
  1480. <![CDATA[
  1481. if( messageBox("수진환자 내역을 초기화 하시겠습니까?", "Q999") != 6){
  1482. return;
  1483. }
  1484. fInitialize("all");
  1485. ]]>
  1486. </script>
  1487. </button>
  1488. <button id="button14" class="btn2_letter7" style="left:896px; top:77px; width:97px; height:19px; ">
  1489. <caption>년도별민원현황</caption>
  1490. <script type="javascript" ev:event="DOMActivate">
  1491. <![CDATA[
  1492. var vacptfromdd = model.getValue("/root/send/data6/acptfromdd").substr(0,4);
  1493. var vacpttodd = model.getValue("/root/send/data6/acpttodd").substr(0,4);
  1494. if (vacptfromdd != vacpttodd)
  1495. {
  1496. messageBox("접수일자를 확인하여 주십시오!\n시작일과 종료일의 년도가 같아야 합니다.","E999","");
  1497. return false;
  1498. }
  1499. submit("TRPMC03008");
  1500. exeReportPreview("RPPMC03001", "XMLSTR", "","", "false","","","","","false");
  1501. ]]>
  1502. </script>
  1503. </button>
  1504. <button id="button16" class="btn2_letter3" style="left:840px; top:77px; width:53px; height:19px; ">
  1505. <caption>츌력2</caption>
  1506. <script type="javascript" ev:event="DOMActivate">
  1507. <![CDATA[
  1508. //submit("TRPMC03009");
  1509. /*
  1510. if(submit("TRPMC03003")){
  1511. if( getNodesetCount("/root/hidden/rcv/ptpmlist/grdpatspectlist") > 0 ){
  1512. copyNodeType("/root/main/ptpmlistsum","/root/hidden/rcv/ptpmlist","replace");
  1513. }else{
  1514. model.resetInstanceNode("/root/main/ptpmlistsum");
  1515. }
  1516. }
  1517. */
  1518. //exeReportPreview("RPPMC03000", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  1519. exeReportPreview("RPPMC03002", "XMLSTR", "","", "false","","","","","false");
  1520. ]]>
  1521. </script>
  1522. </button>
  1523. <button id="button17" class="btn2_letter9" style="left:996px; top:77px; width:119px; height:19px; ">
  1524. <caption>환불항목별금액현황</caption>
  1525. <script type="javascript" ev:event="DOMActivate">
  1526. <![CDATA[
  1527. setParameter("acptfromdd", model.getValue("/root/send/data6/acptfromdd"));
  1528. setParameter("acpttodd", model.getValue("/root/send/data6/acpttodd"));
  1529. open("SPPMC07100");
  1530. model.refresh();
  1531. ]]>
  1532. </script>
  1533. </button>
  1534. </case>
  1535. <case id="case2">
  1536. <select1 id="cmb_inst" ref="/root/main/ptpm/inst" class="combo_default" navindex="4" appearance="minimal" style="left:98px; top:140px; width:100px; height:19px; ">
  1537. <choices>
  1538. <item>
  1539. <label>심평원</label>
  1540. <value>1</value>
  1541. </item>
  1542. </choices>
  1543. </select1>
  1544. <caption id="caption3" class="tit_2" style="left:10px; top:10px; width:204px; height:13px; font-family:돋움; vertical-align:middle; ">인적사항</caption>
  1545. <caption id="caption33" class="cell_1" style="left:5px; top:54px; width:76px; height:23px; vertical-align:middle; ">성명[한글]</caption>
  1546. <caption id="caption13" class="cell_1" style="left:890px; top:54px; width:60px; height:23px; vertical-align:middle; ">하위주소</caption>
  1547. <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:1186px; y2:25px; "/>
  1548. <caption id="caption8" class="cell_1" style="left:890px; top:30px; width:60px; height:23px; vertical-align:middle; ">주소</caption>
  1549. <caption id="caption14" class="cell_1" style="left:187px; top:54px; width:115px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
  1550. <caption id="caption9" class="cell_1" style="left:5px; top:30px; width:76px; height:23px; vertical-align:middle; ">환자번호</caption>
  1551. <caption id="caption18" class="cell_1" style="left:187px; top:29px; width:115px; height:23px; vertical-align:middle; ">주민번호/성별/나이</caption>
  1552. <caption id="caption10" class="tit_2" style="left:10px; top:85px; width:204px; height:13px; font-family:돋움; vertical-align:middle; ">접수관련</caption>
  1553. <line id="line3" class="line_1" style="x1:5px; y1:101px; x2:928px; y2:100px; "/>
  1554. <caption id="caption22" class="cell_1" style="left:98px; top:105px; width:100px; height:33px; text-align:center; vertical-align:middle; ">발송기관</caption>
  1555. <caption id="caption29" class="cell_1" style="left:831px; top:261px; width:96px; height:32px; text-align:center; vertical-align:middle; ">추가청구비고</caption>
  1556. <caption id="caption31" class="cell_1" style="left:590px; top:344px; width:102px; height:30px; text-align:center; vertical-align:middle; ">심판청구일자</caption>
  1557. <caption id="caption32" class="cell_1" style="left:401px; top:189px; width:129px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">선택진료금액</caption>
  1558. <caption id="caption37" class="cell_1" style="left:533px; top:189px; width:129px; height:23px; text-align:center; vertical-align:middle; ">심사자환불예상액</caption>
  1559. <caption id="caption44" class="cell_1" style="left:392px; top:345px; width:90px; height:29px; text-align:center; vertical-align:middle; ">
  1560. <![CDATA[이의신청
  1561. 결과비고]]>
  1562. </caption>
  1563. <input id="ipt_addclamrem" ref="/root/main/ptpm/addclamrem" class="input_default" inputtype="button" style="left:831px; top:295px; width:96px; height:19px; ">
  1564. <script type="javascript" ev:event="onbuttonclick">
  1565. <![CDATA[
  1566. model.makeNode("/root/temp/addclamrem");
  1567. model.setValue("/root/temp/addclamrem", model.getValue("/root/main/ptpm/addclamrem"));
  1568. //model.alert(model.getValue("/root/main/ptpm/addclamrem"));
  1569. //model.alert(model.getValue("/root/temp/addclamrem"));
  1570. grp_addclamrem.visible = true;
  1571. model.refresh();
  1572. ]]>
  1573. </script>
  1574. <script type="javascript" ev:event="onkeypress">
  1575. <![CDATA[
  1576. if (event.keyCode == "13")
  1577. {
  1578. model.setFocus("ipt_obtappdd");
  1579. }
  1580. ]]>
  1581. </script>
  1582. </input>
  1583. <line id="line4" class="line_2" style="x1:5px; y1:52px; x2:1186px; y2:52px; "/>
  1584. <line id="line5" class="line_3" style="x1:5px; y1:76px; x2:1186px; y2:76px; "/>
  1585. <line id="line8" class="line_1" style="x1:5px; y1:494px; x2:1186px; y2:494px; "/>
  1586. <caption id="caption5" class="cell_1" style="left:5px; top:105px; width:90px; height:33px; text-align:center; vertical-align:middle; ">공문접수일</caption>
  1587. <input id="ipt_ofidocacptdd" ref="/root/main/ptpm/ofidocacptdd" class="input_default" navindex="5" inputtype="date" style="left:5px; top:140px; width:90px; height:19px; ">
  1588. <script type="javascript" ev:event="onkeypress">
  1589. <![CDATA[
  1590. if (event.keyCode == "13")
  1591. {
  1592. model.setFocus("input1");
  1593. }
  1594. ]]>
  1595. </script>
  1596. </input>
  1597. <input id="cmb_judgclamdd" ref="/root/main/ptpm/judgclamdd" class="combo_default" navindex="36" inputtype="date" appearance="minimal" style="left:590px; top:376px; width:102px; height:19px; ">
  1598. <script type="javascript" ev:event="onkeypress">
  1599. <![CDATA[
  1600. if (event.keyCode == "13")
  1601. {
  1602. model.setFocus("ipt_judgclamdocuno");
  1603. }
  1604. ]]>
  1605. </script>
  1606. </input>
  1607. <input id="ipt_obtapprsltrem" ref="/root/main/ptpm/obtapprsltrem" class="input_default" navindex="35" inputtype="button" style="left:392px; top:376px; width:90px; height:19px; text-align:right; ">
  1608. <script type="javascript" ev:event="onbuttonclick">
  1609. <![CDATA[
  1610. model.makeNode("/root/temp/obtapprsltrem");
  1611. model.setValue("/root/temp/obtapprsltrem", model.getValue("/root/main/ptpm/obtapprsltrem"));
  1612. grp_obtapprsltrem.visible = true;
  1613. model.refresh();
  1614. ]]>
  1615. </script>
  1616. <script type="javascript" ev:event="onkeydown">
  1617. <![CDATA[
  1618. if (event.keyCode == "13")
  1619. {
  1620. model.setFocus("cmb_judgclamdd");
  1621. }
  1622. ]]>
  1623. </script>
  1624. </input>
  1625. <input id="ipt_apntordrtnfcstamt" ref="/root/main/ptpm/choiordamt" class="input_default" navindex="17" format="(-)#,###" style="left:401px; top:214px; width:129px; height:19px; text-align:right; background-color:#cc99ff; "/>
  1626. <input id="ipt_insuteamrtnfcstamt" ref="/root/main/ptpm/insuteamrtnfcstamt" class="input_default" disabled="false" navindex="18" inputtype="button" format="(-)#,###" style="left:533px; top:214px; width:129px; height:19px; text-align:right; ">
  1627. <script type="javascript" ev:event="onbuttonclick">
  1628. <![CDATA[
  1629. setParameter("fcstordmat", model.getValue("/root/main/ptpm/fcstordmat"));
  1630. setParameter("fcstinamt", model.getValue("/root/main/ptpm/fcstinamt"));
  1631. setParameter("fcstchrgfood", model.getValue("/root/main/ptpm/fcstchrgfood"));
  1632. setParameter("fcstmedimpsamt", model.getValue("/root/main/ptpm/fcstmedimpsamt"));
  1633. setParameter("fcstinjamt", model.getValue("/root/main/ptpm/fcstinjamt"));
  1634. setParameter("fcstanstamt", model.getValue("/root/main/ptpm/fcstanstamt"));
  1635. setParameter("fcstcureopamt", model.getValue("/root/main/ptpm/fcstcureopamt"));
  1636. setParameter("fcsttestamt", model.getValue("/root/main/ptpm/fcsttestamt"));
  1637. setParameter("fcstimgdiagrayamt", model.getValue("/root/main/ptpm/fcstimgdiagrayamt"));
  1638. setParameter("fcstscitamt", model.getValue("/root/main/ptpm/fcstscitamt"));
  1639. setParameter("fcstpsypamt", model.getValue("/root/main/ptpm/fcstpsypamt"));
  1640. setParameter("fcstctordamt", model.getValue("/root/main/ptpm/fcstctordamt"));
  1641. setParameter("fcstmriordamt", model.getValue("/root/main/ptpm/fcstmriordamt"));
  1642. setParameter("fcstpetordamt", model.getValue("/root/main/ptpm/fcstpetordamt"));
  1643. setParameter("fcstchoiordamt", model.getValue("/root/main/ptpm/fcstchoiordamt"));
  1644. setParameter("fcstnopyamt", model.getValue("/root/main/ptpm/fcstnopyamt"));
  1645. setParameter("fcstetcamt", model.getValue("/root/main/ptpm/fcstetcamt"));
  1646. setParameter("fcstcurematramt", model.getValue("/root/main/ptpm/fcstcurematramt"));
  1647. setParameter("deciordmat", model.getValue("/root/main/ptpm/deciordmat"));
  1648. setParameter("deciinamt", model.getValue("/root/main/ptpm/deciinamt"));
  1649. setParameter("decichrgfood", model.getValue("/root/main/ptpm/decichrgfood"));
  1650. setParameter("decimedimpsamt", model.getValue("/root/main/ptpm/decimedimpsamt"));
  1651. setParameter("deciinjamt", model.getValue("/root/main/ptpm/deciinjamt"));
  1652. setParameter("decianstamt", model.getValue("/root/main/ptpm/decianstamt"));
  1653. setParameter("decicureopamt", model.getValue("/root/main/ptpm/decicureopamt"));
  1654. setParameter("decitestamt", model.getValue("/root/main/ptpm/decitestamt"));
  1655. setParameter("deciimgdiagrayamt", model.getValue("/root/main/ptpm/deciimgdiagrayamt"));
  1656. setParameter("deciscitamt", model.getValue("/root/main/ptpm/deciscitamt"));
  1657. setParameter("decipsypamt", model.getValue("/root/main/ptpm/decipsypamt"));
  1658. setParameter("decictordamt", model.getValue("/root/main/ptpm/decictordamt"));
  1659. setParameter("decimriordamt", model.getValue("/root/main/ptpm/decimriordamt"));
  1660. setParameter("decipetordamt", model.getValue("/root/main/ptpm/decipetordamt"));
  1661. setParameter("decichoiordamt", model.getValue("/root/main/ptpm/decichoiordamt"));
  1662. setParameter("decinopyamt", model.getValue("/root/main/ptpm/decinopyamt"));
  1663. setParameter("decietcamt", model.getValue("/root/main/ptpm/decietcamt"));
  1664. setParameter("decicurematramt", model.getValue("/root/main/ptpm/decicurematramt"));
  1665. open("SPPMC07000");
  1666. model.refresh();
  1667. ]]>
  1668. </script>
  1669. <script type="javascript" ev:event="onkeypress">
  1670. <![CDATA[
  1671. if (event.keyCode == "13")
  1672. {
  1673. model.setFocus("ipt_choiordrtnfcstamt");
  1674. }
  1675. ]]>
  1676. </script>
  1677. </input>
  1678. <button id="button8" class="btn2_letter7" navindex="39" style="left:1089px; top:4px; width:97px; height:19px; ">
  1679. <caption>입원진료비내역</caption>
  1680. <script type="javascript" ev:event="DOMActivate">
  1681. <![CDATA[
  1682. /*
  1683. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  1684. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  1685. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  1686. model.setValue("/root/send/data3/flag", "P");
  1687. if(model.getValue("/root/main/ptbs/ptbs_pid") =="" || model.getValue("/root/main/ptbs/ptbs_hngnm") =="" )
  1688. {
  1689. messageBox("환자가 조회되지 않았습니다!","E999","");
  1690. return;
  1691. }else{
  1692. modal("SMPMC03000", "1","150","150", "SMPMC03000", "/root/send/data3", "/root/hidden/data");
  1693. }
  1694. */
  1695. /*
  1696. var getreturnamt = getParameter("SMPMC03000_selectreturnamt");
  1697. var getselectreturnamt = getParameter("SMPMC03000_returnamt");
  1698. if( getreturnamt !='' && getselectreturnamt !=''){
  1699. model.setValue("/root/main/ptpm/insuteamrtnfcstamt", getselectreturnamt);
  1700. model.setValue("/root/main/ptpm/choiordrtnfcstamt", getreturnamt);
  1701. }
  1702. */
  1703. open("SMPAI00200", "1","150","150", "SMPAI00200", "", "");
  1704. model.refresh();
  1705. ]]>
  1706. </script>
  1707. </button>
  1708. <button id="button15" class="btn2_letter2" navindex="38" style="left:944px; top:4px; width:42px; height:19px; ">
  1709. <caption>상병</caption>
  1710. <script type="javascript" ev:event="DOMActivate">
  1711. <![CDATA[
  1712. modal("SMPIZ00100", "1","150","150", "SMPIZ00100", "/root/main/ptbs/ptbs_pid", "/root/init/pid");
  1713. ]]>
  1714. </script>
  1715. </button>
  1716. <group id="group4" style="left:5px; top:681px; width:1183px; height:27px; ">
  1717. <button id="btn_save" class="btn4_letter2" style="left:1056px; top:5px; width:56px; height:22px; ">
  1718. <caption>저장</caption>
  1719. <script type="javascript" ev:event="onclick">
  1720. <![CDATA[
  1721. //공문 접수일을 체크한다
  1722. /*if(model.getValue("/root/main/ptpm/ofidocacptdd") == ""){
  1723. messageBox("공문접수일은", "I003");
  1724. }elseif(model.getValue("/root/main/ptpm/inst")==""){
  1725. messageBox("기관 담당자는", "I003");
  1726. }elseif(model.getValue("/root/main/ptpm/tel")==""){
  1727. messageBox("연락처는", "I003");
  1728. }*/
  1729. if (model.getValue("/root/main/ptpm/ofidocacptdd") == "" || model.getValue("/root/main/ptpm/ofidocacptdd") == null)
  1730. {
  1731. messageBox("공문접수일를 입력하여 주십시요!","E999","");
  1732. return false;
  1733. }
  1734. if (model.getValue("/root/main/ptpm/tretflag") == "" || model.getValue("/root/main/ptpm/tretflag") == null)
  1735. {
  1736. messageBox("처리상태를 선택하여 주십시요!","E999","");
  1737. return false;
  1738. }
  1739. model.setValue("/root/main/ptpm/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  1740. model.copyNode("/root/send/data1","/root/main/ptpm");
  1741. if( messageBox("수진환자 내역을 저장 하시겠습니까?", "Q999") != 6){
  1742. return;
  1743. }
  1744. if (model.getValue("/root/main/ptpm/stat") == "U") {
  1745. if (submit("TXPMC03002")) {
  1746. //내원이력
  1747. if( getNodesetCount("/root/hidden/rcv/ptpm/stat") > 0 ){
  1748. //copyNodeType("/root/main/ptpm","/root/hidden/rcv/ptpm","replace");
  1749. copyNodeType("/root/main/ptpm/stat","/root/hidden/rcv/ptpm/stat","replace");
  1750. copyNodeType("/root/main/ptpm/ofidocretno","/root/hidden/rcv/ptpm/ofidocretno","replace");
  1751. var rows = model.getValue("/root/temp/chosreclistcnt");
  1752. var flag = "";
  1753. var pid = model.getValue("/root/main/ptbs/ptbs_pid");
  1754. var ofidocacptdd = model.getValue("/root/main/ptpm/ofidocacptdd");
  1755. var ofidocretno = model.getValue("/root/main/ptpm/ofidocretno");
  1756. var cnt1 = 0;
  1757. for (i=0; i<rows; i++) {
  1758. var patspecyn= model.getValue("/root/main/list1/chosreclist["+ i + "]/patspecyn");
  1759. if (patspecyn == "Y") {
  1760. //grd_chosrec.rowStatus(i) = 1;
  1761. cnt1++;
  1762. }
  1763. }
  1764. //데이터 삭제 하기위해 그리드가 체크가 안되어 있을경우 입의로 status에 값을 세팅
  1765. if(cnt1 > 0){
  1766. var nodeList = instance1.selectNodes("/root/main/list1/chosreclist[patspecyn='Y']");
  1767. var rCSV = getNodeListCSV(nodeList);
  1768. model.resetInstanceNode("/root/send/update");
  1769. model.setValue("/root/send/update/datalist", rCSV);
  1770. }else{
  1771. grd_chosrec.rowStatus(1) = 2;
  1772. model.resetInstanceNode("/root/send/update");
  1773. model.setValue("/root/send/update/datalist",grd_chosrec.getUpdateData());
  1774. }
  1775. model.makeNode("/root/send/update/pid");
  1776. model.makeNode("/root/send/update/ofidocacptdd");
  1777. model.makeNode("/root/send/update/ofidocretno");
  1778. model.setValue("/root/send/update/pid", pid);
  1779. model.setValue("/root/send/update/ofidocacptdd", ofidocacptdd);
  1780. model.setValue("/root/send/update/ofidocretno", ofidocretno);
  1781. // 수진 내원 내역 저장 / 조회
  1782. if( submit("TXPMC03003")) {
  1783. // model.alert("aaa");
  1784. model.removeNodeset("/root/main/list1");
  1785. model.makeNode("/root/main/list1");
  1786. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  1787. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  1788. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  1789. model.setValue("/root/send/data3/flag","P");
  1790. // 수진 내원 내역 조회
  1791. // fGetChosRecRef();
  1792. /*
  1793. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") > 0 ){
  1794. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  1795. }
  1796. */
  1797. model.refresh();
  1798. }
  1799. }
  1800. //청구이력
  1801. var rows = model.getValue("/root/temp/clamlistcnt");
  1802. var cnt2 = 0;
  1803. for (i=0; i<rows; i++) {
  1804. var patspecyn= model.getValue("/root/main/list2/clamlist["+ i + "]/patspecyn");
  1805. if (patspecyn == "Y") {
  1806. cnt2++;
  1807. }
  1808. }
  1809. //데이터 삭제 하기위해 그리드가 체크가 안되어 있을경우 입의로 status에 값을 세팅
  1810. if(cnt2 > 0){
  1811. var nodeList = instance1.selectNodes("/root/main/list2/clamlist[patspecyn='Y']");
  1812. var rCSV = getNodeListCSV(nodeList);
  1813. model.resetInstanceNode("/root/send/update");
  1814. model.setValue("/root/send/update/datalist", rCSV);
  1815. }else{
  1816. datagrid1.rowStatus(1) = 2;
  1817. model.resetInstanceNode("/root/send/update");
  1818. model.setValue("/root/send/update/datalist",datagrid1.getUpdateData());
  1819. }
  1820. model.makeNode("/root/send/update/pid");
  1821. model.makeNode("/root/send/update/ofidocacptdd");
  1822. model.makeNode("/root/send/update/ofidocretno");
  1823. model.setValue("/root/send/update/pid", pid);
  1824. model.setValue("/root/send/update/ofidocacptdd", ofidocacptdd);
  1825. model.setValue("/root/send/update/ofidocretno", ofidocretno);
  1826. // 수진 내원 내역 저장 / 조회
  1827. if( submit("TXPMC03005")) {
  1828. // model.alert("aaa");
  1829. model.removeNodeset("/root/main/list2");
  1830. model.makeNode("/root/main/list2");
  1831. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  1832. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  1833. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  1834. model.setValue("/root/send/data3/flag","P");
  1835. // 수진 내원 내역 조회
  1836. // fGetChosRecRef();
  1837. /*
  1838. if( getNodesetCount("/root/hidden/rcv/list2/clamlist") > 0 ){
  1839. copyNodeType("/root/main/list2","/root/hidden/rcv/list2","replace");
  1840. }
  1841. */
  1842. model.refresh();
  1843. }
  1844. }
  1845. }else {
  1846. //신규입력
  1847. if (submit("TXPMC03001")) {
  1848. //messageBox("입력완료","E999","");
  1849. if( getNodesetCount("/root/hidden/rcv/ptpm/stat") > 0 ){
  1850. copyNodeType("/root/main/ptpm/stat","/root/hidden/rcv/ptpm/stat","replace");
  1851. copyNodeType("/root/main/ptpm/ofidocretno","/root/hidden/rcv/ptpm/ofidocretno","replace");
  1852. model.setValue("/root/main/ptpm/stat", model.getValue("/root/hidden/rcv/ptpm/stat"));
  1853. model.setValue("/root/main/ptpm/ofidocretno", model.getValue("/root/hidden/rcv/ptpm/ofidocretno"));
  1854. //copyNodeType("/root/main/ptpm/stat","/root/hidden/rcv/ptpm/stat","replace");
  1855. //copyNodeType("/root/main/ptpm/ofidocretno","/root/hidden/rcv/ptpm/ofidocretno","replace");
  1856. var rows = model.getValue("/root/temp/chosreclistcnt");
  1857. var flag = "";
  1858. var pid = model.getValue("/root/main/ptbs/ptbs_pid");
  1859. var ofidocacptdd = model.getValue("/root/main/ptpm/ofidocacptdd");
  1860. var ofidocretno = model.getValue("/root/main/ptpm/ofidocretno");
  1861. /*
  1862. for (i=0; i<rows; i++) {
  1863. var patspecyn= model.getValue("/root/main/list1/chosreclist["+ i + "]/patspecyn");
  1864. if (patspecyn == "Y") {
  1865. //grd_chosrec.rowStatus(i) = 1;
  1866. }
  1867. }
  1868. */
  1869. var nodeList = instance1.selectNodes("/root/main/list1/chosreclist[patspecyn='Y']");
  1870. var rCSV = getNodeListCSV(nodeList);
  1871. model.resetInstanceNode("/root/send/update");
  1872. model.setValue("/root/send/update/datalist", rCSV);
  1873. model.makeNode("/root/send/update/pid");
  1874. model.makeNode("/root/send/update/ofidocacptdd");
  1875. model.makeNode("/root/send/update/ofidocretno");
  1876. model.setValue("/root/send/update/pid", pid);
  1877. model.setValue("/root/send/update/ofidocacptdd", ofidocacptdd);
  1878. model.setValue("/root/send/update/ofidocretno", ofidocretno);
  1879. //model.alert(model.getValue("/root/send/update/datalist"));
  1880. // 수진 내원 내역 저장 / 조회
  1881. if( submit("TXPMC03003")) {
  1882. // model.alert("aaa");
  1883. model.removeNodeset("/root/main/list1");
  1884. model.makeNode("/root/main/list1");
  1885. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  1886. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  1887. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  1888. model.setValue("/root/send/data3/flag","P");
  1889. // 수진 내원 내역 조회
  1890. // fGetChosRecRef();
  1891. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") > 0 ){
  1892. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  1893. }
  1894. model.refresh();
  1895. }
  1896. //청구이력
  1897. var rows = model.getValue("/root/temp/clamlistcnt");
  1898. /*
  1899. for (i=0; i<rows; i++) {
  1900. var patspecyn= model.getValue("/root/main/list2/clamlist["+ i + "]/patspecyn");
  1901. if (patspecyn == "Y") {
  1902. }
  1903. }
  1904. */
  1905. var nodeList = instance1.selectNodes("/root/main/list2/clamlist[patspecyn='Y']");
  1906. var rCSV = getNodeListCSV(nodeList);
  1907. model.resetInstanceNode("/root/send/update");
  1908. model.setValue("/root/send/update/datalist", rCSV);
  1909. model.makeNode("/root/send/update/pid");
  1910. model.makeNode("/root/send/update/ofidocacptdd");
  1911. model.makeNode("/root/send/update/ofidocretno");
  1912. model.setValue("/root/send/update/pid", pid);
  1913. model.setValue("/root/send/update/ofidocacptdd", ofidocacptdd);
  1914. model.setValue("/root/send/update/ofidocretno", ofidocretno);
  1915. // model.alert(model.getValue("/root/send/update/datalist"));
  1916. //return;
  1917. // 수진 내원 내역 저장 / 조회
  1918. if( submit("TXPMC03005")) {
  1919. // model.alert("aaa");
  1920. model.removeNodeset("/root/main/list2");
  1921. model.makeNode("/root/main/list2");
  1922. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  1923. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  1924. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  1925. model.setValue("/root/send/data3/flag","P");
  1926. // 수진 내원 내역 조회
  1927. // fGetChosRecRef();
  1928. if( getNodesetCount("/root/hidden/rcv/list2/clamlist") > 0 ){
  1929. copyNodeType("/root/main/list2","/root/hidden/rcv/list2","replace");
  1930. }
  1931. model.refresh();
  1932. }
  1933. /*
  1934. model.setValue("/root/send/update/datalist",grd_chosrec.getUpdateData());
  1935. // var a = model.getValue("/root/send/update/datalist");
  1936. // alert(a);
  1937. //
  1938. // 수진 내원 내역 저장 / 조회
  1939. if( submit("TXPMC03003")) {
  1940. if( getNodesetCount("/root/hidden/rcv/list1/chosreclist") > 0 ){
  1941. model.removeNodeset("/root/main/list1");
  1942. model.makeNode("/root/main/list1");
  1943. copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  1944. }
  1945. }
  1946. */
  1947. }
  1948. }
  1949. }
  1950. model.makeNode("/root/main/popupendflag");
  1951. model.setValue("/root/main/popupendflag","pass");
  1952. AfSafeBaseInfoRef();
  1953. model.refresh();
  1954. ]]>
  1955. </script>
  1956. </button>
  1957. <button id="btn_init" class="btn4_letter3" navindex="37" style="left:1115px; top:5px; width:68px; height:22px; ">
  1958. <caption>초기화</caption>
  1959. <script type="javascript" ev:event="DOMActivate">
  1960. <![CDATA[
  1961. if( messageBox("수진환자 내역을 초기화 하시겠습니까?", "Q999") != 6){
  1962. return;
  1963. }
  1964. fInitialize("all");
  1965. ]]>
  1966. </script>
  1967. </button>
  1968. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1183px; y2:0px; "/>
  1969. <button id="button1" class="btn3_letter6" style="left:2px; top:5px; width:104px; height:22px; ">
  1970. <caption>특이환자관리</caption>
  1971. <script type="javascript" ev:event="DOMActivate">
  1972. <![CDATA[
  1973. modal("SMPMC01300", "1","150","150", "SMPMC01300", "", "");
  1974. ]]>
  1975. </script>
  1976. </button>
  1977. <button id="button9" class="btn3_letter6" style="left:115px; top:5px; width:104px; height:22px; ">
  1978. <caption>민원환자관리</caption>
  1979. <script type="javascript" ev:event="DOMActivate">
  1980. <![CDATA[
  1981. modal("SMPMC00100", "1","100","100", "SMPMC00100", "", "");
  1982. ]]>
  1983. </script>
  1984. </button>
  1985. </group>
  1986. <button id="btn_ptbshngnm" class="icon_search" style="left:163px; top:57px; width:16px; height:16px; ">
  1987. <caption/>
  1988. <script type="javascript" ev:event="DOMActivate">
  1989. <![CDATA[
  1990. var ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
  1991. if (ptbs_hngnm == null || ptbs_hngnm ==" " || ptbs_hngnm == "") {
  1992. model.resetInstanceNode("/root/send/data4");
  1993. } else {
  1994. model.setValue("/root/send/data4/hngnm",model.getValue("/root/main/ptbs/ptbs_hngnm"));
  1995. model.setValue("/root/send/data4/srchcond","2");
  1996. }
  1997. modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
  1998. model.resetInstanceNode("/root/send/data4");
  1999. fBaseInfoRef();
  2000. ]]>
  2001. </script>
  2002. </button>
  2003. <button id="btn_ptbspid" class="icon_search" style="left:163px; top:33px; width:16px; height:16px; ">
  2004. <caption/>
  2005. <script type="javascript" ev:event="DOMActivate">
  2006. <![CDATA[
  2007. var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
  2008. if (ptbs_pid == null || ptbs_pid ==" " || ptbs_pid == "") {
  2009. model.resetInstanceNode("/root/send/data4");
  2010. } else {
  2011. model.setValue("/root/send/data4/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  2012. model.setValue("/root/send/data4/srchcond","1");
  2013. }
  2014. modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
  2015. model.resetInstanceNode("/root/send/data4");
  2016. fBaseInfoRef();
  2017. ]]>
  2018. </script>
  2019. </button>
  2020. <button id="btn_ptbsrrgstno" class="icon_search" style="left:432px; top:32px; width:16px; height:16px; ">
  2021. <caption/>
  2022. <script type="javascript" ev:event="DOMActivate">
  2023. <![CDATA[
  2024. var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
  2025. var ptbs_rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
  2026. if ((ptbs_rrgstno1 == null || ptbs_rrgstno1 ==" " || ptbs_rrgstno1 == "") && (ptbs_rrgstno2 == null || ptbs_rrgstno2 ==" " || ptbs_rrgstno2 == "")) {
  2027. model.resetInstanceNode("/root/send/data4");
  2028. } else {
  2029. model.setValue("/root/send/data4/rrgstno1",model.getValue("/root/main/ptbs/ptbs_rrgstno1"));
  2030. model.setValue("/root/send/data4/rrgstno2",model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
  2031. model.setValue("/root/send/data4/srchcond","3")
  2032. }
  2033. modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
  2034. model.resetInstanceNode("/root/send/data4");
  2035. fBaseInfoRef();
  2036. ]]>
  2037. </script>
  2038. </button>
  2039. <input id="pid" ref="/root/main/ptbs/ptbs_pid" class="input_s_essential" navindex="1" style="left:84px; top:31px; width:75px; height:19px; ">
  2040. <script type="javascript" ev:event="onkeypress">
  2041. <![CDATA[
  2042. // 구현예정 : 재원중인 환자일경우 메세지 처리한다.
  2043. if (event.keyCode=='13') {
  2044. // popup open 없이 조회
  2045. model.setFocus("btn_ptbspid");
  2046. model.makeNode("/root/main/popupendflag");
  2047. model.setValue("/root/main/popupendflag","pass");
  2048. fBaseInfoRef();
  2049. if(model.getValue("/root/main/ptpm/ofidocacptdd") == "") {
  2050. model.removeNodeset("/root/temp3/ptpm");
  2051. submit("TRPMC03010");
  2052. model.setValue("/root/main/ptpm/ofidocacptdd", model.getValue("/root/temp3/ptpm/ofidocacptdd"));
  2053. model.setValue("/root/main/ptpm/ofidocdocuno", model.getValue("/root/temp3/ptpm/ofidocdocuno"));
  2054. model.setValue("/root/main/ptpm/inst", model.getValue("/root/temp3/ptpm/inst"));
  2055. model.setValue("/root/main/ptpm/civilapler", model.getValue("/root/temp3/ptpm/civilapler"));
  2056. model.setValue("/root/main/ptpm/datacollanldrnotidd", model.getValue("/root/temp3/ptpm/datacollanldrnotidd"));
  2057. model.setValue("/root/main/ptpm/etcrem", model.getValue("/root/temp3/ptpm/etcrem"));
  2058. //model.refresh();
  2059. }
  2060. var rows = model.getValue("/root/temp/chosreclistcnt");
  2061. var totordamtsum = '0';
  2062. var totownbamtsum = '0';
  2063. var nopyamttsum = '0';
  2064. var specordamtsum = '0';
  2065. var uncoamtsum = '0';
  2066. var discamtsum = '0';
  2067. for (i=0; i<rows; i++) {
  2068. if(model.getValue("/root/main/list1/chosreclist["+ i + "]/patspecyn") == 'Y' ){
  2069. var temp1 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totordamt");
  2070. var temp2 = model.getValue("/root/main/list1/chosreclist["+ i + "]/nopyamt");
  2071. var temp3 = model.getValue("/root/main/list1/chosreclist["+ i + "]/specordamt");
  2072. var temp4 = model.getValue("/root/main/list1/chosreclist["+ i + "]/uncototamt");
  2073. var temp5 = model.getValue("/root/main/list1/chosreclist["+ i + "]/discamt");
  2074. var temp6 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totownbamt");
  2075. totordamtsum = parseInt(totordamtsum) + parseInt(temp1);
  2076. nopyamttsum = parseInt(nopyamttsum) + parseInt(temp2);
  2077. specordamtsum = parseInt(specordamtsum) + parseInt(temp3);
  2078. uncoamtsum = parseInt(uncoamtsum) + parseInt(temp4);
  2079. discamtsum = parseInt(discamtsum) + parseInt(temp5);
  2080. totownbamtsum = parseInt(totownbamtsum) + parseInt(temp6);
  2081. }
  2082. }
  2083. model.setValue("/root/main/ptpm/totalamt", totordamtsum);
  2084. model.setValue("/root/main/ptpm/patowntotamt", totownbamtsum);
  2085. model.setValue("/root/main/ptpm/nonpayallamt", nopyamttsum);
  2086. model.setValue("/root/main/ptpm/choiordamt", specordamtsum);
  2087. model.setValue("/root/main/ptpm/uncoamt", uncoamtsum);
  2088. model.setValue("/root/main/ptpm/discamt", discamtsum);
  2089. // if(model.getValue("/root/main/ptpm/ofidocacptdd") == "") {
  2090. // submit("TRPMC03010");
  2091. //
  2092. // model.setValue("/root/main/ptpm/ofidocacptdd", model.getValue("/root/temp3/ptpm/ofidocacptdd"));
  2093. // model.setValue("/root/main/ptpm/ofidocdocuno", model.getValue("/root/temp3/ptpm/ofidocdocuno"));
  2094. // model.setValue("/root/main/ptpm/inst", model.getValue("/root/temp3/ptpm/inst"));
  2095. // model.setValue("/root/main/ptpm/civilapler", model.getValue("/root/temp3/ptpm/civilapler"));
  2096. // model.setValue("/root/main/ptpm/datacollanldrnotidd", model.getValue("/root/temp3/ptpm/datacollanldrnotidd"));
  2097. // alert(model.getValue("/root/temp3/ptpm/ofidocdocuno"));
  2098. // alert(model.getValue("/root/main/ptpm/ofidocdocuno"));
  2099. // }
  2100. if(model.getValue("/root/main/ptpm/ofidocretno") == "" || model.getValue("/root/main/ptpm/ofidocretno") == null) {
  2101. btn_all.dispatch("DOMActivate");
  2102. }
  2103. model.refresh();
  2104. }
  2105. //ipt_uncoamt.refresh();
  2106. ]]>
  2107. </script>
  2108. </input>
  2109. <input id="ipt_rrgstno1" ref="/root/main/ptbs/ptbs_rrgstno1" class="input_s_essential" navindex="2" style="left:305px; top:31px; width:60px; height:19px; ">
  2110. <script type="javascript" ev:event="onkeypress">
  2111. <![CDATA[
  2112. if (event.keyCode=='13') {
  2113. model.setValue("/root/send/data4/autoflag","Y");
  2114. inputEnterKey("btn_ptbsrrgstno", "DOMActivate");
  2115. }
  2116. ]]>
  2117. </script>
  2118. </input>
  2119. <output id="opt_rrgstno2" ref="/root/main/ptbs/ptbs_rrgstno2" class="output_fix" appearance="output" style="left:368px; top:31px; width:60px; height:19px; "/>
  2120. <input id="ipt_hngnm" ref="/root/main/ptbs/ptbs_hngnm" class="input_s_essential" navindex="3" style="left:84px; top:55px; width:75px; height:19px; ">
  2121. <script type="javascript" ev:event="onkeypress">
  2122. <![CDATA[
  2123. if (event.keyCode=='13') {
  2124. model.setValue("/root/send/data4/autoflag","Y");
  2125. inputEnterKey("btn_ptbshngnm", "DOMActivate");
  2126. }
  2127. ]]>
  2128. </script>
  2129. </input>
  2130. <output id="opt_mpphontel" ref="/root/main/ptbs/ptbs_mpphontel" class="output_fix" appearance="output" style="left:408px; top:55px; width:100px; height:19px; "/>
  2131. <output id="opt_sex" ref="/root/main/ptbs/ptbs_sex" class="output_fix" appearance="output" style="left:453px; top:31px; width:26px; height:19px; "/>
  2132. <output id="opt_age" ref="/root/main/ptbs/ptbs_age" class="output_fix" appearance="output" style="left:482px; top:31px; width:26px; height:19px; "/>
  2133. <output id="opt_hometel" ref="/root/main/ptbs/ptbs_hometel" class="output_fix" appearance="output" style="left:305px; top:55px; width:100px; height:19px; "/>
  2134. <output id="opt_zipcd1" ref="/root/main/ptbs/ptbs_zipcd1" class="output_fix" appearance="output" style="left:953px; top:31px; width:45px; height:19px; "/>
  2135. <output id="opt_zipcd2" ref="/root/main/ptbs/ptbs_zipcd2" class="output_fix" appearance="output" style="left:1001px; top:31px; width:45px; height:19px; "/>
  2136. <output id="opt_address" ref="/root/main/ptbs/ptbs_zipnm" class="output_fix" appearance="output" style="left:1049px; top:31px; width:137px; height:19px; "/>
  2137. <output id="opt_detladdr" ref="/root/main/ptbs/ptbs_detladdr" class="output_fix" appearance="output" style="left:953px; top:55px; width:233px; height:19px; "/>
  2138. <select1 id="cmb_datadelive" ref="/root/main/ptpm/datadelive" class="combo_default" navindex="9" appearance="minimal" sstyle="left:123px; top:176px; width:115px; height:19px;">
  2139. <choices>
  2140. <item>
  2141. <label>선택진료</label>
  2142. <value>1</value>
  2143. </item>
  2144. <item>
  2145. <label>개인별내역</label>
  2146. <value>2</value>
  2147. </item>
  2148. <item>
  2149. <label>의무기록</label>
  2150. <value>3</value>
  2151. </item>
  2152. </choices>
  2153. </select1>
  2154. <caption id="caption21" class="cell_1" style="left:405px; top:105px; width:108px; height:33px; color:#000000; text-align:center; vertical-align:middle; ">민원신청자</caption>
  2155. <input id="ipt_civilapler" ref="/root/main/ptpm/civilapler" class="input_default" style="left:405px; top:140px; width:108px; height:19px; ">
  2156. <script type="javascript" ev:event="onkeypress">
  2157. <![CDATA[
  2158. if (event.keyCode == "13")
  2159. {
  2160. model.setFocus("cmb_insttype");
  2161. }
  2162. ]]>
  2163. </script>
  2164. </input>
  2165. <line id="line13" class="line_1" style="x1:5px; y1:184px; x2:1184px; y2:185px; "/>
  2166. <caption id="caption36" class="cell_1" style="left:269px; top:189px; width:129px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">비급여전체금액</caption>
  2167. <input id="ipt_nonpayallamt" ref="/root/main/ptpm/nonpayallamt" class="input_default" navindex="16" format="(-)#,###" style="left:269px; top:214px; width:129px; height:19px; text-align:right; background-color:#cc99ff; "/>
  2168. <caption id="caption39" class="cell_1" style="left:665px; top:189px; width:129px; height:23px; text-align:center; vertical-align:middle; ">심평원결정정당금액</caption>
  2169. <input id="ipt_choiordrtnfcstamt" ref="/root/main/ptpm/choiordrtnfcstamt" class="input_default" disabled="false" navindex="19" format="(-)#,###" style="left:665px; top:214px; width:129px; height:19px; text-align:right; ">
  2170. <script type="javascript" ev:event="onkeypress">
  2171. <![CDATA[
  2172. setInputNodeCurText(",");
  2173. var vedimedcaretotamt = eval(model.getValue("/root/main/ptpm/nonpayallamt")) + eval(model.getValue("/root/main/ptpm/choiordamt")) - eval(model.getValue("/root/main/ptpm/choiordrtnfcstamt"));
  2174. if (event.keyCode == "13")
  2175. {
  2176. model.setValue("/root/main/ptpm/tretflag" , "2");
  2177. model.setValue("/root/main/ptpm/edimedcaretotamt", vedimedcaretotamt);
  2178. // model.setFocus("ipt_aprvcnclrtnfcstamt");
  2179. model.refresh();
  2180. }
  2181. ]]>
  2182. </script>
  2183. </input>
  2184. <line id="line17" class="line_3" style="x1:5px; y1:234px; x2:1185px; y2:234px; "/>
  2185. <caption id="caption42" class="tit_2" style="left:10px; top:240px; width:204px; height:13px; font-family:돋움; vertical-align:middle; ">진행사항</caption>
  2186. <line id="line12" class="line_1" style="x1:5px; y1:257px; x2:925px; y2:256px; "/>
  2187. <input id="ipt_rtnschenotiamt" ref="/root/main/ptpm/rtnschenotiamt" class="input_default" navindex="25" format="(-)#,###" appearance="minimal" style="left:266px; top:295px; width:93px; height:19px; text-align:right; vertical-align:bottom; ">
  2188. <script type="javascript" ev:event="onkeypress">
  2189. <![CDATA[
  2190. setInputNodeCurText(",");
  2191. var vchoiordrtnfcstamt = eval(model.getValue("/root/main/ptpm/nonpayallamt")) + eval(model.getValue("/root/main/ptpm/choiordamt")) - eval(model.getValue("/root/main/ptpm/rtnschenotiamt"));
  2192. if (event.keyCode == "13")
  2193. {
  2194. model.setValue("/root/main/ptpm/tretflag" , "3");
  2195. model.setValue("/root/main/ptpm/statflag", "4");
  2196. model.setValue("/root/main/ptpm/fcstdeciamt", model.getValue("/root/main/ptpm/rtnschenotiamt"));
  2197. model.setValue("/root/main/ptpm/choiordrtnfcstamt", vchoiordrtnfcstamt);
  2198. model.setValue("/root/main/ptpm/edimedcaretotamt", 0);
  2199. model.setFocus("ipt_paycalcamt");
  2200. if(model.getValue("/root/main/ptpm/rtnschenotiamt") == 0) {
  2201. model.setValue("/root/main/ptpm/tretflag" , "2");
  2202. }
  2203. model.refresh();
  2204. }
  2205. ]]>
  2206. </script>
  2207. <script type="javascript" ev:event="DOMFocusOut">
  2208. <![CDATA[
  2209. var vchoiordrtnfcstamt = eval(model.getValue("/root/main/ptpm/nonpayallamt")) + eval(model.getValue("/root/main/ptpm/choiordamt")) - eval(model.getValue("/root/main/ptpm/rtnschenotiamt"));
  2210. model.setValue("/root/main/ptpm/tretflag" , "3");
  2211. model.setValue("/root/main/ptpm/statflag", "4");
  2212. model.setValue("/root/main/ptpm/fcstdeciamt", model.getValue("/root/main/ptpm/rtnschenotiamt"));
  2213. model.setValue("/root/main/ptpm/choiordrtnfcstamt", vchoiordrtnfcstamt);
  2214. model.setValue("/root/main/ptpm/edimedcaretotamt", 0);
  2215. //model.setFocus("ipt_paycalcamt");
  2216. if(model.getValue("/root/main/ptpm/rtnschenotiamt") == 0) {
  2217. model.setValue("/root/main/ptpm/tretflag" , "2");
  2218. }
  2219. model.refresh();
  2220. ]]>
  2221. </script>
  2222. </input>
  2223. <caption id="caption46" class="cell_1" style="left:266px; top:278px; width:93px; height:15px; color:#000000; text-align:center; vertical-align:middle; ">환불결정액</caption>
  2224. <select1 id="ipt_statflag" ref="/root/main/ptpm/statflag" navindex="26" appearance="minimal" style="left:5px; top:295px; width:75px; height:19px; ">
  2225. <choices>
  2226. <item>
  2227. <label>자료수집</label>
  2228. <value>0</value>
  2229. </item>
  2230. <item>
  2231. <label>이의신청</label>
  2232. <value>1</value>
  2233. </item>
  2234. <item>
  2235. <label>추가청구</label>
  2236. <value>2</value>
  2237. </item>
  2238. <item>
  2239. <label>심판청구</label>
  2240. <value>3</value>
  2241. </item>
  2242. <item>
  2243. <label>종결</label>
  2244. <value>4</value>
  2245. </item>
  2246. </choices>
  2247. </select1>
  2248. <caption id="caption47" class="cell_1" style="left:5px; top:261px; width:75px; height:32px; color:#000000; text-align:center; vertical-align:middle; ">진행상태</caption>
  2249. <caption id="caption49" class="cell_1" style="left:485px; top:345px; width:95px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">
  2250. <![CDATA[이의신청종결
  2251. 통보일자]]>
  2252. </caption>
  2253. <input id="ipt_jviendnotidd" ref="/root/main/ptpm/jviendnotidd" class="input_default" navindex="32" inputtype="date" style="left:485px; top:376px; width:95px; height:19px; ">
  2254. <script type="javascript" ev:event="onkeypress">
  2255. <![CDATA[
  2256. if (event.keyCode == "13")
  2257. {
  2258. model.setFocus("ipt_obtappdecidocuno");
  2259. }
  2260. ]]>
  2261. </script>
  2262. </input>
  2263. <input id="ipt_obtappaftrtndeciamt" ref="/root/main/ptpm/obtappaftrtndeciamt" class="input_default" navindex="34" format="(-)#,###" style="left:294px; top:376px; width:95px; height:19px; text-align:right; ">
  2264. <script type="javascript" ev:event="onkeypress">
  2265. <![CDATA[
  2266. if (event.keyCode == "13")
  2267. {
  2268. model.setFocus("ipt_obtapprsltrem");
  2269. }
  2270. ]]>
  2271. </script>
  2272. </input>
  2273. <caption id="caption51" class="cell_1" style="left:294px; top:345px; width:95px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">
  2274. <![CDATA[이의신청후
  2275. 환불결정액]]>
  2276. </caption>
  2277. <line id="line18" class="line_2" style="x1:6px; y1:316px; x2:1186px; y2:316px; "/>
  2278. <line id="line15" class="line_2" style="x1:5px; y1:161px; x2:1185px; y2:161px; "/>
  2279. <button id="btn_all" class="btn1_letter4" style="left:1039px; top:470px; width:80px; height:22px; ">
  2280. <caption>전체조회</caption>
  2281. <script type="javascript" ev:event="DOMActivate">
  2282. <![CDATA[
  2283. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  2284. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  2285. model.setValue("/root/send/data3/ofidocdocuno", model.getValue("/root/main/ptpm/ofidocdocuno"));
  2286. model.setValue("/root/send/data3/flag","A");
  2287. // 수진 내원 내역 조회
  2288. fGetChosRecRef();
  2289. var rows = model.getValue("/root/temp/chosreclistcnt");
  2290. var totordamtsum = '0'
  2291. var totownbamtsum = '0';;
  2292. var nopyamttsum = '0';
  2293. var specordamtsum = '0';
  2294. var uncoamtsum = '0';
  2295. var discamtsum = '0';
  2296. for (i=0; i<rows; i++) {
  2297. if(model.getValue("/root/main/list1/chosreclist["+ i + "]/patspecyn") == 'Y' ){
  2298. var temp1 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totordamt");
  2299. var temp2 = model.getValue("/root/main/list1/chosreclist["+ i + "]/nopyamt");
  2300. var temp3 = model.getValue("/root/main/list1/chosreclist["+ i + "]/specordamt");
  2301. var temp4 = model.getValue("/root/main/list1/chosreclist["+ i + "]/uncototamt");
  2302. var temp5 = model.getValue("/root/main/list1/chosreclist["+ i + "]/discamt");
  2303. var temp6 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totownbamt");
  2304. totordamtsum = parseInt(totordamtsum) + parseInt(temp1);
  2305. nopyamttsum = parseInt(nopyamttsum) + parseInt(temp2);
  2306. specordamtsum = parseInt(specordamtsum) + parseInt(temp3);
  2307. uncoamtsum = parseInt(uncoamtsum) + parseInt(temp4);
  2308. discamtsum = parseInt(discamtsum) + parseInt(temp5);
  2309. totownbamtsum = parseInt(totownbamtsum) + parseInt(temp6);
  2310. }
  2311. }
  2312. model.setValue("/root/main/ptpm/totalamt", totordamtsum);
  2313. model.setValue("/root/main/ptpm/patowntotamt", totownbamtsum);
  2314. model.setValue("/root/main/ptpm/nonpayallamt", nopyamttsum);
  2315. model.setValue("/root/main/ptpm/choiordamt", specordamtsum);
  2316. model.setValue("/root/main/ptpm/uncoamt", uncoamtsum);
  2317. model.setValue("/root/main/ptpm/discamt", discamtsum);
  2318. //수진 내역 기존 선택여부 조회
  2319. fGetColorChangeChoslist();
  2320. model.refresh();
  2321. ]]>
  2322. </script>
  2323. </button>
  2324. <caption id="caption11" class="tit_2" style="left:10px; top:169px; width:104px; height:13px; font-family:돋움; color:#000000; vertical-align:middle; ">분쟁대상금액</caption>
  2325. <select1 id="radio13" ref="/root/main/ioflag" appearance="full" cellspacing="8" cols="6" rows="1" overflow="visible" style="left:185px; top:475px; width:170px; height:16px; background-color:transparent; border-style:none; ">
  2326. <choices>
  2327. <item>
  2328. <label>전체</label>
  2329. <value>A</value>
  2330. </item>
  2331. <item>
  2332. <label>외래</label>
  2333. <value>O</value>
  2334. </item>
  2335. <item>
  2336. <label>입원</label>
  2337. <value>I</value>
  2338. </item>
  2339. </choices>
  2340. <script type="javascript" ev:event="xforms-value-changed">
  2341. <![CDATA[
  2342. var ioflag = radio13.value;
  2343. if( ioflag == "O" ){ //외래
  2344. grd_chosrec.attribute("nodeset") = "/root/main/list1/chosreclist[ ioflag ='O' ]";
  2345. datagrid1.attribute("nodeset") = "/root/main/list2/clamlist[ ioflag ='O' ]";
  2346. grd_chosrec.rebuild();
  2347. datagrid1.rebuild();
  2348. }else if( ioflag == "I"){ //입원
  2349. grd_chosrec.attribute("nodeset") = "/root/main/list1/chosreclist[ ioflag ='I' ]";
  2350. datagrid1.attribute("nodeset") = "/root/main/list2/clamlist[ ioflag ='I' ]";
  2351. grd_chosrec.rebuild();
  2352. datagrid1.rebuild();
  2353. }else{
  2354. grd_chosrec.attribute("nodeset") = "/root/main/list1/chosreclist";
  2355. datagrid1.attribute("nodeset") = "/root/main/list2/clamlist";
  2356. grd_chosrec.rebuild();
  2357. datagrid1.rebuild();
  2358. }
  2359. //fGetColorChangeChoslist();
  2360. ]]>
  2361. </script>
  2362. </select1>
  2363. <caption id="caption17" class="cell_1" style="left:5px; top:345px; width:90px; height:29px; text-align:center; vertical-align:middle; ">이의신청일</caption>
  2364. <input id="ipt_obtappdd" ref="/root/main/ptpm/obtappdd" class="input_default" navindex="30" inputtype="date" style="left:5px; top:376px; width:90px; height:19px; ">
  2365. <script type="javascript" ev:event="xforms-value-changed">
  2366. <![CDATA[
  2367. var value = model.getValue("/root/main/ptpm/cncldocudelivedd");
  2368. if ( value != "") {
  2369. ipt_lastenddd.value = value;
  2370. }
  2371. ]]>
  2372. </script>
  2373. <script type="javascript" ev:event="onkeypress">
  2374. <![CDATA[
  2375. if (event.keyCode == "13")
  2376. {
  2377. model.setFocus("ipt_obtappdecino");
  2378. }
  2379. ]]>
  2380. </script>
  2381. </input>
  2382. <input id="ipt_obtappamt" ref="/root/main/ptpm/obtappamt" class="input_default" format="(-)#,###" style="left:98px; top:376px; width:95px; height:19px; text-align:right; ">
  2383. <script type="javascript" ev:event="onkeypress">
  2384. <![CDATA[
  2385. if (event.keyCode == "13")
  2386. {
  2387. model.setFocus("ipt_obtappdecidd");
  2388. }
  2389. ]]>
  2390. </script>
  2391. </input>
  2392. <caption id="caption38" class="cell_1" style="left:98px; top:345px; width:95px; height:29px; text-align:center; vertical-align:middle; ">이의신청액</caption>
  2393. <caption id="caption41" class="cell_1" style="left:695px; top:344px; width:122px; height:30px; color:#000000; text-align:center; vertical-align:middle; ">심판청구액</caption>
  2394. <caption id="caption54" class="cell_1" style="left:820px; top:344px; width:110px; height:30px; text-align:center; vertical-align:middle; ">
  2395. <![CDATA[심판청구결과
  2396. 통보일자]]>
  2397. </caption>
  2398. <input id="ipt_judgclamdecidd" ref="/root/main/ptpm/judgclamdecidd" class="input_default" navindex="39" inputtype="date" style="left:820px; top:376px; width:110px; height:19px; ">
  2399. <script type="javascript" ev:event="onkeypress">
  2400. <![CDATA[
  2401. if (event.keyCode == "13")
  2402. {
  2403. model.setFocus("ipt_judgclamdecidocuno");
  2404. }
  2405. ]]>
  2406. </script>
  2407. </input>
  2408. <input id="ipt_judgclamamt" ref="/root/main/ptpm/judgclamamt" class="input_default" navindex="38" format="(-)#,###" style="left:695px; top:376px; width:122px; height:19px; text-align:right; ">
  2409. <script type="javascript" ev:event="onkeypress">
  2410. <![CDATA[
  2411. if (event.keyCode == "13")
  2412. {
  2413. model.setFocus("ipt_judgclamdecidd");
  2414. }
  2415. ]]>
  2416. </script>
  2417. </input>
  2418. <line id="line6" class="line_3" style="x1:5px; y1:396px; x2:1187px; y2:396px; "/>
  2419. <caption id="caption56" class="cell_1" style="left:1063px; top:344px; width:122px; height:30px; text-align:center; vertical-align:middle; ">
  2420. <![CDATA[심판청구
  2421. 인정액]]>
  2422. </caption>
  2423. <input id="ipt_judgclamaftrtndeciamt" ref="/root/main/ptpm/judgclamaftrtndeciamt" class="input_default" navindex="41" format="(-)#,###" style="left:1063px; top:376px; width:122px; height:19px; text-align:right; ">
  2424. <script type="javascript" ev:event="onkeypress">
  2425. <![CDATA[
  2426. if (event.keyCode == "13")
  2427. {
  2428. model.setFocus("ipt_tretflag");
  2429. }
  2430. ]]>
  2431. </script>
  2432. </input>
  2433. <caption id="caption57" class="tit_2" style="left:5px; top:401px; width:184px; height:13px; font-family:돋움; vertical-align:middle; ">처리사항</caption>
  2434. <line id="line19" class="line_1" style="x1:5px; y1:417px; x2:493px; y2:416px; "/>
  2435. <line id="line21" class="line_3" style="x1:0px; y1:465px; x2:1183px; y2:465px; "/>
  2436. <select1 id="ipt_tretflag" ref="/root/main/ptpm/tretflag" navindex="42" appearance="minimal" style="left:5px; top:445px; width:75px; height:19px; ">
  2437. <choices>
  2438. <item>
  2439. <label>진행</label>
  2440. <value>1</value>
  2441. </item>
  2442. <item>
  2443. <label>정당</label>
  2444. <value>2</value>
  2445. </item>
  2446. <item>
  2447. <label>환불</label>
  2448. <value>3</value>
  2449. </item>
  2450. <item>
  2451. <label>환불/취하</label>
  2452. <value>4</value>
  2453. </item>
  2454. <item>
  2455. <label>취하</label>
  2456. <value>5</value>
  2457. </item>
  2458. </choices>
  2459. <script type="javascript" ev:event="onkeypress">
  2460. <![CDATA[
  2461. if (event.keyCode == "13")
  2462. {
  2463. model.setFocus("ipt_cncldocudelivedd");
  2464. }
  2465. ]]>
  2466. </script>
  2467. <script type="javascript" ev:event="xforms-value-changed">
  2468. <![CDATA[
  2469. var vtretflag = model.getValue("/root/main/ptpm/tretflag");
  2470. var vnonpayallamt = eval(model.getValue("/root/main/ptpm/nonpayallamt")) + eval(model.getValue("/root/main/ptpm/choiordamt"));
  2471. if(vtretflag == "1") { // 진행중일땐 선택진료 + 비급여 액 전액이 진행중 금액
  2472. model.setValue("/root/main/ptpm/edimedcaretotamt", vnonpayallamt);
  2473. model.setValue("/root/main/ptpm/choiordrtnfcstamt", 0);
  2474. model.setValue("/root/main/ptpm/aprvcnclrtnfcstamt", 0);
  2475. model.setValue("/root/main/ptpm/ordfcstamt", 0);
  2476. model.setValue("/root/main/ptpm/rtnschenotiamt", 0);
  2477. model.setValue("/root/main/ptpm/fcstdeciamt", 0);
  2478. model.setValue("/root/main/ptpm/paycalcamt", 0);
  2479. model.setValue("/root/main/ptpm/purertnamt", 0);
  2480. model.setValue("/root/main/ptpm/cncldocudelivedd", "");
  2481. model.setValue("/root/main/ptpm/fcstdecidd", "");
  2482. model.setValue("/root/main/ptpm/roothospexpsflag", "");
  2483. } else if(vtretflag == "2") { // 정당일땐 진행중 금액 전액이 정당금액
  2484. model.setValue("/root/main/ptpm/choiordrtnfcstamt", vnonpayallamt);
  2485. model.setValue("/root/main/ptpm/edimedcaretotamt", 0);
  2486. model.setValue("/root/main/ptpm/aprvcnclrtnfcstamt", 0);
  2487. model.setValue("/root/main/ptpm/ordfcstamt", 0);
  2488. model.setValue("/root/main/ptpm/rtnschenotiamt", 0);
  2489. model.setValue("/root/main/ptpm/fcstdeciamt", 0);
  2490. model.setValue("/root/main/ptpm/paycalcamt", 0);
  2491. model.setValue("/root/main/ptpm/purertnamt", 0);
  2492. model.setValue("/root/main/ptpm/cncldocudelivedd", "");
  2493. model.setValue("/root/main/ptpm/fcstdecidd", "");
  2494. model.setValue("/root/main/ptpm/roothospexpsflag", "");
  2495. } else if(vtretflag == "3") { // 환불일땐 진행중 금액 전액이 정당금액 간후 환불금 입력하면 뺌
  2496. model.setValue("/root/main/ptpm/choiordrtnfcstamt", vnonpayallamt);
  2497. model.setValue("/root/main/ptpm/edimedcaretotamt", 0);
  2498. model.setValue("/root/main/ptpm/aprvcnclrtnfcstamt", 0);
  2499. model.setValue("/root/main/ptpm/ordfcstamt", 0);
  2500. model.setValue("/root/main/ptpm/rtnschenotiamt", 0);
  2501. model.setValue("/root/main/ptpm/fcstdeciamt", 0);
  2502. model.setValue("/root/main/ptpm/paycalcamt", 0);
  2503. model.setValue("/root/main/ptpm/purertnamt", 0);
  2504. model.setValue("/root/main/ptpm/cncldocudelivedd", "");
  2505. model.setValue("/root/main/ptpm/fcstdecidd", "");
  2506. model.setValue("/root/main/ptpm/roothospexpsflag", "");
  2507. } else if(vtretflag == "4") { // 취하환불일땐 진행중 금액 전액이 정당금액 간후 최종환불결정액 입력하면 뺌
  2508. model.setValue("/root/main/ptpm/choiordrtnfcstamt", vnonpayallamt);
  2509. model.setValue("/root/main/ptpm/edimedcaretotamt", 0);
  2510. model.setValue("/root/main/ptpm/aprvcnclrtnfcstamt", 0);
  2511. model.setValue("/root/main/ptpm/ordfcstamt", 0);
  2512. model.setValue("/root/main/ptpm/rtnschenotiamt", 0);
  2513. model.setValue("/root/main/ptpm/fcstdeciamt", 0);
  2514. model.setValue("/root/main/ptpm/paycalcamt", 0);
  2515. model.setValue("/root/main/ptpm/purertnamt", 0);
  2516. } else if(vtretflag == "5") { // 취하일땐 진행중 금액 전액이 취하금액
  2517. model.setValue("/root/main/ptpm/aprvcnclrtnfcstamt", vnonpayallamt);
  2518. model.setValue("/root/main/ptpm/choiordrtnfcstamt", 0);
  2519. model.setValue("/root/main/ptpm/edimedcaretotamt", 0);
  2520. model.setValue("/root/main/ptpm/ordfcstamt", 0);
  2521. model.setValue("/root/main/ptpm/rtnschenotiamt", 0);
  2522. model.setValue("/root/main/ptpm/fcstdeciamt", 0);
  2523. model.setValue("/root/main/ptpm/paycalcamt", 0);
  2524. model.setValue("/root/main/ptpm/purertnamt", 0);
  2525. }
  2526. model.refresh();
  2527. ]]>
  2528. </script>
  2529. </select1>
  2530. <caption id="caption58" class="cell_1" style="left:5px; top:420px; width:75px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">처리상태</caption>
  2531. <input id="ipt_cncldocudelivedd" ref="/root/main/ptpm/cncldocudelivedd" class="input_default" navindex="43" inputtype="date" style="left:174px; top:445px; width:88px; height:19px; ">
  2532. <script type="javascript" ev:event="onkeypress">
  2533. <![CDATA[
  2534. if (event.keyCode == "13")
  2535. {
  2536. model.setFocus("ipt_aprvcnclrtnfcstamt");
  2537. }
  2538. ]]>
  2539. </script>
  2540. </input>
  2541. <caption id="caption59" class="cell_1" style="left:174px; top:420px; width:88px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">취하일</caption>
  2542. <input id="ipt_fcstdecidd" ref="/root/main/ptpm/fcstdecidd" class="input_default" navindex="45" inputtype="date" style="left:265px; top:445px; width:106px; height:19px; ">
  2543. <script type="javascript" ev:event="onkeypress">
  2544. <![CDATA[
  2545. if (event.keyCode == "13")
  2546. {
  2547. model.setFocus("ipt_fcstdeciamt");
  2548. }
  2549. ]]>
  2550. </script>
  2551. </input>
  2552. <caption id="caption61" class="cell_1" style="left:265px; top:420px; width:106px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">취하종결통보일자</caption>
  2553. <caption id="caption63" class="cell_1" style="left:711px; top:420px; width:100px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">지급일자</caption>
  2554. <input id="ipt_fcstdeciamt" ref="/root/main/ptpm/fcstdeciamt" class="combo_default" navindex="46" inputtype="button" format="(-)#,###" style="left:917px; top:445px; width:124px; height:19px; text-align:right; ">
  2555. <script type="javascript" ev:event="onbuttonclick">
  2556. <![CDATA[
  2557. setParameter("fcstordmat", model.getValue("/root/main/ptpm/fcstordmat"));
  2558. setParameter("fcstinamt", model.getValue("/root/main/ptpm/fcstinamt"));
  2559. setParameter("fcstchrgfood", model.getValue("/root/main/ptpm/fcstchrgfood"));
  2560. setParameter("fcstmedimpsamt", model.getValue("/root/main/ptpm/fcstmedimpsamt"));
  2561. setParameter("fcstinjamt", model.getValue("/root/main/ptpm/fcstinjamt"));
  2562. setParameter("fcstanstamt", model.getValue("/root/main/ptpm/fcstanstamt"));
  2563. setParameter("fcstcureopamt", model.getValue("/root/main/ptpm/fcstcureopamt"));
  2564. setParameter("fcsttestamt", model.getValue("/root/main/ptpm/fcsttestamt"));
  2565. setParameter("fcstimgdiagrayamt", model.getValue("/root/main/ptpm/fcstimgdiagrayamt"));
  2566. setParameter("fcstscitamt", model.getValue("/root/main/ptpm/fcstscitamt"));
  2567. setParameter("fcstpsypamt", model.getValue("/root/main/ptpm/fcstpsypamt"));
  2568. setParameter("fcstctordamt", model.getValue("/root/main/ptpm/fcstctordamt"));
  2569. setParameter("fcstmriordamt", model.getValue("/root/main/ptpm/fcstmriordamt"));
  2570. setParameter("fcstpetordamt", model.getValue("/root/main/ptpm/fcstpetordamt"));
  2571. setParameter("fcstchoiordamt", model.getValue("/root/main/ptpm/fcstchoiordamt"));
  2572. setParameter("fcstnopyamt", model.getValue("/root/main/ptpm/fcstnopyamt"));
  2573. setParameter("fcstetcamt", model.getValue("/root/main/ptpm/fcstetcamt"));
  2574. setParameter("fcstcurematramt", model.getValue("/root/main/ptpm/fcstcurematramt"));
  2575. setParameter("deciordmat", model.getValue("/root/main/ptpm/deciordmat"));
  2576. setParameter("deciinamt", model.getValue("/root/main/ptpm/deciinamt"));
  2577. setParameter("decichrgfood", model.getValue("/root/main/ptpm/decichrgfood"));
  2578. setParameter("decimedimpsamt", model.getValue("/root/main/ptpm/decimedimpsamt"));
  2579. setParameter("deciinjamt", model.getValue("/root/main/ptpm/deciinjamt"));
  2580. setParameter("decianstamt", model.getValue("/root/main/ptpm/decianstamt"));
  2581. setParameter("decicureopamt", model.getValue("/root/main/ptpm/decicureopamt"));
  2582. setParameter("decitestamt", model.getValue("/root/main/ptpm/decitestamt"));
  2583. setParameter("deciimgdiagrayamt", model.getValue("/root/main/ptpm/deciimgdiagrayamt"));
  2584. setParameter("deciscitamt", model.getValue("/root/main/ptpm/deciscitamt"));
  2585. setParameter("decipsypamt", model.getValue("/root/main/ptpm/decipsypamt"));
  2586. setParameter("decictordamt", model.getValue("/root/main/ptpm/decictordamt"));
  2587. setParameter("decimriordamt", model.getValue("/root/main/ptpm/decimriordamt"));
  2588. setParameter("decipetordamt", model.getValue("/root/main/ptpm/decipetordamt"));
  2589. setParameter("decichoiordamt", model.getValue("/root/main/ptpm/decichoiordamt"));
  2590. setParameter("decinopyamt", model.getValue("/root/main/ptpm/decinopyamt"));
  2591. setParameter("decietcamt", model.getValue("/root/main/ptpm/decietcamt"));
  2592. setParameter("decicurematramt", model.getValue("/root/main/ptpm/decicurematramt"));
  2593. open("SPPMC07000");
  2594. model.refresh();
  2595. model.setFocus("ipt_refltdd");
  2596. ]]>
  2597. </script>
  2598. <script type="javascript" ev:event="onkeypress">
  2599. <![CDATA[
  2600. setInputNodeCurText(",");
  2601. var vchoiordrtnfcstamt = eval(model.getValue("/root/main/ptpm/nonpayallamt")) + eval(model.getValue("/root/main/ptpm/choiordamt")) - eval(model.getValue("/root/main/ptpm/fcstdeciamt"));
  2602. if (event.keyCode == "13")
  2603. {
  2604. model.setValue("/root/main/ptpm/tretflag" , "4");
  2605. model.setValue("/root/main/ptpm/choiordrtnfcstamt", vchoiordrtnfcstamt);
  2606. model.setValue("/root/main/ptpm/ordfcstamt", model.getValue("/root/main/ptpm/fcstdeciamt"));
  2607. model.setValue("/root/main/ptpm/edimedcaretotamt", 0);
  2608. model.setFocus("ipt_roothospexpsflag");
  2609. model.refresh();
  2610. }
  2611. ]]>
  2612. </script>
  2613. </input>
  2614. <select1 id="ipt_roothospexpsflag" ref="/root/main/ptpm/roothospexpsflag" navindex="48" appearance="minimal" style="left:374px; top:445px; width:120px; height:19px; ">
  2615. <choices>
  2616. <item>
  2617. <label/>
  2618. <value/>
  2619. </item>
  2620. <item>
  2621. <label>면담</label>
  2622. <value>A</value>
  2623. </item>
  2624. <item>
  2625. <label>전화상담</label>
  2626. <value>B</value>
  2627. </item>
  2628. <item>
  2629. <label>자료제출</label>
  2630. <value>C</value>
  2631. </item>
  2632. <item>
  2633. <label>취하서</label>
  2634. <value>D</value>
  2635. </item>
  2636. </choices>
  2637. <script type="javascript" ev:event="onkeypress">
  2638. <![CDATA[
  2639. if (event.keyCode == "13")
  2640. {
  2641. model.setFocus("ipt_ordfcstamt");
  2642. }
  2643. ]]>
  2644. </script>
  2645. </select1>
  2646. <input id="ipt_ordfcstdd" ref="/root/main/ptpm/ordfcstdd" class="input_default" navindex="50" inputtype="date" style="left:711px; top:445px; width:100px; height:19px; ">
  2647. <script type="javascript" ev:event="onkeypress">
  2648. <![CDATA[
  2649. if (event.keyCode == "13")
  2650. {
  2651. model.setFocus("ipt_dedutretdd");
  2652. }
  2653. ]]>
  2654. </script>
  2655. </input>
  2656. <caption id="caption64" class="cell_1" style="left:917px; top:420px; width:124px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">환불금</caption>
  2657. <caption id="caption65" class="cell_1" style="left:374px; top:420px; width:120px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">처리방법</caption>
  2658. <caption id="caption66" class="cell_1" style="left:608px; top:420px; width:100px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">공제문서번호</caption>
  2659. <caption id="caption67" class="cell_1" style="left:814px; top:420px; width:100px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">공제차수</caption>
  2660. <caption id="caption68" class="cell_1" style="left:505px; top:420px; width:100; height:23px; color:#000000; text-align:center; vertical-align:middle; ">공문서접수일</caption>
  2661. <input id="ipt_dedutretdd" ref="/root/main/ptpm/dedutretdd" class="input_default" navindex="51" inputtype="date" style="left:504px; top:445px; width:100; height:19px; text-align:right; ">
  2662. <script type="javascript" ev:event="onkeypress">
  2663. <![CDATA[
  2664. if (event.keyCode == "13")
  2665. {
  2666. model.setFocus("ipt_dedudocuno");
  2667. }
  2668. ]]>
  2669. </script>
  2670. </input>
  2671. <input id="ipt_dedudocuno" ref="/root/main/ptpm/dedudocuno" class="input_default" navindex="52" style="left:608px; top:445px; width:100px; height:19px; ">
  2672. <script type="javascript" ev:event="onkeypress">
  2673. <![CDATA[
  2674. if (event.keyCode == "13")
  2675. {
  2676. model.setFocus("ipt_lastenddd");
  2677. }
  2678. ]]>
  2679. </script>
  2680. </input>
  2681. <input id="ipt_lastenddd" ref="/root/main/ptpm/lastenddd" class="input_default" navindex="53" style="left:814px; top:445px; width:100px; height:19px; "/>
  2682. <input id="input23" ref="/root/main/ptpm/totalamt" class="input_default" navindex="16" format="(-)#,###" style="left:5px; top:214px; width:129px; height:19px; text-align:right; background-color:#cc99ff; "/>
  2683. <caption id="caption35" class="cell_1" style="left:5px; top:189px; width:129px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">총진료비</caption>
  2684. <button id="button2" class="btn_sw" group="tab" style="left:83px; top:471px; width:80px; height:22px; ">
  2685. <caption>청구이력</caption>
  2686. <script type="javascript" ev:event="DOMActivate">
  2687. <![CDATA[
  2688. model.toggle("case4");
  2689. //fGetColorChangeChoslist();
  2690. button6.visible = false;
  2691. button7.visible = true;
  2692. ]]>
  2693. </script>
  2694. </button>
  2695. <button id="btn_m_otpt" class="btn_sw" group="tab" selected="true" style="left:6px; top:471px; width:75px; height:22px; ">
  2696. <caption>내원이력</caption>
  2697. <script type="javascript" ev:event="DOMActivate">
  2698. <![CDATA[
  2699. model.toggle("case3");
  2700. //fGetColorChangeChoslist();
  2701. button6.visible = true;
  2702. button7.visible = false;
  2703. ]]>
  2704. </script>
  2705. </button>
  2706. <switch id="switch2" style="left:5px; top:500px; width:1187px; height:170px; ">
  2707. <case id="case3" selected="true">
  2708. <datagrid id="grd_chosrec" nodeset="/root/main/list1/chosreclist" caption="선택^사용여부^내원유형^진료/입원일자^퇴원일자^진료과^전문의^보험유형^보조유형^미수총액^총진료비^환자부담금총액^급여액^비급여액^선택진료료^감면금^심사자^생성번호^일련번호^심사자ID^등록번호^공문접수일^공문생성번호^진료과코드^진료의id" colsep="^" colwidth="35, 60, 60, 85, 75, 97, 80, 82, 72, 80, 80, 100,82, 82, 79, 83, 88, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="35" style="left:0px; top:0px; width:1182px; height:163px; ">
  2709. <col checkvalue="Y,N" ref="patspecyn" type="checkbox"/>
  2710. <col checkvalue="Y,N" disabled="true" ref="histyn" type="checkbox"/>
  2711. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  2712. <choices>
  2713. <itemset nodeset="/root/init/P0001list/P0001">
  2714. <label ref="cdnm"/>
  2715. <value ref="cdid"/>
  2716. </itemset>
  2717. </choices>
  2718. </col>
  2719. <col ref="ordindd" format="yyyy-mm-dd" style="text-align:center; "/>
  2720. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  2721. <col ref="orddeptnm" style="text-align:center; "/>
  2722. <col ref="orddrnm" style="text-align:center; "/>
  2723. <col disabled="true" ref="insukind" type="combo">
  2724. <choices>
  2725. <itemset nodeset="/root/init/P0008list/P0008">
  2726. <label ref="cdnm"/>
  2727. <value ref="cdid"/>
  2728. </itemset>
  2729. </choices>
  2730. </col>
  2731. <col disabled="true" ref="suppkind" type="combo">
  2732. <choices>
  2733. <itemset nodeset="/root/init/P0010list/P0010">
  2734. <label ref="cdnm"/>
  2735. <value ref="cdid"/>
  2736. </itemset>
  2737. </choices>
  2738. </col>
  2739. <col ref="uncototamt" format="(-)#,###" style="text-align:right; "/>
  2740. <col ref="totordamt" format="(-)#,###" style="text-align:right; "/>
  2741. <col ref="totownbamt" format="(-)#,###" style="text-align:right; "/>
  2742. <col ref="payamt" format="(-)#,###" style="text-align:right; "/>
  2743. <col ref="nopyamt" format="(-)#,###" style="text-align:right; "/>
  2744. <col ref="specordamt" format="(-)#,###" style="text-align:right; "/>
  2745. <col ref="discamt" format="(-)#,###" style="text-align:right; "/>
  2746. <col ref="judgrnm"/>
  2747. <col ref="cretno" visibility="hidden"/>
  2748. <col ref="seqno" visibility="hidden"/>
  2749. <col ref="judgrid" visibility="hidden"/>
  2750. <col ref="pid" visibility="hidden"/>
  2751. <col ref="ofidocacptdd" visibility="hidden"/>
  2752. <col ref="ofidocretno" visibility="hidden"/>
  2753. <col ref="orddeptcd" visibility="hidden"/>
  2754. <col ref="orddrid" visibility="hidden"/>
  2755. <script type="javascript" ev:event="onclick">
  2756. <![CDATA[
  2757. ]]>
  2758. </script>
  2759. <script type="javascript" ev:event="xforms-value-changed">
  2760. <![CDATA[
  2761. var rows = model.getValue("/root/temp/chosreclistcnt");
  2762. model.removenode("/root/main/ptpm/orddeptcd");
  2763. model.removenode("/root/main/ptpm/orddrid");
  2764. model.removenode("/root/main/ptpm/ordfromdd");
  2765. model.removenode("/root/main/ptpm/ordtodd");
  2766. model.removenode("/root/main/ptpm/ioflag");
  2767. model.removenode("/root/main/ptpm/orddeptnm");
  2768. model.removenode("/root/main/ptpm/orddrnm");
  2769. model.makeNode("/root/main/ptpm/orddeptcd");
  2770. model.makeNode("/root/main/ptpm/orddrid");
  2771. model.makeNode("/root/main/ptpm/ordfromdd");
  2772. model.makeNode("/root/main/ptpm/ordtodd");
  2773. model.makeNode("/root/main/ptpm/ioflag");
  2774. model.makeNode("/root/main/ptpm/orddeptnm");
  2775. model.makeNode("/root/main/ptpm/orddrnm");
  2776. var totordamtsum = '0';
  2777. var totownbamtsum = '0';
  2778. var nopyamttsum = '0';
  2779. var specordamtsum = '0';
  2780. var uncoamtsum = '0';
  2781. var discamtsum = '0';
  2782. var orddeptcd = "";
  2783. var orddrid = "";
  2784. var ordfromdd = "";
  2785. var ordtodd = "";
  2786. var ioflag = "";
  2787. for (i=0; i<rows; i++) {
  2788. if(model.getValue("/root/main/list1/chosreclist["+ i + "]/patspecyn") == 'Y' ){
  2789. var temp1 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totordamt");
  2790. var temp2 = model.getValue("/root/main/list1/chosreclist["+ i + "]/nopyamt");
  2791. var temp3 = model.getValue("/root/main/list1/chosreclist["+ i + "]/specordamt");
  2792. var temp4 = model.getValue("/root/main/list1/chosreclist["+ i + "]/uncototamt");
  2793. var temp5 = model.getValue("/root/main/list1/chosreclist["+ i + "]/discamt");
  2794. var temp6 = model.getValue("/root/main/list1/chosreclist["+ i + "]/totownbamt");
  2795. totordamtsum = parseInt(totordamtsum) + parseInt(temp1);
  2796. nopyamttsum = parseInt(nopyamttsum) + parseInt(temp2);
  2797. specordamtsum = parseInt(specordamtsum) + parseInt(temp3);
  2798. uncoamtsum = parseInt(uncoamtsum) + parseInt(temp4);
  2799. discamtsum = parseInt(discamtsum) + parseInt(temp5);
  2800. totownbamtsum = parseInt(totownbamtsum) + parseInt(temp6);
  2801. orddeptcd = model.getValue("/root/main/list1/chosreclist["+ i + "]/orddeptcd");
  2802. orddrid = model.getValue("/root/main/list1/chosreclist["+ i + "]/orddrid");
  2803. ordfromdd = model.getValue("/root/main/list1/chosreclist["+ i + "]/ordindd");
  2804. ordtodd = model.getValue("/root/main/list1/chosreclist["+ i + "]/dschdd");
  2805. ioflag = model.getValue("/root/main/list1/chosreclist["+ i + "]/ioflag");
  2806. orddeptnm = model.getValue("/root/main/list1/chosreclist["+ i + "]/orddeptnm");
  2807. orddrnm = model.getValue("/root/main/list1/chosreclist["+ i + "]/orddrnm");
  2808. }
  2809. }
  2810. model.setValue("/root/main/ptpm/totalamt", totordamtsum);
  2811. model.setValue("/root/main/ptpm/patowntotamt", totownbamtsum);
  2812. model.setValue("/root/main/ptpm/nonpayallamt", nopyamttsum);
  2813. model.setValue("/root/main/ptpm/choiordamt", specordamtsum);
  2814. model.setValue("/root/main/ptpm/uncoamt", uncoamtsum);
  2815. model.setValue("/root/main/ptpm/discamt", discamtsum);
  2816. model.setValue("/root/main/ptpm/orddeptcd", orddeptcd);
  2817. model.setValue("/root/main/ptpm/orddrid", orddrid);
  2818. model.setValue("/root/main/ptpm/ordfromdd", ordfromdd);
  2819. model.setValue("/root/main/ptpm/ordtodd", ordtodd);
  2820. model.setValue("/root/main/ptpm/ioflag", ioflag);
  2821. model.setValue("/root/main/ptpm/orddeptnm", orddeptnm);
  2822. model.setValue("/root/main/ptpm/orddrnm", orddrnm);
  2823. model.setValue("/root/main/ptpm/tretflag", "1");
  2824. ipt_tretflag.dispatch("xforms-value-changed");
  2825. model.refresh();
  2826. ]]>
  2827. </script>
  2828. <script type="javascript" ev:event="ondblclick">
  2829. <![CDATA[
  2830. if(grd_chosrec.isCell(event.target) && grd_chosrec.mouseRow >= grd_chosrec.fixedrows) {
  2831. var cur_row = grd_chosrec.row;
  2832. setParameter("pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  2833. setParameter("orddd", grd_chosrec.valueMatrix(cur_row, grd_chosrec.colRef("ordindd")));
  2834. setParameter("dschdd", grd_chosrec.valueMatrix(cur_row, grd_chosrec.colRef("dschdd")));
  2835. setParameter("cretno", grd_chosrec.valueMatrix(cur_row, grd_chosrec.colRef("cretno")));
  2836. setParameter("ioflag", grd_chosrec.valueMatrix(cur_row, grd_chosrec.colRef("ioflag")));
  2837. open("../../../pam/patinfomngtweb/xrw/SPPMC07200_수진내역상세처방리스트", "1", "20", "80" ,"SPPMC07200_수진내역상세처방리스트", "", "");
  2838. //}
  2839. model.refresh();
  2840. }
  2841. ]]>
  2842. </script>
  2843. </datagrid>
  2844. </case>
  2845. <case id="case4">
  2846. <datagrid id="datagrid1" nodeset="/root/main/list2/clamlist" caption="선택^사용여부^내원유형^청구월^청구구분^차수^유형^보조^청구과^진료과^주치의^접수번호^명일련^진료개시일^진료종료일^심사결정^총진료비^본인부담액^청구액^상한액^지원금^대불금^장애인^심사자^등록번호순번^작업구분^등록번호^공문접수일^공문생성번호" colsep="^" colwidth="40, 60, 59, 100, 100, 100, 56, 100, 80, 92, 92, 87, 87, 87, 87, 87, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="35" style="left:0px; top:0px; width:1182px; height:163px; ">
  2847. <col checkvalue="Y,N" ref="patspecyn" type="checkbox"/>
  2848. <col checkvalue="Y,N" disabled="true" ref="histyn" type="checkbox"/>
  2849. <col ref="ioflag" type="combo" style="text-align:center; ">
  2850. <choices>
  2851. <itemset nodeset="/root/init/P0001list/P0001">
  2852. <label ref="cdnm"/>
  2853. <value ref="cdid"/>
  2854. </itemset>
  2855. </choices>
  2856. </col>
  2857. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  2858. <col ref="clamflagcd" type="combo" style="text-align:center; ">
  2859. <choices>
  2860. <itemset nodeset="/root/init/P0155list/P0155">
  2861. <label ref="cdnm"/>
  2862. <value ref="cdid"/>
  2863. </itemset>
  2864. </choices>
  2865. </col>
  2866. <col ref="clamdg" style="text-align:center; "/>
  2867. <col ref="insukind" style="text-align:center; "/>
  2868. <col ref="suppkind" style="text-align:center; "/>
  2869. <col disabled="true" ref="clamdeptnm" type="combo" style="text-align:center; ">
  2870. <choices>
  2871. <itemset nodeset="/root/init/P0437list/P0437">
  2872. <label ref="cdnm"/>
  2873. <value ref="cdid"/>
  2874. </itemset>
  2875. </choices>
  2876. </col>
  2877. <col ref="orddeptnm" style="text-align:center; "/>
  2878. <col ref="orddrnm" style="text-align:center; "/>
  2879. <col ref="acptno" style="text-align:center; "/>
  2880. <col ref="docuseqno" style="text-align:center; "/>
  2881. <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  2882. <col ref="ordtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  2883. <col ref="judgyn" format="yyyy-mm-dd" style="text-align:center; "/>
  2884. <col ref="edimedcaretotamt" format="(-)#,###" style="text-align:right; "/>
  2885. <col ref="ediownbamt" format="(-)#,###" style="text-align:right; "/>
  2886. <col ref="ediinsuclamamt" format="(-)#,###" style="text-align:right; "/>
  2887. <col ref="ediownbmaxexamt" format="(-)#,###" style="text-align:right; "/>
  2888. <col ref="edisuppamt" format="(-)#,###" style="text-align:right; "/>
  2889. <col ref="edisubtamt" format="(-)#,###" style="text-align:right; "/>
  2890. <col ref="edihandcaprfund" format="(-)#,###" style="text-align:right; "/>
  2891. <col ref="judgrnm" style="text-align:center; "/>
  2892. <col ref="pidsn" visibility="hidden"/>
  2893. <col ref="workflag" visibility="hidden"/>
  2894. <col ref="pid" visibility="hidden"/>
  2895. <col ref="ofidocacptdd" visibility="hidden"/>
  2896. <col ref="ofidocretno" visibility="hidden"/>
  2897. <script type="javascript" ev:event="onclick">
  2898. <![CDATA[
  2899. var rows = model.getValue("/root/temp/clamlistcnt");
  2900. //var temp = '';
  2901. var edimedcaretotamttsum = '0';
  2902. var ediownbamtsum = '0';
  2903. var ediinsuclamamtsum = '0';
  2904. var ediownbmaxexamt = '0';
  2905. var edisuppamt = '0';
  2906. var edisubtamt = '0';
  2907. var edihandcaprfund = '0';
  2908. for (i=0; i<rows; i++) {
  2909. if(model.getValue("/root/main/list2/clamlist["+ i + "]/patspecyn") == 'Y' ){
  2910. var temp1 = model.getValue("/root/main/list2/clamlist["+ i + "]/edimedcaretotamt");
  2911. var temp2 = model.getValue("/root/main/list2/clamlist["+ i + "]/ediownbamt");
  2912. var temp3 = model.getValue("/root/main/list2/clamlist["+ i + "]/ediinsuclamamt");
  2913. var temp4 = model.getValue("/root/main/list2/clamlist["+ i + "]/ediownbmaxexamt");
  2914. var temp5 = model.getValue("/root/main/list2/clamlist["+ i + "]/edisuppamt");
  2915. var temp6 = model.getValue("/root/main/list2/clamlist["+ i + "]/edisubtamt");
  2916. var temp7 = model.getValue("/root/main/list2/clamlist["+ i + "]/edihandcaprfund");
  2917. edimedcaretotamttsum = parseInt(edimedcaretotamttsum) + parseInt(temp1);
  2918. ediownbamtsum = parseInt(ediownbamtsum) + parseInt(temp2);
  2919. ediinsuclamamtsum = parseInt(ediinsuclamamtsum) + parseInt(temp3);
  2920. ediownbmaxexamt = parseInt(ediownbmaxexamt) + parseInt(temp4);
  2921. edisuppamt = parseInt(edisuppamt) + parseInt(temp5);
  2922. edisubtamt = parseInt(edisubtamt) + parseInt(temp6);
  2923. edihandcaprfund = parseInt(edihandcaprfund) + parseInt(temp7);
  2924. }
  2925. }
  2926. model.setValue("/root/main/ptpm/edimedcaretotamt", edimedcaretotamttsum);
  2927. model.setValue("/root/main/ptpm/ediownbamt", ediownbamtsum);
  2928. model.setValue("/root/main/ptpm/ediinsuclamamt", ediinsuclamamtsum);
  2929. model.setValue("/root/main/ptpm/ediownbmaxexamt", ediownbmaxexamt);
  2930. model.setValue("/root/main/ptpm/edisuppamt", edisuppamt);
  2931. model.setValue("/root/main/ptpm/edisubtamt", edisubtamt);
  2932. model.setValue("/root/main/ptpm/edihandcaprfund", edihandcaprfund);
  2933. model.refresh();
  2934. ]]>
  2935. </script>
  2936. <script type="javascript" ev:event="DOMFocusIn">
  2937. <![CDATA[
  2938. ]]>
  2939. </script>
  2940. </datagrid>
  2941. </case>
  2942. </switch>
  2943. <caption id="caption79" class="cell_1" visibility="hidden" style="left:485px; top:615px; width:103px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">환수완료여부</caption>
  2944. <select1 id="ipt_rtnendyn" ref="/root/main/ptpm/rtnendyn" navindex="47" visibility="hidden" appearance="minimal" style="left:485px; top:640px; width:103px; height:19px; ">
  2945. <choices>
  2946. <item>
  2947. <label>Y</label>
  2948. <value>Y</value>
  2949. </item>
  2950. <item>
  2951. <label>N</label>
  2952. <value>N</value>
  2953. </item>
  2954. </choices>
  2955. <script type="javascript" ev:event="onkeypress">
  2956. <![CDATA[
  2957. if (event.keyCode == "13")
  2958. {
  2959. model.setFocus("ipt_roothospexpsflag");
  2960. }
  2961. ]]>
  2962. </script>
  2963. </select1>
  2964. <input id="input1" ref="/root/main/ptpm/ofidocdocuno" class="input_default" navindex="6" style="left:201px; top:140px; width:85px; height:19px; ">
  2965. <script type="javascript" ev:event="onkeypress">
  2966. <![CDATA[
  2967. if (event.keyCode == "13")
  2968. {
  2969. model.setFocus("ipt_chrgernm");
  2970. }
  2971. ]]>
  2972. </script>
  2973. </input>
  2974. <caption id="caption20" class="cell_1" style="left:201px; top:105px; width:85px; height:33px; text-align:center; vertical-align:middle; ">공문접수번호</caption>
  2975. <button id="button6" class="btn2_letter4" style="left:1121px; top:471px; width:64px; height:19px; ">
  2976. <caption>엑셀저장</caption>
  2977. <script type="javascript" ev:event="DOMActivate">
  2978. <![CDATA[
  2979. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  2980. if (fileName != "")
  2981. {
  2982. grd_chosrec.saveExcel(fileName, "SheetName", true, true, "", "");
  2983. }
  2984. window.exec(fileName);
  2985. ]]>
  2986. </script>
  2987. </button>
  2988. <button id="button7" class="btn2_letter4" style="left:1121px; top:471px; width:64px; height:19px; ">
  2989. <caption>엑셀저장</caption>
  2990. <script type="javascript" ev:event="DOMActivate">
  2991. <![CDATA[
  2992. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  2993. if (fileName != "")
  2994. {
  2995. datagrid1.saveExcel(fileName, "SheetName", true, true, "", "");
  2996. }
  2997. window.exec(fileName);
  2998. ]]>
  2999. </script>
  3000. </button>
  3001. <caption id="caption82" class="cell_1" style="left:752px; top:30px; width:55px; height:23px; vertical-align:middle; ">사망일시</caption>
  3002. <caption id="caption83" class="cell_1" style="left:650px; top:30px; width:55px; height:23px; vertical-align:middle; ">사망여부</caption>
  3003. <output id="input2" ref="/root/main/ptbs/ptbs_dethdt" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:809px; top:31px; width:78px; height:19px; "/>
  3004. <output id="combo1" ref="/root/main/ptbs/ptbs_dethyn" class="output_fix" appearance="output" style="left:707px; top:31px; width:43px; height:19px; "/>
  3005. <caption id="caption34" class="cell_1" style="left:137px; top:189px; width:129px; height:23px; text-align:center; vertical-align:middle; ">환자부담금총액</caption>
  3006. <input id="ipt_patowntotamt" ref="/root/main/ptpm/patowntotamt" class="input_default" navindex="16" format="(-)#,###" style="left:137px; top:214px; width:129px; height:19px; text-align:right; background-color:#cc99ff; "/>
  3007. <caption id="caption84" class="cell_1" style="left:289px; top:105px; width:50px; height:33px; text-align:center; vertical-align:middle; ">순번</caption>
  3008. <input id="ipt_ofidocretno" ref="/root/main/ptpm/ofidocretno" class="input_default" disabled="true" navindex="6" style="left:289px; top:140px; width:50px; height:19px; ">
  3009. <script type="javascript" ev:event="onkeypress">
  3010. <![CDATA[
  3011. if (event.keyCode == "13")
  3012. {
  3013. model.setFocus("ipt_chrgernm");
  3014. }
  3015. ]]>
  3016. </script>
  3017. </input>
  3018. <caption id="caption85" class="cell_1" style="left:725px; top:54px; width:55px; height:22px; vertical-align:middle; ">주치의</caption>
  3019. <caption id="caption86" class="cell_1" style="left:511px; top:30px; width:55px; height:22px; vertical-align:middle; ">보험유형</caption>
  3020. <select1 id="cmb_insukind" ref="/root/main/ptbs/ptbs_insukind" disabled="true" appearance="minimal" style="left:568px; top:31px; width:80px; height:19px; ">
  3021. <choices>
  3022. <itemset nodeset="/root/init/P0008list/P0008">
  3023. <label ref="cdnm"/>
  3024. <value ref="cdid"/>
  3025. </itemset>
  3026. </choices>
  3027. </select1>
  3028. <caption id="caption87" class="cell_1" style="left:196px; top:345px; width:95px; height:29px; color:#000000; text-align:center; vertical-align:middle; ">
  3029. <![CDATA[이의신청
  3030. 인정액]]>
  3031. </caption>
  3032. <input id="ipt_obtapprcamt" ref="/root/main/ptpm/obtapprcamt" class="input_default" navindex="34" format="(-)#,###" style="left:196px; top:376px; width:95px; height:19px; text-align:right; ">
  3033. <script type="javascript" ev:event="onkeypress">
  3034. <![CDATA[
  3035. if (event.keyCode == "13")
  3036. {
  3037. model.setFocus("ipt_obtappaftrtndeciamt");
  3038. }
  3039. ]]>
  3040. </script>
  3041. </input>
  3042. <input id="ipt_addreqdd" ref="/root/main/ptpm/addreqdd" class="input_default" navindex="28" inputtype="date" style="left:639px; top:295px; width:85px; height:19px; ">
  3043. <script type="javascript" ev:event="onkeypress">
  3044. <![CDATA[
  3045. if (event.keyCode == "13")
  3046. {
  3047. model.setFocus("ipt_addclamamt");
  3048. }
  3049. ]]>
  3050. </script>
  3051. </input>
  3052. <caption id="caption88" class="cell_1" style="left:639px; top:261px; width:85px; height:32px; color:#000000; text-align:center; vertical-align:middle; ">추가청구일자</caption>
  3053. <input id="input6" ref="/root/main/ptpm/addclamamt" class="input_default" format="(-)#,###" style="left:727px; top:295px; width:101px; height:19px; text-align:right; ">
  3054. <script type="javascript" ev:event="onkeypress">
  3055. <![CDATA[
  3056. if (event.keyCode == "13")
  3057. {
  3058. model.setFocus("ipt_addreqdepodd");
  3059. }
  3060. ]]>
  3061. </script>
  3062. </input>
  3063. <caption id="caption90" class="cell_1" style="left:727px; top:261px; width:101px; height:32px; text-align:center; vertical-align:middle; ">
  3064. <![CDATA[추가청구액
  3065. (급여정산액)]]>
  3066. </caption>
  3067. <caption id="caption91" class="cell_1" style="left:511px; top:54px; width:55px; height:22px; vertical-align:middle; ">진료과</caption>
  3068. <caption id="caption2" class="cell_1" style="left:342px; top:105px; width:60px; height:33px; color:#000000; text-align:center; vertical-align:middle; ">
  3069. <![CDATA[구분
  3070. (입/외)]]>
  3071. </caption>
  3072. <input id="ipt_ordfromdd" ref="/root/main/ptpm/ordfromdd" class="input_default" navindex="5" editable="true" inputtype="date" style="left:607px; top:140px; width:90px; height:19px; "/>
  3073. <caption id="caption12" class="cell_1" style="left:607px; top:105px; width:90px; height:33px; text-align:center; vertical-align:middle; ">
  3074. <![CDATA[입원일
  3075. (외래)]]>
  3076. </caption>
  3077. <input id="ipt_ordtodd" ref="/root/main/ptpm/ordtodd" class="input_default" navindex="5" editable="true" inputtype="date" style="left:700px; top:140px; width:92px; height:19px; "/>
  3078. <caption id="caption15" class="cell_1" style="left:700px; top:105px; width:92px; height:33px; text-align:center; vertical-align:middle; ">
  3079. <![CDATA[퇴원일
  3080. (외래)]]>
  3081. </caption>
  3082. <input id="ipt_datacollanldrnotidd" ref="/root/main/ptpm/datacollanldrnotidd" class="input_default" navindex="5" inputtype="date" style="left:795px; top:140px; width:134px; height:19px; ">
  3083. <script type="javascript" ev:event="onkeypress">
  3084. <![CDATA[
  3085. if (event.keyCode == "13")
  3086. {
  3087. model.setFocus("input1");
  3088. }
  3089. ]]>
  3090. </script>
  3091. </input>
  3092. <caption id="caption23" class="cell_1" style="left:795px; top:105px; width:134px; height:33px; text-align:center; vertical-align:middle; ">
  3093. <![CDATA[자료수집 및 분석
  3094. 주치교수 통보일자]]>
  3095. </caption>
  3096. <select1 id="cmb_ioflag" ref="/root/main/ptpm/ioflag" class="combo_default" navindex="4" appearance="minimal" style="left:342px; top:140px; width:60px; height:19px; ">
  3097. <choices>
  3098. <itemset nodeset="/root/init/P0001list/P0001">
  3099. <label ref="cdnm"/>
  3100. <value ref="cdid"/>
  3101. </itemset>
  3102. </choices>
  3103. <script type="javascript" ev:event="onkeypress">
  3104. <![CDATA[
  3105. if (event.keyCode == "13")
  3106. {
  3107. model.setFocus("ipt_civilapler");
  3108. }
  3109. ]]>
  3110. </script>
  3111. </select1>
  3112. <input id="ipt_discamt" ref="/root/main/ptpm/discamt" class="input_default" navindex="20" format="(-)#,###" style="left:1108px; top:140px; width:77px; height:19px; text-align:right; background-color:#cc99ff; "/>
  3113. <caption id="caption7" class="cell_1" style="left:1108px; top:105px; width:77px; height:33px; color:#000000; text-align:center; vertical-align:middle; ">할인액</caption>
  3114. <caption id="caption16" class="cell_1" style="left:1029px; top:105px; width:77px; height:33px; color:#000000; text-align:center; vertical-align:middle; ">미수액</caption>
  3115. <input id="input3" ref="/root/main/ptbs/totaluncoamt" class="input_default" disabled="true" navindex="19" format="(-)#,###" style="left:940px; top:140px; width:87px; height:19px; text-align:right; "/>
  3116. <input id="ipt_uncoamt" ref="/root/main/ptpm/uncoamt" class="input_default" disabled="false" navindex="19" format="(-)#,###" style="left:1029px; top:140px; width:77px; height:19px; text-align:right; background-color:#cc99ff; "/>
  3117. <caption id="caption80" class="cell_1" style="left:940px; top:105px; width:87px; height:33px; color:#000000; text-align:center; vertical-align:middle; ">미수잔액</caption>
  3118. <line id="line25" class="line_1" style="x1:940px; y1:99px; x2:1186px; y2:99px; "/>
  3119. <caption id="caption77" class="tit_2" style="left:940px; top:84px; width:80px; height:13px; font-family:돋움; color:#000000; vertical-align:middle; ">기타금액</caption>
  3120. <input id="ipt_datadelivedd" ref="/root/main/ptpm/datadelivedd" class="input_default" navindex="28" inputtype="date" style="left:83px; top:295px; width:85px; height:19px; ">
  3121. <script type="javascript" ev:event="onkeypress">
  3122. <![CDATA[
  3123. if (event.keyCode == "13")
  3124. {
  3125. model.setFocus("ipt_judgrid");
  3126. }
  3127. ]]>
  3128. </script>
  3129. </input>
  3130. <caption id="caption26" class="cell_1" style="left:83px; top:261px; width:85px; height:32px; color:#000000; text-align:center; vertical-align:middle; ">
  3131. <![CDATA[심평원자료
  3132. 제출일자]]>
  3133. </caption>
  3134. <input id="ipt_paycalcamt" ref="/root/main/ptpm/paycalcamt" class="input_default" navindex="25" format="(-)#,###" appearance="minimal" style="left:361px; top:295px; width:93px; height:19px; text-align:right; vertical-align:bottom; ">
  3135. <script type="javascript" ev:event="onkeypress">
  3136. <![CDATA[
  3137. setInputNodeCurText(",");
  3138. var vpaycalcamt = eval(model.getValue("/root/main/ptpm/rtnschenotiamt")) - eval(model.getValue("/root/main/ptpm/paycalcamt"));
  3139. if (event.keyCode == "13")
  3140. {
  3141. model.setValue("/root/main/ptpm/addclamamt" , model.getValue("/root/main/ptpm/paycalcamt"));
  3142. model.setValue("/root/main/ptpm/purertnamt", vpaycalcamt);
  3143. model.setFocus("ipt_purertnamt");
  3144. model.refresh();
  3145. }
  3146. ]]>
  3147. </script>
  3148. <script type="javascript" ev:event="DOMFocusOut">
  3149. <![CDATA[
  3150. var vpaycalcamt = eval(model.getValue("/root/main/ptpm/rtnschenotiamt")) - eval(model.getValue("/root/main/ptpm/paycalcamt"));
  3151. model.setValue("/root/main/ptpm/addclamamt" , model.getValue("/root/main/ptpm/paycalcamt"));
  3152. model.setValue("/root/main/ptpm/purertnamt", vpaycalcamt);
  3153. //model.setFocus("ipt_purertnamt");
  3154. model.refresh();
  3155. ]]>
  3156. </script>
  3157. </input>
  3158. <caption id="caption24" class="cell_1" style="left:361px; top:278px; width:93px; height:15px; color:#000000; text-align:center; vertical-align:middle; ">급여정산액</caption>
  3159. <input id="ipt_purertnamt" ref="/root/main/ptpm/purertnamt" class="input_default" navindex="25" format="(-)#,###" appearance="minimal" style="left:456px; top:295px; width:92px; height:19px; text-align:right; vertical-align:bottom; "/>
  3160. <caption id="caption27" class="cell_1" style="left:456px; top:278px; width:92px; height:15px; color:#000000; text-align:center; vertical-align:middle; ">순수환불액</caption>
  3161. <caption id="caption25" class="cell_1" style="left:171px; top:261px; width:377px; height:15px; color:#000000; text-align:center; vertical-align:middle; ">심평원 총괄 진료비 정산내역</caption>
  3162. <caption id="caption19" class="cell_1" style="left:933px; top:344px; width:127px; height:30px; text-align:center; vertical-align:middle; ">
  3163. <![CDATA[심판청구
  3164. 불인정액]]>
  3165. </caption>
  3166. <input id="ipt_judgreqnorcamt" ref="/root/main/ptpm/judgreqnorcamt" class="input_default" navindex="41" format="(-)#,###" style="left:933px; top:376px; width:127px; height:19px; text-align:right; ">
  3167. <script type="javascript" ev:event="onkeypress">
  3168. <![CDATA[
  3169. if (event.keyCode == "13")
  3170. {
  3171. model.setFocus("ipt_tretflag");
  3172. }
  3173. ]]>
  3174. </script>
  3175. </input>
  3176. <line id="line7" class="line_1" style="x1:6px; y1:341px; x2:579px; y2:340px; "/>
  3177. <caption id="caption28" class="tit_2" style="left:10px; top:324px; width:95px; height:13px; font-family:돋움; vertical-align:middle; ">이의신청</caption>
  3178. <caption id="caption30" class="tit_2" style="left:594px; top:323px; width:96px; height:13px; font-family:돋움; vertical-align:middle; ">심판청구</caption>
  3179. <line id="line11" class="line_1" style="x1:590px; y1:340px; x2:1183px; y2:339px; "/>
  3180. <textarea id="tar_etcrem" ref="/root/main/ptpm/etcrem" class="input_default" appearance="textarea" style="left:930px; top:260px; width:255px; height:54px; ">
  3181. <script type="javascript" ev:event="onkeypress">
  3182. <![CDATA[
  3183. setInputNodeCurText();
  3184. if (event.keyCode == "13")
  3185. {
  3186. model.setFocus("ipt_datadelivedd");
  3187. }
  3188. ]]>
  3189. </script>
  3190. </textarea>
  3191. <line id="line14" class="line_1" style="x1:931px; y1:255px; x2:1184px; y2:255px; "/>
  3192. <caption id="caption40" class="tit_2" style="left:931px; top:240px; width:113px; height:14px; font-family:돋움; color:#000000; vertical-align:middle; ">기타 특이사항</caption>
  3193. <select1 id="cmb_orddeptcd" ref="/root/main/ptpm/orddeptcd" class="combo_default" disabled="false" visibility="hidden" appearance="minimal" itemcount="20" style="left:565px; top:80px; width:156px; height:19px; ">
  3194. <choices>
  3195. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  3196. <label ref="nm"/>
  3197. <value ref="cd"/>
  3198. </itemset>
  3199. </choices>
  3200. <script type="javascript" ev:event="xforms-value-changed">
  3201. <![CDATA[
  3202. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + model.getValue("/root/main/ptpm/orddeptcd") + "']";
  3203. //model.setValue("/root/main/ptpm/orddeptnm", cmb_orddeptcd.label);
  3204. model.resetInstanceNode("/root/main/ptpm/orddrid"); // 진료과가 변경되었으므로 주치의를 초기화한다.
  3205. model.refresh();
  3206. cmb_orddrid.disabled = false;
  3207. ]]>
  3208. </script>
  3209. </select1>
  3210. <button id="button10" class="btn2_letter7" navindex="39" style="left:989px; top:4px; width:97px; height:19px; ">
  3211. <caption>외래진료비내역</caption>
  3212. <script type="javascript" ev:event="DOMActivate">
  3213. <![CDATA[
  3214. /*
  3215. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  3216. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  3217. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  3218. model.setValue("/root/send/data3/flag", "P");
  3219. if(model.getValue("/root/main/ptbs/ptbs_pid") =="" || model.getValue("/root/main/ptbs/ptbs_hngnm") =="" )
  3220. {
  3221. messageBox("환자가 조회되지 않았습니다!","E999","");
  3222. return;
  3223. }else{
  3224. modal("SMPMC03000", "1","150","150", "SMPMC03000", "/root/send/data3", "/root/hidden/data");
  3225. }
  3226. */
  3227. /*
  3228. var getreturnamt = getParameter("SMPMC03000_selectreturnamt");
  3229. var getselectreturnamt = getParameter("SMPMC03000_returnamt");
  3230. if( getreturnamt !='' && getselectreturnamt !=''){
  3231. model.setValue("/root/main/ptpm/insuteamrtnfcstamt", getselectreturnamt);
  3232. model.setValue("/root/main/ptpm/choiordrtnfcstamt", getreturnamt);
  3233. }
  3234. */
  3235. open("SMPAO00300", "1","150","150", "SMPAO00300", "", "");
  3236. model.refresh();
  3237. ]]>
  3238. </script>
  3239. </button>
  3240. <select1 id="cmb_orddrid" ref="/root/main/ptpm/orddrid" class="combo_default" disabled="false" visibility="hidden" appearance="minimal" style="left:780px; top:80px; width:105px; height:19px; ">
  3241. <choices>
  3242. <itemset nodeset="/root/init/orddrid/orddridlist">
  3243. <label ref="nm"/>
  3244. <value ref="cd"/>
  3245. </itemset>
  3246. </choices>
  3247. </select1>
  3248. <input id="ipt_drrsltnotidd" ref="/root/main/ptpm/drrsltnotidd" class="input_default" navindex="28" inputtype="date" style="left:551px; top:295px; width:85px; height:19px; ">
  3249. <script type="javascript" ev:event="onkeypress">
  3250. <![CDATA[
  3251. if (event.keyCode == "13")
  3252. {
  3253. model.setFocus("ipt_addclamamt");
  3254. }
  3255. ]]>
  3256. </script>
  3257. </input>
  3258. <caption id="caption43" class="cell_1" style="left:551px; top:261px; width:85px; height:32px; color:#000000; text-align:center; vertical-align:middle; ">
  3259. <![CDATA[주치교수
  3260. 결과통보일]]>
  3261. </caption>
  3262. <caption id="caption48" class="cell_1" style="left:171px; top:278px; width:93px; height:15px; color:#000000; text-align:center; vertical-align:middle; ">심평원통보일</caption>
  3263. <input id="ipt_jvinotidd" ref="/root/main/ptpm/jvinotidd" class="input_default" navindex="28" inputtype="date" style="left:171px; top:295px; width:93px; height:19px; ">
  3264. <script type="javascript" ev:event="onkeypress">
  3265. <![CDATA[
  3266. if (event.keyCode == "13")
  3267. {
  3268. model.setFocus("ipt_judgrid");
  3269. }
  3270. ]]>
  3271. </script>
  3272. </input>
  3273. <caption id="caption60" class="cell_1" visibility="hidden" style="left:380px; top:615px; width:100px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">합의취하환불액</caption>
  3274. <input id="ipt_aprvcnclrtnfcstamt" ref="/root/main/ptpm/aprvcnclrtnfcstamt" class="input_default" navindex="44" visibility="hidden" format="(-)#,###" style="left:380px; top:640px; width:100px; height:19px; text-align:right; ">
  3275. <script type="javascript" ev:event="onkeypress">
  3276. <![CDATA[
  3277. if (event.keyCode == "13")
  3278. {
  3279. model.setFocus("ipt_fcstdecidd");
  3280. }
  3281. ]]>
  3282. </script>
  3283. </input>
  3284. <caption id="caption62" class="cell_1" visibility="hidden" style="left:590px; top:615px; width:95px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">실환불액</caption>
  3285. <input id="ipt_ordfcstamt" ref="/root/main/ptpm/ordfcstamt" class="input_default" navindex="49" visibility="hidden" format="(-)#,###" style="left:590px; top:640px; width:95px; height:19px; text-align:right; ">
  3286. <script type="javascript" ev:event="onkeypress">
  3287. <![CDATA[
  3288. if (event.keyCode == "13")
  3289. {
  3290. model.setFocus("ipt_ordfcstdd");
  3291. }
  3292. ]]>
  3293. </script>
  3294. </input>
  3295. <caption id="caption70" class="cell_1" visibility="hidden" style="left:193px; top:570px; width:80px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">청구액</caption>
  3296. <caption id="caption72" class="cell_1" visibility="hidden" style="left:452px; top:570px; width:83px; height:23px; text-align:center; vertical-align:middle; ">대불금</caption>
  3297. <caption id="caption73" class="cell_1" visibility="hidden" style="left:25px; top:570px; width:85px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">총진료비</caption>
  3298. <caption id="caption74" class="cell_1" visibility="hidden" style="left:113px; top:570px; width:77px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">본인부담액</caption>
  3299. <caption id="caption75" class="cell_1" visibility="hidden" style="left:276px; top:570px; width:85px; height:23px; text-align:center; vertical-align:middle; ">상한액</caption>
  3300. <line id="line23" class="line_3" visibility="hidden" style="x1:26px; y1:615px; x2:620px; y2:615px; "/>
  3301. <caption id="caption76" class="cell_1" visibility="hidden" style="left:364px; top:570px; width:85px; height:23px; text-align:center; vertical-align:middle; ">지원금</caption>
  3302. <input id="input22" ref="/root/main/ptpm/ediownbamt" class="input_default" navindex="16" visibility="hidden" format="(-)#,###" style="left:113px; top:595px; width:77px; height:19px; text-align:right; background-color:#cc99ff; "/>
  3303. <caption id="caption78" class="cell_1" visibility="hidden" style="left:537px; top:570px; width:85px; height:23px; text-align:center; vertical-align:middle; ">장애인</caption>
  3304. <input id="input24" ref="/root/main/ptpm/ediownbmaxexamt" class="input_default" disabled="false" navindex="18" visibility="hidden" format="(-)#,###" style="left:276px; top:595px; width:85px; height:19px; text-align:right; background-color:#cc99ff; "/>
  3305. <input id="input25" ref="/root/main/ptpm/edisuppamt" class="input_default" disabled="false" navindex="19" visibility="hidden" format="(-)#,###" style="left:364px; top:595px; width:85px; height:19px; text-align:right; background-color:#cc99ff; "/>
  3306. <input id="input26" ref="/root/main/ptpm/edimedcaretotamt" class="input_default" navindex="16" visibility="hidden" format="(-)#,###" style="left:25px; top:595px; width:85px; height:19px; text-align:right; background-color:#cc99ff; "/>
  3307. <input id="input27" ref="/root/main/ptpm/ediinsuclamamt" class="input_default" navindex="17" visibility="hidden" format="(-)#,###" style="left:193px; top:595px; width:80px; height:19px; text-align:right; background-color:#cc99ff; "/>
  3308. <input id="input28" ref="/root/main/ptpm/edisubtamt" class="input_default" navindex="20" visibility="hidden" format="(-)#,###" style="left:452px; top:595px; width:83px; height:19px; text-align:right; background-color:#cc99ff; "/>
  3309. <input id="input29" ref="/root/main/ptpm/edihandcaprfund" class="input_default" navindex="20" visibility="hidden" format="(-)#,###" style="left:537px; top:595px; width:85px; height:19px; text-align:right; background-color:#cc99ff; "/>
  3310. <group id="grp_addclamrem" visibility="hidden" style="left:620px; top:260px; width:305px; height:132px; border-color:#c7a3cf; border-style:solid; ">
  3311. <caption id="cpt_text" class="tit_2" style="left:5px; top:0px; width:118px; height:14px; ">추가청구비고</caption>
  3312. <line id="line26" class="line_1" style="x1:0px; y1:15px; x2:300 px; y2:15px; "/>
  3313. <textarea id="tea_addclamrem" ref="/root/temp/addclamrem" scroll="vertical" imemode="hangul" maxlength="1750" style="left:5px; top:21px; width:294px; height:84px; text-align:left; vertical-align:top; padding-left:5; "/>
  3314. <button id="btn_closememo" class="btn4_letter2" style="left:239px; top:106px; width:56px; height:22px; ">
  3315. <caption>
  3316. <![CDATA[확인]]>
  3317. </caption>
  3318. <script type="javascript" ev:event="DOMActivate">
  3319. <![CDATA[
  3320. model.setValue("/root/main/ptpm/addclamrem", model.getValue("/root/temp/addclamrem"));
  3321. grp_addclamrem.visible = false;
  3322. model.refresh();
  3323. ]]>
  3324. </script>
  3325. </button>
  3326. </group>
  3327. <group id="grp_obtapprsltrem" visibility="hidden" style="left:315px; top:260px; width:305px; height:132px; border-color:#c7a3cf; border-style:solid; ">
  3328. <caption id="caption81" class="tit_2" style="left:5px; top:0px; width:121px; height:14px; ">이의신청결과비고</caption>
  3329. <line id="line27" class="line_1" style="x1:0px; y1:15px; x2:300 px; y2:15px; "/>
  3330. <textarea id="tea_obtapprsltrem" ref="/root/temp/obtapprsltrem" scroll="vertical" imemode="hangul" maxlength="1750" style="left:5px; top:21px; width:294px; height:84px; text-align:left; vertical-align:top; padding-left:5; "/>
  3331. <button id="button3" class="btn4_letter2" style="left:239px; top:106px; width:56px; height:22px; ">
  3332. <caption>
  3333. <![CDATA[확인]]>
  3334. </caption>
  3335. <script type="javascript" ev:event="DOMActivate">
  3336. <![CDATA[
  3337. model.setValue("/root/main/ptpm/obtapprsltrem", model.getValue("/root/temp/obtapprsltrem"));
  3338. grp_obtapprsltrem.visible = false;
  3339. model.refresh();
  3340. ]]>
  3341. </script>
  3342. </button>
  3343. </group>
  3344. <caption id="caption95" class="cell_1" visibility="visible" style="left:797px; top:189px; width:129px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">취하금액</caption>
  3345. <input id="input8" ref="/root/main/ptpm/aprvcnclrtnfcstamt" class="input_default" navindex="44" visibility="visible" format="(-)#,###" style="left:797px; top:214px; width:129px; height:19px; text-align:right; ">
  3346. <script type="javascript" ev:event="onkeypress">
  3347. <![CDATA[
  3348. setInputNodeCurText(",");
  3349. var vchoiordrtnfcstamt = eval(model.getValue("/root/main/ptpm/nonpayallamt")) + eval(model.getValue("/root/main/ptpm/choiordamt")) - eval(model.getValue("/root/main/ptpm/aprvcnclrtnfcstamt"));
  3350. if (event.keyCode == "13")
  3351. {
  3352. model.setValue("/root/main/ptpm/tretflag" , "5");
  3353. model.setValue("/root/main/ptpm/choiordrtnfcstamt", vchoiordrtnfcstamt);
  3354. model.setValue("/root/main/ptpm/edimedcaretotamt", 0);
  3355. //model.setFocus("ipt_paycalcamt");
  3356. model.refresh();
  3357. }
  3358. ]]>
  3359. </script>
  3360. </input>
  3361. <input id="input9" ref="/root/main/ptpm/ordfcstamt" class="input_default" navindex="44" visibility="visible" format="(-)#,###" style="left:929px; top:214px; width:129px; height:19px; text-align:right; ">
  3362. <script type="javascript" ev:event="onkeypress">
  3363. <![CDATA[
  3364. setInputNodeCurText(",");
  3365. var vchoiordrtnfcstamt = eval(model.getValue("/root/main/ptpm/nonpayallamt")) + eval(model.getValue("/root/main/ptpm/choiordamt")) - eval(model.getValue("/root/main/ptpm/ordfcstamt"));
  3366. if (event.keyCode == "13")
  3367. {
  3368. model.setValue("/root/main/ptpm/tretflag" , "4");
  3369. model.setValue("/root/main/ptpm/fcstdeciamt", model.getValue("/root/main/ptpm/ordfcstamt"));
  3370. model.setValue("/root/main/ptpm/choiordrtnfcstamt", vchoiordrtnfcstamt);
  3371. model.setValue("/root/main/ptpm/edimedcaretotamt", 0);
  3372. //model.setFocus("ipt_paycalcamt");
  3373. model.refresh();
  3374. }
  3375. ]]>
  3376. </script>
  3377. </input>
  3378. <caption id="caption96" class="cell_1" visibility="visible" style="left:929px; top:189px; width:129px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">환불취하금액</caption>
  3379. <input id="input10" ref="/root/main/ptpm/edimedcaretotamt" class="input_default" navindex="44" visibility="visible" format="(-)#,###" style="left:1061px; top:214px; width:124px; height:19px; text-align:right; ">
  3380. <script type="javascript" ev:event="onkeypress">
  3381. <![CDATA[
  3382. /*
  3383. if (event.keyCode == "13")
  3384. {
  3385. model.setFocus("ipt_fcstdecidd");
  3386. }
  3387. */
  3388. ]]>
  3389. </script>
  3390. </input>
  3391. <caption id="caption97" class="cell_1" visibility="visible" style="left:1061px; top:189px; width:124px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">진행중금액</caption>
  3392. <input id="input11" ref="/root/main/ptpm/orddeptnm" style="left:568px; top:55px; width:155px; height:19px; "/>
  3393. <input id="input12" ref="/root/main/ptpm/orddrnm" style="left:782px; top:55px; width:105px; height:19px; "/>
  3394. <button id="button13" class="btn2_letter2" navindex="38" style="left:1142px; top:236px; width:42px; height:19px; ">
  3395. <caption>저장</caption>
  3396. <script type="javascript" ev:event="DOMActivate">
  3397. <![CDATA[
  3398. if(model.getValue("/root/main/ptpm/ofidocdocuno") == "") {
  3399. messageBox("환자가 조회되지 않았습니다!","E999");
  3400. return;
  3401. } else {
  3402. model.resetInstanceNode("/root/send/data7");
  3403. model.makeValue("/root/send/data7/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  3404. model.makeValue("/root/send/data7/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  3405. model.makeValue("/root/send/data7/etcrem", model.getValue("/root/main/ptpm/etcrem"));
  3406. submit("TXPMC03007");
  3407. }
  3408. ]]>
  3409. </script>
  3410. </button>
  3411. <line id="line10" class="line_1" style="x1:505px; y1:417px; x2:1185px; y2:416px; "/>
  3412. <caption id="caption71" class="tit_2" style="left:505px; top:401px; width:184px; height:14px; font-family:돋움; vertical-align:middle; ">공단 공제처리 결과통보</caption>
  3413. <button id="button18" class="btn5_letter6" visibility="visible" style="left:835px; top:235px; width:86px; height:19px; ">
  3414. <caption>전달사항등록</caption>
  3415. <script type="javascript" ev:event="DOMActivate">
  3416. <![CDATA[
  3417. setParameter("SPPMC00301_pid", model.getValue("/root/main/ptpm/pid"));
  3418. setParameter("SPPMC00301_ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  3419. setParameter("SPPMC00301_ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  3420. setParameter("SPPMC00301_orddeptcd", model.getValue("/root/main/ptpm/orddeptcd"));
  3421. setParameter("SPPMC00301_orddrid", model.getValue("/root/main/ptpm/orddrid"));
  3422. setParameter("SPPMC00301_tretflag", model.getValue("/root/main/ptpm/tretflag"));
  3423. modal("SPPMC00301");
  3424. ]]>
  3425. </script>
  3426. </button>
  3427. <button id="button21" class="btn2_letter6" visibility="hidden" style="left:745px; top:235px; width:86px; height:19px; ">
  3428. <caption>전달사항조회</caption>
  3429. <script type="javascript" ev:event="DOMActivate">
  3430. <![CDATA[
  3431. group6.visible = true;
  3432. ]]>
  3433. </script>
  3434. </button>
  3435. <caption id="caption98" class="cell_1" style="left:516px; top:105px; width:88px; height:33px; color:#000000; text-align:center; vertical-align:middle; ">
  3436. <![CDATA[환자/기관
  3437. 구분]]>
  3438. </caption>
  3439. <input id="ipt_refltdd" ref="/root/main/ptpm/refltdd" class="input_default" navindex="46" inputtype="date" style="left:1044px; top:445px; width:90px; height:19px; text-align:right; ">
  3440. <script type="javascript" ev:event="onkeypress">
  3441. <![CDATA[
  3442. ]]>
  3443. </script>
  3444. </input>
  3445. <caption id="caption99" class="cell_1" style="left:1044px; top:420px; width:90px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">반영일자</caption>
  3446. <caption id="caption100" class="cell_1" style="left:1137px; top:420px; width:50px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">재계산</caption>
  3447. <bool id="bol_recalcyn" checkvalue="Y,N" ref="/root/main/ptpm/recalcyn" style="left:1137px; top:445px; width:50px; height:20px; "/>
  3448. <select1 id="cmb_insttype" ref="/root/main/ptpm/insttype" class="combo_default" navindex="4" appearance="minimal" style="left:516px; top:140px; width:88px; height:19px; ">
  3449. <choices>
  3450. <item>
  3451. <label>환자</label>
  3452. <value>환자</value>
  3453. </item>
  3454. <item>
  3455. <label>기관</label>
  3456. <value>기관</value>
  3457. </item>
  3458. </choices>
  3459. <script type="javascript" ev:event="onkeypress">
  3460. <![CDATA[
  3461. if (event.keyCode == "13")
  3462. {
  3463. model.setFocus("ipt_ordfromdd");
  3464. }
  3465. ]]>
  3466. </script>
  3467. </select1>
  3468. <button id="button20" class="btn2_letter11" navindex="39" style="left:800px; top:4px; width:141px; height:19px; ">
  3469. <caption>상급병실 신청 서명관리</caption>
  3470. <script type="javascript" ev:event="DOMActivate">
  3471. <![CDATA[
  3472. open("SPPMI02800", "1","150","150", "SPPMI02800", "", "");
  3473. model.refresh();
  3474. ]]>
  3475. </script>
  3476. </button>
  3477. <button id="button22" class="btn2_letter7" navindex="39" style="left:989px; top:4px; width:97px; height:19px; ">
  3478. <caption>외래진료비내역</caption>
  3479. <script type="javascript" ev:event="DOMActivate">
  3480. <![CDATA[
  3481. /*
  3482. model.setValue("/root/send/data3/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
  3483. model.setValue("/root/send/data3/ofidocacptdd", model.getValue("/root/main/ptpm/ofidocacptdd"));
  3484. model.setValue("/root/send/data3/ofidocretno", model.getValue("/root/main/ptpm/ofidocretno"));
  3485. model.setValue("/root/send/data3/flag", "P");
  3486. if(model.getValue("/root/main/ptbs/ptbs_pid") =="" || model.getValue("/root/main/ptbs/ptbs_hngnm") =="" )
  3487. {
  3488. messageBox("환자가 조회되지 않았습니다!","E999","");
  3489. return;
  3490. }else{
  3491. modal("SMPMC03000", "1","150","150", "SMPMC03000", "/root/send/data3", "/root/hidden/data");
  3492. }
  3493. */
  3494. /*
  3495. var getreturnamt = getParameter("SMPMC03000_selectreturnamt");
  3496. var getselectreturnamt = getParameter("SMPMC03000_returnamt");
  3497. if( getreturnamt !='' && getselectreturnamt !=''){
  3498. model.setValue("/root/main/ptpm/insuteamrtnfcstamt", getselectreturnamt);
  3499. model.setValue("/root/main/ptpm/choiordrtnfcstamt", getreturnamt);
  3500. }
  3501. */
  3502. open("SMPAO00300", "1","150","150", "SMPAO00300", "", "");
  3503. model.refresh();
  3504. ]]>
  3505. </script>
  3506. </button>
  3507. <button id="button23" class="btn2_letter8" navindex="39" style="left:689px; top:4px; width:108px; height:19px; ">
  3508. <caption>선택진료신청조회</caption>
  3509. <script type="javascript" ev:event="DOMActivate">
  3510. <![CDATA[
  3511. open("SMPMC06503", "1","150","150", "SMPMC06503", "", "");
  3512. model.refresh();
  3513. ]]>
  3514. </script>
  3515. </button>
  3516. <input id="input13" ref="/root/main/ptpm/tretdd" class="input_default" navindex="43" inputtype="date" style="left:83px; top:445px; width:88px; height:19px; ">
  3517. <script type="javascript" ev:event="onkeypress">
  3518. <![CDATA[
  3519. if (event.keyCode == "13")
  3520. {
  3521. model.setFocus("ipt_cncldocudelivedd");
  3522. }
  3523. ]]>
  3524. </script>
  3525. </input>
  3526. <caption id="caption101" class="cell_1" style="left:83px; top:420px; width:88px; height:23px; color:#000000; text-align:center; vertical-align:middle; ">처리일</caption>
  3527. </case>
  3528. </switch>
  3529. <button id="btn_patprescond" class="btn_sw" navindex="40" group="tab" selected="true" style="left:0px; top:10px; width:86px; height:22px; ">
  3530. <caption>수진내역현황</caption>
  3531. <toggle case="case1" ev:event="xforms-activate"/>
  3532. <script type="javascript" ev:event="DOMActivate">
  3533. <![CDATA[
  3534. btn_srch.dispatch("DOMActivate");
  3535. ]]>
  3536. </script>
  3537. </button>
  3538. <button id="btn_patspec" class="btn_sw" navindex="41" group="tab" style="left:86px; top:10px; width:86px; height:22px; ">
  3539. <caption>수진내역</caption>
  3540. <toggle case="case2" ev:event="xforms-activate"/>
  3541. </button>
  3542. </group>
  3543. </xhtml:body>
  3544. </xhtml:html>